/* The arcade belongs to the academy; individual game boards retain their stories. */
body.magic-theme :is(.pe-dialog,.gr-dialog,.qg-dialog,.ee-dialog,.mh-dialog,.he-dialog){margin:auto;scrollbar-width:thin;scrollbar-color:#87948c #193440}
body.magic-theme .pe-dialog.pe-lobby{width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid #78898d;border-radius:16px;background:#102936;color:#eee8dc;box-shadow:0 24px 80px #04121bb3}
body.magic-theme .pe-lobby::backdrop{background:#061722b8;backdrop-filter:blur(5px)}
body.magic-theme .pe-lobby .pe-window{background:#102936;color:#eee8dc;border:0;font:16px/1.6 Manrope,Arial,sans-serif}
body.magic-theme .pe-lobby .pe-titlebar{background:#193440;border-bottom:1px solid #405762;color:#d6c495;padding:12px 22px;font:600 13px/1.4 Manrope,Arial,sans-serif;letter-spacing:.08em}
body.magic-theme .pe-lobby .pe-titlebar button{margin-left:auto;min-width:44px;min-height:44px;background:transparent;color:#eee8dc;border:1px solid #78898d;border-radius:8px;box-shadow:none;font:400 24px/1 Manrope,Arial,sans-serif}
body.magic-theme .pe-lobby .pe-titlebar .pe-icon{width:23px;height:23px;filter:grayscale(1) sepia(.5)}
body.magic-theme .pe-lobby-body{padding:26px 28px}
body.magic-theme .pe-lobby .pe-kicker{color:#d6c495!important;font-size:12px;letter-spacing:.1em;margin:0 0 8px}
body.magic-theme .pe-lobby h2{font:400 clamp(26px,4vw,36px)/1.2 Cinzel,Georgia,serif;color:#eee8dc;margin:0 0 24px;letter-spacing:-.02em}
body.magic-theme .pe-lobby h3{font:700 18px/1.4 Manrope,Arial,sans-serif;margin:0}
body.magic-theme .pe-lobby p{color:#c0cccd;margin:6px 0 16px}
body.magic-theme .pe-lobby .pe-game-list{gap:12px;margin:18px 0 24px}
body.magic-theme .pe-lobby .pe-game-list button{position:relative;min-width:0;min-height:116px;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;gap:6px 14px;padding:18px;border:1px solid #526972;border-radius:12px;background:#193440;color:#eee8dc;box-shadow:none;font:600 15px/1.5 Manrope,Arial,sans-serif;text-align:left;transition:background .15s,border-color .15s}
body.magic-theme .pe-lobby .pe-game-list button:hover{background:#254450;border-color:#d6c495}
body.magic-theme .pe-lobby .pe-game-list button:active{border-style:solid}
body.magic-theme .pe-lobby .pe-game-list button> :where(.pe-icon,span[aria-hidden]){grid-row:1 / span 3;grid-column:1;width:42px;height:42px;display:grid;place-items:center;background:#102936;border:1px solid #526972;border-radius:10px;font-size:25px;padding:6px;filter:grayscale(.25)}
body.magic-theme .pe-lobby .pe-game-list b{grid-column:2;font-size:16px;line-height:1.4}
body.magic-theme .pe-lobby .pe-game-list :where(small,button>span:not([aria-hidden])){grid-column:2;font-size:13px;line-height:1.5;color:#c0cccd}
body.magic-theme .pe-lobby .pe-game-list em{font-size:10px;font-style:normal;background:#40574b;color:#e7e7c9;border-radius:4px;padding:3px 5px;white-space:nowrap}
body.magic-theme .pe-lobby-body>details{border:1px solid #526972;border-radius:10px;margin:20px 0;padding:0 16px}
body.magic-theme .pe-lobby-body>details>summary{min-height:50px;padding:14px 0;font-size:15px;cursor:pointer}
body.magic-theme .pe-lobby-body>details .pe-game-list{margin-bottom:16px}
body.magic-theme .pe-lobby :is(button,summary):focus-visible{outline:2px solid #d6c495;outline-offset:3px}
body.magic-theme .qg-dialog:not(.qg-simtech){background:#193440;color:#eee8dc;border-color:#78898d;box-shadow:0 20px 70px #04121b80;font-family:Manrope,Arial,sans-serif}
body.magic-theme .qg-dialog::backdrop{background:#061722b8;backdrop-filter:blur(5px)}
body.magic-theme .qg-dialog:not(.qg-simtech) header{background:#102936;border-color:#526972}
body.magic-theme .qg-dialog:not(.qg-simtech) :is(h2,p){color:inherit}
body.magic-theme .qg-dialog:not(.qg-simtech) .qg-meta{color:#c0cccd}
body.magic-theme .qg-dialog:not(.qg-simtech) button{background:#254450;border-color:#78898d;color:#eee8dc;box-shadow:none}
body.magic-theme .qg-dialog:not(.qg-simtech) button:hover:not(:disabled){background:#36535c;border-color:#d6c495}
body.magic-theme .qg-dialog:not(.qg-simtech) button:is([data-qg=start],[data-qg=next],[data-qg=check]){background:#d6c495;color:#122734;border-color:#d6c495}
body.magic-theme .qg-dialog .qg-login{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;background:#d6c495;color:#122734;border:1px solid #d6c495;border-radius:9px;font-weight:700;text-decoration:none}
body.magic-theme .qg-dialog .qg-actions{align-items:center;margin-top:22px;gap:12px}
@media(max-width:600px){
 body.magic-theme .pe-dialog.pe-lobby{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:12px}
 body.magic-theme .pe-lobby .pe-titlebar{padding:10px 14px}
 body.magic-theme .pe-lobby-body{padding:20px 16px}
 body.magic-theme .pe-lobby h2{font-size:27px;margin-bottom:22px}
 body.magic-theme .pe-lobby .pe-game-list{grid-template-columns:1fr;gap:9px}
 body.magic-theme .pe-lobby .pe-game-list button{min-height:94px;padding:14px;gap:4px 12px}
 body.magic-theme .pe-lobby .pe-game-list b{font-size:15px}
 body.magic-theme .pe-lobby .pe-game-list small{font-size:13px}
}
@media(prefers-reduced-motion:reduce){body.magic-theme .pe-lobby .pe-game-list button{transition:none}}

/* Show what a quick game looks like before opening it. */
body.magic-theme .pe-lobby .qg-card-list button{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:16px}
body.magic-theme .pe-lobby .qg-card-list button>.qg-card-art{display:flex;grid-column:auto;grid-row:auto;width:100%;height:104px;min-width:0;padding:12px;margin:0 0 4px;border-radius:10px;filter:none}
body.magic-theme .pe-lobby .qg-card-list button>.qg-card-board{display:block}
body.magic-theme .pe-lobby .qg-card-list :is(b,small){grid-column:auto}
body.magic-theme .pe-lobby .qg-card-list small{font-size:14px;line-height:1.6}
body.magic-theme .pe-lobby .qg-card-list .qg-recommended{border-color:#b9cca9}
body.magic-theme .pe-lobby .qg-card-list .qg-recommendation{grid-column:auto;align-self:flex-start;background:#d8d0aa;color:#173540;font-size:14px;line-height:1.5;padding:3px 8px}
body.magic-theme .pe-lobby .qg-card-list .qg-card-action{grid-column:auto;align-self:flex-start;color:#d6c495;font-size:14px;font-weight:600;line-height:1.5}
body.magic-theme .pe-lobby .pe-game-list em{font-size:12px;white-space:normal;line-height:1.6}
@media(max-width:600px){body.magic-theme .pe-lobby .qg-card-list button>.qg-card-art{height:92px}}
