/* Round 6: a quieter front door and deliberate, readable table feedback. */
.navmore { position:relative; }
.navmore>summary { min-height:44px; padding:10px 12px; cursor:pointer; border-radius:24px; font-weight:600; color:var(--ink-2); }
.navmore[open]>summary { background:var(--surface-2); }
.navmore-menu { position:absolute; top:48px; right:0; z-index:80; width:230px; max-height:70dvh; overflow:auto; display:grid; padding:8px;
  background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
.navmore-menu a,.navmore-menu button { justify-content:flex-start; border-radius:10px; }
.front-door { max-width:1000px; padding-block:clamp(36px,8vh,80px) 42px; }
.front-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:64px; align-items:center; }
.front-door h1 { font-size:clamp(2.5rem,5vw,4.7rem); line-height:1.12; letter-spacing:-.045em; max-width:12ch; }
.front-door .lede { font-size:1.15rem; max-width:38ch; }
.front-door .eyebrow { letter-spacing:.14em; }
.join-panel { background:var(--surface); border:1px solid var(--line); padding:28px; border-radius:26px; box-shadow:0 8px 36px #0d6c8508; }
.join-panel input { width:100%; min-width:0; }
.join-panel .name-row { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:8px; }
.join-panel .name-row button { padding:0; font-size:1.35rem; }
.join-panel .btn-wide { margin-top:4px; }
.front-links { display:flex; gap:12px 26px; justify-content:center; padding-block:26px 0; flex-wrap:wrap; }
.front-links a,.front-links button { min-height:44px; display:inline-flex; align-items:center; }
.front-status { margin-top:12px; color:var(--ink-2); font-size:.9rem; }
.front-door+.friends-now { padding-block:16px; }
.recording-note { font-size:.8rem; color:var(--ink-2); }
.footer-help>summary { cursor:pointer; min-height:44px; padding:10px 0; color:var(--ink-2); }
.footer-help[open]>.howto { margin-top:12px; }
.appearance-dialog { width:min(610px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:auto; padding:26px;
  border:1px solid var(--line); border-radius:24px; color:var(--ink); background:var(--surface); box-shadow:var(--shadow); }
.appearance-dialog::backdrop { background:#071420a6; }
.dialog-heading { justify-content:space-between; margin-bottom:10px; }
.dialog-heading h2 { font-size:1.3rem; }
.card-style-picker { border:0; padding:0; margin:22px 0; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.card-style-picker legend { font-weight:700; padding:0 0 10px; }
.card-style-option { display:grid; grid-template-columns:20px 38px minmax(0,1fr); gap:10px; align-items:center; padding:14px 10px;
  border:2px solid var(--line); border-radius:14px; cursor:pointer; }
.card-style-option:has(:checked) { border-color:var(--primary); background:var(--surface-2); }
.card-style-option input { width:18px; height:18px; margin:0; accent-color:var(--primary); }
.card-style-option small { font-size:.76rem; line-height:1.35; color:var(--ink-2); }
.card-style-option .stack { gap:4px; }
.style-sample { background:white; color:#ad1830; height:52px; width:36px; border:1px solid #66717b; border-radius:4px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; font-weight:750; line-height:1.05; }
.preview-four-colour .style-sample { color:#1b51b0; }
.preview-large-index .sample-rank { font-size:1.65rem; }
.preview-high-contrast .style-sample { border:2px solid #111; font-size:1.25rem; color:#a00020; }
.pref-check { display:flex; align-items:center; gap:12px; min-height:60px; padding:10px 0; cursor:pointer; }
.pref-check input { width:20px; height:20px; flex:none; accent-color:var(--primary); }
.pref-check b,.pref-check small { display:block; }
.pref-check small { color:var(--ink-2); font-size:.8rem; }
:root[data-card-style="large-index"] .card .r { font-size:1.45em; font-weight:800; line-height:.95; }
:root[data-card-style="large-index"] .card .s { font-size:1.15em; }
:root[data-card-style="large-index"] .card .pip { opacity:.1; }
:root[data-card-style="high-contrast"] { --card:#fff; --card-edge:#111; --card-ink:#080b0f; --suit-s:#000; --suit-c:#000; --suit-h:#a00020; --suit-d:#a00020; }
:root[data-card-style="high-contrast"] .card { border-width:2px; border-color:#111; box-shadow:none; font-weight:800; }
:root[data-card-style="high-contrast"] .card.playable { outline:3px solid var(--primary); outline-offset:1px; }
:root[data-card-style="high-contrast"] .card:disabled { opacity:1; filter:none; }
.table-view-controls { display:flex; gap:4px; align-items:center; }
.table-view-controls .btn { min-width:44px; padding-inline:10px; font-size:.82rem; }
.trick.trick-won .won { animation:trick-winner .6s ease-out both; background:var(--primary); color:var(--on-primary); box-shadow:var(--shadow); }
.trick.trick-won .tc.last { animation:trick-collect .55s ease-out both; }
.board-arrival .dock .card { animation:board-arrive .35s ease-out both; }
.result-hero.board-finished { animation:result-arrive .45s ease-out both; }
.board-highlight { display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:var(--primary); font-weight:650; }
.score-tracks { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.score-track { display:flex; gap:3px; align-items:center; }
.score-track .trick-token { width:9px; height:15px; border:1px solid currentColor; border-radius:2px; opacity:.22; }
.score-track .trick-token.won { opacity:1; background:currentColor; }
.score-track .trick-token.target { outline:2px solid var(--focus); outline-offset:2px; }
.quick-reactions { display:flex; gap:8px; flex-wrap:wrap; margin-block:10px; }
.quick-reactions .btn { font-size:.85rem; }
.table-focus .site-header,.table-focus>.divider,.table-focus>.site-footer { display:none; }
.table-focus .table-page { max-width:1600px; padding-top:8px; }
.table-focus .tablegrid { min-height:calc(100dvh - 90px); }
.table-focus .pool { min-height:380px; }
.queue-banner { position:fixed; bottom:14px; left:50%; transform:translateX(-50%); z-index:72; width:min(560px,calc(100vw - 24px));
  padding:10px 14px; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:var(--shadow); }
.queue-banner>span { flex:1; font-size:.9rem; }
.queue-banner .btn { padding-inline:12px; font-size:.85rem; }
.queue-chairs { display:flex; justify-content:center; gap:16px; padding:20px; }
.queue-chair { width:52px; height:60px; display:grid; place-content:center; border:2px dashed var(--line); border-radius:14px; color:var(--ink-2); font-weight:700; }
.queue-chair.here { background:var(--surface-2); border:2px solid var(--primary); color:var(--primary); }
.r6-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.r6-page { max-width:1040px; }
.r6-page .panel { min-width:0; grid-template-columns:minmax(0,1fr); }
.r6-page .btn { max-width:100%; white-space:normal; }
.r6-page textarea { font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:12px; width:100%; }
.r6-page input,.r6-page select { max-width:100%; min-height:44px; }
.r6-page .resource-link { overflow-wrap:anywhere; }
.r6-page .list-card { border-block-start:1px solid var(--line); padding-block:16px; }
.r6-page .list-card:first-child { border-block-start:0; }
.r6-page .list-card h3 { font-size:1.1rem; }
.r6-page .quiet-note { padding:14px 18px; background:var(--surface-2); border-radius:14px; border:1px solid var(--line); }
.r6-page .check-row { display:flex; align-items:center; gap:10px; min-height:44px; }
.r6-page .check-row input { min-height:0; width:20px; height:20px; }
.record-table { width:100%; border-collapse:collapse; }
.record-table th,.record-table td { padding:12px 8px; text-align:left; border-bottom:1px solid var(--line); font-size:.85rem; }
.record-scroll { overflow-x:auto; }
.password-field { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.password-field input { width:100%; min-width:0; }
.session-current { color:var(--primary); font-weight:700; }
.r6-form { margin-block:12px; }
.r6-form>button[type="submit"] { align-self:start; }
.channel-log { max-height:420px; overflow-y:auto; overflow-wrap:anywhere; }
.channel-log .list-card { padding:12px 0; }
.channel-log .message-text { white-space:pre-wrap; }
.resource-disclaimer { padding:8px 12px; border-left:3px solid var(--line); color:var(--ink-2); }
.record-data { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.75rem; max-height:360px; overflow:auto; }
.r6-page input[type="range"] { width:100%; accent-color:var(--primary); }
.r6-page .error { color:var(--danger,#a62940); }
.score-tracks { padding:8px 12px; justify-content:space-between; border:1px solid var(--line); background:var(--surface); border-radius:12px; }
.score-track>b { font-size:.75rem; margin-inline:3px; }
@media(max-width:360px) { .score-tracks { gap:4px; padding:6px 4px; } .score-track { gap:2px; } .score-track .trick-token { width:6px; height:12px; } }
@keyframes board-arrive { from { opacity:.4; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
@keyframes trick-winner { from { transform:scale(.9); opacity:.4; } to { transform:scale(1); opacity:1; } }
@keyframes trick-collect { 0% { transform:translateY(0); } 45% { transform:translateY(-8px); } 100% { transform:translateY(0); } }
@keyframes result-arrive { from { opacity:.5; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media (max-width:700px) {
  .front-door { padding-block:32px 24px; }
  .front-grid { grid-template-columns:1fr; gap:28px; }
  .front-door h1 { font-size:2.6rem; max-width:none; }
  .front-door .lede { font-size:1rem; }
  .join-panel { padding:22px; border-radius:20px; }
  .front-links { gap:4px 18px; padding-top:16px; }
  .site-header .toggles .lbl { display:none; }
  .r6-grid { grid-template-columns:1fr; }
  .appearance-dialog { padding:18px; }
  .card-style-picker { grid-template-columns:1fr; }
  .on-table .site-header { display:none; }
  .on-table .tablebar { position:relative; padding-top:6px; }
  .on-table .table-view-controls { order:2; }
  .on-table .table-page { padding-top:0; }
  .table-focus .pool { min-height:0; }
  .table-focus .tablegrid { min-height:0; }
}
@media (max-width:360px) {
  .site-header { padding-inline:12px; gap:2px; }
  .site-header .logo { gap:6px; }
  .site-header .logo svg { width:38px; }
  .site-header .wordmark { font-size:.95rem; }
  .site-header .topnav a,.navmore>summary { padding-inline:8px; }
  .table-view-controls .btn { font-size:.75rem; padding-inline:7px; }
}
@media (max-height:550px) and (orientation:landscape) {
  .on-table .tablegrid { grid-template-columns:minmax(0,1fr) minmax(230px,.65fr); gap:10px; }
  .on-table .pool { min-height:210px; height:210px; }
  .on-table .dock { padding:8px; }
  .on-table .dock-head { padding-bottom:4px; }
  .on-table .tablebar { margin-bottom:4px; }
}
:root[data-motion="reduced"] *, :root[data-motion="reduced"] *::before, :root[data-motion="reduced"] *::after {
  animation:none !important; transition:none !important; scroll-behavior:auto !important;
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }
.daily-files { margin:0; padding-left:1.2rem; display:grid; gap:.3rem; }
