:root {
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #e9e6df;
  font-family: 'Golos Text', system-ui, sans-serif;
  min-height: 100vh;
}

a { color: #c8102e; text-decoration: none; }
a:hover { opacity: .72; }

.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 880px;
  background: #f3efe4;
  border: 1px solid #d8d1bf;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

/* ---------- header ---------- */

.hdr {
  padding: 22px 30px 0;
}

.hdr-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid #17140f;
  padding-bottom: 12px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.hdr-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.hdr-title {
  font: 400 30px/1 'Prata', serif;
  color: #17140f;
  letter-spacing: -.01em;
}

.hdr-tag {
  font: 600 9px/1 'Golos Text', sans-serif;
  letter-spacing: .22em;
  color: #c8102e;
  text-transform: uppercase;
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hdr-topic {
  font: 500 10px/1 'Golos Text', sans-serif;
  letter-spacing: .16em;
  color: #7a7268;
  text-transform: uppercase;
}

.hdr-round {
  font: 600 10px/1 'Golos Text', sans-serif;
  letter-spacing: .14em;
  color: #17140f;
  white-space: nowrap;
}

.sound-btn {
  border: 1px solid #cfc7b4;
  background: transparent;
  color: #7a7268;
  font: 500 9px/1 'Golos Text', sans-serif;
  letter-spacing: .12em;
  padding: 6px 9px;
  cursor: pointer;
  border-radius: 2px;
}
.sound-btn:hover { background: rgba(0, 0, 0, .04); }

/* ---------- progress + timer ---------- */

.progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #ddd6c5;
}

.dots { display: flex; gap: 5px; }

.dot {
  width: 11px;
  height: 11px;
  border: 1px solid #b7ae9b;
  position: relative;
  flex: none;
}
.dot::after {
  content: '';
  position: absolute;
  inset: 1px;
}
.dot.ok::after { background: #17140f; }
.dot.bad::after { background: #c8102e; }
.dot.cur {
  border: 1px solid #c8102e;
}

.timer-bar {
  flex: 1;
  height: 3px;
  background: #e3dccb;
}
.timer-bar-fill {
  height: 100%;
  background: #c8102e;
  transition: width .12s linear;
}

.timer-sec {
  font: 400 15px/1 'Prata', serif;
  color: #17140f;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: right;
  white-space: nowrap;
}
.timer-sec.low { color: #c8102e; }

/* ---------- play body ---------- */

.body-play { padding: 22px 30px 28px; }

.taunt {
  margin: 0 0 22px;
  font: italic 400 17px/1.5 'Lora', serif;
  color: #57503f;
  text-wrap: pretty;
  max-width: 640px;
}
.taunt .who {
  font-style: normal;
  font-family: 'Golos Text', sans-serif;
  font-size: 9.5px;
  letter-spacing: .16em;
  color: #a29883;
  margin-left: 10px;
}

.statements {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 26px;
}

.divider { background: #ddd6c5; }

.statement {
  position: relative;
  cursor: pointer;
  padding: 4px 4px 8px;
  transition: background .18s;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  display: block;
  width: 100%;
}
.statement:hover:not(:disabled) { background: rgba(200, 16, 46, .05); }
.statement:disabled { cursor: default; }

.stmt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.stmt-badge {
  width: 26px;
  height: 26px;
  border: 1.5px solid #17140f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 14px/1 'Prata', serif;
  color: #17140f;
  flex: none;
}

.stmt-label {
  font: 600 9px/1 'Golos Text', sans-serif;
  letter-spacing: .2em;
  color: #a29883;
}

.stmt-text-wrap { position: relative; }

.stmt-text {
  margin: 0;
  font: 400 17.5px/1.62 'Lora', serif;
  color: #17140f;
  text-wrap: pretty;
}

.strike {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #c8102e;
  transform-origin: left;
  animation: redact .38s .1s both;
}

.stamp-busted {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 3px double #c8102e;
  color: #c8102e;
  padding: 7px 15px;
  font: 600 15px/1 'Golos Text', sans-serif;
  letter-spacing: .16em;
  white-space: nowrap;
  background: rgba(243, 239, 228, .86);
  animation: inkIn .4s .42s both;
}

.verified-tag {
  margin-top: 12px;
  font: 600 9.5px/1 'Golos Text', sans-serif;
  letter-spacing: .18em;
  color: #17140f;
  animation: riseIn .3s .3s both;
}

/* ---------- reveal ---------- */

.reveal {
  margin-top: 26px;
  border-top: 2px solid #17140f;
  padding-top: 16px;
  animation: riseIn .34s both;
}

.reveal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.reveal-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.verdict-word {
  font: 400 26px/1 'Prata', serif;
}

.lie-label {
  font: 600 9.5px/1 'Golos Text', sans-serif;
  letter-spacing: .18em;
  color: #7a7268;
}

.reveal-score {
  font: 600 9.5px/1 'Golos Text', sans-serif;
  letter-spacing: .16em;
  color: #7a7268;
  white-space: nowrap;
}

.reveal-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 620px) {
  .reveal-grid { grid-template-columns: 1fr; }
  .statements { grid-template-columns: 1fr; }
  .divider { display: none; }
}

.tell-label {
  font: 600 9px/1 'Golos Text', sans-serif;
  letter-spacing: .2em;
  color: #c8102e;
  margin-bottom: 8px;
}

.tell-text {
  font: italic 400 14px/1.45 'Lora', serif;
  color: #17140f;
  text-wrap: pretty;
}

.explain {
  margin: 0 0 14px;
  font: 400 15.5px/1.65 'Lora', serif;
  color: #3a3428;
  text-wrap: pretty;
}

.reveal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ddd6c5;
  padding-top: 13px;
  flex-wrap: wrap;
  row-gap: 12px;
}

.source-line {
  font: 500 10px/1.4 'Golos Text', sans-serif;
  letter-spacing: .1em;
  color: #8b8272;
}
.source-line a {
  border-bottom: 1px solid rgba(200, 16, 46, .4);
}

.next-btn, .again-btn {
  flex: none;
  border: none;
  background: #17140f;
  color: #f3efe4;
  font: 600 11px/1 'Golos Text', sans-serif;
  letter-spacing: .16em;
  padding: 13px 22px;
  cursor: pointer;
}
.next-btn:hover, .again-btn:hover { background: #c8102e; }

.retry-note {
  margin-top: 18px;
  padding: 10px 14px;
  border-left: 3px solid #c8102e;
  background: rgba(200, 16, 46, .06);
  font: 500 13px/1.5 'Golos Text', sans-serif;
  color: #8a2233;
}

.idle-hint {
  margin-top: 18px;
  font: 500 10px/1 'Golos Text', sans-serif;
  letter-spacing: .14em;
  color: #b0a693;
}

/* ---------- start screen ---------- */

.start-screen {
  padding: 56px 30px 60px;
  text-align: center;
}

.start-kicker {
  font: 600 9.5px/1 'Golos Text', sans-serif;
  letter-spacing: .24em;
  color: #c8102e;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.start-title {
  font: 400 56px/1 'Prata', serif;
  color: #17140f;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}

.start-lede {
  max-width: 480px;
  margin: 0 auto 30px;
  font: 400 16px/1.65 'Lora', serif;
  color: #3a3428;
  text-wrap: pretty;
}

.start-btn {
  border: none;
  background: #17140f;
  color: #f3efe4;
  font: 600 12px/1 'Golos Text', sans-serif;
  letter-spacing: .18em;
  padding: 16px 30px;
  cursor: pointer;
  margin-bottom: 16px;
}
.start-btn:hover { background: #c8102e; }

.start-sound {
  display: block;
  margin: 0 auto;
}

/* ---------- end screen ---------- */

.end-screen {
  padding: 46px 30px 52px;
  text-align: center;
  animation: riseIn .4s both;
}

.end-label {
  font: 600 9.5px/1 'Golos Text', sans-serif;
  letter-spacing: .24em;
  color: #a29883;
}

.end-score {
  font: 400 96px/1 'Prata', serif;
  color: #17140f;
  margin: 14px 0 2px;
}
.end-score .of {
  color: #c0b7a3;
  font-size: 42px;
}

.end-rank {
  font: 400 27px/1.2 'Prata', serif;
  color: #c8102e;
  margin-bottom: 12px;
}

.end-note {
  max-width: 470px;
  margin: 0 auto 10px;
  font: italic 400 16px/1.6 'Lora', serif;
  color: #57503f;
  text-wrap: pretty;
}

.end-best {
  font: 600 9.5px/1 'Golos Text', sans-serif;
  letter-spacing: .18em;
  color: #a29883;
  margin-bottom: 28px;
}

.again-btn { padding: 15px 28px; letter-spacing: .18em; }

.load-error {
  padding: 40px 30px;
  text-align: center;
  font: 400 15px/1.6 'Lora', serif;
  color: #3a3428;
}
.load-error button {
  margin-top: 16px;
  border: 1px solid #17140f;
  background: transparent;
  color: #17140f;
  font: 600 11px/1 'Golos Text', sans-serif;
  letter-spacing: .14em;
  padding: 10px 18px;
  cursor: pointer;
}

@keyframes redact { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes inkIn {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(1.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) rotate(-4deg) scale(1); }
}
