/* ════════════════════════════════════════════════════════
   AviaGame — site styles · "Flight Deck / Avionics HUD"
   Display: Archivo · Body: Hanken Grotesk · Mono: IBM Plex Mono
   (fonts injected by site.js)
   ════════════════════════════════════════════════════════ */
:root{
  --bg:#05080c; --bg2:#070c12; --panel:#0b121b; --panel2:#0a0f16;
  --line:#16222d; --line2:#203140;
  --cyan:#ff3b4e; --cyan-2:#ff6b7d; --cyan-deep:#b81228;
  --amber:#ffb74d; --amber-2:#ffd486;
  --green:#34d27f; --red:#ff5a72;
  --text:#e9f1f5; --muted:#8698a4; --dim:#586673;
  --ff-display:'Archivo','Hanken Grotesk',sans-serif;
  --ff-body:'Hanken Grotesk',system-ui,sans-serif;
  --ff-mono:'IBM Plex Mono',ui-monospace,monospace;
  --maxw:1180px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{ margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html{ scroll-behavior:smooth; overflow-x:hidden; max-width:100%; }
body{
  background:var(--bg); color:var(--text);
  font-family:var(--ff-body); line-height:1.6; font-size:16px;
  min-height:100dvh; display:flex; flex-direction:column;
  position:relative; overflow-x:hidden; width:100%; max-width:100%;
}
/* nothing may force the page wider than the viewport */
.hero, .section, .game-section, .site-header, .site-footer, .game-shell, .game-frame, #barea{ max-width:100%; }
.hero h1{ overflow-wrap:break-word; word-break:break-word; }
/* layered atmosphere: radar grid + radial glow + grain */
body::before{
  content:''; position:fixed; inset:0; z-index:-2; pointer-events:none;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(255,59,78,.14), transparent 70%),
    radial-gradient(700px 700px at 92% 8%, rgba(200,45,60,.10), transparent 70%),
    linear-gradient(180deg,#060a10,#05080c 60%);
}
body::after{
  content:''; position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.5;
  background-image:
    linear-gradient(rgba(255,59,78,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,59,78,.045) 1px, transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
          mask-image:radial-gradient(120% 80% at 50% 0%, #000 35%, transparent 78%);
}
a{ color:var(--cyan); text-decoration:none; transition:color .15s; }
a:hover{ color:var(--cyan-2); }
img{ max-width:100%; }
.wrap{ width:100%; max-width:var(--maxw); margin:0 auto; padding:0 22px; }

/* mono technical label */
.eyebrow{ font-family:var(--ff-mono); font-size:12px; font-weight:500; letter-spacing:.22em;
  text-transform:uppercase; color:var(--cyan); display:inline-flex; align-items:center; gap:9px; }
.eyebrow::before{ content:''; width:22px; height:1px; background:linear-gradient(90deg,var(--cyan),transparent); }

/* HUD corner brackets */
.hud{ position:relative; }
.hud::before,.hud::after{ content:''; position:absolute; width:16px; height:16px; pointer-events:none; z-index:3; }
.hud::before{ top:9px; left:9px; border-top:2px solid var(--cyan); border-left:2px solid var(--cyan); opacity:.7; }
.hud::after{ bottom:9px; right:9px; border-bottom:2px solid var(--cyan); border-right:2px solid var(--cyan); opacity:.7; }

/* logo */
.brand{ font-family:var(--ff-display); font-size:23px; font-weight:900; letter-spacing:-.02em; white-space:nowrap; display:inline-flex; align-items:center; gap:2px; }
.brand .a{ color:var(--cyan); } .brand .b{ color:#fff; }
.brand .ind-flag{ width:22px; height:15px; margin-left:8px; border-radius:2px; box-shadow:0 1px 4px rgba(0,0,0,.5); vertical-align:middle; flex-shrink:0; }
.brand .dot{ width:6px; height:6px; border-radius:50%; background:var(--cyan); margin-left:6px; box-shadow:0 0 10px var(--cyan); animation:blink 2.4s steps(1) infinite; }
@keyframes blink{ 0%,70%{opacity:1} 71%,100%{opacity:.25} }

/* ─── BUTTONS ─── */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
  font-family:var(--ff-mono); font-size:13px; font-weight:600; letter-spacing:.04em; text-transform:uppercase;
  border:1px solid transparent; padding:12px 22px; position:relative; transition:transform .16s var(--ease), box-shadow .2s, background .2s, color .2s;
  clip-path:polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.btn-primary{ background:linear-gradient(180deg,var(--cyan-2),var(--cyan)); color:#fff; box-shadow:0 0 0 1px rgba(255,59,78,.3), 0 12px 30px -10px rgba(255,59,78,.55); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 0 0 1px rgba(255,59,78,.5), 0 18px 40px -12px rgba(255,59,78,.7); color:#fff; }
.btn-ghost{ background:rgba(12,19,28,.7); color:#dbe6ec; border:1px solid var(--line2); }
.btn-ghost:hover{ transform:translateY(-2px); border-color:var(--cyan); color:#fff; box-shadow:0 0 24px -8px rgba(255,59,78,.5); }
.burger{ display:none; background:none; border:none; color:#dbe6ec; font-size:24px; cursor:pointer; padding:4px 8px; }

/* ─── HEADER ─── */
.site-header{ position:sticky; top:0; z-index:200; background:rgba(6,10,16,.72); backdrop-filter:blur(14px) saturate(120%); border-bottom:1px solid var(--line); }
.hdr-row{ display:flex; align-items:center; justify-content:space-between; height:66px; }
.nav{ display:flex; align-items:center; gap:2px; }
.nav a{ font-family:var(--ff-mono); color:#aebcc6; font-size:12.5px; font-weight:500; letter-spacing:.03em; padding:9px 13px; border-radius:7px; position:relative; transition:color .15s; }
.nav a::after{ content:''; position:absolute; left:13px; right:13px; bottom:5px; height:1px; background:var(--cyan); transform:scaleX(0); transform-origin:left; transition:transform .22s var(--ease); }
.nav a:hover{ color:#fff; } .nav a:hover::after{ transform:scaleX(1); }
.nav a.active{ color:var(--cyan); } .nav a.active::after{ transform:scaleX(1); opacity:.6; }
.hdr-cta{ display:flex; align-items:center; gap:12px; }
.mobile-nav{ display:none; flex-direction:column; gap:2px; padding:10px 0 16px; border-top:1px solid var(--line); }
.mobile-nav.open{ display:flex; }
.mobile-nav a{ font-family:var(--ff-mono); color:#aebcc6; font-size:13px; padding:12px 8px; border-radius:8px; }
.mobile-nav a:hover{ background:var(--panel); color:#fff; }

/* ─── HERO ─── */
.hero{ position:relative; overflow:hidden; padding:70px 0 34px; text-align:center; }
.hero-deco{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.hero-deco svg{ position:absolute; inset:0; width:100%; height:100%; }
.hero .wrap{ position:relative; z-index:1; }
.hero-deco .trail{ animation:dash 2.6s linear infinite; }
@keyframes dash{ to{ stroke-dashoffset:-160; } }
.telemetry{ font-family:var(--ff-mono); font-size:11.5px; letter-spacing:.14em; color:var(--dim); text-transform:uppercase; margin-bottom:18px; display:flex; gap:18px; justify-content:center; flex-wrap:wrap; }
.telemetry b{ color:var(--cyan); font-weight:600; }
.badges{ display:flex; gap:9px; justify-content:center; flex-wrap:wrap; margin-bottom:22px; }
.badge{ font-family:var(--ff-mono); font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  padding:6px 13px; border:1px solid; border-radius:2px; background:rgba(255,255,255,.02); }
.badge.b-age{ color:#ff9bac; border-color:rgba(255,90,114,.4); }
.badge.b-free{ color:var(--cyan-2); border-color:rgba(255,59,78,.4); }
.badge.b-coin{ color:var(--amber-2); border-color:rgba(255,183,77,.42); }
.hero h1{ font-family:var(--ff-display); font-size:clamp(34px,6vw,68px); font-weight:900; line-height:1.02; letter-spacing:-.025em; margin-bottom:18px; }
.hero h1 .hl{ background:linear-gradient(120deg,var(--cyan-2),var(--cyan)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lead{ font-size:clamp(16px,2vw,20px); color:#b2c0ca; max-width:600px; margin:0 auto 26px; }
.hero .cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* page-load stagger */
.hero .telemetry{ animation:rise .7s .04s both; }
.hero .badges{ animation:rise .7s .14s both; }
.hero h1{ animation:rise .8s .24s both; }
.hero p.lead{ animation:rise .8s .36s both; }
.hero .cta-row{ animation:rise .8s .48s both; }
@keyframes rise{ from{opacity:0; transform:translateY(20px)} to{opacity:1; transform:none} }

/* ─── GAME EMBED (cockpit screen) ─── */
.game-section{ padding:16px 0 56px; }
.game-shell{ position:relative; max-width:1120px; margin:0 auto; }
.game-tabs{ display:flex; align-items:center; gap:10px; font-family:var(--ff-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--dim); margin-bottom:10px; padding:0 4px; }
.game-tabs .live{ color:var(--cyan); display:inline-flex; align-items:center; gap:6px; }
.game-tabs .live::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 9px var(--cyan); animation:pulse 1.6s infinite; }
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.35} }
.game-tabs .spacer{ flex:1; height:1px; background:linear-gradient(90deg,var(--line2),transparent); }
.game-frame{ position:relative; width:100%; aspect-ratio:16/9; min-height:520px; overflow:hidden;
  border:1px solid var(--line2); background:var(--bg);
  box-shadow:0 0 0 1px rgba(255,59,78,.06), 0 40px 90px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(255,59,78,.25);
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.game-frame iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
@media (max-width:760px){ .game-frame{ aspect-ratio:auto; height:80dvh; min-height:560px; } }

/* ─── SECTIONS ─── */
.section{ padding:64px 0; position:relative; }
.section.alt{ background:linear-gradient(180deg,rgba(10,16,23,.6),rgba(8,13,19,.6)); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section .sec-head{ text-align:center; margin-bottom:40px; }
.section .eyebrow{ margin-bottom:14px; }
.section h2{ font-family:var(--ff-display); font-size:clamp(26px,4vw,40px); font-weight:800; letter-spacing:-.02em; line-height:1.08; }
.section .sub{ color:var(--muted); max-width:560px; margin:10px auto 0; }

.steps, .features{ display:grid; gap:18px; grid-template-columns:repeat(3,1fr); }
@media (max-width:820px){ .steps,.features{ grid-template-columns:1fr; max-width:460px; margin:0 auto; } }
.card{ position:relative; background:linear-gradient(180deg,var(--panel),var(--panel2)); border:1px solid var(--line); padding:26px 24px;
  clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition:transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.card::after{ content:''; position:absolute; top:0; left:0; width:30px; height:30px; border-top:2px solid transparent; border-left:2px solid transparent; transition:border-color .22s; }
.card:hover{ transform:translateY(-5px); border-color:var(--line2); box-shadow:0 24px 50px -28px rgba(0,0,0,.8), 0 0 50px -26px rgba(255,59,78,.5); }
.card:hover::after{ border-top-color:var(--cyan); border-left-color:var(--cyan); }
.card .num{ font-family:var(--ff-mono); font-size:13px; font-weight:600; width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  color:var(--cyan); border:1px solid rgba(255,59,78,.35); border-radius:50%; margin-bottom:16px; box-shadow:inset 0 0 18px -8px var(--cyan); }
.card .ico{ font-size:30px; margin-bottom:12px; display:block; }
.card h3{ font-family:var(--ff-display); font-size:18px; font-weight:700; margin-bottom:7px; letter-spacing:-.01em; }
.card p{ font-size:14.5px; color:#aab6c0; }

/* notice */
.notice{ position:relative; background:linear-gradient(120deg,rgba(14,22,30,.9),rgba(9,14,20,.9)); border:1px solid var(--line2);
  padding:26px 28px; display:flex; gap:18px; align-items:flex-start;
  clip-path:polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); }
.notice .nico{ font-size:30px; flex-shrink:0; filter:drop-shadow(0 0 10px rgba(255,59,78,.5)); }
.notice h3{ font-family:var(--ff-display); font-size:18px; font-weight:700; margin-bottom:6px; }
.notice p{ font-size:14px; color:#a6b2bd; }
.notice b{ color:#fff; }

/* ─── CONTENT PAGES ─── */
.page-hero{ padding:58px 0 26px; text-align:center; border-bottom:1px solid var(--line); position:relative; }
.page-hero .eyebrow{ margin-bottom:14px; }
.page-hero h1{ font-family:var(--ff-display); font-size:clamp(30px,5vw,48px); font-weight:900; letter-spacing:-.025em; }
.page-hero p{ color:var(--muted); margin-top:10px; }
.prose{ max-width:760px; margin:0 auto; padding:42px 22px 64px; }
.prose h2{ font-family:var(--ff-display); font-size:23px; font-weight:800; margin:32px 0 11px; color:#fff; letter-spacing:-.01em; }
.prose h3{ font-family:var(--ff-display); font-size:17px; font-weight:700; margin:22px 0 8px; color:#eaf1f5; }
.prose p{ color:#bcc8d1; margin-bottom:13px; font-size:15.5px; }
.prose ul{ margin:0 0 15px 4px; color:#bcc8d1; font-size:15.5px; list-style:none; }
.prose li{ margin-bottom:8px; padding-left:22px; position:relative; }
.prose li::before{ content:'▸'; position:absolute; left:0; color:var(--cyan); }
.prose b{ color:#fff; }
.prose .updated{ font-family:var(--ff-mono); color:var(--dim); font-size:12.5px; letter-spacing:.08em; margin-bottom:26px; text-transform:uppercase; }
.prose .callout{ position:relative; background:var(--panel); border:1px solid var(--line2); border-left:3px solid var(--amber);
  padding:15px 17px; margin:20px 0; font-size:14.5px; color:#bcc8d1; }
.prose .callout b{ color:var(--amber-2); }
.prose a{ text-decoration:underline; text-underline-offset:2px; }

/* contact */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:22px; max-width:880px; margin:0 auto; }
@media (max-width:760px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{ background:linear-gradient(180deg,var(--panel),var(--panel2)); border:1px solid var(--line); padding:26px;
  clip-path:polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.contact-card h3{ font-family:var(--ff-display); font-size:16px; margin-bottom:11px; }
.field{ margin-bottom:13px; }
.field label{ display:block; font-family:var(--ff-mono); font-size:11px; color:var(--muted); margin-bottom:6px; letter-spacing:.06em; text-transform:uppercase; }
.field input, .field textarea{ width:100%; background:var(--bg); border:1px solid var(--line2); padding:11px 13px; color:#fff; font-size:14px; font-family:inherit; outline:none; transition:border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus{ border-color:var(--cyan); box-shadow:0 0 0 3px rgba(255,59,78,.12); }

/* faq */
.faq{ max-width:780px; margin:0 auto; }
.faq-item{ border:1px solid var(--line); margin-bottom:10px; background:var(--panel); transition:border-color .2s; }
.faq-item.open{ border-color:var(--line2); }
.faq-q{ width:100%; text-align:left; background:none; border:none; color:#fff; font-family:var(--ff-display); font-size:15.5px; font-weight:700; padding:17px 19px; cursor:pointer; display:flex; justify-content:space-between; gap:10px; }
.faq-q .chev{ color:var(--cyan); transition:transform .22s var(--ease); flex-shrink:0; }
.faq-item.open .chev{ transform:rotate(180deg); }
.faq-a{ display:none; padding:0 19px 17px; color:#aab6c0; font-size:14.5px; }
.faq-item.open .faq-a{ display:block; animation:rise .35s both; }

/* ─── FOOTER ─── */
.site-footer{ margin-top:auto; background:var(--bg2); border-top:1px solid var(--line); position:relative; }
.foot-strip{ font-family:var(--ff-mono); background:rgba(255,59,78,.05); color:#f0b3ba; text-align:center; font-size:11px; letter-spacing:.06em; padding:9px 12px; border-bottom:1px solid var(--line); }
.foot-strip b{ color:#fff; }
.foot-main{ display:grid; grid-template-columns:1.7fr 1fr 1fr; gap:32px; padding:42px 0 28px; }
@media (max-width:760px){ .foot-main{ grid-template-columns:1fr; gap:26px; } }
.foot-col h4{ font-family:var(--ff-mono); font-size:11px; text-transform:uppercase; letter-spacing:.16em; color:var(--dim); margin-bottom:14px; }
.foot-col a{ display:block; color:#9fb0bb; font-size:14px; padding:5px 0; transition:color .15s, padding-left .15s; }
.foot-col a:hover{ color:#fff; padding-left:5px; }
.foot-about p{ color:#7f8d99; font-size:13.5px; margin:14px 0; max-width:330px; }
.foot-bottom{ border-top:1px solid var(--line); padding:18px 0; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; font-family:var(--ff-mono); font-size:11.5px; letter-spacing:.05em; color:var(--dim); }
.foot-bottom .age b{ color:#ff9bac; }

/* ─── AGE GATE ─── */
#site-agegate{ position:fixed; inset:0; z-index:1000; background:radial-gradient(circle at 50% 24%,#260a10,#0a0406 72%); display:flex; align-items:center; justify-content:center; padding:18px; }
#site-agegate.hidden{ display:none; }
.ag-card{ position:relative; background:linear-gradient(180deg,var(--panel),var(--panel2)); border:1px solid var(--line2); max-width:440px; width:100%; max-height:92dvh; overflow:auto; padding:34px 28px; text-align:center;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.8), 0 0 80px -30px rgba(255,59,78,.4);
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px)); }
.ag-card .ag-icon{ font-size:44px; margin-bottom:8px; filter:drop-shadow(0 0 12px rgba(255,90,114,.5)); }
.ag-card .brand{ font-size:27px; justify-content:center; margin-bottom:16px; }
.ag-card h2{ font-family:var(--ff-display); font-size:21px; font-weight:800; margin-bottom:7px; letter-spacing:-.01em; }
.ag-card .sub{ font-size:13.5px; color:var(--muted); margin-bottom:18px; }
.ag-list{ text-align:left; background:var(--bg); border:1px solid var(--line); padding:15px 16px; margin-bottom:20px; }
.ag-list li{ list-style:none; font-size:12.5px; color:#c0ccd5; padding:5px 0 5px 25px; position:relative; }
.ag-list li:before{ content:'✓'; position:absolute; left:0; color:var(--green); font-weight:800; }
.ag-list li.no:before{ content:'✕'; color:var(--red); }
.ag-btns{ display:flex; flex-direction:column; gap:10px; }
.ag-btns .btn{ padding:14px; font-size:13px; justify-content:center; }
.ag-no{ background:var(--bg); color:var(--muted); border:1px solid var(--line2); }
.ag-no:hover{ color:#cdd8e0; }
.ag-rate{ font-family:var(--ff-mono); margin-top:16px; font-size:11.5px; color:var(--dim); letter-spacing:.06em; }
.ag-rate b{ color:var(--amber); }

/* ─── COOKIE ─── */
#ck{ position:fixed; left:0; right:0; bottom:0; z-index:700; background:rgba(8,13,19,.96); backdrop-filter:blur(10px); border-top:1px solid var(--line2); padding:14px 18px; }
.ck-inner{ max-width:var(--maxw); margin:0 auto; display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; font-size:13px; color:#bcc8d1; }
.ck-inner a{ text-decoration:underline; }
.ck-btns{ display:flex; gap:9px; flex-shrink:0; }
.ck-btns .btn{ padding:9px 18px; font-size:12px; }

/* ─── SCROLL REVEAL ─── */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.steps .card, .features .card{ transition:transform .22s var(--ease), border-color .22s, box-shadow .22s, opacity .6s var(--ease); }
.reveal.in .card:nth-child(1){ transition-delay:0s,.04s; }

/* ─── RESPONSIVE HEADER ─── */
@media (max-width:880px){
  .nav{ display:none; }
  .burger{ display:block; }
  .hdr-cta .btn-ghost{ display:none; }
  .telemetry{ gap:12px; font-size:10.5px; }
}
@media (max-width:600px){
  .wrap{ padding:0 16px; }
  .hero{ padding:48px 0 24px; }
  .section{ padding:48px 0; }
  .ck-inner{ font-size:12px; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms!important; transition-duration:.001ms!important; }
  .reveal{ opacity:1; transform:none; }
}
