:root {
  --bg: #090c1e;
  --panel: rgba(20, 30, 58, 0.86);
  --panel-2: rgba(8, 42, 52, 0.86);
  --line: rgba(255,255,255,0.18);
  --text: #f8fafc;
  --muted: #b9c5d6;
  --yellow: #ffc107;
  --orange: #ff7a18;
  --cyan: #38d5ff;
  --green: #44e38a;
  --red: #ff4d5e;
  --purple: #8b5cf6;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overscroll-behavior: none; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; min-height: var(--app-height, 100dvh); touch-action: manipulation; }
button, input { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.screen { width: 100%; }
.menu-screen { min-height: 100vh; padding: 24px clamp(14px, 3vw, 34px) 60px; background: radial-gradient(circle at 28% 5%, rgba(56, 213, 255, 0.22), transparent 36%), radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.18), transparent 32%), linear-gradient(180deg, #091026 0%, #071326 48%, #051722 100%); }
.card { max-width: 960px; margin: 0 auto 24px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(40, 48, 96, 0.88), rgba(6, 60, 72, 0.74)); box-shadow: 0 24px 60px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.14); padding: clamp(18px, 4vw, 30px); }
.hero { display: grid; gap: 22px; }
h1 { margin: 0 0 10px; font-size: clamp(38px, 8vw, 72px); letter-spacing: -0.06em; line-height: 0.92; }
h2 { margin: 24px 0 12px; font-size: clamp(26px, 5.5vw, 46px); line-height: 1; }
h2 small { font-size: 0.5em; color: var(--muted); }
p { color: var(--muted); line-height: 1.45; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: linear-gradient(135deg, rgba(56,213,255,0.9), rgba(68,227,138,0.8)); color: #042026; font-weight: 900; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-grid div { border: 1px solid var(--line); background: rgba(255,255,255,0.08); border-radius: 18px; padding: 13px 14px; min-height: 70px; }
.stat-grid b { display: block; text-transform: uppercase; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.stat-grid span { display: block; color: white; font-size: 24px; font-weight: 900; margin-top: 3px; }
.start-card label { display: block; font-size: 30px; font-weight: 950; margin-bottom: 14px; }
.start-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.start-row input { flex: 1 1 260px; min-height: 68px; border-radius: 26px; border: 2px solid rgba(255,255,255,0.18); padding: 0 26px; outline: none; font-weight: 900; font-size: 24px; }
.primary, .secondary, .danger, .ghost { min-height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 950; color: #08111f; box-shadow: inset 0 3px 0 rgba(255,255,255,0.45), 0 10px 20px rgba(0,0,0,0.25); }
.primary { background: linear-gradient(180deg, #ffd43b, #ff7a18); }
.secondary { background: linear-gradient(180deg, #7dd3fc, #22c55e); }
.danger { background: linear-gradient(180deg, #fb7185, #ef4444); color: white; }
.ghost { background: rgba(255,255,255,0.1); color: white; border: 1px solid var(--line); box-shadow: none; }
.secondary-row { margin-top: 14px; }
.start-card h2 small { display: inline-flex; align-items: center; margin-left: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(56,213,255,.18); color: #bae6fd; font-size: 15px; vertical-align: middle; }
.leaderboard { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.leaderboard li { display: flex; justify-content: space-between; gap: 18px; align-items: center; background: rgba(255,255,255,0.12); border-radius: 17px; padding: 13px 20px; font-size: 24px; font-weight: 950; }
.leaderboard .score { margin-left: auto; }
.instructions { scroll-margin-bottom: 40px; }
.game-screen { min-height: var(--app-height, 100dvh); height: var(--app-height, 100dvh); background: #020617; display: grid; place-items: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); overflow: hidden; }
.game-frame { position: relative; width: min(100vw, calc(var(--app-height, 100dvh) * 16 / 9)); aspect-ratio: 16 / 9; max-height: var(--app-height, 100dvh); background: #000; overflow: hidden; border-radius: 0; touch-action: none; user-select: none; -webkit-user-select: none; contain: layout style paint; }
canvas { display: block; width: 100%; height: 100%; image-rendering: auto; background: #60d8f8; }
.hud { position: absolute; left: max(12px, env(safe-area-inset-left)); top: max(10px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: grid; grid-template-columns: repeat(10, minmax(60px, 1fr)); gap: 8px; pointer-events: none; z-index: 15; transform: none; will-change: auto; }
.hud-card { min-height: 48px; padding: 8px 10px; border-radius: 14px; background: rgba(4, 10, 24, 0.72); border: 1px solid rgba(255,255,255,0.18); box-shadow: 0 8px 22px rgba(0,0,0,0.24); backdrop-filter: blur(6px); }
.hud-card b { display: block; color: #a8b6cf; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.hud-card span { display: block; color: #fff; font-size: 18px; font-weight: 950; margin-top: 1px; }
.hud-card.health span { color: #fecaca; }
.hud-card.shield span { color: #bae6fd; }
.hud-card.objective span { color: #fde047; }
.hud-card.timer span { color: #bbf7d0; font-size: 15px; }
.message { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(760px, calc(100% - 32px)); border-radius: 999px; padding: 10px 20px; background: rgba(4, 10, 24, 0.72); color: #fff; font-weight: 800; text-align: center; pointer-events: none; z-index: 5; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: min(32vw, 180px); font-weight: 1000; text-shadow: 0 10px 30px rgba(0,0,0,0.45); background: rgba(2, 6, 23, 0.16); z-index: 20; }
.overlay { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(2, 6, 23, 0.62); padding: 24px; }
.overlay-card { width: min(620px, 92vw); border-radius: 28px; padding: 28px; text-align: center; background: linear-gradient(135deg, rgba(18, 26, 52, .96), rgba(8, 50, 62, .96)); border: 1px solid var(--line); box-shadow: 0 28px 80px rgba(0,0,0,0.5); }
.overlay-card h2 { margin-top: 0; }
.overlay-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.weapon-slots { position: absolute; left: 50%; bottom: max(58px, calc(env(safe-area-inset-bottom) + 58px)); transform: translateX(-50%); display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; z-index: 11; pointer-events: auto; width: min(820px, calc(100% - 20px)); }
.weapon-slot { width: 100%; min-width: 0; min-height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.24); background: rgba(4,10,24,.68); color: white; box-shadow: 0 8px 20px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12); padding: 3px 5px; text-align: center; }
.weapon-slot b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; margin-right: 5px; background: rgba(255,255,255,.16); font-size: 13px; }
.weapon-slot span { display: block; margin-top: 2px; font-size: 10px; line-height: 1.02; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #dbeafe; max-width: 100%; }
.weapon-slot.empty span { color: rgba(219,234,254,.52); }
.weapon-slot.active { border-color: rgba(250,204,21,.92); background: linear-gradient(180deg, rgba(250,204,21,.9), rgba(249,115,22,.78)); color: #111827; }
.weapon-slot.active span { color: #111827; }

.mobile-controls { position: absolute; inset: 0; pointer-events: none; z-index: 10; display: none; }
.joystick { pointer-events: auto; position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: max(28px, env(safe-area-inset-bottom)); width: 104px; height: 104px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); background: rgba(5, 12, 26, 0.34); box-shadow: inset 0 0 24px rgba(255,255,255,0.08); }
.stick { position: absolute; left: 31px; top: 31px; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, #dbeafe, #22d3ee); box-shadow: 0 8px 20px rgba(0,0,0,0.32); }
.action-button { pointer-events: auto; position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.45); background: rgba(10,16,38,0.72); color: white; font-size: 26px; font-weight: 950; box-shadow: 0 12px 24px rgba(0,0,0,0.32), inset 0 2px 0 rgba(255,255,255,0.2); }
.action-button.left { right: max(110px, calc(env(safe-area-inset-right) + 110px)); bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px)); }
.action-button.top { right: max(52px, calc(env(safe-area-inset-right) + 52px)); bottom: max(130px, calc(env(safe-area-inset-bottom) + 130px)); }
.action-button.right { right: max(0px, env(safe-area-inset-right)); bottom: max(72px, calc(env(safe-area-inset-bottom) + 72px)); }
.action-button.bottom { right: max(52px, calc(env(safe-area-inset-right) + 52px)); bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px)); }
.action-button.jump { right: max(166px, calc(env(safe-area-inset-right) + 166px)); bottom: max(106px, calc(env(safe-area-inset-bottom) + 106px)); background: rgba(34, 197, 94, .82); color: #03140a; }
.action-button:active { transform: scale(.94); }

.orientation-hint { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(2,6,23,.92); color: white; }
.orientation-hint b { display:block; font-size: clamp(28px, 7vw, 52px); line-height: 1; margin-bottom: 10px; }
.orientation-hint span { display:block; max-width: 520px; color: #cbd5e1; font-weight: 800; }
@supports (height: 100dvh) {
  .menu-screen { min-height: 100dvh; }
}
@media (display-mode: standalone) {
  .menu-screen, .game-screen { padding-top: max(0px, env(safe-area-inset-top)); }
}
@media (orientation: landscape) and (hover: none), (orientation: landscape) and (pointer: coarse) {
  .game-screen { height: var(--app-height, 100dvh); min-height: var(--app-height, 100dvh); align-items: flex-start; padding-top: max(0px, env(safe-area-inset-top)); }
  .game-frame { width: min(100vw, calc(var(--app-height, 100dvh) * 16 / 9)); height: min(var(--app-height, 100dvh), calc(100vw * 9 / 16)); max-height: var(--app-height, 100dvh); }
  .hud { grid-template-columns: repeat(5, minmax(50px, 1fr)); }
  .hud-card { min-height: 36px; padding: 5px 7px; }
  .hud-card span { font-size: 13px; }
  .weapon-slots { bottom: max(4px, env(safe-area-inset-bottom)); }
}
@media (orientation: portrait) and (hover: none), (orientation: portrait) and (pointer: coarse) {
  .orientation-hint:not(.hidden) { display: grid !important; }
}

@media (hover: none), (pointer: coarse) {
  .mobile-controls { display: block; }
  .hud { grid-template-columns: repeat(4, minmax(58px, 1fr)); gap: 6px; }
  .hud-card { min-height: 40px; padding: 6px 8px; }
  .hud-card b { font-size: 8px; }
  .hud-card span { font-size: 14px; }
  .message { display: none; }
  .weapon-slots { bottom: max(6px, env(safe-area-inset-bottom)); gap: 2px; left: 50%; width: min(96vw, calc(100% - 8px)); grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .weapon-slot { width: 100%; min-width: 0; min-height: 29px; padding: 2px 1px; border-radius: 8px; }
  .weapon-slot b { width: 13px; height: 13px; margin: 0 auto 1px; font-size: 9px; display: grid; }
  .weapon-slot span { font-size: 6.4px; line-height: .92; letter-spacing: -0.03em; }
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaderboard li { font-size: 20px; }
  .start-row input, .primary { width: 100%; }
  .game-screen { align-items: start; }
}
@media (orientation: portrait) and (hover: none) {
  .game-screen { place-items: center; }
  .game-frame { width: 100vw; height: calc(100vw * 9 / 16); max-height: min(var(--app-height, 100dvh), calc(100vw * 9 / 16)); }
}


/* Phase 1-4 product polish */
.systems-card { background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(30,58,138,.62)); }
.settings-row { display: grid; gap: 10px; margin: 12px 0 6px; }
.settings-row label { color: #e0f2fe; font-size: 18px; }
.settings-row select { min-height: 54px; border-radius: 18px; border: 1px solid rgba(255,255,255,.18); background: rgba(2,6,23,.68); color: white; padding: 0 16px; font-weight: 800; }
.unlock-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.unlock-list li { border: 1px solid rgba(250,204,21,.35); background: rgba(250,204,21,.12); color: #fde68a; border-radius: 999px; padding: 8px 12px; font-weight: 900; }
.leaderboard small { color: #94a3b8; font-size: 13px; margin-left: 8px; font-weight: 800; }
.weapon-slot.active { transform: translateY(-2px); }


/* Commercial vertical slice score-card polish */
.leaderboard-tabs { justify-content: center; margin-top: 8px; }
.leaderboard-tabs .active { border-color: rgba(250,204,21,.85); color: #fef3c7; background: rgba(250,204,21,.14); }
#overlayText { white-space: pre-line; }
#copyScoreBtn { margin: 10px auto 0; display: inline-flex; }
#copyScoreBtn.hidden { display: none; }
.weapon-slot.common { border-color: rgba(203,213,225,.42); }
.weapon-slot.uncommon { border-color: rgba(34,197,94,.7); }
.weapon-slot.rare { border-color: rgba(56,189,248,.72); }
.weapon-slot.epic { border-color: rgba(168,85,247,.82); }
.weapon-slot.legendary { border-color: rgba(245,158,11,.88); }
.weapon-slot.mythic { border-color: rgba(239,68,68,.95); box-shadow: 0 0 20px rgba(239,68,68,.26), inset 0 1px 0 rgba(255,255,255,.12); }


/* Commercial Vertical Slice v2: Core Game Upgrade */
.unlock-list li.locked { border-color: rgba(148,163,184,.22); background: rgba(15,23,42,.42); color: #94a3b8; }
.unlock-list li.unlocked { border-color: rgba(250,204,21,.52); background: rgba(250,204,21,.16); color: #fde68a; }
.unlock-list li span { display:inline-block; margin-right:6px; font-weight:1000; }
.weapon-slot.common { background: linear-gradient(180deg, rgba(15,23,42,.78), rgba(4,10,24,.72)); }
.weapon-slot.uncommon { background: linear-gradient(180deg, rgba(20,83,45,.72), rgba(4,10,24,.72)); }
.weapon-slot.rare { background: linear-gradient(180deg, rgba(12,74,110,.72), rgba(4,10,24,.72)); }
.weapon-slot.epic { background: linear-gradient(180deg, rgba(88,28,135,.72), rgba(4,10,24,.72)); }
.weapon-slot.legendary { background: linear-gradient(180deg, rgba(146,64,14,.78), rgba(4,10,24,.72)); }
.weapon-slot.mythic { background: linear-gradient(180deg, rgba(127,29,29,.86), rgba(4,10,24,.72)); }
.weapon-slot.active { filter: saturate(1.18); }

.orientation-hint { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; text-align: center; background: rgba(2,6,23,.92); color: white; }
.orientation-hint b { display:block; font-size: clamp(28px, 7vw, 52px); line-height: 1; margin-bottom: 10px; }
.orientation-hint span { display:block; max-width: 520px; color: #cbd5e1; font-weight: 800; }
@supports (height: 100dvh) {
  .menu-screen { min-height: 100dvh; }
}
@media (display-mode: standalone) {
  .menu-screen, .game-screen { padding-top: max(0px, env(safe-area-inset-top)); }
}
@media (orientation: landscape) and (hover: none), (orientation: landscape) and (pointer: coarse) {
  .game-screen { height: var(--app-height, 100dvh); min-height: var(--app-height, 100dvh); align-items: flex-start; padding-top: max(0px, env(safe-area-inset-top)); }
  .game-frame { width: min(100vw, calc(var(--app-height, 100dvh) * 16 / 9)); height: min(var(--app-height, 100dvh), calc(100vw * 9 / 16)); max-height: var(--app-height, 100dvh); }
  .hud { grid-template-columns: repeat(5, minmax(50px, 1fr)); }
  .hud-card { min-height: 36px; padding: 5px 7px; }
  .hud-card span { font-size: 13px; }
  .weapon-slots { bottom: max(4px, env(safe-area-inset-bottom)); }
}
@media (orientation: portrait) and (hover: none), (orientation: portrait) and (pointer: coarse) {
  .orientation-hint:not(.hidden) { display: grid !important; }
}

@media (hover: none), (pointer: coarse) {
  .action-button { width: 70px; height: 70px; font-size: 27px; }
  .joystick { width: 112px; height: 112px; }
  .stick { left: 35px; top: 35px; }
  .weapon-slots { bottom: max(4px, env(safe-area-inset-bottom)); }
  .hud-card:nth-child(4), .hud-card:nth-child(6), .hud-card:nth-child(8) { display: none; }
  .hud { grid-template-columns: repeat(5, minmax(50px, 1fr)); }
}

/* v11 continuous-run cleanup */
.vehicle-button { display: none !important; }
.hud-card.score-pulse { animation: scorePulse .45s ease-out; }
@keyframes scorePulse { 0% { transform: scale(1); } 45% { transform: scale(1.08); box-shadow: 0 0 24px rgba(250,204,21,.5); } 100% { transform: scale(1); } }


/* v16 mobile HUD/control tuning and reset-view button */

.mobile-pause-button { display: none; pointer-events: auto; position: absolute; left: max(8px, env(safe-area-inset-left)); top: max(34px, calc(env(safe-area-inset-top) + 34px)); min-height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.34); background: rgba(2,6,23,.68); color: #fef3c7; font-size: 10px; font-weight: 950; letter-spacing: .02em; box-shadow: 0 6px 14px rgba(0,0,0,.22); }
.mobile-pause-button:active { transform: scale(.96); }

.screen-reset-button { display: none; pointer-events: auto; position: absolute; right: max(8px, env(safe-area-inset-right)); top: max(34px, calc(env(safe-area-inset-top) + 34px)); min-height: 24px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.34); background: rgba(2,6,23,.62); color: #e0f2fe; font-size: 10px; font-weight: 950; letter-spacing: .02em; box-shadow: 0 6px 14px rgba(0,0,0,.22); }
.screen-reset-button:active { transform: scale(.96); }

@media (hover: none), (pointer: coarse) {
  .action-button.jump { right: max(201px, calc(env(safe-area-inset-right) + 201px)); bottom: max(106px, calc(env(safe-area-inset-bottom) + 106px)); }
  .screen-reset-button { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-pause-button { display: inline-flex; align-items: center; justify-content: center; }
  .hud {
    left: max(3px, env(safe-area-inset-left));
    right: max(3px, env(safe-area-inset-right));
    top: max(2px, env(safe-area-inset-top));
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 2px !important;
    align-items: start;
  }
  .hud-card {
    display: block !important;
    min-height: 20px !important;
    padding: 2px 3px !important;
    border-radius: 7px !important;
    border-width: 1px;
    box-shadow: 0 3px 8px rgba(0,0,0,.18) !important;
    backdrop-filter: blur(3px);
    overflow: hidden;
  }
  .hud-card b {
    font-size: 5.5px !important;
    letter-spacing: .035em !important;
    line-height: 1;
    white-space: nowrap;
  }
  .hud-card span, .hud-card.timer span {
    font-size: 7px !important;
    line-height: 1.05;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (orientation: landscape) and (hover: none), (orientation: landscape) and (pointer: coarse) {
  .hud {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    top: max(2px, env(safe-area-inset-top));
  }
  .screen-reset-button { top: max(26px, calc(env(safe-area-inset-top) + 26px)); }
  .mobile-pause-button { top: max(26px, calc(env(safe-area-inset-top) + 26px)); }
}

/* v19 myth door intro cutscene */
.cutscene-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,220,150,0.12), transparent 28%),
    linear-gradient(180deg, rgba(10,7,18,0.97), rgba(8,6,14,0.94));
  overflow: hidden;
}
.cutscene-overlay.hidden { display: none; }
.cutscene-stage {
  position: relative;
  width: min(92%, 1080px);
  height: min(82%, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cutscene-shell {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 1s ease, opacity 0.6s ease, filter 0.6s ease;
}
.cutscene-shell.grow-in {
  transform: scale(0.22);
  opacity: 0;
  filter: blur(10px);
}
.cutscene-shell.grow-out {
  transform: scale(1.08);
  opacity: 0;
  filter: blur(6px);
}
.cutscene-scene {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22,18,40,0.98), rgba(9,12,30,0.96));
  border: 2px solid rgba(255,205,120,0.36);
  box-shadow: 0 25px 80px rgba(0,0,0,0.5), inset 0 0 0 4px rgba(255,255,255,0.035);
}
.cutscene-story-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 28px 20px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255,232,178,0.16), transparent 18%),
    linear-gradient(180deg, rgba(16,14,30,0.35), rgba(8,10,20,0.05));
}
.cutscene-title {
  align-self: center;
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe0a8;
  text-shadow: 0 0 20px rgba(255,180,60,0.24);
}
.cutscene-text {
  margin: 0 auto;
  max-width: min(92%, 860px);
  text-align: center;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.5;
  color: rgba(255,247,230,0.95);
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(11, 14, 27, 0.46);
  border: 1px solid rgba(255, 218, 167, 0.16);
}
.cutscene-illustration {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  margin: 16px 8px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(122, 35, 20, 0.9), rgba(44, 12, 10, 0.98));
  border: 1px solid rgba(255,205,140,0.16);
}
.cutscene-scene.scene-2 .cutscene-illustration {
  background: linear-gradient(180deg, rgba(112,49,18,0.92), rgba(30,16,8,0.98));
}
.cutscene-scene.scene-3 .cutscene-illustration {
  background: linear-gradient(180deg, rgba(88,22,14,0.92), rgba(20,8,8,0.98));
}
.cutscene-sun {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 120px;
  height: 120px;
  margin-left: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9de 0%, #ffd36c 35%, rgba(255,190,55,0.82) 60%, rgba(255,185,85,0.08) 100%);
  box-shadow: 0 0 60px rgba(255,210,80,0.24);
}
.story-ground {
  position: absolute;
  left: -2%; right: -2%; bottom: -2%; height: 28%;
  background: linear-gradient(180deg, rgba(54,32,18,0.2), rgba(16,12,6,0.86));
  clip-path: polygon(0 42%, 18% 34%, 31% 40%, 42% 28%, 57% 36%, 71% 24%, 82% 34%, 100% 26%, 100% 100%, 0 100%);
}
.story-traveler, .story-god {
  position: absolute;
}
.story-traveler {
  left: 50%; top: 53%; width: 132px; height: 210px; transform: translate(-50%, -50%);
}
.story-god {
  top: 34%; width: 92px; height: 156px; opacity: 0.9;
}
.story-god.god-left { left: 16%; }
.story-god.god-right { right: 16%; }
.story-head, .story-body, .story-arm, .story-leg, .story-god::before, .story-god::after {
  position: absolute; content: ""; display: block;
}
.story-head {
  width: 56px; height: 56px; border-radius: 50%; background: #efc296; left: 38px; top: 0;
  box-shadow: inset -6px -8px 0 rgba(0,0,0,0.08);
}
.story-ring {
  position: absolute; width: 78px; height: 78px; left: 27px; top: -11px; border-radius: 50%;
  border: 7px solid rgba(255,220,116,0.95); box-shadow: 0 0 18px rgba(255,225,128,0.45), inset 0 0 12px rgba(255,255,255,0.18);
}
.story-body {
  width: 42px; height: 84px; left: 45px; top: 58px; border-radius: 22px; background: linear-gradient(180deg, #cf5b32, #883315);
}
.story-arm {
  width: 16px; height: 66px; top: 70px; border-radius: 20px; background: #efc296;
}
.story-arm.left { left: 24px; transform: rotate(18deg); }
.story-arm.right { right: 24px; transform: rotate(-18deg); }
.story-leg {
  width: 18px; height: 76px; bottom: 0; border-radius: 18px; background: #efc296;
}
.story-leg.left { left: 40px; transform: rotate(8deg); }
.story-leg.right { right: 40px; transform: rotate(-8deg); }
.story-god::before {
  width: 56px; height: 56px; border-radius: 50%; background: #f1d8aa; left: 18px; top: 0;
  box-shadow: 0 0 0 6px rgba(255,230,170,0.16);
}
.story-god::after {
  width: 52px; height: 84px; left: 20px; top: 52px; border-radius: 26px; background: linear-gradient(180deg, #e8d476, #ab8738);
}
.story-icon {
  position: absolute; opacity: 0.74;
}
.ring-glow { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed rgba(255,220,120,0.3); left: 22%; top: 44%; }
.glyph { width: 42px; height: 42px; border: 2px solid rgba(255,225,150,0.34); border-radius: 12px; top: 58%; }
.glyph-left { left: 20%; transform: rotate(-14deg); }
.glyph-right { right: 20%; transform: rotate(14deg); }
.cutscene-scene.scene-2 .story-traveler { left: 28%; top: 58%; transform: translate(-50%, -50%) scale(0.96); }
.cutscene-scene.scene-2 .story-head { transform: scale(1.18); transform-origin: center; }
.cutscene-scene.scene-2 .story-ground { clip-path: polygon(0 52%, 14% 34%, 28% 48%, 44% 24%, 58% 42%, 74% 18%, 87% 40%, 100% 24%, 100% 100%, 0 100%); }
.cutscene-scene.scene-2 .cutscene-illustration::before {
  content: ""; position: absolute; left: 45%; right: 8%; top: 18%; bottom: 18%;
  background:
    radial-gradient(circle at 15% 40%, rgba(255,215,110,0.88) 0 10px, transparent 12px),
    radial-gradient(circle at 32% 60%, rgba(255,215,110,0.88) 0 10px, transparent 12px),
    radial-gradient(circle at 48% 35%, rgba(255,215,110,0.88) 0 10px, transparent 12px),
    radial-gradient(circle at 66% 58%, rgba(255,215,110,0.88) 0 10px, transparent 12px),
    radial-gradient(circle at 82% 40%, rgba(255,215,110,0.88) 0 10px, transparent 12px),
    radial-gradient(circle at 24% 18%, rgba(255,215,110,0.65) 0 8px, transparent 10px),
    radial-gradient(circle at 82% 18%, rgba(255,215,110,0.65) 0 8px, transparent 10px);
}
.cutscene-scene.scene-2 .cutscene-illustration::after {
  content: ""; position: absolute; left: 48%; right: 10%; top: 26%; bottom: 22%;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(255,180,100,0.16) 5% 6%, transparent 6% 12%, rgba(255,180,100,0.16) 12% 13%, transparent 13% 18%, rgba(255,180,100,0.16) 18% 19%, transparent 19% 26%, rgba(255,180,100,0.16) 26% 27%, transparent 27% 34%, rgba(255,180,100,0.16) 34% 35%, transparent 35% 100%);
  filter: blur(0.2px);
}
.cutscene-scene.scene-3 .story-traveler { left: 50%; top: 54%; transform: translate(-50%, -50%) scale(1.04); }
.cutscene-scene.scene-3 .story-head { transform: scale(1.62); transform-origin: center; }
.cutscene-scene.scene-3 .story-ring { transform: scale(1.24); transform-origin: center; border-color: rgba(255,230,120,0.95); box-shadow: 0 0 26px rgba(255,225,120,0.66), inset 0 0 12px rgba(255,255,255,0.18); }
.cutscene-scene.scene-3 .cutscene-illustration::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,210,100,0.34), rgba(255,180,80,0.12) 45%, rgba(255,180,80,0.02) 66%, transparent 68%);
}
.cutscene-scene.scene-3 .cutscene-illustration::after {
  content: ""; position: absolute; inset: 16% 14%;
  background:
    linear-gradient(55deg, transparent 0 42%, rgba(255,237,189,0.86) 42% 44%, transparent 44% 100%),
    linear-gradient(122deg, transparent 0 46%, rgba(255,237,189,0.72) 46% 48%, transparent 48% 100%),
    linear-gradient(155deg, transparent 0 38%, rgba(255,237,189,0.66) 38% 40%, transparent 40% 100%);
}

.cutscene-scene.scene-4 .cutscene-illustration {
  background: linear-gradient(180deg, rgba(52,18,18,0.94), rgba(18,8,8,0.99));
}
.cutscene-scene.scene-4 .story-traveler { left: 36%; top: 58%; transform: translate(-50%, -50%) scale(1.02); }
.cutscene-scene.scene-4 .story-head { transform: scale(1.34); transform-origin: center; }
.cutscene-scene.scene-4 .story-ring { transform: scale(1.14); transform-origin: center; }
.cutscene-scene.scene-4 .cutscene-illustration::before {
  content: ""; position: absolute; inset: 14% 10% 18% 48%;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,120,80,0.95) 0 8px, transparent 10px),
    linear-gradient(12deg, transparent 0 12%, rgba(120,120,132,0.92) 12% 16%, transparent 16% 18%, rgba(205,98,50,0.92) 18% 23%, transparent 23% 100%),
    linear-gradient(88deg, transparent 0 30%, rgba(140,140,152,0.9) 30% 34%, transparent 34% 48%, rgba(210,104,54,0.92) 48% 56%, transparent 56% 100%),
    linear-gradient(132deg, transparent 0 58%, rgba(165,165,176,0.9) 58% 61%, transparent 61% 73%, rgba(208,94,44,0.86) 73% 78%, transparent 78% 100%);
}
.cutscene-scene.scene-4 .cutscene-illustration::after {
  content: ""; position: absolute; left: 56%; top: 16%; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,110,70,0.24), rgba(255,70,40,0.06) 58%, transparent 62%);
  box-shadow: 110px 24px 0 -30px rgba(255,160,120,0.3), 78px 140px 0 -22px rgba(255,150,100,0.2);
}
.cutscene-scene.scene-5 .cutscene-illustration {
  background: linear-gradient(180deg, rgba(66,18,24,0.95), rgba(16,6,10,0.99));
}
.cutscene-scene.scene-5 .story-traveler { left: 50%; top: 56%; transform: translate(-50%, -50%) scale(1.06); }
.cutscene-scene.scene-5 .story-head { transform: scale(1.9); transform-origin: center; }
.cutscene-scene.scene-5 .story-ring { transform: scale(1.38); transform-origin: center; border-color: rgba(255,222,110,0.98); }
.cutscene-scene.scene-5 .cutscene-illustration::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 14%; bottom: 16%;
  background:
    radial-gradient(circle at 14% 70%, rgba(255,120,110,0.34) 0 18px, transparent 20px),
    radial-gradient(circle at 24% 68%, rgba(255,140,120,0.26) 0 16px, transparent 18px),
    radial-gradient(circle at 72% 72%, rgba(255,120,110,0.34) 0 18px, transparent 20px),
    radial-gradient(circle at 82% 70%, rgba(255,140,120,0.26) 0 16px, transparent 18px),
    radial-gradient(circle at 50% 30%, rgba(255,210,90,0.34) 0 78px, transparent 80px);
}
.cutscene-scene.scene-5 .cutscene-illustration::after {
  content: ""; position: absolute; inset: 18% 16%;
  background:
    linear-gradient(63deg, transparent 0 39%, rgba(255,245,220,0.65) 39% 40.5%, transparent 40.5% 100%),
    linear-gradient(108deg, transparent 0 52%, rgba(255,245,220,0.6) 52% 53.4%, transparent 53.4% 100%),
    linear-gradient(146deg, transparent 0 44%, rgba(255,245,220,0.54) 44% 45.4%, transparent 45.4% 100%);
}

.cutscene-doors {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.cutscene-door {
  position: absolute;
  top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(180deg, rgba(138,26,18,0.98), rgba(88,10,8,0.99)),
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 18%, rgba(0,0,0,0.1) 100%);
  border: 3px solid rgba(255,200,110,0.42);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.05), inset 0 0 28px rgba(0,0,0,0.28);
  transition: transform 1.18s cubic-bezier(0.22, 0.7, 0.12, 1), box-shadow 1s ease;
}
.cutscene-door::before, .cutscene-door::after {
  content: ""; position: absolute; border-radius: 50%;
}
.cutscene-door::before {
  width: 112px; height: 112px; left: 50%; top: 26%; margin-left: -56px;
  border: 5px solid rgba(255,210,132,0.7);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.06);
}
.cutscene-door::after {
  width: 18px; height: 18px; background: #ffd676; top: 52%; box-shadow: 0 0 14px rgba(255,214,118,0.46);
}
.cutscene-door.left { left: 0; transform-origin: left center; border-right-width: 1px; }
.cutscene-door.right { right: 0; transform-origin: right center; border-left-width: 1px; }
.cutscene-door.left::after { right: 12%; }
.cutscene-door.right::after { left: 12%; }
.cutscene-scene.open .cutscene-door.left { transform: translateX(-102%); }
.cutscene-scene.open .cutscene-door.right { transform: translateX(102%); }
.cutscene-hint {
  position: absolute; right: 18px; bottom: 12px; z-index: 6;
  font-size: 0.9rem; color: rgba(255,240,220,0.72); letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0,0,0,0.18); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) {
  .cutscene-stage { width: 95%; height: 84%; }
  .cutscene-story-frame { padding: 18px 14px 16px; }
  .cutscene-illustration { min-height: 210px; }
  .cutscene-hint { font-size: 0.72rem; right: 10px; bottom: 10px; }
}


/* v20 language controls */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(5, 10, 28, 0.48);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}
.language-label {
  font-size: 0.78rem;
  color: rgba(240,245,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lang-btn {
  min-height: auto;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}
.lang-btn.active {
  background: linear-gradient(180deg, #ffd66e, #ffb52a);
  color: #121212;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 10px 22px rgba(255, 181, 42, 0.24);
}

/* v20 cutscene visual upgrade */
.cutscene-stage {
  width: min(94%, 1120px);
  height: min(84%, 660px);
}
.cutscene-shell {
  filter: drop-shadow(0 28px 60px rgba(0,0,0,0.42));
}
.cutscene-scene {
  border-width: 2px;
  border-color: rgba(255,216,150,0.48);
  box-shadow: 0 28px 90px rgba(0,0,0,0.56), inset 0 0 0 6px rgba(255,255,255,0.035), inset 0 0 55px rgba(0,0,0,0.14);
}
.cutscene-story-frame::before,
.cutscene-story-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  pointer-events: none;
}
.cutscene-story-frame::before {
  border: 1px solid rgba(255,226,170,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.cutscene-story-frame::after {
  inset: 24px;
  border: 1px solid rgba(255,206,130,0.08);
}
.cutscene-title {
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(255,196,72,0.36), 0 4px 18px rgba(0,0,0,0.26);
}
.cutscene-text {
  max-width: min(94%, 900px);
  font-size: clamp(1.02rem, 1.82vw, 1.34rem);
  line-height: 1.62;
  background: linear-gradient(180deg, rgba(12, 15, 28, 0.7), rgba(8, 10, 18, 0.54));
  border-color: rgba(255, 226, 170, 0.22);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.cutscene-illustration {
  min-height: 320px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,219,132,0.22), transparent 18%),
    linear-gradient(180deg, rgba(122, 35, 20, 0.94), rgba(44, 12, 10, 0.99));
}
.cutscene-stars,
.cutscene-particles,
.cutscene-mist,
.cutscene-lantern {
  position: absolute;
  pointer-events: none;
}
.cutscene-stars {
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 16% 24%, rgba(255,246,210,0.65) 0 1.4px, transparent 1.8px),
    radial-gradient(circle at 30% 14%, rgba(255,246,210,0.48) 0 1.4px, transparent 1.8px),
    radial-gradient(circle at 74% 18%, rgba(255,246,210,0.62) 0 1.6px, transparent 1.9px),
    radial-gradient(circle at 86% 28%, rgba(255,246,210,0.52) 0 1.3px, transparent 1.8px),
    radial-gradient(circle at 58% 9%, rgba(255,246,210,0.54) 0 1.4px, transparent 1.8px);
}
.cutscene-particles {
  inset: 0;
  opacity: 0.72;
  background:
    radial-gradient(circle at 20% 58%, rgba(255,180,92,0.3) 0 6px, transparent 7px),
    radial-gradient(circle at 78% 44%, rgba(255,180,92,0.24) 0 5px, transparent 6px),
    radial-gradient(circle at 66% 24%, rgba(255,238,188,0.26) 0 3px, transparent 4px),
    radial-gradient(circle at 38% 30%, rgba(255,238,188,0.22) 0 4px, transparent 5px);
  animation: particlesDrift 7.4s ease-in-out infinite alternate;
}
.cutscene-mist {
  left: -8%; right: -8%; height: 30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 52%, transparent 68%);
  filter: blur(16px);
  opacity: 0.58;
}
.mist-back { bottom: 18%; animation: mistSlide 9s ease-in-out infinite alternate; }
.mist-front { bottom: 4%; opacity: 0.34; animation: mistSlide 12s ease-in-out infinite alternate-reverse; }
.cutscene-lantern {
  top: 28px;
  width: 38px;
  height: 84px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f2533f, #8b1510);
  box-shadow: inset 0 0 0 2px rgba(255,223,140,0.26), 0 0 20px rgba(255,98,66,0.26);
}
.cutscene-lantern::before,
.cutscene-lantern::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.cutscene-lantern::before {
  top: -18px;
  width: 2px; height: 20px; background: rgba(255,219,150,0.66);
}
.cutscene-lantern::after {
  bottom: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,244,188,0.95), rgba(255,191,92,0.28) 55%, transparent 72%);
}
.lantern-left { left: 22px; }
.lantern-right { right: 22px; }
.cutscene-controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 7;
}
.cutscene-progress {
  font-size: 0.9rem;
  color: rgba(255,244,222,0.88);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
}
.cutscene-skip-btn {
  min-height: auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(31,42,76,0.98), rgba(17,24,48,0.98));
  color: #f8fbff;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
}
.cutscene-skip-btn:hover,
.cutscene-skip-btn:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(44,59,102,0.98), rgba(21,30,60,0.98));
}
.cutscene-hint {
  right: 20px;
  bottom: 60px;
}
.cutscene-door {
  background:
    linear-gradient(180deg, rgba(148,28,18,0.99), rgba(86,10,8,0.99)),
    linear-gradient(90deg, rgba(255,255,255,0.08), transparent 22%, rgba(0,0,0,0.12) 100%);
}
.cutscene-door::before {
  border-color: rgba(255,222,146,0.84);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.07), 0 0 0 2px rgba(255,186,88,0.08);
}
.cutscene-scene.scene-1 .cutscene-illustration::after {
  content: "";
  position: absolute;
  inset: 18% 16% 16% 16%;
  background:
    radial-gradient(circle at 22% 48%, rgba(255,222,148,0.1) 0 40px, transparent 44px),
    radial-gradient(circle at 78% 48%, rgba(255,222,148,0.1) 0 40px, transparent 44px),
    linear-gradient(180deg, transparent 0 58%, rgba(255,175,92,0.08) 58% 60%, transparent 60% 100%);
}
.cutscene-scene.scene-4 .story-arm.left { transform: rotate(42deg); }
.cutscene-scene.scene-4 .story-arm.right { transform: rotate(-54deg); }
.cutscene-scene.scene-4 .cutscene-illustration::before {
  box-shadow: -12px 16px 0 -10px rgba(255,136,86,0.32), 80px 42px 0 -18px rgba(255,180,102,0.18);
}
.cutscene-scene.scene-5 .cutscene-illustration::before {
  background:
    radial-gradient(circle at 14% 70%, rgba(255,120,110,0.34) 0 18px, transparent 20px),
    radial-gradient(circle at 24% 68%, rgba(255,140,120,0.26) 0 16px, transparent 18px),
    radial-gradient(circle at 72% 72%, rgba(255,120,110,0.34) 0 18px, transparent 20px),
    radial-gradient(circle at 82% 70%, rgba(255,140,120,0.26) 0 16px, transparent 18px),
    radial-gradient(circle at 50% 30%, rgba(255,210,90,0.34) 0 78px, transparent 80px),
    linear-gradient(180deg, transparent 0 72%, rgba(30,8,12,0.6) 72% 100%);
}
@keyframes mistSlide {
  from { transform: translateX(-2.5%) translateY(0); }
  to { transform: translateX(2.5%) translateY(-4px); }
}
@keyframes particlesDrift {
  from { transform: translateY(0) scale(1); opacity: 0.68; }
  to { transform: translateY(-10px) scale(1.02); opacity: 0.88; }
}
@media (max-width: 900px) {
  .language-switch { flex-wrap: wrap; border-radius: 16px; }
  .cutscene-controls { left: 12px; right: 12px; bottom: 10px; }
  .cutscene-progress { font-size: 0.72rem; letter-spacing: 0.08em; padding: 7px 10px; }
  .cutscene-skip-btn { padding: 8px 12px; font-size: 0.75rem; }
  .cutscene-hint { bottom: 50px; right: 12px; }
  .cutscene-lantern { width: 28px; height: 68px; top: 20px; }
}

/* v31 commercial launch screen redesign */
.launch-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) clamp(14px, 3vw, 34px) 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(56, 213, 255, 0.34), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(255, 122, 24, 0.24), transparent 28%),
    linear-gradient(180deg, #081126 0%, #102759 45%, #051420 100%);
}
.launch-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%),
    radial-gradient(circle at 50% 106%, rgba(0,0,0,0.58), transparent 48%);
}
.launch-bg,
.launch-bg > * {
  position: absolute;
  pointer-events: none;
}
.launch-bg { inset: 0; z-index: -2; overflow: hidden; }
.launch-sky-glow {
  width: 42vmax;
  height: 42vmax;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.52;
}
.glow-one { left: -16vmax; top: -14vmax; background: rgba(56,213,255,0.38); }
.glow-two { right: -14vmax; top: 4vmax; background: rgba(250,204,21,0.26); }
.launch-cloud {
  width: 180px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  filter: blur(0.2px);
  box-shadow: 42px 6px 0 rgba(255,255,255,0.11), 82px -9px 0 rgba(255,255,255,0.12);
  opacity: 0.62;
  animation: launchCloudDrift 18s ease-in-out infinite alternate;
}
.cloud-one { left: 8%; top: 18%; transform: scale(0.9); }
.cloud-two { right: 18%; top: 10%; transform: scale(0.72); animation-duration: 21s; }
.cloud-three { left: 52%; top: 34%; transform: scale(0.54); animation-duration: 24s; }
.launch-hills {
  left: -5%;
  right: -5%;
  bottom: -3%;
  height: 31%;
  border-radius: 50% 50% 0 0;
}
.hill-back {
  bottom: 6%;
  background: radial-gradient(ellipse at 22% 90%, rgba(40, 132, 99, 0.68), transparent 45%), radial-gradient(ellipse at 70% 94%, rgba(27, 105, 111, 0.74), transparent 48%);
  opacity: 0.78;
}
.hill-front {
  background: radial-gradient(ellipse at 30% 92%, rgba(13, 66, 56, 0.92), transparent 52%), radial-gradient(ellipse at 80% 96%, rgba(18, 74, 66, 0.96), transparent 50%);
}
.launch-particles {
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 12% 26%, rgba(255,255,255,0.85) 0 1px, transparent 1.8px),
    radial-gradient(circle at 24% 46%, rgba(255,255,255,0.5) 0 1.2px, transparent 2px),
    radial-gradient(circle at 42% 20%, rgba(255,255,255,0.66) 0 1px, transparent 1.8px),
    radial-gradient(circle at 68% 32%, rgba(255,255,255,0.72) 0 1.3px, transparent 2px),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.66) 0 1px, transparent 1.8px),
    radial-gradient(circle at 88% 52%, rgba(255,255,255,0.54) 0 1.2px, transparent 2px);
  animation: launchSparkle 5.8s ease-in-out infinite alternate;
}
.launch-topbar {
  width: min(1180px, 100%);
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.launch-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(4, 10, 24, 0.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 16px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
}
.launch-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #111827;
  font-weight: 1000;
  letter-spacing: -0.08em;
  background: linear-gradient(180deg, #fff3a3, #ff8a21);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.65), 0 8px 20px rgba(255,122,24,0.28);
}
.launch-brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.launch-brand-kicker {
  display: block;
  color: rgba(226,232,240,0.74);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.launch-topbar .language-switch {
  margin-top: 0;
  background: rgba(4, 10, 24, 0.5);
  backdrop-filter: blur(12px);
}
.launch-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
}
.launch-hero.card,
.launch-start-card.card {
  max-width: none;
  margin: 0;
  border-radius: 34px;
  position: relative;
  overflow: hidden;
}
.launch-hero.card {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(21, 38, 89, 0.92), rgba(7, 73, 88, 0.78)),
    radial-gradient(circle at 72% 24%, rgba(250,204,21,0.22), transparent 28%);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 32px 90px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.18);
}
.launch-hero.card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.launch-hero.card::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -22%;
  height: 40%;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.46), transparent 68%);
  pointer-events: none;
}
.launch-copy { position: relative; z-index: 2; }
.launch-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(250,204,21,0.14);
  border: 1px solid rgba(250,204,21,0.34);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.launch-logo {
  display: grid;
  margin: 0 0 14px;
  font-size: clamp(58px, 8vw, 108px);
  line-height: 0.78;
  letter-spacing: -0.08em;
  color: #fff9d6;
  text-shadow:
    0 6px 0 rgba(88, 34, 8, 0.58),
    0 14px 32px rgba(0,0,0,0.42),
    0 0 28px rgba(250,204,21,0.22);
  transform: rotate(-1.6deg);
}
.launch-logo span:last-child {
  padding-left: 0.48em;
  color: #ffcf4a;
}
.launch-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(235,245,255,0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
  font-weight: 750;
}
.launch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.launch-pills .pill {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16), inset 0 2px 0 rgba(255,255,255,0.28);
}
.launch-pills .install-status {
  background: rgba(255,255,255,0.12);
  color: #e0f2fe;
  border: 1px solid rgba(255,255,255,0.18);
}
.launch-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.launch-feature-strip span {
  padding: 8px 11px;
  border-radius: 999px;
  color: rgba(248,250,252,0.9);
  background: rgba(2,6,23,0.34);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-showcase {
  position: relative;
  z-index: 2;
  min-height: 480px;
  display: grid;
  place-items: center;
}
.showcase-card {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1.1;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,239,164,0.62), transparent 16%),
    linear-gradient(180deg, #5bddff 0%, #8de2ff 38%, #4ab16e 69%, #0c563f 100%);
  border: 2px solid rgba(255,255,255,0.34);
  box-shadow: 0 30px 70px rgba(0,0,0,0.38), inset 0 0 0 8px rgba(255,255,255,0.08);
  transform: rotate(1.8deg);
}
.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12), transparent 24%, transparent 76%, rgba(0,0,0,0.1)),
    radial-gradient(ellipse at 50% 92%, rgba(0,0,0,0.28), transparent 36%);
}
.showcase-sun {
  position: absolute;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  right: 42px;
  top: 42px;
  background: radial-gradient(circle, #fff7ad 0 38%, #ffd257 39% 68%, rgba(255,210,87,0.22) 69% 100%);
  box-shadow: 0 0 42px rgba(255,238,130,0.7);
}
.zodiac-ring {
  position: absolute;
  left: 36px;
  top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 38px);
  gap: 8px;
  opacity: 0.88;
}
.zodiac-ring span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(4,10,24,0.3);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff8d7;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.launch-platform {
  position: absolute;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #60d66b, #19734f);
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 6px 0 rgba(255,255,255,0.16), 0 16px 22px rgba(0,0,0,0.2);
}
.platform-back { width: 180px; left: 28px; bottom: 168px; transform: rotate(-4deg); opacity: 0.82; }
.platform-front { width: 320px; left: 86px; bottom: 72px; transform: rotate(2deg); }
.menu-character {
  position: absolute;
  left: 184px;
  bottom: 116px;
  width: 128px;
  height: 206px;
  animation: menuHeroIdle 1.85s ease-in-out infinite alternate;
  filter: drop-shadow(0 18px 18px rgba(0,0,0,0.28));
}
.character-ring,
.character-head,
.character-body,
.character-arm,
.character-leg,
.character-weapon { position: absolute; }
.character-head {
  left: 26px;
  top: 20px;
  width: 78px;
  height: 82px;
  border-radius: 48% 48% 46% 46%;
  background: linear-gradient(180deg, #ffd4a5, #c97445);
  border: 3px solid rgba(86,42,24,0.56);
  box-shadow: inset 0 10px 0 rgba(255,255,255,0.14);
}
.character-head::before,
.character-head::after {
  content: "";
  position: absolute;
  top: 34px;
  width: 9px;
  height: 13px;
  border-radius: 50%;
  background: #111827;
}
.character-head::before { left: 22px; }
.character-head::after { right: 22px; }
.character-ring {
  left: 16px;
  top: 10px;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  border: 9px solid #ffd54a;
  box-shadow: 0 0 18px rgba(250,204,21,0.68), inset 0 0 10px rgba(255,255,255,0.38);
  animation: ringPulse 1.4s ease-in-out infinite alternate;
}
.character-body {
  left: 42px;
  top: 96px;
  width: 48px;
  height: 70px;
  border-radius: 22px 22px 18px 18px;
  background: linear-gradient(180deg, #7630d8, #3b1f8f);
  border: 3px solid rgba(255,255,255,0.14);
}
.character-arm {
  top: 106px;
  width: 20px;
  height: 68px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd4a5, #a55a35);
  transform-origin: top center;
}
.arm-left { left: 28px; transform: rotate(28deg); }
.arm-right { right: 21px; transform: rotate(-62deg); }
.character-leg {
  top: 156px;
  width: 22px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, #332661, #111827);
  transform-origin: top center;
}
.leg-left { left: 44px; transform: rotate(10deg); }
.leg-right { right: 36px; transform: rotate(-18deg); }
.character-weapon {
  right: -4px;
  top: 120px;
  width: 82px;
  height: 20px;
  border-radius: 999px 18px 18px 999px;
  background: linear-gradient(180deg, #cbd5e1, #475569);
  transform: rotate(-14deg);
  box-shadow: inset 0 3px 0 rgba(255,255,255,0.28), 0 4px 0 rgba(15,23,42,0.34);
}
.character-weapon::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 5px;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: #ffb020;
  box-shadow: 0 0 20px rgba(255,176,32,0.8);
}
.enemy {
  position: absolute;
  width: 70px;
  height: 52px;
  border-radius: 46% 46% 42% 42%;
  background: linear-gradient(180deg, #8b5e46, #50311f);
  border: 2px solid rgba(0,0,0,0.18);
  filter: drop-shadow(0 10px 10px rgba(0,0,0,0.18));
}
.enemy::before,
.enemy::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: inherit;
}
.enemy::before { left: 8px; }
.enemy::after { right: 8px; }
.enemy span::before,
.enemy span::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 8px;
  height: 10px;
  border-radius: 50%;
  background: #111827;
  z-index: 2;
}
.enemy span::before { left: 21px; }
.enemy span::after { right: 21px; }
.enemy-rat { right: 74px; bottom: 140px; animation: enemyBob 1.6s ease-in-out infinite alternate; }
.enemy-ox { left: 60px; bottom: 238px; transform: scale(0.8) rotate(-7deg); animation: enemyBob 2.1s ease-in-out infinite alternate-reverse; }
.projectile {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,0.18));
}
.cheese-one,
.cheese-two {
  width: 0;
  height: 0;
  border-left: 24px solid transparent;
  border-right: 24px solid transparent;
  border-bottom: 42px solid #ffd94a;
  transform-origin: 50% 60%;
  animation: spinProjectile 1.2s linear infinite;
}
.cheese-one { right: 118px; top: 198px; }
.cheese-two { left: 100px; top: 252px; transform: scale(0.72); animation-duration: 0.95s; }
.rocket-one {
  width: 72px;
  height: 18px;
  right: 118px;
  bottom: 260px;
  border-radius: 999px 18px 18px 999px;
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  transform: rotate(-18deg);
}
.rocket-one::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 3px;
  width: 28px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at right, #fff7ad, #ff7a18 58%, transparent 70%);
}
.star-core {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff7ad;
  background: rgba(5,10,28,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 22px;
  text-shadow: 0 0 12px rgba(255,240,120,0.85);
  animation: starFloat 1.6s ease-in-out infinite alternate;
}
.core-one { left: 74px; top: 146px; }
.core-two { right: 72px; top: 146px; animation-delay: .22s; }
.core-three { right: 38px; bottom: 84px; animation-delay: .42s; }
.launch-start-card.card {
  padding: clamp(18px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(8, 16, 39, 0.94), rgba(10, 34, 50, 0.9));
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 26px 70px rgba(0,0,0,0.36), inset 0 1px 0 rgba(255,255,255,0.16);
}
.start-card-header h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.05em;
}
.launch-start-card label {
  margin-bottom: 8px;
  color: rgba(226,232,240,0.82);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.launch-start-card .start-row { gap: 10px; }
.launch-start-card input {
  width: 100%;
  flex-basis: 100%;
  min-height: 58px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  color: #111827;
  font-size: 20px;
  box-shadow: inset 0 3px 0 rgba(0,0,0,0.05);
}
.primary-row { margin-top: 12px; }
.launch-play-btn {
  width: 100%;
  min-height: 78px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #351500;
  border: 2px solid rgba(255,255,255,0.56);
  background: linear-gradient(180deg, #fff07a 0%, #ffc43b 42%, #ff7a18 100%);
  box-shadow:
    inset 0 5px 0 rgba(255,255,255,0.58),
    inset 0 -5px 0 rgba(120,53,15,0.16),
    0 16px 36px rgba(255,122,24,0.34),
    0 0 32px rgba(250,204,21,0.26);
  animation: playPulse 1.55s ease-in-out infinite alternate;
}
.launch-play-btn:hover,
.launch-play-btn:focus-visible,
.secondary:hover,
.ghost:hover,
.lang-btn:hover {
  transform: translateY(-2px);
}
.launch-play-btn:active,
.secondary:active,
.ghost:active,
.lang-btn:active {
  transform: translateY(1px) scale(0.985);
}
.primary-row .secondary {
  width: 100%;
  min-height: 52px;
}
.launch-menu-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.launch-menu-tools .ghost {
  min-height: 42px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}
.launch-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.launch-stats div {
  min-height: 56px;
  padding: 9px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,0.075);
}
.launch-stats b { font-size: 9px; }
.launch-stats span { font-size: 19px; }
.leaderboard-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.leaderboard-panel .leaderboard-tabs { margin-top: 0; }
.leaderboard-panel h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.leaderboard-panel h2 small { margin-left: 0; }
.launch-start-card .leaderboard { gap: 7px; }
.launch-start-card .leaderboard li {
  padding: 9px 11px;
  border-radius: 13px;
  font-size: 15px;
  background: rgba(255,255,255,0.09);
}
.launch-secondary-grid {
  width: min(1180px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.launch-secondary-grid .card {
  max-width: none;
  margin: 0;
}
.compact-card {
  border-radius: 24px;
  padding: 20px;
}
.compact-card h2 {
  margin-top: 0;
  font-size: clamp(22px, 2.6vw, 32px);
}
.compact-card p,
.settings-note {
  font-size: 14px;
}
.compact-card .unlock-list li {
  font-size: 12px;
  padding: 7px 10px;
}
@keyframes launchCloudDrift {
  from { translate: -10px 0; }
  to { translate: 18px -6px; }
}
@keyframes launchSparkle {
  from { opacity: 0.36; transform: translateY(0); }
  to { opacity: 0.72; transform: translateY(-8px); }
}
@keyframes menuHeroIdle {
  from { transform: translateY(0) rotate(-1deg); }
  to { transform: translateY(-9px) rotate(1deg); }
}
@keyframes ringPulse {
  from { transform: scale(0.98); opacity: 0.88; }
  to { transform: scale(1.035); opacity: 1; }
}
@keyframes enemyBob {
  from { translate: 0 0; }
  to { translate: 0 -8px; }
}
@keyframes spinProjectile {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}
@keyframes starFloat {
  from { translate: 0 0; filter: brightness(1); }
  to { translate: 0 -9px; filter: brightness(1.22); }
}
@keyframes playPulse {
  from { filter: saturate(1); box-shadow: inset 0 5px 0 rgba(255,255,255,0.58), inset 0 -5px 0 rgba(120,53,15,0.16), 0 16px 36px rgba(255,122,24,0.28), 0 0 22px rgba(250,204,21,0.18); }
  to { filter: saturate(1.14); box-shadow: inset 0 5px 0 rgba(255,255,255,0.64), inset 0 -5px 0 rgba(120,53,15,0.14), 0 20px 44px rgba(255,122,24,0.42), 0 0 42px rgba(250,204,21,0.36); }
}
@media (max-width: 1080px) {
  .launch-shell { grid-template-columns: 1fr; }
  .launch-hero.card { min-height: auto; }
  .launch-start-card.card { max-width: 720px; width: 100%; justify-self: center; }
  .launch-menu-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launch-secondary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .launch-screen { padding-left: 12px; padding-right: 12px; padding-bottom: 36px; }
  .launch-topbar { align-items: stretch; flex-direction: column; margin-bottom: 12px; }
  .launch-brand { width: 100%; justify-content: center; }
  .launch-topbar .language-switch { width: 100%; justify-content: center; }
  .launch-hero.card {
    grid-template-columns: 1fr;
    padding: 22px 16px 18px;
    border-radius: 26px;
    text-align: center;
  }
  .launch-hero.card::before { inset: 10px; border-radius: 20px; }
  .launch-logo {
    font-size: clamp(54px, 19vw, 86px);
    justify-items: center;
    transform: rotate(-1deg);
  }
  .launch-logo span:last-child { padding-left: 0; }
  .launch-copy p { margin-left: auto; margin-right: auto; font-size: 16px; }
  .launch-eyebrow { margin-left: auto; margin-right: auto; }
  .launch-pills,
  .launch-feature-strip { justify-content: center; }
  .launch-feature-strip { display: none; }
  .hero-showcase { min-height: 320px; }
  .showcase-card { width: min(92vw, 360px); border-radius: 32px; transform: rotate(1deg); }
  .menu-character { left: 42%; bottom: 96px; transform: translateX(-50%) scale(0.82); transform-origin: bottom center; }
  .enemy-rat { right: 42px; bottom: 114px; transform: scale(0.82); }
  .enemy-ox { left: 34px; bottom: 198px; transform: scale(0.66) rotate(-7deg); }
  .platform-front { width: 240px; left: 58px; bottom: 62px; }
  .platform-back { width: 136px; left: 18px; bottom: 142px; }
  .launch-start-card.card { border-radius: 26px; }
  .launch-play-btn { min-height: 74px; font-size: 32px; }
  .launch-menu-tools { grid-template-columns: 1fr 1fr; }
  .launch-menu-tools .ghost:last-child { grid-column: 1 / -1; }
  .launch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .launch-stats div { min-height: 50px; padding: 8px 7px; }
  .launch-stats b { font-size: 8px; }
  .launch-stats span { font-size: 16px; }
  .leaderboard-panel h2 { font-size: 22px; }
  .launch-start-card .leaderboard li { font-size: 14px; }
}
@media (max-width: 420px) {
  .launch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .launch-stats div:nth-child(5),
  .launch-stats div:nth-child(6),
  .launch-stats div:nth-child(7) { display: none; }
  .hero-showcase { min-height: 286px; }
  .showcase-card { width: min(92vw, 320px); }
  .menu-character { transform: translateX(-50%) scale(0.72); }
  .leaderboard-tabs .ghost { min-height: 38px; padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-cloud,
  .launch-particles,
  .menu-character,
  .character-ring,
  .enemy,
  .projectile,
  .star-core,
  .launch-play-btn {
    animation: none !important;
  }
}

/* v33 start-menu audio autoplay fallback */
.sound-unlock-prompt {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15,23,42,.92), rgba(88,28,135,.88));
  color: #fff7ed;
  box-shadow: 0 18px 44px rgba(0,0,0,.38), 0 0 28px rgba(251,191,36,.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
  animation: soundPromptPulse 1.7s ease-in-out infinite;
}
.sound-unlock-prompt b,
.sound-unlock-prompt small { display: block; line-height: 1.05; }
.sound-unlock-prompt b { font-size: 14px; font-weight: 1000; letter-spacing: .04em; text-transform: uppercase; }
.sound-unlock-prompt small { margin-top: 3px; color: #fde68a; font-size: 11px; font-weight: 800; }
.sound-unlock-orb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, #fff7ed, #facc15 42%, #f97316 78%);
  color: #431407;
  font-size: 20px;
  font-weight: 1000;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 18px rgba(250,204,21,.5);
}
.sound-unlock-prompt:hover,
.sound-unlock-prompt:focus-visible { transform: translateY(-2px) scale(1.02); outline: none; }
.sound-unlock-prompt:active { transform: translateY(1px) scale(.98); }
@keyframes soundPromptPulse {
  0%, 100% { box-shadow: 0 18px 44px rgba(0,0,0,.38), 0 0 22px rgba(251,191,36,.18); }
  50% { box-shadow: 0 20px 50px rgba(0,0,0,.44), 0 0 34px rgba(251,191,36,.34); }
}
@media (max-width: 640px) {
  .sound-unlock-prompt {
    left: 50%;
    right: auto;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    min-width: min(88vw, 340px);
    justify-content: center;
  }
  .sound-unlock-prompt:hover,
  .sound-unlock-prompt:focus-visible { transform: translateX(-50%) translateY(-2px) scale(1.02); }
  .sound-unlock-prompt:active { transform: translateX(-50%) translateY(1px) scale(.98); }
}


/* v36 mobile polish, install CTA and new weapon SFX feedback */
html, body {
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
button, .weapon-slot, .joystick, .mobile-controls {
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
.install-cta {
  position: relative;
  overflow: hidden;
  color: #05101d !important;
  border-color: rgba(255,255,255,.56) !important;
  background: linear-gradient(180deg, #e0f2fe, #67e8f9 54%, #22c55e) !important;
  box-shadow: 0 12px 28px rgba(34,211,238,.22), inset 0 2px 0 rgba(255,255,255,.55) !important;
}
.install-cta::before {
  content: '↧';
  margin-right: 5px;
  font-weight: 1000;
}
.install-cta.install-ready {
  animation: installReadyPulse 1.4s ease-in-out infinite alternate;
}
@keyframes installReadyPulse {
  from { filter: saturate(1); box-shadow: 0 12px 28px rgba(34,211,238,.22), inset 0 2px 0 rgba(255,255,255,.55); }
  to { filter: saturate(1.22); box-shadow: 0 16px 36px rgba(34,211,238,.36), 0 0 24px rgba(34,197,94,.24), inset 0 2px 0 rgba(255,255,255,.68); }
}
.action-button.is-pressed,
.mobile-pause-button.is-pressed,
.joystick.is-active {
  filter: brightness(1.18) saturate(1.18);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 14px 30px rgba(0,0,0,.34), inset 0 2px 0 rgba(255,255,255,.28);
}
@media (orientation: landscape) and (hover: none), (orientation: landscape) and (pointer: coarse) {
  .game-frame {
    border-radius: 0;
    box-shadow: none;
  }
  .joystick {
    left: max(18px, calc(env(safe-area-inset-left) + 18px));
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 24px));
    width: clamp(108px, 17vh, 132px);
    height: clamp(108px, 17vh, 132px);
    background: rgba(5, 12, 26, .42);
  }
  .stick {
    left: calc(50% - 21px);
    top: calc(50% - 21px);
    width: 42px;
    height: 42px;
  }
  .action-button {
    width: clamp(64px, 10.5vh, 80px);
    height: clamp(64px, 10.5vh, 80px);
    font-size: clamp(24px, 4vh, 30px);
    background: rgba(10,16,38,.78);
  }
  .action-button.jump {
    right: max(196px, calc(env(safe-area-inset-right) + 196px));
    bottom: max(96px, calc(env(safe-area-inset-bottom) + 96px));
  }
  .action-button.left { right: max(104px, calc(env(safe-area-inset-right) + 104px)); }
  .action-button.top { right: max(52px, calc(env(safe-area-inset-right) + 52px)); }
  .action-button.right { right: max(0px, env(safe-area-inset-right)); }
  .action-button.bottom { right: max(52px, calc(env(safe-area-inset-right) + 52px)); }
  .weapon-slot {
    min-width: 42px;
    min-height: 34px;
  }
}
@media (max-width: 760px) {
  .launch-menu-tools .install-cta {
    grid-column: auto;
  }
}


/* v42 one-page commercial launch screen polish */
.launch-screen {
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(10px, 1.7vw, 18px) clamp(12px, 2vw, 24px);
}
.launch-screen::after {
  background:
    radial-gradient(circle at 50% 105%, rgba(250,204,21,.16), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(2,6,23,.16) 54%, rgba(2,6,23,.52) 100%);
}
.launch-topbar {
  width: min(1500px, 100%);
  margin: 0 auto clamp(8px, 1.2vh, 14px);
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 22px;
  background: rgba(2, 6, 23, .38);
  backdrop-filter: blur(16px);
}
.launch-brand-mark { width: 42px; height: 42px; font-size: 17px; }
.launch-brand strong { font-size: 18px; }
.launch-brand-kicker { font-size: 9px; }
.launch-topbar .language-switch { padding: 4px; gap: 6px; }
.launch-topbar .language-switch .ghost { min-height: 34px; padding: 0 12px; font-size: 11px; }
.launch-shell {
  width: min(1500px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(390px, 1.2fr) minmax(320px, .82fr) minmax(300px, .78fr);
  gap: clamp(10px, 1.3vw, 18px);
  align-items: stretch;
}
.launch-hero.card,
.launch-start-card.card,
.launch-secondary-grid .card {
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
}
.launch-hero.card {
  grid-template-columns: minmax(255px, .9fr) minmax(250px, 1fr);
  padding: clamp(18px, 2vw, 28px);
  min-height: 0;
  height: 100%;
}
.launch-eyebrow { font-size: 10px; padding: 7px 10px; margin-bottom: 8px; }
.launch-logo { font-size: clamp(54px, 6vw, 94px); line-height: .78; margin-bottom: 10px; }
.launch-copy p { font-size: clamp(13px, 1.15vw, 17px); max-width: 48ch; margin-bottom: 12px; }
.launch-pills { gap: 7px; margin-bottom: 10px; }
.launch-pills .pill { min-height: 30px; padding: 0 10px; font-size: 10px; }
.launch-feature-strip { gap: 7px; }
.launch-feature-strip span { padding: 8px 9px; font-size: 10px; }
.hero-showcase { min-height: 0; height: 100%; display: grid; place-items: center; }
.showcase-card { width: min(100%, 420px); height: min(100%, 520px); min-height: 430px; }
.launch-start-card.card {
  height: 100%;
  padding: clamp(14px, 1.55vw, 22px);
  display: flex;
  flex-direction: column;
}
.start-card-header h2 { font-size: clamp(24px, 2.1vw, 34px); margin-bottom: 8px; }
.launch-start-card label { margin-bottom: 5px; }
.launch-start-card input { min-height: 46px; font-size: 17px; border-radius: 14px; }
.primary-row { margin-top: 8px; }
.launch-play-btn { min-height: clamp(58px, 7.2vh, 74px); font-size: clamp(24px, 3.2vw, 34px); }
.primary-row .secondary { min-height: 42px; }
.launch-menu-tools { gap: 7px; }
.launch-menu-tools .ghost { min-height: 35px; padding: 0 7px; font-size: 10px; border-radius: 14px; }
.launch-stats { gap: 6px; margin-top: 10px; }
.launch-stats div { min-height: 44px; padding: 6px 7px; border-radius: 13px; }
.launch-stats b { font-size: 7.5px; }
.launch-stats span { font-size: 15px; }
.leaderboard-panel { margin-top: 10px; padding-top: 10px; min-height: 0; display: flex; flex-direction: column; }
.leaderboard-panel h2 { font-size: 17px; margin: 8px 0 6px; }
.launch-start-card .leaderboard { gap: 5px; min-height: 0; overflow: hidden; }
.launch-start-card .leaderboard li { padding: 6px 8px; border-radius: 10px; font-size: 12px; }
.leaderboard-tabs .ghost { min-height: 32px; }
.launch-secondary-grid {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(8px, 1vh, 12px);
}
.launch-secondary-grid .card { max-width: none; margin: 0; }
.compact-card { padding: clamp(12px, 1.25vw, 17px); border-radius: 20px; }
.compact-card h2 { font-size: clamp(18px, 1.7vw, 24px); margin: 0 0 8px; }
.settings-row { gap: 6px; margin: 6px 0; }
.settings-row label { font-size: 13px; }
.settings-row select { min-height: 40px; border-radius: 13px; padding: 0 10px; font-size: 12px; }
.compact-card p, .settings-note { font-size: 11.5px; line-height: 1.35; }
.compact-card .unlock-list { max-height: 82px; overflow: hidden; gap: 5px; }
.compact-card .unlock-list li { font-size: 10px; padding: 5px 8px; }
.instructions.compact-card { display: flex; flex-direction: column; gap: 7px; }
.instructions.compact-card p { margin: 0; }
@media (max-width: 1180px) {
  .launch-screen { min-height: 620px; }
  .launch-shell { grid-template-columns: minmax(360px, 1fr) minmax(300px, .9fr); }
  .launch-secondary-grid { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr; height: min(27vh, 188px); }
  .compact-card { padding: 12px; }
  .compact-card h2 { font-size: 17px; }
  .instructions.compact-card p:nth-of-type(2),
  .instructions.compact-card p:nth-of-type(3),
  .systems-card.compact-card p { display: none; }
}
@media (max-width: 820px) {
  .launch-screen { min-height: 100dvh; padding: 8px; }
  .launch-topbar { margin-bottom: 7px; }
  .launch-brand-kicker, .language-label { display: none; }
  .launch-brand strong { font-size: 15px; }
  .launch-shell { grid-template-columns: 1fr; gap: 8px; }
  .launch-hero.card { grid-template-columns: 1fr; padding: 12px; text-align: center; max-height: 30vh; }
  .launch-logo { font-size: clamp(38px, 11vw, 62px); }
  .launch-copy p, .launch-feature-strip, .hero-showcase { display: none; }
  .launch-pills { justify-content: center; margin: 0; }
  .launch-start-card.card { padding: 12px; max-height: 42vh; }
  .start-card-header h2 { font-size: 21px; }
  .launch-start-card input { min-height: 40px; }
  .launch-play-btn { min-height: 54px; font-size: 25px; }
  .launch-stats div:nth-child(n+4) { display: none; }
  .leaderboard-panel { display: none; }
  .launch-secondary-grid { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; height: auto; max-height: 22vh; overflow: hidden; }
  .compact-card { padding: 10px; }
  .compact-card h2 { font-size: 15px; margin-bottom: 4px; }
  .compact-card p, .settings-note, .settings-row label, .settings-row select { font-size: 10px; }
  .settings-row select { min-height: 34px; }
  #progressionNote, #unlockList, #desktopControls, #installControls, #systemsNote { display: none; }
}
@media (max-height: 690px) and (min-width: 821px) {
  .showcase-card { min-height: 350px; }
  .launch-feature-strip, .launch-copy p { display: none; }
  .launch-logo { font-size: clamp(48px, 5vw, 76px); }
  .launch-start-card .leaderboard li:nth-child(n+6) { display: none; }
  .compact-card p { font-size: 10.5px; }
}

/* v44 mobile landscape start-screen fit pass */
@media (orientation: landscape) and (max-height: 760px) and (pointer: coarse),
       (orientation: landscape) and (max-height: 760px) and (hover: none) {
  html, body, #app { height: 100%; overflow: hidden; }
  .launch-screen {
    height: var(--app-height, 100dvh);
    min-height: 0;
    padding: max(4px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    grid-template-rows: minmax(38px, 8.6vh) minmax(0, 1fr);
    overflow: hidden;
  }
  .launch-topbar {
    width: 100%;
    min-height: 0;
    margin: 0 0 5px;
    padding: 4px 6px;
    border-radius: 15px;
  }
  .launch-brand { gap: 7px; padding: 0; }
  .launch-brand-mark { width: 32px; height: 32px; font-size: 12px; }
  .launch-brand strong { font-size: clamp(12px, 2vw, 17px); line-height: 1; }
  .launch-brand-kicker { font-size: 7px; letter-spacing: .12em; }
  .launch-topbar .language-switch { padding: 3px; gap: 4px; border-radius: 14px; }
  .launch-topbar .language-switch .ghost { min-height: 28px; padding: 0 9px; font-size: 10px; border-radius: 14px; }
  .language-label { font-size: 9px; }

  .launch-shell {
    width: 100%;
    height: 100%;
    grid-template-columns: minmax(286px, .95fr) minmax(330px, 1fr) minmax(220px, .58fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 6px;
    overflow: hidden;
  }
  .launch-hero.card,
  .launch-start-card.card,
  .launch-secondary-grid .card {
    border-radius: 18px;
  }
  .launch-hero.card {
    height: 100%;
    max-height: none;
    padding: 9px;
    grid-template-columns: minmax(118px, .66fr) minmax(150px, 1fr);
    gap: 6px;
    text-align: left;
  }
  .launch-hero.card::before { inset: 8px; border-radius: 14px; }
  .launch-eyebrow { font-size: 7px; padding: 4px 6px; margin-bottom: 5px; letter-spacing: .13em; }
  .launch-logo { font-size: clamp(28px, 4vw, 50px); line-height: .8; margin: 0 0 6px; letter-spacing: -0.06em; }
  .launch-copy p {
    display: block;
    font-size: clamp(8.5px, 1.05vw, 11px);
    line-height: 1.25;
    margin: 0 0 6px;
    max-width: 28ch;
  }
  .launch-pills { gap: 4px; margin: 0 0 5px; justify-content: flex-start; }
  .launch-pills .pill { min-height: 20px; padding: 0 6px; font-size: 7.5px; }
  .launch-feature-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .launch-feature-strip span { padding: 5px 5px; font-size: 7px; border-radius: 10px; }
  .hero-showcase { display: grid; min-height: 0; height: 100%; overflow: visible; }
  .showcase-card {
    width: min(100%, calc((var(--app-height, 100dvh) - 62px) * .78));
    height: min(100%, calc(var(--app-height, 100dvh) - 62px));
    min-height: 0;
    aspect-ratio: 1 / 1.1;
    transform: rotate(.8deg) scale(.96);
    border-radius: 24px;
  }

  .launch-start-card.card { max-height: none; height: 100%; padding: 9px; }
  .section-kicker { font-size: 8px; padding: 4px 9px; margin-bottom: 5px; }
  .start-card-header h2 { font-size: clamp(17px, 2.2vw, 25px); margin: 0 0 4px; }
  .launch-start-card label { font-size: 9px; margin-bottom: 3px; }
  .launch-start-card input { min-height: 34px; font-size: 14px; border-radius: 10px; padding: 0 12px; }
  .primary-row { margin-top: 6px; gap: 5px; }
  .launch-play-btn { min-height: clamp(39px, 7.2vh, 50px); font-size: clamp(20px, 3.1vw, 30px); border-radius: 18px; }
  .primary-row .secondary { min-height: 32px; font-size: 12px; border-radius: 13px; }
  .launch-menu-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
  .launch-menu-tools .ghost { min-height: 28px; font-size: 8.5px; padding: 0 5px; border-radius: 11px; }
  .launch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
  .launch-stats div { min-height: 32px; padding: 4px 5px; border-radius: 10px; }
  .launch-stats b { font-size: 6.5px; }
  .launch-stats span { font-size: 13px; }
  .leaderboard-panel { margin-top: 6px; padding-top: 6px; min-height: 0; flex: 1 1 auto; }
  .leaderboard-tabs .ghost { min-height: 27px; font-size: 10px; }
  .leaderboard-panel h2 { font-size: 13px; margin: 5px 0 5px; }
  .leaderboard-panel h2 small { font-size: 9px; }
  .launch-start-card .leaderboard { gap: 3px; }
  .launch-start-card .leaderboard li { padding: 4px 6px; font-size: 10px; border-radius: 8px; }
  .launch-start-card .leaderboard li:nth-child(n+7) { display: none; }

  .launch-secondary-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: .8fr .78fr 1fr;
    height: 100%;
    max-height: none;
    gap: 6px;
    overflow: hidden;
  }
  .compact-card { padding: 8px; border-radius: 15px; }
  .compact-card h2 { font-size: 12px; margin: 0 0 4px; }
  .settings-row { margin: 0; gap: 4px; }
  .settings-row label { font-size: 8px; }
  .settings-row select { min-height: 28px; padding: 0 6px; border-radius: 8px; font-size: 8.5px; }
  .settings-note, .compact-card p { font-size: 8px; line-height: 1.25; }
  .compact-card .unlock-list { max-height: 56px; gap: 3px; }
  .compact-card .unlock-list li { font-size: 7.5px; padding: 3px 5px; }
  #systemsNote, #progressionNote, #desktopControls, #installControls { display: none; }
  #mobileControls { display: block; }
  .instructions.compact-card { gap: 4px; }

  .tap-for-sound { right: 8px; bottom: 8px; transform: scale(.82); transform-origin: bottom right; }
}

@media (orientation: landscape) and (max-height: 560px) and (pointer: coarse),
       (orientation: landscape) and (max-height: 560px) and (hover: none) {
  .launch-shell { grid-template-columns: minmax(250px, .82fr) minmax(300px, 1fr) minmax(190px, .48fr); gap: 5px; }
  .launch-logo { font-size: clamp(24px, 3.4vw, 40px); }
  .launch-copy p { display: none; }
  .launch-feature-strip span:nth-child(n+3) { display: none; }
  .launch-stats div:nth-child(n+7) { display: none; }
  .launch-start-card .leaderboard li:nth-child(n+5) { display: none; }
  .compact-card .unlock-list li:nth-child(n+5) { display: none; }
}

@media (orientation: landscape) and (max-width: 860px) and (pointer: coarse),
       (orientation: landscape) and (max-width: 860px) and (hover: none) {
  .launch-shell { grid-template-columns: minmax(205px, .78fr) minmax(270px, 1fr) minmax(150px, .42fr); gap: 4px; }
  .launch-hero.card { grid-template-columns: minmax(86px, .55fr) minmax(110px, 1fr); padding: 7px; }
  .launch-logo { font-size: clamp(22px, 3.6vw, 34px); }
  .launch-eyebrow { display: none; }
  .launch-pills .pill:nth-child(2), .launch-feature-strip { display: none; }
  .launch-start-card.card { padding: 7px; }
  .launch-menu-tools .ghost { font-size: 7px; padding: 0 3px; }
  .launch-stats div:nth-child(n+7) { display: none; }
  .leaderboard-panel h2 { display: none; }
  .launch-start-card .leaderboard li:nth-child(n+4) { display: none; }
  .compact-card { padding: 6px; }
  .compact-card h2 { font-size: 10px; }
  .settings-note, .compact-card p { font-size: 7px; }
  .compact-card .unlock-list li:nth-child(n+4) { display: none; }
}

/* v44 portrait mobile full-screen menu fit */
@media (orientation: portrait) and (max-width: 920px) and (pointer: coarse),
       (orientation: portrait) and (max-width: 920px) and (hover: none) {
  html, body, #app { height: 100%; overflow: hidden; }
  .launch-screen {
    height: var(--app-height, 100dvh);
    min-height: 0;
    padding: max(5px, env(safe-area-inset-top)) 7px max(5px, env(safe-area-inset-bottom));
    grid-template-rows: minmax(42px, 5.2vh) minmax(0, 1fr);
    overflow: hidden;
  }
  .launch-topbar {
    width: 100%;
    margin: 0 0 6px;
    padding: 4px 6px;
    border-radius: 16px;
    flex-direction: row;
    align-items: center;
  }
  .launch-brand { width: auto; justify-content: flex-start; gap: 7px; }
  .launch-brand-mark { width: 34px; height: 34px; font-size: 12px; }
  .launch-brand strong { font-size: 14px; }
  .launch-brand-kicker, .language-label { display: none; }
  .launch-topbar .language-switch { width: auto; padding: 3px; gap: 4px; }
  .launch-topbar .language-switch .ghost { min-height: 30px; padding: 0 9px; font-size: 9.5px; }

  .launch-shell {
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(142px, 21vh) minmax(0, 54vh) minmax(120px, 21vh);
    gap: 6px;
    overflow: hidden;
  }
  .launch-hero.card {
    display: grid;
    grid-template-columns: minmax(145px, .72fr) minmax(120px, .58fr);
    max-height: none;
    height: 100%;
    padding: 8px;
    text-align: left;
    border-radius: 18px;
  }
  .launch-hero.card::before { inset: 7px; border-radius: 13px; }
  .launch-eyebrow { font-size: 7px; padding: 4px 6px; margin-bottom: 4px; }
  .launch-logo { font-size: clamp(30px, 8.4vw, 48px); line-height: .8; margin: 0 0 4px; }
  .launch-copy p { display: block; font-size: clamp(8px, 2.1vw, 11px); line-height: 1.2; margin: 0 0 5px; max-width: 32ch; }
  .launch-pills { gap: 4px; margin: 0; justify-content: flex-start; }
  .launch-pills .pill { min-height: 20px; padding: 0 6px; font-size: 7.5px; }
  .launch-feature-strip { display: none; }
  .hero-showcase { display: grid; min-height: 0; height: 100%; overflow: visible; }
  .showcase-card { width: min(100%, 142px); height: min(100%, 168px); min-height: 0; transform: rotate(.8deg); border-radius: 18px; }
  .showcase-sun { width: 54px; height: 54px; right: 12px; top: 12px; }
  .zodiac-ring { left: 10px; top: 10px; grid-template-columns: repeat(2, 22px); gap: 4px; }
  .zodiac-ring span { width: 22px; height: 22px; font-size: 11px; }
  .platform-back { width: 82px; left: 8px; bottom: 57px; }
  .platform-front { width: 132px; left: 22px; bottom: 22px; }
  .menu-character { left: 52px; bottom: 48px; transform: scale(.42); transform-origin: bottom center; }
  .enemy-rat { right: 18px; bottom: 54px; transform: scale(.44); transform-origin: bottom right; }
  .enemy-ox { left: 10px; bottom: 84px; transform: scale(.38) rotate(-7deg); }
  .cheese-one { right: 36px; top: 74px; transform: scale(.48); }
  .cheese-two { left: 35px; top: 96px; transform: scale(.40); }
  .rocket-one { right: 36px; bottom: 100px; transform: scale(.48) rotate(-18deg); }
  .star-core { transform: scale(.55); }
  .core-one { left: 40px; bottom: 48px; }
  .core-two { right: 28px; bottom: 50px; }
  .core-three { right: -8px; bottom: 92px; }

  .launch-start-card.card { height: 100%; max-height: none; padding: 8px; border-radius: 18px; }
  .section-kicker { font-size: 8px; padding: 4px 8px; margin-bottom: 4px; }
  .start-card-header h2 { font-size: clamp(18px, 4.4vw, 26px); margin: 0 0 4px; }
  .launch-start-card label { font-size: 8px; margin-bottom: 3px; }
  .launch-start-card input { min-height: 34px; font-size: 13px; border-radius: 10px; padding: 0 11px; }
  .primary-row { margin-top: 5px; gap: 5px; }
  .launch-play-btn { min-height: clamp(42px, 5.6vh, 58px); font-size: clamp(22px, 6vw, 34px); border-radius: 18px; }
  .primary-row .secondary { min-height: 32px; font-size: 11px; border-radius: 12px; }
  .launch-menu-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 6px; }
  .launch-menu-tools .ghost { min-height: 28px; font-size: 8px; border-radius: 11px; padding: 0 4px; }
  .launch-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 6px; }
  .launch-stats div { min-height: 30px; padding: 4px 5px; border-radius: 9px; }
  .launch-stats b { font-size: 6.5px; }
  .launch-stats span { font-size: 12px; }
  .leaderboard-panel { display: flex; margin-top: 6px; padding-top: 5px; min-height: 0; flex: 1 1 auto; }
  .leaderboard-tabs .ghost { min-height: 27px; font-size: 10px; }
  .leaderboard-panel h2 { font-size: 13px; margin: 5px 0 4px; }
  .leaderboard-panel h2 small { font-size: 8px; }
  .launch-start-card .leaderboard { gap: 3px; }
  .launch-start-card .leaderboard li { padding: 4px 6px; font-size: 9.5px; border-radius: 8px; }
  .launch-start-card .leaderboard li:nth-child(n+7) { display: none; }

  .launch-secondary-grid {
    grid-column: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    height: 100%;
    max-height: none;
    gap: 6px;
    overflow: hidden;
  }
  .compact-card { padding: 7px; border-radius: 15px; }
  .compact-card h2 { font-size: 11px; margin: 0 0 4px; }
  .settings-row { margin: 0; gap: 4px; }
  .settings-row label { font-size: 7.5px; }
  .settings-row select { min-height: 28px; padding: 0 5px; border-radius: 8px; font-size: 7.5px; }
  .settings-note, .compact-card p { font-size: 7px; line-height: 1.2; }
  .compact-card .unlock-list { max-height: 74px; gap: 3px; }
  .compact-card .unlock-list li { font-size: 7px; padding: 3px 5px; }
  #systemsNote, #progressionNote, #desktopControls, #installControls { display: none; }
  #mobileControls { display: block; }
  .tap-for-sound { right: 7px; bottom: 7px; transform: scale(.8); transform-origin: bottom right; }
}

/* v53 compact 10-bay mobile weapon bar */

@media (orientation: landscape) and (hover: none), (orientation: landscape) and (pointer: coarse) {
  .weapon-slots { width: min(86vw, calc(100% - 190px)); bottom: max(4px, env(safe-area-inset-bottom)); gap: 2px; }
  .weapon-slot { min-height: 27px; padding: 1px; }
  .weapon-slot b { width: 12px; height: 12px; font-size: 8px; }
  .weapon-slot span { font-size: 6px; line-height: .88; }
}


/* v58 replayability / mobile UX systems */
.replay-options, .mobile-options { display: grid; grid-template-columns: 1fr; gap: 7px; }
.upgrade-tree { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 8px 0; }
.upgrade-node { border-radius: 14px; padding: 8px 10px; border: 1px solid rgba(250,204,21,.42); background: rgba(4,10,24,.72); color: #fef3c7; font-weight: 900; text-align: left; }
.upgrade-node.can-buy { background: linear-gradient(180deg, rgba(250,204,21,.92), rgba(249,115,22,.76)); color: #111827; }
.core-bank { color: #fde68a; font-weight: 1000; font-size: 15px; margin: 4px 0 8px; }
.toggle-row { display: inline-flex; align-items: center; gap: 8px; color: #dbeafe; font-weight: 800; }
body.mobile-layout-left .action-button.left { left: max(104px, calc(env(safe-area-inset-left) + 104px)); right: auto; }
body.mobile-layout-left .action-button.top { left: max(52px, calc(env(safe-area-inset-left) + 52px)); right: auto; }
body.mobile-layout-left .action-button.right { left: max(0px, env(safe-area-inset-left)); right: auto; }
body.mobile-layout-left .action-button.bottom { left: max(52px, calc(env(safe-area-inset-left) + 52px)); right: auto; }
body.mobile-layout-left .action-button.jump { left: max(196px, calc(env(safe-area-inset-left) + 196px)); right: auto; }
body.mobile-layout-compact .action-button { transform: scale(.86); }
body.mobile-layout-compact .action-button.jump { transform: scale(.88); }
body.weapon-wheel-enabled .weapon-slots { border-radius: 999px; padding: 5px 8px; background: rgba(2,6,23,.32); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
@media (hover: none), (pointer: coarse) {
  .weapon-slots { grid-template-columns: repeat(10, minmax(0, 1fr)); width: min(640px, calc(100% - 10px)); }
  .weapon-slot { min-width: 0; width: 100%; min-height: 30px; padding: 2px 2px; border-radius: 9px; }
  .weapon-slot b { width: 15px; height: 15px; font-size: 10px; margin-right: 1px; }
  .weapon-slot span { font-size: 6.8px; line-height: .98; letter-spacing: -.03em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* v59 start-screen systems panel layout fix
   The v58 replay/mobile panels added more content than the original fixed-height
   launch column could safely display. These overrides keep the commercial
   one-page composition while making the right-side systems rail scrollable and
   preventing upgrade/mobile controls from clipping or overlapping. */
.launch-secondary-grid {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  align-content: start !important;
  grid-template-rows: none !important;
  grid-auto-rows: minmax(min-content, auto) !important;
  padding-right: 4px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
.launch-secondary-grid::-webkit-scrollbar { width: 8px; }
.launch-secondary-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(103,232,249,.36);
}
.launch-secondary-grid .card {
  overflow: visible !important;
  min-height: auto !important;
}
.launch-secondary-grid .compact-card {
  padding: clamp(10px, 1vw, 14px);
}
.launch-secondary-grid .compact-card h2 {
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.05;
  margin-bottom: 6px;
}
.launch-secondary-grid .compact-card p,
.launch-secondary-grid .settings-note {
  font-size: clamp(9px, .85vw, 11px);
  line-height: 1.28;
}
.launch-secondary-grid .settings-row {
  min-width: 0;
}
.launch-secondary-grid select,
.launch-secondary-grid input[type="range"] {
  width: 100%;
  max-width: 100%;
}
.upgrade-card {
  position: relative;
}
.upgrade-tree {
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  margin: 6px 0 !important;
}
.upgrade-node {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 8px;
  padding: 7px 9px !important;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.08;
}
.upgrade-node-title {
  display: block;
  font-size: clamp(11px, .94vw, 13px);
  font-weight: 1000;
}
.upgrade-node-cost {
  justify-self: end;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: clamp(9px, .78vw, 11px);
  font-weight: 1000;
}
.upgrade-node-desc {
  grid-column: 1 / -1;
  display: block;
  color: rgba(224,242,254,.86);
  font-size: clamp(9px, .78vw, 11px);
  font-weight: 800;
}
.upgrade-node.can-buy .upgrade-node-cost { background: rgba(17,24,39,.16); }
.upgrade-node.can-buy .upgrade-node-desc { color: rgba(17,24,39,.82); }
.core-bank {
  margin: 2px 0 5px !important;
  font-size: clamp(12px, .95vw, 14px) !important;
}
.mobile-options {
  gap: 5px !important;
}
.mobile-options label {
  margin-top: 1px;
  line-height: 1.1;
}
.mobile-options select {
  min-height: 32px !important;
  font-size: clamp(9px, .82vw, 11px) !important;
}
.mobile-options input[type="range"] {
  min-height: 22px;
  margin: -2px 0 0;
}
.toggle-row {
  min-height: 24px;
  font-size: clamp(9px, .82vw, 11px);
  line-height: 1.1;
  white-space: normal;
}
.instructions.compact-card {
  max-height: none;
}
.instructions.compact-card p {
  overflow-wrap: anywhere;
}
@media (min-width: 1181px) {
  .launch-secondary-grid {
    max-height: 100%;
  }
}
@media (max-width: 1180px) {
  .launch-secondary-grid {
    height: min(34vh, 260px) !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(92px, auto) !important;
  }
  .upgrade-tree { grid-template-columns: 1fr !important; }
}
@media (max-width: 820px) {
  .launch-secondary-grid {
    max-height: 28vh !important;
    height: auto !important;
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(min-content, auto) !important;
  }
  .launch-secondary-grid .compact-card { padding: 8px; }
}
@media (orientation: landscape) and (max-height: 760px) and (pointer: coarse),
       (orientation: landscape) and (max-height: 760px) and (hover: none) {
  .launch-secondary-grid {
    overflow-y: auto !important;
    grid-template-rows: none !important;
    grid-auto-rows: minmax(min-content, auto) !important;
    padding-right: 2px;
  }
  .launch-secondary-grid .card { overflow: visible !important; }
  .upgrade-node { min-height: 38px; padding: 5px 6px !important; }
  .upgrade-node-title { font-size: 8.5px; }
  .upgrade-node-cost { font-size: 7px; padding: 2px 4px; }
  .upgrade-node-desc { font-size: 7px; }
  .mobile-options { gap: 3px !important; }
  .mobile-options select { min-height: 24px !important; font-size: 7.5px !important; }
  .toggle-row { min-height: 18px; font-size: 7px; }
}
@media (orientation: portrait) and (max-width: 920px) and (pointer: coarse),
       (orientation: portrait) and (max-width: 920px) and (hover: none) {
  .launch-secondary-grid {
    overflow-y: auto !important;
    grid-template-rows: none !important;
    grid-auto-rows: minmax(min-content, auto) !important;
  }
  .upgrade-node { min-height: 38px; padding: 5px 6px !important; }
  .upgrade-node-title { font-size: 8px; }
  .upgrade-node-cost { font-size: 7px; padding: 2px 4px; }
  .upgrade-node-desc { font-size: 7px; }
}

/* v60 compact level-complete summary + mobile landscape fit */
.overlay.level-complete-overlay { padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.overlay.level-complete-overlay .overlay-card {
  width: min(780px, calc(100vw - 28px));
  max-height: calc(var(--app-height, 100dvh) - 18px);
  overflow: auto;
  padding: clamp(14px, 2.4vw, 24px);
  border-radius: clamp(18px, 2.8vw, 28px);
}
.overlay.level-complete-overlay #overlayTitle {
  margin: 0 0 8px;
  font-size: clamp(30px, 6.2vw, 58px);
  line-height: .95;
}
.overlay.level-complete-overlay #overlayText { white-space: normal; margin: 0; }
.level-summary-card { display: grid; gap: 10px; text-align: left; color: #dbeafe; }
.summary-hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; justify-content: center; max-width: 520px; margin: 0 auto; }
.summary-hero b { display: block; color: #fff; font-size: clamp(17px, 2.6vw, 24px); line-height: 1.05; }
.summary-hero span { display: block; color: #cbd5e1; font-weight: 800; font-size: clamp(12px, 1.8vw, 16px); }
.summary-rank { width: clamp(54px, 8vw, 76px); height: clamp(54px, 8vw, 76px); border-radius: 22px; display: grid; place-items: center; font-size: clamp(28px, 5vw, 42px); font-weight: 1000; color: #111827; background: linear-gradient(180deg, #fde68a, #f97316); box-shadow: 0 12px 36px rgba(249,115,22,.28); }
.summary-rank.rank-s { background: linear-gradient(180deg, #fef3c7, #facc15); }
.summary-rank.rank-a { background: linear-gradient(180deg, #bfdbfe, #38bdf8); }
.summary-rank.rank-b { background: linear-gradient(180deg, #bbf7d0, #22c55e); }
.summary-grid, .summary-bonus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.summary-grid > div, .summary-bonus-grid > div { min-height: 48px; border: 1px solid rgba(255,255,255,.13); border-radius: 14px; background: rgba(15,23,42,.58); padding: 7px 9px; }
.summary-grid small, .summary-bonus-grid small { display: block; color: #93c5fd; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 1000; }
.summary-grid strong, .summary-bonus-grid strong { display: block; color: #fff; font-size: clamp(13px, 2.1vw, 18px); line-height: 1.1; margin-top: 3px; }
.summary-total, .summary-reward { display: flex; justify-content: space-between; align-items: center; border-radius: 16px; padding: 8px 12px; font-weight: 1000; }
.summary-total { background: rgba(250,204,21,.12); border: 1px solid rgba(250,204,21,.35); color: #fef3c7; }
.summary-reward { background: rgba(34,197,94,.13); border: 1px solid rgba(34,197,94,.35); color: #dcfce7; }
.summary-challenge { text-align: center; margin: 2px 0 0; color: #cbd5e1; font-weight: 850; font-size: clamp(12px, 2vw, 16px); }
.overlay.level-complete-overlay #copyScoreBtn,
.overlay.level-complete-overlay #saveGameBtn { margin-top: 8px; min-height: 42px; padding: 9px 18px; font-size: clamp(14px, 2vw, 18px); }
.overlay.level-complete-overlay .overlay-actions { margin-top: 8px; gap: 10px; }
.overlay.level-complete-overlay .overlay-actions button { min-height: 48px; padding: 10px 22px; font-size: clamp(16px, 2.5vw, 22px); }
@media (orientation: landscape) and (max-height: 620px) {
  .overlay.level-complete-overlay .overlay-card { width: min(900px, calc(100vw - 18px)); padding: 12px 14px; }
  .overlay.level-complete-overlay #overlayTitle { font-size: clamp(28px, 5.2vw, 44px); margin-bottom: 6px; }
  .level-summary-card { gap: 7px; }
  .summary-hero { grid-template-columns: auto 1fr; gap: 10px; }
  .summary-rank { width: 50px; height: 50px; border-radius: 17px; font-size: 30px; }
  .summary-grid > div, .summary-bonus-grid > div { min-height: 38px; padding: 5px 7px; border-radius: 12px; }
  .summary-grid small, .summary-bonus-grid small { font-size: 8px; }
  .summary-grid strong, .summary-bonus-grid strong { font-size: 13px; }
  .summary-total, .summary-reward { padding: 6px 10px; }
  .summary-challenge { font-size: 12px; }
  .overlay.level-complete-overlay #copyScoreBtn,
  .overlay.level-complete-overlay #saveGameBtn { min-height: 36px; padding: 7px 14px; }
  .overlay.level-complete-overlay .overlay-actions button { min-height: 40px; padding: 8px 16px; }
}
@media (max-width: 640px) {
  .summary-grid, .summary-bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v67 cinematic uploaded intro scene replacement */
.cutscene-illustration {
  aspect-ratio: 16 / 9;
  min-height: clamp(260px, 43vh, 430px);
  background-size: 100% 100%, cover !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat !important;
  border-color: rgba(255, 210, 140, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 22px 46px rgba(0,0,0,0.34);
}
.cutscene-illustration > * {
  display: none !important;
}
.cutscene-scene.scene-1 .cutscene-illustration {
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.08), rgba(2,6,23,0.18) 72%, rgba(2,6,23,0.36)),
    url('../assets/intro/intro-scene-1.png') !important;
}
.cutscene-scene.scene-2 .cutscene-illustration {
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.05), rgba(2,6,23,0.14) 72%, rgba(2,6,23,0.34)),
    url('../assets/intro/intro-scene-2.png') !important;
}
.cutscene-scene.scene-3 .cutscene-illustration {
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.02), rgba(2,6,23,0.12) 72%, rgba(2,6,23,0.32)),
    url('../assets/intro/intro-scene-3.png') !important;
}
.cutscene-scene.scene-4 .cutscene-illustration {
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.05), rgba(2,6,23,0.16) 72%, rgba(2,6,23,0.36)),
    url('../assets/intro/intro-scene-4.png') !important;
}
.cutscene-scene.scene-5 .cutscene-illustration {
  background-image:
    linear-gradient(180deg, rgba(2,6,23,0.04), rgba(2,6,23,0.16) 72%, rgba(2,6,23,0.38)),
    url('../assets/intro/intro-scene-5.png') !important;
}
.cutscene-scene.scene-1 .cutscene-illustration::before,
.cutscene-scene.scene-1 .cutscene-illustration::after,
.cutscene-scene.scene-2 .cutscene-illustration::before,
.cutscene-scene.scene-2 .cutscene-illustration::after,
.cutscene-scene.scene-3 .cutscene-illustration::before,
.cutscene-scene.scene-3 .cutscene-illustration::after,
.cutscene-scene.scene-4 .cutscene-illustration::before,
.cutscene-scene.scene-4 .cutscene-illustration::after,
.cutscene-scene.scene-5 .cutscene-illustration::before,
.cutscene-scene.scene-5 .cutscene-illustration::after {
  display: none !important;
  content: none !important;
}
@media (max-width: 900px), (max-height: 560px) {
  .cutscene-illustration {
    min-height: clamp(180px, 38vh, 310px);
    margin: 10px 4px;
  }
  .cutscene-title {
    font-size: clamp(1rem, 4vw, 1.55rem);
  }
  .cutscene-text {
    font-size: clamp(0.78rem, 2.8vw, 1rem);
    line-height: 1.35;
    padding: 9px 12px;
  }
}


/* v69 intro layout fit + cinematic scene image containment */
.cutscene-stage {
  width: min(96vw, 1280px) !important;
  height: min(96vh, 760px) !important;
  max-height: calc(var(--app-height, 100vh) - 12px) !important;
}
.cutscene-shell {
  height: calc(100% - 46px) !important;
  margin-bottom: 46px !important;
}
.cutscene-story-frame {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: clamp(8px, 1.35vh, 14px) !important;
  justify-content: stretch !important;
  padding: clamp(14px, 2.1vh, 24px) clamp(14px, 2.2vw, 28px) clamp(12px, 1.8vh, 20px) !important;
}
.cutscene-title {
  align-self: center !important;
  font-size: clamp(1.06rem, 2.45vw, 2.25rem) !important;
  line-height: 1.04 !important;
  margin: 0 !important;
  text-align: center !important;
}
.cutscene-illustration {
  align-self: stretch !important;
  justify-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  aspect-ratio: auto !important;
  background-size: 100% 100%, contain !important;
  background-position: center center, center center !important;
  background-color: #050814 !important;
}
.cutscene-text {
  margin: 0 auto !important;
  width: min(96%, 980px) !important;
  max-height: min(26vh, 168px) !important;
  overflow: auto !important;
  font-size: clamp(0.82rem, 1.45vw, 1.12rem) !important;
  line-height: 1.34 !important;
  padding: clamp(8px, 1.1vh, 12px) clamp(10px, 1.5vw, 16px) !important;
  scrollbar-width: thin;
}
.cutscene-controls {
  bottom: 0 !important;
  left: clamp(10px, 2vw, 20px) !important;
  right: clamp(10px, 2vw, 20px) !important;
}
.cutscene-progress,
.cutscene-skip-btn {
  font-size: clamp(0.68rem, 1.2vw, 0.82rem) !important;
  padding: 7px 11px !important;
}
@media (max-height: 560px), (max-width: 760px) {
  .cutscene-stage {
    width: min(98vw, 1180px) !important;
    height: min(98vh, 560px) !important;
  }
  .cutscene-shell {
    height: calc(100% - 38px) !important;
    margin-bottom: 38px !important;
  }
  .cutscene-story-frame {
    gap: 6px !important;
    padding: 10px 12px 8px !important;
  }
  .cutscene-title {
    font-size: clamp(0.9rem, 3.2vw, 1.35rem) !important;
    letter-spacing: 0.1em !important;
  }
  .cutscene-text {
    max-height: 24vh !important;
    font-size: clamp(0.7rem, 2.05vw, 0.9rem) !important;
    line-height: 1.25 !important;
    padding: 7px 10px !important;
  }
  .cutscene-progress,
  .cutscene-skip-btn {
    font-size: 0.66rem !important;
    padding: 6px 10px !important;
  }
}


/* v69 intro dialogue breathing room + scene 3 timing polish */
.cutscene-story-frame {
  grid-template-rows: auto minmax(0, 1fr) minmax(84px, auto) !important;
  padding-bottom: clamp(18px, 3.0vh, 34px) !important;
}
.cutscene-text {
  margin: 0 auto clamp(10px, 2.2vh, 24px) !important;
  max-height: min(30vh, 190px) !important;
  padding: clamp(9px, 1.15vh, 13px) clamp(12px, 1.6vw, 18px) clamp(14px, 2.1vh, 24px) !important;
  line-height: 1.38 !important;
  overflow-wrap: anywhere;
}
.cutscene-illustration {
  min-height: 0 !important;
}
@media (max-height: 560px), (max-width: 760px) {
  .cutscene-story-frame {
    grid-template-rows: auto minmax(0, 1fr) minmax(72px, auto) !important;
    padding-bottom: clamp(14px, 2.6vh, 24px) !important;
  }
  .cutscene-text {
    max-height: 31vh !important;
    margin-bottom: clamp(8px, 1.8vh, 16px) !important;
    padding: 7px 10px clamp(11px, 2vh, 18px) !important;
    line-height: 1.32 !important;
  }
}
@media (orientation: landscape) and (max-height: 460px) {
  .cutscene-story-frame {
    grid-template-rows: auto minmax(0, 1fr) minmax(66px, auto) !important;
    gap: 5px !important;
    padding-bottom: 12px !important;
  }
  .cutscene-title { font-size: clamp(0.8rem, 2.6vw, 1.12rem) !important; }
  .cutscene-text {
    max-height: 34vh !important;
    font-size: clamp(0.66rem, 1.82vw, 0.82rem) !important;
    line-height: 1.28 !important;
    margin-bottom: 8px !important;
  }
}

/* v71 mobile intro centering + smaller skip button */
.cutscene-overlay {
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: max(4px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)) !important;
}
.cutscene-stage {
  width: min(calc(100% - 12px), 1280px) !important;
  height: min(calc(100% - 8px), 760px) !important;
  max-width: calc(100% - 12px) !important;
  max-height: calc(100% - 8px) !important;
  margin: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}
.cutscene-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.cutscene-controls {
  left: clamp(8px, 1.4%, 14px) !important;
  right: clamp(8px, 1.4%, 14px) !important;
  bottom: max(2px, env(safe-area-inset-bottom)) !important;
  width: auto !important;
  max-width: calc(100% - 16px) !important;
}
.cutscene-progress,
.cutscene-skip-btn {
  font-size: clamp(0.48rem, 0.86vw, 0.58rem) !important;
  padding: 5px 8px !important;
  line-height: 1 !important;
  min-height: 0 !important;
}
.cutscene-skip-btn {
  border-radius: 999px !important;
  letter-spacing: 0.045em !important;
  box-shadow: 0 7px 16px rgba(0,0,0,0.2) !important;
}
@media (orientation: landscape) and (hover: none), (orientation: landscape) and (pointer: coarse) {
  .cutscene-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  .cutscene-stage {
    width: calc(100% - max(10px, env(safe-area-inset-left) + env(safe-area-inset-right))) !important;
    height: calc(100% - max(8px, env(safe-area-inset-top) + env(safe-area-inset-bottom))) !important;
    max-width: calc(100% - 10px) !important;
    max-height: calc(100% - 8px) !important;
  }
  .cutscene-shell {
    height: calc(100% - 30px) !important;
    margin-bottom: 30px !important;
  }
  .cutscene-story-frame {
    padding-left: clamp(8px, 1.5vw, 16px) !important;
    padding-right: clamp(8px, 1.5vw, 16px) !important;
  }
  .cutscene-title {
    font-size: clamp(0.72rem, 2.2vw, 1.05rem) !important;
  }
  .cutscene-text {
    width: min(98%, 1040px) !important;
    font-size: clamp(0.58rem, 1.55vw, 0.78rem) !important;
    line-height: 1.22 !important;
    max-height: 32vh !important;
  }
  .cutscene-progress,
  .cutscene-skip-btn {
    font-size: clamp(0.44rem, 1.1vw, 0.55rem) !important;
    padding: 4px 7px !important;
  }
}
@media (orientation: landscape) and (max-height: 460px) {
  .cutscene-shell {
    height: calc(100% - 28px) !important;
    margin-bottom: 28px !important;
  }
  .cutscene-controls {
    left: 7px !important;
    right: 7px !important;
  }
  .cutscene-progress,
  .cutscene-skip-btn {
    font-size: 0.44rem !important;
    padding: 4px 6px !important;
  }
}
