:root{
  --bg: #f7fbff;
  --bg2: #e6f7ff;
  --card: #ffffff;
  --text: #0b2147;
  --muted:#4a6ea8;
  --accent:#28a5ff;
  --accent2:#8df5ff;
  --gold:#ffd35a;
  --danger:#ff5a7a;
  --success:#3ad29f;
  --shadow: 0 10px 30px rgba(15,62,120,.12);
  --radius:16px;
  --radius-sm:10px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg2), transparent 60%), linear-gradient(180deg, var(--bg), #ffffff 60%);
  background-attachment: fixed;
}

.skip-link{
  position:absolute;left:-9999px;top:auto;
}
.skip-link:focus{
  left:12px;top:12px;background:#fff;padding:8px 12px;border-radius:8px;box-shadow:var(--shadow);z-index:1000
}

.site-header{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:12px 16px;background:linear-gradient(90deg,#dff4ff,#fff);
  position:sticky;top:0;z-index:50;box-shadow:0 2px 16px rgba(0,0,0,.06)
}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--text)}
.brand .uav-logo svg{display:block}
.site-header nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.nav-link{
  border:0;background:transparent;color:var(--muted);padding:10px 12px;border-radius:12px;cursor:pointer;font-weight:600
}
.nav-link:hover,.nav-link.active{color:#000;background:#eef7ff}
.toolbar{display:flex;align-items:center;gap:10px;margin-left:6px}
.sound-toggle{display:flex;gap:6px;align-items:center;background:#eef7ff;padding:6px 10px;border-radius:999px;color:#1e517e;font-weight:600}
.sound-toggle input{accent-color:var(--accent)}
.btn-ghost{
  background:#ffffff;border:2px solid #e6f2ff;color:#1e517e;padding:8px 12px;border-radius:12px;font-weight:700;cursor:pointer
}
.btn-ghost:disabled{opacity:.5;cursor:not-allowed}

main{padding:16px}
.view{display:none;opacity:0;transform:translateY(8px);transition:opacity .35s ease, transform .35s ease}
.view.active{display:block;opacity:1;transform:none}

.hero{
  display:grid;gap:18px;max-width:1100px;margin:0 auto;background:linear-gradient(180deg,#ffffff, #f1fbff);padding:22px;border-radius:var(--radius);box-shadow:var(--shadow)
}
.hero-visual{position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(90deg,#e7f7ff,#fff)}
.hero-uav{width:100%;height:auto;animation:float 6s ease-in-out infinite}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

.tagline{color:#0a4670;font-weight:700}
.lead{color:#1e517e}
.hero-cta .btn-primary{display:inline-block}

.cards{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;max-width:1100px;margin:16px auto 0}
.card{grid-column:span 12;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}
.card .icon{width:64px;height:64px;display:grid;place-items:center;background:#eefaff;border-radius:12px}
.card h3{margin:0}
.card p{margin:0;color:#285d8e}
@media(min-width:720px){ .card{grid-column:span 4} }

.btn-primary{
  background:linear-gradient(90deg,var(--accent),#5dd8ff);
  color:#002b54;border:0;border-radius:14px;padding:12px 18px;font-weight:800;cursor:pointer;box-shadow:0 6px 0 #bdeeff, 0 12px 24px rgba(40,165,255,.25)
}
.btn-primary:active{transform:translateY(1px)}

.particles{position:absolute;inset:0;width:100%;height:100%;z-index:-1;display:block;border-radius:var(--radius)}

.links-extra{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;margin-top:18px}
.links-extra a{color:#0a4670;text-decoration:none;font-weight:700}
.links-extra a:hover{text-decoration:underline}

.game-header{max-width:1100px;margin:0 auto 10px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.subtle{color:#245a8b}

.game-panels{display:grid;grid-template-columns:1fr;gap:16px;max-width:1100px;margin:0 auto}
.panel{background:#ffffff;border-radius:var(--radius);box-shadow:var(--shadow);padding:14px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.scorebar,.balancebar{display:flex;gap:12px;color:#1a4a78;font-weight:700}

.flight-wrap{position:relative;border-radius:12px;overflow:hidden;background:linear-gradient(180deg,#e9fbff,#ffffff)}
#flightCanvas{width:100%;aspect-ratio:16/9;display:block}
.overlay{
  position:absolute;inset:0;display:grid;place-content:center;text-align:center;background:linear-gradient(180deg,rgba(255,255,255,.85), rgba(255,255,255,.65));
}
.overlay .hint{margin-top:10px;color:#2f6a9c}
.touch-controls{position:absolute;inset:auto 0 0 0;display:flex;justify-content:space-between;pointer-events:none}
.touch-controls button{pointer-events:auto;background:rgba(40,165,255,.12);border:2px solid #bfeaff;color:#0a4670;padding:12px 18px;margin:10px;border-radius:14px;font-size:18px}

.slot-wrap{display:grid;gap:12px}
.reels{display:grid;grid-template-columns:repeat(3, 1fr);gap:10px;background:linear-gradient(180deg,#f7fbff,#ffffff);padding:12px;border-radius:14px;border:2px solid #e6f7ff;position:relative;overflow:hidden}
.reel{height:140px;border-radius:12px;background:#ffffff;border:2px solid #eaf6ff;position:relative;overflow:hidden}
.reel .cell{height:70px;display:grid;place-items:center;border-bottom:1px dashed #eef2ff}
.reel .cell:last-child{border-bottom:0}
.cell svg{width:44px;height:44px;filter: drop-shadow(0 4px 8px rgba(0,0,0,.06))}
.slot-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#betRange{flex:1}
.btn-accent{background:linear-gradient(90deg,#00d68f,#43f7b9);color:#063;border:0;border-radius:14px;padding:10px 16px;font-weight:800;cursor:pointer}
.btn-accent:disabled{opacity:.6;cursor:not-allowed}
.slot-msg{min-height:24px;color:#0a4670;font-weight:700}
.legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.pill{background:#eefaff;border:2px solid #d7f1ff;padding:6px 10px;border-radius:999px;color:#0a4670;font-weight:700;display:flex;align-items:center;gap:6px}
.sym{display:inline-block;width:18px;height:18px;vertical-align:middle;background:conic-gradient(from 0deg, #28a5ff, #8df5ff)}
.sym[data-sym="beacon"]{background:radial-gradient(#ffd35a,#ffbf2b)}
.sym[data-sym="ai"]{background:linear-gradient(90deg,#9b8bff,#d7d1ff)}
.sym[data-sym="uav"]{background:linear-gradient(90deg,#28a5ff,#8df5ff)}

.win-glow{animation:glow 1s ease-out}
@keyframes glow{0%{box-shadow:0 0 0 rgba(255,211,90,0)}100%{box-shadow:0 0 0 16px rgba(255,211,90,.0)}}

#about,#privacy,#terms{
  max-width:900px;margin:0 auto;background:#ffffff;border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;line-height:1.6;color:#18486f
}
#about p + p{margin-top:8px}

.site-footer{margin-top:24px;padding:16px;text-align:center;color:#1e517e;background:linear-gradient(180deg,#ffffff,#f1fbff);border-top:1px solid #e6f7ff}
.disclaimer{font-weight:800;color:#0a4670;background:#fff4c9;border:2px solid #ffe89b;padding:8px 10px;border-radius:12px;display:inline-block;margin-bottom:10px}
.foot-links{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:8px}
.copy{color:#4a6ea8}

.cookie-banner{
  position:fixed;left:12px;right:12px;bottom:12px;background:#ffffff;border:2px solid #e6f7ff;border-radius:14px;box-shadow:var(--shadow);padding:12px;z-index:100
}
.cookie-content{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cookie-actions{display:flex;gap:10px;margin-left:auto}

.fade-enter{opacity:0;transform:translateY(8px)}
.fade-enter-active{opacity:1;transform:none;transition:opacity .35s, transform .35s}
.fade-exit{opacity:1}
.fade-exit-active{opacity:0;transition:opacity .25s}

.plus-one{
  position:absolute;color:#0a4670;font-weight:800;pointer-events:none;transform:translate(-50%, -50%);animation:rise .8s ease-out forwards
}
@keyframes rise{to{transform:translate(-50%,-120%);opacity:0}}

@media(min-width:960px){
  .game-panels{grid-template-columns:1fr 1fr}
}
