:root {
  color-scheme: dark;
  --bg: #030303;
  --surface: rgba(10, 10, 11, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f0;
  --muted: #a6a6a0;
  --signal: #e9ff70;
  --good: #67ff93;
  --bad: #ff5c7a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(233, 255, 112, 0.08), transparent 28rem),
    linear-gradient(245deg, rgba(255, 255, 255, 0.06), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

button { font: inherit; }

.app {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 72px;
}

.hero {
  display: grid;
  justify-items: center;
  padding: 28px 0 clamp(34px, 6vw, 58px);
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
}

.brand-mark {
  width: 17px;
  height: 17px;
  border: 2px solid var(--text);
  border-radius: 50%;
  box-shadow: inset 6px 0 0 var(--signal);
}

.kicker {
  margin: 0;
  color: var(--signal);
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 860;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  margin-top: 14px;
  font-size: clamp(58px, 11vw, 132px);
  line-height: 0.86;
}

h2 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.9;
}

.lede {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.22;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--surface);
  padding: clamp(18px, 4vw, 28px);
}

.setup {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: end;
}

.file-picker {
  display: inline-flex;
  min-height: 52px;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 255, 112, 0.55);
  border-radius: 999px;
  background: rgba(233, 255, 112, 0.08);
  color: var(--text);
  cursor: pointer;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 820;
  overflow: hidden;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-picker span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(560px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.score-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.score {
  margin: 6px 0 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 0.9;
}

.mini-stat {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 780;
}

.play-panel {
  display: grid;
  gap: 22px;
  min-height: 540px;
}

.play-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(233, 255, 112, 0.45);
  border-radius: 999px;
  background: rgba(233, 255, 112, 0.09);
  color: var(--signal);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

blockquote {
  display: grid;
  align-content: center;
  min-height: 250px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: clamp(22px, 5vw, 42px);
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

blockquote::before,
blockquote::after {
  color: var(--signal);
}

blockquote::before { content: "“"; }
blockquote::after { content: "”"; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  cursor: pointer;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
}

.choice.real:hover {
  border-color: rgba(103, 255, 147, 0.75);
  box-shadow: 0 0 28px rgba(103, 255, 147, 0.14);
}

.choice.fake:hover {
  border-color: rgba(255, 92, 122, 0.75);
  box-shadow: 0 0 28px rgba(255, 92, 122, 0.14);
}

.reveal {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.reveal.correct .reveal-label { color: var(--good); }
.reveal.wrong .reveal-label { color: var(--bad); }

.reveal-label {
  margin: 0;
  font-size: clamp(36px, 6vw, 78px);
  font-weight: 950;
  line-height: 0.88;
}

.reveal-detail {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 760;
  line-height: 1.35;
}

.button {
  display: inline-flex;
  min-height: 46px;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  white-space: nowrap;
}

.button-light {
  border: 1px solid #eff2d6;
  background: #f5f7e9;
  color: #11120e;
}

.button-dark {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

@media (max-width: 820px) {
  .setup,
  .game-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  blockquote {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .app {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(48px, 17vw, 82px);
  }
}
