/* Pontozó – mobil első; pontozás közben az egész egy képernyőre fér (nincs görgetés) */
body.scorer { min-height: 100vh; min-height: 100dvh; background: radial-gradient(circle at 50% 120%, #4a1060 0, var(--bg) 60%); }
.s-top {
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 8px 0 4px;
  border-bottom: 2px solid var(--pink); background: linear-gradient(180deg, #1a0838, #3a0f55);
  position: sticky; top: 0; z-index: 5;
}
.s-back { color: #fff; text-decoration: none; font-size: 22px; min-width: 44px; min-height: 44px; display: grid; place-items: center; flex: none; }
.s-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.s-title #sTitle { font-family: var(--display); font-size: 19px; letter-spacing: .4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-game { color: var(--gold); font-weight: 700; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-undo { flex: none; background: transparent; color: var(--lilac); border: 1px solid var(--lilac); border-radius: 8px; min-height: 40px; padding: 0 12px; font-weight: 700; cursor: pointer; }
.s-undo:active { transform: scale(.97); }

.s-main { max-width: 560px; margin: 0 auto; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); }
.s-h { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 6px 0 14px; }
.s-hint { color: var(--muted); font-size: 13px; }
.s-card { background: var(--bg2); border-radius: 12px; padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.s-card label { color: var(--lilac); font-weight: 600; }
.code-input { font-size: 32px; letter-spacing: 12px; text-align: center; font-weight: 800; min-height: 60px; }
.btn.big { min-height: 56px; font-size: 17px; border-radius: 10px; }
.first-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; background: var(--bg2); border: 1px solid transparent; border-radius: 10px; padding: 12px; color: var(--text); text-align: left; cursor: pointer; min-height: 60px; }
.pick:hover, .pick:focus-visible { border-color: var(--pink); outline: none; }
.pick .k { color: var(--gold); font-weight: 800; }
.pick .st { font-size: 11px; font-weight: 800; }
.pick .st.live { color: var(--ok); }
.pick .st.ready { color: var(--warn); }

/* ---------- pontozás nézet: képernyőre igazítva ---------- */
body.playing .s-main {
  height: calc(100vh - 52px); height: calc(100dvh - 52px);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
}
body.playing #playView { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }

.board { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl { background: var(--bg2); border-radius: 12px; padding: 8px 10px; border: 2px solid transparent; position: relative; min-width: 0; }
.pl.turn { border-color: var(--pink); box-shadow: 0 0 16px rgba(255, 45, 138, .35); }
.pl.turn::before { content: "DOB"; position: absolute; top: 6px; right: 8px; font-size: 10px; font-weight: 800; color: var(--pink); letter-spacing: 1px; }
.pl .nm { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 30px; }
.pl .nm.is-woman { color: var(--woman); }
.pl .row2 { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.pl .rem { font-family: var(--display); font-size: clamp(34px, 8vh, 64px); line-height: 1; margin-top: 2px; color: #fff; }
.pl.turn .rem { color: var(--gold); text-shadow: 0 0 14px rgba(255, 210, 122, .4); }
.pl .legs { display: flex; gap: 4px; padding-bottom: 6px; }
.pl .legs i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--gold); }
.pl .legs i.on { background: var(--gold); }
.pl .meta { color: var(--lilac); font-size: 11px; display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.pl .co { color: var(--ok); font-size: 12px; font-weight: 800; min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.s-msg { flex: none; height: 20px; line-height: 20px; text-align: center; font-weight: 700; font-size: 13px; color: var(--lilac); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-msg.bad { color: var(--danger); }
.s-msg.good { color: var(--ok); }
body.finished .s-msg { height: auto; white-space: normal; }

.entry { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.entry-display { flex: none; display: flex; justify-content: space-between; align-items: center; background: #0d041c; border: 1px solid #4b3570; border-radius: 10px; padding: 0 14px; height: clamp(40px, 6.5vh, 58px); }
.entry-display span { color: var(--lilac); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-display output { font-family: var(--display); font-size: clamp(26px, 4.6vh, 40px); color: #fff; }
.quick { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.quick button { background: var(--card2); color: var(--gold); border: 0; border-radius: 8px; height: clamp(34px, 5.2vh, 48px); font-weight: 800; font-size: 15px; cursor: pointer; }
.keypad { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, minmax(40px, 1fr)); gap: 6px; }
.keypad button { background: var(--card); color: #fff; border: 0; border-radius: 10px; font-size: clamp(20px, 3.6vh, 28px); font-weight: 800; cursor: pointer; min-height: 0; }
.keypad button.ok { background: var(--pink); }
.keypad button.del { color: var(--lilac); }
.keypad button:active, .quick button:active { transform: scale(.97); }

.s-dialog { background: var(--bg2); color: var(--text); border: 2px solid var(--pink); border-radius: 14px; padding: 18px; max-width: 420px; width: calc(100% - 28px); }
.s-dialog::backdrop { background: rgba(10, 2, 24, .75); }
.s-dialog p { font-size: 17px; font-weight: 700; margin-top: 0; }
.done { text-align: center; padding: 20px 10px; font-size: 15px; }
.done b { display: block; font-family: var(--display); font-size: 36px; color: var(--gold); font-weight: 400; }
/* nagyobb kijelzőn (tablet) maradhat a levegősebb méret */
@media (min-height: 900px) and (min-width: 600px) { .pl { padding: 12px 14px; } .pl .nm { font-size: 16px; } }
