:root {
  --bg: #070910;
  --ink: #e8fbff;
  --dim: #8ea0b5;
  --cyan: #2ee7ff;
  --mag: #ff2f6d;
  --gold: #ffe14a;
  --line: rgba(46, 231, 255, 0.45);
  --card: #0c1220;
  font-family: "Sora", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 70% -10%, rgba(255, 47, 109, 0.18), transparent 55%),
    radial-gradient(900px 500px at 10% 0%, rgba(46, 231, 255, 0.16), transparent 50%),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 6vw;
  background: rgba(7, 9, 16, 0.86);
  border-bottom: 1px solid rgba(46, 231, 255, 0.2);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: 0.14em; font-size: 13px; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links a:hover { color: var(--cyan); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; padding: 54px 6vw 30px; }
.kicker { color: var(--cyan); letter-spacing: 0.22em; font-size: 12px; margin: 0 0 10px; }
h1 { font-family: "Chakra Petch", sans-serif; font-size: clamp(42px, 6vw, 84px); line-height: 0.9; margin: 0; }
h1 span { color: var(--mag); }
.lede { color: #d5e7f2; font-size: 18px; max-width: 62ch; line-height: 1.55; }
.cta-row, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  border: 1px solid var(--cyan); background: transparent; color: var(--cyan);
  padding: 12px 16px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border-radius: 4px;
}
.btn.solid { background: var(--mag); border-color: var(--mag); color: white; }
.btn.gold { border-color: var(--gold); color: var(--gold); }
.btn:hover { filter: brightness(1.15); }
.hero-media { position: relative; }
.hero-media video, .frame {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #000;
}
.badge {
  position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.72);
  border: 1px solid var(--gold); color: var(--gold); padding: 6px 10px; font-size: 12px; letter-spacing: 0.08em;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 10px 6vw 40px; }
.stat { border: 1px solid rgba(46,231,255,.25); padding: 14px; border-radius: 10px; background: rgba(8,14,24,.7); }
.stat b { display: block; font-family: "Chakra Petch", sans-serif; font-size: 28px; color: var(--gold); }
.stat span { color: var(--dim); font-size: 13px; }
section { padding: 20px 6vw 50px; }
h2 { font-family: "Chakra Petch", sans-serif; font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; }
.sub { color: var(--dim); max-width: 70ch; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #080d16; }
.panel img { height: 280px; width: 100%; object-fit: cover; }
.panel div { padding: 16px 18px 20px; }
.panel h3 { margin: 0 0 8px; }
.panel p { color: #c9d7e4; line-height: 1.5; }
.card-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.card-wall img { width: 100%; border-radius: 12px; background: #05070d; border: 1px solid rgba(46,231,255,.25); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.gallery img { height: 180px; width: 100%; object-fit: cover; border-radius: 10px; border: 1px solid rgba(46,231,255,.25); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.features article { border: 1px solid rgba(255,255,255,.08); padding: 16px; border-radius: 12px; background: rgba(12,18,32,.8); }
.features h3 { margin: 0 0 6px; font-size: 16px; }
.features p { margin: 0; color: var(--dim); line-height: 1.45; font-size: 14px; }
.lobby, .board {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  background:
    linear-gradient(180deg, rgba(8,12,22,.92), rgba(8,12,22,.92)),
    url("../assets/media/grid.jpg") center/cover;
}
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip, select.chip {
  border: 1px solid rgba(46,231,255,.35); background: #0d1524; border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.chip.on { border-color: var(--gold); color: var(--gold); }
.board-top, .hand-wrap { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.hp { flex: 1; }
.hp .bar { height: 10px; background: #1b2433; border-radius: 99px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.hp .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mag), #ff8aa8); }
.hp.enemy .bar i { background: linear-gradient(90deg, var(--cyan), #9ff); }
.meta { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: var(--gold); letter-spacing: 0.04em; }
.lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.lane { min-height: 250px; border: 1px dashed rgba(46,231,255,.35); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.slot { min-height: 96px; width: 100%; border: 0; padding: 4px; text-align: left; color: inherit; border-radius: 8px; background: rgba(0,0,0,.35); cursor: pointer; }
.slot.attack { outline: 2px solid var(--mag); }
.slot.block { outline: 2px solid var(--gold); }
.mini {
  width: 100%; border-radius: 8px; cursor: pointer; background: #111;
  border: 1px solid rgba(255,255,255,.2);
}
.hand { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; }
.hand .card {
  width: 118px; flex: 0 0 auto; cursor: pointer; border-radius: 8px;
  border: 2px solid transparent; background: #05070d; padding: 0; overflow: hidden;
}
.hand .card.on { border-color: var(--gold); }
.hand .card img, .mini { width: 100%; height: auto; display: block; aspect-ratio: 2/3; object-fit: cover; background: #05070d; }
.log {
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: #b7c9d8;
  max-height: 92px; overflow: auto; margin: 8px 0;
}
.curtain, .modal {
  position: fixed; inset: 0; background: rgba(2,4,10,.86); display: grid; place-items: center; z-index: 30; padding: 20px;
}
.curtain div, .modal div.box {
  max-width: 520px; width: min(520px, 100%); border: 1px solid var(--cyan); background: #0b101a; padding: 22px; border-radius: 14px;
}
.zoom img { width: min(320px, 80vw); margin: 0 auto 10px; }
footer { padding: 28px 6vw 50px; color: var(--dim); border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--dim); }
@media (max-width: 900px) {
  .hero, .split, .stats, .gallery, .features, .lanes, .card-wall { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .stats, .gallery, .features, .lanes, .card-wall { grid-template-columns: 1fr 1fr; }
}
