:root{
  --bg1:#1e7dff;
  --bg2:#c9f6ff;
  --glass: rgba(255,255,255,0.14);
  --line: rgba(255,255,255,0.18);
  --dark: rgba(0,0,0,0.22);
  --text:#ffffff;
  --accent:#0b5fb8;
  --accent2:#084a8f;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 15% 10%, rgba(255,255,255,0.22), transparent 60%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  min-height:100vh;
}

a{color:#e9fbff; text-decoration:none}
a:hover{text-decoration:underline}

.wrap{max-width:1160px; margin:0 auto; padding:22px}

.topbar{background: var(--dark); padding:10px 0}
.topbar-wrap{display:flex; align-items:center; gap:12px}
.topbar-lines{line-height:1.15}
.topbar-main{font-size:14px; font-weight:900}
.topbar-sub{font-size:12px; opacity:0.92}

.badge-18{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:50%;
  border:2px solid #fff; font-weight:950; letter-spacing:0.5px; flex:0 0 auto;
}

.site-header{
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-wrap{display:flex; align-items:center; justify-content:space-between; gap:18px}
.brand{font-weight:950; font-size:20px; letter-spacing:0.4px}
.nav{display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.10);
  border: 1px solid rgba(255,255,255,0.10);
}
.nav a:hover{background: rgba(0,0,0,0.18)}

.hero{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width: 920px){
  .hero{grid-template-columns:1fr}
}

.panel{
  background: rgba(0,0,0,0.16);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.hero h1{margin:0 0 10px 0; font-size:34px}
.hero p{margin:0; line-height:1.55; opacity:0.98}

.hero-img{
  width:100%;
  height:100%;
  max-height: 360px;
  object-fit: cover;
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 0.62fr;
  gap:18px;
  margin-top:18px;
}
@media (max-width: 920px){
  .grid{grid-template-columns:1fr}
}

.card{
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
}

.card-media{position:relative}
.card-media img{width:100%; display:block}
.card-badge{
  position:absolute; top:14px; left:14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-body{padding:18px}
.card-title{margin:0 0 8px 0; font-size:20px; font-weight:950}
.card-text{margin:0 0 14px 0; font-size:14px; line-height:1.55; opacity:0.97}

.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  margin: 10px 0 6px 0;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border:none; cursor:pointer;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight:950;
}
.btn-primary{background: var(--accent); color:#fff}
.btn-primary:hover{background: var(--accent2)}
.btn-ghost{
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--line);
  color:#fff;
}
.btn-ghost:hover{background: rgba(255,255,255,0.16)}

.list{margin:10px 0 0 0; padding-left:18px}
.list li{margin:6px 0}

.site-footer{margin-top:26px; background: rgba(0,0,0,0.22); padding:18px 0}
.footer-wrap{display:grid; gap:14px}
.footer-top{display:flex; gap:16px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.footer-disclaimer{display:flex; align-items:center; gap:10px; font-size:14px; line-height:1.45}
.footer-resources{display:flex; gap:10px; flex-wrap:wrap}
.footer-resources a{
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--line);
}
.footer-resources a:hover{background: rgba(255,255,255,0.16)}
.footer-meta{font-size:14px; line-height:1.6; opacity:0.98}
.footer-links{margin-top:10px; display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.footer-links span{opacity:0.7}

/* modal */
.game-modal{position:fixed; inset:0; z-index:12000; background: rgba(0,0,0,0.72); display:none; align-items:center; justify-content:center; padding:18px}
.game-modal.active{display:flex}
.game-modal-inner{
  width: min(1200px, 96vw);
  height: min(760px, 88vh);
  background: rgba(10,16,28,0.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  position: relative;
}
.game-modal-top{position:absolute; top:10px; right:10px; z-index:2; display:flex; gap:10px}
.modal-btn{
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--line);
  color:#fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-weight:950;
  cursor:pointer;
}
.modal-btn:hover{background: rgba(255,255,255,0.18)}
.game-frame{width:100%; height:100%; border:0}

/* effects */
.flash{position:fixed; inset:0; background: rgba(255,255,255,0); pointer-events:none; z-index:9999; opacity:0}
.flash.active{animation: flashBlink 650ms ease-in-out 1}
@keyframes flashBlink{
  0%{opacity:0}
  15%{opacity:0.85}
  30%{opacity:0.15}
  45%{opacity:0.75}
  60%{opacity:0.2}
  100%{opacity:0}
}
.burst{position:fixed; inset:0; pointer-events:none; z-index:10000; overflow:hidden}
.b-emoji{position:absolute; font-size:28px; will-change: transform, opacity; animation: floatUp 900ms ease-out forwards; opacity:0.95}
@keyframes floatUp{
  0%{ transform: translateY(0) scale(0.9); opacity:0 }
  15%{ opacity:0.95 }
  100%{ transform: translateY(-140px) scale(1.15); opacity:0 }
}
