/* Dark table and gold accent after the Earthborne Rangers practice table; cards keep their printed faces. */
:root {
  --bg: #15191d; --panel: #1f252b; --slot: #283038; --line: #39434d; --line-2: #4c5864;
  --text: #ece6d6; --muted: #a2abb3; --accent: #e8b64a; --accent-2: #f3c965; --danger: #d0604e; --ok: #7bb884;
  --rust: #b3502e; --rust-2: #d06a42; --sky: #6aa0d8;
  --paper: #fbf6ea; --paper-2: #f1e6cf; --paper-3: #dccaa6; --ink: #2f261d; --ink-muted: #75644f; --paper-line: #d3bf98;
  --green: #2f6b4a; --mint: #e3f0e5;
  --morning: #d38a2e; --afternoon: #b65a2a; --rush: #4a5d92;
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --card-w: 136px; --hand-w: 150px; --side-w: 420px;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); font: 14px/1.45 var(--sans); }
body { background: var(--bg) radial-gradient(1200px 700px at 70% -10%, #26303a 0%, transparent 70%) fixed; }
[hidden] { display: none !important; }
button { font: inherit; color: var(--text); background: var(--slot); border: 1px solid var(--line-2); border-radius: 6px; padding: 6px 12px; cursor: pointer; text-align: left; transition: border-color .12s, background .12s; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #1d1408; font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--accent-2); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover:not(:disabled) { color: var(--text); border-color: var(--line-2); }
input, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 8px; }
input:focus, select:focus { border-color: var(--accent); outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sp { flex: 1; }
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); background: var(--danger); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 70; max-width: 80vw; box-shadow: 0 6px 20px rgba(0,0,0,.5); white-space: pre-wrap; }
.toast.info { background: var(--slot); border: 1px solid var(--accent); }

/* ---- menu ---- */
.menu-page { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 520px) 1fr; }
.menu-side { padding: 48px 40px; display: flex; flex-direction: column; gap: 18px; background: linear-gradient(90deg, var(--bg) 70%, #15191dee); z-index: 1; }
.menu-art { background: center 40% / cover no-repeat; position: sticky; top: 0; height: 100vh; }
.menu-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 32%), linear-gradient(0deg, #15191daa, transparent 40%); }
.logo { font-weight: 800; letter-spacing: .03em; font-size: 40px; line-height: 1; color: var(--accent); }
.logo small { display: block; font-weight: 400; font-size: 13px; letter-spacing: .42em; margin-top: 8px; text-transform: uppercase; color: var(--muted); }
.menu { display: grid; gap: 8px; max-width: 360px; }
.menu button { padding: 11px 16px; font-size: 15px; }
.menu-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.menu-card .strip { height: 92px; background: center / cover no-repeat; }
.menu-card .body { padding: 12px 14px; display: grid; gap: 2px; }
.menu-card .title { font-family: var(--serif); font-size: 19px; }
@media (max-width: 860px) { .menu-page { grid-template-columns: 1fr; } .menu-art { min-height: 220px; height: 220px; position: relative; order: -1; } }

/* ---- table frame ---- */
.app { display: grid; grid-template-rows: auto 1fr; height: 100vh; }
header.bar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 46px; flex-wrap: wrap; }
header .title { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--accent); }
header .sub { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tierpip { width: 14px; height: 14px; border-radius: 3px; display: inline-block; opacity: .9; }
.tierpip.done { opacity: .3; }
.tierpip.now { box-shadow: 0 0 0 2px var(--text); }
.phases { display: flex; margin-left: 6px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.phase { padding: 4px 10px; background: var(--slot); color: var(--muted); font-size: 12.5px; border-right: 1px solid var(--line); }
.phase:last-child { border-right: 0; }
.phase.on { background: var(--accent); color: #1d1408; font-weight: 600; }
.toggle { display: inline-flex; gap: 5px; align-items: center; color: var(--muted); font-size: 13px; }
.badge { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.badge.warn { border-color: var(--accent); color: var(--accent); }
.badge.bus { background: var(--accent); border-color: var(--accent); color: #1d1408; }
.badge.on { border-color: var(--sky); color: var(--sky); }
main.table { display: grid; grid-template-columns: minmax(0, 1fr) var(--side-w); min-height: 0; }
.board { padding: 8px; display: grid; gap: 6px; align-content: start; min-width: 0; overflow: auto; }
.line { display: flex; gap: 6px; min-width: 0; }
.line > .grow { flex: 1; min-width: 0; }
.zone { background: #1d242bcc; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 8px 8px; min-width: 0; }
.zone > h3 { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 2px 2px 6px; }
.zone > h3 .n { letter-spacing: 0; text-transform: none; font-weight: 400; margin-left: 6px; }
.zone.town { background: linear-gradient(180deg, #232a22cc, #1d242bcc); }
.cards { display: flex; gap: 6px; align-items: flex-start; }
.scroll { overflow-x: auto; padding-bottom: 2px; }

/* ---- printed card faces ---- */
/* Card faces use em throughout, so one design scales to the board, hand and inspector sizes (--s).
   Job, Commotion, Family and Goldbug cards have fixed rows like the printed cards; app.js shrinks any
   text that would run past its box (fitCards). */
.card {
  --s: 1;
  position: relative; flex: none; width: var(--card-w); aspect-ratio: 57 / 87; padding: .55em .62em .62em; border-radius: 7px;
  background: linear-gradient(180deg, #fffdf6, var(--paper) 60%, var(--paper-2)); color: var(--ink);
  border: 1px solid #0009; box-shadow: 0 2px 6px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: .28em;
  font-size: calc(11px * var(--s)); line-height: 1.2; transition: transform .12s ease, box-shadow .12s ease; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 3px; border: 1px solid var(--paper-line); border-radius: 5px; pointer-events: none; }
.cf-head { display: flex; align-items: center; gap: .35em; min-width: 0; height: 1.9em; flex: none; }
.cf-cat { font: 700 .8em var(--sans); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--band, var(--green)); border-radius: 3px; padding: .1em .5em; white-space: nowrap; }
/* The Goodwill cost: a large number and the Goodwill icon. */
.cf-cost { margin-left: auto; height: 1.55em; border-radius: .8em; background: #fbefcf; border: 1px solid var(--paper-line); color: var(--band-ink, #a04435); font: 800 1.3em/1 var(--sans); display: inline-flex; align-items: center; gap: .1em; padding: 0 .22em 0 .36em; white-space: nowrap; }
.cf-cost .ic { width: 1.05em; height: 1.05em; margin: 0; vertical-align: 0; }
.cf-pool, .hotflag { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .78em var(--sans); padding: .15em .55em; border-radius: .8em; background: #f3e5c8; color: #6a4a2c; }
.hotflag { background: var(--accent); color: #2b1d05; text-transform: uppercase; letter-spacing: .05em; }
.cf-name { font: 600 1.29em/1.04 var(--serif); color: var(--ink); overflow: hidden; }
.cf-art { position: relative; min-height: 0; border-radius: 4px; background: #f3ead6 center / contain no-repeat; border: 1px solid #e6d7b8; }
.cf-tags { display: flex; gap: .3em; flex-wrap: wrap; align-items: center; min-width: 0; overflow: hidden; }
/* On Jobs the vehicle and tag badges sit on the art's top corner, which leaves the art its full height. */
.cf-art .cf-tags { position: absolute; left: .25em; top: .25em; right: .25em; }
.cf-art .cf-tags .vehicle-icon { box-shadow: 0 0 0 1.5px #fffdf6; border-radius: 3px; }
.cf-art .cf-tags span { box-shadow: 0 0 0 1px #fffdf6cc; }
.cf-tags .vehicle-icon { width: 1.5em; height: 1.5em; flex: 0 0 auto; }
.card.mini .vehicle-icon { width: 12px; height: 12px; }
.cf-tags span { font: 700 .8em var(--sans); padding: .05em .4em; border-radius: 3px; background: #e7edf2; color: #355a73; white-space: nowrap; }
.cf-tags .tag { background: #f3e5c8; color: #6a4a2c; }
.cf-tags .siren { background: #f6e1d8; color: #963a2e; }
/* A box's label sits along its top; the benefit is centred in the rest of the box. */
.cf-row { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border: 1px solid var(--paper-line); border-radius: 4px; padding: .2em .45em .25em; background: #fffaf0; }
.cf-row b { flex: none; font: 700 .62em/1.1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.cf-row.errand b { color: var(--band-ink, #a04435); }
.cf-val { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: safe center; line-height: 1.1; }
.ln { display: block; }
.rw { white-space: nowrap; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.22em; margin-right: .14em; }
.cf-row.reveal { background: var(--mint); border-color: #c4dcc8; }
.cf-row.first { background: #fbefcf; border-color: #e7d29b; }
.cf-row.hot { background: #f8e9c3; border-color: #e2c98a; color: #6a4416; font-weight: 600; }
.cf-row.hot b { color: #6a4416; }
/* Fixed rows: every Job has the same art box and an Errand box, even a reveal-only Job. */
.card.job .cf-head { height: 2.1em; }
.card.job { display: grid; grid-template-rows: 2.1em 2.65em minmax(0, 1fr) 3.4em 3.4em; }
.card.commotion-card { display: grid; grid-template-rows: 1.9em 2.65em minmax(0, 1fr) 4.3em; }
.card.commotion-card.has-special { grid-template-rows: 1.9em 2.65em minmax(0, 1fr) 4.3em 3.8em; }
.cf-row.special .vehicle-icon { width: 1.25em; height: 1.25em; vertical-align: -.3em; }
.tagchip { font: 700 .9em var(--sans); padding: 0 .3em; border-radius: 3px; background: #f3e5c8; color: #6a4a2c; white-space: nowrap; }
.cf-places { display: grid; grid-template-columns: 1fr 1fr; gap: .28em; min-height: 0; }
.cf-places .rw { white-space: normal; }
.cf-row.special .cf-val { font-size: .86em; }
.card.family-card { display: grid; grid-template-rows: 1.9em 2.65em minmax(0, 1fr) 6.4em; }
.cf-row.power b { color: #6c4c33; }
.card.bee-card { display: grid; grid-template-rows: 1.9em 1.5em minmax(0, 1fr) 3.3em 3.3em; }
.cf-help { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .25em; align-items: center; text-align: center; font: 600 1.25em/1 var(--serif); }
.cf-help small { display: block; font: 700 .48em/1.3 var(--sans); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-muted); }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.55); }
.card.selectable { cursor: pointer; }
.card.selected { outline: 3px solid var(--accent); outline-offset: 1px; }
.card.dim { filter: saturate(.4) brightness(.72); }
.card.choice { outline: 2px dashed var(--accent); outline-offset: 1px; cursor: pointer; }
.card.mini { display: flex; width: 88px; aspect-ratio: auto; height: 44px; padding: 4px 6px; gap: 1px; font-size: 10.5px; }
.card.mini .cf-name { font-size: 11px; }
.card.mini.shown { background: linear-gradient(180deg, #f6fbf6, var(--mint)); }
.card.back { background: linear-gradient(160deg, #3a5a47, #24392c); color: #f1e6c8; align-items: center; justify-content: center; font: 600 12px var(--serif); }
.card.back::before { border-color: #f1e6c855; }

/* hand: cards sit side by side so no text is hidden under the next card */
.hand { padding: 18px 6px 2px; min-height: calc(var(--hand-w) * 87 / 57 + 22px); gap: 8px; }
.hand .card { --s: calc(150 / 136); width: var(--hand-w); transform-origin: bottom center; }
.hand .card:hover { transform: translateY(-12px); z-index: 2; }
.hand .card.selected { transform: translateY(-16px); z-index: 3; }
.hand .card.family-card { margin-left: 24px; }
.hand .empty { color: var(--muted); font-size: 13px; align-self: center; padding: 12px 12px 12px 40px; max-width: 360px; }

/* places */
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 6px; }
@media (max-width: 1500px) { .places { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
.place { width: auto; aspect-ratio: auto; min-height: 232px; }
.place .cf-art { flex: 0 0 52px; }
.place .cf-effect { line-height: 1.18; }
.place.hot { box-shadow: 0 0 0 3px var(--accent), 0 2px 6px rgba(0,0,0,.45); }
.track { display: flex; gap: 2px; }
.track .step { flex: 1; border: 1px solid #c4dcc8; border-radius: 3px; background: var(--mint); min-height: 18px; display: flex; flex-wrap: wrap; gap: 1px; align-items: center; justify-content: center; font-size: 9px; color: var(--green); }
.disc { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 1px solid #0006; }
.seats { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: auto; }
.seats.single { grid-template-columns: 1fr; }
.seat { border: 1px solid var(--paper-line); border-radius: 5px; min-height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 700 9px var(--sans); color: var(--ink-muted); background: #fff; padding: 1px; text-align: center; }
.seat.main { background: var(--mint); color: var(--green); }
.seat.legal { cursor: pointer; background: #fff4d6; border: 2px solid var(--accent); color: #6a4416; box-shadow: 0 0 0 3px #e8b64a44; }
.seat.legal:hover { background: #ffe9ad; }
.seat .pay { font-weight: 500; font-size: 8.5px; }
.meeple { width: 20px; height: 20px; display: block; filter: drop-shadow(0 1px 1px #0006); }

/* bee */
.beebox { display: flex; gap: 8px; align-items: stretch; }
.beestat { display: grid; gap: 2px; align-content: start; min-width: 112px; }
.beestat .big { font: 600 28px/1 var(--serif); color: var(--text); }
.beestat .big.gold { color: var(--accent); }

/* players */
.playerlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.pl { background: var(--slot); border: 1px solid var(--line); border-left: 5px solid var(--c); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 5px; align-content: start; }
.pl.turn { border-color: var(--accent); border-left-color: var(--c); box-shadow: 0 0 0 1px var(--accent); }
.pl .head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pl .name { font: 600 16px var(--serif); }
.stats { display: flex; gap: 5px; flex-wrap: wrap; }
.stats span { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.stats b { font-size: 15px; }
.stats .ic { width: 14px; height: 14px; margin: 0; }
.inspect .txt .ic { width: 15px; height: 15px; }
.gallery { padding: 12px 16px; display: grid; gap: 8px; }
.gallery-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.stats .star b { color: var(--accent); }
.pl .zones { display: flex; gap: 4px; flex-wrap: wrap; }
.helpers { display: inline-flex; gap: 2px; align-items: center; }
.cube { width: 10px; height: 10px; border-radius: 2px; display: inline-block; border: 1px solid #0007; }
.cube.rest { opacity: .28; }
.folk { display: inline-flex; gap: 1px; }
.folk .meeple { width: 15px; height: 15px; }
.folk .out { opacity: .25; }

/* ---- side panel ---- */
aside.side { background: var(--panel); border-left: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.inspect { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
.inspect .card { --card-w: 150px; --s: calc(150 / 136); width: 150px; }
.inspect .card.place { --s: 1; }
.inspect .card.place { min-height: 236px; }
.inspect .card:hover { transform: none; }
.inspect .txt { font-size: 13px; display: grid; gap: 4px; }
.inspect .txt h2 { font: 600 18px var(--serif); }
.inspect .kv { color: var(--muted); font-size: 12px; }
.inspect .effect b { color: var(--accent); }
.inspect.empty { display: block; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 10px 12px; }
.commotion { background: var(--slot); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; display: grid; gap: 6px; }
.commotionbox { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.commotionbox .card { --card-w: 168px; --s: calc(168 / 136); }
.contest { display: grid; gap: 5px; font-size: 13px; }
.contest .who { display: flex; gap: 6px; align-items: center; }
.contest .str { margin-left: auto; font: 600 19px/1 var(--serif); font-variant-numeric: tabular-nums; }
.contest .sub { font-size: 11.5px; color: var(--muted); padding-left: 16px; }
.decision { background: var(--slot); border: 1px solid var(--sky); border-radius: var(--radius); padding: 8px 10px; }
.decision.idle { border-color: var(--line); }
.prompt { font-weight: 600; font-size: 15px; }
.decision p { margin: 2px 0 8px; }
.choices { display: grid; gap: 5px; max-height: 44vh; overflow: auto; }
.choices button { padding: 7px 10px 7px 34px; position: relative; border-left-width: 4px; }
.choices button .key { position: absolute; left: 8px; top: 7px; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 11px; display: grid; place-items: center; color: var(--muted); }
.choices button.primary .key { border-color: #0004; color: #1d1408; }
.choices .k-send { border-left-color: var(--ok); }
.choices .k-reveal { border-left-color: var(--accent); }
.choices .k-hire { border-left-color: var(--rust-2); }
.choices .k-help { border-left-color: var(--sky); }
.choices .k-other { border-left-color: #b98ad8; }
.choices button.hint { box-shadow: 0 0 0 2px var(--accent); padding-right: 74px; }
.choices .hint-tag { position: absolute; right: 8px; top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.choices .tip { font-size: 12.5px; color: var(--muted); margin: 0 0 2px; }
.ended { border: 1px solid var(--accent); border-radius: var(--radius); padding: 10px 12px; background: #e8b64a14; display: grid; gap: 4px; }
.ended h4 { font: 600 18px var(--serif); margin: 0; }
.log { display: grid; gap: 4px; min-height: 0; }
.log ul { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); max-height: 28vh; overflow: auto; display: grid; gap: 2px; }
.log li:first-child { color: var(--text); }
@media (max-width: 1100px) { main.table { grid-template-columns: 1fr; } .app { height: auto; } aside.side { border-left: 0; border-top: 1px solid var(--line); } .line { flex-wrap: wrap; } }

/* ---- dialogs ---- */
dialog.modal { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); border-radius: 10px; max-width: 640px; width: calc(100% - 32px); padding: 16px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(5, 8, 10, .7); }
.modal h3 { margin-bottom: 10px; font: 600 20px var(--serif); }
.modal p { margin: 0 0 10px; }
.modal .field { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.modal menu { display: flex; gap: 6px; padding: 0; margin: 14px 0 0; flex-wrap: wrap; align-items: center; }
.setpick { display: grid; gap: 4px; margin: 4px 0 8px; }
.seatrow { display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.seatrow input[type=text] { width: 160px; }
.path { font: 12px ui-monospace, Consolas, monospace; background: var(--bg); border: 1px solid var(--line); padding: 6px 8px; border-radius: 5px; word-break: break-all; }
.errors { color: #f0a090; white-space: pre-wrap; font-size: 12px; }
.ok { color: var(--ok); }

/* ---- tutorial coach ---- */
.coach { position: fixed; right: calc(var(--side-w) + 16px); bottom: 16px; z-index: 50; width: min(380px, calc(100vw - 32px)); background: var(--panel); border: 1px solid var(--line-2); border-top: 3px solid var(--accent); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.6); padding: 12px 14px; display: grid; gap: 8px; }
.coach-head { display: flex; justify-content: space-between; align-items: baseline; font: 600 17px var(--serif); }
.coach-head .small { font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; color: var(--accent); }
.coach-text { font-size: 13.5px; line-height: 1.5; }
.coach-text b { color: var(--accent-2); }
.coach-buttons { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.coach-buttons .primary { background: var(--accent); color: #1d1408; border-color: var(--accent); }
.coach-focus { outline: 3px solid var(--accent) !important; outline-offset: 2px; border-radius: 9px; box-shadow: 0 0 0 8px #e8b64a22 !important; }
@media (max-width: 1100px) { .coach { right: 16px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .card:hover, .hand .card:hover { transform: none; } }

/* ---- online rooms ---- */
.online-form { display: grid; gap: 6px; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.online-form summary { cursor: pointer; }
.online-form .field { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.online-form .field input, .online-form .field select { flex: 1; max-width: 220px; }
.room-code { font: 700 56px/1 var(--sans); letter-spacing: .18em; color: var(--accent); }
#online .field { display: flex; gap: 8px; align-items: center; }
#share { flex: 1; min-width: 0; }
.lobby-seats { display: grid; gap: 6px; max-width: 460px; }
.lobby-seat { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; flex-wrap: wrap; }
.lobby-seat .disc { width: 14px; height: 14px; border-radius: 50%; }
.lobby-seat .who { flex: 1; min-width: 140px; }
.seat-ctl { display: flex; gap: 4px; flex-wrap: wrap; }
.seat-ctl button { padding: 3px 8px; font-size: 12px; }
.notice-inline { background: #d0604e22; border: 1px solid var(--danger); border-radius: 6px; padding: 8px 10px; max-width: 380px; }
