/* Pause-menu framing: one scene, quiet panels, and one clear selection. */
:root{--scene-glow:#174986;--panel-line:#497cba;--panel-deep:#050b1b}
body{min-width:0}
.world-background{background:radial-gradient(ellipse at 78% 30%,#102c54 0,transparent 58%),linear-gradient(150deg,#030713,#07132b 60%,#020611);background-repeat:no-repeat}
.world-background:after{background:linear-gradient(110deg,#00051080,transparent 65%),linear-gradient(0deg,#01040d99,transparent 35%);background-repeat:no-repeat}
.site-header{border-bottom:2px solid #507ce6;box-shadow:0 2px #142a67;background:#030712}
.menu-word{box-shadow:inset 0 0 0 1px #245ccc;border-width:2px;background:linear-gradient(#1558d3,#082873);text-shadow:1px 2px #031842}
.brand-crown{filter:none}
.menu-frame{border:1px solid var(--panel-line);box-shadow:inset 0 0 0 2px #07132b,0 0 0 2px #122955;background:linear-gradient(145deg,#07142aee,#020713f5);border-radius:12px}
.menu-heading{background:linear-gradient(100deg,#174a99,#0a2251);border:1px solid #5792d1;box-shadow:none;color:#edf6ff;letter-spacing:1.3px}
.command{border:1px solid #496b9d;background:linear-gradient(100deg,#112a4b,#071329 88%);box-shadow:inset 0 1px #6880a54d;transition:background .15s,border-color .15s}
.command:hover{background:linear-gradient(100deg,#1b3d65,#0c1d39);border-color:#91b8e4}
.command.active,.command.selected{border-color:#f49465;background:linear-gradient(90deg,#702016,#311017 88%);box-shadow:inset 0 0 0 1px #a33b28;color:#fff5dd}
.command.active:before,.command.selected:before{width:9px;height:9px;left:-7px;top:calc(50% - 5px);border-width:1px;box-shadow:0 0 6px #ffb35e;animation:none}
.command-tip{border-width:1px;background:#09162d;box-shadow:none;right:-7px;width:13px;height:13px;top:calc(50% - 7px)}
.command.active .command-tip{border-color:#f49465;background:#311017;box-shadow:none}
.mastery-command{border-color:#bfa56d;background:linear-gradient(100deg,#352b18,#17150f);box-shadow:inset 0 1px #b99b6055;color:#fff1c6}
.mastery-command .command-tip{background:#1b170f;border-color:#bfa56d;box-shadow:none}
.command:hover:not(:disabled),.command:focus-visible{box-shadow:inset 0 0 0 1px #b9cbea55}
.menu-cursor{color:#ffe4a5;filter:drop-shadow(0 1px 2px #000)}
.reaction{border:2px solid #99cf7e;background:linear-gradient(#245337,#102d22);box-shadow:inset 0 1px #d0ecc055;color:#f5ffed;border-radius:23px 7px 7px 23px}
.reaction:hover:not(:disabled){box-shadow:inset 0 1px #d0ecc088,0 0 0 2px #bde69c33;transform:none}
.reaction>.menu-icon{color:#a9e79b}
.primary{border-color:#a3d28d;background:linear-gradient(#26553b,#102d21);box-shadow:none}
.secondary{background:linear-gradient(#163968,#0b1b39);border-color:#628cc0}
.back-button{background:linear-gradient(#183b72,#0b1b3c);border:1px solid #658fc7}
.screen-tab{background:linear-gradient(100deg,#8a302b,#3e1822);border:1px solid #d1856b;letter-spacing:.4px}
.help-strip{border:1px solid #4d81ca;border-radius:8px;background:linear-gradient(100deg,#102e67,#081737);box-shadow:inset 0 1px #6d96d244;color:#dceaff}
.help-strip p{font-family:var(--menu);font-weight:500;letter-spacing:.2px}
.rank-gauge,.progress-track,.result-gauge,.journey-gauge>div{border:1px solid #a3b9d3;box-shadow:0 0 0 1px #020711}
.rank-gauge span{box-shadow:none;background:linear-gradient(#b3e287,#63a737)}
.journey-gauge i,.result-gauge>span{background:linear-gradient(#b3e287,#63a737)}
.progress-track span{background:linear-gradient(#91bfeb,#457bb3)}
.trial-stage,.brief-art,.results-art{--scene-glow:#1a4378;--scene-top:#0b1931;--scene-bottom:#030714;background:radial-gradient(ellipse at 40% 60%,var(--scene-glow),transparent 70%),linear-gradient(160deg,var(--scene-top),var(--scene-bottom));background-repeat:no-repeat}
.trial-stage{border:1px solid #263d60;border-radius:12px;overflow:hidden}
.trial-stage[data-game="kh1"],.brief[data-game="kh1"] .brief-art,.results[data-game="kh1"] .results-art{--scene-glow:#244862;--scene-top:#102838}
.trial-stage[data-game="com"],.brief[data-game="com"] .brief-art,.results[data-game="com"] .results-art{--scene-glow:#40305c;--scene-top:#21182f}
.trial-stage[data-game="days"],.brief[data-game="days"] .brief-art,.results[data-game="days"] .results-art{--scene-glow:#553b46;--scene-top:#25252f}
.trial-stage[data-game="bbs"],.brief[data-game="bbs"] .brief-art,.results[data-game="bbs"] .results-art{--scene-glow:#1b5159;--scene-top:#09242e}
.trial-stage[data-game="recoded"],.brief[data-game="recoded"] .brief-art,.results[data-game="recoded"] .results-art{--scene-glow:#1b4745;--scene-top:#0a2226}
.trial-stage[data-game="ddd"],.brief[data-game="ddd"] .brief-art,.results[data-game="ddd"] .results-art{--scene-glow:#483455;--scene-top:#241a3e}
.trial-stage[data-game="fragment"],.brief[data-game="fragment"] .brief-art,.results[data-game="fragment"] .results-art{--scene-glow:#204b6b;--scene-top:#081e36}
.trial-stage[data-game="kh3"],.brief[data-game="kh3"] .brief-art,.results[data-game="kh3"] .results-art{--scene-glow:#28496a;--scene-top:#122238}
.trial-stage[data-game="union"],.brief[data-game="union"] .brief-art,.results[data-game="union"] .results-art{--scene-glow:#584730;--scene-top:#2c2531}
.trial-stage[data-game="darkroad"],.brief[data-game="darkroad"] .brief-art,.results[data-game="darkroad"] .results-art{--scene-glow:#4a4241;--scene-top:#201e26}
.trial-stage[data-game="master"],.brief[data-game="master"] .brief-art,.results[data-game="master"] .results-art{--scene-glow:#45415b;--scene-top:#1a1d35}
.art-composition:before{left:0;right:0;height:18%;background:radial-gradient(ellipse at center,#01030b99,transparent 70%)}
.art-composition .art-world{width:130%;height:100%;left:-12%;top:-8%;opacity:.16;filter:none}
.art-composition .art-figure{filter:drop-shadow(0 3px 4px #0007)}
.trial-stage .game-logo{width:72%;height:28%;left:2%;top:1%;filter:drop-shadow(0 2px 2px #0009)}
.stage-key-art.art-composition{width:67%;height:64%;left:2%;bottom:8%}
.trial-stats{top:35%;right:3%;width:25%;min-width:170px;background:none;border-radius:0;padding:0;text-shadow:0 2px 2px #000}
.trial-stats strong{font-family:var(--menu);font-size:44px;font-weight:700}
.trial-stats p>span{font-family:var(--menu);font-size:17px;letter-spacing:.8px;color:#b1c8e4}
.trial-stats>div:not(.rank-gauge){gap:11px;margin-bottom:20px}
.trial-stage>.reaction{width:38%;right:3%;bottom:18px;font-size:32px;min-height:58px}
.trial-stage>.master-logo{width:72%;top:18px;font-size:30px}
.trial-stage>.master-logo strong{font-size:52px;letter-spacing:3px}
.trial-stage>.master-logo .menu-icon{width:43px;height:43px}
.brief-copy,.results-copy{background:linear-gradient(145deg,#071124f2,#020610f5)}
.question-panel{background:linear-gradient(145deg,#08162df5,#030916f7)}
[data-family="memory"] .question-panel,[data-family="wayfinder"] .question-panel{box-shadow:inset 0 0 0 2px #0a1429,0 0 0 2px #192949}
.quiz-shell[data-game="days"] .answer-option{border-color:#858a9b;background:linear-gradient(#2a2d38,#13151f);box-shadow:inset 0 1px #d9dbe433}
.quiz-shell[data-game="days"] .answer-option.selected{border-color:#e99290;background:linear-gradient(#81343a,#35131d)}
.quiz-shell[data-game="com"] .answer-letter,.quiz-shell[data-game="darkroad"] .answer-letter{border-radius:3px;height:35px;background:#131127;border-color:#ba9ccd}
.quiz-shell[data-game="recoded"] .answer-option{border-radius:4px;border-color:#69a6a5}
.quiz-shell[data-game="bbs"] .answer-option,.quiz-shell[data-game="fragment"] .answer-option{border-color:#73a6b3}
.quiz-shell[data-game="ddd"] .answer-letter{border-color:#d397c4;color:#f5d2ed}
.quiz-shell .answer-option.correct,.quiz-shell[data-game="days"] .answer-option.correct{border-color:#9cd78b;background:linear-gradient(90deg,#23432a,#102017);box-shadow:inset 0 0 0 1px #628f5066}
.quiz-shell .answer-option.incorrect,.quiz-shell[data-game="days"] .answer-option.incorrect{border-color:#e79597;background:linear-gradient(90deg,#54252e,#26121d);box-shadow:inset 0 0 0 1px #9c566b55}
.feedback.good,.feedback.wrong{background:linear-gradient(110deg,#17335c,#08162e);border:1px solid #718eae;box-shadow:inset 0 0 0 2px #071329;border-radius:9px}
.memory-feedback{background:linear-gradient(140deg,#2b203a,#100d20)!important;animation:memory-reveal .28s ease-out both}
.memory-feedback:before{animation:card-reveal .28s ease-out both}
@keyframes memory-reveal{from{opacity:0}to{opacity:1}}
.site-footer{flex-wrap:wrap;align-items:center;color:#aebcd2}
.site-footer .footer-project{margin-right:auto}
.site-footer .text-button{font-size:12px}
.menu-settings{gap:16px;padding-right:0}
.menu-settings button{font-family:var(--body);font-size:12px;color:#c4d0e3;text-underline-offset:5px}
.menu-settings button[aria-pressed="true"]{color:#e6d8b8}
.footer-data-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:2px 12px;max-width:380px}
.site-footer .analytics-toggle{min-height:32px;padding:0;border:0;border-radius:0;background:none;color:#c4d0e3;font-family:var(--body);text-underline-offset:5px;white-space:nowrap}
.site-footer .analytics-toggle[aria-pressed="true"]{color:#e6d8b8}
.site-footer .analytics-toggle:hover:not(:disabled){color:#fff;background:none}
.site-footer .analytics-toggle:focus-visible{outline:2px solid #dceaff;outline-offset:3px}
.site-footer .analytics-toggle:disabled{cursor:default;color:#aebcd2}
.analytics-summary{width:100%;font-size:11px;line-height:1.4;color:#aebcd2;text-align:right}
.console-hub{gap:16px;min-height:540px;height:calc(100svh - 225px);max-height:860px;grid-template-columns:minmax(280px,31%) minmax(0,1fr)}
.trial-selector{padding:15px 13px}
.trial-commands{gap:6px}
.trial-command{font-family:var(--menu);font-size:25px;font-weight:600;min-height:37px;gap:12px;padding:6px 12px}
.mastery-command{min-height:45px;max-height:54px;margin-top:9px}
.help-strip{margin-top:16px;min-height:47px;padding:9px 17px}
.help-strip p{font-size:21px}
.site-footer{margin-top:12px;padding-top:5px;padding-bottom:14px}
@media(min-width:801px) and (max-height:850px){
 .site-header{height:63px}.menu-word{height:51px;width:228px;font-size:38px}
 #app{margin-top:19px}.console-hub{min-height:460px;height:calc(100svh - 217px)}
 .trial-selector{padding:11px 12px}.trial-selector .menu-heading{font-size:20px;margin-bottom:9px;padding:6px 12px}
 .trial-commands{gap:4px}.trial-command{min-height:31px;font-size:22px;padding:4px 11px;gap:10px}
 .mastery-command{min-height:39px;max-height:43px;margin-top:6px}
 .trial-stats strong{font-size:36px}.trial-stats p>span{font-size:15px}
 .trial-stats>div:not(.rank-gauge){margin-bottom:14px}.trial-stats .menu-icon{width:27px;height:27px}
 .rank-gauge{height:16px;margin-bottom:17px}.no-timer{font-size:21px}
 .trial-stage>.reaction{font-size:30px;min-height:53px;bottom:14px}
 .help-strip{margin-top:14px;min-height:42px;padding:8px 16px}.help-strip p{font-size:20px}
 .site-footer{margin-top:9px;font-size:11px;gap:12px}
 .quiz-shell .screen-toolbar{margin-bottom:16px}
 .quiz-shell .question-panel{padding:22px 24px}
 .quiz-shell .progress-meta{font-size:18px}.quiz-shell .progress-meta strong{font-size:28px}
 .quiz-shell .question-tags{margin-top:16px}
 .quiz-shell #question-title{font-size:33px;line-height:1.14;min-height:0;margin:16px 0 19px}
 .quiz-shell .answer-grid{gap:8px}.quiz-shell .answer-option{min-height:50px;font-size:24px;padding:8px 14px}
 .quiz-shell .question-bottom{margin-top:17px}.quiz-shell .question-bottom .reaction{min-height:52px;font-size:27px}
 .quiz-shell .quiz-art{min-height:520px}
}
@media(min-width:801px) and (max-width:1100px){
 .console-hub{grid-template-columns:34% minmax(0,1fr)}
 .trial-command{font-size:22px}.trial-stats{min-width:140px;width:29%;right:2%}
 .trial-stats strong{font-size:34px}.trial-stats p>span{font-size:14px}
 .trial-stage>.reaction{width:47%;font-size:28px}
}
@media(max-width:800px) and (min-width:561px){
 .console-hub{grid-template-columns:42% minmax(0,1fr);min-height:620px;height:auto}
 .trial-command{font-size:21px;min-height:44px}
 .trial-stage .game-logo{width:94%;left:3%;height:22%}
 .stage-key-art.art-composition{width:96%;left:2%;height:45%;bottom:210px}
 .trial-stats{top:auto;bottom:92px;left:0;right:auto;width:100%;min-width:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:0 9px}
 .trial-stats strong{font-size:30px}.trial-stats p>span{font-size:12px}
 .trial-stats>div:not(.rank-gauge){margin:0}.no-timer{font-size:19px}
 .trial-stage>.reaction{width:calc(100% - 26px);left:13px;right:auto;bottom:16px;font-size:28px}
 .trial-stage>.master-logo{width:92%;left:4%}
}
@media(max-width:560px){
 .site-header{gap:6px;padding:0 12px 11px 0;min-height:77px}
 .site-header .brand{gap:8px;flex:none;width:100%}.site-header .brand-title{font-size:23px}
 .menu-word{height:44px;width:119px;font-size:27px}.brand-crown{width:23px;height:23px}
 .menu-settings{margin-left:auto;gap:18px}.menu-settings button{font-size:12px}
 #app{margin-top:15px;padding:0 13px}.console-hub{display:flex;min-height:0;height:auto;max-height:none;gap:16px}
 .trial-selector{padding:12px}.trial-selector .menu-heading{font-size:19px}
 .trial-commands{gap:7px 12px}.trial-command{font-family:var(--menu);font-size:20px;min-height:48px;padding:6px 8px;gap:6px}
 .mastery-command{min-height:46px;max-height:none;margin-top:3px;font-size:23px}
 .trial-stage{height:330px;order:2;border-radius:10px}
 .trial-stage .game-logo{width:70%;height:100px;left:1%;top:0}
 .stage-key-art.art-composition{width:67%;height:57%;left:1%;bottom:65px}
 .trial-stats{display:block;top:auto;bottom:75px;right:1%;left:auto;width:31%;min-width:0;padding:0}
 .trial-stats strong{font-size:30px}.trial-stats p>span{font-size:12px;letter-spacing:.2px}
 .trial-stats .menu-icon{width:21px;height:21px}.trial-stats>div:not(.rank-gauge){gap:5px;margin-bottom:13px!important}
 .no-timer{font-size:17px}.trial-stage>.reaction{width:calc(100% - 24px);right:auto;left:12px;bottom:12px;font-size:27px;min-height:47px;padding:6px 10px}
 .trial-stage>.master-logo{width:72%;left:0;top:8px;font-size:17px}.trial-stage>.master-logo strong{font-size:28px}
 .trial-stage>.master-logo .menu-icon{width:26px;height:26px}
 .trial-stage[data-game="master"] .stage-key-art.art-composition{height:53%}
 .help-strip p{font-size:18px}.help-strip{margin-top:15px;padding:10px 12px}
 .site-footer{align-items:flex-start;gap:12px;font-size:11px}.site-footer .footer-project{margin:0}
 .site-footer .text-button{min-height:28px;text-align:left}
 .screen-tab{overflow-wrap:anywhere}.quiz-score{font-size:20px}
 .answer-option{font-size:23px}.answer-option>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
 .brief-art .game-logo{width:52%;height:114px;top:12px;left:2%}
 .brief-key-art.art-composition{width:67%;right:0;height:78%}
 .brief-copy .menu-heading{font-size:19px}.brief-copy .reaction{font-size:25px}
 .results-art>.game-logo{width:47%;height:114px}.results-copy{padding:22px 18px}
 .footer-data-controls{justify-content:flex-start;max-width:100%;gap:2px 14px}
 .site-footer .analytics-toggle,.footer-data-controls>.text-button{min-height:44px}
 .analytics-summary{text-align:left}
}
@media(max-width:360px){.site-header .brand-title{font-size:20px}.menu-word{width:104px;font-size:25px}.brand-crown{width:20px}.trial-command{font-size:18px}.trial-stats strong{font-size:26px}}
