:root {
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --paper: #0b0b0d;
  --panel: #161618;
  --hair: #2c2c2e;
  --blue: #0a84ff;
  --green: #30d158;
  --red: #ff453a;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100dvh; }
button {
  font-family: inherit;
  border: 0;
  cursor: pointer;
}
img { max-width: 100%; display: block; }

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 28px;
}
.hidden { display: none !important; }

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
body .help-open {
  background: var(--panel);
  color: var(--ink);
  margin: 0;
}
h1 {
  margin: 12px 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.rules, .status, .hint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}
.attestation {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  font-size: 15px;
}
.attestation input { margin-top: 3px; }

#startBtn, .choice {
  width: 100%;
  border-radius: 980px;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
#startBtn {
  background: var(--blue);
  color: #fff;
  margin-top: auto;
}
#startBtn:disabled {
  background: #2c2c2e;
  color: #6e6e73;
  cursor: not-allowed;
}

#overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
#overlay.hidden { display: none !important; }
#countNum {
  font-size: min(48vw, 220px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.photo-wrap {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.meta-row {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.choices {
  display: grid;
  gap: 10px;
  margin-top: auto;
}
.choice {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 16px;
}
.choice:active { transform: scale(0.99); }

.result-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  margin-top: 16px;
}
.result-card strong { font-size: 32px; letter-spacing: -0.04em; }
a { color: var(--blue); }

.saving { margin-top: auto; text-align: center; color: var(--muted); }
