.theme-tipograf {
  --bg: #0b0f0a;
  --bg-alt: #10160e;
  --surface: #121a13;
  --surface-warm: #1a2418;
  --fg: #f7f3e8;
  --fg-2: #d9d3c1;
  --muted: #a6a294;
  --border: #2e3829;
  --border-soft: #1f2919;
  --accent: #d8b25a;
  --accent-on: #171204;
  --accent-hover: #c9a14b;
  --accent-active: #b8903f;
  --focus-ring: 0 0 0 4px rgba(216, 178, 90, 0.32);
  --spot-rgb: 216, 178, 90;
  --glow: rgba(216, 178, 90, 0.16);
  background:
    radial-gradient(circle at 72% -12%, rgba(216, 178, 90, 0.14), transparent 52%),
    var(--bg);
}

.theme-tipograf ::selection {
  background: var(--accent);
  color: var(--accent-on);
}

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

.game-hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 84px) clamp(44px, 6vw, 78px);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.game-hero-copy {
  display: grid;
  gap: var(--space-5);
}

.game-logo {
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.55));
}

.game-tagline {
  max-width: 44ch;
  color: var(--fg-2);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.theme-tipograf .tag {
  border-color: var(--border);
  color: var(--fg-2);
}

.theme-tipograf .tag-live {
  border-color: rgba(216, 178, 90, 0.45);
  color: var(--accent);
}

.theme-tipograf .tag-dot {
  background: var(--accent);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.btn:disabled {
  background: var(--surface-warm);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.download-note {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-phone {
  display: grid;
  gap: var(--space-4);
  justify-items: center;
}

.phone-frame {
  width: min(100%, 292px);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: #090c07;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(216, 178, 90, 0.14);
}

.phone-screen {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-slider {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(14px) scale(1.05);
  filter: blur(7px);
  transition:
    opacity 720ms var(--ease-standard),
    transform 720ms var(--ease-standard),
    filter 720ms var(--ease-standard);
  will-change: opacity, transform, filter;
}

.phone-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.phone-progress {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 14px;
  height: 3px;
  border-radius: 999px;
  background: rgba(247, 243, 232, 0.16);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.phone-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f2d68a);
  box-shadow: 0 0 12px rgba(216, 178, 90, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .phone-slide {
    transition: opacity 300ms linear;
    transform: none;
    filter: none;
  }
}

.phone-caption {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.phone-caption img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
}

.game-section {
  padding-block: clamp(52px, 7vw, 92px);
  border-bottom: 1px solid var(--border-soft);
}

.game-section:last-of-type {
  border-bottom: 0;
}

.game-section .section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.game-section .lead {
  max-width: 62ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.fact {
  display: grid;
  gap: var(--space-2);
}

.fact-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.fact-value.is-gold {
  color: var(--accent);
}

.fact-label {
  color: var(--muted);
  font-size: var(--text-sm);
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: clamp(32px, 4vw, 48px);
}

.mode {
  display: grid;
  gap: var(--space-3);
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(216, 178, 90, 0.05), transparent 60%),
    var(--surface);
}

.mode-num {
  color: var(--accent);
}

.mode h3 {
  font-size: var(--text-xl);
}

.mode p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.features {
  display: grid;
  gap: 0;
  margin-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border);
}

.feature {
  display: grid;
  grid-template-columns: 72px minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-4) var(--space-6);
  align-items: baseline;
  padding-block: clamp(18px, 2.4vw, 26px);
  border-bottom: 1px solid var(--border);
}

.feature-num {
  color: var(--accent);
}

.feature h3 {
  font-size: var(--text-lg);
}

.feature p {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.shots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}

.shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
  margin-top: clamp(28px, 4vw, 44px);
}

.shot {
  display: block;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #090c07;
  overflow: hidden;
  cursor: zoom-in;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

@media (hover: hover) {
  .shot:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
  }
}

.shot:focus-visible {
  box-shadow: var(--focus-ring);
  border-color: var(--accent);
}

.download-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 10% 30%, rgba(216, 178, 90, 0.16), transparent 58%),
    var(--surface);
}

.download-icon {
  width: clamp(64px, 9vw, 92px);
  height: clamp(64px, 9vw, 92px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 22%;
  overflow: hidden;
}

.download-icon img {
  width: 100%;
  height: 100%;
}

.download-copy {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.download-copy h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.download-copy p {
  max-width: 54ch;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.mail-line {
  color: var(--fg-2);
  font-size: var(--text-sm);
}

.mail-line a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 178, 90, 0.4);
}

.mail-line a:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.shot-dialog {
  width: min(94vw, 480px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #090c07;
  color: var(--fg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.shot-dialog::backdrop {
  background: rgba(4, 7, 3, 0.86);
  backdrop-filter: blur(6px);
}

.shot-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 8px 8px 8px var(--space-4);
  border-bottom: 1px solid var(--border-soft);
}

.shot-dialog-bar .mono {
  font-size: 10px;
  letter-spacing: 0.16em;
}

.shot-tools {
  display: flex;
  gap: var(--space-2);
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shot-stage {
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: #060904;
}

.shot-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(92vh - 136px);
  object-fit: contain;
  border-radius: 10px;
}

@media (max-width: 1023px) {
  .game-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-phone {
    justify-items: start;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .fact {
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-4);
  }

  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .modes {
    grid-template-columns: 1fr;
  }

  .feature {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
  }

  .feature h3 {
    grid-column: 2;
  }

  .feature p {
    grid-column: 2;
  }

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

@media (max-width: 767px) {
  .shots {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-3);
    scrollbar-width: thin;
  }

  .shot {
    flex: 0 0 min(62vw, 250px);
    scroll-snap-align: start;
  }
}

@media (max-width: 639px) {
  .game-logo {
    width: 100%;
  }

  .phone-frame {
    width: min(100%, 260px);
  }

  .fact {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

  .download-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .download-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
