:root[data-g42-access-mode="mirevi"],:root[data-g42-admin-theme="mirevi"]{
  --paper:#121314;--paper-2:#191a1c;--ink:#f4f4f0;--muted:#a9aaad;--line:rgba(255,255,255,.2);--accent:#ff7a00;--accent-2:#ff2b17;color-scheme:dark
}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) body{
  color:var(--ink);background-color:var(--paper);background-image:radial-gradient(circle at 72% 20%,rgba(255,122,0,.12),transparent 25rem),linear-gradient(125deg,transparent 0 49.8%,rgba(255,255,255,.06) 50%,transparent 50.2%),repeating-linear-gradient(90deg,transparent 0 7.9rem,rgba(255,255,255,.035) 8rem),repeating-linear-gradient(0deg,transparent 0 7.9rem,rgba(255,255,255,.035) 8rem);background-attachment:fixed
}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:conic-gradient(from 210deg at 78% 82%,transparent 0 14deg,rgba(255,255,255,.08) 14.2deg 14.6deg,transparent 15deg 28deg,rgba(255,255,255,.05) 28.2deg 28.5deg,transparent 29deg);opacity:.7}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.shellbar,.entry-card,.lobby-stage,.room-view,.join-dialog>form,.join-dialog>div,.shell-dialog>div){background:rgba(22,23,24,.94)!important;color:var(--ink)!important;border-color:rgba(255,255,255,.22)!important;box-shadow:0 24px 70px rgba(0,0,0,.42)!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(h1,h2,h3,.eyebrow,.shell-room strong){font-family:Arial,Helvetica,sans-serif!important;font-weight:900!important;letter-spacing:-.035em;text-transform:uppercase}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.primary,button[data-start],.start-game){background:var(--accent)!important;color:#111!important;border-color:var(--accent)!important;box-shadow:5px 5px 0 var(--accent-2)!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(input,select,textarea,.room-tile,.vote-card,.member){background:#18191a!important;color:var(--ink)!important;border-color:rgba(255,255,255,.25)!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.eyebrow,.card-no,.shell-room span,.room-tile p,.empty){color:var(--accent)!important}
.admin-dialog{width:min(72rem,calc(100% - 1rem));max-height:calc(100dvh - 1rem);padding:0;border:0;background:transparent;overflow:hidden}.admin-dialog>div{max-height:calc(100dvh - 1rem);padding:1.2rem;border:2px solid #241f1a;border-radius:1rem;background:#efe3ce;overflow:auto}.admin-dialog>div>header,.admin-theme-switch,.admin-room{display:flex;align-items:center;justify-content:space-between;gap:1rem}.admin-dialog h2{margin:.1rem 0}.admin-theme-switch{justify-content:flex-start;padding:1rem 0;border-block:1px solid currentColor;margin:1rem 0}.admin-room-list{display:grid;gap:.65rem}.admin-room{padding:.8rem 1rem;border:1px solid currentColor;border-radius:.7rem}.admin-room p{margin:.2rem 0}.admin-room button{margin-left:auto}.admin-room-meta{color:var(--muted,#665f55);font-size:.88rem}
@media(max-width:700px){.admin-room{align-items:flex-start;flex-wrap:wrap}.admin-room button{width:100%;margin:0}}

/* Complete MIREVI platform layer. Keep game artwork and player identity colors intact. */
:root[data-g42-access-mode="mirevi"],:root[data-g42-admin-theme="mirevi"]{
  --paper:#111214;--paper2:#191b1e;--paper-2:#191b1e;--ink:#f5f5f2;--muted:#a9adb2;--line:rgba(255,255,255,.22);--red:#ff2b17;--gold:#ff7a00;--teal:#d8dadd;--blue:#c9cdd1;--accent:#ff7a00;--accent-2:#ff2b17;
  --skin-bg:#0d0e0f;--skin-panel:#17191b;--skin-panel-2:#202225;--skin-ink:#f5f5f2;--skin-muted:#a9adb2;--skin-line:#55595e;--skin-accent:#ff7a00;--skin-accent-2:#ff2b17;--skin-action:#ff7a00;--skin-action-text:#101112;--skin-danger:#ff5645;--skin-shell:#111214;--skin-shell-text:#f5f5f2;--skin-rule:rgba(255,255,255,.08);--skin-check:rgba(255,255,255,.08);--skin-pattern:none;--skin-shadow:0 18px 55px rgba(0,0,0,.38);--platform-radius:.2rem;--platform-control-radius:.15rem;color-scheme:dark
}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) body{color:#f5f5f2!important;background:#0d0e0f!important;background-image:none!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) body::before,
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .room-view::before{content:""!important;position:fixed!important;inset:0!important;z-index:-1!important;pointer-events:none!important;background-color:#0d0e0f!important;background-image:radial-gradient(circle at 75% 16%,rgba(255,122,0,.1),transparent 24rem),linear-gradient(126deg,transparent 0 49.85%,rgba(255,255,255,.075) 50%,transparent 50.15%),repeating-linear-gradient(90deg,transparent 0 7.95rem,rgba(255,255,255,.035) 8rem),repeating-linear-gradient(0deg,transparent 0 7.95rem,rgba(255,255,255,.035) 8rem)!important;background-position:center!important;background-size:auto!important;background-repeat:repeat!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.entry-card,.lobby-stage,.room-view,.room-top,.room-grid>aside,.join-dialog,.join-dialog>form,.join-dialog>div,.shell-dialog>div,.shell-settings-panel,.volume-popover,.private-chat,.message-notice){background-color:rgba(20,22,24,.96)!important;background-image:none!important;color:#f5f5f2!important;border-color:#55595e!important;box-shadow:0 18px 55px rgba(0,0,0,.4)!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) #shellbar.shellbar{background:#111214!important;color:#f5f5f2!important;border-bottom:2px solid #ff7a00!important;box-shadow:0 3px 0 #ff2b17,0 10px 28px #0008!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) #shellbar.shellbar::before{background:#111214!important;background-image:linear-gradient(120deg,transparent 0 70%,rgba(255,255,255,.045) 70.2% 70.5%,transparent 70.7%)!important;border:0!important;border-radius:0!important;transform:none!important;opacity:1!important;box-shadow:none!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) #shellbar :is(.shell-player,.shell-settings-panel,.volume-popover){background:#1a1c1f!important;color:#f5f5f2!important;border-color:#55595e!important;box-shadow:3px 3px 0 #000!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) #shellbar .shell-player{border-left-color:var(--player-color,#ff7a00)!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(input,select,textarea){background:#101214!important;color:#f5f5f2!important;border-color:#73777c!important;box-shadow:none!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(input,select,textarea):focus{outline:2px solid #ff7a00!important;outline-offset:2px}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.primary,.ink,.room-tile button,.room-actions .primary,.private-chat form button,.start-game,.admin-theme-switch .primary){background:#ff7a00!important;background-image:none!important;color:#101112!important;border-color:#ff7a00!important;box-shadow:4px 4px 0 #ff2b17!important;clip-path:none!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(button,.room-actions button,.theme-choice,.mobile-room-tabs button){background-color:#202225;background-image:none;color:#f5f5f2;border-color:#686c71;box-shadow:none;clip-path:none}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(button,.room-actions button,.theme-choice,.mobile-room-tabs button):is(:hover,:focus-visible){border-color:#ff7a00;color:#fff}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.danger,.shell-exit-button){background:#261514!important;color:#ff796b!important;border-color:#ff2b17!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.room-tile,.admin-room,.member,.chat-message){background:#191b1e!important;background-image:none!important;color:#f5f5f2!important;border-color:#4e5257!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .chat-message.mine{background:#222426!important;border-color:#ff7a00!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .room-view{background:transparent!important;color:#f5f5f2!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .room-title{color:#f5f5f2!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .mobile-room-tabs{background:#121416!important;border-color:#55595e!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .mobile-room-tabs button[aria-selected="true"]{background:#ff7a00!important;color:#111!important;box-shadow:inset 0 -3px 0 #ff2b17!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.game-card,.vote-card){border-color:#55595e!important;background:#17191b!important;box-shadow:6px 6px 0 #050505!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .game-card-front{background-color:#17191b!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .game-card-back{background:#17191b!important;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px)!important;background-size:100% 1.75rem!important;color:#f5f5f2!important;box-shadow:inset 0 0 0 1px #ffffff12!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .game-card-back::before{border-color:#ff2b17!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .vote-card::before{background:#ff7a00!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .vote-card.my-vote{outline-color:#ff7a00!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .player-count-warning{background:#151719!important;color:#ff8b7d!important;border-color:#ff2b17!important;box-shadow:none!important}

/* Scientific-institution atmosphere: exact vector curves, formulas and drafting marks. */
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) body::before,
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .room-view::before{
  background-color:#0b0c0e!important;
  background-image:linear-gradient(rgba(9,10,12,.58),rgba(9,10,12,.72)),url("theme/mirevi-science-grid.svg"),radial-gradient(circle at 74% 18%,rgba(255,122,0,.1),transparent 25rem),repeating-linear-gradient(90deg,transparent 0 7.95rem,rgba(255,255,255,.025) 8rem),repeating-linear-gradient(0deg,transparent 0 7.95rem,rgba(255,255,255,.025) 8rem)!important;
  background-position:center,center,center,center,center!important;
  background-size:cover,cover,auto,auto,auto!important;
  background-repeat:no-repeat,no-repeat,no-repeat,repeat,repeat!important;
  background-attachment:fixed!important
}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.entry-card,.lobby-stage,.room-top,.room-grid>aside,.join-dialog,.shell-dialog>div,.shell-settings-panel,.private-chat){
  border-width:1px!important;
  border-top-color:rgba(255,122,0,.72)!important;
  background-color:rgba(17,19,21,.9)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 24px 70px rgba(0,0,0,.46)!important;
  backdrop-filter:blur(10px)
}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.room-tile,.admin-room,.member){box-shadow:inset 3px 0 0 rgba(255,122,0,.16)!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.room-top,.lobby-stage-head,.admin-dialog>div>header){border-bottom:1px solid rgba(255,255,255,.13)!important}
:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) :is(.eyebrow,.admin-room-meta,.room-tile p,.member small){font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;letter-spacing:.1em}
@media(max-width:700px){:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) body::before,:root:is([data-g42-access-mode="mirevi"],[data-g42-admin-theme="mirevi"]) .room-view::before{background-size:auto 100%,auto 100%,auto,auto,auto!important;background-position:center!important}}
