:root {
  --bg: #061522;
  --bg-deep: #04101c;
  --panel: #0c2133;
  --panel-light: #102a3e;
  --text: #eaf6ff;
  --muted: #8fa9ba;
  --line: rgba(142, 196, 223, 0.16);
  --cyan: #4be0ef;
  --cyan-deep: #10b8d7;
  --lime: #a0f5da;
  --max: 1232px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
::selection { color: #001b27; background: var(--cyan); }
.container { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: 15px; top: -80px; z-index: 100; background: var(--cyan); color: #031722; padding: 12px 16px; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.page-glow { pointer-events: none; position: absolute; top: 0; left: 0; right: 0; height: 980px; background: radial-gradient(ellipse 900px 500px at 50% 0, #0d4865 0%, transparent 67%); opacity: .47; z-index: -1; }

.site-header { position: relative; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(4,16,28,.85); backdrop-filter: blur(18px); }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; font-weight: 880; line-height: 1; letter-spacing: -.04em; font-size: 18px; }
.brand-mark { color: var(--cyan); display: inline-flex; width: 36px; height: 36px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-accent { color: var(--cyan); }
.desktop-nav { display: flex; align-items: center; gap: 35px; margin-left: auto; }
.desktop-nav a { color: #b7cad8; font-size: 13px; font-weight: 630; transition: color .2s; }
.desktop-nav a:hover { color: white; }
.header-cta { border: 1px solid rgba(75,224,239,.45); color: #c1f8fd; padding: 11px 18px; border-radius: 8px; font-size: 13px; font-weight: 750; white-space: nowrap; transition: background .2s; }
.header-cta:hover { background: #1c4654; }
.header-cta span { margin-left: 8px; }
.mobile-toggle { display: none; background: transparent; border: 1px solid var(--line); color: white; width: 44px; height: 40px; border-radius: 8px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; }
.mobile-toggle span { display: block; width: 19px; height: 2px; background: currentColor; }
.mobile-nav { padding: 15px 32px 25px; border-top: 1px solid var(--line); background: #081b2a; }
.mobile-nav a { display: block; padding: 10px 0; font-size: 14px; font-weight: 700; }
.mobile-nav[hidden] { display: none; }

.hero { padding-top: 44px; padding-bottom: 105px; }
.eyebrow, .kicker { display: flex; align-items: center; gap: 12px; color: var(--cyan); font-size: 11px; letter-spacing: .19em; font-weight: 800; }
.eyebrow { margin-bottom: 20px; }
.eyebrow-dot { display: block; width: 7px; height: 7px; background: #53e6ee; border-radius: 50%; box-shadow: 0 0 16px #52e7ed; }
.cover-frame { border: 1px solid rgba(93,207,235,.3); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 110px rgba(0,0,0,.30),0 0 80px rgba(21,145,185,.09); background: #0c567b; position: relative; }
.cover-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 60px rgba(1,13,31,.16); pointer-events: none; }
.cover-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.hero-bottom { display: flex; justify-content: space-between; gap: 50px; align-items: end; padding-top: 38px; }
.hero-copy { max-width: 700px; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(38px,4.7vw,62px); letter-spacing: -.055em; line-height: 1.05; margin-bottom: 16px; font-weight: 850; }
h1 span, h2 span { color: var(--cyan); }
.hero-copy p { margin-bottom: 0; max-width: 600px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; padding-bottom: 5px; }
.button { padding: 14px 22px; border-radius: 8px; font-weight: 790; font-size: 13px; transition: transform .2s, background .2s; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 18px; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: #01202c; box-shadow: 0 0 30px rgba(75,224,239,.15); }
.button-primary:hover { background: #8af5fc; }
.button-outline { border: 1px solid rgba(144,191,220,.28); color: #cbe3f0; }
.button-outline:hover { background: #163448; }

.play-section { padding: 92px 0 95px; background: linear-gradient(180deg,#0a1d2d 0%,#071725 100%); border-top: 1px solid rgba(121,192,219,.08); border-bottom: 1px solid rgba(121,192,219,.08); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.kicker { gap: 11px; }
.kicker-line { display: inline-block; width: 26px; height: 1px; background: var(--cyan); }
h2 { font-size: clamp(34px,4vw,52px); letter-spacing: -.055em; line-height: 1.09; margin: 15px 0 13px; font-weight: 820; }
.section-heading p { font-size: 15px; color: var(--muted); max-width: 635px; margin: 0; }
.section-counter { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #7e9aae; white-space: nowrap; padding-bottom: 8px; }
.game-shell { border: 1px solid rgba(93,195,231,.26); overflow: hidden; background: #061522; border-radius: 18px; box-shadow: 0 25px 70px rgba(0,0,0,.30),0 0 65px rgba(0,165,204,.055); }
.game-toolbar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #10283b; border-bottom: 1px solid var(--line); gap: 12px; }
.game-toolbar-label { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 12px; color: #9dbbcc; }
.game-toolbar-label strong { color: #edfaff; white-space: nowrap; font-size: 11px; letter-spacing: .08em; }
.status-dot,.live-dot { width: 8px; height: 8px; display: inline-block; flex-shrink: 0; background: #c2a95d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(194,169,93,.09); }
.status-dot.ready { background: #64ecc6; box-shadow: 0 0 0 4px rgba(75,232,181,.12); }
.toolbar-divider { height: 16px; width: 1px; background: rgba(189,229,247,.22); }
#gameStatus { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.game-toolbar-controls { display: flex; gap: 10px; }
.game-toolbar-controls button { display: inline-flex; gap: 7px; align-items: center; cursor: pointer; padding: 7px 10px; color: #c6e0ed; background: transparent; border: 1px solid rgba(138,192,216,.20); border-radius: 7px; font-size: 12px; }
.game-toolbar-controls button:hover:not(:disabled) { background: #204153; }
.game-toolbar-controls button:disabled { opacity: .35; cursor: not-allowed; }
.game-toolbar-controls svg { width: 15px; height: 15px; }
.game-stage { aspect-ratio: 16 / 9; position: relative; isolation: isolate; background: radial-gradient(ellipse at 55% 45%,#0e4262 0%,#072135 53%,#061522 100%); overflow: hidden; }
.game-stage iframe { position: absolute; inset: 0; display: block; border: 0; width: 100%; height: 100%; background: #061522; }
.game-stage:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; background: black; }
.game-stage:fullscreen iframe { width: 100%; height: 100%; }
.game-fallback { position: absolute; inset: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fallback-grid { position: absolute; width: min(80%,800px); aspect-ratio: 1.5; left: 50%; top: 50%; transform: translate(-50%,-50%) perspective(780px) rotateX(53deg) rotateZ(-45deg); opacity: .45; background: repeating-linear-gradient(to right,rgba(113,239,255,.25) 0 2px,transparent 2px calc(100% / 10)),repeating-linear-gradient(to bottom,rgba(113,239,255,.25) 0 2px,transparent 2px calc(100% / 10)),linear-gradient(135deg,#1599bf,#0a4264); box-shadow: 0 0 90px #22b2dc55,inset 0 0 90px #00b8d24d; border: 2px solid #42d9f44d; }
.fallback-ship { display: block; position: absolute; background: #d5e6f0; box-shadow: 0 0 20px #d2f5ff33; border: 2px solid #83b6c9; }
.ship-a { width: 26%; height: 9%; top: 20%; left: 16%; }
.ship-b { width: 9%; height: 35%; top: 45%; left: 70%; }
.fallback-scan { position: absolute; width: 100px; height: 100px; border-radius: 50%; top: 32%; left: 50%; border: 2px solid #8fefff; box-shadow: 0 0 50px #5ceaff; }
.fallback-card { position: relative; text-align: center; z-index: 2; padding: 30px; max-width: 460px; background: rgba(4,19,34,.85); border: 1px solid rgba(117,226,237,.3); box-shadow: 0 15px 70px rgba(0,0,0,.4); backdrop-filter: blur(10px); border-radius: 16px; }
.fallback-icon { display: flex; justify-content: center; color: var(--cyan); margin-bottom: 12px; }
.fallback-icon svg { width: 48px; height: 48px; }
.fallback-label { color: #83e4f6; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.fallback-card h3 { font-size: clamp(23px,2.6vw,35px); letter-spacing: -.04em; margin: 7px 0 12px; }
.fallback-card p { color: #aecbda; font-size: 14px; line-height: 1.7; }
.fallback-card code { color: white; background: #17495b; padding: 2px 5px; border-radius: 4px; }
.fallback-card a { color: var(--cyan); font-weight: 760; font-size: 13px; }
.fallback-card a:hover { text-decoration: underline; }
.game-bottom-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 47px; padding: 10px 20px; background: #10283b; color: #88a6b7; font-size: 11px; letter-spacing: .025em; }
.game-bottom-bar span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.live-dot { width: 6px; height: 6px; background: var(--cyan); box-shadow: 0 0 10px #4be0ef; }
.game-note { text-align: center; margin: 15px auto 0; font-size: 13px; color: #7f9aae; }

.guide-section { padding-top: 103px; padding-bottom: 104px; }
.steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.step-card { background: linear-gradient(148deg,#102a3d,#091c2b); border: 1px solid var(--line); border-radius: 13px; padding: 28px; position: relative; min-height: 295px; transition: border-color .2s,transform .2s; }
.step-card:hover { transform: translateY(-3px); border-color: rgba(75,224,239,.40); }
.step-index { color: #5b7c92; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.step-symbol { color: var(--cyan); margin: 18px 0 15px; width: 56px; }
.step-symbol svg { width: 56px; height: 56px; }
.step-card h3 { font-size: 20px; letter-spacing: -.025em; margin-bottom: 9px; }
.step-card p { color: #91aebf; font-size: 14px; line-height: 1.7; margin: 0; }
kbd { display: inline-block; padding: 0 6px; border: 1px solid #577489; border-radius: 4px; color: #e9fbff; font-size: 12px; background: #1b3747; }

.feature-section { border-top: 1px solid var(--line); padding: 105px 0 120px; background: linear-gradient(180deg,#081c2c,#051521); }
.feature-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 12%; }
.feature-intro h2 { max-width: 470px; }
.feature-intro p { color: var(--muted); max-width: 440px; line-height: 1.7; }
.text-link { color: var(--cyan); display: inline-block; font-size: 13px; font-weight: 800; margin-top: 10px; }
.text-link span { padding-left: 10px; }
.feature-list { border-top: 1px solid var(--line); align-self: center; }
.feature-list > div { display: flex; gap: 17px; align-items: center; border-bottom: 1px solid var(--line); padding: 23px 8px; color: #dfecf5; font-size: 15px; font-weight: 650; }
.feature-number { color: #6ecbdb; font-size: 11px; font-weight: 800; min-width: 27px; }
.feature-arrow { margin-left: auto; color: var(--cyan); font-size: 17px; }

.site-footer { background: #03101b; border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-brand { font-size: 15px; }
.footer-target { font-size: 25px; font-weight: 500; color: var(--cyan); }
.footer-inner > span, .footer-inner > a:last-child { font-size: 12px; color: #819daf; }
.footer-inner > a:last-child:hover { color: var(--cyan); }

@media (max-width: 1030px) {
  .desktop-nav { gap: 20px; }
  .hero-bottom { flex-wrap: wrap; gap: 28px; }
  .hero-actions { width: 100%; }
  .feature-layout { gap: 6%; }
}
@media (max-width: 740px) {
  .container { width: min(calc(100% - 32px),var(--max)); }
  .site-header .header-inner { min-height: 72px; }
  .desktop-nav,.header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .brand { font-size: 15px; }
  .brand-mark { width: 31px; height: 31px; }
  .hero { padding-top: 29px; padding-bottom: 72px; }
  .cover-frame { border-radius: 12px; }
  .eyebrow { font-size: 9px; letter-spacing: .13em; margin-bottom: 13px; }
  .hero-bottom { padding-top: 26px; }
  h1 { font-size: clamp(36px,9vw,50px); }
  .hero-copy p { font-size: 14px; }
  .hero-actions { gap: 9px; }
  .button { font-size: 12px; padding: 12px 13px; gap: 7px; }
  .play-section { padding: 68px 0 80px; }
  .section-heading { align-items: flex-start; }
  .section-counter { display: none; }
  h2 { font-size: clamp(31px,7vw,43px); }
  .game-shell { border-radius: 12px; }
  .game-toolbar { padding: 0 12px; min-height: 48px; }
  .game-toolbar-label { gap: 7px; font-size: 10px; }
  .game-toolbar-label strong { font-size: 10px; }
  .game-toolbar-controls { gap: 5px; }
  .game-toolbar-controls button { padding: 7px; }
  .game-toolbar-controls button span { display: none; }
  .game-stage { aspect-ratio: 4 / 3; }
  .game-bottom-bar { padding: 8px 12px; font-size: 9px; }
  .game-bottom-bar > span:last-child { display: none; }
  .fallback-card { max-width: 82%; padding: 18px 14px; }
  .fallback-icon { margin: 0 0 2px; }
  .fallback-icon svg { width: 30px; height: 30px; }
  .fallback-label { font-size: 8px; }
  .fallback-card h3 { font-size: 20px; margin: 6px 0; }
  .fallback-card p { font-size: 11px; margin-bottom: 9px; }
  .fallback-card a { font-size: 11px; }
  .guide-section { padding-top: 70px; padding-bottom: 80px; }
  .steps-grid { grid-template-columns: 1fr; gap: 12px; }
  .step-card { min-height: auto; padding: 25px; }
  .step-symbol { margin: 6px 0 4px; }
  .feature-section { padding: 73px 0 80px; }
  .feature-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 430px) {
  .brand { font-size: 13px; gap: 7px; }
  .hero-actions { flex-wrap: wrap; }
  .game-stage { aspect-ratio: 1 / 1; }
  .game-toolbar-label strong { display: none; }
  .toolbar-divider { display: none; }
  .fallback-card { max-width: 94%; }
  .fallback-card p { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

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