/* Telefono del giocatore: una colonna, pulsanti grandi, niente da leggere oltre al necessario. */
:root { --seat: #1f6fe0; --seat-ink: #fff; --gold: #ffd54f; --ink: #0b1a5e; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body { background: #0b1a5e; background-image: radial-gradient(ellipse at 50% 0%, #1b3fa0, #0b1a5e 60%, #050b2e);
  color: #fff; font: 16px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; min-height: 100vh;
  padding: env(safe-area-inset-top) 16px calc(16px + env(safe-area-inset-bottom)); }
.hidden { display: none !important; }
.screen { max-width: 480px; margin: 0 auto; padding-top: 12px; }
.logo { font: 900 30px/1.05 "Arial Black", Arial, sans-serif; text-transform: uppercase; color: var(--gold); text-align: center;
  text-shadow: 0 3px 0 #b8860b; margin: 24px 0; }
.logo span { font-size: .55em; color: #fff; text-shadow: 0 2px 0 #0d47a1; }
.card { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 16px; padding: 16px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input { width: 100%; font: inherit; font-size: 20px; padding: 12px 14px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, .3);
  background: #fff; color: var(--ink); }
.btn { display: block; width: 100%; font: 800 18px/1.1 system-ui, Arial, sans-serif; padding: 16px; border-radius: 14px; border: 0; margin-top: 12px;
  background: #fff; color: var(--ink); cursor: pointer; text-transform: uppercase; letter-spacing: .02em; }
.btn:active { transform: scale(.98); }
.btn.gold { background: var(--gold); }
.btn.red { background: #e53935; color: #fff; }
.btn.green { background: #2e7d32; color: #fff; }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .5); }
.btn[disabled] { opacity: .4; }
.row2 { display: flex; gap: 10px; }
.row2 .btn { flex: 1; }
.err { color: #ff8a80; margin-top: 10px; min-height: 1.3em; }

.me { display: flex; align-items: center; justify-content: space-between; background: var(--seat); color: var(--seat-ink);
  border-radius: 14px; padding: 10px 14px; font-weight: 900; text-transform: uppercase; }
.me-name { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 10px; background: #fff; color: #6a1b9a; margin-left: 6px; }
.badge.car { color: #00695c; }
.badge.turn { background: var(--gold); color: var(--ink); }
.bank { text-align: center; margin: 14px 0; }
.bank small { opacity: .8; }
.bank-total { font: 900 44px/1.1 "Arial Black", Arial, sans-serif; color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.bank-round { opacity: .85; font-size: 14px; min-height: 1.3em; }
.def-card small { opacity: .75; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.def { font-size: 22px; font-weight: 800; margin-top: 2px; }
.status { text-align: center; margin: 14px 0 6px; min-height: 2.6em; font-weight: 600; }

.actions { margin-top: 6px; }
.keys { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 8px; }
.key { width: calc((100% - 6 * 7px) / 7); aspect-ratio: 1 / 1.1; min-height: 44px; font: 900 22px/1 "Arial Black", Arial, sans-serif; border-radius: 10px; border: 0;
  background: #fff; color: var(--ink); cursor: pointer; }
.key.v { background: #ffe082; }
.key.sel { background: var(--gold); outline: 3px solid #fff; }
.key[disabled] { opacity: .22; }
.hint { font-size: 13px; opacity: .8; text-align: center; margin-top: 8px; }

.spinpad { margin-top: 6px; height: 230px; border-radius: 20px; border: 3px dashed rgba(255, 213, 79, .8); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle, rgba(255, 213, 79, .18), transparent 70%); }
.spinpad b { font: 900 26px/1.1 "Arial Black", Arial, sans-serif; color: var(--gold); text-transform: uppercase; }
.spinpad .arrow { font-size: 54px; line-height: 1; margin-bottom: 18px; animation: nudge 1.2s infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(10px); } }
.meter { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .15); margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd54f, #ff7043); }

.buzzer { display: block; width: 78vw; max-width: 300px; aspect-ratio: 1; margin: 10px auto; border-radius: 50%; border: 10px solid #fff;
  background: radial-gradient(circle at 40% 35%, #ff6f60, #c62828 60%, #8e0000); color: #fff; font: 900 34px/1 "Arial Black", Arial, sans-serif;
  text-transform: uppercase; box-shadow: 0 10px 0 #5d0000, 0 0 40px rgba(255, 82, 82, .5); cursor: pointer; }
.buzzer:active { transform: translateY(6px); box-shadow: 0 4px 0 #5d0000; }

.envs { display: flex; gap: 10px; }
.envs .btn { flex: 1; padding: 22px 6px; font-size: 15px; }
.used { margin-top: 18px; text-align: center; font-size: 13px; opacity: .8; }
.used b { letter-spacing: .15em; }
.foot { text-align: center; font-size: 12px; opacity: .55; margin-top: 18px; }
.big-msg { text-align: center; font-size: 20px; font-weight: 700; }
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); background: #fff; color: var(--ink); border-radius: 12px;
  padding: 12px 14px; font-weight: 700; text-align: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); }
.toast.bad { background: #ff8a80; }
.pulse { animation: pulse 1s infinite alternate; }
@keyframes pulse { from { box-shadow: 0 0 0 rgba(255, 213, 79, .0); } to { box-shadow: 0 0 24px rgba(255, 213, 79, .9); } }
