/* Signed-in game lobby. Rooms and tables supply their own layout and palette. */
#app:has(> .pavilion-lobby) {
 display:flex; flex-direction:column; position:relative; isolation:isolate; overflow:clip;
 width:100%; height:100vh; height:100svh; min-height:0; background:var(--tcn-night);
}
.pavilion-lobby,.pv-header {
 --pv-ink:var(--tcn-text); --pv-muted:var(--tcn-muted); --pv-line:var(--tcn-edge); --pv-blue:var(--tcn-accent);
 --pv-space:clamp(14px,3.5vw,64px); --pv-font:"Inter",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
 color:var(--pv-ink); color-scheme:dark; font-family:var(--pv-font);
}
.pv-header.site-header {
 position:relative; z-index:3; flex:none; padding-top:var(--browse-top,env(safe-area-inset-top));
 container:pv-header / inline-size; background:var(--tcn-surface); border:0; border-bottom:1px solid var(--pv-line); box-shadow:none;
}
.pv-bar {
 display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center;
 gap:clamp(12px,2cqw,30px); min-height:76px; padding:10px max(var(--pv-space),var(--browse-right,env(safe-area-inset-right))) 10px max(var(--pv-space),var(--browse-left,env(safe-area-inset-left)));
}
.pv-wordmark,.pv-member,.pv-member-actions,.pv-header .pv-account,.pv-wallet,.pv-top-tools { display:flex; align-items:center }
.pv-wordmark { justify-self:start; color:var(--tcn-text) }
.pv-wordmark .tcn-identity { color:inherit; width:206px; max-width:100%; height:auto }
.pv-member { min-width:0; justify-self:end; gap:clamp(8px,1cqw,16px) }
.pv-header .pv-account { gap:8px; padding:0; min-width:0; text-align:left; color:var(--pv-ink); background:none; border:none; box-shadow:none }
.pv-header .player-portrait { flex:none; width:40px; height:40px; border:1px solid var(--pv-line); border-radius:50%; background:var(--tcn-raised); box-shadow:none }
.pv-header .player-level { background:var(--tcn-action); color:#fff; border:1px solid #fff }
.pv-player { display:grid; gap:3px; min-width:0 }
.pv-player b,.pv-player small { display:block; max-width:12ch; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.pv-player b { font:700 15px/1.2 var(--pv-font) }
.pv-player small { font:500 10px/1.15 var(--pv-font); color:var(--pv-muted) }
.pv-wallet {
 flex:none; gap:8px; min-height:42px; padding:4px 12px; background:var(--tcn-raised); color:var(--pv-ink);
 border:1px solid var(--pv-line); border-radius:8px; text-align:left; box-shadow:none;
}
.pv-coin { display:grid; place-items:center; width:23px; height:23px; border-radius:50%; background:var(--tcn-raised); color:var(--tcn-accent); font:700 17px/1 Georgia,serif }
.pv-wallet-copy { min-width:0; font-variant-numeric:tabular-nums }
.pv-wallet-copy small,.pv-wallet-copy b { display:block }
.pv-wallet-copy small { color:var(--pv-muted); font:500 10px/1.2 var(--pv-font) }
.pv-wallet-copy b { color:var(--pv-ink); font:750 15px/1.2 var(--pv-font) }
.pv-header .pv-wallet-copy .balance-compact { display:none }
.pv-member-actions,.pv-top-tools { gap:6px }
.pv-action,.pv-language,.pv-top-tools > .pv-tool,.pv-top-tools > [data-game-fullscreen],.pv-menu > summary {
 display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:42px; padding:0 12px;
 border:1px solid var(--pv-line); border-radius:7px; background:var(--tcn-surface); color:var(--pv-ink);
 box-shadow:none; font:650 13px/1.2 var(--pv-font); white-space:nowrap; cursor:pointer;
}
.pv-action.pv-recharge { background:var(--tcn-action-fill); border-color:var(--pv-blue); color:#fff }
.pv-member-actions svg,.pv-top-tools svg,.pv-link svg { flex:none; width:18px; height:18px }
.pv-language { position:relative }
.pv-language::after { content:""; width:5px; height:5px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:translateY(-1px) rotate(45deg) }
.pv-language select { position:absolute; inset:0; width:100%; height:100%; cursor:pointer; opacity:0 }
.pv-top-tools { justify-self:end }
.pv-top-tools > [data-game-fullscreen],.pv-menu > summary { width:42px; padding:0 }
.pv-menu { position:relative }
.pv-menu > summary { list-style:none }
.pv-menu > summary::-webkit-details-marker { display:none }
.pv-menu[open] > summary { color:var(--pv-blue); background:var(--tcn-raised); border-color:var(--tcn-edge-active) }
.pv-menu-panel {
 position:absolute; top:calc(100% + 8px); right:0; width:min(350px,calc(100cqw - 30px)); max-height:min(65svh,510px);
 overflow:auto; overscroll-behavior:contain; padding:14px; border:1px solid var(--pv-line); border-radius:12px;
 background:var(--tcn-surface); color:var(--pv-ink); box-shadow:0 12px 36px #17284629;
}
.pv-menu-panel .rb-compact { display:grid; gap:6px; margin:0; padding:0; background:none; border:0 }
.pv-menu-panel .rb-compact label { color:var(--pv-ink) }
.pv-menu-panel .rb-compact > div { min-width:0 }
.pv-menu-panel .rb-compact input { flex:1; width:0; background:var(--tcn-surface); color:var(--pv-ink); border-color:var(--tcn-edge) }
.pv-menu-panel .rb-compact input::placeholder { color:var(--pv-muted) }
.pv-menu-panel .rb-primary { background:var(--tcn-action-fill); color:#fff; border-color:var(--pv-blue) }
.pv-menu-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-block:12px }
.pv-menu-actions > :is(a,button) { display:grid; place-items:center; min-height:42px; padding:5px; border:1px solid var(--pv-line); border-radius:6px; color:var(--pv-ink); background:var(--tcn-surface); text-align:center; text-decoration:none; font-size:13px }
.pv-platforms,.pv-legal { display:flex; flex-wrap:wrap; gap:0 12px; border-top:1px solid var(--pv-line) }
.pv-menu-panel .pv-platforms a,.pv-legal a { display:inline-flex; align-items:center; min-height:40px; color:var(--pv-blue); text-decoration:none; font-size:13px }
.pv-menu-panel .pv-legal a { color:var(--pv-muted); font-size:12px }
.pv-header :is(button,summary,a):focus-visible,.pv-language:focus-within,.pavilion-lobby :is(button,a):focus-visible { outline:3px solid var(--tcn-accent); outline-offset:2px }

.pavilion-lobby {
 position:relative; flex:1; min-width:0; min-height:0; display:grid; grid-template-columns:minmax(0,1fr);
 grid-template-rows:auto auto minmax(0,1fr) auto; container:pavilion-floor / size;
 background:var(--tcn-floor); --pv-left:max(var(--pv-space),var(--browse-left,env(safe-area-inset-left)));
 --pv-right:max(var(--pv-space),var(--browse-right,env(safe-area-inset-right)));
}
.pv-intro {
 position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
 min-height:clamp(84px,16cqh,152px); margin:clamp(10px,2.4cqh,26px) var(--pv-right) 0 var(--pv-left); padding:12px clamp(16px,2.6cqw,42px);
 color:#fff; background:var(--tcn-action); border-radius:12px;
}
.pv-intro::before {
 content:""; position:absolute; z-index:-1; inset:0;
 background:linear-gradient(90deg,#0e0f11f5 0%,#17191bab 43%,#1a304e40),url('/art/login-stadium.webp') center 56% / cover no-repeat;

}
.pv-intro h1 { margin:0; color:#fff; font:820 clamp(27px,3.1cqw,54px)/1.13 var(--pv-font); letter-spacing:-.035em; text-shadow:none }
.pv-game-count { margin-top:5px; color:var(--tcn-text); font:600 clamp(12px,1.05cqw,16px)/1.3 var(--pv-font); font-variant-numeric:tabular-nums }
.pv-dock { display:flex; align-items:center; justify-content:space-between; min-width:0; gap:12px; padding:clamp(8px,1.8cqh,18px) var(--pv-right) clamp(8px,1.8cqh,18px) var(--pv-left) }
.pv-tabs { min-width:0; display:flex; align-items:center; gap:5px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none }
.pv-tabs::-webkit-scrollbar,.pv-gallery::-webkit-scrollbar { display:none }
.pv-tab,.pv-link,.pv-return { font:650 14px/1.15 var(--pv-font); text-decoration:none; white-space:nowrap }
.pv-tab { flex:none; min-height:39px; padding:6px clamp(10px,1.2cqw,20px); color:var(--pv-muted); border:1px solid transparent; background:none; border-radius:6px }
.pv-tab.on { background:var(--tcn-action-fill); border-color:var(--tcn-edge-active); color:white }
.pv-tabs .pv-tab:focus-visible { outline-offset:-3px }
.pv-dock-end { display:flex; flex:none; align-items:center; gap:clamp(8px,1.4cqw,24px) }
.pv-link,.pv-return { display:inline-flex; align-items:center; justify-content:center; min-height:39px; border:0; border-radius:6px }
.pv-link { gap:6px; padding:4px; color:var(--tcn-muted); background:none }
.pv-return { padding:6px 12px; color:var(--pv-blue); background:var(--tcn-raised) }
.pv-return[hidden],.pv-empty[hidden] { display:none }
.pv-gallery.grid {
 --pv-gap:clamp(8px,1.25cqw,21px); --pv-cols:5.18;
 grid-area:3/1;
 display:grid; grid-auto-flow:column; grid-template-columns:none; grid-template-rows:repeat(2,minmax(0,1fr));
 grid-auto-columns:calc((100% + var(--pv-gap)) / var(--pv-cols) - var(--pv-gap)); gap:var(--pv-gap);
 align-items:stretch; align-content:stretch; min-width:0; min-height:0; width:100%; margin:0;
 padding:3px var(--pv-right) 3px var(--pv-left); scroll-padding-inline:var(--pv-left) var(--pv-right);
 overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scrollbar-width:none; -webkit-overflow-scrolling:touch;
}
.pv-display { position:relative; min-width:0; min-height:0 }
.pv-exhibit.tile {
 --pv-tone:#18345b; --pv-tint:#38598b; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; position:relative;
 width:100%; height:100%; min-height:0; padding:0; overflow:hidden; border:1px solid var(--tcn-edge); border-radius:15px;
 background:var(--tcn-card); color:var(--pv-ink); text-decoration:none; text-align:left; box-shadow:0 2px 5px #1c315608;
 -webkit-tap-highlight-color:transparent; transition:border-color .16s,box-shadow .16s;
}
.pv-exhibit.tile-board { --pv-tone:#163952; --pv-tint:#306172 }
.pv-exhibit.tile-casual { --pv-tone:#252e56; --pv-tint:#495d88 }
.pv-exhibit.tile-fish { --pv-tone:#123551; --pv-tint:#266582 }
.pv-exhibit.tile-slots { --pv-tone:#203854; --pv-tint:#48607e }
.pv-exhibit.tile::after { content:none }
.pv-object { position:relative; overflow:hidden; flex:1; min-height:0; isolation:isolate; background:linear-gradient(115deg,var(--pv-tone),var(--pv-tint)) }
.pv-object::before { content:""; position:absolute; width:65%; height:200%; top:-85%; right:-23%; transform:rotate(31deg); border-left:1px solid #fff9; background:#ffffff29 }
.pv-exhibit.tile .pv-piece {
 position:absolute; z-index:1; inset:6% 6% 5%; width:88%; height:89%; aspect-ratio:auto; display:block; object-fit:contain; object-position:center bottom;
 background:none; transform:none; filter:drop-shadow(0 3px 4px #36476a29); pointer-events:none;
}
/* Select artwork by the card's measured shape, including rotated and split-screen layouts. */
.pv-object.pv-poster { container:pv-poster / size; }
.pv-poster::before { content:none; }
.pv-poster-art {
 position:absolute; inset:0; background:var(--pv-square) center / cover no-repeat;
}
@container pv-poster (min-aspect-ratio:3/2) {
 .pv-poster-art { background-image:var(--pv-wide); }
}
.pv-card-info {
 display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; row-gap:3px; column-gap:5px;
 padding:clamp(8px,1cqh,13px) clamp(9px,1.1cqw,18px); border-top:1px solid var(--tcn-edge); background:var(--tcn-surface);
}
.pv-exhibit .tile-title {
 grid-column:1; display:block; margin:0; padding:0; min-width:0; color:var(--pv-ink);
 font:730 clamp(14px,1.38cqw,24px)/1.2 var(--pv-font); overflow-wrap:anywhere; text-shadow:none;
}
.pv-capacity { display:flex; align-items:center; gap:5px; grid-column:1; color:var(--pv-muted); font:550 clamp(11px,.85cqw,14px)/1.2 var(--pv-font); font-variant-numeric:tabular-nums }
.pv-capacity svg { color:var(--tcn-muted); flex:none; width:1.1em; height:1.1em }
.pv-enter { display:grid; place-items:center; grid-column:2; grid-row:1/3; width:26px; height:26px; border:1px solid var(--tcn-edge); border-radius:50%; color:var(--tcn-accent) }
.pv-enter svg { width:14px; height:14px }
.pv-exhibit .tile-maintenance { position:absolute; top:7px; left:7px; z-index:2; max-width:calc(100% - 14px); background:#fff2d7; color:#644000; border:1px solid #c8a66d }
.pv-empty { grid-area:3/1; place-self:center; z-index:1; margin:0; padding:8px; color:var(--pv-muted); pointer-events:none }
.pv-pager { grid-area:4/1; display:flex; align-items:center; justify-content:center; gap:10px; padding:4px 12px max(4px,var(--browse-bottom,env(safe-area-inset-bottom))); height:auto }
.pv-pager[data-static] { visibility:hidden }
.pv-step { display:grid; place-items:center; width:40px; min-height:38px; padding:0; border:0; border-radius:6px; color:var(--tcn-muted); background:none }
.pv-step:disabled { opacity:.34; cursor:default }
.pv-step svg { width:16px; height:16px }
.pv-track { position:relative; width:clamp(86px,11cqw,160px); height:4px; border-radius:4px; background:var(--tcn-edge) }
.pv-track i { position:absolute; top:0; height:100%; border-radius:inherit; background:var(--tcn-accent) }
@media (hover:hover) {
 .pv-exhibit.tile:hover { transform:none; border-color:var(--tcn-edge-active); box-shadow:0 2px 7px #234c9920 }
 .pv-exhibit.tile:hover .pv-enter { background:var(--tcn-action-fill); color:#fff; border-color:var(--pv-blue) }
 .pv-action:hover,.pv-language:hover,.pv-top-tools :is(button,summary):hover,.pv-link:hover,.pv-tab:not(.on):hover { color:var(--pv-blue); background:var(--tcn-raised) }
 .pv-action.pv-recharge:hover { color:#fff; background:var(--tcn-action) }
}
@container pv-header (max-width:1150px) {
 .pv-bar { min-height:63px; gap:10px; padding-block:6px }
 .pv-wordmark .tcn-identity { width:166px }
 .pv-header .pv-wallet-copy #balance { display:none }
 .pv-header .pv-wallet-copy .balance-compact { display:block }
 .pv-header .pv-account { gap:5px }
 .pv-player b { max-width:8ch }
 .pv-member,.pv-member-actions,.pv-top-tools { gap:5px }
 .pv-action,.pv-language,.pv-top-tools > .pv-tool { padding-inline:8px }
 .pv-tool span { display:none }
 .pv-top-tools > .pv-tool { width:40px }
}
@container pv-header (max-width:890px) {
 .pv-bar { min-height:54px; padding:4px max(12px,var(--browse-right,env(safe-area-inset-right))) 4px max(12px,var(--browse-left,env(safe-area-inset-left))); gap:7px }
 .pv-wordmark .tcn-identity { width:142px }
 .pv-player b { font-size:13px; max-width:7ch }
 .pv-header .player-portrait { width:32px; height:32px }
 .pv-wallet { min-height:38px; padding:3px 6px; gap:4px }
 .pv-wallet-copy b { font-size:13px }
 .pv-action,.pv-language,.pv-top-tools > .pv-tool,.pv-menu > summary,.pv-top-tools > [data-game-fullscreen] { min-height:38px; padding-inline:6px }
 .pv-top-tools > .pv-tool,.pv-menu > summary,.pv-top-tools > [data-game-fullscreen] { width:36px }
}
@container pv-header (max-width:720px) {
 .pv-bar { grid-template-columns:minmax(0,1fr) auto; padding-block:5px; gap:5px 8px }
 .pv-wordmark { grid-area:1/1 }
 .pv-top-tools { grid-area:1/2 }
 .pv-member { grid-area:2/1/3/-1; width:100%; justify-self:stretch; flex-wrap:wrap }
 .pv-member-actions { margin-left:auto }
 .pv-language { max-width:100% }
}
@container pv-header (max-width:445px) {
 .pv-player small { font-size:9px }
 .pv-coin { display:none }
 .pv-member { column-gap:5px }
 .pv-member-actions { gap:3px }
 .pv-member-actions .pv-action { padding-inline:6px; font-size:12px }
 .pv-action svg { display:none }
 .pv-language { padding-inline:5px; font-size:12px }
 .pv-language svg { width:15px }
}
@container pv-header (max-width:350px) {
 .pv-wallet { margin-left:auto }
 .pv-member-actions { flex:1 0 100% }
 .pv-member-actions > * { flex:1 }
}
@container pavilion-floor (max-width:1150px) { .pv-gallery.grid { --pv-cols:4.24 } }
@container pavilion-floor (max-width:800px) {
 .pv-gallery.grid { --pv-cols:3.18 }
 .pv-tab { font-size:13px; padding-inline:10px }
 .pv-link { width:36px; min-height:38px; padding:0 }
 .pv-link span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
 .pv-dock-end { gap:1px }
}
@container pavilion-floor (max-width:550px) {
 .pv-gallery.grid { --pv-cols:2.12; --pv-gap:8px }
 .pv-intro { min-height:72px; padding:10px 14px }

 .pv-dock { gap:4px }
 .pv-tabs { gap:1px }
 .pv-tab { padding-inline:9px }
 .pv-dock-end { border-left:1px solid var(--pv-line); padding-left:4px }
 .pv-return { max-width:20cqw; overflow:hidden; white-space:normal; font-size:11px; padding:4px }
 .pv-enter { width:20px; height:20px }
 .pv-card-info { padding:7px 8px }
 .pv-exhibit .tile-title { font-size:15px }
}
@container pavilion-floor (max-height:440px) {
 .pv-intro { flex-direction:row; justify-content:flex-start; align-items:center; gap:10px; margin-top:6px; min-height:36px; padding:5px 14px; border-radius:7px }
 .pv-intro h1 { font-size:21px }
 .pv-game-count { font-size:11px; margin:0 }

 .pv-dock { padding-block:3px }
 .pv-tab,.pv-return,.pv-link { min-height:32px; font-size:12px }
 .pv-gallery.grid { row-gap:6px }
 .pv-step { min-height:24px }
 .pv-pager { padding-block:2px max(2px,var(--browse-bottom,env(safe-area-inset-bottom))) }
 .pv-card-info { padding:3px 8px; row-gap:1px }
 .pv-exhibit .tile-title { font-size:13px }
 .pv-capacity { font-size:10px }
 .pv-enter { width:17px; height:17px }
}
@media (prefers-reduced-motion:reduce) { .pv-exhibit.tile { transition:none } }

/* The Android browser uses the same landscape space as the native WebView.
   Container units follow the stage even when the browser cannot lock orientation. */
html[data-browse-landscape] {
 --browse-top:env(safe-area-inset-top); --browse-right:env(safe-area-inset-right);
 --browse-bottom:env(safe-area-inset-bottom); --browse-left:env(safe-area-inset-left);
}
html[data-browse-landscape].table-turned {
 --browse-top:env(safe-area-inset-right); --browse-right:env(safe-area-inset-bottom);
 --browse-bottom:env(safe-area-inset-left); --browse-left:env(safe-area-inset-top);
}
html[data-browse-landscape],html[data-browse-landscape] body { margin:0;overflow:hidden;overscroll-behavior:none; }
html[data-browse-landscape] #app { width:100%;height:100vh;height:100dvh;min-height:0;overflow:hidden; }
html[data-browse-landscape].table-turned #app { height:100%; }
html[data-browse-landscape] .pv-menu-panel { max-height:calc(100cqh - 66px - var(--browse-top)) }
html[data-browse-landscape] .pavilion-lobby,html[data-browse-landscape] .pv-header { --pv-space:clamp(12px,2.2cqw,28px) }
html[data-browse-landscape] #main.wrap:has(.rb-venue),html[data-browse-landscape] #roomPage { width:100%;height:100%; }
html[data-browse-landscape] .rb-venue { height:100%;min-height:0; }
html[data-browse-landscape].table-turned :is(.pv-gallery,.pv-tabs,.pv-menu-panel,.rb-venue-options,.rb-venue-directory,#overlay .modal) { touch-action:pinch-zoom; }

/* Keep the two rows in separate painted tiles on Android WebView during horizontal scrolling. */
html[data-browse-landscape] .pv-display { transform:translateZ(0);backface-visibility:hidden; }


/* Lobby and room-browser dialogs share the public site's player palette. */
#overlay .pv-dialog-cover {
 --dlg-ink:var(--tcn-text); --dlg-muted:var(--tcn-muted); --dlg-line:var(--tcn-edge); --dlg-blue:var(--tcn-accent);
 --dlg-tint:var(--tcn-raised); --dlg-surface:var(--tcn-surface); --dlg-pad:clamp(16px,2.2vw,28px);
 --cream:var(--dlg-ink); --muted:var(--dlg-muted); --gold:var(--dlg-blue); --line:var(--dlg-line);
 --ink:var(--dlg-ink); --surface:var(--dlg-surface); --bg:var(--tcn-night); --red:var(--tcn-error);
 color-scheme:dark; color:var(--dlg-ink); font-family:var(--player-script-sans,"Inter"),system-ui,sans-serif;
 align-items:center; justify-content:center; box-sizing:border-box; overflow:hidden;
 padding:max(12px,var(--browse-top,env(safe-area-inset-top))) max(12px,var(--browse-right,env(safe-area-inset-right))) max(12px,var(--browse-bottom,env(safe-area-inset-bottom))) max(12px,var(--browse-left,env(safe-area-inset-left)));
 background:rgba(18,29,52,.47);
}
#overlay .pv-dialog-cover .modal {
 width:min(552px,100%); min-width:0; max-width:100%; max-height:100%; margin:0;
 box-sizing:border-box; overflow:auto; overscroll-behavior:contain; scroll-padding:72px 8px 16px;
 padding:0 var(--dlg-pad) var(--dlg-pad); border:1px solid var(--tcn-edge); border-radius:16px;
 background:var(--dlg-surface); color:var(--dlg-ink); box-shadow:0 18px 66px #1123453b;
 line-height:1.5; font-variant-numeric:tabular-nums; overflow-wrap:anywhere;
}
#overlay .pv-dialog-cover .sheet-handle {
 position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:12px;
 min-height:65px; margin:0 calc(0px - var(--dlg-pad)) 18px; padding:9px var(--dlg-pad); border-bottom:1px solid var(--dlg-line);
 background:var(--dlg-surface);
}
#overlay .pv-dialog-cover .sheet-handle::before { content:none }
#overlay .pv-dialog-cover :is(h3,h4,h5) { color:var(--dlg-ink); font-family:inherit; font-weight:720; line-height:1.3 }
#overlay .pv-dialog-cover .sheet-handle h3 { margin:0; font-size:clamp(20px,2vw,25px); font-weight:760 }
#overlay .pv-dialog-cover .sheet-handle .x {
 flex:none; display:grid; place-items:center; width:40px; height:40px; min-height:40px; padding:0;
 color:var(--tcn-muted); border:1px solid var(--dlg-line); background:var(--tcn-night); border-radius:9px; font:400 25px/1 system-ui,sans-serif;
}
#overlay .pv-dialog-cover .modal > p:not(:empty) { margin-block:10px }
#overlay .pv-dialog-cover .modal > h3:not(:first-child) { font-size:1.05rem; margin-block:18px 6px }
#overlay .pv-dialog-cover .fine { color:var(--dlg-muted); line-height:1.5 }
#overlay .pv-dialog-cover :is(.neg,#formError:not(:empty)) { color:var(--tcn-error) }
#overlay .pv-dialog-cover .pos { color:var(--tcn-good) }
#overlay .pv-dialog-cover #formError:empty { display:none }
#overlay .pv-dialog-cover #formError:not(:empty) { background:#472739; border-radius:7px; padding:8px 12px }
#overlay .pv-dialog-cover .controls { align-items:center; gap:8px; flex-wrap:wrap }
#overlay .pv-dialog-cover :is(.primary,.secondary,.subtle,.linkbtn,.bean-start,.bean-take,.avatar-choice) {
 min-height:42px; max-width:100%; font-family:inherit; font-size:14px; font-weight:650;
 white-space:normal; overflow-wrap:anywhere; text-shadow:none; box-shadow:none; cursor:pointer;
}
#overlay .pv-dialog-cover :is(.primary,.secondary,.subtle,.bean-start,.bean-take) { padding:9px 15px; border-radius:7px; line-height:1.35 }
#overlay .pv-dialog-cover :is(.primary,.bean-take) { color:white; background:var(--tcn-action-fill); border:1px solid var(--dlg-blue) }
#overlay .pv-dialog-cover :is(.secondary,.subtle,.bean-start) { color:var(--dlg-ink); background:var(--tcn-surface); border:1px solid var(--tcn-edge) }
#overlay .pv-dialog-cover :is(.linkbtn,.modal a:not(.primary,.provider-button)) { color:var(--tcn-accent); text-underline-offset:3px }
#overlay .pv-dialog-cover .linkbtn { background:transparent; border:0 }
#overlay .pv-dialog-cover button:disabled { opacity:.64; cursor:default }
#overlay .pv-dialog-cover label { font-weight:580; color:var(--dlg-ink) }
#overlay .pv-dialog-cover :is(input:not([type=checkbox],[type=radio],[type=range],[type=hidden]),select,textarea) {
 box-sizing:border-box; min-width:0; max-width:100%; min-height:44px;
 color:var(--dlg-ink); background:var(--tcn-surface); border:1px solid var(--tcn-edge); border-radius:7px;
 padding:8px 10px; font-family:inherit; font-size:16px;
}
#overlay .pv-dialog-cover :is(input,textarea)::placeholder { color:var(--tcn-muted) }
#overlay .pv-dialog-cover :is(input[type=checkbox],input[type=radio],input[type=range],progress) { accent-color:var(--dlg-blue) }
#overlay .pv-dialog-cover :is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid var(--tcn-accent); outline-offset:2px }
#overlay .pv-dialog-cover .empty { margin:0; padding:22px 14px; text-align:center; background:var(--tcn-surface); color:var(--dlg-muted); border-radius:9px }
#overlay .pv-dialog-cover .controls > * { min-width:0 }
@media (hover:hover) {
 #overlay .pv-dialog-cover :is(.secondary,.subtle,.x,.bean-start):hover { color:var(--tcn-accent); border-color:var(--tcn-edge-active); background:var(--tcn-raised) }
 #overlay .pv-dialog-cover :is(.primary,.bean-take):hover:not(:disabled) { background:var(--tcn-action) }
}
@media (max-width:650px) and (orientation:portrait) {
 html:not(.table-turned) #overlay .pv-dialog-cover { align-items:flex-end; padding:0 }
 html:not(.table-turned) #overlay .pv-dialog-cover .modal {
  max-height:calc(100% - max(18px,env(safe-area-inset-top))); width:100%; border-radius:17px 17px 0 0; border-bottom:0;
  padding-bottom:max(18px,env(safe-area-inset-bottom));
 }
 html:not(.table-turned) #overlay .pv-dialog-cover .sheet-handle { padding-top:14px; min-height:62px; margin-bottom:14px; touch-action:none }
 html:not(.table-turned) #overlay .pv-dialog-cover .sheet-handle::before {
  content:""; position:absolute; left:calc(50% - 16px); top:5px; width:32px; height:4px; border-radius:5px; background:var(--tcn-edge);
 }
}
@media (max-height:500px) and (orientation:landscape) {
 #overlay .pv-dialog-cover { padding-block:6px }
 #overlay .pv-dialog-cover .sheet-handle { min-height:48px; padding-block:3px; margin-bottom:10px }
}
html.table-turned #overlay .pv-dialog-cover .sheet-handle { min-height:48px; padding-block:3px; margin-bottom:10px }
@media (pointer:coarse) {
 #overlay .pv-dialog-cover :is(.sheet-handle .x,.primary,.secondary,.subtle,.bean-start,.bean-take,.linkbtn) { min-height:44px }
 #overlay .pv-dialog-cover .sheet-handle .x { width:44px }
}

/* Account, profile picker, sound settings and friends. */
#overlay .pv-dialog-cover #accountProfile {
 padding:14px 16px 8px; border:1px solid var(--tcn-edge); border-radius:10px; background:var(--dlg-tint);
}
#overlay .pv-dialog-cover .account-identity { gap:12px }
#overlay .pv-dialog-cover .account-identity b { font-size:1.12rem }
#overlay .pv-dialog-cover .player-portrait { background:var(--tcn-surface); border-color:var(--tcn-edge); box-shadow:none }
#overlay .pv-dialog-cover .player-level { color:#fff; background:var(--tcn-action); border-color:var(--dlg-surface) }
#overlay .pv-dialog-cover .profile-progress { margin:12px 0 6px }
#overlay .pv-dialog-cover .profile-progress p { margin-bottom:5px }
#overlay .pv-dialog-cover #accountProfile .row { background:none; padding:7px 0; border-bottom:0; border-top:1px solid var(--tcn-edge) }
#overlay .pv-dialog-cover :is(.profile-progress,.bean-progress) progress { appearance:none; border:0; border-radius:5px; background:var(--tcn-raised); overflow:hidden }
#overlay .pv-dialog-cover :is(.profile-progress,.bean-progress) progress::-webkit-progress-bar { background:var(--tcn-raised); border-radius:5px }
#overlay .pv-dialog-cover :is(.profile-progress,.bean-progress) progress::-webkit-progress-value { background:var(--tcn-action); border-radius:5px }
#overlay .pv-dialog-cover :is(.profile-progress,.bean-progress) progress::-moz-progress-bar { background:var(--tcn-action); border-radius:5px }
#overlay .pv-dialog-cover .player-language-field { margin-block:12px; gap:8px; font-size:14px; color:var(--dlg-ink) }
#overlay .pv-dialog-cover .player-language { color:var(--dlg-muted); max-width:100% }
#overlay .pv-dialog-cover .player-language select { min-height:40px; max-width:100%; padding:4px; border:0; color:var(--dlg-ink); font-weight:600 }
#overlay .pv-dialog-cover .account-shortcuts button { min-height:44px; color:var(--dlg-ink); background:var(--tcn-night); border:1px solid var(--dlg-line); border-radius:7px }
#overlay .pv-dialog-cover .account-shortcuts button:is(:hover,:active) { color:var(--dlg-blue); border-color:var(--tcn-edge-active); background:var(--dlg-tint) }
#overlay .pv-dialog-cover .profile-rules { border-color:var(--dlg-line); margin-bottom:0 }
#overlay .pv-dialog-cover :is(.profile-rules,.bean-level-rules) summary { color:var(--tcn-accent); min-height:38px; align-content:center; cursor:pointer }
#overlay .pv-dialog-cover .volume-setting { margin-top:0; padding-top:12px; border-top:0 }
#overlay .pv-dialog-cover .volume-setting output { color:var(--dlg-blue); font-weight:700 }
#overlay .pv-dialog-cover .volume-setting input[type=range] { background:transparent; border:0; accent-color:var(--dlg-blue) }
#overlay .pv-dialog-cover .table-voice-setting { min-height:40px; color:var(--dlg-ink); line-height:1.35 }
#overlay .pv-dialog-cover .table-voice-setting input { accent-color:var(--dlg-blue) }
#overlay .pv-dialog-cover .account-session { border-color:var(--dlg-line); padding-top:12px }
#overlay .pv-dialog-cover .provider-linked,#overlay .pv-dialog-cover .provider-linked span { color:var(--tcn-good) }
#overlay .pv-dialog-cover .avatar-choice { min-width:0; min-height:70px; padding:7px; background:var(--tcn-surface); border:1px solid var(--dlg-line); color:var(--dlg-ink) }
#overlay .pv-dialog-cover .avatar-choice[aria-pressed=true] { border-color:var(--dlg-blue); background:var(--dlg-tint); box-shadow:inset 0 0 0 1px var(--dlg-blue) }
#overlay .pv-dialog-cover .avatar-choice[aria-pressed=true]::after { color:#fff; background:var(--tcn-action) }
#overlay .pv-dialog-cover :is(.friend-profile,.friend-profile > div,.friend-actions) { min-width:0 }
#overlay .pv-dialog-cover .friend-actions { flex-wrap:wrap }
#overlay .pv-dialog-cover .friend-section h4 { color:var(--dlg-ink) }
#overlay .pv-dialog-cover #addFriendForm { padding:14px; background:var(--tcn-surface); border-radius:9px; border:1px solid var(--dlg-line) }
#overlay .pv-dialog-cover #addFriendForm .fine { margin:0 }
#overlay .pv-dialog-cover #friendRoster .fine { color:var(--dlg-muted) }

/* Daily rewards, task progress and expandable reward rules. */
#overlay .pv-dialog-cover .bean-free { background:#103f43; border-color:#2e6866 }
#overlay .pv-dialog-cover .bean-free strong { color:var(--tcn-good) }
#overlay .pv-dialog-cover .bean-free small { color:#b2dece }
#overlay .pv-dialog-cover .bean-balance { padding:13px 16px; color:var(--dlg-ink); background:var(--dlg-tint); border-color:var(--tcn-edge) }
#overlay .pv-dialog-cover .bean-pocket { background:var(--tcn-raised); border:0; border-radius:10px }
#overlay .pv-dialog-cover .bean-balance span:not(.bean-pocket) { color:var(--tcn-muted) }
#overlay .pv-dialog-cover .bean-balance strong { color:var(--tcn-accent); font-size:1.55rem }
#overlay .pv-dialog-cover .bean-level-rewards { background:var(--tcn-surface); border-color:var(--dlg-line) }
#overlay .pv-dialog-cover .bean-level-rewards > div { flex-wrap:wrap }
#overlay .pv-dialog-cover .bean-level-rewards > div > b { color:var(--dlg-blue) }
#overlay .pv-dialog-cover .bean-task { padding:11px; gap:10px; border-color:var(--dlg-line); background:var(--tcn-surface) }
#overlay .pv-dialog-cover .bean-task-icon { color:var(--tcn-accent) }
#overlay .pv-dialog-cover .bean-task-copy h4 { color:var(--dlg-ink); font-weight:700 }
#overlay .pv-dialog-cover .bean-task-copy p,#overlay .pv-dialog-cover .bean-progress small { color:var(--dlg-muted) }
#overlay .pv-dialog-cover .bean-prize { color:var(--tcn-warning) }
#overlay .pv-dialog-cover .bean-done { color:var(--tcn-good) }
#overlay .pv-dialog-cover .bean-level-rules dd { color:var(--dlg-ink) }
@media (max-width:400px) {
 #overlay .pv-dialog-cover .bean-task { display:grid; grid-template-columns:22px minmax(0,1fr); gap:6px }
 #overlay .pv-dialog-cover .bean-task-action { grid-column:2; margin-left:0; justify-self:start }
}

#app:has(> .pavilion-lobby) ~ #toast:not(:empty), #app:has(> .pavilion-lobby) #friendNotice {
 background:var(--tcn-action); color:white; border:1px solid var(--tcn-edge-active); box-shadow:0 5px 18px #12234233;
}
:is(#ios-install-guide,dialog.rb-copy-dialog) { color-scheme:dark; background:var(--tcn-surface); color:var(--tcn-text); border:1px solid var(--tcn-edge); border-radius:12px; box-shadow:0 15px 50px #15274736 }
:is(#ios-install-guide,dialog.rb-copy-dialog)::backdrop { background:#121d3478 }
#ios-install-guide :is(h2,strong) { color:var(--tcn-text); font-family:inherit }
#ios-install-guide .fine,.rb-copy-dialog label { color:var(--tcn-muted) }
:is(#ios-install-guide,dialog.rb-copy-dialog) input { color:var(--tcn-text); background:var(--tcn-surface); border-color:var(--tcn-edge) }
:is(#ios-install-guide,dialog.rb-copy-dialog) :is(.primary,#ios-install-close) { color:white; background:var(--tcn-action-fill); border-color:var(--tcn-edge-active) }

/* Wallet, order, withdrawal and transaction detail inside a player dialog. */
#overlay .pv-dialog-cover .modal #coinWallet { display:grid; gap:12px; min-width:0 }
#overlay .pv-dialog-cover .modal .coin-balance {
 display:flex; flex-flow:row wrap; gap:6px 18px; align-items:center; padding:16px 18px;
 background:var(--dlg-tint); color:var(--dlg-muted); border:1px solid var(--tcn-edge); border-radius:10px;
}
#overlay .pv-dialog-cover .modal .coin-balance strong { color:var(--tcn-accent); font:780 clamp(22px,3.6vw,32px)/1.2 var(--pv-font,system-ui,sans-serif); font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal .coin-balance small { color:var(--tcn-muted); font-size:.8rem; font-weight:600 }
#overlay .pv-dialog-cover .modal .bean-wallet-entry { min-width:0; min-height:44px; align-items:center; gap:12px; padding:9px 12px; background:var(--dlg-surface); color:var(--dlg-blue); border:1px solid var(--dlg-line); border-radius:8px; text-align:start }
#overlay .pv-dialog-cover .modal .bean-wallet-entry span:last-child { font-size:1.25rem }
#overlay .pv-dialog-cover .modal .bean-rate, #overlay .pv-dialog-cover .modal .bean-payment-summary { margin:0; padding:12px 14px; border:1px solid var(--dlg-line); border-radius:8px; background:var(--tcn-surface); font-variant-numeric:tabular-nums }
#overlay .pv-dialog-cover .modal .bean-rate { align-items:start; gap:5px 14px }
#overlay .pv-dialog-cover .modal .bean-rate strong, #overlay .pv-dialog-cover .modal .bean-payment-summary dd { color:var(--dlg-ink); font-weight:700; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal .bean-rate > span, #overlay .pv-dialog-cover .modal .bean-payment-summary dt { color:var(--dlg-muted) }
#overlay .pv-dialog-cover .modal .bean-payment-summary > div+div { margin-top:8px; padding-top:8px; border-top:1px solid var(--dlg-line) }
#overlay .pv-dialog-cover .modal .coin-label { color:var(--dlg-ink); font-weight:700 }
#overlay .pv-dialog-cover .modal .coin-packages { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(112px,100%),1fr)); gap:8px }
#overlay .pv-dialog-cover .modal .coin-pack { position:relative; min-width:0; display:grid; align-content:center; gap:3px; min-height:60px; padding:9px 12px; border:1px solid var(--dlg-line); border-radius:8px; background:var(--dlg-surface); color:var(--dlg-ink); text-align:start; white-space:normal; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal .coin-pack span { color:var(--dlg-muted); font-size:.82rem }
#overlay .pv-dialog-cover .modal .coin-pack[aria-pressed=true] { border-color:var(--dlg-blue); background:var(--dlg-tint); box-shadow:inset 0 0 0 1px var(--dlg-blue) }
#overlay .pv-dialog-cover .modal .coin-pack[aria-pressed=true] strong { color:var(--tcn-accent) }
#overlay .pv-dialog-cover .modal .coin-pack:focus-visible { outline:2px solid var(--dlg-blue); outline-offset:2px }
#overlay .pv-dialog-cover .modal .coin-create, #overlay .pv-dialog-cover .modal .coin-checkout { width:100%; min-height:44px; white-space:normal; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal .coin-service { padding:10px 12px; color:var(--dlg-muted); border-inline-start:3px solid var(--tcn-edge-active); background:var(--tcn-surface) }
#overlay .pv-dialog-cover .modal .coin-order { padding:12px 14px; border:1px solid var(--dlg-line); border-radius:8px }
#overlay .pv-dialog-cover .modal .coin-order .line { gap:4px 10px; padding-bottom:6px }
#overlay .pv-dialog-cover .modal .coin-order .line > strong { color:var(--dlg-ink) }
#overlay .pv-dialog-cover .modal .coin-order .row { align-items:baseline; gap:4px 12px; border-color:var(--dlg-line) }
#overlay .pv-dialog-cover .modal .coin-order .row > :first-child { color:var(--dlg-muted) }
#overlay .pv-dialog-cover .modal .coin-id { min-width:0; color:var(--dlg-ink); font-family:ui-monospace,monospace; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal .coin-history-link { border-color:var(--dlg-line) }
#overlay .pv-dialog-cover .modal .coin-archive { flex-wrap:wrap; color:var(--dlg-muted) }
#overlay .pv-dialog-cover .modal #currencyQuoteForm { display:flex; align-items:flex-end; flex-wrap:wrap; gap:8px 12px; min-width:0; margin:0; padding:12px; background:var(--tcn-surface); border:1px solid var(--dlg-line); border-radius:8px }
#overlay .pv-dialog-cover .modal #currencyQuoteForm label { flex:1 1 190px; min-width:0; margin:0 }
#overlay .pv-dialog-cover .modal #currencyQuoteForm output, #overlay .pv-dialog-cover .modal #currencyQuoteForm .fine { flex:1 1 100%; min-width:0 }
#overlay .pv-dialog-cover .modal #currencyQuoteForm output { color:var(--dlg-ink); font-weight:650; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal #currencyQuoteForm output:empty { display:none }
#overlay .pv-dialog-cover .modal .history { display:grid; gap:0; min-width:0; margin:0 }
#overlay .pv-dialog-cover .modal .history h4 { margin:14px 0 4px; color:var(--dlg-ink) }
#overlay .pv-dialog-cover .modal .history h4:first-child { margin-top:0 }
#overlay .pv-dialog-cover .modal .history .row { gap:6px 12px; padding:10px 0; border-color:var(--dlg-line); font-variant-numeric:tabular-nums }
#overlay .pv-dialog-cover .modal .history .row > div { min-width:0; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal .history .row > :is(.pos,.neg) { text-align:end; font-weight:700 }
#overlay .pv-dialog-cover .modal .history .row small { display:block; color:var(--dlg-muted); font-size:.78rem; font-weight:500 }
#overlay .pv-dialog-cover .modal .history .row > button { white-space:normal }
#overlay .pv-dialog-cover .modal [data-network] { min-width:0 }
#overlay .pv-dialog-cover .modal .panel:has(form[id^="usdtWithdrawalForm-"]) { min-width:0; padding:14px; color:var(--dlg-ink); background:var(--tcn-surface); border:1px solid var(--dlg-line); border-radius:8px }
#overlay .pv-dialog-cover .modal form[id^="usdtWithdrawalForm-"] { display:grid; gap:9px }
#overlay .pv-dialog-cover .modal form[id^="usdtWithdrawalForm-"] label, #overlay .pv-dialog-cover .modal form[id^="usdtWithdrawalForm-"] .fine { margin:0 }
#overlay .pv-dialog-cover .modal[data-dialog="withdraw"] p, #overlay .pv-dialog-cover .modal[data-dialog="withdraw"] .row > div { min-width:0; overflow-wrap:anywhere }
#overlay .pv-dialog-cover .modal[data-dialog="withdraw"] .row small { display:block; color:var(--dlg-muted); font-size:.78rem }
#overlay .pv-dialog-cover .modal[data-dialog="withdraw"] .row { align-items:baseline; gap:6px 12px; font-variant-numeric:tabular-nums }
#overlay .pv-dialog-cover .modal[data-dialog="withdraw"] [role=status] { padding:10px 12px; border-inline-start:3px solid var(--tcn-edge-active); color:var(--dlg-muted); background:var(--tcn-surface) }

.pv-wordmark .tcn-identity path[fill="#3155eb"] { fill:var(--tcn-accent); }

.pv-hero-actions { position:absolute; inset-inline-end:clamp(10px,5%,64px); top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:8px; }
.pv-hero-actions :is(a,button) { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; padding:6px 15px; border:1px solid var(--tcn-edge-active); border-radius:10px; font:650 14px var(--tcn-font); text-decoration:none; }
.pv-sports-entry { background:var(--tcn-surface); color:var(--tcn-text); }
.pv-hero-actions .pv-hero-deposit { color:var(--tcn-on-accent); background:var(--tcn-accent); }
.pv-hero-deposit svg { width:18px; height:18px; }
@container (max-width:600px) { .pv-hero-actions :is(a,button) { min-height:34px; padding:4px 9px; } }
