.rv-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:16px 0 22px}.rv-heading h1{margin:8px 0;font-size:30px}.rv-heading h1 span{font-weight:400;font-size:18px;color:var(--gold);padding-left:16px}.rv-heading p{color:var(--muted);margin:0}.rv-notice{color:var(--gold);font-size:13px;min-height:24px;margin-bottom:8px}.rv-lobby{max-width:960px;margin:25px auto;padding:clamp(28px,5vw,64px);border:1px solid var(--line);border-radius:24px;background:var(--surface);position:relative;overflow:hidden}.rv-lobby h2{font-size:clamp(24px,3vw,38px);margin:18px 0}.rv-lobby p{max-width:540px;line-height:1.9;color:var(--muted)}.rv-lobby .primary{margin-top:26px;min-height:48px;padding-inline:28px}.rv-mode-pills{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}.rv-mode-pills span{border:1px solid var(--line);border-radius:20px;padding:7px 15px;font-size:12px}.rv-lobby-art{display:flex;gap:12px;justify-content:flex-end;margin-bottom:12px}.rv-lobby-art i{width:64px;height:64px;display:grid;place-items:center;border-radius:50%;font-style:normal;font-size:38px;color:#efe0bb;background:radial-gradient(circle at 30% 20%,#a0abba,#617086 45%,#344053);box-shadow:0 8px 20px #0003}.rv-lobby-art i:nth-child(2){transform:translateY(14px)}
.rv-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.rv-layout[hidden],.rv-lobby[hidden]{display:none}.rv-stage{background:color-mix(in srgb,var(--surface) 76%,transparent);border:1px solid var(--line);border-radius:20px;overflow:hidden;min-width:0}.rv-toolbar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:15px 18px;border-bottom:1px solid var(--line);background:var(--surface)}.rv-toolbar>div{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.rv-toolbar span{font-size:12px;color:var(--muted)}.rv-toolbar button{min-height:38px;font-size:13px;padding:7px 13px}.rv-players{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:16px 20px 6px}.rv-player{display:grid;grid-template-columns:1fr auto;gap:8px 12px;border:1px solid var(--line);border-top:3px solid var(--seat-color);border-radius:12px;padding:13px;background:var(--surface)}.rv-player strong{color:var(--seat-color);font-size:14px}.rv-player>span{grid-column:1;font-size:12px;color:var(--muted)}.rv-player button{grid-column:2;grid-row:1/3;align-self:center;font-size:12px;min-height:36px;padding:7px 12px}.rv-turn-dot{grid-column:1/-1;color:var(--muted);font-size:11px}.rv-turn-dot::before{content:'';display:inline-block;width:7px;height:7px;background:var(--line);border-radius:50%;margin-right:8px}.rv-turn-dot[data-active="true"]::before{background:#34be7e;box-shadow:0 0 0 3px #34be7e20;animation:turn-breathe 1.65s infinite}.rv-turn{text-align:center;color:var(--gold);font-size:14px;min-height:26px;padding:7px 16px}#rv-board{display:block;width:100%;height:clamp(430px,62vh,760px);overflow:visible;filter:drop-shadow(0 9px 8px #0002)}.rv-cell{cursor:pointer;outline:none}.rv-cell:focus-visible>circle:first-of-type{stroke:var(--gold);stroke-width:2}.rv-last{padding:10px 20px;font-size:12px;color:var(--muted);text-align:center;min-height:36px}.rv-controls{padding:12px 18px;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rv-controls button{font-size:12px;min-height:35px}.rv-controls span{margin-left:auto;font-size:11px;color:var(--muted)}.rv-panel{padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--surface);margin-bottom:18px}.rv-panel h2{font-size:16px;margin:0 0 16px}.rv-panel h2 small{float:right;font-size:11px;font-weight:400;color:var(--muted)}.rv-panel p{font-size:13px;line-height:1.85;color:var(--muted)}.rv-panel small{color:var(--muted);font-size:11px}.rv-history{display:grid;gap:4px;max-height:280px;overflow:auto;font-size:13px;color:var(--muted)}.rv-history-item{text-align:left;font-size:12px;padding:9px 10px;min-height:34px}.rv-save{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.rv-save button{font-size:12px;min-height:35px}.rv-rules{max-width:960px;margin:24px auto;color:var(--muted);font-size:13px;line-height:1.9}.rv-rules summary{cursor:pointer;color:var(--ink)}.rv-dialog{width:min(480px,calc(100vw - 32px));border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);padding:28px}.rv-dialog h2{margin:12px 0}.rv-dialog p{color:var(--muted);line-height:1.8;font-size:13px}.rv-dialog label{display:grid;gap:8px;margin:18px 0;font-size:13px}.rv-dialog label[hidden]{display:none}.rv-dialog select{width:100%;min-height:44px}.rv-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
body.reveal-focus[data-view="fun"] .sidebar,body.reveal-focus[data-view="fun"] .topbar,body.reveal-focus .rv-heading,body.reveal-focus .rv-aside,body.reveal-focus .rv-rules{display:none!important}body.reveal-focus[data-view="fun"] .workspace{margin-left:0;width:100%}body.reveal-focus[data-view="fun"] main{padding:8px}body.reveal-focus .rv-layout{grid-template-columns:1fr}body.reveal-focus #rv-board{height:calc(100vh - 285px);min-height:360px}.rv-dialog::backdrop{background:#12182899;backdrop-filter:blur(4px)}
@media(max-width:1100px){.rv-layout{grid-template-columns:minmax(0,1fr)}.rv-aside{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rv-heading{margin-top:0}#rv-board{height:62vh}.rv-lobby-art{justify-content:flex-start}}
@media(max-width:640px){.rv-players{margin:12px 10px;gap:8px}.rv-player{grid-template-columns:1fr;padding:10px}.rv-player button{grid-column:1;grid-row:auto}.rv-player strong{font-size:12px}.rv-toolbar{padding:12px}.rv-aside{grid-template-columns:1fr}.rv-controls span{width:100%;margin-top:6px}#rv-board{min-height:330px;height:52vh}.rv-heading h1{font-size:25px}.rv-lobby{margin:10px auto}.rv-dialog{padding:22px}.rv-controls{padding:10px}}
@media(prefers-reduced-motion:reduce){.rv-turn-dot[data-active="true"]::before{animation:none}}
/* Keep the playing surface in view on desktop; put controls in its side space. */
#view-fun:has(#rv-match:not([hidden])) .rv-heading{margin:0 0 12px}
#view-fun:has(#rv-match:not([hidden])) .rv-heading .eyebrow,#view-fun:has(#rv-match:not([hidden])) .rv-heading p{display:none}
#view-fun:has(#rv-match:not([hidden])) .rv-heading h1{font-size:24px;margin:4px 0}
.rv-notice:empty{display:none}
.rv-time-label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.rv-time-label select{min-height:36px;max-width:210px}.rv-search-status{text-align:center;color:var(--gold);font-size:12px;line-height:1.6;min-height:26px;padding:3px 14px}.rv-controls [hidden]{display:none!important}.rv-dialog{max-height:90vh;overflow:auto}#match-dialog details{margin:12px 0;padding:10px 0}#match-dialog summary{cursor:pointer;color:var(--muted)}
@media(min-width:1200px){.rv-stage{position:relative}.rv-players{position:absolute;top:84px;left:16px;right:16px;grid-template-columns:170px 170px;justify-content:space-between;margin:0;z-index:1}.rv-player{grid-template-columns:1fr;align-content:start}.rv-player button{grid-column:1;grid-row:auto}.rv-turn{padding-top:13px;min-height:38px}#rv-board{height:clamp(370px,calc(100dvh - 370px),760px)}body.reveal-focus #rv-board{height:calc(100dvh - 200px);min-height:370px}}
