:root{--nus-blue:#003d7c;--nus-blue-ink:#08213f;--nus-blue-soft:#e8f1fb;--nus-orange:#ef7c00;--nus-orange-ink:#a84f00;--paper:#fff;--page:#f7fafc;--line:#d8e1ec;--muted:#5d6b7a;--success:#147d4f;--danger:#b42318;--app-viewport-height:100vh;color:var(--nus-blue-ink);background:var(--page);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}@supports (height:100svh){:root{--app-viewport-height:100svh}}@supports (height:min(100dvh, 100svh)){:root{--app-viewport-height:min(100dvh, 100svh)}}*{box-sizing:border-box}[hidden]{display:none!important}html,body{width:100%;min-width:280px;height:100%;min-height:100%;margin:0}body{overflow:hidden}button,input{font:inherit}button{cursor:pointer}.app-shell{width:100%;max-width:100vw;height:var(--app-viewport-height);max-height:var(--app-viewport-height);grid-template-rows:minmax(0,1fr);place-items:center;min-height:0;margin:0 auto;padding:clamp(4px,1dvh,10px);display:grid;overflow:hidden}.topbar,.case-strip,.game-footer,.actions,.brand,.clue-kicker,.modal-header{align-items:center;display:flex}.topbar{background:var(--nus-blue);color:#fff;min-height:52px;margin:-1px calc(var(--frame-pad) * -1) 0;border-radius:8px 8px 0 0;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:7px 8px;display:grid}.brand{width:100%;color:inherit;gap:6px;min-width:0;text-decoration:none;overflow:hidden}.brand-icon{border-radius:8px;flex:none;width:clamp(34px,8.1vw,44px);height:clamp(34px,8.1vw,44px)}.brand-title{gap:0;min-width:0;font-size:clamp(.95rem,4.8vw,1.44rem);font-weight:800;line-height:1.02;display:grid;overflow:hidden}.brand-title span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.brand-title span:last-child{color:#fff;font-size:.66em;font-weight:700}.brand-title em{color:#ffb15c;font-style:normal}.actions{flex:none;gap:4px;min-width:max-content}.icon-button,.nav-button{border:1px solid var(--line);background:var(--paper);color:var(--nus-blue);place-items:center;padding:0;display:grid}.icon-button{border-radius:50%;width:34px;height:34px;font-weight:800;position:relative}.topbar .icon-button{width:36px;height:36px}.topbar .icon-button:before{content:"";position:absolute;inset:-4px}.icon-button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.nav-button{border-radius:8px;width:36px;height:42px;font-size:1.35rem;line-height:1}.game-card{--frame-pad:clamp(7px, 1.6dvh, 12px);width:min(100%,480px);min-width:0;max-width:100%;height:100%;min-height:0;max-height:calc(var(--app-viewport-height) - 8px);border:2px solid var(--nus-blue);background:var(--paper);padding:0 var(--frame-pad) clamp(6px, 1.35dvh, 12px);border-radius:10px;grid-template-rows:auto auto minmax(104px,1fr) auto auto auto;gap:clamp(5px,1dvh,9px);display:grid;overflow:hidden;box-shadow:0 14px 40px #003d7c1f}@media (width>=620px) and (height>=760px){.game-card{width:min(100%, calc((var(--app-viewport-height) - 12px) * .72), 560px);max-height:calc(var(--app-viewport-height) - 12px)}}.case-strip{gap:8px;padding-top:6px}.case-meta{text-align:center;flex:auto;gap:2px;min-width:0;display:grid}.case-meta span{color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.76rem;font-weight:800}.case-meta strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:clamp(.95rem,1.8dvh,1.1rem);line-height:1.1;display:block;overflow:hidden}.clue-panel{background:linear-gradient(135deg, #e8f1fbf5, #fff4e6db), var(--nus-blue-soft);border:1px solid #c9d9eb;border-radius:8px;grid-template-rows:auto 1fr;gap:7px;min-height:0;padding:clamp(8px,1.5dvh,12px);display:grid;overflow:hidden}.clue-kicker{color:var(--nus-blue);text-transform:uppercase;letter-spacing:.08em;justify-content:flex-end;gap:8px;font-size:.78rem;font-weight:800}.clue-kicker span{color:var(--nus-orange-ink)}.clue-stack{align-content:start;gap:6px;min-height:0;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.clue-step{background:#ffffffb8;border:1px solid #003d7c29;border-radius:8px;grid-template-columns:22px minmax(0,1fr);align-items:start;gap:8px;padding:7px;display:grid}.clue-step span{background:var(--nus-blue);color:#fff;border-radius:50%;place-items:center;width:22px;height:22px;font-size:.75rem;font-weight:800;display:grid}.clue-step p{color:var(--nus-blue-ink);margin:0;font-size:clamp(.84rem,min(3.3vw,1.75dvh),.96rem);font-weight:650;line-height:1.26}.clue-step.current{border-color:var(--nus-orange)}.clue-step.unused{color:var(--muted);background:#e2e8f0b8;border-color:#64748b38}.clue-step.unused span{color:#fff;background:#94a3b8}.clue-step.unused p{color:#5f6c7b;font-weight:600}.guess-form{grid-template-columns:minmax(0,1fr) 84px;gap:6px;width:100%;min-width:0;max-width:100%;display:grid}.guess-field{min-width:0;position:relative}input{width:100%;min-width:0;min-height:44px;color:var(--nus-blue-ink);background:#fff;border:1px solid #b9c7d8;border-radius:8px;padding:0 12px}.suggestion-box{z-index:20;border:1px solid var(--nus-blue);background:var(--paper);border-radius:8px;gap:2px;padding:6px;display:grid;position:absolute;bottom:calc(100% + 9px);left:12px;right:12px;box-shadow:0 14px 32px #0f172a38}.suggestion-box:after{content:"";background:var(--paper);border-right:1px solid var(--nus-blue);border-bottom:1px solid var(--nus-blue);width:12px;height:12px;position:absolute;bottom:-7px;left:24px;transform:rotate(45deg)}.suggestion-box[hidden]{display:none}.suggestion-option{z-index:1;min-height:30px;color:var(--nus-blue-ink);text-align:left;background:0 0;border:0;border-radius:6px;padding:4px 8px;font-weight:750;position:relative}.suggestion-option:hover,.suggestion-option:focus-visible{background:var(--nus-blue-soft)}input:focus,button:focus-visible{outline-offset:2px;outline:3px solid #ef7c0052}.primary-button,.secondary-button{text-align:center;border:0;border-radius:8px;justify-content:center;align-items:center;min-height:42px;padding:0 14px;font-weight:800;line-height:1.1;display:inline-flex}.primary-button{background:var(--nus-blue);color:#fff;white-space:nowrap;min-width:72px;max-width:100%}.secondary-button{border:1px solid var(--line);color:var(--nus-blue);background:#fff4e6}.danger-button{color:var(--danger);background:#fff1f0;border-color:#b423186b}.danger-button:hover,.danger-button:focus-visible{border-color:var(--danger);color:#8f1d14;background:#ffe4e1}button:disabled{cursor:not-allowed;opacity:.48}.secondary-button.compact{flex:0 0 76px;padding-inline:10px}.feedback{min-height:18px;color:var(--muted);text-align:center;margin:0;font-size:.86rem;line-height:1.2}.feedback.good{color:var(--success);font-weight:800}.feedback.bad{color:var(--danger);font-weight:800}.case-log-panel{background:#f8fbff;border:1px solid #c9d9eb;border-radius:8px;height:84px;padding:6px 12px 8px;position:relative;overflow:auto}.case-log-panel.solved{background:#f0fff6;border-color:#b7d9c8;height:84px;overflow:hidden}.case-log-panel.failed{background:#fff5f4;border-color:#efb5ae;height:84px;overflow:hidden}.case-log-head{justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.report-case-button{min-height:24px;color:var(--nus-blue);cursor:pointer;background:#fff4e6;border:1px solid #ef7c0080;border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 7px;font-size:.66rem;font-weight:900;line-height:1;display:inline-flex}.report-case-button svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:13px;height:13px}.result-label{color:var(--success);text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:800}.case-log-panel:not(.solved):not(.failed) .result-label{color:var(--nus-blue)}.case-log-panel:not(.solved):not(.failed) .case-log-head>div{align-items:baseline;gap:7px;min-width:0;display:flex}.case-log-panel h2{color:var(--nus-blue);margin:0 0 3px;font-size:1.05rem;line-height:1.1}.case-log-panel.solved h2,.case-log-panel.failed h2{margin-top:8px}.case-log-panel:not(.solved):not(.failed) h2{letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:.72rem;font-weight:900;line-height:1}.case-log-panel.solved h2{color:var(--success)}.case-log-panel.failed .result-label,.case-log-panel.failed h2{color:var(--danger)}.case-log-panel p{color:#21523a;margin:0;font-size:.86rem;line-height:1.24}.answer-feedback-line{display:block}.answer-feedback-topic{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:.72rem;font-weight:800}.answer-feedback-reaction{color:inherit;font-weight:700}.answer-feedback-detail{color:var(--nus-blue);font-weight:800}.answer-feedback-takehome{color:#173f2d;font-weight:700}.case-log-panel.solved p,.case-log-panel.failed p{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.case-log-panel.failed p{color:#84251c}.wrong-guess-list{flex-wrap:wrap;gap:5px;margin:4px 0 0;padding:0;list-style:none;display:flex}.wrong-guess-list li{color:#9f2a20;overflow-wrap:anywhere;background:#fff7f6;border:1px solid #f3b3ad;border-radius:999px;max-width:100%;padding:3px 9px;font-size:.78rem;font-weight:800;line-height:1.25}.wrong-guess-list .empty-note{color:var(--muted);background:0 0;border-color:#0000;padding-inline:0;font-weight:650}.game-footer{gap:8px}.game-footer button,.wide{width:100%}.game-footer button{flex:1 1 0;min-width:0}.game-footer.practice .secondary-button.compact{flex:0 0 76px;width:76px}.modal{border:1px solid var(--line);width:min(100dvw - 20px,430px);max-height:calc(100dvh - 20px);color:var(--nus-blue-ink);border-radius:8px;padding:0;overflow:hidden;box-shadow:0 24px 64px #0f172a47}.modal::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#02061785}.modal form{flex-direction:column;max-height:calc(100dvh - 20px);margin:0;display:flex}.modal-header{background:#f8fafc;border-bottom:1px solid #d7dee8;justify-content:space-between;gap:12px;padding:12px 48px 12px 12px;position:relative}.modal-header .icon-button{background:#fff;border-radius:8px;width:34px;height:34px;position:absolute;top:8px;right:8px}.modal-header .icon-button:hover{border-color:var(--nus-orange);background:#fff4e6}.modal-header .icon-button svg{width:18px;height:18px}.modal-body{flex:auto;min-height:0;padding:12px;overflow-y:auto}.modal h2{color:#0f172a;margin:0;font-size:1rem;font-weight:800;line-height:1.35}.modal p{margin:0;font-size:.875rem;line-height:1.7}.modal-body>*+*{margin-top:12px}.modal a{color:var(--nus-blue);-webkit-text-decoration-color:var(--nus-orange);text-decoration-color:var(--nus-orange);text-underline-offset:4px;font-weight:700;text-decoration-line:underline}.modal-actions{gap:8px;display:grid}.report-details{border:1px solid var(--line);width:100%;min-height:144px;color:var(--nus-blue-ink);resize:vertical;background:#f8fbff;border-radius:8px;padding:10px;font:.78rem/1.45 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace}.report-link{justify-content:center;align-items:center;gap:7px;min-height:42px;display:inline-flex;color:#fff!important;text-decoration:none!important}.report-link svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:17px;height:17px}.modal a.report-link{color:#fff}.modal-creator{background:#f8fafc;border:1px solid #d7dee8;border-radius:8px;padding:11px}.modal-info-row{background:#f8fafc;border:1px solid #d7dee8;border-radius:8px;padding:10px 11px}.modal-info-row h3{color:#64748b;letter-spacing:0;text-transform:uppercase;margin:0 0 4px;font-size:.75rem;font-weight:800;line-height:1.35}.modal-info-row p{margin:0;font-size:.84rem;line-height:1.42}.modal-creator h3{color:#64748b;letter-spacing:0;text-transform:uppercase;margin:0 0 4px;font-size:.75rem;font-weight:800;line-height:1.35}.modal-creator p{line-height:1.55}.modal-disclaimer{color:#111827;background:#fff4e6;border:1px solid #fed7aa;border-radius:8px;margin-top:12px;padding:11px}.modal-disclaimer p{margin-top:8px;font-size:.8rem;line-height:1.58}.modal-disclaimer p:first-child{margin-top:0}.modal-disclaimer strong{font-weight:900}.modal-disclaimer.safety-disclaimer{color:#7c2d12;background:#fff7ed;border:1px solid #ef7c0057;border-left:4px solid #ef7c00;border-radius:8px;margin-top:12px;padding:.55rem .7rem}.modal-disclaimer.safety-disclaimer p{color:#7c2d12;font-size:.75rem;font-weight:800;line-height:1.4}.modal-disclaimer.safety-disclaimer strong{color:#9a4a00}.modal-local-data-warning{color:#9a4a00;background:#fff4e6;border-color:#ef7c006b}.modal-local-data-warning p{color:#9a4a00;font-weight:850}.support-modal{border:1px solid var(--line);color:#0f172a;border-radius:8px;width:min(100dvw - 20px,430px);max-height:calc(100dvh - 20px);padding:0;overflow:hidden}.support-modal::backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#02061785}.support-modal form{flex-direction:column;max-height:calc(100dvh - 20px);margin:0;display:flex}.support-header{background:#f8fafc;border-bottom:1px solid #d7dee8;padding:12px 48px 12px 12px;position:relative}.support-heading-row{align-items:center;gap:.75rem;display:flex}.support-heading-icon{color:#9a4a00;background:#fff4e6;border-radius:8px;flex:none;justify-content:center;align-items:center;width:36px;height:36px;display:flex}.support-heading-icon svg,.support-close svg{fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px}.support-header h2{margin:0;font-size:1rem;line-height:1.35}.support-header p{color:#64748b;letter-spacing:0;text-transform:uppercase;margin:.125rem 0 0;font-size:.75rem;font-weight:700;line-height:1.35}.support-close{border:1px solid var(--line);color:var(--nus-blue);background:#fff;border-radius:8px;place-items:center;width:34px;height:34px;padding:0;display:grid;position:absolute;top:8px;right:8px}.support-close:hover{border-color:var(--nus-orange);background:#fff4e6}.support-close svg{width:18px;height:18px}.support-body{padding:12px;overflow-y:auto}.support-body>*+*{margin-top:12px}.support-body p{color:#334155;margin-bottom:0;font-size:.875rem;line-height:1.7}.support-body a{color:var(--nus-blue);-webkit-text-decoration-color:var(--nus-orange);text-decoration-color:var(--nus-orange);text-underline-offset:4px;font-weight:700;text-decoration-line:underline}.support-card{background:#f8fafc;border:1px solid #d7dee8;border-radius:8px;padding:.75rem}.support-card h3{color:#64748b;letter-spacing:0;text-transform:uppercase;margin:0 0 .5rem;font-size:.75rem;font-weight:700;line-height:1.4}.support-card ul{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}.support-card li{color:#334155;align-items:flex-start;gap:.5rem;font-size:.875rem;line-height:1.7;display:flex}.support-card li span{color:#15803d;border:1.8px solid #15803d;border-radius:999px;flex:none;justify-content:center;align-items:center;width:16px;height:16px;margin-top:.22rem;font-size:0;display:inline-flex}.support-card li span:before{content:"";border-bottom:2px solid;border-right:2px solid;width:4px;height:8px;margin-top:-2px;transform:rotate(45deg)}.support-banner-link{width:100%;max-width:380px;margin-left:auto;margin-right:auto;display:block}.support-banner-link img{border-radius:8px;width:100%;height:auto;display:block;box-shadow:0 1px 2px #0f172a1a}.support-note{text-align:center;background:#fff4e6;border:1px solid #fed7aa;border-radius:8px;padding:.75rem;font-weight:700;color:#9a3412!important;font-size:.75rem!important;line-height:1.6!important}.stats-grid{grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0;display:grid}.stats-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.share-feedback{min-height:18px;color:var(--muted);text-align:center;margin:-2px 0 10px;font-size:.82rem;line-height:1.2}.stat-tile{border:1px solid var(--line);text-align:center;border-radius:8px;padding:10px 6px}.stat-tile strong{color:var(--nus-blue);font-size:1.3rem;display:block}.stat-tile span{color:var(--muted);font-size:.72rem;font-weight:700}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.theme-dark{--paper:#0f172a;--page:#020617;--line:#334155;--muted:#cbd5e1;--nus-blue-ink:#f8fafc;--nus-blue-soft:#172554;color:#f8fafc}.theme-dark .game-card,.theme-dark .icon-button,.theme-dark .nav-button,.theme-dark input{color:#f8fafc;background:#0f172a}.theme-dark .game-card{border-color:var(--nus-orange)}.theme-dark .topbar{color:#f8fafc;background:#1d4f8f}.theme-dark .brand-title em,.theme-dark .clue-kicker span{color:#ffb15c}.theme-dark .clue-panel{background:linear-gradient(135deg,#0b3769,#3a2106);border-color:#365a82}.theme-dark .clue-step{background:#0f172ab8;border-color:#365a82}.theme-dark .clue-step p{color:#f8fafc}.theme-dark .clue-step.unused{background:#3341559e;border-color:#94a3b847}.theme-dark .clue-step.unused span{color:#e2e8f0;background:#64748b}.theme-dark .clue-step.unused p{color:#cbd5e1}.theme-dark .clue-kicker,.theme-dark .modal h2{color:#bfdbfe}.theme-dark .secondary-button{color:#f8fafc;background:#1e293b;border-color:#475569}.theme-dark .danger-button{color:#fecaca;background:#3b1718;border-color:#b91c1c}.theme-dark .danger-button:hover,.theme-dark .danger-button:focus-visible{color:#fee2e2;background:#551c1f;border-color:#f87171}.theme-dark .case-log-panel{background:#0b223f;border-color:#365a82}.theme-dark .case-log-panel.solved{background:#052e16;border-color:#166534}.theme-dark .case-log-panel.failed{background:#3b0a0a;border-color:#b91c1c}.theme-dark .report-case-button{color:#fed7aa;background:#431407;border-color:#fb923c73}.theme-dark .case-log-panel h2{color:#bfdbfe}.theme-dark .case-log-panel:not(.solved):not(.failed) .result-label{color:#93c5fd}.theme-dark .case-log-panel.solved .result-label{color:#86efac}.theme-dark .case-log-panel.failed .result-label{color:#fca5a5}.theme-dark .case-log-panel.solved h2,.theme-dark .case-log-panel.solved p{color:#bbf7d0}.theme-dark .case-log-panel.failed h2,.theme-dark .case-log-panel.failed p{color:#fecaca}.theme-dark .answer-feedback-topic{color:#cbd5e1}.theme-dark .answer-feedback-detail{color:#bfdbfe}.theme-dark .answer-feedback-takehome{color:#bbf7d0}.theme-dark .suggestion-box,.theme-dark .suggestion-box:after{background:#0f172a}.theme-dark .suggestion-option{color:#f8fafc}.theme-dark .suggestion-option:hover,.theme-dark .suggestion-option:focus-visible{background:#1e293b}.theme-dark .modal{color:#f8fafc;background:#0f172a;border-color:#334155}.theme-dark .modal-header{background:#111827;border-color:#334155}.theme-dark .modal-header .icon-button{color:#f8fafc;background:#0f172a;border-color:#334155}.theme-dark .modal-header .icon-button:hover{border-color:var(--nus-orange);background:#431407}.theme-dark .modal-body p{color:#e2e8f0}.theme-dark .modal-body a{color:#bfdbfe}.theme-dark .stat-tile{background:#111827;border-color:#3b5575}.theme-dark .stat-tile strong{color:#bfdbfe;text-shadow:0 1px #0003}.theme-dark .stat-tile span,.theme-dark .share-feedback{color:#e2e8f0}.theme-dark .report-details{color:#dbeafe;background:#101e32;border-color:#29405f}.theme-dark .modal-creator,.theme-dark .modal-info-row{background:#111827;border-color:#334155}.theme-dark .modal-creator h3,.theme-dark .modal-info-row h3{color:#cbd5e1}.theme-dark .modal-disclaimer{color:#f8fafc;background:#1f2937;border-color:#475569}.theme-dark .modal-disclaimer.safety-disclaimer{color:#fed7aa;background:#431407;border-color:#fb923c6b #fb923c6b #fb923c6b #fb923c}.theme-dark .modal-disclaimer p{color:#f8fafc}.theme-dark .modal-disclaimer.safety-disclaimer p{color:#fed7aa}.theme-dark .modal-disclaimer.safety-disclaimer strong{color:#fdba74}.theme-dark .modal-local-data-warning{color:#fbbf24;background:#33200e;border-color:#fbbf247a}.theme-dark .modal-local-data-warning p{color:#fbbf24}.theme-dark .support-modal{color:#f8fafc;background:#0f172a;border-color:#334155}.theme-dark .support-header,.theme-dark .support-card{background:#111827;border-color:#334155}.theme-dark .support-header p,.theme-dark .support-card h3{color:#cbd5e1}.theme-dark .support-body p,.theme-dark .support-card li{color:#e2e8f0}.theme-dark .support-body a{color:#bfdbfe}.theme-dark .support-heading-icon{color:#fed7aa;background:#431407}.theme-dark .support-close{color:#f8fafc;background:#0f172a;border-color:#334155}.theme-dark .support-close:hover{border-color:var(--nus-orange);background:#431407}@media (width<=360px),(height<=620px){.modal,.support-modal{border-radius:8px;max-height:calc(100dvh - .5rem)}.modal form,.support-modal form{max-height:calc(100dvh - .5rem)}.modal-header{padding:10px 40px 10px 12px}.modal-header .icon-button{width:30px;height:30px;top:5px;right:5px}.modal h2,.support-header h2{font-size:1.05rem;line-height:1.25}.modal-body,.support-body{padding:10px}.modal-body>*+*,.support-body>*+*{margin-top:8px}.modal p,.support-body p,.support-card li{font-size:.82rem;line-height:1.55}.modal-creator,.modal-info-row,.modal-disclaimer,.support-card,.support-note{border-radius:8px;padding:9px}.modal-creator h3,.modal-info-row h3,.support-card h3{margin-bottom:3px;font-size:.7rem;line-height:1.25}.modal-disclaimer p,.support-note{font-size:.76rem!important;line-height:1.45!important}}@media (height<=480px){.modal-header{padding-block:8px}.modal-body,.support-body{padding:8px}.modal-body>*+*,.support-body>*+*{margin-top:6px}.modal p,.support-body p,.support-card li{font-size:.8rem;line-height:1.45}.modal-disclaimer p{font-size:.76rem;line-height:1.38}}@media (height<=720px){.app-shell{padding:4px}.topbar{min-height:44px}.icon-button{width:34px;height:34px}.game-card{--frame-pad:8px;max-height:calc(var(--app-viewport-height) - 8px);padding:0 var(--frame-pad) 7px;gap:6px}.clue-panel{padding:8px}.clue-step{padding:6px}.clue-step p{font-size:.8rem;line-height:1.2}.case-log-panel:not(.solved):not(.failed) p{display:none}}@media (width<=360px),(height<=620px){.app-shell{padding:3px}.topbar{gap:4px;min-height:50px;padding:5px 6px}.brand-title{font-size:clamp(.95rem,5.4vw,1.22rem)}.actions{gap:3px}.icon-button{width:34px;height:34px}.icon-button svg{width:17px;height:17px}.game-card{--frame-pad:6px;width:100%;max-height:calc(var(--app-viewport-height) - 6px);padding:0 var(--frame-pad) 5px;gap:5px}.case-strip{gap:5px;padding-top:5px}.nav-button{width:34px;height:36px}.case-meta span{font-size:.68rem}.case-meta strong{font-size:1rem}.clue-panel{gap:5px;padding:6px}.clue-kicker{font-size:.68rem}.clue-stack{gap:5px}.clue-step{grid-template-columns:20px minmax(0,1fr);gap:6px;padding:5px}.clue-step span{width:20px;height:20px;font-size:.7rem}.clue-step p{font-size:.76rem;line-height:1.18}.guess-form{grid-template-columns:minmax(0,1fr) 76px;gap:5px}.guess-form .primary-button{min-width:76px;padding-inline:7px;font-size:.9rem}input,.primary-button,.secondary-button{min-height:38px;padding-inline:10px}.feedback{min-height:16px;margin-top:0;font-size:.78rem}.case-log-panel{height:66px;padding:6px 8px}.case-log-panel.solved,.case-log-panel.failed{height:66px}.result-label{font-size:.66rem}.case-log-panel h2{margin-bottom:2px;font-size:.95rem}.case-log-panel p{font-size:.78rem;line-height:1.22}.wrong-guess-list{gap:3px;margin-top:2px}.wrong-guess-list li{padding:2px 7px;font-size:.72rem;line-height:1.22}.game-footer{gap:5px}.game-footer.practice .secondary-button.compact{flex-basis:64px;width:64px;padding-inline:6px}}@media (width<=319px){.app-shell{padding-inline:2px}.game-card{--frame-pad:5px}.topbar{gap:3px;padding-inline:4px}.brand{gap:4px}.brand-icon{border-radius:6px;width:26px;height:26px}.brand-title{font-size:clamp(.78rem,4.8vw,.92rem)}.brand-title span:last-child{font-size:.6em}.actions{gap:2px}.icon-button{width:34px;height:34px}.icon-button svg{width:16px;height:16px}.case-strip{gap:3px}.nav-button{width:28px;height:34px}.guess-form{grid-template-columns:minmax(0,1fr) 66px}.guess-form .primary-button{min-width:66px;font-size:.78rem}.game-footer .secondary-button{padding-inline:3px;font-size:.7rem}.game-footer.practice .secondary-button.compact{flex-basis:48px;width:48px}}@media (height<=520px){.app-shell{padding:2px}.game-card{--frame-pad:6px;width:100%;max-height:calc(var(--app-viewport-height) - 4px);grid-template-rows:auto auto minmax(58px,1fr) auto auto auto;gap:4px;padding-bottom:4px}.topbar{min-height:50px;padding-block:4px}.brand-title{font-size:clamp(.9rem,4.8vw,1.12rem)}.case-strip{padding-top:3px}.nav-button{width:30px;height:34px;font-size:1.1rem}.case-meta{gap:0}.case-meta span{font-size:.64rem;line-height:1.05}.case-meta strong{font-size:.88rem;line-height:1.05}.clue-panel{gap:4px;padding:5px}.clue-kicker{font-size:.62rem;line-height:1.05}.clue-stack{gap:4px}.clue-step{grid-template-columns:18px minmax(0,1fr);gap:5px;padding:4px}.clue-step span{width:18px;height:18px;font-size:.64rem}.clue-step p{font-size:.7rem;line-height:1.12}input,.primary-button,.secondary-button{min-height:34px}input{padding-inline:8px}.guess-form{grid-template-columns:minmax(0,1fr) 58px;gap:4px}.guess-form .primary-button{min-width:58px;padding-inline:5px;font-size:.82rem}.feedback{min-height:12px;margin-top:0;font-size:.68rem;line-height:1.1}.case-log-panel{height:52px;padding:4px 6px}.case-log-panel.solved,.case-log-panel.failed{height:52px}.result-label{font-size:.58rem;line-height:1.05}.case-log-panel h2{margin-bottom:1px;font-size:.82rem;line-height:1.05}.case-log-panel p,.wrong-guess-list li{font-size:.66rem;line-height:1.2}.wrong-guess-list{gap:2px;margin-top:1px}.game-footer{gap:4px}.game-footer .secondary-button{min-height:34px;padding-inline:5px;font-size:.76rem}.game-footer.practice .secondary-button.compact{flex-basis:54px;width:54px;padding-inline:4px}}@media (height<=360px){.topbar{min-height:50px}.case-meta span,.clue-kicker{display:none}.clue-panel{grid-template-rows:1fr}.case-log-panel{height:46px}.case-log-panel:not(.solved):not(.failed) .result-label,.case-log-panel:not(.solved):not(.failed) .wrong-guess-list{display:none}.case-log-panel.solved,.case-log-panel.failed{height:46px}.game-footer .secondary-button{min-height:30px}}@media (height<=620px){.app-shell:has(#guessInput:focus) .topbar{min-height:38px}.app-shell:has(#guessInput:focus) .case-strip{padding-top:4px}.app-shell:has(#guessInput:focus) .case-meta span{display:none}.app-shell:has(#guessInput:focus) .clue-panel{min-height:clamp(78px,24dvh,120px)}.app-shell:has(#guessInput:focus) .case-log-panel{height:66px;padding-block:7px}.app-shell:has(#guessInput:focus) .game-footer{display:none}}@media (height<=430px) and (orientation:landscape){.app-shell{padding:2px}.game-card{--frame-pad:6px;width:100%;max-height:calc(var(--app-viewport-height) - 4px);grid-template-rows:auto auto minmax(78px,1fr) auto auto auto;gap:4px;padding-bottom:4px}.topbar{min-height:50px;padding-block:4px}.brand-title{font-size:1.18rem}.icon-button{width:34px;height:34px}.case-strip{padding-top:3px}.case-meta{gap:0}.case-meta span{font-size:.68rem}.case-meta strong{font-size:.92rem}.clue-panel{gap:4px;padding:5px}.clue-kicker{font-size:.66rem}.clue-stack{gap:4px}.clue-step{grid-template-columns:19px minmax(0,1fr);gap:6px;padding:4px}.clue-step span{width:19px;height:19px;font-size:.68rem}.clue-step p{font-size:.72rem;line-height:1.14}input,.primary-button,.secondary-button{min-height:34px}.feedback{min-height:14px;margin-top:0;font-size:.72rem}.case-log-panel{height:58px;padding:5px 8px}.case-log-panel.solved,.case-log-panel.failed{height:58px}.case-log-panel h2{margin-bottom:1px;font-size:.9rem}.case-log-panel p,.wrong-guess-list li{font-size:.72rem;line-height:1.22}.game-footer{gap:5px}}@media (height<=360px) and (orientation:landscape){.game-card{grid-template-rows:auto auto minmax(56px,1fr) auto auto auto;gap:3px}.case-log-panel{height:52px;padding:4px 7px}.case-log-panel.solved,.case-log-panel.failed{height:52px}.feedback{min-height:12px}.game-footer .secondary-button{min-height:28px}}@media (height>=820px){.game-card{grid-template-rows:auto auto minmax(220px,1fr) auto auto auto}.clue-stack{gap:8px}.clue-step{padding:9px}.clue-step p{line-height:1.3}}@media (height>=920px){.game-card{gap:12px}.clue-panel{padding:12px}}.modal-disclaimer.safety-disclaimer p{font-size:.75rem!important;line-height:1.4!important}
