:root {
  color-scheme: dark;
  --page-bg: #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
}

.page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: clamp(24px, 5vh, 56px) 20px 40px;
}

.support-banner {
  width: min(100%, 1448px);
  margin: 0;
}

.project-support-link {
  margin-top: 14px;
  color: #39c8ff;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.3;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-support-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.project-support-link + .download-link {
  margin-top: 34px;
}

.support-banner-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #06172a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(0, 174, 255, 0.08);
  isolation: isolate;
}

.support-banner-image {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.8s ease, opacity 3s ease-in-out;
}

.support-banner-image-us {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.support-banner[data-region="us"] .support-banner-image-us {
  opacity: 1;
}

.support-banner-frame:hover .support-banner-image {
  transform: scale(1.012);
  filter: brightness(1.035) saturate(1.05);
}

.support-banner-link {
  position: absolute;
  left: 3.6%;
  bottom: 17.2%;
  z-index: 10;
  width: 34.5%;
  height: 15.8%;
  border-radius: 999px;
  background: transparent;
  transition: left 3s ease-in-out, bottom 3s ease-in-out,
    width 3s ease-in-out, height 3s ease-in-out,
    transform 0.25s ease;
}

.support-banner[data-region="eu"] .support-banner-link {
  left: 4.7%;
  bottom: 20.6%;
  width: 34.7%;
  height: 16%;
}

.support-banner-link:hover {
  transform: scale(1.018);
}

.support-banner-link:focus-visible {
  outline: 3px solid #4dd9ff;
  outline-offset: 4px;
}

.support-banner-shine {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.02) 43%, rgba(130, 220, 255, 0.1) 49%, rgba(255, 255, 255, 0.025) 55%, transparent 68%);
  transform: translateX(-120%);
  animation: support-banner-shine 9s ease-in-out infinite;
}

@keyframes support-banner-shine {
  0%, 65% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

@media (max-width: 900px) {
  .support-banner-frame {
    border-radius: 10px;
  }
}

.youtube-link {
  margin-top: 3em;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.youtube-link:hover,
.youtube-link:focus-visible {
  text-decoration: underline;
}

.channel-link {
  display: block;
  max-width: 100%;
  margin-top: 18px;
}

.channel-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.download-link {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55em;
  margin-top: 18px;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.download-count {
  white-space: nowrap;
}

.download-link:hover,
.download-link:focus-visible {
  text-decoration: underline;
}

.installer-hash {
  max-width: 100%;
  margin: 0.55em 0 0;
  color: #ffffff;
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.release-notes {
  position: relative;
  left: clamp(0px, 12vw, 126px);
  width: min(100%, 860px);
  margin-top: 1.8em;
  color: #ffd400;
  font-size: clamp(10px, 1vw, 13px);
  line-height: 1.25;
}

.release-notes p {
  margin: 0;
}

.release-notes ul {
  margin: 0.55em 0;
  padding-left: 1.5em;
}

.release-notes li + li {
  margin-top: 0.2em;
}

.antivirus-check-link {
  max-width: 860px;
  margin-top: 1.6em;
  color: #39d353;
  font-size: clamp(13px, 1.5vw, 18px);
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.antivirus-check-link:hover,
.antivirus-check-link:focus-visible {
  text-decoration: underline;
}

.antivirus-check-link + .download-link-disabled {
  margin-top: 42px;
}

.download-link-disabled,
.download-link-disabled:hover {
  color: rgb(145, 145, 145);
  cursor: default;
  font-size: 17px;
  line-height: 1.15;
  text-decoration: none;
}

.download-link-disabled + .download-link-disabled {
  margin-top: 6px;
}

.guide-link {
  margin-top: 0.45em;
  color: rgb(17, 173, 250);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.download-link + .guide-link {
  margin-top: 1.5em;
}

.guide-link:hover,
.guide-link:focus-visible {
  text-decoration: underline;
}

.development-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 5em;
}

.development-note {
  margin: 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.development-image {
  display: block;
  width: min(92vw, 836px);
  height: auto;
  margin-top: 1.1em;
  object-fit: contain;
}

.donation-note {
  max-width: 860px;
  margin: 3.9em 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #ff0000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.donation-note:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 6px;
}

.donation-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  visibility: hidden;
  transition: grid-template-rows 320ms ease, visibility 0s 320ms;
}

.donation-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 320ms ease, visibility 0s;
}

.donation-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .donation-panel,
  .donation-panel.is-open {
    transition: none;
  }
}

.donation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 920px;
  margin-top: 3.8em;
}

.donation-card {
  width: 100%;
  justify-self: center;
  transition: width 180ms ease;
}

.donation-card.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
}

.donation-image-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: min(41vw, 368px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.donation-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}

.donation-card.is-expanded .donation-image-button {
  display: block;
  width: min(calc(100vw - 48px), var(--full-width));
  max-width: var(--full-width);
  height: auto;
}

.donation-card.is-expanded .donation-image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.donation-code {
  margin: 0.65em 0 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(11px, 1.05vw, 15px);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.donation-card.is-expanded .donation-code {
  width: min(calc(100vw - 48px), var(--full-width));
  color: #ff0000;
  font-size: clamp(14px, 1.45vw, 22px);
}

.sendnow-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.4em;
}

.sendnow-link {
  display: block;
  line-height: 0;
}

.sendnow-image {
  display: block;
  width: 112px;
  height: auto;
}

.sendnow-label {
  margin: 0.7em 0 0;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.6vw, 19px);
  line-height: 1.3;
  text-align: center;
}

.visit-counter {
  position: relative;
  width: min(100%, 1448px);
  aspect-ratio: 8 / 1;
  margin-top: 16px;
  background: url("/assets/visit-counter-banner.png") center / 100% auto no-repeat;
}

.visit-counter-values {
  position: absolute;
  top: 46%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: 44%;
  height: 20%;
  color: #79dcff;
  font-size: 16px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.visit-counter-values span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-shadow: 0 0 12px #059bff;
}

.visit-counter-values strong {
  color: #fff;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 520px) {
  .visit-counter {
    aspect-ratio: 3.2 / 1;
    background-size: auto 180%;
  }

  .visit-counter-values {
    width: 70%;
    font-size: 10px;
  }

  .visit-counter-values span {
    gap: 1px;
  }

  .visit-counter-values strong {
    font-size: 13px;
  }

  .page {
    padding-top: 22px;
  }

  .logo {
    width: min(92vw, 420px);
  }

  .release-notes {
    left: 0;
  }

  .donation-grid {
    grid-template-columns: minmax(0, min(78vw, 280px));
    max-width: 420px;
  }
}
