/* Owner-requested refinements; retain the circuit/paper/pixel identity. */
.genre-row { position:relative; overflow:visible; }
.genre-row .subchips { position:absolute; z-index:24; width:202px; height:30px; padding:0!important; margin:0!important; background:#11616a; color:#f3ffff; border:1px solid #092e36; box-shadow:2px 2px #162a2d; }
.subchips .sub-l { display:flex; gap:4px; align-items:center; font:600 9px var(--ui); padding:2px 5px; }
.subchips select { width:119px; min-width:0; height:24px; padding:2px; color:#f5ffff; background:#11616a; border:0; font:600 11px var(--ui); }
.view .genre-row .subchips .sub-l select { background:#11616a!important; color:#f5ffff!important; box-shadow:none!important; border:0!important; font:600 11px var(--ui)!important; height:28px!important; }
.view .genre-row .subchips .sub-l { color:#eaffff!important; height:28px; }
.guess-help { display:none; position:absolute; top:100%; right:0; width:202px; box-sizing:border-box; padding:9px; background:#0e3c43; color:white; font:12px/1.4 var(--ui); border:1px solid #58b5c3; }
.subchips:hover .guess-help,.subchips:focus-within .guess-help { display:block; }
.update-check { background:#171816!important; color:#fff5de!important; border:1px solid #171816!important; box-shadow:2px 2px #a7a398!important; font:600 10px/1.2 var(--ui)!important; padding:8px 9px!important; white-space:nowrap; width:auto!important; height:34px!important; min-height:34px!important; flex:0 0 auto; letter-spacing:0!important; }
.sortwrap .update-check { order:99; margin-left:3px!important; }
#discover-list { width:min(100%,1000px); margin:12px auto; }
#discover-list .p-row { display:grid!important; grid-template-columns:26px 44px minmax(0,max-content) 112px!important; justify-content:start; gap:12px!important; align-items:center; padding:12px 10px!important; min-height:72px; box-sizing:border-box; }
.people-summary { min-width:0; max-width:620px; }
#discover-list .p-row img { width:44px; height:44px; }
.people-heading { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px 14px; min-width:0; }
#discover-list .ti { font:600 16px/1.3 var(--ui); max-width:100%; }
#discover-list .meta { text-align:left!important; display:inline!important; white-space:nowrap; font:12px/1.3 var(--ui); }
#discover-list .ar { margin-top:4px; font:12px/1.4 var(--ui); }
.people-actions { min-width:0; }
#discover-list .lurklist-action,.fol .lurklist-action,#fol-list .lurklist-action { width:110px!important; max-width:100%!important; min-width:0!important; padding:5px 6px!important; min-height:28px!important; height:28px!important; font:600 10px/1.2 var(--ui)!important; gap:4px!important; box-sizing:border-box; }
#fol-list .lurklist-action { width:98px!important; height:25px!important; min-height:25px!important; font-size:9px!important; }
.scope-label { display:inline-block; margin-left:5px; color:#8ee9ff; font:700 8px var(--ui); letter-spacing:.04em; }
.demo-mode #me-avatar { image-rendering:pixelated; }
.wside { overflow-y:auto!important; overscroll-behavior:auto; }
.wside #wl-list,.wside .wl-list,.wside .wl-signal,.wside .panel,.wside #wl-active { max-height:none!important; overflow:visible!important; }
.wside .panel { flex-shrink:0; }
#w-mode { display:flex!important; gap:5px; }
.feed-view-controls { display:block!important; }
#crates-menu { position:fixed!important; z-index:800!important; top:calc(var(--H,112px) - 9px)!important; right:18px!important; left:auto!important; width:min(310px,calc(100vw - 24px)); max-height:65vh; overflow:auto; }
.hdr:has(#crates-menu:not(.hidden)) { z-index:800!important; }
.tdr-stamp { will-change:transform,opacity; }
.tdr-stamp.out { animation:watcher-stamp-exit 240ms cubic-bezier(.4,0,1,1) forwards!important; }
@keyframes watcher-stamp-exit { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(18px); } }
.pf-sanctuary { background:linear-gradient(#080e0b88,#080e0bc9),url('/web/art/header-crest.webp') center/cover!important; min-height:75px!important; }
.pf-sanctuary h2 { color:#fff5dc!important; font:700 24px var(--ui)!important; }
.pf-sanctuary .pf-kicker,.pf-sanctuary p { display:none; }
.pf-links { display:flex; gap:5px; flex-wrap:wrap; align-items:center; }
.pf-links input { flex:1 1 220px; width:auto!important; }
.pf-links input[hidden] { display:none!important; }
.pf-links button { flex:0 0 30px; }
.pf-session { margin-top:18px; padding:12px!important; font:12px/1.4 var(--ui); }
.profile-stats { margin-left:auto; padding:3px 6px!important; font-size:9px!important; }
body[data-view="stream"] #profile-body [data-a="stream"],body[data-view="dls"] #profile-body [data-a="stream"],body[data-view="mixes"] #profile-body [data-a="stream"] { display:none!important; }
.arena { background:linear-gradient(135deg,#132c30ee,#131820f2),url('/web/circuits.svg')!important; border:3px solid #1e3540!important; box-shadow:inset 0 0 0 2px #649394,4px 4px #0e1418!important; border-radius:0!important; }
.arena .arena-side { background:#0c171fe0!important; border:2px solid #749998!important; box-shadow:inset 0 0 0 3px #182931; padding:14px!important; }
.arena .arena-side.a { border-color:#68c9ed!important; }
.arena .arena-side.b { border-color:#ff8956!important; }
.arena .arena-pic { border-radius:0!important; border:3px double #90bcbe!important; background:repeating-linear-gradient(0deg,#19343d 0 4px,#142b32 4px 8px)!important; box-shadow:3px 3px #03090c!important; }
.arena .arena-vs { position:relative; display:grid; place-items:center; width:94px; height:74px; font:italic 700 34px/1 'Press Start 2P',monospace!important; letter-spacing:-7px; padding-right:7px; color:#ffe98e!important; -webkit-text-stroke:1px #9a421b; text-shadow:3px 3px #d14c20,6px 6px #090f19!important; background:linear-gradient(135deg,transparent 18%,#1a3e51 19% 80%,transparent 81%); border:0!important; border-radius:0!important; animation:none!important; transform:none!important; }
.arena .arena-vs::after { content:''; position:absolute; bottom:4px; left:15px; width:64px; height:3px; background:#ff7748; box-shadow:0 -60px #6ddfff; animation:vs-signal 3s ease-in-out infinite alternate; }
@keyframes vs-signal { to { opacity:.35; } }
.arena .arena-fight { border-radius:0!important; box-shadow:3px 3px #060d13!important; border:2px solid #ffc16e!important; }
.scene-legend kbd { display:none!important; }
.game-dock .quest-chest { position:relative!important; inset:auto!important; display:grid!important; place-items:center; width:32px!important; height:32px!important; min-width:32px!important; padding:1px!important; background:#111d18!important; border:1px solid #859784!important; }
.game-dock .quest-chest-label { display:none!important; }
.game-dock .quest-chest small { right:-3px!important; top:-4px!important; }
.row .r-stats { display:flex!important; flex-wrap:wrap; justify-content:center; align-content:center; gap:4px 7px!important; min-width:75px; }
.row .r-stats .r-heart { margin:0!important; flex:0 0 100%; }
.row .r-stats>span { font-size:10px; line-height:1.2; }
.row.compact .r-titleline { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.row.compact .feed-genre { display:inline-block!important; font:10px var(--ui); padding:3px 5px; border-left:3px solid var(--gc,#86a78f); background:#d8e3cd; color:#203323; max-width:130px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body:has(#library-load-status:not(.hidden)) #view-library .empty:not(.is-filtered) { display:none!important; } /* a search or filter with no matches still says so while loading */
@media(max-width:760px) {
 #discover-list .p-row { grid-template-columns:18px 34px minmax(0,1fr) 92px!important; gap:6px!important; padding:10px 2px!important; }
 #discover-list .p-row img { width:34px; height:34px; }
 #discover-list .ti { font-size:14px; }
 #discover-list .meta { font-size:10px; white-space:normal; }
 #discover-list .ar { font-size:10px; }
 #discover-list .lurklist-action { width:90px!important; font-size:9px!important; padding:4px!important; }
 .game-dock { position:fixed!important; top:auto!important; bottom:calc(var(--tab-h,58px) + var(--pl-h,58px) + var(--safe-b,0px) + 10px)!important; right:10px!important; }
 #quest-chest { display:grid!important; }
 .scope-label { font-size:7px; margin-left:3px; }
 #crates-menu { top:90px!important; right:10px!important; }
 .update-check { font-size:9px!important; padding:7px!important; }
 .arena .arena-vs { width:68px; height:64px; font-size:27px!important; }
}
@media(prefers-reduced-motion:reduce) { .arena .arena-vs::after { animation:none; } }
.p-expand { display:none; }
.player-sheet { position:fixed; inset:0; z-index:900; background:#101c18; color:#f5eddb; overflow-y:auto; overscroll-behavior:contain; font-family:var(--ui); padding:env(safe-area-inset-top) 18px max(22px,env(safe-area-inset-bottom)); box-sizing:border-box; }
.player-sheet header { position:sticky; top:0; z-index:2; display:flex; justify-content:space-between; align-items:center; min-height:56px; background:#101c18f5; border-bottom:1px solid #668273; touch-action:pan-x; }
.player-sheet header .icon-btn { color:#f6ead3!important; border-color:#6a8c7a!important; background:#1b3025!important; }
.ps-grip { position:absolute; width:34px; height:3px; background:#739380; top:5px; left:calc(50% - 17px); }
.ps-content { width:min(100%,430px); margin:14px auto; }
.ps-art { display:block; width:min(62vw,260px); aspect-ratio:1; object-fit:cover; margin:12px auto 22px; border:1px solid #739380; box-shadow:5px 5px #060e0b; touch-action:pan-x; }
.ps-title { font:600 22px/1.3 var(--ui); margin:0 0 5px; color:#fff5dc; }
.ps-artist { display:block; background:none; border:0; padding:0; font:500 15px/1.5 var(--ui); color:#9de3ed; text-align:left; }
.ps-date { color:#a2b2a8; font:12px var(--ui); }
.ps-wave { height:90px; margin-top:20px; position:relative; }
.ps-wave canvas { width:100%; height:82px; }
.ps-wave input { position:absolute; inset:0; width:100%; height:90px; margin:0; background:transparent; accent-color:#ff793b; cursor:ew-resize; opacity:.4; touch-action:none; }
.ps-time { display:block; text-align:right; font:12px var(--mono); color:#bbd4c1; }
.ps-status { margin:5px 0; min-height:18px; font-size:12px; color:#f5bc80; }
.ps-controls { display:flex; align-items:center; justify-content:space-between; gap:6px; margin:12px 0 24px; }
.ps-controls button { width:44px; height:44px; min-width:0; border:1px solid #638a74; background:#1a3127; color:#fff5dc; font:600 14px var(--ui); }
.ps-controls [data-player="p-play"] { width:62px; height:62px; background:#ff793b; color:#101812; border:2px solid #ffd69e; font-size:26px; }
.ps-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.ps-actions>* { min-height:38px; padding:8px; border:1px solid #608c76; background:#162b23; color:#eee4cd; font:600 11px/1.4 var(--ui); text-align:center; text-decoration:none; }
.ps-more { margin-top:18px; font-size:12px; }
.ps-more>div { display:flex; flex-wrap:wrap; gap:8px; padding:12px 0; }
.ps-more button,.ps-recovery button { padding:8px; color:#eddfbc; background:#172c22; border:1px solid #608c76; font:12px var(--ui); }
.ps-native-slot { height:166px; margin-top:8px; }
#sc-frame.sc-tap { position:fixed!important; inset:auto!important; left:var(--tap-left)!important; top:var(--tap-top)!important; width:var(--tap-width)!important; height:var(--tap-height)!important; opacity:1!important; visibility:visible!important; pointer-events:auto!important; z-index:901!important; }
.player-sheet-open { overflow:hidden; }
/* Keep the existing audio iframe in place (moving it can reload/lock audio on iOS).
   Raise its footer stacking context only while native recovery is visible. */
body.player-sheet-open.player-native-open #player { z-index:1000!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;pointer-events:none!important; }
body.player-sheet-open.player-native-open #player>:not(#sc-frame),body.player-sheet-open.player-native-open #player::before,body.player-sheet-open.player-native-open #player::after { visibility:hidden!important;pointer-events:none!important; }
.player-sheet-open .toast { z-index:1100!important; }
@media(max-width:760px) { .has-track .p-expand { display:block; width:22px; min-width:22px; background:transparent; border:0; color:#c2e0c6; } .player .p-meta { cursor:pointer; } }
