/* ============ JEV CAN'T REFUSE — airy edition ============ */
:root {
  --bg: #0a0b0f;
  --bg-2: #0e1016;
  --panel: #12141c;
  --panel-2: #161923;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --ink: #f1efe8;
  --dim: #9298a8;
  --acid: #b6ff2e;
  --acid-ink: #0c1300;
  --red: #ff5c6c;
  --amber: #ffb020;
  --noul: #b6ff2e;
  --choice: #5ee3ff;
  --score: #ff6ad5;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--acid); color: var(--acid-ink); }

.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }

h2 { letter-spacing: -0.025em; line-height: 1.12; }

/* ambient grid — barely there */
.bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 85% 55% at 50% 0%, #000 30%, transparent 90%);
}

/* ============ TOPBAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand-tram { font-size: 22px; }
.brand-name b { color: var(--acid); }
.brand-dot { color: var(--dim); font-weight: 400; }
.topbar-right { display: flex; gap: 8px; font-size: 11.5px; }
.stat-pill {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; color: var(--dim); background: color-mix(in srgb, var(--panel) 70%, transparent);
  white-space: nowrap;
}
.stat-pill b { color: var(--acid); }
.live-flag { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 45%, transparent); }
@media (max-width: 720px) { .topbar-right .stat-pill:nth-child(2) { display: none; } }

/* ============ HERO ============ */
.hero { padding: 130px 32px 90px; text-align: center; }
.hero-kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.22em; color: var(--acid);
  border: 1px solid color-mix(in srgb, var(--acid) 35%, transparent);
  border-radius: 999px; padding: 8px 18px; margin-bottom: 36px;
  background: color-mix(in srgb, var(--acid) 6%, transparent);
}
.hero-title {
  font-size: clamp(64px, 12vw, 172px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-title .stroke { color: transparent; -webkit-text-stroke: 2.5px var(--acid); }
.hero-period { color: var(--red); -webkit-text-stroke: 0; }
.hero-sub {
  max-width: 660px; margin: 40px auto 0;
  color: var(--dim); font-size: 19px; line-height: 1.65;
}
.hero-sub em { color: var(--ink); font-style: italic; }
.hero-sub-strong { color: var(--ink); margin-top: 18px !important; font-size: 18px; }
.hero-sub b { color: var(--acid); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  padding: 15px 26px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-acid { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.btn-acid:hover { box-shadow: 0 8px 36px rgba(182, 255, 46, 0.30); }
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }

.founder-quote {
  max-width: 700px; margin: 64px auto 0;
  text-align: left;
  border: 1px solid var(--line);
  border-left: 3px solid var(--acid);
  border-radius: 16px;
  background: var(--panel);
  padding: 26px 30px;
}
.founder-quote p { font-size: 15px; color: var(--ink); line-height: 1.7; }
.founder-quote footer { margin-top: 12px; font-size: 12px; color: var(--dim); }
.quote-flag {
  float: right; font-size: 10px; letter-spacing: 0.18em;
  color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 50%, transparent);
  border-radius: 5px; padding: 3px 9px;
}

/* ============ TICKER ============ */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden; white-space: nowrap; padding: 13px 0;
}
.ticker-track {
  display: inline-block; font-size: 12.5px; color: var(--dim);
  animation: tick 40s linear infinite;
}
.ticker-track b { color: var(--acid); font-weight: 600; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ============ ARENA ============ */
.arena { padding: 120px 32px 60px; text-align: center; }
.arena-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 22px; }
.arena-lead { max-width: 620px; margin: 18px auto 0; font-size: 16px; }
.arena-lead b { color: var(--acid); }
.arena-meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; font-size: 12px; }

.arena-card {
  max-width: 780px; margin: 44px auto 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px 48px 40px;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.arena-card .card-top { justify-content: center; padding: 0; }
.arena-q {
  font-size: clamp(24px, 3.6vw, 34px);
  font-weight: 500; line-height: 1.32; letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.arena-card .card-state { text-align: left; margin: 18px auto 0; max-width: 560px; }
.arena-card .result-head { margin-top: 26px; }
.arena-card .bars { text-align: left; }
.arena-card .noul-big { justify-content: center; }
.a-prompt { margin-top: 30px; font-size: 12px; letter-spacing: 0.18em; color: var(--dim); }
.a-guess-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-top: 16px;
}
.a-btn {
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--panel-2); color: var(--ink);
  transition: all 0.13s ease;
}
.a-btn:hover { border-color: var(--acid); color: var(--acid); transform: translateY(-2px); }
.a-foot { margin-top: 22px; }
.a-banner {
  display: inline-block; margin: 26px auto 4px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  padding: 10px 20px; border-radius: 999px;
  animation: pop 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.a-banner.hit { color: var(--acid-ink); background: var(--acid); box-shadow: 0 6px 30px rgba(182,255,46,0.35); }
.a-banner.miss { color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 55%, transparent); }
.a-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

.arena-idle { max-width: 560px; margin: 0 auto; }
.arena-sub { margin-top: 16px; font-size: 16px; }
.arena-idle .btn { margin-top: 32px; }

.arena-results { max-width: 560px; margin: 0 auto; }
.arena-results-label { font-size: 11px; letter-spacing: 0.24em; }
.a-pct {
  font-family: var(--mono); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(72px, 12vw, 120px); line-height: 1;
  color: var(--acid); margin-top: 10px;
}
.a-rank { font-size: 19px; margin-top: 12px; }
.a-stats { margin-top: 16px; font-size: 12.5px; color: var(--dim); display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ============ HOW ============ */
.how { padding: 130px 32px 30px; }
.how-head { margin-bottom: 40px; }
.how-head h2 { font-size: clamp(28px, 4vw, 42px); }
.how-head p { font-size: 13px; margin-top: 10px; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.how-card {
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--panel); padding: 30px 28px;
}
.how-num { color: var(--acid); font-size: 12px; margin-bottom: 14px; }
.how-card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.01em; }
.how-card p { color: var(--dim); font-size: 15px; line-height: 1.65; }
.how-card code { color: var(--acid); font-size: 13px; }
.t-noul { color: var(--noul); } .t-choice { color: var(--choice); } .t-score { color: var(--score); }

.code-sample {
  margin-top: 20px;
  border: 1px solid var(--line); border-radius: 22px;
  background: #0c0e13; color: #c9cede;
  padding: 30px 32px; font-size: 13px; line-height: 1.75;
  overflow-x: auto; white-space: pre;
}
.code-sample .c-key { color: var(--choice); }
.code-sample .c-str { color: var(--amber); }
.code-sample .c-com { color: var(--dim); }
.code-sample .c-acid { color: var(--acid); }

/* ============ DECK ============ */
.deck { padding: 120px 32px 40px; }
.deck-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.deck-head h2 { font-size: clamp(28px, 4vw, 42px); }
.deck-count { font-size: 14px; }
.search {
  width: 320px; max-width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-size: 13px; padding: 13px 16px; outline: none;
}
.search:focus { border-color: var(--acid); }
.search::placeholder { color: var(--dim); }

.filters { display: flex; gap: 9px; flex-wrap: wrap; margin: 0 0 38px; }
.chip {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--dim);
  padding: 10px 17px; cursor: pointer;
  transition: all 0.13s ease;
}
.chip:hover { color: var(--ink); border-color: var(--line-strong); }
.chip.on { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}
.empty { padding: 48px 0; text-align: center; color: var(--dim); font-size: 14px; }

/* ============ CARD — soft, borderless-feel ============ */
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--acid) 30%, var(--line));
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}
.card-top { display: flex; align-items: center; gap: 9px; padding: 22px 24px 0; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 6px;
}
.badge-noul { color: var(--noul); background: color-mix(in srgb, var(--noul) 10%, transparent); }
.badge-choice { color: var(--choice); background: color-mix(in srgb, var(--choice) 10%, transparent); }
.badge-score { color: var(--score); background: color-mix(in srgb, var(--score) 10%, transparent); }
.cat-tag { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.spice { margin-left: auto; font-size: 11px; letter-spacing: 2px; filter: saturate(1.3); }

.card-q { padding: 16px 24px 4px; font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }
.card-state {
  margin: 14px 24px 0; padding: 11px 14px;
  border-left: 2px solid var(--amber);
  background: color-mix(in srgb, var(--amber) 5%, transparent);
  font-family: var(--mono); font-size: 11.5px; color: var(--amber); line-height: 1.6;
  border-radius: 0 10px 10px 0;
}
.card-state b { font-weight: 600; opacity: 0.7; letter-spacing: 0.1em; }

.card-actions { display: flex; gap: 9px; padding: 20px 24px 24px; margin-top: auto; flex-wrap: wrap; }
.mini {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  transition: all 0.13s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.mini:hover { text-decoration: none; }
.mini-ask { background: var(--acid); border-color: var(--acid); color: var(--acid-ink); flex: 1; justify-content: center; min-width: 120px; }
.mini-ask:hover { box-shadow: 0 6px 26px rgba(182, 255, 46, 0.28); }
.mini-copy:hover, .mini-share:hover { border-color: var(--acid); color: var(--acid); }

/* result */
.card-result { border-top: 1px dashed var(--line); background: #0c0e13; padding: 20px 24px 22px; display: none; }
.card-result.show { display: block; }
.result-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 0.14em; color: var(--dim); margin-bottom: 14px;
}
.sim-flag { color: var(--amber); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 1fr 52px; gap: 10px; align-items: center; font-size: 12px; }
.bar-label { color: var(--dim); font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row.top .bar-label { color: var(--ink); font-weight: 600; }
.bar-track { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 4px; width: 0; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar-row.top .bar-fill { background: var(--acid); }
.bar-row:not(.top) .bar-fill { background: color-mix(in srgb, var(--acid) 32%, rgba(255,255,255,0.08)); }
.bar-pct { font-family: var(--mono); font-size: 11px; color: var(--dim); text-align: right; }
.bar-row.top .bar-pct { color: var(--acid); }

.noul-big { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.noul-num { font-family: var(--mono); font-size: 48px; font-weight: 800; letter-spacing: -0.04em; color: var(--acid); }
.noul-word { font-family: var(--mono); font-size: 13px; font-weight: 800; letter-spacing: 0.2em; }
.noul-word.yes { color: var(--acid); } .noul-word.no { color: var(--red); }
.verdict { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--ink); font-style: italic; }
.verdict::before { content: "↳ "; color: var(--acid); font-style: normal; }

/* YES vs NO duel bar */
.duel-bar {
  display: flex; height: 32px; border-radius: 9px; overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.duel-seg {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 800;
  transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.duel-seg.yes { background: var(--acid); color: var(--acid-ink); }
.duel-seg.no  { background: color-mix(in srgb, var(--red) 82%, #000); color: #ffd9dd; }
.duel-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 700; }
.dl-yes { color: var(--acid); }
.dl-no { color: var(--red); }

/* ============ SUBMIT ============ */
.submit { padding: 120px 32px 50px; text-align: center; }
.submit h2 { font-size: clamp(28px, 4vw, 42px); }
.submit p { max-width: 540px; margin: 14px auto 30px; font-size: 15.5px; }
.submit-row { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; flex-wrap: wrap; }
.submit-input {
  flex: 1; min-width: 240px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-size: 14px; padding: 15px 18px; outline: none;
}
.submit-input:focus { border-color: var(--acid); }
.submit-input::placeholder { color: var(--dim); }

/* ============ ABOUT / PROPAGANDA ============ */
.about { padding: 120px 32px 40px; text-align: center; }
.about-card {
  max-width: 660px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 30px;
  background:
    radial-gradient(ellipse 60% 80% at 50% -20%, color-mix(in srgb, var(--acid) 8%, transparent), transparent),
    var(--panel);
  padding: 56px 48px 48px;
}
.about-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; margin: 0 auto 24px;
  background: var(--acid); box-shadow: 0 10px 44px rgba(182, 255, 46, 0.30);
}
.about-card h2 { font-size: clamp(26px, 3.6vw, 36px); }
.about-copy { margin: 20px auto 0; max-width: 520px; color: var(--dim); font-size: 16px; line-height: 1.7; }
.about-copy b a { color: var(--ink); border-bottom: 2px solid var(--acid); }
.about-copy em { color: var(--ink); }
.about-motto { margin-top: 22px; font-size: 13px; color: var(--acid); letter-spacing: 0.02em; }
.about-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.about-note { margin-top: 22px; font-size: 11px; letter-spacing: 0.06em; }

/* ============ FOOTER ============ */
.footer { padding: 48px 32px 64px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--dim); margin-top: 60px; }
.footer p + p { margin-top: 10px; }

/* ============ SPOTLIGHT ============ */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 6, 9, 0.82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.spotlight {
  width: min(740px, 100%);
  border: 1px solid color-mix(in srgb, var(--acid) 60%, transparent); border-radius: 24px;
  background: var(--bg-2);
  padding: 26px 30px 30px;
  box-shadow: 0 0 100px rgba(182, 255, 46, 0.13);
  animation: pop 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.spotlight-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: 0.18em; margin-bottom: 18px; }
.spotlight-close {
  background: none; border: 1px solid var(--line); color: var(--dim);
  border-radius: 10px; width: 34px; height: 34px; cursor: pointer; font-size: 14px;
}
.spotlight-close:hover { color: var(--ink); border-color: var(--line-strong); }
.spotlight .card { border: none; background: transparent; }
.spotlight .card-q { font-size: clamp(22px, 3.4vw, 32px); padding: 10px 0 4px; }
.spotlight .card-actions { padding: 22px 0 0; }

/* ============ KEY PANEL ============ */
.key-btn { cursor: pointer; transition: border-color 0.13s ease, color 0.13s ease; font-family: var(--mono); font-size: 11.5px; }
.key-btn:hover { border-color: var(--acid); color: var(--ink); }
.key-btn.live-flag { color: var(--acid); border-color: color-mix(in srgb, var(--acid) 55%, transparent); }

.key-panel {
  width: min(470px, 100%);
  border: 1px solid var(--line-strong); border-radius: 24px;
  background: var(--bg-2);
  padding: 26px 30px 28px;
  box-shadow: 0 0 100px rgba(182, 255, 46, 0.10);
  animation: pop 0.25s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.key-panel h3 { font-size: 20px; letter-spacing: -0.01em; }
.key-panel > .dim { font-size: 14px; margin-top: 8px; line-height: 1.65; }
.key-field { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.key-field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--dim); }
.key-field input {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-family: var(--mono); font-size: 13px;
  padding: 13px 15px; outline: none; width: 100%;
}
.key-field input:focus { border-color: var(--acid); }
.key-field input::placeholder { color: var(--dim); opacity: 0.6; }
.key-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.key-note { margin-top: 16px; font-size: 11px; color: var(--dim); line-height: 1.75; }

.res-live { color: var(--acid); }

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  z-index: 200;
  background: var(--acid); color: var(--acid-ink);
  font-size: 13px; font-weight: 600;
  padding: 13px 22px; border-radius: 12px;
  box-shadow: 0 10px 44px rgba(182, 255, 46, 0.35);
  animation: pop 0.2s ease;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 90px 20px 60px; }
  .arena-card { padding: 32px 24px; }
  .about-card { padding: 40px 26px; }
  .code-sample { padding: 20px; font-size: 11.5px; }
  .quote-flag { float: none; display: inline-block; margin-top: 8px; }
}
