/* Sus or Safe.
 *
 * The URL is the hero and is set huge in mono - the whole game is about
 * actually looking at it, so it gets the space. Everything else stays quiet.
 */

body { overflow: hidden; }

.screen {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 20px max(20px, env(safe-area-inset-bottom));
}

.screen[hidden] { display: none; }

/* ---------- intro ---------- */

#intro { justify-content: center; text-align: left; max-width: 520px; margin: 0 auto; }

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--dim);
}

.title {
  margin: 0;
  font-size: clamp(54px, 17vw, 92px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.title .or {
  display: block;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hot);
  margin: 0.18em 0;
}

.pitch {
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--dim);
  max-width: 34ch;
}

.rules {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 15px;
  color: var(--paper);
}

.rules b { font-weight: 700; }
.hot { color: var(--hot); }
.volt { color: var(--volt); }

.big-btn {
  margin-top: 34px;
  padding: 18px 26px;
  border-radius: 16px;
  background: var(--paper);
  color: var(--void);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.14s var(--ease-snap);
}

.big-btn:active { transform: scale(0.97); }

.best { margin: 18px 0 0; font-size: 14px; color: var(--dim); }

/* ---------- hud ---------- */

.hud {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.hud-score { display: flex; align-items: baseline; gap: 8px; }

#score {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hud-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
}

/* The clock, as a bar that drains. Reads faster than a number at a glance. */
.fuse {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--panel-lift);
  overflow: hidden;
}

.fuse i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 99px;
  background: var(--volt);
  transform-origin: left;
}

.fuse i.warn { background: var(--gold); }
.fuse i.panic { background: var(--hot); }

/* ---------- the card ---------- */

#card-slot {
  flex: 1;
  display: grid;
  place-items: center;
  perspective: 900px;
}

#card {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 30px 24px 34px;
  border-radius: 22px;
  background: linear-gradient(165deg, var(--panel-lift), var(--panel));
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, 0.9);
  touch-action: pan-y;
  will-change: transform;
}

#chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  font-size: 12px;
  color: var(--dim);
}

#lock { font-size: 13px; filter: grayscale(0.2); }

.url {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(19px, 5.4vw, 27px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -0.015em;
  word-break: break-all;
  hyphens: none;
}

.url .dim { color: var(--dim); font-weight: 400; }
.url mark {
  background: rgba(255, 45, 120, 0.22);
  color: var(--hot);
  border-radius: 3px;
  padding: 0 2px;
  box-shadow: inset 0 -2px 0 var(--hot);
}

/* Stamped across the card the instant a verdict lands. */
#verdict-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(40px, 13vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0;
  pointer-events: none;
}

#verdict-stamp.show { animation: stamp 0.5s var(--ease-snap) forwards; }
#verdict-stamp.right { color: var(--volt); }
#verdict-stamp.wrong { color: var(--hot); }

@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.7) rotate(-13deg); }
  55%  { opacity: 1; transform: scale(0.94) rotate(-7deg); }
  100% { opacity: 1; transform: scale(1) rotate(-7deg); }
}

/* ---------- choose ---------- */

.choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 520px;
  width: 100%;
  margin: 18px auto 0;
}

.choice {
  height: var(--thumb);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  border: 1.5px solid;
  transition: transform 0.12s var(--ease-snap), background 0.15s;
}

.choice:active { transform: scale(0.96); }

/* After a few seconds of nothing, breathe once so the buttons read as the
   thing to press. Quiet on purpose - a hint, not a tutorial. */
.choice.nudge { animation: ss-breathe 1.5s ease-in-out infinite; }

@keyframes ss-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .choice.nudge { animation: none; opacity: 0.86; }
}

.choice.sus  { color: var(--hot);  border-color: rgba(255, 45, 120, 0.45); background: rgba(255, 45, 120, 0.1); }
.choice.safe { color: var(--volt); border-color: rgba(0, 229, 192, 0.4);  background: rgba(0, 229, 192, 0.09); }

.hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--dim);
}

kbd {
  font: inherit;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--panel-lift);
}

/* ---------- game over ---------- */

#over { justify-content: center; max-width: 520px; margin: 0 auto; }

.over-title {
  margin: 0 0 22px;
  font-size: clamp(32px, 9vw, 46px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.reveal-card {
  padding: 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.url.small { font-size: clamp(15px, 4vw, 19px); }

/* The answer, stated plainly. She should never have to infer whether the card
   was sus or safe from the prose underneath it. */
.answer {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.answer.was-sus  { color: var(--hot); }
.answer.was-safe { color: var(--volt); }

.trick {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.why {
  margin: 9px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--paper);
}

.run { margin: 22px 0 0; font-size: 15px; color: var(--dim); }
.run b { color: var(--paper); font-size: 19px; }

.record {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}

.text-link {
  margin-top: 8px;
  padding: 14px;          /* thumb-sized, not a 14px-tall line of text */
  text-align: center;
  font-size: 15px;
  color: var(--dim);
  text-decoration: none;
}

.text-link:hover { color: var(--paper); }

@keyframes ss-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}
