:root {
  --fot-bg: #07070a;
  --fot-line: rgba(255, 255, 255, 0.13);
  --fot-line-strong: rgba(255, 255, 255, 0.24);
  --fot-text: #f4f1ea;
  --fot-muted: rgba(244, 241, 234, 0.74);
  --fot-faint: rgba(244, 241, 234, 0.58);
  --fot-gold: #e8b84a;
  --fot-patreon: #ff424d;
  --fot-steam: #66c0f4;
  --fot-font: "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --fot-nav-h: 4rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  background: var(--fot-bg);
  scrollbar-gutter: stable;
}

body.downloads-page {
  min-height: 100vh;
  margin: 0;
  padding-top: var(--fot-nav-h);
  color: var(--fot-text);
  font-family: var(--fot-font);
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.58) 0%, rgba(7, 7, 10, 0.9) 48%, rgba(7, 7, 10, 0.98) 100%),
    url("../../images/hero/intro-1200.webp") center top / cover no-repeat fixed,
    var(--fot-bg);
}

body.downloads-page.bonus-page {
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.72) 0%, rgba(7, 7, 10, 0.92) 46%, rgba(7, 7, 10, 0.99) 100%),
    linear-gradient(112deg, rgba(232, 184, 74, 0.08) 0%, rgba(255, 66, 77, 0.055) 44%, rgba(102, 192, 244, 0.035) 100%),
    url("../../images/hero/intro-1200.webp") center top / cover no-repeat fixed,
    var(--fot-bg);
}

@media (min-width: 1400px) {
  body.downloads-page {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.58) 0%, rgba(7, 7, 10, 0.9) 48%, rgba(7, 7, 10, 0.98) 100%),
      url("../../images/hero/intro-1600.webp") center top / cover no-repeat fixed,
      var(--fot-bg);
  }

  body.downloads-page.bonus-page {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.74) 0%, rgba(7, 7, 10, 0.92) 46%, rgba(7, 7, 10, 0.99) 100%),
      linear-gradient(112deg, rgba(232, 184, 74, 0.08) 0%, rgba(255, 66, 77, 0.055) 44%, rgba(102, 192, 244, 0.035) 100%),
      url("../../images/hero/intro-1600.webp") center top / cover no-repeat fixed,
      var(--fot-bg);
  }
}

@media (max-width: 760px) {
  body.downloads-page {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.66) 0%, rgba(7, 7, 10, 0.92) 48%, rgba(7, 7, 10, 0.99) 100%),
      url("../../images/hero/intro-720.webp") center top / cover no-repeat,
      var(--fot-bg);
  }

  body.downloads-page.bonus-page {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.78) 0%, rgba(7, 7, 10, 0.94) 48%, rgba(7, 7, 10, 0.99) 100%),
      linear-gradient(112deg, rgba(232, 184, 74, 0.08) 0%, rgba(255, 66, 77, 0.055) 46%, rgba(102, 192, 244, 0.035) 100%),
      url("../../images/hero/intro-720.webp") center top / cover no-repeat,
      var(--fot-bg);
  }
}

a { color: inherit; }

#header nav ul li a[aria-current="page"] {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.download-nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  min-height: var(--fot-nav-h);
  background: rgba(7, 7, 10, 0.9);
  border-bottom: 1px solid var(--fot-line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.download-nav__inner {
  width: min(100% - 1.4rem, 1180px);
  min-height: var(--fot-nav-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.8vw, 1.7rem);
}

.download-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 2.7rem;
  color: #fff;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap !important;
}

.download-brand span {
  margin-left: 0.22em;
  color: var(--fot-gold);
}

.download-nav__links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.18rem, 0.45vw, 0.48rem);
}

.download-nav__links a,
.download-action,
.download-button,
.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 1.1rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.08s ease, border-color 0.08s ease, background 0.08s ease;
}

.download-nav__links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-nav__links a:hover,
.download-nav__links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.download-action--patreon {
  background: linear-gradient(135deg, #ff5a63, #ff424d 55%, #e02834) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(255, 66, 77, 0.38);
}

.download-action--steam {
  background: rgba(102, 192, 244, 0.14) !important;
  border-color: rgba(102, 192, 244, 0.45) !important;
  color: var(--fot-steam) !important;
}

/* Patreon/Steam marks on CTA buttons: same icons as the navbar (--icon-patreon / --icon-steam from fot.css), tinted with the text colour. */
body:not(.is-signed-in) .download-button[data-sign-in]::before,
.download-tier__action::before,
.download-link.download-link--locked::before,
.download-action--patreon::before,
.download-action--steam::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.5em;
  font-size: inherit;
  vertical-align: -0.2em;
  background: currentColor;
  -webkit-mask: var(--icon-patreon) center / contain no-repeat;
  mask: var(--icon-patreon) center / contain no-repeat;
}

.download-action--steam::before {
  -webkit-mask-image: var(--icon-steam);
  mask-image: var(--icon-steam);
}

.download-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  padding: 0.22rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.download-lang__flag {
  position: relative;
  display: inline-block;
  width: 1.34rem;
  height: 0.9rem;
  overflow: hidden;
  border-radius: 0.16rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.download-lang__flag--us {
  background:
    linear-gradient(#21468b 0 0) 0 0 / 42% 54% no-repeat,
    repeating-linear-gradient(to bottom, #b22234 0 7.7%, #fff 7.7% 15.4%);
}

.download-lang__flag--us::before {
  content: "";
  position: absolute;
  left: 0.13rem;
  top: 0.11rem;
  width: 0.12rem;
  height: 0.12rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0.22rem 0 #fff, 0.44rem 0 #fff, 0 0.2rem #fff, 0.22rem 0.2rem #fff, 0.44rem 0.2rem #fff;
}

.download-lang__flag--cn { background: #de2910; }

.download-lang__flag--cn::before {
  content: "★";
  position: absolute;
  left: 0.13rem;
  top: 0.02rem;
  color: #ffde00;
  font-size: 0.42rem;
  line-height: 1;
}

.download-lang__flag--ru {
  background: linear-gradient(to bottom, #fff 0 33.333%, #0039a6 33.333% 66.666%, #d52b1e 66.666% 100%);
}

.download-lang__flag--fr {
  background: linear-gradient(to right, #0055a4 0 33.333%, #fff 33.333% 66.666%, #ef4135 66.666% 100%);
}

.download-shell {
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
}

.download-main {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.35rem, 3vh, 2.2rem) 0 clamp(1.5rem, 4vw, 3rem);
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.55fr);
  align-items: end;
  gap: clamp(1rem, 2vw, 1.6rem);
  text-align: left;
}

.download-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  color: var(--fot-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.download-kicker::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--fot-gold), transparent);
  border-radius: 2px;
}

.download-title {
  max-width: 16em;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.03;
  text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

.download-subtitle {
  max-width: 44rem;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.auth-panel {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.85rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.auth-panel__status {
  margin: 0 0 0.55rem;
  color: var(--fot-muted);
  font-size: 0.86rem;
  line-height: 1.25;
}

.auth-panel__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
}

.download-button {
  width: 100%;
  min-height: 2.45rem;
  background: linear-gradient(135deg, #c8ecc0, #7ec87a) !important;
  color: #143016 !important;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(120, 200, 100, 0.28);
}

.download-button::before {
  content: "▸";
  margin-right: 0.45rem;
  font-size: 0.78em;
}

.download-button:hover,
.download-action:hover,
.download-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.download-button:disabled {
  cursor: default;
  filter: grayscale(0.2) brightness(0.82);
  transform: none;
}

.download-button--ghost {
  width: auto;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border-color: var(--fot-line-strong) !important;
  box-shadow: none;
}

.download-button--ghost::before { content: none; }

.download-board {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.024)),
    rgba(10, 8, 12, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.download-table { width: 100%; }

.download-tier + .download-tier {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.download-tier__header {
  display: grid;
  grid-template-columns: minmax(10rem, 0.52fr) minmax(9rem, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 1.05rem;
  background: rgba(255, 255, 255, 0.035);
}

.download-tier:first-child .download-tier__header {
  background: linear-gradient(90deg, rgba(126, 200, 122, 0.13), rgba(232, 184, 74, 0.055));
}

.download-tier--premium .download-tier__header {
  background: linear-gradient(90deg, rgba(232, 184, 74, 0.14), rgba(255, 66, 77, 0.055));
}

.download-tier--test {
  opacity: 0.84;
}

.download-tier--test .download-tier__header {
  padding-top: 0.65rem;
  padding-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.035);
}

.download-tier__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--fot-gold);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.bonus-page .download-main {
  gap: 0;
  padding-top: clamp(1rem, 2.5vh, 2rem);
}

.bonus-page .download-shell {
  width: min(100% - clamp(1.25rem, 5vw, 5rem), 1320px);
}

.bonus-page .bonus-hero {
  grid-template-columns: minmax(25rem, 0.92fr) minmax(22rem, 0.74fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: min(42rem, calc(100vh - var(--fot-nav-h) - 2rem));
}

.bonus-page .bonus-hero__copy {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  padding-bottom: 0.5rem;
}

.bonus-page .download-title {
  max-width: 8.6em;
  font-size: clamp(2.35rem, 3.25vw, 3.45rem);
  line-height: 1.03;
}

.bonus-page .download-kicker {
  align-self: flex-start;
}

.bonus-page .download-subtitle {
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  font-weight: 800;
}

.bonus-page .auth-panel {
  width: min(100%, 28rem);
  margin-top: 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bonus-page .auth-panel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.bonus-page .auth-panel__actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.bonus-hero__media {
  position: relative;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  width: min(100%, 42rem);
  justify-self: start;
  aspect-ratio: 0.76;
  min-height: 0;
  max-height: min(76vh, 44rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58);
}

.bonus-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.bonus-page .download-board {
  width: min(100%, 28rem);
  margin-top: 1.15rem;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    linear-gradient(90deg, rgba(232, 184, 74, 0.04), rgba(255, 66, 77, 0.028)),
    rgba(14, 12, 17, 0.94);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.bonus-page .download-error {
  position: relative;
  width: min(100%, 28rem);
  margin-top: 0.75rem;
  padding: 0.72rem 0.9rem 0.72rem 2.25rem;
  border-radius: 0.85rem;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.25;
  box-shadow: none;
}

.bonus-page .download-error::before {
  content: "";
  position: absolute;
  left: 0.9rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  transform: translateY(-50%);
  background: currentColor;
  opacity: 0.9;
}

.bonus-page .download-error[data-notice-kind="info"] {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(238, 235, 228, 0.78);
}

.bonus-page .download-error[data-notice-kind="success"] {
  border-color: rgba(126, 200, 122, 0.22);
  background: rgba(126, 200, 122, 0.08);
  color: rgba(215, 245, 207, 0.9);
}

.bonus-page .download-error[data-notice-kind="warning"] {
  border-color: rgba(232, 184, 74, 0.26);
  background: rgba(232, 184, 74, 0.09);
  color: rgba(255, 231, 174, 0.92);
}

.bonus-page .download-error[data-notice-kind="error"] {
  border-color: rgba(255, 66, 77, 0.24);
  background: rgba(255, 66, 77, 0.09);
  color: rgba(255, 215, 218, 0.94);
}

.bonus-page .download-tier__header {
  display: none;
}

.bonus-page .download-tier__eyebrow {
  display: none;
}

.bonus-page .download-tier__header h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(232, 184, 74, 0.92);
}

.bonus-page .download-tier__meta {
  display: none;
}

.bonus-page .download-build {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon main specs"
    "button button button";
  gap: 0.2rem 0.85rem;
  min-height: 0;
  padding: 1.05rem;
  border: 0;
}

.bonus-page .download-build__tags {
  display: none;
}

.bonus-page .download-build__main h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.bonus-page .download-build__main p {
  margin-top: 0.2rem;
  font-size: 0.86rem;
  line-height: 1.25;
}

.bonus-page .download-build__specs {
  justify-content: end;
  min-width: 4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.58);
}

.bonus-page .download-build__button {
  justify-self: stretch;
  min-width: 0;
  margin-top: 0.85rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.bonus-page .download-build__button .download-link {
  min-height: 2.8rem;
  font-size: 0.82rem;
}

.download-tier__header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.download-tier__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.download-tier__meta strong {
  color: rgba(255, 255, 255, 0.76);
}

.download-tier__meta strong::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin: 0 0.35rem 0 0.05rem;
  background: rgba(232, 184, 74, 0.72);
  vertical-align: -0.08em;
}

.download-tier__cta {
  justify-self: end;
  min-width: min(12.5rem, 100%);
}

.download-tier__state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 0.8rem;
  color: rgba(244, 241, 234, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.download-tier__state {
  color: rgba(255, 255, 255, 0.72);
}

.download-tier__state--ready {
  border-color: rgba(126, 200, 122, 0.3);
  color: rgba(225, 246, 219, 0.94);
  background: rgba(126, 200, 122, 0.1);
}

.download-tier__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.35rem;
  border-radius: 999px;
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.download-builds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0.35rem 1.05rem 0.55rem;
}

.download-tier--premium .download-builds {
  grid-template-columns: 1fr;
}

.download-tier--test .download-builds {
  grid-template-columns: 1fr;
  padding-top: 0.35rem;
  padding-bottom: 0.45rem;
}

.download-build {
  display: grid;
  grid-template-columns: auto minmax(11rem, 1.2fr) minmax(5.5rem, 0.55fr) minmax(7rem, 0.85fr) auto;
  grid-template-areas:
    "icon main specs tags button";
  gap: 0.75rem;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.58rem 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: transparent;
}

.download-build:last-child {
  border-bottom: 0;
}

.download-build__icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border: 1px solid rgba(232, 184, 74, 0.28);
  border-radius: 999px;
  color: rgba(255, 224, 173, 0.9);
  background: rgba(232, 184, 74, 0.055);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.download-build__icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-build__icon svg.download-build__brand {
  fill: currentColor;
  stroke: none;
}

.download-build__main {
  grid-area: main;
  min-width: 0;
}

.download-build__main h3 {
  margin: 0;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.1;
}

.download-build__main p {
  margin: 0.18rem 0 0;
  color: var(--fot-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.download-build__specs {
  grid-area: specs;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 800;
}

.download-build__specs span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
}

.download-build__specs span + span::before { content: none; }

.download-build__tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  justify-content: flex-start;
}

.download-os {
  display: contents;
}

.download-build__tags > span,
.download-os span {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  border-radius: 999px;
  padding: 0 0.48rem;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
}

.download-build__tags > span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
}

.download-os span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.045);
}

.download-build__button {
  grid-area: button;
  align-self: center;
  justify-self: end;
  min-width: 9rem;
}

/* Legacy class kept for generated OS tags. */
/* stylelint-disable-next-line no-duplicate-selectors */
.download-os {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.download-link {
  width: 100%;
  min-height: 2.25rem;
  background: linear-gradient(135deg, #c8ecc0, #7ec87a) !important;
  color: #143016 !important;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(120, 200, 100, 0.28);
}

.download-link::before {
  content: "▸";
  margin-right: 0.45rem;
  font-size: 0.78em;
}

.download-link--locked {
  background: linear-gradient(135deg, #ff626b, #ff424d 56%, #d92e3a) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(255, 66, 77, 0.26);
}

.download-tier--premium .download-link--locked {
  background: linear-gradient(135deg, #f0ca68, #d49a35) !important;
  color: #221508 !important;
  box-shadow: 0 8px 22px rgba(232, 184, 74, 0.24);
}

.download-tier--test .download-link--locked {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--fot-faint) !important;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.download-diagnostics {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.download-diagnostics summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.85rem;
  padding: 0 1.05rem;
  cursor: pointer;
  list-style: none;
  color: var(--fot-muted);
  background: rgba(255, 255, 255, 0.025);
}

.download-diagnostics summary::-webkit-details-marker { display: none; }

.download-diagnostics summary span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-diagnostics summary small {
  color: var(--fot-faint);
  font-size: 0.78rem;
  font-weight: 800;
}

.download-diagnostics summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--fot-gold);
  border-bottom: 2px solid var(--fot-gold);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.download-diagnostics[open] summary::after {
  transform: rotate(225deg) translate(-0.12rem, -0.12rem);
}

.download-diagnostics .download-tier {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.download-error {
  display: none;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 66, 77, 0.32);
  border-radius: 0.85rem;
  background: rgba(255, 66, 77, 0.14);
  color: #ffd7da;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.download-error.is-visible { display: block; }

.download-error[data-notice-kind="info"] {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 241, 234, 0.86);
}

.download-error[data-notice-kind="success"] {
  border-color: rgba(126, 200, 122, 0.28);
  background: rgba(126, 200, 122, 0.11);
  color: rgba(225, 246, 219, 0.92);
}

.download-error[data-notice-kind="warning"] {
  border-color: rgba(232, 184, 74, 0.34);
  background: rgba(232, 184, 74, 0.13);
  color: #ffe6a8;
}

.download-error[data-notice-kind="error"] {
  border-color: rgba(255, 66, 77, 0.32);
  background: rgba(255, 66, 77, 0.14);
  color: #ffd7da;
}

.download-changelog,
.download-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(10, 8, 12, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.download-changelog summary,
.download-media summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.15rem;
  padding: 0 1.1rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.download-changelog summary::-webkit-details-marker,
.download-media summary::-webkit-details-marker { display: none; }

.download-changelog summary::after,
.download-media summary::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--fot-gold);
  border-bottom: 2px solid var(--fot-gold);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.download-changelog[open] summary::after,
.download-media[open] summary::after {
  transform: rotate(225deg) translate(-0.15rem, -0.15rem);
}

.download-changelog summary span,
.download-media summary span {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-changelog summary small,
.download-media summary small {
  color: var(--fot-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* "See it in action": Steam trailer + screenshots (header/box styles shared with .download-changelog). */
.download-media__body {
  display: grid;
  gap: 0.7rem;
  padding: 0 0.75rem 0.75rem;
}

.download-media__trailer {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: #000;
}

.download-media__trailer img,
.download-media__trailer video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-media__trailer video {
  object-fit: contain;
  background: #000;
}

.download-media__play,
.download-media__play:hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.5));
  box-shadow: none;
  cursor: pointer;
}

.download-media__play > span:last-child { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }

.download-media__play-icon {
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  border: 2px solid rgba(232, 184, 74, 0.9);
  border-radius: 999px;
  background: rgba(10, 8, 12, 0.72);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease, background 0.12s ease;
}

.download-media__play-icon::before {
  content: "";
  margin-left: 0.28rem;
  border-style: solid;
  border-width: 0.68rem 0 0.68rem 1.1rem;
  border-color: transparent transparent transparent var(--fot-gold);
}

.download-media__play:hover .download-media__play-icon,
.download-media__play:focus-visible .download-media__play-icon {
  transform: scale(1.07);
  background: rgba(232, 184, 74, 0.2);
}

.download-media__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  text-align: center;
  background: rgba(7, 7, 10, 0.8);
}

.download-media__fallback p,
.download-media__cta p {
  margin: 0;
  color: var(--fot-muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.download-media__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-media__shots li {
  margin: 0;
  padding: 0;
}

.download-media__shot,
.download-media__shot:hover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  line-height: 0;
  cursor: zoom-in;
}

.download-media__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.download-media__shot:hover img,
.download-media__shot:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.download-media__play:focus-visible,
.download-media__shot:focus-visible,
.download-media__btn:focus-visible {
  outline: 2px solid var(--fot-gold);
  outline-offset: 2px;
}

.download-media__cta {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(232, 184, 74, 0.22);
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(255, 66, 77, 0.09), rgba(232, 184, 74, 0.05) 50%, rgba(102, 192, 244, 0.045));
  text-align: center;
}

.download-media__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.download-media__btn {
  display: inline-flex;
  flex: 1 1 13rem;
  align-items: center;
  justify-content: center;
  max-width: 21rem;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.08s ease, filter 0.08s ease;
}

.download-media__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (min-width: 761px) {
  .download-media__body {
    gap: 0.8rem;
    padding: 0 1rem 1rem;
  }

  .download-media__shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .download-media__cta {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    text-align: left;
  }

  .download-media__actions {
    flex-wrap: nowrap;
    width: auto;
  }

  .download-media__btn { flex: 0 0 auto; }
}

html.media-lightbox-open { overflow: hidden; }

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.6rem 0.75rem;
}

.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 6, 0.93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media-lightbox__figure {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 0;
  touch-action: pan-y;
}

.media-lightbox__img {
  display: block;
  width: min(calc(100vw - 1.5rem), calc((100vh - 8.5rem) * 16 / 9), 1600px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 0.5rem;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  user-select: none;
  -webkit-user-drag: none;
}

.media-lightbox__count {
  color: var(--fot-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.media-lightbox__btn,
.media-lightbox__btn:hover {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(10, 8, 12, 0.78);
  box-shadow: none;
  color: #fff;
  line-height: 0;
  cursor: pointer;
}

.media-lightbox__btn:hover,
.media-lightbox__btn:focus-visible {
  border-color: var(--fot-gold);
  color: var(--fot-gold);
  outline: none;
}

.media-lightbox__btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-lightbox__btn--close { top: 0.7rem; right: 0.7rem; }
.media-lightbox__btn--prev { bottom: 0.7rem; left: calc(50% - 3.2rem); }
.media-lightbox__btn--next { bottom: 0.7rem; right: calc(50% - 3.2rem); }

@media (min-width: 761px) {
  .media-lightbox { padding: 3.6rem 4.5rem; }
  .media-lightbox__img { width: min(calc(100vw - 9rem), calc((100vh - 8.5rem) * 16 / 9), 1600px); }
  .media-lightbox__btn--prev { top: calc(50% - 1.4rem); bottom: auto; left: 0.9rem; }
  .media-lightbox__btn--next { top: calc(50% - 1.4rem); bottom: auto; right: 0.9rem; }
}

.download-changelog__body {
  display: grid;
  gap: 0.75rem;
  padding: 0 0.75rem 0.75rem;
}

.changelog-card {
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  background:
    linear-gradient(145deg, rgba(255, 66, 77, 0.08), rgba(232, 184, 74, 0.035) 42%, rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
}

.changelog-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.changelog-card__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
}

.changelog-card__header h2 span {
  margin-left: 0.35rem;
  color: var(--fot-gold);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.changelog-card__header p {
  margin: 0.35rem 0 0;
  color: var(--fot-faint);
  font-size: 0.86rem;
}

.changelog-card__section {
  margin-top: 0.8rem;
}

.changelog-card__section h3 {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.changelog-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.changelog-highlights--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.changelog-highlight {
  min-height: 4.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(232, 184, 74, 0.2);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.changelog-highlight strong {
  display: block;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.changelog-highlight span {
  display: block;
  margin-top: 0.25rem;
  color: var(--fot-muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.changelog-feature-strip {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(126, 200, 122, 0.22);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(126, 200, 122, 0.11), rgba(102, 192, 244, 0.065));
}

.changelog-feature-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.changelog-feature-strip p + p {
  margin-top: 0.35rem;
}

.changelog-feature-strip small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(244, 241, 234, 0.74);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

.changelog-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}

.changelog-list--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.changelog-list--compact li {
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.9rem;
}

.changelog-list li::before {
  content: "▸";
  margin-right: 0.45rem;
  color: var(--fot-gold);
  font-size: 0.72em;
}

.changelog-list span {
  color: rgba(232, 184, 74, 0.72);
}

.changelog-list small {
  display: block;
  margin-top: 0.2rem;
  padding-left: 1.15rem;
  color: var(--fot-muted);
  font-size: 0.86rem;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .download-nav__hide-sm,
  .download-lang {
    display: none;
  }

  .bonus-page .bonus-hero {
    grid-template-columns: minmax(22rem, 0.86fr) minmax(20rem, 0.74fr);
    gap: clamp(1.6rem, 3vw, 3rem);
  }

  .bonus-page .download-title {
    font-size: clamp(2.25rem, 3.8vw, 3.2rem);
  }

  .bonus-hero__media {
    width: min(100%, 33rem);
  }
}

@media (max-width: 980px) {
  .download-hero {
    grid-template-columns: 1fr;
  }

  .bonus-page .bonus-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.25rem;
  }

  .bonus-page .bonus-hero__copy {
    grid-column: auto;
    grid-row: auto;
    align-items: stretch;
  }

  .bonus-hero__media {
    width: min(100%, 31rem);
    justify-self: center;
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
    max-height: none;
    order: -1;
  }

  .bonus-page .download-title {
    max-width: 100%;
    font-size: clamp(2.25rem, 8vw, 3.7rem);
  }

  .bonus-page .download-board {
    width: 100%;
  }

  .bonus-page .download-kicker {
    align-self: center;
  }

  .download-title { max-width: 100%; }

  .download-build {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon main specs"
      "icon tags button";
    gap: 0.45rem 0.65rem;
  }

  .download-tier__header {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .download-tier__meta {
    justify-content: flex-start;
  }

  .download-tier__cta {
    justify-self: stretch;
  }
}

@media (max-width: 760px) {
  :root { --fot-nav-h: 3.45rem; }

  .download-nav__inner {
    width: min(100% - 1rem, 1180px);
    justify-content: space-between;
    gap: 0.6rem;
  }

  .download-brand { font-size: 0.8rem; }

  .download-nav__links { gap: 0.15rem; }

  .download-nav__links a:not(.download-action--patreon) {
    display: none;
  }

  .download-nav__links a {
    min-height: 2.35rem;
    padding: 0 0.75rem;
    font-size: 0.7rem;
  }

  .download-main {
    padding-top: clamp(3.25rem, 8vh, 4.5rem);
  }

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

  .auth-panel__actions {
    grid-template-columns: 1fr;
  }

  .bonus-hero__media {
    width: min(100%, 24rem);
  }

  .bonus-page .download-main {
    padding-top: clamp(1.1rem, 4vh, 2rem);
  }

  .bonus-page .download-title {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }

  .bonus-page .auth-panel,
  .bonus-page .auth-panel__actions {
    width: 100%;
  }

  .bonus-page .download-tier__header {
    grid-template-columns: 1fr;
  }

  .bonus-page .download-build {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon main"
      "icon specs"
      "button button";
    gap: 0.2rem 0.75rem;
  }

  .bonus-page .download-build__specs {
    justify-content: start;
  }

  .download-changelog summary,
  .download-media summary {
    align-items: start;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.7rem 1rem;
  }

  .changelog-highlights,
  .changelog-highlights--four,
  .changelog-list--compact {
    grid-template-columns: 1fr;
  }

  .download-build {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon main"
      "icon specs"
      "tags tags"
      "button button";
    gap: 0.45rem 0.65rem;
    padding: 0.72rem 0.15rem;
  }

  .download-build__tags {
    padding-left: 0;
  }

  .download-build__button {
    justify-self: stretch;
    min-width: 0;
  }
}

/* Integrated patron bonus page */
body.downloads-page.bonus-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at 18% 18%, rgba(232, 184, 74, 0.11), transparent 24rem),
    radial-gradient(circle at 84% 12%, rgba(255, 66, 77, 0.11), transparent 28rem),
    linear-gradient(180deg, #09090d 0%, #07070a 54%, #050507 100%) !important;
  overflow-x: hidden;
}

.bonus-bg {
  position: fixed;
  z-index: -1;
  inset: var(--fot-nav-h) 0 0;
  pointer-events: none;
  overflow: hidden;
  background: #07070a;
}

.bonus-bg::before,
.bonus-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.bonus-bg::before {
  inset: -10vh -8vw;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0.84) 0%, rgba(7, 7, 10, 0.5) 34%, rgba(7, 7, 10, 0.9) 70%, #07070a 100%),
    url("../../images/bonus/professor-throxxa-bonus.webp") left 42% center / min(54vw, 44rem) auto no-repeat;
  opacity: 0.42;
  filter: saturate(0.86) contrast(1.05);
}

.bonus-bg::after {
  background:
    linear-gradient(180deg, rgba(7, 7, 10, 0.12) 0%, rgba(7, 7, 10, 0.88) 82%, #07070a 100%),
    linear-gradient(90deg, rgba(7, 7, 10, 0.74) 0%, rgba(7, 7, 10, 0.22) 42%, rgba(7, 7, 10, 0.84) 68%, #07070a 100%);
}

.bonus-page .download-shell {
  width: min(100% - clamp(1.25rem, 5vw, 5.5rem), 1380px);
}

.bonus-page .download-main {
  min-height: auto;
  padding: 0;
}

.bonus-page .bonus-hero {
  grid-template-columns: minmax(20rem, 0.92fr) minmax(22rem, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: auto;
  padding: clamp(1.6rem, 4vh, 3rem) 0 clamp(2rem, 6vh, 4.5rem);
}

.bonus-page .bonus-hero__media {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: min(100%, 40rem);
  aspect-ratio: 0.78;
  max-height: min(78svh, 47rem);
  border-radius: 1rem;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.bonus-page .bonus-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent 42%);
  pointer-events: none;
}

.bonus-page .bonus-hero__media img {
  object-position: center 27%;
}

.bonus-page .bonus-hero__copy {
  grid-column: 2;
  grid-row: 1;
  width: min(100%, 35rem);
  padding: 0;
}

.bonus-page .download-kicker {
  margin-bottom: 0.55rem;
}

.bonus-page .download-title {
  max-width: 9.2em;
  font-size: clamp(2.35rem, 3.55vw, 4.1rem);
  letter-spacing: 0.055em;
}

.bonus-page .download-subtitle {
  margin-top: 0.78rem;
  color: rgba(244, 241, 234, 0.8);
  font-size: clamp(1.02rem, 1.08vw, 1.2rem);
  font-weight: 900;
}

.bonus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.bonus-meta li {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 0 0.62rem;
  color: rgba(244, 241, 234, 0.72);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.bonus-page .auth-panel {
  width: 100%;
  max-width: 35rem;
  margin-top: 1.35rem;
  padding: 0;
}

.bonus-page .auth-panel__status {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0.55rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: rgba(244, 241, 234, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
}

.bonus-page .auth-panel__actions {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.bonus-page .download-button {
  min-height: 3.15rem;
  padding-inline: 1.25rem;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.bonus-page .download-button--ghost {
  min-width: 8.6rem;
}

.bonus-page .download-error {
  width: 100%;
  max-width: 35rem;
  margin-top: 0.7rem;
  padding: 0.7rem 0.9rem 0.7rem 2.15rem;
  border-radius: 0.72rem;
  font-size: 0.84rem;
  box-shadow: none;
}

.bonus-page .download-error::before {
  left: 0.85rem;
  width: 0.44rem;
  height: 0.44rem;
}

.bonus-page .download-board {
  width: 100%;
  max-width: 35rem;
  margin-top: 0.85rem;
  border-radius: 0.95rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028)),
    rgba(18, 16, 22, 0.92);
}

.bonus-page .download-builds {
  padding: 0;
}

.bonus-page .download-build {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon main specs"
    "icon button button";
  gap: 0.35rem 0.82rem;
  padding: 1.15rem;
}

.bonus-page .download-build__icon {
  width: 2.1rem;
  height: 2.1rem;
}

.bonus-page .download-build__main h3 {
  font-size: 1.04rem;
}

.bonus-page .download-build__main p {
  color: rgba(244, 241, 234, 0.68);
  font-size: 0.82rem;
}

.bonus-page .download-build__specs {
  align-self: start;
  min-width: 4.25rem;
  justify-content: end;
  color: rgba(244, 241, 234, 0.58);
  font-size: 0.78rem;
}

.bonus-page .download-build__button {
  width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.82rem;
}

.bonus-page .download-build__button .download-link {
  min-height: 2.75rem;
}

.bonus-page.is-signed-out .download-board {
  opacity: 0.88;
}

.bonus-page.has-download-links .download-board {
  border-color: rgba(126, 200, 122, 0.28);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 28px rgba(126, 200, 122, 0.06);
}

.bonus-page.has-download-links .auth-panel__status {
  color: rgba(215, 245, 207, 0.86);
}

.bonus-page[data-access-level="none"].is-signed-in .auth-panel__status {
  color: rgba(255, 231, 174, 0.88);
}

@media (min-width: 1500px) {
  .bonus-page .download-shell {
    width: min(100% - 8rem, 1420px);
  }

  .bonus-page .bonus-hero {
    grid-template-columns: minmax(26rem, 0.95fr) minmax(24rem, 0.7fr);
    gap: clamp(3rem, 5vw, 6rem);
  }

  .bonus-page .bonus-hero__media {
    width: min(100%, 43rem);
  }

  .bonus-page .bonus-hero__copy {
    width: min(100%, 34rem);
  }

  .bonus-page .download-title {
    font-size: clamp(3rem, 3.15vw, 4.25rem);
  }
}

@media (max-width: 1120px) {
  .bonus-page .bonus-hero {
    grid-template-columns: minmax(18rem, 0.88fr) minmax(20rem, 0.82fr);
    gap: clamp(1.5rem, 3.5vw, 3rem);
  }

  .bonus-page .bonus-hero__media {
    width: min(100%, 34rem);
  }

  .bonus-page .download-title {
    font-size: clamp(2.2rem, 4vw, 3.35rem);
  }
}

@media (max-width: 900px) {
  .bonus-bg::before {
    background:
      linear-gradient(180deg, rgba(7, 7, 10, 0.42), rgba(7, 7, 10, 0.9) 72%, #07070a 100%),
      url("../../images/bonus/professor-throxxa-bonus.webp") center top / min(92vw, 36rem) auto no-repeat;
    opacity: 0.28;
  }

  .bonus-bg::after {
    background: linear-gradient(180deg, rgba(7, 7, 10, 0.2), rgba(7, 7, 10, 0.94) 56%, #07070a 100%);
  }

  .bonus-page .bonus-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.15rem;
    min-height: 0;
    padding: clamp(1.25rem, 4vh, 2.3rem) 0 clamp(2rem, 6vh, 3rem);
  }

  .bonus-page .bonus-hero__media {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: min(100%, 31rem);
    max-height: min(56svh, 32rem);
    order: -1;
  }

  .bonus-page .bonus-hero__copy {
    grid-column: 1;
    grid-row: 2;
    align-items: stretch;
    width: min(100%, 34rem);
  }

  .bonus-page .download-kicker {
    align-self: flex-start;
  }

  .bonus-page .download-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }
}

@media (max-width: 620px) {
  .bonus-page .download-shell {
    width: min(100% - 1.1rem, 38rem);
  }

  .bonus-page .bonus-hero {
    padding-top: 0.85rem;
  }

  .bonus-page .bonus-hero__media {
    width: min(100%, 24rem);
    max-height: 48svh;
    border-radius: 0.85rem;
  }

  .bonus-page .download-title {
    font-size: clamp(2rem, 12vw, 2.85rem);
  }

  .bonus-page .auth-panel__actions {
    grid-template-columns: 1fr;
  }

  .bonus-page .download-button--ghost {
    width: 100%;
    min-width: 0;
  }

  .bonus-page .download-build {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "icon main"
      "icon specs"
      "button button";
  }

  .bonus-page .download-build__specs {
    justify-content: start;
  }
}

/* Locked / coming-soon row state (2026-10-24): rows stay quiet, the single unlock CTA lives in the tier header. */
.download-build__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  width: 100%;
  min-height: 2.25rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.download-build__status svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-build__status--soon {
  color: rgba(232, 184, 74, 0.78);
}

.download-build--muted .download-build__icon {
  opacity: 0.55;
}

.download-build--muted .download-build__main h3 {
  color: rgba(255, 255, 255, 0.78);
}

.bonus-page .download-build__status {
  justify-content: center;
}

@media (max-width: 760px) {
  .download-build--muted {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon main button"
      "icon specs button"
      "tags tags tags";
  }

  .download-build--muted .download-build__button {
    justify-self: end;
    align-self: start;
  }

  .download-build__status {
    min-height: 1.5rem;
  }

  .bonus-page .download-build__status {
    justify-content: center;
  }
}

/* Access card + notice bar: centered text (2026-10-24). */
.auth-panel__status,
.bonus-page .auth-panel__status {
  text-align: center;
}

.auth-panel__actions {
  justify-content: center;
}

.download-error,
.bonus-page .download-error {
  text-align: center;
}

/* Bonus notice dot sits inline before the centered text instead of pinned to the left edge. */
.bonus-page .download-error {
  padding-inline: 0.9rem;
}

.bonus-page .download-error::before {
  position: static;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: 0.08em;
  transform: none;
}

/* Dev-only "Local test: <tier>" label (local test allowlist; never sent by the live Worker). */
.auth-panel__test-badge {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: -0.25rem auto 0.55rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: #e8b84a;
  color: #1b1406;
  font: 700 0.72rem/1.3 system-ui, sans-serif;
  text-align: center;
  letter-spacing: 0.02em;
  cursor: help;
}

/* === status/notice parity (bonus + downloads) 2026-10-24 === */
/* Shared: gold-weight status + dotted notice pill on both pages. */
.auth-panel__status,
.downloads-page .auth-panel__status,
.bonus-page .auth-panel__status {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 0.55rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  text-align: center;
  color: rgba(244, 241, 234, 0.72);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.25;
}

/* Soft green when links are ready. */
.downloads-page.has-download-links .auth-panel__status,
.bonus-page.has-download-links .auth-panel__status {
  color: rgba(215, 245, 207, 0.86);
}

/* Gold for signed-in with no paid tier, checkout awaiting, or payment attention. */
.downloads-page[data-access-level="none"].is-signed-in .auth-panel__status,
.bonus-page[data-access-level="none"].is-signed-in .auth-panel__status,
.downloads-page[data-status-kind="checkout"] .auth-panel__status,
.bonus-page[data-status-kind="checkout"] .auth-panel__status,
.downloads-page[data-status-kind="payment"] .auth-panel__status,
.bonus-page[data-status-kind="payment"] .auth-panel__status {
  color: rgba(255, 231, 174, 0.92);
}

.downloads-page[data-status-kind="checking"] .auth-panel__status,
.bonus-page[data-status-kind="checking"] .auth-panel__status {
  color: rgba(244, 241, 234, 0.78);
}

.download-error,
.downloads-page .download-error,
.bonus-page .download-error {
  position: relative;
  display: none;
  width: min(100%, 28rem);
  margin: 0.75rem auto 0;
  padding: 0.72rem 0.9rem;
  padding-inline: 0.9rem;
  border-radius: 0.85rem;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  box-shadow: none;
}

.download-error.is-visible,
.downloads-page .download-error.is-visible,
.bonus-page .download-error.is-visible {
  display: block;
}

.download-error::before,
.downloads-page .download-error::before,
.bonus-page .download-error::before {
  content: "";
  position: static;
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.5rem;
  vertical-align: 0.08em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
  transform: none;
}

.download-error[data-notice-kind="info"],
.downloads-page .download-error[data-notice-kind="info"],
.bonus-page .download-error[data-notice-kind="info"] {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(238, 235, 228, 0.78);
}

.download-error[data-notice-kind="success"],
.downloads-page .download-error[data-notice-kind="success"],
.bonus-page .download-error[data-notice-kind="success"] {
  border: 1px solid rgba(126, 200, 122, 0.22);
  background: rgba(126, 200, 122, 0.08);
  color: rgba(215, 245, 207, 0.9);
}

.download-error[data-notice-kind="warning"],
.downloads-page .download-error[data-notice-kind="warning"],
.bonus-page .download-error[data-notice-kind="warning"] {
  border: 1px solid rgba(232, 184, 74, 0.26);
  background: rgba(232, 184, 74, 0.09);
  color: rgba(255, 231, 174, 0.92);
}

.download-error[data-notice-kind="error"],
.downloads-page .download-error[data-notice-kind="error"],
.bonus-page .download-error[data-notice-kind="error"] {
  border: 1px solid rgba(255, 66, 77, 0.24);
  background: rgba(255, 66, 77, 0.09);
  color: rgba(255, 215, 218, 0.94);
}

/* === short messages 2026-10-24 (FoT rule: every status/notice is ONE short line) === */
/* No dot before notice text; clean centered box. */
.download-error::before,
.downloads-page .download-error::before,
.bonus-page .download-error::before {
  content: none;
  display: none;
}

.download-error,
.downloads-page .download-error,
.bonus-page .download-error {
  padding: 0.62rem 0.9rem;
  text-align: center;
}

/* Refresh/Sign-in busy: in-button 'Checking…' only. Never a wait/progress cursor. */
.download-button:disabled,
.download-button.is-busy,
.bonus-page .download-button:disabled,
.bonus-page .download-button.is-busy {
  cursor: default;
}

.download-button.is-busy {
  opacity: 0.82;
}

@keyframes fot-notice-in {
  from { opacity: 0.35; transform: translateY(2px); }
  to { opacity: 1; transform: none; }
}

.download-error.is-animating {
  animation: fot-notice-in 0.28s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .download-error.is-animating { animation: none; }
}

/* ===== Bonus page: comic game card + "More Patron Bonuses" grid (2026-11-03) ===== */
.bonus-page .download-main {
  display: block;
  padding: clamp(1rem, 3vh, 2rem) 0 clamp(2.5rem, 7vh, 4.5rem);
}

.comic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1rem, 2.2vw, 1.75rem);
  border: 1px solid rgba(232, 184, 74, 0.2);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 78% 0%, rgba(232, 184, 74, 0.12), transparent 26rem),
    radial-gradient(circle at 100% 100%, rgba(255, 66, 77, 0.09), transparent 24rem),
    linear-gradient(160deg, rgba(30, 28, 44, 0.92), rgba(16, 16, 24, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

/* Carousel (3:4) */
.comic-carousel {
  position: relative;
  justify-self: center;
  /* Sized by the available height (viewport minus nav and card padding), width from 3:4. */
  width: min(100%, calc((100vh - var(--fot-nav-h) - 6.5rem) * 0.75), 34.5rem);
  width: min(100%, calc((100svh - var(--fot-nav-h) - 6.5rem) * 0.75), 34.5rem);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: #0d0d14;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  outline: none;
}

.comic-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.7), 0 24px 60px rgba(0, 0, 0, 0.6);
}

.comic-carousel__viewport {
  position: absolute;
  inset: 0;
  touch-action: pan-y;
}

.comic-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.comic-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0s;
}

.comic-slide img,
.comic-slide__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.comic-carousel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(0deg, rgba(7, 7, 10, 0.62), transparent);
  pointer-events: none;
}

.comic-carousel__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 7, 10, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.15s ease;
}

.comic-carousel__arrow--prev { left: 0.7rem; }
.comic-carousel__arrow--next { right: 0.7rem; }

.comic-carousel__arrow svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comic-carousel:hover .comic-carousel__arrow,
.comic-carousel:focus-within .comic-carousel__arrow {
  opacity: 1;
}

.comic-carousel__arrow:hover,
.comic-carousel__arrow:focus-visible {
  background: rgba(232, 184, 74, 0.85);
  color: #1b1406;
  outline: none;
}

.comic-carousel__dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.85rem;
  display: flex;
  gap: 0.2rem;
  transform: translateX(-50%);
}

.comic-carousel__dot {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.comic-carousel__dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: width 0.25s ease, background 0.25s ease;
}

.comic-carousel__dot.is-active::before {
  width: 1.35rem;
  background: var(--fot-gold);
}

.comic-carousel__dot:focus-visible {
  outline: 2px solid var(--fot-gold);
  outline-offset: -2px;
  border-radius: 999px;
}

.comic-carousel.is-single .comic-carousel__arrow,
.comic-carousel.is-single .comic-carousel__dots {
  display: none;
}

@media (hover: none) {
  .comic-carousel__arrow { opacity: 0.85; }
}

/* Copy column */
.comic-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: 34rem;
}

.bonus-page .comic-card__kicker {
  align-self: flex-start;
  margin: 0 0 0.75rem;
  color: var(--fot-gold);
  text-align: left;
}

.comic-card__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 3.6vw, 3.7rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.65);
}

.comic-card__chapter {
  margin: 0.6rem 0 0;
  color: #ffd978;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.comic-card__teaser {
  margin: 0.9rem 0 0;
  color: rgba(244, 241, 234, 0.82);
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  font-style: italic;
  line-height: 1.45;
}

.comic-card__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.comic-card__notes li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.85rem;
  padding: 0 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(244, 241, 234, 0.78);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.comic-card__notes svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: none;
  fill: none;
  stroke: var(--fot-gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comic-card__actions {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.5rem;
}

.comic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.08s ease;
}

.comic-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.comic-cta--play {
  background: linear-gradient(135deg, #ffe08a, #ffd978 30%, #e8b84a 70%, #c99430);
  color: #1f1405;
  box-shadow: 0 12px 34px rgba(232, 184, 74, 0.38);
}

.comic-cta--play::before {
  content: "";
  width: 0;
  height: 0;
  margin-right: 0.65em;
  border-style: solid;
  border-width: 0.45em 0 0.45em 0.72em;
  border-color: transparent transparent transparent currentColor;
}

.comic-cta--locked {
  background: linear-gradient(135deg, #ff626b, #ff424d 56%, #d92e3a);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(255, 66, 77, 0.32);
}

.comic-cta--locked::before {
  content: "";
  flex: none;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.55em;
  background: currentColor;
  -webkit-mask: var(--icon-patreon) center / contain no-repeat;
  mask: var(--icon-patreon) center / contain no-repeat;
}

/* Existing access controls inside the card */
.bonus-page .comic-card .auth-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.bonus-page .comic-card .auth-panel__status {
  margin: 0 0 0.55rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bonus-page .comic-card .auth-panel__actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* Signed out: Sign in with Patreon is the main button (Patreon red, same size as Play Now). */
.bonus-page.is-signed-out .comic-card .download-button[data-sign-in] {
  min-height: 3.5rem;
  background: linear-gradient(135deg, #ff626b, #ff424d 56%, #d92e3a) !important;
  color: #fff !important;
  font-size: 0.98rem;
  letter-spacing: 0.09em;
  box-shadow: 0 12px 30px rgba(255, 66, 77, 0.32);
}

.bonus-page.is-signed-out .comic-card .auth-panel__actions {
  grid-template-columns: 1fr;
}

/* Signed in: Refresh Links and Sign out keep their normal site styling (green Refresh, ghost Sign out). */

.bonus-page .comic-card .download-error {
  width: 100%;
  max-width: none;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bonus-page .comic-card .download-error:not(.is-visible) {
  display: none;
}

/* More Patron Bonuses: a grid, so more cards can sit side by side later. */
.bonus-more {
  margin-top: clamp(2rem, 6vh, 3.5rem);
}

.bonus-more__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bonus-more__title::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--fot-gold), transparent);
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
}

.bonus-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(30, 28, 44, 0.9), rgba(16, 16, 24, 0.95));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.bonus-item__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 0.7rem;
  object-fit: cover;
  object-position: center 24%;
}

.bonus-item__body {
  min-width: 0;
}

.bonus-item__kicker {
  margin: 0 0 0.3rem;
  color: var(--fot-gold);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bonus-item__title {
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.15;
}

.bonus-item__meta {
  margin: 0.3rem 0 0;
  color: rgba(244, 241, 234, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
}

.bonus-item__size {
  white-space: nowrap;
}

.bonus-item__size::before {
  content: "·";
  margin: 0 0.4em;
}

/* The card already shows the name and size, so its table shows only the Unlock/Download button. */
.bonus-page .bonus-item .download-board {
  width: 100%;
  max-width: none;
  margin-top: 0.75rem;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.bonus-page .bonus-item .download-build {
  display: block;
  padding: 0;
  background: none;
}

.bonus-page .bonus-item .download-build__icon,
.bonus-page .bonus-item .download-build__main,
.bonus-page .bonus-item .download-build__specs,
.bonus-page .bonus-item .download-build__tags {
  display: none;
}

.bonus-page .bonus-item .download-build__button {
  margin: 0;
  padding: 0;
  border: 0;
}

.bonus-page .bonus-item .download-build__button .download-link {
  min-height: 2.6rem;
}

@media (max-width: 900px) {
  .comic-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0.85rem 0.85rem 1.25rem;
  }

  .comic-carousel {
    width: min(100%, 30rem, calc(62svh * 0.75));
  }

  .comic-card__copy {
    max-width: none;
    padding: 0 0.35rem;
  }
}

@media (max-width: 620px) {
  .bonus-page .download-main {
    padding-top: 0.6rem;
  }

  .comic-card {
    border-radius: 1.05rem;
  }

  .comic-carousel {
    width: 100%;
    border-radius: 0.8rem;
  }

  .bonus-page .comic-card__kicker {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .comic-card__title {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
  }

  .comic-card__notes li {
    font-size: 0.74rem;
    padding: 0 0.6rem;
  }

  .comic-cta,
  .bonus-page.is-signed-out .comic-card .download-button[data-sign-in] {
    min-height: 3.25rem;
    font-size: 0.9rem;
  }

  .bonus-page .comic-card .auth-panel__actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bonus-page.is-signed-in .comic-card .download-button--ghost {
    width: auto;
    min-width: 7rem;
  }

  .bonus-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .comic-slide,
  .comic-slide.is-active,
  .comic-carousel__dot::before {
    transition: none;
  }
}

/* Content stats (80 images / 55 animations): big gold numbers, one row at every width. */
.comic-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  width: 100%;
  max-width: 26rem;
  margin: 1.1rem 0 0;
}

.comic-stat {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(232, 184, 74, 0.32);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(232, 184, 74, 0.14), rgba(232, 184, 74, 0.04));
  white-space: nowrap;
}

.comic-stat svg {
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: var(--fot-gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comic-stat__num {
  color: #ffd978;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 6px 22px rgba(232, 184, 74, 0.3);
}

.comic-stat__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(244, 241, 234, 0.86);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .comic-card__stats {
    max-width: none;
    gap: 0.5rem;
  }

  .comic-stat {
    flex-wrap: wrap;
    gap: 0.25rem 0.45rem;
    padding: 0.55rem 0.7rem;
  }

  .comic-stat svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .comic-stat__num {
    font-size: 1.65rem;
  }

  .comic-stat__label {
    flex-basis: 100%;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }
}

/* Teaser highlight ("bulge"). */
.comic-card__hl {
  color: #ffd978;
  font-style: italic;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(232, 184, 74, 0.55), 0 0 2px rgba(255, 217, 120, 0.4);
}

/* Desktop: keep the whole game card inside the first screen. */
@media (min-width: 901px) {
  .bonus-page .download-main {
    padding-top: clamp(0.75rem, 2.2vh, 1.75rem);
  }

  .comic-card {
    padding: clamp(0.85rem, 2.2vh, 1.75rem);
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
  }

  .comic-card__title {
    font-size: clamp(1.9rem, min(3.6vw, 6.4vh), 3.7rem);
  }
}

@media (min-width: 901px) and (max-height: 820px) {
  .bonus-page .comic-card__kicker { margin-bottom: 0.5rem; }
  .comic-card__chapter { margin-top: 0.4rem; }
  .comic-card__teaser { margin-top: 0.6rem; font-size: 1.02rem; line-height: 1.38; }
  .comic-card__stats { margin-top: 0.8rem; }
  .comic-stat { padding: 0.45rem 0.75rem; }
  .comic-stat__num { font-size: 1.7rem; }
  .comic-card__notes { margin-top: 0.7rem; }
  .comic-card__actions { margin-top: 1rem; gap: 0.6rem; }
  .comic-cta,
  .bonus-page.is-signed-out .comic-card .download-button[data-sign-in] { min-height: 3.1rem; }
  .bonus-page .comic-card .download-button { min-height: 2.8rem; }
}

@media (min-width: 901px) and (max-height: 680px) {
  .comic-card__title { font-size: clamp(1.75rem, 6vh, 2.6rem); }
  .comic-card__notes li { min-height: 1.7rem; }
  .comic-cta,
  .bonus-page.is-signed-out .comic-card .download-button[data-sign-in] { min-height: 2.9rem; }
  .bonus-page .comic-card .download-button { min-height: 2.6rem; }
}

/* Mobile: art on top, at most ~60% of the screen height. */
@media (max-width: 900px) {
  .comic-carousel {
    width: min(100%, 30rem, calc(58vh * 0.75));
    width: min(100%, 30rem, calc(58svh * 0.75));
  }
}
/* ===== Comic card: premium / readability polish (2026-11-03 g) =====
   Sentence case, larger small text, warmer contrast (#f4f1ea primary, #cfc8bb secondary), gold hairlines.
   Scoped to the bonus comic card; /downloads/ keeps its own styling. */
.bonus-page .comic-card {
  border: 1px solid rgba(232, 184, 74, 0.24);
  border-radius: 1.6rem;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(232, 184, 74, 0.10), transparent 60%),
    radial-gradient(90% 70% at 105% 110%, rgba(255, 66, 77, 0.06), transparent 60%),
    linear-gradient(165deg, rgba(34, 31, 46, 0.94) 0%, rgba(20, 19, 29, 0.96) 55%, rgba(14, 14, 21, 0.97) 100%);
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 217, 120, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 80px rgba(232, 184, 74, 0.035);
}

.bonus-page .comic-carousel {
  border: 1px solid rgba(232, 184, 74, 0.3);
  border-radius: 1.1rem;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.025), 0 28px 60px -12px rgba(0, 0, 0, 0.65);
}

.bonus-page .comic-carousel:focus-visible {
  box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.7), 0 28px 60px -12px rgba(0, 0, 0, 0.65);
}

.bonus-page .comic-card__kicker {
  margin-bottom: 0.85rem;
  color: #e9c46f;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: none;
}

.bonus-page .comic-card__title {
  color: #f8f5ee;
  font-size: clamp(2.1rem, min(3.3vw, 6.2vh), 3.4rem);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.06;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.bonus-page .comic-card__chapter {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(232, 184, 74, 0.42);
  border-radius: 999px;
  background: rgba(232, 184, 74, 0.08);
  color: #ffd978;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
}

.bonus-page .comic-card__teaser {
  margin-top: 1rem;
  color: #cfc8bb;
  font-size: clamp(1.08rem, 1.3vw, 1.22rem);
  line-height: 1.5;
}

/* Stats: one quiet line between gold hairlines; big gold numbers. */
.bonus-page .comic-card__stats {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.6rem 0;
  max-width: none;
  margin-top: 1.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(232, 184, 74, 0.2);
  border-bottom: 1px solid rgba(232, 184, 74, 0.2);
}

/* Last stat needs no trailing gap. */
.bonus-page .comic-card .comic-stat:last-child { padding-right: 0; }

.bonus-page .comic-card .comic-stat {
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0 1.3rem 0 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.bonus-page .comic-card .comic-stat + .comic-stat {
  padding-left: 1.3rem;
  border-left: 1px solid rgba(232, 184, 74, 0.24);
}

.bonus-page .comic-card .comic-stat svg {
  align-self: center;
  width: 1.3rem;
  height: 1.3rem;
  opacity: 0.85;
}

.bonus-page .comic-card .comic-stat__num {
  background: linear-gradient(180deg, #ffe7a6 0%, #ffd978 45%, #d9a441 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: none;
  filter: drop-shadow(0 4px 14px rgba(232, 184, 74, 0.25));
}

.bonus-page .comic-card .comic-stat__label {
  flex-basis: auto;
  color: #cfc8bb;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
}

/* Feature notes: an inline icon list instead of boxed chips. */
.bonus-page .comic-card__notes {
  gap: 0.55rem 1.35rem;
  margin-top: 0.95rem;
}

.bonus-page .comic-card__notes li {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #cfc8bb;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 0.45rem;
  line-height: 1.3;
}

.bonus-page .comic-card__notes svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 1.6;
}

/* Buttons: sentence case, calmer weight, soft depth. Colours unchanged. */
.bonus-page .comic-card__actions { margin-top: 1.4rem; }

.bonus-page .comic-cta,
.bonus-page.is-signed-out .comic-card .download-button[data-sign-in] {
  min-height: 3.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.bonus-page .comic-cta--play {
  box-shadow: 0 10px 28px -6px rgba(232, 184, 74, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.bonus-page .comic-cta--locked,
.bonus-page.is-signed-out .comic-card .download-button[data-sign-in] {
  box-shadow: 0 10px 26px -6px rgba(255, 66, 77, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.bonus-page .comic-cta:hover,
.bonus-page.is-signed-out .comic-card .download-button[data-sign-in]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.bonus-page .comic-cta--play:hover { box-shadow: 0 16px 36px -8px rgba(232, 184, 74, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.bonus-page .comic-card .download-button {
  min-height: 2.95rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.bonus-page .comic-card .auth-panel__status {
  margin-bottom: 0.6rem;
  color: #cfc8bb;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: none;
}

@media (min-width: 901px) and (max-height: 820px) {
  .bonus-page .comic-card__kicker { margin-bottom: 0.55rem; }
  .bonus-page .comic-card__chapter { margin-top: 0.55rem; }
  .bonus-page .comic-card__teaser { margin-top: 0.7rem; font-size: 1.06rem; line-height: 1.42; }
  .bonus-page .comic-card__stats { margin-top: 0.85rem; padding: 0.6rem 0; }
  .bonus-page .comic-card .comic-stat__num { font-size: 2rem; }
  .bonus-page .comic-card__notes { margin-top: 0.75rem; }
  .bonus-page .comic-card__actions { margin-top: 1rem; }
  .bonus-page .comic-cta,
  .bonus-page.is-signed-out .comic-card .download-button[data-sign-in] { min-height: 3.05rem; }
  .bonus-page .comic-card .download-button { min-height: 2.75rem; }
}

@media (min-width: 901px) and (max-height: 680px) {
  .bonus-page .comic-card__title { font-size: clamp(1.8rem, 5.8vh, 2.5rem); }
  .bonus-page .comic-card__stats { padding: 0.5rem 0; }
  .bonus-page .comic-card .comic-stat__num { font-size: 1.8rem; }
  .bonus-page .comic-card__notes { gap: 0.4rem 1.1rem; }
  .bonus-page .comic-cta,
  .bonus-page.is-signed-out .comic-card .download-button[data-sign-in] { min-height: 2.85rem; }
  .bonus-page .comic-card .download-button { min-height: 2.55rem; }
}

@media (max-width: 620px) {
  .bonus-page .comic-card { border-radius: 1.2rem; }
  .bonus-page .comic-card__kicker { font-size: 0.9rem; letter-spacing: 0.01em; }
  .bonus-page .comic-card__title { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .bonus-page .comic-card__stats { display: grid; grid-template-columns: auto auto auto; justify-content: start; }
  .bonus-page .comic-card .comic-stat { flex-wrap: wrap; gap: 0.1rem 0.4rem; padding-right: 0.95rem; }
  .bonus-page .comic-card .comic-stat + .comic-stat { padding-left: 0.95rem; }
  .bonus-page .comic-card .comic-stat:last-child { padding-right: 0; }
  .bonus-page .comic-card .comic-stat svg { width: 1.15rem; height: 1.15rem; }
  .bonus-page .comic-card .comic-stat__num { font-size: 1.7rem; }
  .bonus-page .comic-card .comic-stat { display: grid; grid-template-columns: min-content 1fr; justify-content: start; align-items: center; }
  .bonus-page .comic-card .comic-stat__label { grid-column: 1 / -1; font-size: 0.95rem; }
  .bonus-page .comic-card__notes { gap: 0.5rem 1.1rem; }
  .bonus-page .comic-card__notes li { font-size: 0.875rem; padding: 0; }
  .bonus-page .comic-cta,
  .bonus-page.is-signed-out .comic-card .download-button[data-sign-in] { min-height: 3.15rem; font-size: 1rem; }
  .bonus-page .comic-card .download-button { font-size: 0.95rem; }
}
/* Three stats (images / animations / words): always one inline row on desktop and tablet.
   Numbers, labels, icons, gaps and divider padding scale with the copy column width (container query units),
   so the longest language (ru) still fits at 1024px. Phones (<=620px) keep labels under the numbers. */
.bonus-page .comic-card__copy { container-type: inline-size; }
.bonus-page .comic-card .comic-stat { flex: none; }
.bonus-page .comic-card .comic-stat__num,
.bonus-page .comic-card .comic-stat__label { white-space: nowrap; }

@media (min-width: 621px) {
  .bonus-page .comic-card .comic-card__stats .comic-stat {
    gap: clamp(0.3rem, 1.25cqi, 0.5rem);
    padding-right: clamp(0.6rem, 2.5cqi, 1.3rem);
  }
  .bonus-page .comic-card .comic-card__stats .comic-stat + .comic-stat { padding-left: clamp(0.6rem, 2.5cqi, 1.3rem); }
  .bonus-page .comic-card .comic-card__stats .comic-stat:last-child { padding-right: 0; }
  .bonus-page .comic-card .comic-card__stats .comic-stat svg { width: clamp(1.05rem, 3.9cqi, 1.3rem); height: clamp(1.05rem, 3.9cqi, 1.3rem); }
  .bonus-page .comic-card .comic-card__stats .comic-stat__num { font-size: clamp(1.45rem, 5.3cqi, 2.5rem); }
  .bonus-page .comic-card .comic-card__stats .comic-stat__label { font-size: clamp(0.875rem, 3.2cqi, 1rem); }
}

@media (max-width: 380px) {
  .bonus-page .comic-card .comic-stat { padding-right: 0.7rem; }
  .bonus-page .comic-card .comic-stat + .comic-stat { padding-left: 0.7rem; }
  .bonus-page .comic-card .comic-stat:last-child { padding-right: 0; }
  .bonus-page .comic-card .comic-stat__num { font-size: 1.5rem; }
  .bonus-page .comic-card .comic-stat__label { font-size: 0.9rem; }
}

/* Title: gold gender symbol after the last word, glued to it with nowrap. */
.bonus-page .comic-card__title-end { white-space: nowrap; }

.bonus-page .comic-card__symbol {
  display: inline-block;
  width: 0.7em;
  height: 0.72em;
  margin-left: 0.16em;
  vertical-align: -0.03em;
  fill: none;
  stroke: #ffd978;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(232, 184, 74, 0.55)) drop-shadow(0 0 1px rgba(255, 217, 120, 0.4));
}

/* Game overlay (bonus Play now): full-window black player, largest centered 16:9 box. */
html.has-game-overlay,
body.has-game-overlay {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.game-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2147483000;
  background: #000;
  overflow: hidden;
}

.game-overlay.is-idle,
.game-overlay.is-idle * {
  cursor: none;
}

.game-overlay__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.game-overlay__frame {
  display: block;
  flex: none;
  /* full viewport: the reader letterboxes itself onto its own gradient (a forced 16:9 frame showed black bands) */
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.game-overlay__edge,
.game-overlay__hot {
  position: absolute;
  z-index: 1;
}

.game-overlay__edge--top { top: 0; left: 0; right: 0; height: 6px; }
.game-overlay__edge--bottom { bottom: 0; left: 0; right: 0; height: 6px; }
.game-overlay__edge--left { top: 0; bottom: 0; left: 0; width: 6px; }
.game-overlay__edge--right { top: 0; bottom: 0; right: 0; width: 6px; }

.game-overlay__hot {
  top: 0;
  right: 0;
  width: calc(112px + env(safe-area-inset-right, 0px));
  height: calc(64px + env(safe-area-inset-top, 0px));
}

.game-overlay .game-overlay__btn {
  position: absolute;
  z-index: 3;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  cursor: pointer;
  opacity: 1;
  transition: opacity 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}

.game-overlay .game-overlay__btn[hidden] {
  display: none;
}

.game-overlay__btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.game-overlay .game-overlay__fs {
  right: calc(60px + env(safe-area-inset-right, 0px));
}

.game-overlay .game-overlay__btn:hover,
.game-overlay .game-overlay__btn:active,
.game-overlay .game-overlay__btn:focus {
  background-color: rgba(0, 0, 0, 0.45);
  box-shadow: none;
}

.game-overlay .game-overlay__btn:hover,
.game-overlay .game-overlay__btn:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.game-overlay__btn:focus-visible {
  outline: 2px solid #ffd978;
  outline-offset: 2px;
}

.game-overlay.is-idle .game-overlay__btn {
  opacity: 0;
  pointer-events: none;
}

.game-overlay.is-idle .game-overlay__btn:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Landscape-only on phones: rotate prompt over the game (touch devices in portrait). */
.game-overlay__rotate {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px calc(24px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(24px + env(safe-area-inset-left, 0px));
  background: rgba(6, 4, 10, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  cursor: default;
}
.game-overlay__rotate[hidden] {
  display: none;
}
.game-overlay__rotate-icon {
  width: 64px;
  height: 64px;
  color: #ffd978;
  filter: drop-shadow(0 0 14px rgba(255, 217, 120, 0.28));
}
.game-overlay__rotate-phone {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: fot-rotate-hint 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.game-overlay__rotate-text {
  margin: 0;
  max-width: 260px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
@keyframes fot-rotate-hint {
  0%, 18% { transform: rotate(0deg); }
  45%, 75% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .game-overlay__rotate-phone { animation: none; transform: rotate(-90deg); }
}
/* Keep the close button visible above the prompt. */
.game-overlay.needs-rotate.is-idle,
.game-overlay.needs-rotate.is-idle * {
  cursor: auto;
}
.game-overlay.needs-rotate.is-idle .game-overlay__close {
  opacity: 1;
  pointer-events: auto;
}

/* Feature notes: screen-reader-only detail (languages list, who is voiced). */
.comic-card__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.bonus-page .comic-card__notes li[title] {
  cursor: help;
}


/* Homepage game card (20261113a): sits where Vowbound was.
   The wrapper [data-home-comic].bonus-page reuses bonus comic-card styles without
   turning the whole homepage into body.downloads-page. */
[data-home-comic] {
  overflow-x: clip;
  max-width: 100%;
  /* Shorter than the old Vowbound block; don't reserve 1180px off-screen. */
  contain-intrinsic-size: auto 900px;
}
/* Even vertical rhythm: the gap from the Art CTA to the card, and from
   the card to the News panel's top edge, both come from this section's
   padding. #free keeps its own top padding so the kicker sits inside
   the elevated panel, not flush against the edge. */
#work.main.style3.primary {
  padding-bottom: 0 !important;
}
#throxxa[data-home-comic] + .fot-divider {
  margin: 0;
}
#throxxa[data-home-comic] + .fot-divider + #free > :first-child {
  margin-top: 0;
}
#throxxa[data-home-comic] + .fot-divider + #free .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
[data-home-comic] .download-main {
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}
@media (max-width: 620px) {
  [data-home-comic] .comic-cta,
  [data-home-comic].is-signed-out .comic-card .download-button[data-sign-in],
  [data-home-comic] .comic-card .download-button {
    width: 100%;
    min-height: 3.15rem;
  }
  [data-home-comic] .comic-card .auth-panel__actions {
    width: 100%;
  }
}
