/* ==============================
   Paint Your World — Split Site
   Premium “game UI” landing page
   ============================== */

:root{
  --bg0:#05070c;
  --bg1:#070a12;
  --glass: rgba(12,16,28,.52);
  --glass2: rgba(12,16,28,.72);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.56);
  --shadow: rgba(0,0,0,.42);

  --a1: rgba(120,90,255,.95);
  --a2: rgba(0,255,163,.86);
  --a3: rgba(0,185,255,.72);
  --danger: rgba(255,80,140,.95);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% 15%, rgba(120,90,255,.18), transparent 55%),
    radial-gradient(900px 650px at 80% 20%, rgba(0,255,163,.12), transparent 55%),
    radial-gradient(1200px 900px at 60% 90%, rgba(0,185,255,.10), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

#particles, #hexPulse{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events:none;
  opacity: .95;
}

#hexPulse{ opacity: .65; mix-blend-mode: screen; }

#cursorGlow{
  position: fixed;
  width: 520px;
  height: 520px;
  margin-left:-260px;
  margin-top:-260px;
  border-radius: 999px;
  background: radial-gradient(circle at center,
    rgba(120,90,255,.18),
    rgba(0,255,163,.10) 38%,
    rgba(0,185,255,.06) 60%,
    transparent 70%);
  filter: blur(2px);
  z-index: 1;
  pointer-events:none;
  transform: translate3d(-9999px,-9999px,0);
  transition: opacity .2s ease;
  opacity: 0;
}

/* Top bar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,14,25,.80), rgba(10,14,25,.54));
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.brand{ display:flex; align-items:center; gap:12px; min-width: 220px; }
.brand__mark{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  box-shadow: 0 0 24px rgba(120,90,255,.55), 0 0 18px rgba(0,255,163,.35);
}
.brand__name{
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.0;
}
.brand__tag{
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}
.status{
  display:flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.status__dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(0,255,163,.95);
  box-shadow: 0 0 18px rgba(0,255,163,.55);
  animation: pulse 1.8s ease-in-out infinite;
}
.status__text{ font-size: 12px; letter-spacing: .9px; color: var(--muted); }

@keyframes pulse{
  0%,100%{ transform: scale(1); opacity: .85; }
  50%{ transform: scale(1.25); opacity: 1; }
}

.page{ position: relative; z-index: 2; }

/* Hero */
.hero{
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 16px 18px;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}

.headline{
  margin: 14px 0 10px;
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.6px;
  font-weight: 900;
}
.gtext{
  display:block;
  background: linear-gradient(90deg, rgba(255,255,255,.98), rgba(170,240,255,.82), rgba(255,255,255,.98));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.gtext::after{
  content:"";
  position:absolute;
  inset:-8px -10px;
  background: radial-gradient(60% 70% at 40% 50%, rgba(120,90,255,.22), transparent 65%);
  filter: blur(12px);
  z-index: -1;
  opacity: .9;
}

.subhead{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

.pillRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  margin: 12px 0 14px;
}

.pill{
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  min-width: 210px;
}
.pill__label{
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: .8px;
  text-transform: uppercase;
}
.pill__value{
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .4px;
}

.btn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 14px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease, box-shadow .12s ease;
  user-select:none;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}
.btn:active{ transform: translateY(0px) scale(.99); }
.btn--primary{
  border-color: rgba(120,90,255,.35);
  background: linear-gradient(90deg, rgba(120,90,255,.45), rgba(0,255,163,.20));
  box-shadow: 0 14px 40px rgba(120,90,255,.18), 0 14px 40px rgba(0,255,163,.12);
}
.btn--ghost{
  border-color: rgba(0,185,255,.22);
  background: rgba(0,185,255,.06);
}
.btn--small{
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
}

/* Cards */
.cards{
  margin-top: 12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px){
  .cards{ grid-template-columns: 1fr; }
}
.card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 12px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.card__title{
  font-weight: 900;
  letter-spacing: .3px;
  font-size: 13px;
}
.card__body{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* Map */
.mapShell{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 30px 70px rgba(0,0,0,.38);
  transform: translateZ(0);
}
.map{
  height: 520px;
  width: 100%;
}
@media (max-width: 980px){
  .map{ height: 460px; }
}
.mapHud{
  position:absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  pointer-events:none;
}
.mapHud__chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(10,14,25,.52);
  font-size: 12px;
  color: var(--muted);
}
.chipDot{
  width: 8px; height: 8px; border-radius:999px;
  background: rgba(0,255,163,.95);
  box-shadow: 0 0 16px rgba(0,255,163,.55);
}
.scrollHint{
  position:absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 6px;
  opacity: .85;
  pointer-events:none;
}
.scrollHint__line{
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.55), rgba(255,255,255,.0));
  border-radius: 999px;
  animation: bob 1.4s ease-in-out infinite;
}
.scrollHint__text{
  font-size: 12px;
  color: var(--muted2);
}
@keyframes bob{
  0%,100%{ transform: translateY(0); opacity: .65; }
  50%{ transform: translateY(-6px); opacity: 1; }
}

/* Sections */
.section{
  padding: 22px 16px;
}
.section__inner{
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
}
.section--tight .section__inner{ padding-top: 14px; }
.section__title{
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
  margin: 0 0 10px;
}
.section__text{
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 10px;
}
.gtextInline{
  background: linear-gradient(90deg, rgba(120,90,255,.98), rgba(0,255,163,.88), rgba(255,255,255,.92));
  -webkit-background-clip: text;
  background-clip:text;
  color: transparent;
  font-weight: 900;
}

.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 980px){ .steps{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .steps{ grid-template-columns: 1fr; } }
.step{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 12px;
}
.step__n{
  width: 28px; height: 28px;
  border-radius: 10px;
  display:grid; place-items:center;
  font-weight: 900;
  background: linear-gradient(90deg, rgba(120,90,255,.35), rgba(0,255,163,.18));
  border: 1px solid rgba(255,255,255,.12);
}
.step__t{ margin-top: 8px; color: var(--muted); line-height: 1.45; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){ .grid2{ grid-template-columns: 1fr; } }

.bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.bullets li{ margin: 6px 0; }

/* Feed (chat) */
.section--feed{ padding-bottom: 34px; }
.feed{
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(10,14,25,.55), rgba(10,14,25,.40));
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
}
.feed__head{
  padding: 12px 14px;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.feed__title{
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 12px;
  color: rgba(255,255,255,.88);
}
.feed__sub{ color: var(--muted2); font-size: 12px; }
.feed__stream{
  padding: 14px;
  height: 220px;
  overflow:auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: rgba(220,255,245,.90);
}
.feedLine{
  margin: 0 0 8px;
  opacity: .95;
}
.feedLine .tag{ color: rgba(0,255,163,.90); }
.feedLine .warn{ color: rgba(255,80,140,.92); }
.feedLine .sys{ color: rgba(120,90,255,.88); }
.feed__foot{
  border-top: 1px solid rgba(255,255,255,.08);
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content:space-between;
  padding: 10px 14px;
}
.feed__prompt{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
#feedTyping{ color: rgba(0,255,163,.92); }

/* Footer */
.footer{
  padding: 14px 16px 28px;
}
.footer__inner{
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  justify-content:space-between;
  align-items: baseline;
}
.footer__name{ font-weight: 900; }
.footer__slogans{ color: var(--muted2); font-size: 12px; display:flex; flex-wrap:wrap; gap:8px; }
.footer__right{ display:flex; gap:12px; flex-wrap:wrap; }
.link{
  color: rgba(170,240,255,.92);
  text-decoration:none;
  border-bottom: 1px dashed rgba(170,240,255,.35);
}
.link:hover{ color: white; border-bottom-color: rgba(255,255,255,.55); }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  z-index: 100;
  display:none;
}
.modal.isOpen{ display:block; }
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__panel{
  position: relative;
  width: min(820px, calc(100% - 22px));
  margin: 10vh auto 0;
}
.terminal{
  border-radius: 20px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(10,14,25,.78), rgba(10,14,25,.55));
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}
.terminal__bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.terminal__dots span{
  display:inline-block;
  width: 9px; height: 9px;
  border-radius:999px;
  margin-right: 6px;
  background: rgba(255,255,255,.18);
}
.terminal__title{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: rgba(255,255,255,.78);
  font-size: 12px;
}
.terminal__close{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  border-radius: 12px;
  width: 34px;
  height: 30px;
  cursor:pointer;
}
.terminal__body{
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.termLog{
  height: 160px;
  overflow:auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  color: rgba(220,255,245,.90);
}
.termLine{ margin: 0 0 8px; }
.termForm{ margin-top: 12px; }
.termLabel{
  display:block;
  color: rgba(255,255,255,.70);
  font-size: 12px;
  margin-bottom: 6px;
}
.termInputWrap{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 10px 10px;
  background: rgba(255,255,255,.04);
}
.termCaret{ color: rgba(0,255,163,.92); font-weight: 900; }
.termInputWrap input{
  flex:1;
  background: transparent;
  border: none;
  outline:none;
  color: rgba(255,255,255,.92);
  font-size: 14px;
}
.termHint{ margin-top: 8px; color: rgba(255,255,255,.55); font-size: 12px; }

/* War toast */
.warToast{
  position: fixed;
  left: 50%;
  top: 74px;
  transform: translateX(-50%);
  z-index: 80;
  display:none;
}
.warToast.isOn{ display:block; }
.warToast__inner{
  width: min(520px, calc(100% - 22px));
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, rgba(255,80,140,.16), rgba(120,90,255,.12), rgba(0,255,163,.10));
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  padding: 12px 14px;
}
.warToast__label{
  font-weight: 900;
  letter-spacing: 1.4px;
  font-size: 12px;
  color: rgba(255,255,255,.92);
}
.warToast__sub{ margin-top: 4px; color: rgba(255,255,255,.74); font-size: 13px; }
.warToast__bar{
  margin-top: 10px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,80,140,.95), rgba(120,90,255,.90), rgba(0,255,163,.88));
  transform-origin: left center;
  animation: toastBar 2.5s linear forwards;
}
@keyframes toastBar{
  from{ transform: scaleX(1); }
  to{ transform: scaleX(0); }
}


/* ===========================
   Ambient background map
   =========================== */
.bgMap{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .18;
  filter: saturate(1.2) contrast(1.05);
}
.bgMap__canvas{
  position: absolute;
  inset: 0;
}
.bgMap::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(1200px 700px at 20% 35%, rgba(120,90,255,.25), transparent 60%),
              radial-gradient(900px 600px at 80% 55%, rgba(0,255,163,.18), transparent 65%),
              linear-gradient(180deg, rgba(4,6,12,.85), rgba(4,6,12,.75));
  mix-blend-mode: multiply;
}

/* Ensure page content sits above background map */
.page{ position: relative; z-index: 2; }

/* ===========================
   Hero panel (terminal)
   =========================== */
.heroPanel{
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,25,.55);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.heroPanel__hdr{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}
.heroPanel__hint{
  font-size: 12px;
  opacity: .8;
}
.kbd{
  display:inline-block;
  padding:2px 6px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.feed--hero{ margin-top: 8px; }
.heroPanel__cta{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.pill{
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  font-size: 12px;
}
.pill--live{
  position: relative;
}
.pill--live::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  display:inline-block;
  margin-right:8px;
  background: rgba(0,255,163,.9);
  box-shadow: 0 0 12px rgba(0,255,163,.55);
}

/* ===========================
   Mechanics visuals
   =========================== */
.mechGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .mechGrid{ grid-template-columns: 1fr; }
}
.mechCard{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(12,16,28,.55);
  overflow:hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.mechCard__top{
  display:flex;
  gap:12px;
  padding: 14px 14px 10px;
  align-items:flex-start;
}
.mechIcon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  color: rgba(153,246,228,.9);
}
.mechIcon svg{ width: 24px; height: 24px; }
.mechTitle{
  font-weight: 800;
  letter-spacing: .2px;
}
.mechSub{
  margin-top: 4px;
  font-size: 13px;
  opacity: .85;
  line-height: 1.35;
}
.mechViz{
  position: relative;
  height: 92px;
  border-top: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(700px 200px at 20% 0%, rgba(120,90,255,.22), transparent 60%),
    radial-gradient(600px 200px at 90% 10%, rgba(0,255,163,.16), transparent 55%);
}
.hexPulse{
  position:absolute;
  inset: 18px auto auto 16px;
  width: 56px; height: 56px;
  border-radius: 16px;
  transform: rotate(15deg);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 0 0 rgba(120,90,255,.0);
  background: rgba(120,90,255,.18);
  animation: hexPulse 2.2s ease-in-out infinite;
}
.hexPulse--b{ left: 88px; top: 28px; background: rgba(0,255,163,.12); animation-delay: .35s; }
.hexPulse--c{ left: 156px; top: 18px; background: rgba(79,70,229,.12); animation-delay: .7s; }
@keyframes hexPulse{
  0%{ transform: rotate(15deg) scale(.98); box-shadow: 0 0 0 0 rgba(120,90,255,.0); }
  55%{ transform: rotate(15deg) scale(1.04); box-shadow: 0 0 0 18px rgba(120,90,255,.0), 0 0 22px rgba(120,90,255,.35); }
  100%{ transform: rotate(15deg) scale(.98); box-shadow: 0 0 0 0 rgba(120,90,255,.0); }
}

.meter{
  position:absolute;
  left: 16px; right: 16px;
  top: 30px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  overflow:hidden;
}
.glow{
   font-family: Orbitron, Inter, system-ui;
      background: linear-gradient(90deg, rgba(255,255,255,1), rgba(50,255,210,.95), rgba(124,58,237,.95), rgba(255,79,216,.95));
      -webkit-background-clip: text;
      background-clip:text;
      color: transparent;
      filter: drop-shadow(0 14px 42px rgba(0,184,169,.12));
    }
.meter__bar{
  height: 100%;
  width: 55%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(120,90,255,.95), rgba(0,255,163,.85));
  box-shadow: 0 0 18px rgba(0,255,163,.25);
  animation: meterMove 3s ease-in-out infinite;
}
@keyframes meterMove{
  0%{ width: 55%; }
  50%{width: 65%;}
  100%{ width: 55%; }
}
.meterTicks{
  position:absolute;
  left: 16px; right: 16px;
  top: 56px;
  display:flex;
  justify-content:space-between;
  opacity:.55;
}
.meterTicks span{
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.22);
}

.stack{
  position:absolute;
  bottom: 14px;
  width: 70px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 18px rgba(120,90,255,.18);
}
.stack--a{ left: 18px; height: 22px; }
.stack--b{ left: 96px; height: 40px; background: rgba(120,90,255,.12); }
.stack--c{ left: 174px; height: 30px; background: rgba(0,255,163,.10); }

.duel{
  position:absolute;
  inset: 14px 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.duel__side{
  position:absolute;
  top:0; bottom:0;
  width: 50%;
  opacity: .75;
}
.duel__side--l{
  left:0;
  background: radial-gradient(400px 120px at 70% 50%, rgba(120,90,255,.55), transparent 65%),
              linear-gradient(90deg, rgba(120,90,255,.25), rgba(0,0,0,.0));
}
.duel__side--r{
  right:0;
  background: radial-gradient(400px 120px at 30% 50%, rgba(0,255,163,.45), transparent 65%),
              linear-gradient(90deg, rgba(0,0,0,.0), rgba(0,255,163,.18));
}
.duel__beam{
  position:absolute;
  top:0; bottom:0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,.22);
}
.duel__beam::after{
  content:"";
  position:absolute;
  left: 50%;
  top: -30%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%) rotate(25deg);
  background: radial-gradient(closest-side, rgba(255,255,255,.22), transparent 70%);
  filter: blur(1px);
  animation: beamSweep 2.6s ease-in-out infinite;
}
@keyframes beamSweep{
  0%{ top: -40%; opacity: .0; }
  40%{ opacity: .9; }
  100%{ top: 120%; opacity: .0; }
}

/* Modal hint */
.terminal__hint{
  font-size: 12px;
  opacity: .75;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}



.countbox{
      border-radius: 20px;
      border:1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.06);
      box-shadow: 0 28px 80px rgba(0,0,0,.35);
      padding: 18px;
      position:relative;
      overflow:hidden;
    }
    .countbox::before{
      content:"";
      position:absolute; inset:-2px;
      background:
        radial-gradient(400px 140px at 20% 0%, rgba(50,255,210,.18), transparent 60%),
        radial-gradient(420px 160px at 90% 10%, rgba(124,58,237,.22), transparent 60%);
      opacity:.95;
      pointer-events:none;
    }
    .countTitle{
      margin:0 0 12px;
      font-family: Orbitron, Inter, system-ui;
      letter-spacing:.05em;
      font-size: 14px;
      opacity:.9;
      position:relative; z-index:1;
    }
    .count{
      display:grid;
      grid-template-columns: repeat(4, 1fr);
      gap:10px;
      position:relative; z-index:1;
    }

    .unit{
      border-radius: 16px;
      background: rgba(0,0,0,.22);
      border:1px solid rgba(255,255,255,.10);
      padding: 12px 10px;
      text-align:center;
    }
    .num{
      font-family: Orbitron, Inter, system-ui;
      font-size: 26px;
      letter-spacing:.06em;
      text-shadow: 0 12px 40px rgba(0,0,0,.55);
    }
    .lbl{
      font-size: 11px;
      color: rgba(234,241,255,.72);
      margin-top: 4px;
      letter-spacing:.06em;
      text-transform: uppercase;
    }
    .mini{
      margin-top: 10px;
      font-size: 12px;
      color: rgba(234,241,255,.72);
      position:relative; z-index:1;
    }
