/* NURDIVE lounge: character-led game menus, shared ink/cream/lamp palette. */
:root{--game-ink:#253f4e;--game-cream:#f6f1e5;--game-yellow:#ffd363;--game-teal:#92c6be;--game-line:#b4c6bf}
html,body{background:#e6eee5}
.game-lounge{color:var(--game-ink);background:radial-gradient(ellipse at 5% 75%,#d8e9db 0,transparent 50%),#f6f3e9!important;padding:0 max(24px,calc((100vw - 1200px)/2));min-height:100svh;overflow:hidden}
.game-lounge .title-grid{background-image:radial-gradient(#66847c 1px,transparent 1px);background-size:24px 24px;opacity:.1;mask-image:none}.game-lounge .title-glow{display:none}
.game-lounge .title-top{padding:18px 0;border-bottom:2px solid #253f4e22;gap:18px;color:var(--game-ink);max-width:none;width:100%;letter-spacing:0;min-height:76px}
.game-lounge .title-top>span:first-child{font:900 20px/1.4 'Zen Kaku Gothic New','Noto Sans JP',sans-serif;letter-spacing:.03em;color:var(--game-ink);max-width:none}
.game-lounge .title-account-actions{gap:8px;flex-wrap:wrap}
.game-lounge .title-ranking-btn{background:#fffcf5;border:2px solid var(--game-ink);border-radius:10px;min-height:44px;box-shadow:0 3px 0 #253f4e;font-size:12px;font-weight:700;color:var(--game-ink);padding:9px 14px;backdrop-filter:none}
.game-lounge .title-content{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;align-items:start;max-width:none;padding:34px 0 28px;flex:1}
.game-lounge .title-copy{position:relative;text-align:center;padding:18px 0 0}
.game-lounge .title-kicker{font:700 12px/1.7 'Noto Sans JP',sans-serif;letter-spacing:.13em;color:#49685f;margin:0}
.game-lounge .title-copy h1{font:900 clamp(60px,6.9vw,94px)/1.12 'Zen Kaku Gothic New','Noto Sans JP',sans-serif;letter-spacing:-.055em;white-space:nowrap;margin:10px 0 0;color:var(--game-ink);text-shadow:0 3px #fff}
.game-lounge .title-copy h1 span{color:var(--game-ink)}
.game-lounge .title-lead{font-size:14px;font-weight:500;color:#526c60;line-height:1.9;max-width:30em;margin:16px auto 0}
.game-lounge .welcome-user{color:#526c60;font-family:inherit;font-size:12px;margin-top:10px}.game-lounge .welcome-user b{color:#294b46}
.home-mascot{position:relative;height:390px;margin:24px auto 0;max-width:380px;display:flex;align-items:center;justify-content:center;isolation:isolate}
.mascot-window{position:relative;width:190px;aspect-ratio:450 / 800;overflow:hidden;mix-blend-mode:multiply;flex-shrink:0;z-index:1}
.mascot-window img{position:absolute;max-width:none;width:341.3334%;height:auto;left:-19.5556%;top:-13.75%;pointer-events:none;user-select:none}
.home-mascot .mascot-window{transform:rotate(-4deg)}
.mascot-platform{position:absolute;bottom:14px;left:50%;width:280px;height:50px;transform:translateX(-50%);border-radius:50%;background:#a7c9b980;border:2px solid #6d988c;box-shadow:0 8px 0 #d2dfcd;z-index:0}
.mascot-speech{position:absolute;top:30px;right:-4px;z-index:2;margin:0;padding:11px 16px;background:#fffdf5;border:2px solid var(--game-ink);box-shadow:3px 3px 0 #c9d5c6;border-radius:14px 14px 14px 3px;font-size:13px;font-weight:700;transform:rotate(4deg);color:var(--game-ink)}
.game-lounge .title-support{padding:0;margin:0;min-width:0}
.home-console{background:#e0eae0;border:2px solid var(--game-ink);border-radius:22px;padding:22px;box-shadow:6px 7px 0 #bfd0c1}
.home-section-label{font-size:16px;font-weight:800;letter-spacing:.05em;margin:0 0 16px;color:var(--game-ink)}
.game-lounge .shift-setup{margin:0 0 14px;background:#f6f8ed;border:1px solid #8ba49a;border-radius:12px;overflow:hidden}
.game-lounge .shift-setup>summary{padding:12px 14px;min-height:62px;gap:10px}.game-lounge .shift-setup>summary b{color:var(--game-ink);font-size:12px}.game-lounge .shift-setup>summary:after{color:var(--game-ink);font-size:21px}.game-lounge #setupSummary{color:#44635a;font-size:12px}.game-lounge .shift-setup-content{padding:0 14px 16px;border-color:#b6c9bb}
.game-lounge .title-actions{margin:0;gap:12px;display:grid}
.game-lounge #startGame{position:relative;display:block;width:100%;border:2px solid var(--game-ink);border-radius:13px;background:var(--game-yellow);color:var(--game-ink);box-shadow:0 5px 0 #8d7138;min-height:80px;padding:13px 20px;font-size:24px;font-weight:900;letter-spacing:.04em;text-align:center;margin:0;transition:transform .15s,box-shadow .15s}
.game-lounge #startGame small{font:800 10px/1.5 'Noto Sans JP',sans-serif;letter-spacing:.16em;margin:0 0 2px;display:block}.game-lounge #startGame b{position:absolute;right:20px;top:24px;font-size:26px}
.game-lounge #startGame:active{transform:translateY(4px);box-shadow:0 1px 0 #8d7138}
.game-lounge .how-btn{min-height:38px;background:none;border:0;border-radius:8px;box-shadow:none;color:#496558;font-size:12px;font-weight:500;padding:6px;margin-top:4px;line-height:1.8;text-decoration:underline;text-underline-offset:4px}
.home-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;min-width:0}
.game-lounge .home-modes>section{background:#fffdf5;border:2px solid #617e70;border-radius:12px;box-shadow:0 3px 0 #bacabb;margin:0;padding:15px;min-width:0;display:flex;flex-direction:column;gap:6px}
.game-lounge .home-modes h2{font-size:17px;color:var(--game-ink);line-height:1.6;margin:0;font-weight:800}
.game-lounge .home-modes p{font-size:12px;line-height:1.85;font-weight:400;color:#577062;margin:4px 0 8px}
.game-lounge .daily-challenge p:last-child{display:none}
.game-lounge .home-modes .study-kicker,.game-lounge .home-modes .battle-kicker{display:none}
.game-lounge .home-modes button{background:#dfebe0;border:1px solid #8eae9a;border-radius:8px;box-shadow:0 2px 0 #adc4ad;color:#284f41;min-height:44px;font-size:12px;font-weight:700;line-height:1.7;padding:10px;margin:0;width:100%}
.game-lounge .home-modes .daily-challenge button{margin-top:auto}
.game-lounge .home-modes .study-actions{display:flex;flex-direction:column;gap:6px;margin-top:auto}
.game-lounge .home-modes #studyStart:disabled{background:none;border:0;box-shadow:none;min-height:0;padding:0;color:#60786a;font-size:11px;font-weight:400}
.game-lounge .home-modes #studyStart:not(:disabled){background:#c8e7cc;color:#194731}
.game-lounge .home-modes .battle-launch{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;background:#253f4e;border-color:#253f4e;box-shadow:0 3px 0 #172d36}
.game-lounge .home-modes .battle-launch h2{color:#fff7df;font-size:18px}.game-lounge .home-modes .battle-launch p{color:#c0d4cc;margin:3px 0 0;font-size:12px}
.game-lounge .home-modes #openBattleButton{background:#a9d6ca;color:#213f42;min-width:135px;border:1px solid #a9d6ca;padding:12px 14px;box-shadow:0 2px 0 #547c72;font-size:13px}.game-lounge #openBattleButton span{margin-right:0;margin-left:12px;float:none}
.home-record{margin-top:20px;border-top:1px dashed #8fa497;padding-top:12px}
.game-lounge .title-metrics{display:flex;justify-content:space-between;gap:12px;padding:0;margin:0;border:0}.game-lounge .title-metric{margin:0;padding:0;border:0;min-width:0}.game-lounge .title-metric span{font-family:inherit;color:#55705e;font-size:10px;letter-spacing:0}.game-lounge .title-metric b{font:800 20px/1.6 'Noto Sans JP',sans-serif;color:var(--game-ink);margin:2px 0 0}
.game-lounge .last-result{font:400 11px/1.8 'Noto Sans JP',sans-serif;color:#57705d;margin:10px 0 0;gap:5px 12px}.game-lounge .last-result b{color:#496550;font-weight:500}
.home-resources{margin-top:20px}.game-lounge .title-search-intro{position:static;font:400 12px/1.9 'Noto Sans JP',sans-serif;color:#5b7666;letter-spacing:0;margin:0 0 12px;text-align:center}.game-lounge .title-search-intro a{color:#376855;font-size:12px;text-underline-offset:3px}
.game-lounge .official-pdf-library{padding:8px 14px;border:1px solid #b4c7b7;border-radius:10px;background:transparent;margin:0;box-shadow:none}.game-lounge .official-pdf-library summary{color:#3c6354;font-size:12px;min-height:40px;font-weight:600}.game-lounge .official-pdf-library summary span{color:#66816e;font-size:11px}.game-lounge .official-pdf-library p,.game-lounge .official-pdf-year h3{color:#57745f;font-size:12px}.game-lounge .official-pdf-year a{color:#24553f;background:#e6eddd;border-color:#b5c8b5}
.game-lounge .title-footer{border-color:#b5c5b2;color:#67806b;padding:18px 0;font-size:10px;font-family:inherit;letter-spacing:0}.game-lounge .title-footer>span:last-child{display:none}
.game-lounge .question-source legend,.game-lounge .setup-label{color:#2f5246;font-size:13px}.game-lounge .question-source-options label{background:#fffdf5;border-color:#b2c7b6}.game-lounge .question-source-options label:has(input:checked){background:#d8ead8;border-color:#507b60}.game-lounge .question-source-options b{color:#254c39}.game-lounge .question-source-options small,.game-lounge #questionSourceNotice,.game-lounge .year-publication-note{color:#56725d;font-size:12px}.game-lounge .category-picker{color:#3c5b46}.game-lounge .category-picker select{background:#fffcf4;color:#284c37;border:1px solid #9fb9a0;border-radius:8px;min-height:44px}.game-lounge .mode-card{border:1px solid #9db69f;background:#fffdf3;color:#2f5542;box-shadow:0 2px #bdcdb6;min-height:94px}.game-lounge .mode-card.active{background:#ffe4a0;border:2px solid #94773e;box-shadow:0 2px #94773e}.game-lounge .mode-card small,.game-lounge .mode-card em,.game-lounge .mode-card.active small{color:#5b735b}.game-lounge input{accent-color:#537a59}
.game-lounge :focus-visible{outline:3px solid #947012;outline-offset:4px}
/* The same physical buttons carry into play; text surfaces stay calm. */
.app-shell{border:2px solid var(--game-ink);box-shadow:5px 6px 0 #b8cabb}.topbar{background:var(--game-ink)}.brand-mark{background:#f9d36a;color:var(--game-ink);border-radius:10px;box-shadow:none}.question-panel .choice{border:2px solid #b6c8b7;border-radius:12px;background:#fffef8;box-shadow:0 2px 0 #e1e9d9}.question-panel .choice-index{background:#eff3e6;border:1px solid #bbcbb3;border-radius:8px;color:#3f5d45}.question-panel .choice.selected{background:#fff2cb;border-color:#a08541;box-shadow:0 2px 0 #a08541}.question-panel .choice.selected .choice-index{background:#ffd363;color:#3b4938;border-color:#a08541}.question-panel .choice.correct{border-color:#49866a;background:#e8f4df}.question-panel .choice.wrong{border-color:#b46970;background:#ffeff0}.action-row .primary-btn,.result-actions .primary-btn{background:#ffd363;color:#263f4d;border:2px solid #263f4d;box-shadow:0 3px #927b42;font-weight:800}.action-row .primary-btn:disabled{background:#e4e9d8;color:#6a7d6a;border-color:#a7b8a0;box-shadow:none}.action-row .primary-btn:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px #927b42}.action-row{background:#f6f8ef}.result-card{border:2px solid var(--game-ink);background:#fffdf5;box-shadow:6px 7px #102b3344}.result-summary div{border-radius:12px;background:#f2f4e6}.result-actions .secondary-btn{border:1px solid #aac0a8;background:#e8eee0;color:#385b42;box-shadow:0 2px #bacbb5}
.auth-gate{background:radial-gradient(ellipse at 80% 20%,#dcead8,transparent 65%),#f1f0e2;color:var(--game-ink)}.auth-grid{display:none}.auth-card{position:relative;max-width:460px;background:#fffdf5;border:2px solid var(--game-ink);border-radius:20px;color:var(--game-ink);box-shadow:6px 7px 0 #b4c9b2;padding:28px}.auth-card .auth-brand{color:var(--game-ink);font-size:30px}.auth-card .auth-brand span{color:var(--game-ink)}.auth-card h1{margin-top:24px;color:var(--game-ink);padding-right:66px}.auth-lead,.auth-card label,.auth-note,.auth-switch{color:#5a7565}.auth-card input{background:#f6f8ec;color:#2d5240;border:1px solid #9db69e}.auth-submit{border:2px solid var(--game-ink);background:#ffd363;color:var(--game-ink);box-shadow:0 3px #94783b;font-weight:800}.auth-switch button{color:#346750}.pin-wrap button{background:#e4eedd;color:#3c6251;border-color:#9db69e}.auth-note{border-color:#c3d1bb}.auth-card .auth-mascot{position:absolute;top:23px;right:22px;width:60px;pointer-events:none}.auth-card :focus-visible{outline-color:#947012}.auth-message{color:#a0394c}
.legal-note{color:#657c66;font-size:11px}
@media(hover:hover){.game-lounge .title-ranking-btn:hover{background:#fff0bb;transform:translateY(-1px)}.game-lounge #startGame:hover{background:#ffe18c;transform:translateY(-1px)}.game-lounge .home-modes button:not(:disabled):hover{filter:brightness(1.04);transform:translateY(-1px)}}
@media(max-width:1000px) and (min-width:761px){.game-lounge .title-content{gap:24px;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.game-lounge .title-copy h1{font-size:60px}.mascot-speech{right:-8px;font-size:12px}.home-console{padding:18px}.game-lounge .home-modes .battle-launch{grid-template-columns:1fr}.game-lounge .home-modes #openBattleButton{width:100%}}
@media(max-width:760px){
 .game-lounge{padding:0 max(16px,env(safe-area-inset-left))}.game-lounge .title-top{min-height:66px;padding:12px 0;gap:8px;flex-wrap:wrap}.game-lounge .title-top>span:first-child{font-size:15px;max-width:none;letter-spacing:0}.game-lounge .title-top .title-account-actions{gap:6px;flex-wrap:wrap;margin-left:auto}.game-lounge .title-account-actions .title-ranking-btn{font-size:11px;padding:8px;min-height:40px;border-radius:8px;box-shadow:0 2px var(--game-ink)}
 .game-lounge .title-content{display:flex;flex-direction:column;gap:0;padding:20px 0 24px}.game-lounge .title-copy{width:100%;text-align:left;padding:4px 120px 14px 0;min-height:176px;display:flex;flex-direction:column;justify-content:center}.game-lounge .title-kicker{font-size:9px;letter-spacing:0;white-space:nowrap}.game-lounge .title-copy h1{font-size:clamp(31px,9.3vw,53px);margin:6px 0 0;letter-spacing:-.06em}.game-lounge .title-lead{font-size:12px;line-height:1.9;margin:8px 0 0;max-width:220px}.game-lounge .welcome-user{font-size:10px;margin:6px 0 0;line-height:1.7}
 .home-mascot{position:absolute;width:126px;height:200px;right:-4px;top:-8px;margin:0;max-width:none}.home-mascot .mascot-window{width:96px;transform:rotate(4deg)}.mascot-platform{width:120px;height:23px;bottom:8px;box-shadow:0 4px #d2dfcd}.mascot-speech{display:none}
 .game-lounge .title-support{width:100%;margin:14px 0 0;display:block}.home-console{padding:16px;border-radius:18px;box-shadow:4px 5px #bdcebe}.home-section-label{font-size:14px;margin-bottom:12px}.game-lounge #startGame{min-height:74px;font-size:22px;padding:12px 16px}.game-lounge #startGame b{font-size:22px;right:18px;top:26px}.game-lounge .shift-setup>summary{padding:10px 12px;min-height:59px}.game-lounge #setupSummary{font-size:11px}.game-lounge .how-btn{font-size:11px}.home-modes{gap:10px;margin-top:10px}.game-lounge .home-modes>section{padding:12px;gap:3px}.game-lounge .home-modes h2{font-size:15px}.game-lounge .home-modes p{font-size:11px;line-height:1.85}.game-lounge .home-modes button{font-size:11px;padding:10px 7px;min-height:44px}.game-lounge .home-modes .battle-launch{grid-template-columns:1fr;gap:8px;padding:14px}.game-lounge .home-modes .battle-launch h2{font-size:16px}.game-lounge .home-modes .battle-launch p{font-size:11px}.game-lounge .home-modes #openBattleButton{font-size:13px;min-height:46px}.home-record{margin-top:16px;padding-top:12px}.game-lounge .title-metrics{gap:8px}.game-lounge .title-metric b{font-size:19px}.game-lounge .title-metric span{font-size:10px}.game-lounge .last-result{font-size:10px}.home-resources{margin-top:20px}.game-lounge .title-search-intro{font-size:11px}.game-lounge .title-footer{font-size:10px}.game-lounge .question-source-options b{font-size:12px}.game-lounge .mode-card{padding:10px 6px}.app-shell{border:0;border-radius:0;box-shadow:none}.auth-card{padding:26px 22px}.auth-card .auth-mascot{right:18px;width:55px}.auth-card h1{font-size:20px}.auth-gate{padding:18px}
}
@media(prefers-reduced-motion:reduce){.game-lounge *, .game-lounge *::before,.game-lounge *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Cool observation-room treatment. Character art is kept unchanged. */
:root{--game-ink:#b9d5cf;--game-cream:#102326;--game-yellow:#a3d1c6;--game-teal:#79b8ab;--game-line:#345355}
html,body{background:#071316}
.game-lounge{color:#d9e7e2;background:radial-gradient(ellipse at 15% 30%,#1d373b 0,transparent 55%),#08171a!important}
.game-lounge .title-grid{background-image:linear-gradient(#83b7a814 1px,transparent 1px),linear-gradient(90deg,#83b7a814 1px,transparent 1px);background-size:64px 64px;opacity:.25;mask-image:linear-gradient(180deg,black,transparent)}
.game-lounge .title-top{border-bottom:1px solid #304c50;color:#b8cdc8}.game-lounge .title-top>span:first-child{color:#b8cdc8;font-size:16px;letter-spacing:.12em;font-weight:700}
.game-lounge .title-ranking-btn{border:1px solid #466166;background:#0d2226;color:#bdd1cc;border-radius:4px;box-shadow:none;font-weight:500}
.game-lounge .title-copy{text-align:left}.game-lounge .title-kicker{color:#81aaa1;font-size:11px;letter-spacing:.12em}.game-lounge .title-copy h1{color:#dce8e3;text-shadow:none;letter-spacing:-.04em;font-weight:700}.game-lounge .title-copy h1 span{color:#83b9ad}.game-lounge .title-lead{color:#9db7b0;font-weight:400;margin-inline:0}.game-lounge .welcome-user,.game-lounge .welcome-user b{color:#7fa198;font-weight:400}
.home-mascot{height:390px;max-width:340px;margin:28px 0 0;border:1px solid #3c6063;border-radius:2px;background:radial-gradient(ellipse at 50% 40%,#d6ded5 0,#7c9690 42%,#203c41 78%,#0c252a 100%);box-shadow:inset 0 0 50px #07171b55;overflow:hidden}
.home-mascot:before{content:'NURDIVE / OBSERVATION';position:absolute;top:14px;left:16px;color:#b7cdc3;font:500 9px/1.6 'Noto Sans JP',sans-serif;letter-spacing:.15em;z-index:2}
.home-mascot:after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(transparent 0,transparent 3px,#0621290c 4px);z-index:2}
.home-mascot .mascot-window{transform:none;width:172px;filter:saturate(.55);margin-top:22px}
.mascot-speech,.mascot-platform{display:none}
.home-console{background:#102428;border:1px solid #3d5c60;border-radius:6px;box-shadow:none;padding:24px}
.home-section-label{font-size:13px;letter-spacing:.08em;color:#b6cdc5;font-weight:500;padding-bottom:14px;border-bottom:1px solid #304d50}
.game-lounge .shift-setup{background:#0a1d21;border:1px solid #36575a;border-radius:4px}.game-lounge .shift-setup>summary b{color:#b7cbc5;font-weight:500}.game-lounge .shift-setup>summary:after{color:#83b9ad;font-weight:400}.game-lounge #setupSummary{color:#809e95}.game-lounge .shift-setup-content{border-color:#36575a}
.game-lounge #startGame{background:#a3d1c6;color:#0c2c2b;border:1px solid #a3d1c6;border-radius:4px;box-shadow:none;font-size:23px;font-weight:700;min-height:78px;letter-spacing:.03em}.game-lounge #startGame small{font-weight:500;font-size:10px;letter-spacing:.18em}.game-lounge #startGame:active{transform:translateY(1px);box-shadow:none}.game-lounge #startGame b{font-weight:400}
.game-lounge .how-btn{color:#8da99f;font-weight:400;text-decoration-color:#42685a}
.home-modes{gap:0;border-top:1px solid #355357;margin-top:18px}
.game-lounge .home-modes>section{border:0;border-radius:0;box-shadow:none;background:none;padding:18px 12px 16px 0;gap:4px}
.game-lounge .home-modes>.study-home{padding-left:18px;border-left:1px solid #355357}
.game-lounge .home-modes h2{font-size:16px;letter-spacing:.015em;color:#c6d9d1;font-weight:600}.game-lounge .home-modes p{color:#8fa99f;font-size:12px}
.game-lounge .home-modes button{border:1px solid #4c6e69;border-radius:4px;box-shadow:none;background:#193635;color:#b2d6c8;font-size:12px;font-weight:500}
.game-lounge .home-modes #studyStart:disabled{color:#87a599}.game-lounge .home-modes #studyStart:not(:disabled){background:#254941;color:#c4dfd2}
.game-lounge .home-modes .battle-launch{background:none;border:0;border-top:1px solid #355357;border-radius:0;padding:18px 0 0;box-shadow:none;grid-template-columns:minmax(0,1fr) auto;gap:16px}.game-lounge .home-modes .battle-launch h2{color:#c9dcd2;font-size:16px}.game-lounge .home-modes .battle-launch p{color:#8fa99f;font-size:12px}.game-lounge .home-modes #openBattleButton{background:#254744;color:#bbd9cb;border:1px solid #55796f;border-radius:4px;box-shadow:none;min-width:126px}
.home-record{border-top:1px solid #355357;margin-top:22px}.game-lounge .title-metric span{color:#819d91;font-size:10px}.game-lounge .title-metric b{color:#bad5c7;font-size:20px;font-weight:500}.game-lounge .last-result,.game-lounge .last-result b{color:#839e92;font-weight:400}
.game-lounge .title-search-intro{color:#6f9186;text-align:left}.game-lounge .title-search-intro a{color:#91b4a6}.game-lounge .official-pdf-library{border:1px solid #304e4e;border-radius:4px;background:none}.game-lounge .official-pdf-library summary{color:#9cb9aa}.game-lounge .official-pdf-library summary span{color:#78998c}.game-lounge .official-pdf-library p,.game-lounge .official-pdf-year h3{color:#9bb6a6}.game-lounge .official-pdf-year a{background:#193631;color:#b1d3bf;border-color:#41665a}.game-lounge .title-footer{border-color:#2f4d49;color:#6f9385}
.game-lounge .question-source legend,.game-lounge .setup-label{color:#aac6b9}.game-lounge .question-source-options label{background:#102a28;border-color:#3d6254}.game-lounge .question-source-options label:has(input:checked){background:#25483e;border-color:#7fa890}.game-lounge .question-source-options b{color:#c2dac9}.game-lounge .question-source-options small,.game-lounge #questionSourceNotice,.game-lounge .year-publication-note{color:#93ae9a}.game-lounge .category-picker{color:#a4c0ad}.game-lounge .category-picker select{background:#0e2824;color:#c1d8c6;border-color:#426758;border-radius:4px}.game-lounge .mode-card{background:#122f29;color:#bdd7c4;border-color:#466d58;border-radius:4px;box-shadow:none}.game-lounge .mode-card.active{background:#315544;border:1px solid #93b59a;box-shadow:inset 0 2px #9bbc9a}.game-lounge .mode-card small,.game-lounge .mode-card em,.game-lounge .mode-card.active small{color:#94b59b}.game-lounge input{accent-color:#95bda3}.game-lounge :focus-visible{outline-color:#b4dbc5}
.app-shell{border:1px solid #34565a;box-shadow:none}.topbar{background:#0b2127}.brand-mark{background:#254a4e;color:#c2dbd1;border-radius:4px}.question-panel .choice{border:1px solid #aebfb7;border-radius:6px;box-shadow:none;background:#fbfcf8}.question-panel .choice-index{border-radius:4px;background:#edf2eb;color:#36594a}.question-panel .choice.selected{background:#e4f1e7;border-color:#44886b;box-shadow:inset 3px 0 #44886b}.question-panel .choice.selected .choice-index{background:#215d4b;color:#fff;border-color:#215d4b}.action-row .primary-btn,.result-actions .primary-btn{background:#173e42;color:#e9f4e9;border:1px solid #173e42;box-shadow:none;border-radius:5px;font-weight:600}.action-row .primary-btn:disabled{background:#d9e3dc;color:#65786e;border-color:#bccdc0;box-shadow:none}.action-row .primary-btn:active:not(:disabled){transform:translateY(1px);box-shadow:none}.result-card{border:1px solid #759590;background:#f6f8f3;box-shadow:0 20px 60px #0003}.result-summary div{border-radius:6px}.result-actions .secondary-btn{box-shadow:none;border-radius:5px}
.auth-gate{background:radial-gradient(ellipse at top right,#1d3e42,transparent 65%),#08191d;color:#d6e6db}.auth-card{background:#102b30;border:1px solid #45666a;color:#d6e6db;border-radius:8px;box-shadow:0 16px 50px #0003}.auth-card .auth-brand,.auth-card .auth-brand span,.auth-card h1{color:#c7ddd2}.auth-lead,.auth-card label,.auth-note,.auth-switch{color:#9bb9ab}.auth-card input{background:#0a2126;color:#d0e3d5;border-color:#42675d}.auth-submit{background:#99c8b7;color:#102e29;border:1px solid #99c8b7;box-shadow:none;border-radius:4px}.auth-switch button{color:#add4bc}.pin-wrap button{background:#193b35;color:#bedcca;border-color:#466e5a}.auth-note{border-color:#355b49}.auth-card .auth-mascot{display:none}.auth-card h1{padding-right:0}.auth-card :focus-visible{outline-color:#add4bc}.auth-message{color:#ffabb6}.legal-note{color:#83a697}
@media(hover:hover){.game-lounge .title-ranking-btn:hover{background:#173b3d;transform:none}.game-lounge #startGame:hover{background:#b8ded1;transform:none}.game-lounge .home-modes button:not(:disabled):hover{background:#2b5146;filter:none;transform:none}}
@media(max-width:760px){
 .game-lounge .title-top .title-ranking-btn{box-shadow:none;border-radius:4px}.game-lounge .title-top>span:first-child{font-size:14px}.game-lounge .title-copy{padding-right:124px;min-height:192px}.game-lounge .title-copy h1{font-weight:700;font-size:clamp(30px,9vw,51px)}.game-lounge .title-kicker{font-size:9px;letter-spacing:0}.game-lounge .title-lead{font-size:12px}.home-mascot{position:absolute;top:0;right:0;width:111px;height:186px;border:1px solid #4f6d66;margin:0;background:radial-gradient(ellipse at 50% 40%,#c7d4c5,#658880 55%,#173c3d 100%)}.home-mascot:before{top:7px;left:8px;font-size:6px;letter-spacing:.05em;content:'NURDIVE'}.home-mascot .mascot-window{width:83px;margin-top:12px;transform:none}.home-console{padding:16px;border-radius:5px;box-shadow:none}.home-section-label{font-size:12px;margin-bottom:12px;padding-bottom:12px}.game-lounge #startGame{min-height:72px;font-size:21px;border-radius:4px}.home-modes{gap:0}.game-lounge .home-modes>section{padding:15px 10px 15px 0}.game-lounge .home-modes>.study-home{padding-left:12px}.game-lounge .home-modes h2{font-size:14px}.game-lounge .home-modes p{font-size:11px}.game-lounge .home-modes button{font-size:11px}.game-lounge .home-modes .battle-launch{grid-template-columns:1fr;gap:10px;padding:16px 0 0}.game-lounge .home-modes .battle-launch h2{font-size:15px}.game-lounge .home-modes .battle-launch p{font-size:11px}.game-lounge .home-modes #openBattleButton{font-size:13px}.game-lounge .title-metric b{font-size:18px}.app-shell{border:0}.auth-card{border-radius:6px}
}
/* Readable Japanese typography and a slow, low-contrast monitor fluctuation. */
.game-lounge,.game-lounge button,.game-lounge select,.auth-card,.auth-card button{font-family:'Noto Sans JP','Yu Gothic UI','Meiryo',sans-serif}
.home-mascot:after{animation:observation-light 8s ease-in-out infinite}
@keyframes observation-light{0%,100%{opacity:.45}45%{opacity:.9}65%{opacity:.55}}
@media(prefers-reduced-motion:reduce){.home-mascot:after{animation:none}}
/* Full-bleed descent: the world rises past the diver, without a character card. */
.game-lounge{isolation:isolate;background:#04121e!important;position:relative}
.game-lounge .title-grid{display:none}
.dive-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;background:radial-gradient(ellipse at 24% -15%,#3d8394 0,transparent 43%),radial-gradient(ellipse at 30% 45%,#124354 0,transparent 53%),linear-gradient(165deg,#102b3b,#04121e 70%)}
.dive-scene:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#010c16aa,transparent 17%,transparent 42%,#020e1977 70%),radial-gradient(ellipse at 25% 70%,transparent 8%,#020b1744 75%);z-index:4}
.dive-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#04121e,transparent 28%);z-index:5}
.dive-rays{position:absolute;left:-15%;top:-30%;width:95%;height:150%;background:conic-gradient(from 166deg at 45% 0%,transparent 0deg,#86d6dc10 5deg,transparent 10deg,#a9e7e217 15deg,transparent 20deg,#65c5d812 26deg,transparent 33deg);transform-origin:45% 0;animation:dive-rays 22s ease-in-out infinite alternate}
.dive-current{position:absolute;left:-8%;top:-800px;width:66%;height:2400px;background:repeating-radial-gradient(ellipse at 52% 50%,transparent 0 128px,#83bdcd0c 130px 132px,transparent 136px 246px);transform:rotate(-12deg);animation:dive-current 32s linear infinite;opacity:.8}
.dive-current-near{left:-25%;width:100%;opacity:.34;animation-duration:19s;background:repeating-linear-gradient(172deg,transparent 0 320px,#8cdbdf24 322px,transparent 324px 640px);mask-image:linear-gradient(90deg,#000,transparent 47%,#000)}
.dive-depth{position:absolute;left:9%;top:-600px;width:1px;height:2400px;background:repeating-linear-gradient(transparent 0 98px,#91cdd139 99px 100px);animation:dive-current 25s linear infinite}
.dive-depth:after{content:'';position:absolute;inset:0;width:20px;background:repeating-linear-gradient(transparent 0 198px,#91cdd139 199px 200px)}
.dive-travel{position:absolute;left:26%;top:305px;width:160px;height:285px;z-index:3;animation:dive-descent 16s ease-in-out infinite}
.dive-body{position:relative;width:100%;height:100%;transform:rotate(151deg);filter:drop-shadow(0 0 20px #8cced82b)}
.dive-body .mascot-window{width:100%;mix-blend-mode:normal;filter:saturate(.48) brightness(.77);transform:none;margin:0}
.dive-lamp{position:absolute;left:30%;bottom:90%;width:90%;height:320px;transform:translateX(-25%);transform-origin:50% 100%;clip-path:polygon(48% 100%,52% 100%,100% 0,0 0);background:linear-gradient(0deg,#ffe2a075,#b2e4db12 45%,transparent);filter:blur(3px)}
.dive-mote{position:absolute;left:var(--x);top:105%;width:var(--size);height:var(--size);border:1px solid #b2e4e187;border-radius:50%;box-shadow:0 0 6px #9de4e22b;animation:dive-bubbles var(--duration) var(--delay) linear infinite}
.game-lounge .title-copy{min-height:610px;padding-right:0;position:relative;text-shadow:0 2px 18px #00131c}
.game-lounge .title-copy h1{font-size:clamp(60px,6.9vw,94px);color:#e5f1ef}.game-lounge .title-copy h1 span{color:#aed8d7}
.game-lounge .title-kicker{color:#a8cccf}.game-lounge .welcome-user,.game-lounge .welcome-user b{color:#a8c6c7}
.home-console{background:#0b2028ed;border-color:#54788180;box-shadow:0 24px 70px #0003}
.home-resources{background:#071a23bd;padding:14px;border-radius:4px}
.dive-motion{position:absolute;left:0;bottom:0;background:#071b2599;color:#a8c4c7;border:1px solid #6b969b60;border-radius:3px;font-size:11px;padding:10px 13px;min-height:40px;cursor:pointer}
.dive-motion:before{content:'Ⅱ';margin-right:8px;font-size:10px}.dive-paused .dive-motion:before{content:'▷'}
.dive-paused .dive-scene *{animation-play-state:paused!important}
@keyframes dive-current{to{translate:0 -640px}}
@keyframes dive-rays{to{transform:rotate(7deg);opacity:.6}}
@keyframes dive-bubbles{0%{transform:translate(0,0);opacity:0}10%,85%{opacity:.65}100%{transform:translate(32px,-1300px);opacity:0}}
@keyframes dive-descent{0%,100%{transform:translate(-50%,-28px) rotate(-6deg)}50%{transform:translate(calc(-50% + 24px),45px) rotate(5deg)}}
@media(max-width:760px){
 .game-lounge .title-copy{min-height:370px;padding:6px 0 0;text-align:left}
 .game-lounge .title-copy h1{font-size:clamp(46px,13vw,76px)}
 .game-lounge .title-kicker{font-size:10px;letter-spacing:.1em}
 .dive-travel{left:56%;top:250px;width:107px;height:190px}
 .dive-current{width:135%;left:-25%}.dive-current-near{width:180%;left:-40%}
 .dive-rays{width:180%;left:-35%}.dive-lamp{height:210px}
 .dive-motion{font-size:10px;bottom:0;min-height:36px;padding:8px 10px}
 .game-lounge .title-content{gap:20px}.home-resources{padding:12px}
}
@media(prefers-reduced-motion:reduce){.dive-scene *{animation:none!important}.dive-travel{transform:translate(-50%,0)}}
@media(max-width:760px){.game-lounge .title-copy{justify-content:flex-start}}
/* Articulated WebGL swimmer; the CSS-only cutout has been replaced. */
.dive-cg{position:absolute;left:3%;top:260px;width:46%;height:490px;z-index:3;pointer-events:none}
.dive-cg canvas{display:block;width:100%;height:100%}
@media(min-width:761px) and (max-width:1000px){.dive-cg{left:0;width:44%;top:230px;height:420px}}
@media(max-width:760px){.dive-cg{left:0;top:190px;width:100%;height:270px}}
/* Slight transparency, with the existing menu positions and hit areas retained. */
.game-lounge .home-console{background:#0b2028c9}
.game-lounge #startGame{background:#a3d1c6cc}
.game-lounge .title-ranking-btn{background:#0d2226b3}
.game-lounge .home-modes button{background:#193635b3}
.game-lounge .home-modes #studyStart:not(:disabled){background:#254941bf}
.game-lounge .home-modes #openBattleButton{background:#254744b3}
@media(hover:hover){
 .game-lounge #startGame:hover{background:#b8ded1e6}
 .game-lounge .title-ranking-btn:hover{background:#173b3dd9}
 .game-lounge .home-modes button:not(:disabled):hover{background:#2b5146d9}
}
/* Keep the menu near the top instead of reserving an empty character area. */
.game-lounge .title-copy{min-height:0}
@media(max-width:760px){
 .game-lounge .title-copy{min-height:0;padding-bottom:0}
 .game-lounge .title-content{gap:20px}
}
/* The swimmer travels through the visible viewport, independently of menu layout. */
.game-lounge .dive-cg{position:fixed;inset:0;width:100%;height:100svh;z-index:3;pointer-events:none}
.game-lounge .home-console{background:#0b202899}
