/* ==========================================================================
   Rich Mahjong Match — Casino-luxury gamified landing page
   Palette: deep forest green + metallic gold + mint CTA
   ========================================================================== */

:root {
  --bg-deep: #061510;
  --bg-felt: #0a1f14;
  --bg-panel: #0f2a1c;
  --bg-panel-light: #143222;
  --gold-light: #f5d76e;
  --gold-mid: #d4a853;
  --gold-dark: #9a7428;
  --gold-border: #c9a227;
  --mint: #5ec98a;
  --mint-dark: #3da86c;
  --text-primary: #f8faf5;
  --text-muted: #a8c4b0;
  --heart: #e84545;
  --shadow-gold: 0 0 24px rgba(212, 168, 83, 0.35);
  --radius-pill: 999px;
  --radius-modal: 28px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Chakra Petch", system-ui, sans-serif;
  --header-offset: 88px;
  --z-ticker: 50;
  --z-header: 100;
  --z-sheet: 200;
  --z-modal: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--gold-mid);
  color: #1a1208;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Felt backdrop with pinstripes */
.felt-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, #123222 0%, var(--bg-felt) 45%, var(--bg-deep) 100%);
}

.felt-backdrop__stripes {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(0, 0, 0, 0.5) 12px,
    rgba(0, 0, 0, 0.5) 14px
  );
}

.felt-backdrop__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(900px, 90vw);
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(212, 168, 83, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Level progress rail */
.level-rail {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.level-rail__track {
  width: 6px;
  height: 180px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.25);
  overflow: hidden;
}

.level-rail__fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-mid));
  border-radius: var(--radius-pill);
  transition: height 0.2s ease-out;
  box-shadow: var(--shadow-gold);
}

.level-rail__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-mid);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Orbit header */
.orbit-header {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(15, 42, 28, 0.95), rgba(8, 24, 16, 0.92));
  border: 2px solid rgba(201, 162, 39, 0.45);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.orbit-header.is-scrolled {
  top: 0.65rem;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(212, 168, 83, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.orbit-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.orbit-chip:hover {
  opacity: 0.9;
}

.orbit-chip__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 2px solid var(--gold-mid);
  object-fit: cover;
}

.orbit-chip__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.orbit-chip__text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-light);
}

.orbit-chip__text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.orbit-nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.orbit-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.orbit-btn:hover,
.orbit-btn.is-active {
  color: var(--gold-light);
}

.orbit-btn:hover {
  transform: translateY(-2px);
}

.orbit-btn__ring {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orbit-btn:hover .orbit-btn__ring,
.orbit-btn.is-active .orbit-btn__ring {
  border-color: rgba(212, 168, 83, 0.5);
  box-shadow: inset 0 0 12px rgba(212, 168, 83, 0.15);
}

.orbit-btn--cta {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 45%, var(--gold-dark) 100%);
  color: #1a1208;
  font-weight: 700;
  box-shadow:
    0 4px 0 var(--gold-dark),
    0 6px 20px rgba(0, 0, 0, 0.35);
}

.orbit-btn--cta .orbit-btn__ring {
  display: none;
}

.orbit-btn--cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 var(--gold-dark),
    0 8px 24px rgba(212, 168, 83, 0.4);
}

.orbit-btn--cta:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 var(--gold-dark),
    0 4px 12px rgba(0, 0, 0, 0.3);
}

.orbit-btn svg {
  width: 20px;
  height: 20px;
}

.orbit-btn__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.orbit-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 83, 0.35);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.orbit-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.orbit-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.orbit-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.orbit-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: var(--z-sheet);
  pointer-events: none;
  visibility: hidden;
}

.mobile-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-sheet__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.mobile-sheet.is-open .mobile-sheet__backdrop {
  opacity: 1;
}

.mobile-sheet__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(320px, 88vw);
  height: 100%;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg-deep) 100%);
  border-left: 3px solid var(--gold-border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-sheet.is-open .mobile-sheet__panel {
  transform: translateX(0);
}

.mobile-sheet__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(212, 168, 83, 0.4);
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-sheet__close:hover {
  background: rgba(212, 168, 83, 0.15);
}

.mobile-sheet__panel nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-sheet__panel nav a {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-primary);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.mobile-sheet__panel nav a:hover {
  background: rgba(212, 168, 83, 0.12);
  color: var(--gold-light);
}

/* Live ticker */
.live-ticker {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: var(--z-ticker);
  overflow: hidden;
  padding: 0.35rem 0;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
  pointer-events: none;
}

.live-ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  white-space: nowrap;
}

.live-ticker__track span::before {
  content: "◆ ";
  color: var(--gold-mid);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-offset) + 2rem) 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__tiles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tile-stack {
  position: absolute;
  width: 52px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--gold-border);
  box-shadow:
    4px 4px 0 #0a1f14,
    6px 8px 16px rgba(0, 0, 0, 0.4);
  opacity: 0.45;
}

.tile-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.tile-stack--1 { top: 18%; left: 8%; transform: rotate(-12deg); }
.tile-stack--2 { top: 55%; left: 5%; transform: rotate(8deg) scale(0.85); opacity: 0.25; }
.tile-stack--3 { top: 12%; right: 10%; transform: rotate(15deg); }
.tile-stack--4 { top: 48%; right: 6%; transform: rotate(-6deg) scale(0.9); opacity: 0.28; }
.tile-stack--5 { bottom: 15%; left: 50%; transform: translateX(-50%) rotate(3deg) scale(1.1); opacity: 0.2; }

.hero__status-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 640px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 168, 83, 0.3);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-pill svg {
  width: 14px;
  height: 14px;
  color: var(--gold-mid);
}

.status-pill--level .status-pill__hearts {
  display: flex;
  gap: 2px;
}

.status-pill--level .status-pill__hearts svg {
  width: 12px;
  height: 12px;
  color: var(--heart);
  fill: var(--heart);
}

.status-pill--bonus {
  color: var(--gold-light);
}

/* Hero modal card */
.hero-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-modal);
  background: linear-gradient(180deg, var(--bg-panel-light) 0%, var(--bg-panel) 100%);
  border: 3px solid transparent;
  background-clip: padding-box;
  box-shadow:
    0 0 0 3px var(--gold-border),
    0 0 0 6px rgba(154, 116, 40, 0.4),
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-modal__tabs {
  display: flex;
  padding: 1rem 1.25rem 0;
  gap: 0.5rem;
}

.hero-modal__tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: default;
}

.hero-modal__tab--active {
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold-mid) 50%, var(--gold-dark) 100%);
  color: #1a1208;
  box-shadow: 0 -2px 8px rgba(212, 168, 83, 0.3);
}

.hero-modal__body {
  padding: 1.5rem 1.5rem 2rem;
  text-align: center;
}

.hero-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

.hero-modal__eyebrow svg {
  width: 16px;
  height: 16px;
}

.hero-modal__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-modal__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-modal__lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-modal__device {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.phone-frame {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(145deg, #2a2a2a, #111);
  border: 3px solid var(--gold-border);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    var(--shadow-gold);
}

.phone-frame img {
  display: block;
  border-radius: 24px;
  width: min(240px, 55vw);
  height: auto;
  margin: 0 auto;
}

.hero-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.store-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  text-align: left;
}

.store-btn span small {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.8;
}

.store-btn--apple {
  background: linear-gradient(180deg, #2a2a2a, #111);
  color: var(--text-primary);
  border: 2px solid rgba(212, 168, 83, 0.4);
}

.store-btn--play {
  background: linear-gradient(180deg, var(--gold-light), var(--gold-mid) 50%, var(--gold-dark));
  color: #1a1208;
  box-shadow: 0 4px 0 var(--gold-dark);
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-btn--play:hover {
  box-shadow: 0 6px 0 var(--gold-dark), var(--shadow-gold);
}

.store-btn:active {
  transform: translateY(1px);
}

/* Task center features */
.task-center {
  padding: 5rem 1.25rem;
  max-width: 720px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 168, 83, 0.15);
  border: 1px solid rgba(212, 168, 83, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

.section-head__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.section-head__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.task-board__frame {
  padding: 4px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark), var(--gold-mid));
  box-shadow: var(--shadow-gold);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg-panel-light), var(--bg-panel));
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.task-item:hover {
  border-color: rgba(212, 168, 83, 0.3);
  background: rgba(0, 0, 0, 0.35);
}

.task-item__main {
  flex: 1;
  min-width: 0;
}

.task-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.task-item__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.task-item__title svg {
  width: 18px;
  height: 18px;
  color: var(--gold-mid);
  flex-shrink: 0;
}

.task-item__reward {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
}

.task-item__desc {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.task-item__progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.task-item__progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  box-shadow: 0 0 8px rgba(212, 168, 83, 0.5);
  transition: width 0.6s ease;
}

.redeem-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #4a9e6e, var(--mint-dark));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 3px 0 #2d7a4f, inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.redeem-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 #2d7a4f, 0 0 12px rgba(94, 201, 138, 0.4);
}

.redeem-btn--ready {
  animation: pulse-ready 2s ease-in-out infinite;
}

@keyframes pulse-ready {
  0%, 100% { box-shadow: 0 3px 0 #2d7a4f, 0 0 0 rgba(94, 201, 138, 0); }
  50% { box-shadow: 0 3px 0 #2d7a4f, 0 0 16px rgba(94, 201, 138, 0.5); }
}

/* Screenshot gallery */
.screenshot-deck {
  padding: 4rem 1.25rem 5rem;
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.screenshot-deck .section-head {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-deck__track {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

.screenshot-card {
  flex: 0 1 auto;
  margin: 0;
  text-align: center;
}

.screenshot-card__frame {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(145deg, #2a2a2a, #111);
  border: 2px solid var(--gold-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-card:hover .screenshot-card__frame {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}

.screenshot-card__frame img {
  display: block;
  width: min(180px, 38vw);
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.screenshot-card figcaption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

@media (max-width: 767px) {
  .screenshot-deck__track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-mid) rgba(0, 0, 0, 0.2);
    padding-inline: max(1.25rem, calc(50% - 90px));
    max-width: none;
  }

  .screenshot-deck__track::-webkit-scrollbar {
    height: 6px;
  }

  .screenshot-deck__track::-webkit-scrollbar-thumb {
    background: var(--gold-mid);
    border-radius: var(--radius-pill);
  }

  .screenshot-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .screenshot-card__frame img {
    width: min(180px, 56vw);
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .screenshot-deck__track {
    gap: 1.25rem;
  }

  .screenshot-card__frame img {
    width: min(160px, 28vw);
  }
}

/* Download dock */
.download-dock {
  padding: 3rem 1.25rem 6rem;
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.download-dock__card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 2rem 2.75rem;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(15, 42, 28, 0.95), rgba(6, 21, 16, 0.98));
  border: 2px solid rgba(201, 162, 39, 0.5);
  overflow: visible;
  isolation: isolate;
}

.download-dock__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  z-index: 0;
  width: 300px;
  height: 300px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 168, 83, 0.2), transparent 70%);
  pointer-events: none;
}

.download-dock__title {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--gold-light);
}

.download-dock__text {
  position: relative;
  margin: 0 0 3.5rem;
  padding-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.power-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 2.25rem;
  padding: 1.25rem 0.5rem 0.5rem;
  margin: 0;
  border-top: 1px solid rgba(212, 168, 83, 0.15);
}

.power-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 96px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.power-btn:hover {
  transform: translateY(-3px);
}

.power-btn__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.power-btn__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--gold-border);
  background: linear-gradient(145deg, var(--bg-panel-light), var(--bg-deep));
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease;
}

.power-btn:hover .power-btn__ring {
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(212, 168, 83, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.power-btn svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: var(--gold-light);
  pointer-events: none;
}

.power-btn__label {
  display: block;
  margin-top: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
}

.power-btn__badge {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--heart);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  border: 2px solid var(--bg-deep);
}

.power-btn--primary .power-btn__ring {
  border-color: var(--gold-light);
  background: linear-gradient(145deg, rgba(212, 168, 83, 0.25), var(--bg-panel));
}

/* Gold pill button */
.gold-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-light), var(--gold-mid) 50%, var(--gold-dark));
  color: #1a1208;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--gold-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.gold-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--gold-dark), var(--shadow-gold);
}

.gold-pill--wide {
  width: 100%;
}

/* Footer */
.site-footer {
  padding: 2.5rem 1.25rem;
  border-top: 1px solid rgba(212, 168, 83, 0.2);
  background: rgba(0, 0, 0, 0.35);
}

.site-footer__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__brand img {
  border-radius: 10px;
  border: 2px solid var(--gold-mid);
}

.site-footer__brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-light);
}

.site-footer__brand p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.site-footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
  cursor: pointer;
}

.site-footer__links a:hover {
  color: var(--gold-light);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(168, 196, 176, 0.7);
}

/* Modal — backdrop must sit below panel in stacking order */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
  visibility: hidden;
  isolation: isolate;
}

.modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-modal);
  background: linear-gradient(180deg, var(--bg-panel-light), var(--bg-panel));
  border: 3px solid var(--gold-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.is-open .modal__panel {
  transform: scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 83, 0.4);
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal__close:hover {
  background: rgba(212, 168, 83, 0.15);
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.15);
  border: 2px solid rgba(212, 168, 83, 0.4);
  color: var(--gold-light);
}

.modal__icon svg {
  width: 32px;
  height: 32px;
}

.modal__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-light);
}

.modal__text {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Responsive */
@media (min-width: 640px) {
  .hero-modal__actions {
    flex-direction: row;
  }

  .store-btn {
    flex: 1;
  }

  .orbit-menu-toggle {
    display: none;
  }

  .orbit-nav {
    display: flex;
  }

  .orbit-chip__text {
    display: flex;
  }
}

@media (min-width: 768px) {
  :root {
    --header-offset: 96px;
  }

  .hero {
    padding-top: calc(var(--header-offset) + 3rem);
  }

  .phone-frame img {
    width: 260px;
  }

  .level-rail {
    display: flex;
  }

  .live-ticker {
    top: 80px;
  }

  .site-footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }

  .site-footer__copy {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 100vh;
  }

  .hero-modal {
    max-width: 560px;
  }
}

@media (max-width: 639px) {
  .orbit-chip__text {
    display: none;
  }

  .task-item {
    flex-direction: column;
    align-items: stretch;
  }

  .redeem-btn {
    align-self: flex-end;
  }
}

/* Lightweight entrance motion — content stays visible (no opacity:0 flash) */
@media (prefers-reduced-motion: no-preference) {
  .animate-in--hero {
    animation: enter-up 0.5s ease-out both;
  }
}

@keyframes enter-up {
  from {
    transform: translateY(14px);
  }

  to {
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .live-ticker__track {
    animation: none;
  }

  .redeem-btn--ready {
    animation: none;
  }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}
