/* v6 — night room. Load AFTER all existing theme and entry CSS.
   JP: Noto Sans JP 600/800. Numerals/Latin: Barlow Condensed 600/700/800.
   Font <link> and integration notes: labels.md / mock.html. No image dependencies. */
:root{--ui-jp:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;--ui-num:"Barlow Condensed","Arial Narrow",Arial,sans-serif;--ui-text:#eef2ec;--ui-muted:#a7b6ae;--ui-gold:#d8af66;--ui-line:#37443d;--ui-bg:#101916}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen){box-sizing:border-box;position:relative;isolation:isolate;display:flex;flex-direction:column;width:100%;min-height:100svh;min-height:100dvh;padding:20px 18px max(18px,env(safe-area-inset-bottom));color:var(--ui-text);font-family:var(--ui-jp);font-size:13px;line-height:1.5;letter-spacing:0;background:radial-gradient(ellipse at 65% 0,#30403760,transparent 48%),#101916;border:0;overflow-x:clip;--ink:#eef2ec;--muted:#a7b6ae;--paper:#101916;--orange:#d8af66}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) *,:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) *::before,:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) *::after{box-sizing:border-box}
:root .app .screen.home::before,:root .app .screen.home::after,:root .app .screen.lobby-screen::before,:root .app .screen.lobby-screen::after,:root .app .screen.home header::before,:root .app .screen.home header::after{content:none}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 16px;margin:0;border:0;background:none;color:var(--ui-text)}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) header small{display:block;color:var(--ui-muted);font:600 10px/1.5 var(--ui-jp);letter-spacing:.04em;white-space:normal}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) h2{font:800 23px/1.35 var(--ui-jp);letter-spacing:-.035em;margin:4px 0 0;word-break:normal}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) h2 span{color:var(--ui-gold)}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn{display:inline-flex;position:relative;align-items:center;justify-content:center;flex-direction:column;gap:2px;min-height:52px;padding:10px 12px;border:1px solid #45534a;border-radius:8px;background:linear-gradient(#2c3730,#202a24);color:var(--ui-text);box-shadow:inset 0 1px 0 #ffffff0b,0 3px 0 #080e0a;font:800 13px/1.35 var(--ui-jp);letter-spacing:.01em;text-decoration:none;cursor:pointer;transform:none;transition:transform 120ms cubic-bezier(.7,.01,.23,1),filter 120ms linear}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn::before{content:none}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn.primary{background:linear-gradient(#e4c17f,#c49548);border-color:#efcf91 #b88e49 #9f7433;color:#211d14;box-shadow:inset 0 1px 0 #fff0c8,0 3px 0 #735322;min-height:56px;font-size:14px}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn.call{background:linear-gradient(#2e8065,#1b5a48);border-color:#4b9a7b #30785d #245a46;box-shadow:inset 0 1px 0 #ffffff1b,0 3px 0 #0b362a;color:#fff}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn:active{transform:translateY(2px);filter:brightness(.92)}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn:disabled{opacity:.45;cursor:not-allowed;transform:none;filter:saturate(.3)}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn.armed{background:linear-gradient(#a94e3e,#7c3027);color:#fff;border-color:#d17965;box-shadow:0 3px 0 #451b15}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn.on,:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .pre.on{border-color:var(--ui-gold);color:#f3d49d;background:#3b3425;box-shadow:inset 0 0 0 1px #d8af6625,0 3px 0 #090e0b}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .wide{width:100%;margin:0}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) :focus-visible{outline:2px solid #f6d48d;outline-offset:4px}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .err{color:#ffae9f;font-size:12px;margin:10px 0 0;min-height:0}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .err:empty{display:none}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .foot{margin:auto 0 0;padding-top:20px;text-align:center;color:#9eafa4;font:400 10px/1.8 var(--ui-jp);letter-spacing:0}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .hdr-btns{display:flex;gap:5px;flex-shrink:0}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .exit{border:1px solid #455048;background:#1a241fe8;border-radius:6px;min-width:44px;min-height:44px;padding:0 5px;color:#c5d0c7;font:600 10px/1.2 var(--ui-jp);white-space:nowrap;cursor:pointer}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .exit.on{border-color:var(--ui-gold);color:var(--ui-gold);background:#332e22}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .meta{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0;padding:10px 0;border-block:1px solid #46514680;font:600 16px/1.3 var(--ui-num);font-variant-numeric:tabular-nums;color:#e1e7df}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .meta small,:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .meta>span:last-child{color:var(--ui-muted);font:500 10px/1.4 var(--ui-jp)}
/* ENTRY — a poker-room identity, one physical table motif. */
:root .app .screen.home header,:root .app .screen.home.entry header,:root .app .screen.home:not(.entry) header{margin:0;padding:4px 0 20px;border-bottom:1px solid #354238}
:root .app .screen.home header small{font:600 10px/1.4 var(--ui-num);letter-spacing:.18em;color:#b9c4ba}
:root .app .screen.home .wordmark{font:800 33px/.98 var(--ui-num);letter-spacing:.025em;display:block;margin-bottom:9px;color:#e9ede4}
:root .app .screen.home .wordmark em{font-style:normal;color:var(--ui-gold)}
:root .app .screen.home header h2,:root .app .screen.home.entry header h2{font-size:13px;font-weight:600;color:#9fac9f;margin-top:12px;letter-spacing:0}
:root .app .screen.home .entry-title,:root .app .screen.home:not(.entry) .entry-title,:root .app .screen.home.entry .entry-title{font:800 26px/1.5 var(--ui-jp);letter-spacing:-.045em;margin:24px 0 22px}
:root .app .screen.home .entry-art{height:208px;position:relative;margin:10px -18px 0;overflow:hidden;flex-shrink:0;display:grid;place-items:center}
:root .app .screen.home .entry-art::before{content:"";position:absolute;width:300px;height:140px;transform:rotate(-14deg);border:12px solid #333b32;border-radius:50%;background:radial-gradient(ellipse at 45% 25%,#3c6650,#153e2b 65%);box-shadow:0 2px 0 #8e774d,inset 0 0 0 2px #8b7853,inset 0 12px 22px #081e17,0 17px 0 #0a120e,0 20px 25px #0008}
:root .app .screen.home .entry-art::after{content:"HOLD’EM";position:absolute;transform:rotate(-14deg);font:700 27px var(--ui-num);letter-spacing:.16em;color:#b4c4a754}
:root .app .screen.home .entry-art .table-chip{position:absolute;z-index:1;right:68px;bottom:39px;width:48px;height:29px;border:5px dashed #e7ce94;border-radius:50%;background:#907139;transform:rotate(-14deg);box-shadow:0 4px 0 #59401f,0 7px 0 #b89754,0 10px 0 #4c371c}
:root .app .screen.home .field{display:block;margin:0 0 22px;color:#c0cdc2;font:600 12px/1.5 var(--ui-jp);letter-spacing:.025em}
:root .app .screen.home input,:root .app .screen.home input[type=text]{width:100%;height:56px;min-height:56px;margin:9px 0 0;padding:0 16px;border:1px solid #526054;border-radius:7px;background:#0a110e;box-shadow:inset 0 2px 6px #0004;color:#eef2ec;font:600 16px var(--ui-jp);letter-spacing:0;appearance:none}
:root .app .screen.home input::placeholder{color:#85988b;opacity:1}
:root .app .screen.home .bb-pick{display:flex;gap:9px;margin:10px 0 0}
:root .app .screen.home .bb-pick .btn{flex:1;aspect-ratio:auto;min-width:0;min-height:62px;border:1px solid #45534a;border-radius:7px;outline:none;padding:8px 3px;font:700 23px var(--ui-num);font-variant-numeric:tabular-nums}
:root .app .screen.home .bb-pick .btn.on{border-color:var(--ui-gold);color:#f1cd8c;background:linear-gradient(#3a3626,#26291e);box-shadow:inset 0 2px 0 #d8af66,0 3px 0 #080e0a}
:root .app .screen.home .bb-pick .btn:focus-visible{outline:2px solid #f6d48d;outline-offset:4px}
:root .app .screen.home.entry .field+.field{margin-top:4px}
:root .app .screen.home.entry .entry-title{margin:32px 0}
:root .app .screen.home .recent{margin-top:34px;padding-top:18px;border-top:1px solid #364238}
:root .app .screen.home .recent>small{display:block;color:#a7b6ae;font-size:11px;margin-bottom:10px}
:root .app .screen.home .recent .btn{flex-direction:row;justify-content:space-between;min-height:64px}
:root .app .screen.home .recent .btn::after{content:'›';color:var(--ui-gold);font-size:24px}
:root .app .screen.home .setup-note{display:flex;justify-content:space-between;padding:16px 0 24px;color:#a7b6ae;font-size:11px}
:root .app .screen.home .setup-note b{font:700 22px var(--ui-num);color:#e4bd77}
/* LOBBY — compact roster cards, stacks on the same right edge. */
:root .app .screen.lobby-screen header{align-items:flex-start}
:root .app .screen.lobby-screen header small{font-size:9px}
:root .app .screen.lobby-screen header h2{font-size:22px;white-space:nowrap}
:root .app .screen.lobby-screen .lobby-title{margin:24px 0 20px;padding:17px 16px;border:1px solid #53634b;border-left:3px solid #c8a566;border-radius:6px;background:linear-gradient(110deg,#2b3c2e,#17241c);box-shadow:inset 0 1px 0 #e5e8c90b}
:root .app .screen.lobby-screen .eyebrow{font:700 11px var(--ui-num);letter-spacing:.17em;color:var(--ui-gold)}
:root .app .screen.lobby-screen .lobby-title h3{font:800 21px/1.5 var(--ui-jp);letter-spacing:-.04em;margin:8px 0}
:root .app .screen.lobby-screen .lobby-title p{font-size:11px;color:#b3c0b3;margin:0}
:root .app .screen.lobby-screen .roster{display:grid;gap:8px;border:0}
:root .app .screen.lobby-screen .person{display:flex;align-items:center;gap:10px;min-height:64px;padding:8px 12px;border:1px solid #354538;border-radius:7px;background:linear-gradient(100deg,#243127,#1a241d);box-shadow:inset 0 1px 0 #ffffff05}
:root .app .screen.lobby-screen .num{font:600 12px var(--ui-num);width:12px;color:#8ea08f}
:root .app .screen.lobby-screen .ava{width:38px;height:38px;flex-shrink:0;object-fit:cover;border-radius:50%;border:2px solid #727c60;box-shadow:0 2px 3px #0006}
:root .app .screen.lobby-screen .ava.initial{display:grid;place-items:center;background:var(--c,#4e6651);color:#101b14;font:800 16px var(--ui-jp)}
:root .app .screen.lobby-screen .person b{font:600 13px var(--ui-jp);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root .app .screen.lobby-screen .person>small{font:700 24px var(--ui-num);font-variant-numeric:tabular-nums;color:#f0eee0;background:#101912;border:1px solid #3c4b38;border-radius:20px;padding:1px 10px}
:root .app .screen.lobby-screen .person>small::before{content:"";display:inline-block;width:10px;height:10px;border:2px dashed #c3a15e;border-radius:50%;margin-right:6px;vertical-align:2px}
:root .app .screen.lobby-screen .emptyrow{min-height:44px;background:none;border-style:dashed;color:#9aaa9b}
:root .app .screen.lobby-screen .emptyrow b,:root .app .screen.lobby-screen .emptyrow>small{font:500 11px var(--ui-jp);background:none;border:0;padding:0;color:#a7b6ae}
:root .app .screen.lobby-screen .emptyrow>small::before{content:none}
:root .app .screen.lobby-screen .lobby-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto;padding-top:24px}
:root .app .screen.lobby-screen .lobby-actions .wide{grid-column:1/-1}
:root .app .screen.lobby-screen .foot{margin:0;font-size:9px}
/* GAME — transparent over the existing 3D scene. */
html.real-on .app .screen:not(.home):not(.lobby-screen){background:transparent;padding:12px 12px 0;pointer-events:none}
html.real-on .app .screen header,html.real-on .app .screen .action,html.real-on .app .screen .myhand{pointer-events:auto}
html.real-on .app .screen>header{margin:-12px -12px 0;padding:14px 12px 12px;background:linear-gradient(#0c120ff5,#101812de);align-items:center;gap:5px}
html.real-on .app .screen>header small{font-size:8px;letter-spacing:0}
html.real-on .app .screen>header h2{font-size:21px;white-space:nowrap}
html.real-on .app .screen .hdr-btns{gap:4px}
html.real-on .app .screen .exit{min-width:44px;font-size:9px;padding:0 4px}
html.real-on .app .screen>.meta{padding:8px 3px;background:#101812b3;border-top:0}
html.real-on .app .screen .real-gap{flex:1;min-height:290px;pointer-events:none}
html.real-on .app .screen .myhand{margin:0 -12px;padding:10px 14px;display:flex;gap:10px;align-items:center;background:linear-gradient(90deg,#111c16f5,#17251fe8);border-top:1px solid #53634b;text-shadow:none;min-height:61px;z-index:2}
html.real-on .app .screen .myhand .ava,html.real-on .app .screen .myhand .hole{display:none}
html.real-on .app .screen .myhand .mewho{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
html.real-on .app .screen .mewho br{display:none}
html.real-on .app .screen .mewho b{font:600 12px var(--ui-jp)}
html.real-on .app .screen .mewho strong{font:700 27px/1 var(--ui-num);font-variant-numeric:tabular-nums;letter-spacing:0;color:#f0ebd9}
html.real-on .app .screen .myhand small{display:inline;color:#b6c1b7;font:600 10px var(--ui-num);margin:0;letter-spacing:.04em}
html.real-on .app .screen .mewho b small{display:inline-grid;place-items:center;background:#e5e6d8;color:#17201a;border-radius:50%;width:16px;height:16px;margin-left:3px}
html.real-on .app .screen .myhand .nowhand{margin-left:auto;padding:5px 8px;font:600 11px var(--ui-jp);color:#cfdbce;background:#25372a;border:1px solid #516446;border-radius:5px;box-shadow:none;clip-path:none;text-shadow:none}
html.real-on .app .screen .nowhand small{display:none}
html.real-on .app .screen .action,html.real-on .app .screen .action.sticky{position:sticky;bottom:0;z-index:5;flex-shrink:0;margin:0 -12px;padding:13px 12px max(18px,env(safe-area-inset-bottom));border-top:1px solid #52604c;border-radius:0;background:linear-gradient(#222d24,#111b15 55%);box-shadow:0 -4px 12px #0003}
html.real-on .app .screen .turnline{display:flex;justify-content:space-between;align-items:center;font:800 13px var(--ui-jp)}
html.real-on .app .screen .turnline mark{padding:0;background:none;color:#e7eee2;clip-path:none}
html.real-on .app .screen .turnline .time{font:500 11px var(--ui-jp);color:#b1bdaf}
html.real-on .app .screen .time b{font:700 23px var(--ui-num);color:#e5c283;font-variant-numeric:tabular-nums}
html.real-on .app .screen .timer{height:3px;margin:9px 0 13px;background:#3b493c;border-radius:0;overflow:hidden}
html.real-on .app .screen .timer::before{content:none}
html.real-on .app .screen .timer i{display:block;height:3px;background:#d8af66;border-radius:0;transition:none}
html.real-on .app .screen .actions{display:flex;gap:8px;margin:9px 0 3px}
html.real-on .app .screen .actions .btn{flex:1;min-width:0;min-height:65px;font-size:12px;padding:8px 3px}
html.real-on .app .screen .actions .btn[data-act=fold]{background:linear-gradient(#493936,#302725);border-color:#67504a;color:#e5c8c1;box-shadow:inset 0 1px 0 #ffffff0b,0 3px 0 #1e1715}
html.real-on .app .screen .btn small{display:block;font:700 27px/1 var(--ui-num);letter-spacing:0;font-variant-numeric:tabular-nums;margin:0}
html.real-on .app .screen .raisevalue{display:flex;align-items:center;justify-content:space-between;color:#b4c0b3;font-size:11px}
html.real-on .app .screen .raisevalue output{font:700 36px/1 var(--ui-num);color:#f3d396;font-variant-numeric:tabular-nums;letter-spacing:0}
html.real-on .app .screen input[type=range]{display:block;width:100%;height:36px;margin:3px 0 6px;background:transparent;accent-color:#dcba75;cursor:pointer;touch-action:pan-y}
html.real-on .app .screen .presets{display:flex;gap:6px}
html.real-on .app .screen .presets .btn{flex:1;min-width:0;min-height:44px;padding:6px 2px;font-size:10px;background:#1b261e;border-color:#4c5b48;box-shadow:0 2px 0 #0c130e}
html.real-on .app .screen .pre{min-height:48px;border:1px solid #52624f;border-radius:6px;padding:8px;background:#263229;color:#e7eee2;font:600 12px var(--ui-jp)}
/* Labels mounted under #real-host: intentionally independent of .app. */
.rt-seat,.rt-pot,.rt-win{position:absolute;transform:translate(-50%,-50%);pointer-events:none;text-align:center;box-sizing:border-box;font-family:var(--ui-jp);color:#f0f1e6;line-height:1.2;font-variant-numeric:tabular-nums}
.rt-seat{width:94px;padding:7px 7px 5px;background:linear-gradient(#28372eea,#101a14f5);border:1px solid #697357;border-radius:7px;box-shadow:0 3px 7px #0005;white-space:normal}
.rt-name{display:flex;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:600;min-height:17px}
.rt-name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:67px}
.rt-role{display:inline-grid;place-items:center;flex-shrink:0;width:17px;height:17px;border-radius:50%;background:#54604b;color:#f4eddb;font:700 10px var(--ui-num);letter-spacing:.02em}
.rt-role.is-dealer{background:#e9e9df;color:#182219;border:1px solid #92988b}
.rt-stack{display:block;font:700 26px/1.1 var(--ui-num);letter-spacing:0;margin:3px 0;color:#f3ecd9}
.rt-stack::before,.rt-pot strong::before{content:"";display:inline-block;width:10px;height:10px;border:2px dashed #d3b26b;border-radius:50%;margin-right:5px;vertical-align:3px}
.rt-bet{display:block;font:600 11px var(--ui-num);letter-spacing:.045em;color:#c4cfbd}
.rt-state{display:block;margin-top:3px;font:700 11px var(--ui-num);letter-spacing:.09em;color:#ebbd72}
.rt-state:empty{display:none}
.rt-clock{position:absolute;left:7px;right:7px;bottom:-2px;height:3px;background:#344537;overflow:hidden;display:none}
.rt-clock i{display:block;height:100%;background:#ebc67e;transform:scaleX(var(--remaining,1));transform-origin:left}
.rt-seat.is-turn{border-color:#ebc67e;box-shadow:0 0 0 2px #d8af6620,0 3px 7px #0005}
.rt-seat.is-turn .rt-clock{display:block}
.rt-seat.is-fold{filter:saturate(.15);opacity:.55}
.rt-seat.is-away{opacity:.65;border-style:dashed}
.rt-seat.is-allin .rt-state{background:#68462b;border-radius:3px;padding:3px;color:#ffe2a5}
.rt-pot{min-width:86px;padding:7px 13px 6px;border-block:1px solid #c3b57c66;background:linear-gradient(90deg,#11271d00,#11271de0 20%,#11271de0 80%,#11271d00);text-shadow:0 2px 3px #0007}
.rt-pot small{font:600 10px var(--ui-num);letter-spacing:.15em;color:#e0dbc5}
.rt-pot strong{display:block;font:800 36px/1.05 var(--ui-num);letter-spacing:0;color:#fff0c9}
.rt-win{padding:8px 22px;border-block:1px solid #d6b66b;background:linear-gradient(90deg,#17201500,#293523f2 20%,#293523f2 80%,#17201500);max-width:calc(100% - 24px)}
.rt-win span{font-size:12px;font-weight:800}
.rt-win strong{display:block;font:800 45px/.95 var(--ui-num);letter-spacing:.06em;color:#f3cf7c;text-shadow:0 2px 0 #725624}
@media(max-width:375px){:root .app .screen.home,:root .app .screen.lobby-screen{padding-inline:14px}html.real-on .app .screen>header h2{font-size:19px}html.real-on .app .screen .exit{font-size:8px}html.real-on .app .screen .myhand .mewho{gap:6px}html.real-on .app .screen .mewho strong{font-size:25px}}
@media(prefers-reduced-motion:reduce){:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn{transition:none}.rt-clock i{transition:none}}
/* Remove the rejected entry.css card, including its :not(.entry) specificity. */
:root .app .screen.home:not(.entry) header::before,
:root .app .screen.home:not(.entry) header::after{content:none;display:none}
/* fix: unselected blinds stay quiet, the chosen one is clearly lit */
:root .app .screen.home .bb-pick .btn:not(.on){background:linear-gradient(#222b26,#19201c);color:#9fb0a6;border-color:#36433b}
:root .app .screen.home .bb-pick .btn.on{background:linear-gradient(#e2bd78,#b98d45);color:#1b1a14;border-color:#f0d08f;box-shadow:inset 0 1px 0 #fff3,0 3px 0 #5d4420}
:root .app .screen.lobby-screen .hdr-btns .exit{color:#c5d0c7;font:600 11px/1.2 var(--ui-jp);padding:0 8px}
/* v6.1 — Astra QC fixes */
/* 1: raise panel covers the 3D hole cards → show them small in my strip while it is open */
html.real-on .app .screen:has(.raise-editor) .myhand .hole{display:flex;gap:4px;margin-left:auto;margin-right:8px}
html.real-on .app .screen:has(.raise-editor) .myhand .hole .card{width:30px;height:42px;transform:none;border:0;border-radius:4px;background:#f3efe4;color:#1d2a22;box-shadow:0 2px 0 #0007;font-family:var(--ui-num)}
html.real-on .app .screen:has(.raise-editor) .myhand .hole .card.red{color:#c2392f}
html.real-on .app .screen:has(.raise-editor) .myhand .hole .card b{font-size:16px;padding:2px 0 0 4px}
html.real-on .app .screen:has(.raise-editor) .myhand .hole .card i{font-size:15px;font-style:normal}
html.real-on .app .screen:has(.raise-editor) .myhand .hole .card small{display:none}
html.real-on .app .screen .myhand{min-height:48px}
html.real-on .app .screen .action{padding-top:8px}
/* 2: tie the bright 3D to the dark UI */
html.real-on #real-host canvas{filter:saturate(.82) brightness(.9)}
html.real-on .app .screen>header{background:linear-gradient(#0c120ff5,#101812de);margin:-20px -18px 0;padding:14px 18px 12px}
/* 3: lighter seat plates */
.rt-seat{width:88px;padding:5px 6px 4px;border-color:#596650;border-radius:6px}
.rt-seat .rt-stack{font-size:24px;margin:2px 0}
.rt-seat .rt-bet{font-size:10px}
/* 4: empty lobby keeps guidance → seats → actions together */
:root .app .screen.lobby-screen .roster:not(:has(.person:not(.emptyrow))) + .lobby-actions{margin-top:32px}
/* 5: calmer gold */
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn.primary{background:linear-gradient(#dfbc78,#cba157);box-shadow:inset 0 1px #fff2,0 2px #735322}
:is(:root .app .screen.home, :root .app .screen.lobby-screen, html.real-on .app .screen) .btn.call{box-shadow:inset 0 1px #fff1,0 2px #0a1a12}
/* 自撮り → キャラ（待合） */
:root .app .screen.lobby-screen .face-card{display:grid;grid-template-columns:76px 1fr;grid-template-rows:auto auto;gap:10px 14px;align-items:center;margin:16px 0 0;padding:14px;border:1px solid #3d4a42;border-radius:10px;background:linear-gradient(#1d2722,#141c18)}
:root .app .screen.lobby-screen .face-pic{grid-row:1/3;position:relative;width:76px;height:76px;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 50% 35%,#2f3b34,#151c18);box-shadow:0 0 0 2px #d8af66,0 0 0 5px #141c18,0 0 0 6px #3d4a42;display:grid;place-items:center}
:root .app .screen.lobby-screen .face-pic img{width:100%;height:100%;object-fit:cover}
:root .app .screen.lobby-screen .face-pic span{font:800 18px var(--ui-num);letter-spacing:.14em;color:#6f7f75}
:root .app .screen.lobby-screen .face-spin{position:absolute;inset:6px;border-radius:50%;border:3px solid #d8af6633;border-top-color:#d8af66;animation:face-spin .9s cubic-bezier(.7,.01,.23,1) infinite}
@keyframes face-spin{to{transform:rotate(1turn)}}
:root .app .screen.lobby-screen .face-txt b{display:block;font:800 14px/1.4 var(--ui-jp);color:var(--ui-text)}
:root .app .screen.lobby-screen .face-txt small{display:block;margin-top:3px;font:600 11px/1.5 var(--ui-jp);color:var(--ui-muted)}
:root .app .screen.lobby-screen .face-btn{min-height:42px;font-size:13px;border-color:#8a6d3a;color:#f1cd8c;background:linear-gradient(#2e2a1f,#221f17)}
:root .app .screen.lobby-screen .face-btn.off{opacity:.45;pointer-events:none}
@media (prefers-reduced-motion:reduce){:root .app .screen.lobby-screen .face-spin{animation-duration:3s}}
/* 声スタンプ */
html .stampgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;max-height:210px;overflow-y:auto;padding:6px;margin-bottom:8px;border-radius:10px;background:#0d1411ee;border:1px solid #33413a}
html .stampbtn{border:0;background:#1c2621;border-radius:8px;padding:3px;aspect-ratio:1;display:grid;place-items:center;cursor:pointer}
html .stampbtn img{width:100%;height:100%;object-fit:contain}
html .stampbtn:active{transform:scale(.92)}
.stamp-fly{position:fixed;z-index:90;width:150px;height:auto;pointer-events:none;transform:translate(-50%,-50%) scale(.2);animation:stamp-fly 2.5s cubic-bezier(.87,.05,.02,.97) forwards;filter:drop-shadow(0 6px 10px #0009)}
@keyframes stamp-fly{0%{transform:translate(-50%,-50%) scale(.2) rotate(-8deg);opacity:0}12%{transform:translate(-50%,-90%) scale(1.15,1.05) rotate(4deg);opacity:1}22%{transform:translate(-50%,-85%) scale(1) rotate(-2deg)}80%{opacity:1;transform:translate(-50%,-95%) scale(1)}100%{opacity:0;transform:translate(-50%,-130%) scale(.9)}}
@media (prefers-reduced-motion:reduce){.stamp-fly{animation-duration:2.5s;animation-timing-function:linear}}

/* ---------- HOVAN 演出・キャラ（v7） ---------- */
#hfx-root{position:fixed;inset:0;z-index:70;pointer-events:none}
.myhand .lvtag{display:inline-block;margin-left:6px;font:700 11px/1 "Barlow Condensed",sans-serif;letter-spacing:.06em;color:#efd085;vertical-align:middle}
.myhand .lvbar{display:block;width:84px;height:3px;margin-top:3px;appearance:none;-webkit-appearance:none;border:0;background:#ffffff1f;border-radius:2px;overflow:hidden}
.myhand .lvbar::-webkit-progress-bar{background:#ffffff1f}
.myhand .lvbar::-webkit-progress-value{background:#efd085}
.myhand .lvbar::-moz-progress-bar{background:#efd085}
.char-card{margin:14px 0 4px;border:1px solid #efd08533;border-radius:10px;background:#0b1712cc;overflow:hidden}
.char-now{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;cursor:pointer}
.char-now img{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid #efd085}
.char-now span{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.char-now small{font:700 11px/1.2 "Noto Sans JP",sans-serif;color:#c6c8b0}
.char-now b{font:800 18px/1.2 "Noto Sans JP",sans-serif;color:#fff5d6}
.char-now em{font-style:normal;font-size:11px;color:#efd085}
.char-now i{font-style:normal;font:800 13px/1 "Noto Sans JP",sans-serif;color:#0b1712;background:#efd085;border-radius:999px;padding:8px 14px}
.charselect{border-top:1px solid #efd08522;color:#fff5d6}
.charselect .hfx-character{display:block;width:100%;background:#10271d;border:1px solid #ffffff1a;color:#fff5d6;cursor:pointer;font-family:"Noto Sans JP",sans-serif}
.charselect .hfx-character:disabled{cursor:default}
.charselect .hfx-preview{height:220px;padding-top:100px}
.charselect .hfx-preview h2{color:#fff5d6}
.action .reactbar{margin-top:8px}
/* 見せ合いの結果・声スタンプのボタン（v6の暗い卓に合わせる） */
html.real-on .app .screen .result-box,html.t-3d .app .screen .result-box{background:#0b1712e6;border:1px solid #efd08540;border-radius:12px;box-shadow:0 8px 24px #0008;color:#fff5d6;padding:12px 10px}
html.t-3d .app .screen .result-box h4{font:800 22px/1.2 "Noto Sans JP",sans-serif;color:#efd085}
html.t-3d .app .screen .result-box p,html.t-3d .app .screen .result-box .next{color:#c6c8b0}
html.t-3d .app .screen .result-box b{color:#fff5d6}
html.t-3d .app .screen .shown b,html.t-3d .app .screen .shown small{color:#c6c8b0}
html.t-3d .app .screen .shown.win b,html.t-3d .app .screen .shown.win small{color:#efd085}
html.t-3d .app .chipbtn,html.t-3d .app .chipbtn.toggle{background:#10271d;border:1px solid #efd08559;color:#efd085;font:800 12px/1 "Noto Sans JP",sans-serif;min-height:34px;padding:0 16px}
/* オープニングの土台（v8） */
.app{position:relative;min-height:100dvh}
