:root { --strike: #d6453d; --gold: #d9a63a; }

.sv { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }

.sv-q { text-align: center; padding: 6px 4px 2px; }
.sv-q .kicker { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.sv-q h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 7vw, 34px); line-height: 1.12; letter-spacing: -.01em; }

.sv-form { display: flex; gap: 8px; }
.sv-form input {
  flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--bg-elev); color: var(--ink);
  font: inherit; font-size: 17px;
}
.sv-form input:focus { outline: none; border-color: var(--ink-2); }
.sv-form .btn { min-height: 50px; }
.sv-form.off { opacity: .4; pointer-events: none; }

.sv-status { display: flex; align-items: center; justify-content: space-between; }
.strikes { display: flex; gap: 6px; }
.strikes i {
  width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center;
  border: 1.5px solid var(--border-strong); color: transparent; font-style: normal; font-weight: 700; font-size: 16px;
  transition: background .2s, border-color .2s, color .2s;
}
.strikes i.on { background: var(--strike); border-color: var(--strike); color: #fff; animation: pop .3s var(--ease); }
@keyframes pop { 50% { transform: scale(1.2); } }
.sv-score { text-align: right; }
.sv-score small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.sv-score b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

.sv-board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; perspective: 800px; }
.sv-board li {
  position: relative; height: 50px; border-radius: 10px;
  display: grid; grid-template-columns: 38px 1fr auto; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  transform-style: preserve-3d;
}
.sv-board .n { justify-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--bg-elev); color: var(--ink-2); }
.sv-board .t { font-weight: 600; font-size: 16px; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-board .p { font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 14px; height: 100%; display: grid; place-items: center; border-left: 1px solid var(--border); }
.sv-board li:not(.shown) .t, .sv-board li:not(.shown) .p { visibility: hidden; }
.sv-board li.shown { background: var(--bg-elev); border-color: var(--border-strong); }
.sv-board li.shown.got { background: var(--correct); border-color: transparent; color: #fff; }
.sv-board li.shown.got .n { background: rgba(255, 255, 255, .22); color: #fff; }
.sv-board li.shown.got .p { border-left-color: rgba(255, 255, 255, .3); }
.sv-board li.shown.missed { color: var(--ink-2); }
.sv-board li.flip { animation: flipRow .5s ease-in-out; }
@keyframes flipRow { 50% { transform: rotateX(-90deg); } }

.sv-giveup { align-self: center; color: var(--ink-3); font-size: 13px; }
.sv-giveup[hidden] { display: none; }

.big-x {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none;
  font-size: 160px; font-weight: 800; color: var(--strike); opacity: 0;
}
.big-x.show { animation: bigX .7s var(--ease); }
@keyframes bigX { 0% { opacity: 0; transform: scale(1.6); } 25% { opacity: .95; transform: scale(1); } 75% { opacity: .9; } 100% { opacity: 0; } }

/* Results + leaderboard */
.sv-result-rows { display: flex; gap: 4px; justify-content: center; margin: 14px 0 4px; }
.sv-result-rows i { width: 22px; height: 22px; border-radius: 4px; background: var(--absent); }
.sv-result-rows i.y { background: var(--correct); }
.grid-mini { display: flex; gap: 2px; align-items: center; }
.grid-mini i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--absent); }
.grid-mini i.y { background: var(--correct); }
.grid-mini em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--strike); margin-left: 3px; }
