:root {
  --gold: #fab519;
  --gold-dark: #d88e00;
  --sky-1: #a8dcf4;
  --sky-2: #7ec9ee;
  --sky-3: #4ea6e8;
  --sky-4: #2f7fe0;
  --panel: rgba(255, 255, 255, 0.97);
  --text-dark: #24305f;
  --text-muted: #445389;
  --shadow: 0 12px 30px rgba(16, 31, 77, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  background: var(--sky-1);
  overflow: hidden;
}

body {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1), var(--sky-4));
  color: var(--text-dark);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #1f2c7d;
  outline-offset: 3px;
}

.noscript {
  padding: 12px 16px;
  background: #fff3cd;
  color: #5c4300;
  text-align: center;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

main {
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

.section {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(12px, 2vh, 26px) clamp(10px, 2vw, 32px);
  overflow: hidden;
  --section-bg: transparent;
}

.section::before {
  position: absolute;
  z-index: -1;
  inset: -2px;
  background: var(--section-bg);
  content: "";
}

.slide-1 {
  --section-bg: linear-gradient(180deg, #b7e5f8, var(--sky-1));
}

.slide-2 {
  --section-bg: linear-gradient(180deg, #95d5f3, var(--sky-2));
}

.slide-3 {
  --section-bg: linear-gradient(180deg, #68b8ed, var(--sky-3));
}

.slide-4 {
  --section-bg: linear-gradient(180deg, #4f98ea, var(--sky-4));
}

.wrapper {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 100%;
}

.wrapper img {
  width: min(1050px, 86vw, 82dvh);
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.clouds {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud {
  position: absolute;
  left: 0;
  animation: float var(--cloud-duration, 60s) linear forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.cloud-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  opacity: 0.9;
}

@keyframes float {
  from { transform: translate3d(-100%, 0, 0); }
  to { transform: translate3d(100vw, 0, 0); }
}

/* Format Engine frame */

.widget-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  height: 100%;
  min-height: 0;
  max-height: 820px;
  padding: clamp(18px, 2.4vw, 30px);
  border: clamp(4px, 0.4vw, 6px) solid var(--gold);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.widget-frame-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  margin-bottom: clamp(14px, 2vh, 22px);
  flex-shrink: 0;
}

.widget-eyebrow,
.thanks-eyebrow {
  margin: 0 0 6px;
  color: #1f2c7d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tce-title,
.thanks-title {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.05;
}

.widget-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.widget-tab {
  min-height: 42px;
  padding: 9px 15px;
  border: 2px solid rgba(250, 181, 25, 0.78);
  border-radius: 999px;
  background: #fff;
  color: #1f2c7d;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.widget-tab:hover,
.widget-tab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.widget-tab.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: #101010;
}

.widget-stage {
  display: grid;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.widget-panel {
  grid-area: 1 / 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.widget-panel[hidden] {
  display: none;
}

.widget-intro {
  max-width: 720px;
  margin: 0 auto clamp(12px, 1.7vh, 18px);
  text-align: center;
  flex-shrink: 0;
}

.widget-intro h2 {
  margin: 0 0 5px;
  color: #1f2c7d;
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
}

.widget-intro p,
.widget-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.media-widget {
  display: flex;
  container-type: inline-size;
  flex-direction: column;
  align-items: center;
  gap: clamp(9px, 1.4vh, 14px);
  width: min(940px, 100%);
  margin: 0 auto;
  flex: 1;
  min-height: 0;
}

.media-focus {
  width: auto;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100cqw * 9 / 16);
  flex: 1 0 140px;
  min-height: 140px;
  overflow: hidden;
  border: 4px solid var(--gold);
  border-radius: clamp(18px, 2vw, 28px);
  background: #d8d8d8 center / contain no-repeat;
  box-shadow: 0 7px 24px rgba(16, 31, 77, 0.24);
  cursor: zoom-in;
  position: relative;
}

.media-focus > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-focus.is-video {
  background-image: none !important;
  cursor: default;
}

.media-focus iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.media-focus.is-empty {
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #eef7ff, #fff8dc);
  text-align: center;
  cursor: default;
}

.media-focus.is-empty::after {
  max-width: 42ch;
  color: var(--text-muted);
  font-weight: 800;
  line-height: 1.45;
  content: attr(data-empty-message);
}

.media-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(940px, 100%);
  flex-shrink: 0;
}

.thumbnail-viewport {
  min-width: 0;
  overflow: hidden;
  padding: 4px 2px;
}

.thumbnail-row {
  --visible-thumbs: 5;
  display: grid;
  grid-template-columns: repeat(var(--visible-thumbs), minmax(0, 1fr));
  gap: 12px;
  min-height: 84px;
}

.media-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 4px solid rgba(250, 181, 25, 0.72);
  border-radius: clamp(12px, 1.5vw, 18px);
  background: #eaf2f8 center / contain no-repeat;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.media-thumb.is-active {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 8px 18px rgba(16, 31, 77, 0.22);
}

.gallery-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 3px solid var(--gold);
  border-radius: 16px;
  background: #fff;
  color: #1f2c7d;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(16, 31, 77, 0.16);
  cursor: pointer;
}

.gallery-nav[disabled] {
  opacity: 0.4;
  cursor: default;
}

.media-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  flex-shrink: 0;
}

.download-grid,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 46svh;
  padding: 3px;
  overflow: auto;
}

.download-card,
.shop-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88px;
  padding: 16px;
  border: 2px solid rgba(36, 48, 95, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
  gap: 4px;
}

.download-card strong,
.shop-card strong {
  color: #1f2c7d;
}

.download-card span,
.shop-card span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.download-card.is-ready {
  border-color: var(--gold);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download-card.is-unavailable strong { text-decoration: line-through; }
.download-card.is-unavailable .coming-soon { color: #b42318; font-weight: 700; }
.release-checksum { color: #1f2c7d; text-decoration: underline; }

.download-updated {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.widget-dev-note {
  max-width: 52ch;
  margin: 24px auto 0;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
}

.download-card.is-ready:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.widget-note {
  margin-top: 12px;
  text-align: center;
}

.widget-primary-link {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
}

.shop-placeholder {
  display: flex;
  align-items: center;
  max-width: 760px;
  margin: 26px auto 0;
  padding: 24px;
  border: 2px dashed rgba(36, 48, 95, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  gap: 18px;
}

.shop-placeholder p {
  margin: 5px 0 0;
  color: var(--text-muted);
  line-height: 1.4;
}

.shop-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--gold);
  color: #1f2c7d;
  font-size: 2rem;
  font-weight: 900;
}

/* About frame */

.sphinixx-arena {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(1320px, 100%);
  height: 100%;
  min-height: 0;
  gap: clamp(12px, 2vh, 24px);
}

.sphinixx-title-wrap {
  z-index: 4;
  text-align: center;
  flex-shrink: 0;
}

.sphinixx-title {
  color: var(--gold);
  font-size: clamp(2.2rem, min(6vw, 9vh), 5.8rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 7px 20px rgba(0, 0, 0, 0.22);
  -webkit-text-stroke: 2px #fff;
}

.sphinixx-subtitle {
  margin-top: 14px;
  color: var(--gold);
  font-size: clamp(0.76rem, 1.4vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #fff, 0 6px 16px rgba(0, 0, 0, 0.22);
}

.sph-content-wrap {
  z-index: 3;
  width: min(860px, 100%);
  display: flex;
  min-height: 0;
  flex: 0 1 auto;
}

.sph-info-box,
.thanks-wrapper,
.mailing-box {
  border: 5px solid var(--gold);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.sph-info-box {
  padding: clamp(16px, 2.3vw, 22px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.sph-box-title {
  margin: 0 0 12px;
  color: var(--gold);
  text-align: center;
  text-transform: uppercase;
}

.sph-box-copy {
  max-width: 66ch;
  margin: 0 auto;
  color: #2e396f;
  line-height: 1.48;
  text-align: center;
}

.sph-box-copy + .sph-box-copy {
  margin-top: 11px;
}


.sph-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.sph-fact {
  min-width: 0;
  padding: 11px 10px;
  border: 2px solid rgba(250, 181, 25, 0.82);
  border-radius: 14px;
  background: rgba(255, 248, 220, 0.74);
  text-align: left;
}

.sph-fact strong {
  display: block;
  margin-bottom: 4px;
  color: #1f2c7d;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sph-fact span {
  display: block;
  color: #455286;
  font-size: 0.78rem;
  line-height: 1.35;
}

.sph-box-note {
  padding-top: 11px;
  border-top: 1px solid rgba(36, 48, 95, 0.12);
  font-size: 0.92rem;
}

.sph-box-copy code {
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(61, 41, 245, 0.07);
  color: #1f2c7d;
  font-weight: 800;
}


.sph-about-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.sph-about-kicker {
  margin: 0 0 6px;
  color: #1f2c7d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.sph-about-lede {
  margin: 0;
  color: #2e396f;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.5;
}

.sph-about-copy {
  max-width: 68ch;
  margin: 8px auto 0;
  color: #455286;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sph-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 14px 0 12px;
}

.sph-about-card {
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid rgba(250, 181, 25, 0.82);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf7, #fff8dc);
  text-align: left;
}

.sph-about-card strong {
  display: block;
  margin-bottom: 5px;
  color: #1f2c7d;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sph-about-card span {
  color: #455286;
  font-size: 0.82rem;
  line-height: 1.4;
}

.sph-about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 48, 95, 0.12);
}

.sph-about-footer p {
  max-width: 54ch;
  margin: 0;
  color: #455286;
  font-size: 0.82rem;
  line-height: 1.42;
}

.sph-alpha-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(61, 41, 245, 0.07);
  color: #34427a;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Mailing-list frame */

.thanks-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(860px, 100%);
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.thanks-eyebrow {
  margin-bottom: 10px;
}

.thanks-title {
  max-width: 15ch;
  text-transform: none;
}

.thanks-lede {
  max-width: 55ch;
  margin: 18px auto 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.mailing-box {
  width: min(650px, 100%);
  margin-top: clamp(22px, 4vh, 36px);
  padding: clamp(20px, 3.5vw, 32px);
  border-width: 3px;
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(16, 31, 77, 0.16);
}

.mailing-box h2 {
  margin: 0 0 18px;
  color: #1f2c7d;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

#mailing-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mailing-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

#mailing-form input[type="email"] {
  min-width: 0;
  padding: 13px 16px;
  border: 3px solid var(--gold);
  border-radius: 12px;
  background: #fff;
  color: var(--text-dark);
}

#mailing-form button {
  padding: 12px 22px;
  border: 3px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  cursor: pointer;
}

#mailing-form button:hover {
  border-color: var(--gold-dark);
  background: #ffc33d;
}

.mailing-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--text-dark);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.mailing-consent input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--gold-dark);
}

.mailing-privacy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: #1f2c7d;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}


.mailing-email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  margin: 18px auto 0;
  padding: 13px 22px;
  border: 3px solid var(--gold);
  border-radius: 14px;
  background: var(--gold);
  color: #111;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(16, 31, 77, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.mailing-email-button:hover,
.mailing-email-button:focus-visible {
  transform: translateY(-2px);
  background: #ffc33d;
  box-shadow: 0 9px 20px rgba(16, 31, 77, 0.2);
}

/* Media lightbox */

.lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1200px, 96vw);
  height: min(720px, 86svh);
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 18px;
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 26px;
  transform: translateY(-50%);
}

.lightbox-prev { left: -18px; }
.lightbox-next { right: -18px; }

@media (max-width: 900px) {
  .widget-frame {
    min-height: 0;
  }

  .widget-frame-header {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .widget-tabs {
    justify-content: center;
  }

  .thumbnail-row {
    --visible-thumbs: 3;
  }

  .download-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .sphinixx-arena {
    gap: 16px;
  }

  .sph-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sph-about-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .sph-alpha-badge {
    white-space: normal;
  }

  .sph-content-wrap {
    transform: none;
  }

}

@media (max-width: 600px) {
  .section {
    padding: 14px 10px;
  }

  .widget-frame {
    min-height: 0;
    padding: 18px 14px;
    border-radius: 20px;
  }

  .tce-title {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .widget-tab {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 0.85rem;
  }

  .media-focus {
    border-width: 3px;
  }

  .media-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 7px;
  }

  .gallery-nav {
    width: 40px;
    height: 44px;
    border-radius: 13px;
  }

  .thumbnail-row {
    gap: 7px;
    min-height: 60px;
  }

  .media-thumb {
    border-width: 3px;
  }

  .shop-placeholder {
    align-items: flex-start;
    flex-direction: column;
  }

  .sphinixx-title {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
    letter-spacing: 0.08em;
    -webkit-text-stroke-width: 1px;
  }

  .sphinixx-subtitle {
    max-width: 30ch;
    margin-inline: auto;
  }

  .sph-about-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-block: 13px;
  }

  .sph-about-card {
    padding: 11px 12px;
  }

  .sph-about-copy {
    font-size: 0.84rem;
    line-height: 1.42;
  }

  .sph-about-footer {
    padding-top: 10px;
  }

  .sph-info-box,
  .thanks-wrapper {
    border-width: 4px;
    border-radius: 22px;
  }

  .thanks-wrapper {
    padding: 28px 16px;
  }

  .mailing-fields {
    grid-template-columns: 1fr;
  }

  #mailing-form button {
    width: 100%;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

@media (max-height: 760px) and (min-width: 601px) {
  .section {
    padding-block: 16px;
  }

  .widget-frame {
    min-height: 0;
    padding-block: 16px;
  }

  .widget-frame-header {
    margin-bottom: 10px;
  }

  .widget-intro {
    margin-bottom: 9px;
  }

  .media-focus {
    min-height: 120px;
    flex-basis: 120px;
  }

  .thumbnail-row {
    min-height: 64px;
  }

  .sphinixx-arena {
    min-height: 0;
    gap: 12px;
  }

  .sph-info-box {
    padding: 16px 20px;
  }

  .thanks-wrapper {
    padding-block: 30px;
  }

  .thanks-lede,
  .mailing-box {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation-duration: var(--cloud-duration, 60s) !important;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Experimental download gate */
.download-disclaimer{position:fixed;z-index:10020;inset:0;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(10,18,48,.78);backdrop-filter:blur(6px)}
.download-disclaimer.open{display:flex}
.download-disclaimer-card{display:flex;flex-direction:column;width:min(760px,96vw);max-height:min(760px,90svh);overflow:hidden;border:5px solid var(--gold);border-radius:26px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.34)}
.download-disclaimer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 14px;border-bottom:1px solid rgba(36,48,95,.12)}
.download-disclaimer-head h2{margin:0;color:#1f2c7d;font-size:clamp(1.6rem,4vw,2.3rem)}
.download-disclaimer-close{width:42px;height:42px;border:2px solid var(--gold);border-radius:12px;background:#fff;color:#1f2c7d;font-weight:900;cursor:pointer}
.download-disclaimer-scroll{overflow:auto;padding:18px 24px;color:#314073;line-height:1.58}
.download-disclaimer-scroll p:first-child{margin-top:0}.download-disclaimer-scroll p:last-child{margin-bottom:0}
.disclaimer-doc-link{color:#1f2c7d;font-weight:900;text-decoration:underline}
.download-disclaimer-actions{display:flex;justify-content:flex-end;gap:10px;padding:15px 24px 20px;border-top:1px solid rgba(36,48,95,.12)}
.download-disclaimer-actions button{padding:11px 16px;border:2px solid var(--gold);border-radius:12px;font-weight:900;cursor:pointer}
.download-disclaimer-cancel{background:#fff;color:#1f2c7d}.download-disclaimer-continue{background:var(--gold);color:#111}
@media(max-width:600px){.download-disclaimer-actions{flex-direction:column-reverse}.download-disclaimer-actions button{width:100%}}
