/* Seatcall demo. One dark theme: poker rooms are dim and the board runs on a TV. */
:root {
  --bg: #0d1117;
  --panel: #151b23;
  --panel-2: #1c2430;
  --line: #2b3542;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --faint: #6f7c8a;
  --blue: #6cb0ff;
  --amber: #f2b84b;
  --red: #ff8479;
  --green: #56d39b;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding: 10px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand b { font-size: 17px; letter-spacing: .01em; }
.brand .home { color: var(--text); text-decoration: none; }
.brand .home:hover b { color: var(--blue); }
.brand span { color: var(--muted); }
.demo-tag {
  font-size: 12px; padding: 1px 8px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--muted);
}
.top nav { display: flex; gap: 4px; }
.top nav a {
  padding: 6px 12px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-weight: 600;
}
.top nav a:hover { color: var(--text); background: var(--panel-2); }
.top nav a[aria-current] { color: var(--bg); background: var(--blue); }
.controls { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.clock { color: var(--muted); margin-right: 4px; }
.clock b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- buttons and fields ---------- */
.btn, .toggle {
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel-2); padding: 8px 14px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover, .toggle:hover { border-color: var(--faint); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #08111d; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.wide { width: 100%; padding: 12px; }
.toggle { padding: 4px 10px; font-size: 13px; color: var(--muted); }
.toggle[aria-pressed="true"] { color: var(--text); border-color: var(--green); }
.toggle::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px;
  border-radius: 50%; background: var(--faint);
}
.toggle[aria-pressed="true"]::before { background: var(--green); }
input, select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0;
}
.x {
  width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent;
  color: var(--faint); font-size: 18px; line-height: 1; cursor: pointer;
}
.x:hover { color: var(--text); background: var(--panel-2); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- floor ---------- */
main { padding: 16px 18px 40px; }
.floor { display: grid; grid-template-columns: minmax(300px, 360px) 1fr; gap: 16px; align-items: start; }
.col-lists { display: grid; gap: 12px; }
#lists { display: grid; gap: 12px; }
.add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.add input { grid-column: 1 / -1; }
.add .btn { grid-column: 1 / -1; }

.list { padding: 12px; }
.list header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.list h3 { font-size: 15px; }
.list header p { color: var(--muted); font-size: 13px; }
.count { font-size: 20px; font-weight: 700; white-space: nowrap; }
.count small { font-size: 12px; font-weight: 400; color: var(--muted); }
.callgame { margin-top: 8px; }
.none { color: var(--faint); margin-top: 8px; }
.rows { margin-top: 8px; display: grid; gap: 2px; }
.row {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center;
  padding: 5px 6px; border-radius: 8px; min-height: 44px;
}
.row .pos { color: var(--faint); font-variant-numeric: tabular-nums; text-align: center; font-weight: 700; }
.row .who { display: grid; min-width: 0; }
.row .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who small { color: var(--muted); font-size: 12px; }
.row .acts { display: flex; gap: 4px; align-items: center; }
.row.is-remote .who b { color: var(--muted); }
.row.is-called { background: rgba(242, 184, 75, .1); box-shadow: inset 3px 0 0 var(--amber); }
.row.is-called .pos { color: var(--amber); }
.row.is-late { background: rgba(255, 132, 121, .1); box-shadow: inset 3px 0 0 var(--red); }
.row.is-late .pos, .row.is-late .who small { color: var(--red); }

#suggest { display: grid; gap: 8px; }
#suggest:not(:empty) { margin-bottom: 12px; }
.advice {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 10px 14px; border-radius: var(--radius);
  background: rgba(108, 176, 255, .1); border: 1px solid rgba(108, 176, 255, .45);
}

.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.table { padding: 10px 12px 8px; }
.table header { display: flex; align-items: center; gap: 8px; }
.table h3 { font-size: 15px; }
.tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0 8px; }
.fill { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.table.closed { background: transparent; border-style: dashed; }
.table.closed h3 { color: var(--muted); }
.open-as { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 6px; color: var(--muted); }
.open-as span { width: 100%; font-size: 12px; }

.felt { position: relative; height: 158px; margin: 6px 0 2px; }
.felt::before {
  content: ""; position: absolute; inset: 21% 15%;
  border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
}
.dealer {
  position: absolute; left: 50%; top: 89%; transform: translate(-50%, -50%);
  font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint);
}
.seat {
  position: absolute; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; padding: 0;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.seat.taken { background: #2a3646; border: 1px solid #3b4b5f; }
.seat.empty { background: transparent; border: 1.5px dashed #4b596a; color: var(--faint); font-weight: 400; }
.seat.p8-0 { left: 35.0%; top: 86.6%; }
.seat.p8-1 { left: 9.9%; top: 66.0%; }
.seat.p8-2 { left: 9.0%; top: 35.8%; }
.seat.p8-3 { left: 32.9%; top: 14.1%; }
.seat.p8-4 { left: 67.1%; top: 14.1%; }
.seat.p8-5 { left: 91.0%; top: 35.8%; }
.seat.p8-6 { left: 90.1%; top: 66.0%; }
.seat.p8-7 { left: 65.0%; top: 86.6%; }
.seat.p9-0 { left: 35.0%; top: 86.6%; }
.seat.p9-1 { left: 11.9%; top: 69.5%; }
.seat.p9-2 { left: 6.7%; top: 43.2%; }
.seat.p9-3 { left: 21.7%; top: 20.1%; }
.seat.p9-4 { left: 50.0%; top: 11.0%; }
.seat.p9-5 { left: 78.3%; top: 20.1%; }
.seat.p9-6 { left: 93.3%; top: 43.2%; }
.seat.p9-7 { left: 88.1%; top: 69.5%; }
.seat.p9-8 { left: 65.0%; top: 86.6%; }
.seat.held { background: rgba(242, 184, 75, .14); border: 2px solid var(--amber); color: var(--amber); animation: pulse 1.6s ease-in-out infinite; }
.seat.held.late { background: rgba(255, 132, 121, .14); border-color: var(--red); color: var(--red); }
.seat.sel { outline: 2px solid var(--blue); outline-offset: 2px; }
.seat:hover { filter: brightness(1.25); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(242, 184, 75, .18); } }
.table footer {
  min-height: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
}
.table footer span { flex: 1 1 100%; }
.table footer b { color: var(--text); }

/* ---------- board ---------- */
body[data-view="board"] main { padding: 0; }
.board { min-height: calc(100vh - 54px); display: flex; flex-direction: column; padding: 2.2vw 3vw; }
.bhead { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 1.2vw; }
.bhead h1 { font-size: clamp(22px, 2.6vw, 44px); }
.bhead p { color: var(--muted); font-size: clamp(14px, 1.3vw, 22px); }
.bhead b { font-size: clamp(22px, 2.6vw, 44px); font-variant-numeric: tabular-nums; }
.bgrid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.4vw; padding: 1.6vw 0; align-content: start; }
.bcol h2 { font-size: clamp(22px, 2.4vw, 40px); }
.bsub { color: var(--muted); font-size: clamp(13px, 1.1vw, 19px); }
.bcol h3 { margin-top: 1.1vw; font-size: clamp(11px, .85vw, 15px); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.bcalls li {
  display: flex; flex-direction: column; margin-top: 6px; padding: 8px 12px; border-radius: 8px;
  background: rgba(242, 184, 75, .14); border-left: 4px solid var(--amber);
  font-size: clamp(16px, 1.5vw, 26px); font-weight: 700;
}
.bcalls b { color: var(--amber); font-size: .8em; }
.bnames li { display: flex; align-items: baseline; gap: 10px; padding: 4px 0; font-size: clamp(16px, 1.5vw, 26px); border-bottom: 1px solid #1a222c; }
.bnames .n { width: 1.6em; color: var(--faint); font-variant-numeric: tabular-nums; text-align: right; }
.bnames small { margin-left: auto; color: var(--faint); font-size: .6em; white-space: nowrap; }
.bmore, .bnone { color: var(--muted); margin-top: 8px; font-size: clamp(13px, 1.1vw, 19px); }
.bfoot { border-top: 1px solid var(--line); padding-top: 1vw; color: var(--muted); font-size: clamp(13px, 1.2vw, 20px); }

/* ---------- player page ---------- */
.player { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: flex-start; padding-top: 8px; }
.phone {
  width: 360px; max-width: 100%; min-height: 640px; padding: 22px 18px;
  background: var(--panel); border: 10px solid #05080c; border-radius: 38px;
  display: flex; flex-direction: column; gap: 14px;
}
.p-top { display: grid; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.p-top b { font-size: 18px; }
.p-top span { color: var(--muted); font-size: 13px; }
#pStatus { display: grid; gap: 10px; }
#pStatus:empty { display: none; }
.p-join { display: grid; gap: 10px; }
.p-h { font-weight: 700; }
.p-games { display: grid; gap: 8px; }
.p-game {
  display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); cursor: pointer;
}
.p-game b, .p-game small { display: block; }
.p-game small { color: var(--muted); font-size: 12px; }
.p-game .tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--faint); display: grid; place-items: center; font-weight: 700; }
.p-game.on { border-color: var(--blue); }
.p-game.on .tick { background: var(--blue); border-color: var(--blue); color: #08111d; }
.p-join label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.p-join input { padding: 12px; }
.p-msg { color: var(--muted); font-size: 13px; min-height: 1em; }
.p-fine { color: var(--faint); font-size: 12px; text-align: center; }
.p-card { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.p-k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.p-big { font-size: 24px; font-weight: 700; margin: 2px 0; }
.p-card.ready { background: rgba(242, 184, 75, .14); border: 2px solid var(--amber); }
.p-card.ready .p-k { color: var(--amber); }
.p-card.ready.late { background: rgba(255, 132, 121, .12); border-color: var(--red); }
.p-card.ready.late .p-k { color: var(--red); }
.p-timer { margin-top: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-card.playing { border-color: var(--green); }
.p-card.next { border: 2px solid var(--blue); }
.p-card.next .p-k { color: var(--blue); }
.p-card.gone { border-color: var(--line); background: var(--panel-2); }
.p-note { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.p-beat { margin-top: 8px; color: var(--green); font-weight: 600; font-size: 14px; }
.p-fine.left { text-align: left; }
.note { max-width: 340px; display: grid; gap: 10px; color: var(--muted); padding-top: 20px; }
.note h2 { color: var(--text); font-size: 17px; }

/* ---------- numbers ---------- */
.numbers { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
.n-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.n-head h1 { font-size: 22px; }
.n-head label { color: var(--muted); font-size: 13px; }
.n-head input { width: 84px; margin-left: 6px; }
.numbers h2 { font-size: 16px; margin-top: 8px; }
.hero { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.h-value { font-size: 52px; font-weight: 600; line-height: 1.15; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.t-label { color: var(--muted); font-size: 13px; }
.t-value { font-size: 28px; font-weight: 600; line-height: 1.25; }
.t-sub { color: var(--faint); font-size: 12px; }
.meter {
  display: block; width: 100%; height: 8px; margin: 6px 0;
  border: 0; border-radius: 99px; overflow: hidden;
  background: #23364d; color: var(--blue);
  -webkit-appearance: none; appearance: none;
}
.meter::-webkit-progress-bar { background: #23364d; border-radius: 99px; }
.meter::-webkit-progress-value { background: var(--blue); border-radius: 99px; }
.meter::-moz-progress-bar { background: var(--blue); border-radius: 99px; }
.n-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 9px 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); }
tbody tr + tr td { border-top: 1px solid #1d2631; }
.n-note { color: var(--faint); font-size: 12px; max-width: 760px; }

/* ---------- rules on the floor ---------- */
.tag.mm { color: var(--amber); border-color: rgba(242, 184, 75, .55); }
.seat.req::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--blue); border: 2px solid var(--panel);
}
.advice-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.urgent { border-color: var(--red); color: var(--red); background: transparent; }
.hint { color: var(--faint); }
.activity { padding: 12px 14px; margin-top: 12px; }
.activity h3 { font-size: 15px; }
.act-note { color: var(--faint); font-size: 12px; margin: 2px 0 8px; }
.activity ol { display: grid; gap: 4px; }
.activity li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; font-size: 13px; color: var(--muted); }
.activity li time { color: var(--faint); font-variant-numeric: tabular-nums; }
.activity li.none { display: block; color: var(--faint); }

/* ---------- house rules ---------- */
.rules-page { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.r-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.r-head h1 { font-size: 22px; }
.r-head p { color: var(--muted); max-width: 40em; margin-top: 4px; }
.r-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.r-card h2 { font-size: 16px; margin-bottom: 10px; }
.r-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 22px; }
.r-field { display: grid; gap: 6px; align-content: start; }
.r-field label { font-weight: 600; }
.r-field input { width: 110px; }
.r-field select { max-width: 100%; }
.r-field input:disabled { opacity: .45; }
.r-help { color: var(--faint); font-size: 12.5px; }
.r-card > .r-help { margin-top: 10px; }
.r-order { display: grid; gap: 6px; padding-left: 22px; list-style: decimal; color: var(--muted); }
.r-order b { color: var(--text); }

/* ---------- added after the user simulation of 24.11.2026 ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.staff { color: var(--muted); font-size: 13px; }
.staff select { padding: 4px 8px; font-size: 13px; margin-left: 4px; }
.room-sel { padding: 4px 8px; font-size: 13px; }
.add input[name=mobile] { grid-column: auto; }
.add-games { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.add-lbl { flex: 1 1 100%; color: var(--muted); font-size: 12px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); cursor: pointer; font-weight: 600; font-size: 13px; }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #08111d; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.add-msg { grid-column: 1 / -1; color: var(--amber); font-size: 13px; }
.add-msg:empty { display: none; }
.tk { font-style: normal; font-weight: 400; color: var(--faint); font-size: 12px; }
.by { font-style: normal; color: var(--faint); }
.by::before { content: "· "; }
.seat.away { opacity: .5; border-style: dashed; }
.seat.away.long { opacity: 1; border: 2px dashed var(--red); color: var(--red); }
.undo { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 6; max-width: calc(100vw - 24px); }
.undo:empty { display: none; }
.undo-in { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 12px; background: #243245; border: 1px solid var(--blue); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.undo-in span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.p-top > div:first-child { display: grid; }
.p-lang { display: flex; gap: 4px; }
.p-lang button { padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.p-lang button[aria-pressed="true"] { color: #08111d; background: var(--blue); border-color: var(--blue); }
.p-check { display: flex; align-items: center; gap: 8px; color: var(--text) !important; font-size: 14px !important; cursor: pointer; }
.p-check input { width: 18px; height: 18px; padding: 0; }
.p-sms { display: grid; gap: 6px; }
.p-since { margin-top: 6px; color: var(--faint); font-size: 12px; }
.n-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.n-ctl input { width: 84px; margin-left: 0; }
.r-lock { padding: 10px 14px; border-radius: var(--radius); border: 1px solid rgba(242, 184, 75, .55); background: rgba(242, 184, 75, .1); color: var(--amber); }
.r-field select:disabled { opacity: .45; }
.r-grid .r-order { align-self: center; }

/* The board fills the screen below the header, however many rows the header takes. */
body[data-view="board"] { min-height: 100vh; display: flex; flex-direction: column; }
body[data-view="board"] main { flex: 1; display: flex; }
body[data-view="board"] .board { flex: 1; min-height: 0; }

/* ---------- tournament ---------- */
.t-head .t-clock { margin-top: 8px; font-size: 15px; font-variant-numeric: tabular-nums; }
.t-head .t-meta { color: var(--muted); font-size: 13px; }
.t-acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.warn { color: var(--amber); }
.t-pay { margin-top: 10px; color: var(--faint); font-size: 12px; }
.advice.urgent { background: rgba(255, 132, 121, .1); border-color: rgba(255, 132, 121, .55); }
.add .add-lbl { grid-column: 1 / -1; }
.tclock .tc-main { flex: 1; display: grid; place-content: center; text-align: center; gap: .5vw; padding: 2vw 0; }
.tc-sub { font-size: clamp(22px, 3.4vw, 60px); font-weight: 700; }
.tc-big { font-size: clamp(72px, 15vw, 280px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-big.paused { color: var(--amber); }
.tc-next { color: var(--muted); font-size: clamp(16px, 2vw, 34px); min-height: 1.3em; }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2vw; padding: 1.4vw 0; border-top: 1px solid var(--line); text-align: center; }
.tc-stats p { color: var(--faint); font-size: clamp(11px, .9vw, 16px); text-transform: uppercase; letter-spacing: .08em; }
.tc-stats b { font-size: clamp(22px, 2.8vw, 48px); font-variant-numeric: tabular-nums; }
.p-tour { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.p-tour:empty { display: none; }
body[data-view="clock"] { min-height: 100vh; display: flex; flex-direction: column; }
body[data-view="clock"] main { flex: 1; display: flex; padding: 0; }
body[data-view="clock"] .board { flex: 1; min-height: 0; }

@media print {
  html { color-scheme: light; }
  body { background: #fff; color: #000; }
  .top { display: none; }
  main { padding: 0; }
  .r-card { background: #fff; border-color: #999; break-inside: avoid; }
  .r-head p, .r-help, .r-order { color: #333; }
  .r-order b, .r-field label { color: #000; }
  .r-head .btn, .r-lock, .undo { display: none; }
  input, select { background: #fff; color: #000; border-color: #999; }
}

@media (max-width: 860px) {
  .floor { grid-template-columns: 1fr; }
  .controls { margin-left: 0; }
}
/* Phones: the header shrinks to two rows and scrolls away, and the player page fills the screen. */
@media (max-width: 700px) {
  .top { position: static; padding: 8px 12px; gap: 6px 12px; }
  .demo-tag { display: none; }
  .top nav { width: 100%; overflow-x: auto; }
  .top nav a { white-space: nowrap; padding: 6px 10px; }
  .controls { width: 100%; gap: 6px; }
  .controls .clock { margin-right: auto; }
  main { padding: 12px 10px 32px; }
  .phone { width: 100%; min-height: 0; border: 0; border-radius: 0; padding: 4px 2px 12px; background: transparent; }
  .note { max-width: none; padding-top: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .seat.held { animation: none; }
}
