/* R71 · Secondary game scenes. These selectors correspond to the actual mounted
   lobby/QR/encyclopedia/help owners. No visibility owner or network state changes.
   Retire nested cyber frames, including border-image and inner backdrop layers. */
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub){
 --r71-edge:clamp(20px,4.4vw,84px);--r71-rule:#a7895152;--r71-ink:#f4ecdc;--r71-muted:#bcb09b;
 --online-cyan:#c9a86a;--online-blue:#bfc1bd;--online-gold:#d8bb83;--online-red:#d9a5ac;--online-green:#b5c4a1;--online-text:#f4ecdc;--online-muted:#bcb09b;
 --r25r23-couch-cyan:#d8bb83;--r25r23-couch-pink:#bfc1bd;--r25r23-couch-gold:#d8bb83;--r25r23-couch-ok:#b5c4a1;--r25r23-couch-danger:#d9a5ac;--r25r23-couch-line:#a7895152;
 position:fixed!important;inset:0!important;padding:0!important;overflow:hidden!important;
 background:#120f0c!important;
 color:var(--r71-ink)!important;isolation:isolate;font-family:var(--sk-r70-body)!important;
}
/* A single architectural layer, optically separated from the focused UI. */
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub,#skB47Overlay)::before{content:'';position:absolute;inset:-12px;z-index:-2;pointer-events:none;background:linear-gradient(105deg,#0c0a08f2 0%,#16110dde 58%,#291b11c9 100%),var(--sk-r70-bg-art) 60% center/cover;filter:blur(5px);}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia) :is(.r25r22-online-backdrop,.r25r23-couch-backdrop,.r25-encyclopedia-shade){background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;pointer-events:none!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(.r25r22-online-window,.r25r23-couch-window,.r25-encyclopedia-window,.r54-hub-window,.b37-card){
 width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;inset:0!important;padding:0!important;margin:0!important;transform:none!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-window::before{display:none!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(button,input,select,textarea,summary){
 box-sizing:border-box;min-height:48px!important;border-image:none!important;border-radius:0!important;text-shadow:none!important;box-shadow:none!important;font-family:var(--sk-r70-body)!important;font-size:clamp(14px,1.08vw,18px)!important;letter-spacing:0!important;touch-action:manipulation;-webkit-tap-highlight-color:#d8bb8338;accent-color:#d8bb83;
}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(button,input,select,textarea){border-width:1px!important;border-color:var(--r71-rule)!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) button{background:linear-gradient(95deg,#4333207a,#221b1655)!important;color:#f4ecdc!important;transition:background .12s ease,border-color .12s ease!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(input,select,textarea){background:#100f0dcf!important;color:#f4ecdc!important;padding:10px 13px!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(button,input,select,textarea,summary):focus-visible{outline:2px solid #ecd5a6!important;outline-offset:3px!important;filter:none!important;}
@media (hover:hover) and (pointer:fine){
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) button:hover:not(:disabled){border-color:#d8bb83!important;background:#71553455!important;filter:none!important;transform:none!important;}
}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) button:disabled{opacity:.45!important;cursor:default;filter:none!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(header,footer){padding-inline:max(var(--r71-edge),env(safe-area-inset-left)) max(var(--r71-edge),env(safe-area-inset-right))!important;background:transparent!important;border-color:var(--r71-rule)!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) header{padding-block:max(18px,env(safe-area-inset-top)) 18px!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub) header :is(h1,h2){margin:5px 0 0!important;font:600 clamp(27px,3.1vw,48px)/1.05 var(--sk-r70-display)!important;color:#f4ecdc!important;letter-spacing:.015em!important;text-shadow:0 2px 12px #0008!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(.r25r22-online-kicker,.r25r22-section-kicker,.r25r23-couch-kicker,.sk-b55-kicker,.r54-eyebrow){color:#d8bb83!important;font:700 11px/1.2 var(--sk-r70-body)!important;letter-spacing:.18em!important;}
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) :is(.r25r22-close,.r25r23-couch-close,.r25-encyclopedia-close,.b37-close,header>[data-r54-action="close"]){width:48px!important;height:48px!important;min-width:48px!important;flex-basis:48px!important;padding:0!important;border:0!important;background:transparent!important;color:#d8bb83!important;font:400 32px/1 var(--sk-r70-body)!important;}
/* R72: explicit pressed feedback for the modern scene owner. The obsolete R56
   palette is excluded at its source, in r25r72-legacy-online-chrome.css. */
html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) button:active:not(:disabled){background:#745a3770!important;border-color:#ecd5a6!important;filter:none!important;transform:none!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-tabs button:focus-visible{outline-offset:-4px!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-tabs button:disabled{background:transparent!important;border-bottom-color:transparent!important;}
/* Online: a stage with chapter navigation, not four windows and a console. */
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-window{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-header{grid-template-columns:minmax(0,1fr) auto 48px;gap:16px;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-connection-chip{border:0!important;background:transparent!important;border-radius:0!important;color:#d8c8ac!important;padding:6px 0!important;font:600 14px/1.2 var(--sk-r70-body)!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-connection-dot{box-shadow:none!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-tabs{display:flex;gap:clamp(10px,2vw,38px);overflow-x:auto;flex-shrink:0;padding:0 max(var(--r71-edge),env(safe-area-inset-left));border-bottom:1px solid var(--r71-rule);scrollbar-width:thin;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-tabs button{flex:0 0 auto;min-height:54px!important;border:0!important;border-bottom:2px solid transparent!important;padding:12px 8px!important;background:transparent!important;color:#bcb09b!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-tabs [aria-selected="true"]{color:#f2ddaf!important;border-bottom-color:#d8bb83!important;background:linear-gradient(0deg,#ad874524,transparent)!important;}
html[data-sejm-interface] body #r25r22OnlineHub [data-r71-online-pane][hidden]{display:none!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-scroll{display:block!important;min-height:0;overflow:auto;padding:clamp(18px,3vh,38px) max(var(--r71-edge),env(safe-area-inset-right)) clamp(18px,3vh,38px) max(var(--r71-edge),env(safe-area-inset-left))!important;scrollbar-color:#a78951 #171411;overscroll-behavior:contain;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-primary{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(24px,5vw,90px);align-content:center;min-height:100%;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-card{grid-column:1/-1;width:100%;max-width:1280px;margin:auto;padding:0!important;}
html[data-sejm-interface] body #r25r22OnlineHub :is(.r25r22-card,.r25r22-action-block,.r25r22-metric,.r25r22-player-state,.box){background:transparent!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;}
html[data-sejm-interface] body #r25r22OnlineHub :is(.r25r22-session-card,.r25r22-lobby-card){padding:0!important;align-self:start;}
html[data-sejm-interface] body #r25r22OnlineHub h3{font:500 clamp(22px,2.1vw,32px)/1.15 var(--sk-r70-display)!important;color:#f4ecdc!important;text-shadow:none!important;letter-spacing:0!important;}
html[data-sejm-interface] body #r25r22OnlineHub :is(p,.r25r22-phase-detail,.r25r22-section-copy){color:#bcb09b!important;font-size:clamp(14px,1.2vw,18px)!important;line-height:1.5!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-copy{max-width:70ch;margin:14px 0 28px!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-actions{display:grid;grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr)!important;gap:clamp(22px,5vw,80px);align-items:stretch;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-divider{display:block!important;align-self:stretch;background:linear-gradient(transparent,#a7895190,transparent);color:transparent;font-size:0;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-action-block{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:28px 0 0!important;border-top:1px solid var(--r71-rule)!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-action-block::before{content:'I';font:500 28px/1 var(--sk-r70-display);color:#b3935c;position:absolute;right:4px;top:25px;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-action-block:last-child::before{content:'II';}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-action-block h3{padding-right:36px;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-action-block p{margin:0 0 12px;flex:1;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-join-line{display:grid;grid-template-columns:minmax(120px,1fr) minmax(110px,.65fr);gap:12px;}
html[data-sejm-interface] body #r25r22OnlineHub #r25r22RoomCodeInput{font:600 clamp(22px,2vw,30px)/1 var(--sk-r70-body)!important;letter-spacing:.12em!important;text-align:center;}
html[data-sejm-interface] body #r25r22OnlineHub :is(.r25r22-primary,#p326aStartMatch){min-height:58px!important;background:var(--sk-r75-metal,linear-gradient(100deg,#dfc594,#b4945d))!important;color:#21180f!important;border:1px solid #eed8ad!important;font-weight:800!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-session-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding-bottom:20px;border-bottom:1px solid var(--r71-rule);}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-session-top .r25r22-room-copy{grid-column:1/-1;width:max-content;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-room-code{font:600 clamp(28px,3vw,48px)/1 var(--sk-r70-body)!important;letter-spacing:.09em;color:#f1d69f!important;text-shadow:none!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-phase-body{padding:22px 0;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-phase-title{font:500 clamp(22px,2vw,32px)/1.2 var(--sk-r70-display)!important;color:#f4ecdc!important;}
html[data-sejm-interface] body #r25r22OnlineHub :is(.r25r22-session-label,.r25r22-metric small){font-size:12px!important;color:#bcb09b!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-progress{gap:7px;margin:22px 0;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-progress-step{border:0!important;border-bottom:3px solid #67553677!important;border-radius:0!important;background:transparent!important;color:#bcb09b!important;font:600 12px/1.3 var(--sk-r70-body)!important;padding:8px 2px!important;box-shadow:none!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-progress-step:is(.is-active,.is-complete){border-bottom-color:#d8bb83!important;color:#f1d69f!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-quality-grid{gap:14px;padding-top:12px;border-top:1px solid var(--r71-rule);}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-metric{padding:0!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-metric span{font:600 14px/1.4 var(--sk-r70-body)!important;color:#f4ecdc!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-ready-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-player-state{padding:12px 0!important;border-top:2px solid #716754!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-player-state.is-ready{border-top-color:#b5c4a1!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-player-state strong{font:700 16px/1.4 var(--sk-r70-body)!important;color:#f4ecdc!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-player-state span{font:700 12px/1.4 var(--sk-r70-body)!important;color:#bcb09b!important;}
html[data-sejm-interface] body #r25r22OnlineHub #r25r22LobbyMount :is(h3,h4){font-size:19px!important;}
html[data-sejm-interface] body #r25r22OnlineHub #r25r22LobbyMount label{font:600 14px/1.4 var(--sk-r70-body)!important;color:#bcb09b!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-secondary{display:block;width:100%;max-width:1320px;margin:0 auto;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-secondary details{border-bottom:1px solid var(--r71-rule)!important;padding:0!important;margin:0 0 20px;}
html[data-sejm-interface] body #r25r22OnlineHub summary{padding:14px 0!important;font-weight:700!important;color:#e5c996!important;background:transparent!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-details-body{padding:0 0 20px!important;border:0!important;}
html[data-sejm-interface] body #r25r22OnlineHub #r25r22EmergencyMount > .grid{grid-template-columns:1fr 1fr;gap:clamp(24px,5vw,80px);}
html[data-sejm-interface] body #r25r22OnlineHub #r25r22EmergencyMount .box{padding:16px 0!important;border-top:1px solid var(--r71-rule)!important;}
html[data-sejm-interface] body #r25r22OnlineHub #r25r22EmergencyMount textarea{min-height:120px;font:12px/1.45 ui-monospace,Consolas,monospace!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
html[data-sejm-interface] body #r25r22OnlineHub .r25r22-player-log{max-height:240px;border:0!important;border-left:2px solid #766044!important;border-radius:0!important;background:#0b0a0980!important;color:#bcb09b!important;font:13px/1.6 ui-monospace,Consolas,monospace!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-footer{display:flex;gap:24px;align-items:center;justify-content:space-between;padding-block:10px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--r71-rule);background:linear-gradient(90deg,#0f0d0dd9,#17110f9c)!important;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-footer p{margin:0;font-size:14px!important;max-width:80ch;}
html[data-sejm-interface] body #r25r22OnlineHub .r71-online-footer button{flex:0 0 auto;padding:10px 18px!important;}
/* Couch pairing keeps real QR canvases and all readiness barriers intact. */
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-content{padding:24px max(var(--r71-edge),env(safe-area-inset-right)) 24px max(var(--r71-edge),env(safe-area-inset-left))!important;scrollbar-color:#a78951 #171411;}
html[data-sejm-interface] body #r25r23CouchHub :is(.r25r23-couch-empty,.r25r23-couch-empty-icon,.r25r23-couch-intro,.r25r23-couch-slot,.r25r23-couch-log,.r25r23-couch-room-code,.r25r23-couch-pill){background:transparent!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;border-color:var(--r71-rule)!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty{min-height:100%;max-width:1120px;box-sizing:border-box;padding:18px 0!important;border:0!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px 70px;text-align:left;justify-items:start;align-content:center;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty-icon{width:144px;height:60px;border:0!important;font:600 28px/1 var(--sk-r70-display)!important;justify-content:flex-start;gap:12px;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty h3{grid-column:1;max-width:15ch;font:500 clamp(26px,3vw,42px)/1.15 var(--sk-r70-display)!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty>p{grid-column:1;font-size:16px!important;max-width:45ch;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-mode-picker{grid-column:2;grid-row:1/3;align-self:end;gap:16px;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-mode-picker button{min-height:120px!important;padding:20px 14px!important;border:0!important;border-top:2px solid var(--r71-rule)!important;text-align:left;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-mode-picker [aria-pressed=true]{border-top-color:#d8bb83!important;background:#9f784626!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-mode-picker strong{font:600 20px/1.2 var(--sk-r70-display)!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-mode-picker span{font-size:13px!important;color:#bcb09b!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty>ol{grid-column:2;grid-row:3/5;font-size:15px;line-height:1.8;color:#cfc2a9;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty>[data-couch-action=pair]{grid-column:1;width:100%;max-width:390px;}
html[data-sejm-interface] body #r25r23CouchHub [data-primary=true]{background:var(--sk-r75-metal,linear-gradient(100deg,#dfc594,#b4945d))!important;color:#21180f!important;border-color:#dfc594!important;font-weight:800!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-slot::after{display:none!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-slot{border:0!important;border-top:2px solid #d8bb83!important;padding:24px 0!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-slot[data-seat=p2]{border-top-color:#bfc1bd!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-slot[data-status=ready]{border-top-color:#b5c4a1!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-qr-shell{background:#fff!important;border:0!important;border-radius:0!important;box-shadow:0 0 0 8px #fff!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-log{border:0!important;border-top:1px solid var(--r71-rule)!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-log pre{background:#0b0a0980!important;border-color:var(--r71-rule)!important;color:#bcb09b!important;font-size:13px!important;}
html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-footer{padding-block:14px max(14px,env(safe-area-inset-bottom))!important;}
/* Encyclopedia: open roster and character dossier, no embedded blue windows. */
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-window{display:flex!important;flex-direction:column;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-heading p{color:#bcb09b!important;font:500 13px/1.4 var(--sk-r70-body)!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-filters{padding:8px max(var(--r71-edge),env(safe-area-inset-right)) 8px max(var(--r71-edge),env(safe-area-inset-left))!important;gap:16px;background:transparent!important;border-bottom:1px solid var(--r71-rule)!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-filters button{border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;padding:12px 10px!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-filters [aria-pressed=true]{border-bottom-color:#d8bb83!important;color:#f2ddaf!important;background:#ad874517!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-body{gap:clamp(20px,3vw,48px);padding:20px max(var(--r71-edge),env(safe-area-inset-right)) 16px max(var(--r71-edge),env(safe-area-inset-left))!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia :is(.r25-encyclopedia-roster,.r25-encyclopedia-detail,.r25-encyclopedia-detail-media,.r25-encyclopedia-card-media,.r25-encyclopedia-kit-section,.r25-encyclopedia-combo,.r25-encyclopedia-system-card,.r25-encyclopedia-bio,.r25-encyclopedia-input-help,.r25-encyclopedia-mobile-nav){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-roster{padding:0!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-detail{padding:0 6px 24px!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-grid{gap:12px;scrollbar-color:#a78951 #171411;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-card{padding:0!important;border:0!important;border-bottom:2px solid #a7895152!important;background:linear-gradient(0deg,#99784a18,transparent)!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-card[aria-current=true]{border-bottom-color:#e7c789!important;background:linear-gradient(0deg,#aa834540,transparent)!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-card-media{min-height:132px;background:radial-gradient(ellipse at 50% 90%,#ba96502a,transparent 65%)!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-card-copy{padding:10px 8px!important;border:0!important;background:transparent!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-card-copy strong{font:600 15px/1.2 var(--sk-r70-body)!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia :is(.r25-encyclopedia-results,.r25-encyclopedia-card-archetype){font:500 12px/1.4 var(--sk-r70-body)!important;color:#bcb09b!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-card-badge{border:0!important;border-radius:0!important;padding:4px 0!important;font:700 10px/1.2 var(--sk-r70-body)!important;color:#d8bb83!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia :is(.r25-encyclopedia-hero h3,.r25-encyclopedia-kit-section h4){font-family:var(--sk-r70-display)!important;color:#f4ecdc!important;font-weight:500!important;text-shadow:none!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia :is(.r25-encyclopedia-kit-section,.r25-encyclopedia-combo,.r25-encyclopedia-system-card,.r25-encyclopedia-bio){border-top:1px solid var(--r71-rule)!important;padding:18px 0!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia :is(.r25-encyclopedia-input kbd,.r25-encyclopedia-stat){border-color:var(--r71-rule)!important;border-radius:0!important;background:#3a2d2255!important;color:#e4d6bd!important;}
html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-footer{padding-block:10px max(12px,env(safe-area-inset-bottom))!important;color:#bcb09b!important;font:500 13px/1.3 var(--sk-r70-body)!important;background:transparent!important;}
/* My Game uses the actual chapter h2 owner rather than inheriting title size. */
html[data-sejm-interface] body #r54-experience-hub .r70-hub-section{font:700 13px/1.25 var(--sk-r70-body)!important;letter-spacing:.15em!important;text-transform:uppercase;color:#d8bb83!important;border:0!important;margin:26px 0 8px!important;padding:0!important;}
html[data-sejm-interface] body #r54-experience-hub .r54-hub-grid>button{border:0!important;border-bottom:1px solid var(--r71-rule)!important;background:transparent!important;padding:20px 10px!important;}
html[data-sejm-interface] body #r54-experience-hub .r54-hub-grid>button[data-r69-featured=true]{border-left:2px solid #d8bb83!important;background:linear-gradient(90deg,#a3804328,transparent)!important;padding-left:20px!important;}
html[data-sejm-interface] body #r54-experience-hub .r54-hub-grid strong{font:500 clamp(23px,2.2vw,32px)/1.2 var(--sk-r70-display)!important;}
html[data-sejm-interface] body #r54-experience-hub .r54-hub-grid small{font:500 15px/1.4 var(--sk-r70-body)!important;color:#bcb09b!important;}
html[data-sejm-interface] body #r54-experience-hub .r54-hub-glyph{border:0!important;background:transparent!important;box-shadow:none!important;}
/* Legacy help remains an actual active route from the main/options menus. */
html[data-sejm-interface] body #b37HelpHub .b37-title{font:600 clamp(27px,3vw,46px)/1.1 var(--sk-r70-display)!important;color:#f4ecdc!important;text-shadow:none!important;}
html[data-sejm-interface] body #b37HelpHub :is(.b37-sub,.b37-foot){font:500 14px/1.4 var(--sk-r70-body)!important;color:#bcb09b!important;}
html[data-sejm-interface] body #b37HelpHub .b37-tabs{padding:8px max(var(--r71-edge),env(safe-area-inset-left))!important;gap:16px;border-bottom:1px solid var(--r71-rule)!important;}
html[data-sejm-interface] body #b37HelpHub .b37-tab{border:0!important;border-bottom:2px solid transparent!important;background:transparent!important;}
html[data-sejm-interface] body #b37HelpHub .b37-tab.active{border-bottom-color:#d8bb83!important;color:#f2ddaf!important;background:#ad874517!important;}
html[data-sejm-interface] body #b37HelpHub .b37-body{padding:24px max(var(--r71-edge),env(safe-area-inset-right)) 24px max(var(--r71-edge),env(safe-area-inset-left))!important;scrollbar-color:#a78951 #171411;}
html[data-sejm-interface] body #b37HelpHub :is(.b37-box,.b37-advanced){border:0!important;border-top:1px solid var(--r71-rule)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:#d8ccb5!important;}
html[data-sejm-interface] body #b37HelpHub :is(h3,h4){font:500 clamp(20px,1.8vw,28px)/1.2 var(--sk-r70-display)!important;color:#f4ecdc!important;}
html[data-sejm-interface] body #b37HelpHub :is(kbd,.b37-badge){background:#49372455!important;border:1px solid var(--r71-rule)!important;border-radius:0!important;color:#e5c996!important;}
/* Narrow landscape keeps the game header/footer anchored and a single content
   scroller. All pointer controls stay >=48 CSS px; safe insets remain live. */
@media (max-width:1000px),(max-height:620px){
 html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub){--r71-edge:22px;}
 html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) header{padding-block:max(10px,env(safe-area-inset-top)) 10px!important;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-primary{gap:24px;align-content:start;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-copy{margin:10px 0 18px!important;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-actions{gap:22px;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-action-block{padding-top:18px!important;gap:10px;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-action-block::before{top:18px;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-tools{grid-template-columns:repeat(2,minmax(0,1fr));}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty{gap:16px 28px;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-footer{flex-wrap:wrap;gap:8px;padding-block:8px max(8px,env(safe-area-inset-bottom))!important;}
 html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-body{padding-block:12px!important;}
 html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-heading p{display:none;}
 html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-filters{padding-block:2px!important;gap:8px;}
 html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-card-media{min-height:112px;}
 html[data-sejm-interface] body #r54-experience-hub .r54-hub-grid>button{min-height:88px!important;padding-block:14px!important;}
}
@media (max-height:480px){
 html[data-sejm-interface] body #r25r22OnlineHub .r71-online-tabs button{min-height:48px!important;padding-block:8px!important;}
 html[data-sejm-interface] body #r25r22OnlineHub .r71-online-footer{padding-block:5px max(5px,env(safe-area-inset-bottom));gap:14px;}
 html[data-sejm-interface] body #r25r22OnlineHub .r71-online-footer p{font-size:12px!important;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-card>.r25r22-section-kicker{display:none;}
 html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-footer>span{display:none;}
 html[data-sejm-interface] body #r25CharacterEncyclopedia .r25-encyclopedia-footer{padding-block:4px max(4px,env(safe-area-inset-bottom))!important;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty-icon{display:none;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty h3{grid-row:1;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty>p{grid-row:2;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty>ol{grid-row:3;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-mode-picker{grid-row:1/3;}
}
@media(max-width:640px){
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-online-header{grid-template-columns:minmax(0,1fr) 48px;gap:8px;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-connection-chip{grid-column:1;grid-row:2;min-height:20px;font-size:12px!important;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-close{grid-column:2;grid-row:1/3;}
 html[data-sejm-interface] body #r25r22OnlineHub :is(.r25r22-online-primary,.r25r22-entry-actions,#r25r22EmergencyMount>.grid){grid-template-columns:minmax(0,1fr)!important;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-entry-divider{display:none!important;}
 html[data-sejm-interface] body #r25r22OnlineHub .r25r22-session-top{grid-template-columns:1fr auto;}
 html[data-sejm-interface] body #r25r22OnlineHub .r71-online-footer{align-items:flex-start;}
 html[data-sejm-interface] body #r25r22OnlineHub .r71-online-footer button{max-width:150px;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty{display:flex;flex-direction:column;align-items:stretch;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty h3{max-width:none;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty>ol{order:3;}
 html[data-sejm-interface] body #r25r23CouchHub .r25r23-couch-empty>[data-couch-action=pair]{order:4;}
}
@media(prefers-reduced-motion:reduce){html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) *{transition:none!important;scroll-behavior:auto!important;}}

html[data-sejm-interface] body #b37HelpHub .b37-k{color:#d8bb83!important;font:700 15px/1.3 var(--sk-r70-body)!important;letter-spacing:.06em!important;}
html[data-sejm-interface] body #b37HelpHub :is(.b37-v,.b37-advanced p){font:500 15px/1.5 var(--sk-r70-body)!important;color:#d8ccb5!important;}
/* BETA / build information is mounted by r25-b47-beta-content-polish.js.
   Override its late injected stylesheet explicitly; keep open/hidden, focus,
   Escape and return-to-menu under that existing controller. */
html[data-sejm-interface] body #skB47Overlay{
 position:fixed!important;inset:0!important;padding:0!important;overflow:hidden!important;isolation:isolate;
 background:#120f0c!important;
 color:#f4ecdc!important;backdrop-filter:none!important;
}
html[data-sejm-interface] body #skB47Overlay[hidden]{display:none!important;}
html[data-sejm-interface] body #skB47Card{
 position:relative;box-sizing:border-box!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;max-height:none!important;
 margin:0!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;
 padding:max(32px,10vh,env(safe-area-inset-top)) max(24px,6vw,env(safe-area-inset-right)) max(24px,6vh,env(safe-area-inset-bottom)) max(24px,6vw,env(safe-area-inset-left))!important;
 overflow:auto!important;overscroll-behavior:contain;scrollbar-color:#a78951 #171411;
 font-family:var(--sk-r70-body)!important;
}
html[data-sejm-interface] body #skB47Card::after{
 content:'';position:absolute;top:50%;right:9vw;width:clamp(170px,18vw,280px);height:clamp(170px,18vw,280px);transform:translateY(-50%);
 background:url('../assets/ui/sejm-elegant/medallion-gavel.svg') center/contain no-repeat;opacity:.52;pointer-events:none;
}
html[data-sejm-interface] body #skB47Card .sk-b47-eyebrow{font:700 12px/1.3 var(--sk-r70-body)!important;letter-spacing:.18em!important;color:#d8bb83!important;margin:0 0 22px;}
html[data-sejm-interface] body #skB47Card h2{max-width:15ch;margin:0 0 22px!important;font:600 clamp(34px,4vw,66px)/1.07 var(--sk-r70-display)!important;letter-spacing:.015em!important;color:#f4ecdc!important;text-shadow:0 2px 12px #0008!important;}
html[data-sejm-interface] body #skB47Card .sk-b47-version{max-width:60ch;padding-left:14px;border-left:2px solid #a78951;font:600 14px/1.5 var(--sk-r70-body)!important;letter-spacing:.08em!important;color:#d8bb83!important;overflow-wrap:anywhere;}
html[data-sejm-interface] body #skB47Card p{max-width:min(55ch,63vw);margin:22px 0!important;font-size:calc(18px * var(--sk-r45-text-scale,1.25))!important;line-height:1.5!important;color:#c9bda7!important;}
html[data-sejm-interface] body #skB47Close{position:relative;box-sizing:border-box;min-height:52px!important;min-width:190px;max-width:100%;padding:14px 24px!important;margin:30px 0 0!important;
 border:1px solid #eed8ad!important;border-image:none!important;border-radius:0!important;background:var(--sk-r75-metal,linear-gradient(100deg,#dfc594,#b4945d))!important;color:#21180f!important;
 font:800 16px/1.3 var(--sk-r70-body)!important;box-shadow:none!important;text-shadow:none!important;touch-action:manipulation;
}
@media (hover:hover) and (pointer:fine){html[data-sejm-interface] body #skB47Close:hover{background:linear-gradient(100deg,#ecd6ad,#c9a86a)!important;}}
html[data-sejm-interface] body :is(#skB47Close,#skB47BetaButton):focus-visible{outline:3px solid #ecd5a6!important;outline-offset:4px!important;}
html[data-sejm-interface] body #skB47BetaButton{color:#d8c7a7!important;}
html[data-sejm-interface] body #skB47BetaButton:focus-visible{background:#71553455!important;color:#f4ecdc!important;}
@media (hover:hover) and (pointer:fine){html[data-sejm-interface] body #skB47BetaButton:hover{background:#71553455!important;color:#f4ecdc!important;}}
@media(max-width:1000px){html[data-sejm-interface] body #skB47Card::after{display:none;}html[data-sejm-interface] body #skB47Card p{max-width:65ch;}}
@media(max-height:620px){
 html[data-sejm-interface] body #skB47Card{padding:max(22px,env(safe-area-inset-top)) max(24px,5vw,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(24px,5vw,env(safe-area-inset-left))!important;}
 html[data-sejm-interface] body #skB47Card .sk-b47-eyebrow{margin-bottom:12px;}
 html[data-sejm-interface] body #skB47Card h2{max-width:24ch;font-size:clamp(30px,3.5vw,44px)!important;margin-bottom:14px!important;}
 html[data-sejm-interface] body #skB47Card p{margin:14px 0!important;}
 html[data-sejm-interface] body #skB47Close{margin-top:20px!important;}
}

/* R71 pointer polish: a touchscreen release does not retain mouse hover chrome.
   Actual selected tabs and pressed buttons keep their existing selection style. */
@media (hover:none){
 html[data-sejm-interface] body :is(#r25r22OnlineHub,#r25r23CouchHub,#r25CharacterEncyclopedia,#r54-experience-hub,#b37HelpHub) button:hover:not(:active):not(.active):not([aria-pressed=true]):not([aria-selected=true]){border-color:var(--r71-rule)!important;filter:none!important;transform:none!important;}
}

/* SB100: override the inherited ID-specific button chrome for all tab states. */
html[data-sejm-interface] body #r25r22OnlineHub nav.r71-online-tabs button[data-r71-online-tab],
html[data-sejm-interface] body #r25r22OnlineHub nav.r71-online-tabs button[data-r71-online-tab]:is(:hover,:active,:focus){
  appearance:none!important;background:transparent!important;background-image:none!important;
  border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;
  box-shadow:none!important;filter:none!important;outline-offset:-4px!important;
  color:#bcad94!important;padding:12px 16px!important;min-height:54px!important;
}
html[data-sejm-interface] body #r25r22OnlineHub nav.r71-online-tabs button[data-r71-online-tab][aria-selected="true"]{
  color:#f0dbac!important;border-bottom-color:#d5b677!important;
}
html[data-sejm-interface] body #r25r22OnlineHub nav.r71-online-tabs button[data-r71-online-tab]:hover:not(:disabled){color:#fff0cd!important;}
