:root{--bg: #1b2433;--panel-bg: rgba(23, 32, 48, .82);--panel-border: rgba(255, 255, 255, .12);--text-main: #f4f1ea;--text-muted: #94a3b8;--accent: #38bdf8;--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--safe-t: max(16px, env(safe-area-inset-top));--safe-b: max(16px, env(safe-area-inset-bottom));--safe-l: max(16px, env(safe-area-inset-left));--safe-r: max(16px, env(safe-area-inset-right))}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{width:100%;height:100%;overflow:hidden;overscroll-behavior:none;background-color:var(--bg);font-family:var(--font-ui);color:var(--text-main);user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.game-container{position:relative;width:100%;height:100%;overflow:hidden}.stage{position:absolute;top:0;right:0;bottom:0;left:0;touch-action:none}.stage canvas{display:block;width:100%;height:100%}.hud-top{position:fixed;top:var(--safe-t);left:var(--safe-l);right:var(--safe-r);display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:10}.hud-leading{display:flex;align-items:flex-start;gap:8px;pointer-events:none;min-width:0}.hud-leading .hud-btn{pointer-events:auto;flex-shrink:0}.hud-btn-icon{min-width:44px;width:44px;height:44px;padding:0}.title{pointer-events:none}.title h1{font-size:24px;font-weight:800;letter-spacing:.12em;text-shadow:0 2px 8px rgba(0,0,0,.6);pointer-events:auto;cursor:default;touch-action:manipulation}.title p{margin-top:3px;font-size:14px;font-weight:600;color:#38bdf8;text-shadow:0 1px 4px rgba(0,0,0,.6)}.perf-overlay{position:fixed;top:calc(var(--safe-t) + 56px);left:var(--safe-l);z-index:12;pointer-events:none;max-width:min(220px,calc(100vw - 120px));padding:6px 8px;font-family:ui-monospace,Cascadia Code,Segoe UI Mono,Menlo,monospace;font-size:10px;line-height:1.35;color:var(--text-main);background:#0f172ac7;border:1px solid rgba(255,255,255,.1);border-radius:6px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.perf-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px}.perf-row+.perf-row{margin-top:2px}.perf-label{flex:0 0 3.2em;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.perf-value{font-weight:700;font-variant-numeric:tabular-nums}.perf-value.is-good{color:#4ade80}.perf-value.is-warn{color:#fbbf24}.perf-value.is-bad{color:#f87171}.perf-muted{color:var(--text-muted);font-weight:500}.hud-actions{pointer-events:auto}.hud-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 18px;font-size:14px;font-weight:700;color:var(--text-main);background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:22px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 4px 16px #00000059;cursor:pointer;transition:transform .1s ease,background .15s ease,opacity .15s ease;touch-action:manipulation}.hud-btn:hover:not(:disabled){background:#26344ee6;transform:translateY(-1px)}.hud-btn:active:not(:disabled){transform:scale(.96)}.hud-btn:disabled{opacity:.35;cursor:not-allowed}.round-action-hint{position:relative;border-color:#f5c54273}.round-action-hint:disabled{opacity:.4;cursor:not-allowed}.round-btn-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;font-size:12px;font-weight:800;line-height:20px;font-variant-numeric:tabular-nums;color:#1a1405;background:#f5c542;box-shadow:0 2px 6px #0006}.hud-toast{position:fixed;left:50%;bottom:calc(var(--safe-b) + 108px);transform:translate(-50%);z-index:240;max-width:min(92vw,360px);padding:10px 16px;border-radius:14px;background:#0f172af0;border:1px solid rgba(255,255,255,.14);box-shadow:0 8px 24px #00000073;color:var(--text-main);font-size:13px;font-weight:700;text-align:center;pointer-events:none}.btn-icon{font-size:16px;line-height:1}.rotation-controls{position:fixed;bottom:calc(var(--safe-b) + 96px);right:var(--safe-r);display:flex;flex-direction:column;gap:12px;z-index:20;pointer-events:auto;animation:fadeSlideUp .18s ease-out}@keyframes fadeSlideUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.round-action-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;width:54px;height:54px;border-radius:50%;background:#1e293be6;border:1.5px solid rgba(255,255,255,.2);color:var(--text-main);box-shadow:0 6px 20px #00000073,inset 0 1px #ffffff26;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease;touch-action:manipulation}.round-action-btn:hover{background:#2d3e5af2;border-color:#ffffff59;transform:scale(1.05)}.round-action-btn:active{transform:scale(.92)}.round-btn-icon{font-size:18px;line-height:1}.round-btn-label{font-size:10px;font-weight:700;margin-top:2px;letter-spacing:.04em;color:var(--text-muted)}.shelf-tray{position:fixed;bottom:0;left:0;right:0;background:linear-gradient(to bottom,#0f172ab3,#0f172af2 40%,#0f172a);border-top:1px solid var(--panel-border);padding:10px var(--safe-l) var(--safe-b) var(--safe-l);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);z-index:10;pointer-events:auto}.shelf-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding:0 2px}.shelf-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted)}.shelf-counter{font-size:13px;font-weight:800;color:var(--accent);letter-spacing:.05em}.shelf-chips{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.shelf-chips::-webkit-scrollbar{display:none}.shelf-chip{flex-shrink:0;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:6px 14px 6px 10px;background:#1e293bbf;border:1.5px solid rgba(255,255,255,.12);border-radius:14px;color:var(--text-main);cursor:pointer;touch-action:pan-x;transition:transform .12s ease,border-color .15s ease,background .15s ease,box-shadow .15s ease}.shelf-chip:hover{background:#2d3e5ad9;border-color:#ffffff40}.shelf-chip:active{transform:scale(.96)}.shelf-chip.is-selected{background:#1c365ef2;border-color:#38bdf8;box-shadow:0 0 14px #38bdf873;transform:translateY(-2px)}.chip-thumb{width:36px;height:36px;object-fit:contain;flex-shrink:0;pointer-events:none;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}.chip-swatch{width:16px;height:16px;border-radius:4px;flex-shrink:0;box-shadow:0 1px 3px #0006}.chip-name{font-size:13px;font-weight:700;letter-spacing:.02em;white-space:nowrap}.chip-volume{font-size:11px;font-weight:600;color:var(--text-muted);white-space:nowrap}.shelf-empty{font-size:13px;font-weight:600;color:#4ade80;padding:12px 6px}.hud-btn-primary{background:linear-gradient(135deg,#0284c7,#0369a1);border-color:#38bdf866;color:#fff;box-shadow:0 4px 16px #0284c766}.hud-btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#0369a1,#075985);border-color:#38bdf899}.hud-actions{display:flex;gap:10px;pointer-events:auto}.hud-btn{white-space:nowrap}@media(max-width:480px){.hud-btn-label-optional{display:none}.hud-btn{min-width:44px;padding:8px 14px}}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0f1aa6;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);display:flex;flex-direction:column;justify-content:flex-end;z-index:100;animation:fadeIn .15s ease-out}.refusal-sheet{background:linear-gradient(to bottom,#172030fa,#0f172a);border-top:1.5px solid rgba(255,255,255,.15);border-radius:24px 24px 0 0;padding:12px var(--safe-l) calc(var(--safe-b) + 8px) var(--safe-l);box-shadow:0 -8px 32px #00000080;max-height:80vh;display:flex;flex-direction:column;animation:slideUp .22s cubic-bezier(.16,1,.3,1)}.sheet-grabber{width:40px;height:4px;border-radius:2px;background:#ffffff40;margin:0 auto 14px}.sheet-title{font-size:18px;font-weight:800;color:#f8fafc;margin-bottom:6px}.sheet-desc{font-size:13px;color:var(--text-muted);line-height:1.4;margin-bottom:16px}.sheet-items-list{display:flex;flex-direction:column;gap:8px;max-height:38vh;overflow-y:auto;margin-bottom:18px;padding-right:2px}.sheet-item-row{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#1e293b99;border:1px solid rgba(255,255,255,.08);border-radius:12px}.sheet-item-row-left{background:#141c2a66;border-color:#ffffff0a}.sheet-item-info{display:flex;align-items:center;gap:10px}.sheet-item-name{font-size:14px;font-weight:600;color:var(--text-main)}.text-muted{color:var(--text-muted)}.action-pill-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:4px 14px;font-size:12px;font-weight:700;border-radius:17px;background:#334155cc;border:1px solid rgba(255,255,255,.15);color:var(--text-main);cursor:pointer;touch-action:manipulation;transition:all .12s ease}.action-pill-btn:hover{background:#475569f2}.action-pill-danger{background:#b91c1c59;border-color:#ef444466;color:#fca5a5}.action-pill-danger:hover{background:#b91c1c8c;color:#fff}.left-behind-section{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:8px}.left-behind-header{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:2px}.sheet-actions{display:flex;gap:12px}.modal-btn{flex:1;min-height:48px;border-radius:14px;font-size:15px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:manipulation;transition:all .15s ease}.modal-btn-secondary{background:#1e293bd9;border:1px solid rgba(255,255,255,.15);color:var(--text-main)}.modal-btn-secondary:hover{background:#2d3e5af2}.modal-btn-primary{background:linear-gradient(135deg,#0284c7,#0369a1);border:1px solid rgba(56,189,248,.4);color:#fff}.modal-btn-primary:hover{background:linear-gradient(135deg,#0369a1,#075985)}.result-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0f1ac7;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);z-index:200;animation:fadeIn .25s ease-out}.result-card{width:100%;max-width:420px;max-height:calc(100dvh - var(--safe-t) - var(--safe-b));overflow-y:auto;background:linear-gradient(145deg,#172030f5,#0f172afa);border:1.5px solid rgba(255,255,255,.15);border-radius:28px;padding:28px 24px;box-shadow:0 16px 48px #0009,0 0 0 1px #ffffff0d;display:flex;flex-direction:column;align-items:center;text-align:center;animation:scaleUp .25s cubic-bezier(.16,1,.3,1)}.result-badge{font-size:11px;font-weight:800;letter-spacing:.16em;color:#38bdf8;background:#38bdf81f;border:1px solid rgba(56,189,248,.3);padding:5px 14px;border-radius:20px;margin-bottom:12px}.result-title{font-size:26px;font-weight:800;color:#f8fafc;letter-spacing:-.01em;margin-bottom:20px}.result-stat-hero{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;padding:16px 0;margin-bottom:16px;background:radial-gradient(circle,rgba(56,189,248,.1) 0%,transparent 70%);border-radius:18px}.result-stat-val{font-size:52px;font-weight:900;line-height:1;letter-spacing:-.02em;color:#38bdf8;text-shadow:0 2px 16px rgba(56,189,248,.4)}.result-stat-lbl{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-muted);margin-top:6px}.result-clamp-note{margin:10px 16px 0;font-size:12px;font-weight:600;line-height:1.35;color:var(--text-muted);text-align:center}.result-daily-status{margin:8px 0 0;font-size:15px;font-weight:800;color:#f2c14e;text-align:center}.result-score-lines{width:100%;display:flex;flex-direction:column;gap:8px;margin-bottom:16px;padding:12px 14px;background:#0f172a8c;border:1px solid rgba(255,255,255,.06);border-radius:16px;text-align:left}.result-score-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:600}.result-score-line-label{color:var(--text-main)}.result-score-line-amount{font-variant-numeric:tabular-nums;font-weight:800;color:var(--text-muted)}.result-score-line-amount.is-pos{color:#4ade80}.result-score-line-amount.is-neg{color:#f87171}.result-stats-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;margin-bottom:20px}.result-stat-box{background:#1e293b8c;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:12px;display:flex;flex-direction:column;align-items:center}.stat-box-val{font-size:20px;font-weight:800;color:#f8fafc}.stat-box-lbl{font-size:11px;font-weight:600;color:var(--text-muted);margin-top:3px}.result-section{width:100%;background:#0f172a99;border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:14px;margin-bottom:24px;text-align:left}.result-section-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:10px}.result-empty-notice{display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:700;color:#4ade80;padding:8px 0}.result-empty-notice-skipped{color:var(--text-muted)}.result-left-list{display:flex;flex-direction:column;gap:8px;max-height:120px;overflow-y:auto}.result-left-item{display:flex;align-items:center;gap:10px;padding:6px 8px;background:#1e293b66;border-radius:8px}.result-left-name{font-size:13px;font-weight:600;color:var(--text-main)}.result-left-item-broken .result-left-name{color:#f87171}.result-left-item-rescued .result-left-name{color:#f5c542}.result-rescued-tag{margin-left:auto;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#f5c542}.result-rescued-note{margin:8px 0 0;font-size:13px;font-weight:700;color:#f5c542}.result-rescue-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:12px;padding:10px 16px;border-radius:14px;background:linear-gradient(135deg,#b45309,#92400e);border:1px solid rgba(251,191,36,.45);color:#fff7ed;font-size:15px;font-weight:800;letter-spacing:.01em;cursor:pointer;touch-action:manipulation;box-shadow:0 4px 18px #b4530966;transition:all .15s ease}.result-rescue-btn:hover:not(:disabled){background:linear-gradient(135deg,#c2410c,#9a3412);transform:translateY(-1px)}.result-rescue-btn:active:not(:disabled){transform:scale(.97)}.result-rescue-btn:disabled{opacity:.4;cursor:not-allowed}.journey-skip-btn{min-width:88px}.result-cta-btn{width:100%;min-height:52px;border-radius:16px;background:linear-gradient(135deg,#0284c7,#0369a1);border:1px solid rgba(56,189,248,.4);color:#fff;font-size:16px;font-weight:800;letter-spacing:.02em;cursor:pointer;touch-action:manipulation;box-shadow:0 4px 20px #0284c766;transition:all .15s ease}.result-cta-btn:hover{background:linear-gradient(135deg,#0369a1,#075985);transform:translateY(-1px)}.result-cta-btn:active{transform:scale(.97)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes scaleUp{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}.aunt-overlay-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0f1ab8;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);z-index:150;animation:fadeIn .3s ease-out;touch-action:manipulation}.aunt-overlay-card{position:relative;width:100%;max-width:360px;background:linear-gradient(155deg,#1e293bfa,#0f172afa);border:2px solid rgba(251,191,36,.4);border-radius:28px;padding:24px 20px;box-shadow:0 20px 50px #000000a6,0 0 32px #f59e0b40;display:flex;flex-direction:column;align-items:center;gap:16px;animation:auntSlideIn .35s cubic-bezier(.16,1,.3,1)}@keyframes auntSlideIn{0%{opacity:0;transform:translate(40px) scale(.94)}to{opacity:1;transform:translate(0) scale(1)}}.aunt-character-box{display:flex;flex-direction:column;align-items:center;gap:6px}.aunt-portrait-wrapper{width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,#fef08a,#fef3c7 60%,#fed7aa);border:3.5px solid #f59e0b;box-shadow:0 6px 20px #0006,0 0 16px #f59e0b73;overflow:hidden;display:flex;align-items:center;justify-content:center}.aunt-portrait-svg{width:100%;height:100%}.aunt-name-badge{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#fbbf24;background:#f59e0b26;border:1px solid rgba(245,158,11,.35);padding:3px 12px;border-radius:12px}.aunt-dialog-content{width:100%;display:flex;flex-direction:column;align-items:center;gap:14px}.aunt-speech-bubble{position:relative;background:#fff;color:#0f172a;border-radius:18px;padding:12px 18px 12px 28px;box-shadow:0 6px 20px #00000059;cursor:pointer;width:100%}.aunt-speech-bubble:before{content:"";position:absolute;top:-10px;left:50%;transform:translate(-50%);border-width:0 10px 10px 10px;border-style:solid;border-color:transparent transparent #ffffff transparent}.speech-quote-icon{position:absolute;left:10px;top:6px;font-size:26px;font-family:Georgia,serif;color:#f59e0b;line-height:1}.speech-text{font-size:15px;line-height:1.35;color:#1e293b}.speech-text strong{color:#b45309}.aunt-gift-card{width:100%;background:#0f172aa6;border:1.5px dashed rgba(245,158,11,.5);border-radius:16px;padding:10px 14px;display:flex;flex-direction:column;gap:4px}.gift-badge{font-size:10px;font-weight:800;letter-spacing:.12em;color:#84cc16;text-transform:uppercase}.gift-item-row{display:flex;align-items:center;gap:12px}.gift-thumb{width:48px;height:48px;object-fit:contain;flex-shrink:0;pointer-events:none;filter:drop-shadow(0 3px 6px rgba(0,0,0,.5))}.gift-swatch{width:28px;height:28px;border-radius:8px;flex-shrink:0;box-shadow:0 2px 8px #0006;border:1.5px solid rgba(255,255,255,.4)}.gift-info{display:flex;flex-direction:column;text-align:left}.gift-title{font-size:15px;font-weight:700;color:#f8fafc}.gift-sub{font-size:12px;color:#94a3b8}.aunt-accept-btn{width:100%;min-height:48px;background:linear-gradient(135deg,#f59e0b,#d97706);border:1px solid rgba(251,191,36,.5);border-radius:14px;color:#fff;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;touch-action:manipulation;box-shadow:0 4px 16px #d9770673;transition:transform .12s ease,background .15s ease}.aunt-accept-btn:hover{background:linear-gradient(135deg,#d97706,#b45309);transform:translateY(-1px)}.aunt-accept-btn:active{transform:scale(.97)}.btn-arrow{font-size:15px}.shelf-chip.is-surprise-highlighted{border-color:#f59e0b;box-shadow:0 0 16px #f59e0bcc,inset 0 0 8px #f59e0b4d;animation:pulseHighlight 1.2s infinite ease-in-out}@keyframes pulseHighlight{0%{transform:scale(1);box-shadow:0 0 12px #f59e0b99}50%{transform:scale(1.06);box-shadow:0 0 24px #f59e0bf2}to{transform:scale(1);box-shadow:0 0 12px #f59e0b99}}@media(prefers-reduced-motion:reduce){.aunt-overlay-backdrop,.aunt-overlay-card,.shelf-chip.is-surprise-highlighted,.rotation-controls,.refusal-sheet,.result-overlay,.result-card,.intro-screen,.intro-brand,.intro-tagline,.intro-visual,.intro-actions,.intro-rear-lid,.intro-item,.howto-page,.howto-backdrop,.howto-sheet{animation:none!important;transition:none!important}}.credits-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0f1ad9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:300;animation:fadeIn .2s ease-out}.credits-sheet{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,#162032,#0d1522);display:flex;flex-direction:column;padding-top:var(--safe-t);padding-bottom:var(--safe-b);padding-left:var(--safe-l);padding-right:var(--safe-r);overflow:hidden;animation:slideUp .25s cubic-bezier(.16,1,.3,1)}.credits-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid rgba(255,255,255,.1);background:#0f172ab3;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);flex-shrink:0}.credits-header-text{display:flex;flex-direction:column}.credits-title{font-size:20px;font-weight:800;color:#f8fafc;letter-spacing:-.01em}.credits-subtitle{font-size:12px;font-weight:600;color:var(--text-muted);margin-top:2px}.credits-close-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:#ffffff14;border:1px solid rgba(255,255,255,.15);color:#f8fafc;font-size:18px;font-weight:700;cursor:pointer;touch-action:manipulation;transition:all .15s ease}.credits-close-btn:hover{background:#ffffff29;border-color:#ffffff4d}.credits-close-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.credits-content{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:20px;display:flex;flex-direction:column;gap:28px}.credits-section{display:flex;flex-direction:column;gap:12px}.credits-section-title{font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--accent);padding-left:2px}.credits-empty-notice{font-size:14px;color:var(--text-muted);background:#1e293b66;border:1px dashed rgba(255,255,255,.12);border-radius:14px;padding:16px;text-align:center}.credits-asset-list,.credits-oss-list{display:flex;flex-direction:column;gap:10px}.credits-asset-card,.credits-oss-card{background:#1a2639b3;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px 16px;box-shadow:0 4px 12px #00000040;display:flex;flex-direction:column;gap:8px}.credits-asset-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.credits-asset-name{font-size:15px;font-weight:700;color:#f8fafc}.credits-asset-role{font-size:12px;font-weight:600;color:var(--accent);background:#38bdf81a;padding:2px 8px;border-radius:6px}.credits-asset-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--text-muted)}.credits-asset-links{display:flex;align-items:center;gap:10px;margin-top:4px}.credits-asset-mod{margin:0;font-size:11px;line-height:1.4;color:var(--text-muted)}.credits-link{font-size:12px;font-weight:700;color:#38bdf8;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.credits-link:hover{color:#7dd3fc}.credits-badge{font-size:11px;font-weight:700;color:#94a3b8;background:#ffffff0f;padding:2px 8px;border-radius:6px}.credits-oss-info{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.credits-oss-details{margin-top:4px}.credits-oss-details>summary{list-style:none;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none}.credits-oss-details>summary::-webkit-details-marker{display:none}.credits-oss-name{font-size:14px;font-weight:700;color:#f8fafc}.credits-oss-version{font-size:12px;color:var(--text-muted)}.credits-oss-license-tag{font-size:11px;font-weight:700;color:#4ade80;background:#4ade801a;padding:2px 7px;border-radius:6px}.credits-expand-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:4px 12px;font-size:12px;font-weight:700;border-radius:10px;background:#ffffff12;border:1px solid rgba(255,255,255,.12);color:var(--text-main);cursor:pointer;touch-action:manipulation;transition:all .12s ease}.credits-oss-details[open]>.credits-expand-btn,.credits-expand-btn:hover{background:#ffffff24}.credits-license-text{margin-top:6px;padding:12px;background:#0a0f1ad9;border:1px solid rgba(255,255,255,.06);border-radius:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;line-height:1.5;color:#cbd5e1;white-space:pre-wrap;word-break:break-word;max-height:240px;overflow-y:auto}.result-share{width:100%;margin:8px 0 18px;display:flex;flex-direction:column;align-items:stretch;gap:10px}.result-share-actions{display:flex;flex-direction:column;gap:10px;width:100%}.result-share-btn{width:100%;min-height:44px;border-radius:14px;background:#f2c14e24;border:1px solid rgba(242,193,78,.4);color:#fef3c7;font-size:15px;font-weight:800;letter-spacing:.01em;cursor:pointer;touch-action:manipulation;transition:all .15s ease}.result-share-btn:hover:not(:disabled){background:#f2c14e38}.result-share-btn:active:not(:disabled){transform:scale(.98)}.result-share-btn:disabled{opacity:.55;cursor:default}.result-share-status{margin:0;min-height:18px;font-size:13px;font-weight:600;color:var(--text-muted);text-align:center}@media(min-width:400px){.result-share-actions{flex-direction:row}.result-share-btn{flex:1}}.result-secondary-btn{width:100%;min-height:46px;margin-top:10px;border-radius:14px;background:#1e293bb3;border:1px solid rgba(255,255,255,.15);color:var(--text-main);font-size:14px;font-weight:700;cursor:pointer;touch-action:manipulation;transition:all .15s ease}.result-secondary-btn:hover{background:#334155e6}.result-secondary-btn:active{transform:scale(.98)}.result-cta-btn-secondary{margin-top:10px;background:#38bdf824;border:1px solid rgba(56,189,248,.35);color:#e0f2fe}.result-cta-btn-secondary:hover{background:#38bdf838}.hud-back-btn{min-width:44px;width:44px;height:44px;padding:0}.route-screen{position:relative;width:100%;height:100%;overflow:hidden;background:radial-gradient(120% 80% at 50% -10%,rgba(56,189,248,.16),transparent 55%),linear-gradient(180deg,#243044 0%,var(--bg) 45%,#121826 100%);display:flex;flex-direction:column;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l)}.route-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 4px 16px;margin-right:16px;flex-shrink:0}.route-brand{font-size:36px;font-weight:800;letter-spacing:.14em;text-shadow:0 2px 12px rgba(0,0,0,.45);cursor:default;touch-action:manipulation}.route-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;flex-shrink:0}.route-sound-btn{min-width:44px;width:44px;height:44px;padding:0}.locale-toggle{display:inline-flex;align-items:stretch;border:1px solid var(--panel-border);border-radius:12px;overflow:hidden;background:var(--panel-bg)}.locale-toggle-btn{min-width:44px;min-height:44px;padding:0 12px;border:0;background:transparent;color:var(--text-muted);font-size:13px;font-weight:700;letter-spacing:.04em;cursor:pointer;touch-action:manipulation}.locale-toggle-btn.is-active{background:#38bdf82e;color:var(--text-main)}.route-credits-btn{pointer-events:auto}.route-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 24px;display:flex;flex-direction:column;gap:28px}.route-section-title{font-size:15px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);margin-bottom:12px}.route-level-grid{display:flex;flex-direction:column;gap:10px}.level-card{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:12px;width:100%;min-height:64px;padding:12px 14px;border-radius:16px;border:1px solid var(--panel-border);background:var(--panel-bg);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--text-main);text-align:left;cursor:pointer;touch-action:manipulation;transition:background .15s ease,border-color .15s ease,transform .12s ease}.level-card:hover:not(:disabled){border-color:#38bdf873;background:#1e293beb}.level-card:active:not(:disabled){transform:scale(.985)}.level-card.is-locked{opacity:.55;cursor:not-allowed}.level-card-index{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;font-size:16px;font-weight:800;background:#38bdf829;color:#7dd3fc}.level-card.is-locked .level-card-index{background:#94a3b81f;color:var(--text-muted)}.level-card-title{font-size:15px;font-weight:700;line-height:1.25}.level-card-meta{min-width:64px;text-align:right}.level-card-score{font-size:12px;font-weight:700;color:#7dd3fc}.level-card-score-muted{color:var(--text-muted)}.level-card-lock{font-size:16px;line-height:1}.title-level{min-width:0;flex:1 1 auto}.title-level h1{font-size:17px;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:400px){.route-brand{font-size:24px;letter-spacing:.08em}.route-header-actions{gap:6px}}.daily-card{width:100%;border-radius:18px;border:1px solid rgba(242,193,78,.35);background:radial-gradient(120% 100% at 100% 0%,rgba(242,193,78,.12),transparent 60%),var(--panel-bg);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:16px 18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 4px 20px #0000004d}.daily-card-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.daily-card-title-wrap{display:flex;flex-direction:column;gap:2px}.daily-card-title{font-size:18px;font-weight:800;letter-spacing:.02em;color:#fef3c7}.daily-card-date{font-size:12px;font-weight:600;color:var(--text-muted)}.daily-card-items-badge{font-size:12px;font-weight:700;color:#f2c14e;background:#f2c14e26;border:1px solid rgba(242,193,78,.3);padding:4px 10px;border-radius:12px;white-space:nowrap}.daily-card-stats{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;font-size:13px;font-weight:600;color:var(--text-main);background:#0f172a73;border-radius:12px;padding:10px 14px}.daily-stat-item{display:flex;align-items:center;gap:6px}.daily-stat-accent{color:#38bdf8;font-weight:700}.daily-stat-empty{color:var(--text-muted);font-style:italic}.daily-card-actions{display:flex;align-items:center;gap:10px;margin-top:2px}.daily-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;font-size:15px;font-weight:800;border-radius:14px;cursor:pointer;touch-action:manipulation;transition:all .15s ease;-webkit-user-select:none;user-select:none}.daily-btn-play{flex:1;background:linear-gradient(135deg,#f59e0b,#d97706);border:1px solid rgba(251,191,36,.5);color:#fff;box-shadow:0 4px 14px #d9770659}.daily-btn-play:hover{background:linear-gradient(135deg,#d97706,#b45309);transform:translateY(-1px)}.daily-btn-play:active{transform:scale(.98)}.daily-btn-leaderboard{min-width:100px;background:#1e293bb3;border:1px solid rgba(255,255,255,.15);color:var(--text-main)}.daily-btn-leaderboard:hover{background:#334155e6}.daily-btn-leaderboard:active{transform:scale(.98)}.leaderboard-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0f1abf;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:100;display:flex;align-items:flex-end;justify-content:center}@media(min-width:600px){.leaderboard-backdrop{align-items:center;padding:24px}}.leaderboard-sheet{width:100%;max-width:520px;max-height:85vh;background:#172030;border:1px solid var(--panel-border);border-top-left-radius:24px;border-top-right-radius:24px;padding:20px 20px max(20px,var(--safe-b));display:flex;flex-direction:column;gap:16px;box-shadow:0 -8px 32px #0009;animation:sheetSlideUp .22s cubic-bezier(.16,1,.3,1);overflow:hidden}@media(min-width:600px){.leaderboard-sheet{border-radius:24px;max-height:80vh}}.leaderboard-header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.leaderboard-title{font-size:20px;font-weight:800;letter-spacing:.02em;color:var(--text-main)}.leaderboard-tabs{display:flex;background:#0f172a99;border:1px solid var(--panel-border);border-radius:14px;padding:3px;gap:4px;flex-shrink:0}.leaderboard-tab-btn{flex:1;min-height:44px;border:0;border-radius:11px;background:transparent;color:var(--text-muted);font-size:14px;font-weight:700;cursor:pointer;touch-action:manipulation;transition:all .15s ease}.leaderboard-tab-btn.is-active{background:#38bdf82e;color:#38bdf8;font-weight:800}.leaderboard-content{flex:1;min-height:180px;max-height:420px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px}.leaderboard-list{display:flex;flex-direction:column;gap:6px}.leaderboard-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:12px;padding:10px 14px;min-height:48px;border-radius:12px;background:#17203099;border:1px solid rgba(255,255,255,.06);font-size:14px;font-weight:600}.leaderboard-row.is-me{background:#38bdf824;border-color:#38bdf859;color:#e0f2fe}.leaderboard-rank{font-weight:800;font-size:14px;text-align:center;color:var(--text-muted)}.leaderboard-rank.rank-1{color:#fbbf24}.leaderboard-rank.rank-2{color:#cbd5e1}.leaderboard-rank.rank-3{color:#d97706}.leaderboard-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.leaderboard-score{font-weight:700;font-variant-numeric:tabular-nums;color:#7dd3fc}.leaderboard-state-msg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:140px;color:var(--text-muted);font-size:14px;font-weight:600;text-align:center}.leaderboard-state-msg.is-error{color:#f87171}.leaderboard-retry-btn{min-height:44px;padding:8px 18px;border-radius:12px;background:#f8717126;border:1px solid rgba(248,113,113,.35);color:#fecaca;font-size:13px;font-weight:700;cursor:pointer;touch-action:manipulation}.result-daily-status{margin-top:6px;font-size:13px;font-weight:700;color:#38bdf8;letter-spacing:.02em}.intro-screen,.howto-page{position:relative;width:100%;height:100%;overflow:hidden;background:radial-gradient(120% 80% at 50% -10%,rgba(56,189,248,.2),transparent 55%),radial-gradient(90% 50% at 80% 110%,rgba(251,191,36,.08),transparent 50%),linear-gradient(180deg,#243044 0%,var(--bg) 45%,#121826 100%);display:flex;flex-direction:column;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l)}.intro-screen{align-items:center;justify-content:space-between;text-align:center;animation:fadeIn .45s ease-out}.intro-hero{flex:0 0 auto;padding:28px 16px 8px;max-width:420px}.intro-brand{font-size:clamp(44px,14vw,64px);font-weight:800;letter-spacing:.16em;line-height:1;text-shadow:0 4px 24px rgba(0,0,0,.45);animation:introPop .6s cubic-bezier(.16,1,.3,1) both}.intro-tagline{margin-top:14px;font-size:16px;font-weight:600;line-height:1.4;color:var(--text-muted);animation:fadeSlideUp .5s ease-out .12s both}.intro-visual{position:relative;width:min(280px,78vw);height:min(210px,34vh);flex:1 1 auto;max-height:240px;display:grid;place-items:center;animation:fadeSlideUp .55s ease-out .18s both}.intro-rear{position:relative;width:260px;height:214px}.intro-rear-lid{position:absolute;left:18px;right:18px;top:0;height:46px;border-radius:16px 16px 6px 6px;background:linear-gradient(180deg,#f08a6a,#d9573a);box-shadow:inset 0 -8px #b91c1c,0 10px 24px #00000059;transform-origin:bottom center;animation:introLid .9s cubic-bezier(.16,1,.3,1) .2s both}.intro-rear-body{position:absolute;left:0;right:0;top:52px;height:142px;border-radius:14px 14px 20px 20px;background:linear-gradient(180deg,#ea6a48,#c2410c);box-shadow:0 18px 36px #0000006b}.intro-rear-trunk{position:absolute;left:22px;right:22px;top:10px;height:92px;border-radius:8px;background:linear-gradient(180deg,#3f3a44,#2a2630);box-shadow:inset 0 6px 14px #0000008c;overflow:hidden}.intro-item{position:absolute;object-fit:contain;filter:drop-shadow(0 6px 6px rgba(0,0,0,.45));animation:introBox .7s cubic-bezier(.34,1.56,.64,1) both}.intro-item-a{width:92px;height:92px;left:4px;bottom:-12px;animation-delay:.45s}.intro-item-b{width:84px;height:84px;left:76px;bottom:-18px;animation-delay:.6s}.intro-item-c{width:84px;height:84px;right:2px;bottom:-14px;animation-delay:.75s}.intro-rear-light{position:absolute;top:16px;width:14px;height:46px;border-radius:4px;background:linear-gradient(180deg,#fecaca,#dc2626 45%,#f59e0b);box-shadow:0 0 14px #ef44448c}.intro-rear-light-l{left:4px}.intro-rear-light-r{right:4px}.intro-rear-plate{position:absolute;left:50%;bottom:12px;transform:translate(-50%);padding:3px 10px 3px 18px;border-radius:4px;background:linear-gradient(90deg,#1d4ed8 0,#1d4ed8 12px,#f1f5f9 12px);color:#0f172a;font-size:11px;font-weight:800;letter-spacing:.08em;white-space:nowrap}.intro-rear-wheel{position:absolute;bottom:0;width:44px;height:22px;border-radius:0 0 10px 10px;background:#0f172a}.intro-rear-wheel-l{left:26px}.intro-rear-wheel-r{right:26px}.intro-actions{width:min(360px,100%);display:flex;flex-direction:column;gap:10px;padding:8px 16px 20px;animation:fadeSlideUp .5s ease-out .28s both}.intro-play-btn,.intro-howto-btn{width:100%}@keyframes introPop{0%{opacity:0;transform:translateY(10px) scale(.94);letter-spacing:.28em}to{opacity:1;transform:none}}@keyframes introLid{0%{transform:translateY(40px) scaleY(.3)}to{transform:none}}@keyframes introBox{0%{opacity:0;transform:translateY(-60px)}to{opacity:1;transform:none}}.howto-page{align-items:stretch;justify-content:center;animation:fadeIn .25s ease-out}.howto-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:320;background:#0a0f1a;display:flex;align-items:center;justify-content:center;padding:var(--safe-t) var(--safe-r) var(--safe-b) var(--safe-l);animation:fadeIn .2s ease-out;touch-action:none}.howto-sheet{width:min(440px,100%);max-height:100%;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(145deg,#172030fa,#0f172a);border:1.5px solid rgba(255,255,255,.14);border-radius:24px;box-shadow:0 16px 48px #0000008c,0 0 0 1px #ffffff0a;padding:18px 18px 16px;animation:scaleUp .25s cubic-bezier(.16,1,.3,1)}.howto-sheet.is-page{margin:auto;max-height:calc(100dvh - var(--safe-t) - var(--safe-b) - 24px)}.howto-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;flex-shrink:0}.howto-title{font-size:18px;font-weight:800;letter-spacing:-.01em}.howto-skip-btn{min-height:44px;padding:0 12px;border:0;background:transparent;color:var(--text-muted);font-size:14px;font-weight:700;cursor:pointer;touch-action:manipulation}.howto-pager{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;padding:8px 4px 4px}.howto-illo{height:112px;margin:0 auto 14px;border-radius:16px;background:#0f172ab3;border:1px solid rgba(255,255,255,.08);display:grid;place-items:center;max-width:280px}.howto-step-title{font-size:17px;font-weight:800;margin-bottom:8px}.howto-step-body{font-size:14px;font-weight:600;line-height:1.45;color:var(--text-muted)}.howto-dots{display:flex;justify-content:center;gap:8px;padding:14px 0 10px;flex-shrink:0}.howto-dot{position:relative;width:44px;height:44px;padding:0;border:0;background:transparent;cursor:pointer;touch-action:manipulation}.howto-dot:before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:999px;background:#94a3b873;transform:translate(-50%,-50%)}.howto-dot.is-active:before{width:18px;background:#38bdf8}.howto-nav{display:flex;gap:10px;flex-shrink:0}.illo-pack,.illo-rotate,.illo-care,.illo-journey{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:100%}.illo-shelf,.illo-trunk{display:flex;align-items:flex-end;gap:6px;height:60px;padding:8px;border-radius:10px;background:#1e293be6;border:1px solid rgba(255,255,255,.1)}.illo-trunk{width:64px;justify-content:center;background:#080f1cb3}.illo-item{display:block;width:40px;height:40px;object-fit:contain;border-radius:6px;filter:drop-shadow(0 3px 4px rgba(0,0,0,.4))}.illo-arrow{width:28px;height:4px;background:#38bdf8;border-radius:2px;position:relative}.illo-arrow:after{content:"";position:absolute;right:-1px;top:-5px;border:7px solid transparent;border-left-color:#38bdf8;border-right-width:0}.illo-box-3d{width:44px;height:44px;background:linear-gradient(145deg,#38bdf8,#0369a1);border-radius:8px;transform:rotate(18deg);box-shadow:10px -8px #075985}.illo-twist{width:28px;height:28px;border:3px solid #7dd3fc;border-right-color:transparent;border-radius:50%;position:relative}.illo-twist:after{content:"";position:absolute;right:-2px;top:14px;border:6px solid transparent;border-top-color:#7dd3fc}.illo-care-card{display:flex;flex-direction:column;align-items:center;gap:6px;width:72px;padding:8px 4px 6px;border-radius:12px;border:2px solid}.illo-care-card .illo-item{width:48px;height:48px}.illo-care-label{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.illo-care-fragile{background:#fbbf241f;border-color:#fbbf24b3;color:#fbbf24}.illo-care-heavy{background:#94a3b824;border-color:#94a3b8b3;color:#cbd5e1}.illo-care-needed{background:#38bdf81f;border-color:#38bdf8b3;color:#7dd3fc}.illo-lid{width:64px;height:12px;border-radius:6px;background:#38bdf8;transform:rotate(-28deg);box-shadow:0 18px 0 10px #0f172ae6}.illo-road{width:56px;height:8px;border-radius:4px;background:repeating-linear-gradient(90deg,#f8fafc 0 10px,transparent 10px 18px);opacity:.7}.illo-score{min-width:40px;height:28px;border-radius:8px;background:#38bdf829;border:1px solid rgba(56,189,248,.4);position:relative}.illo-score:after{content:"";position:absolute;left:8px;right:8px;top:8px;height:12px;border-radius:3px;background:#38bdf8}@media(max-height:640px){.intro-hero{padding-top:12px}.intro-brand{font-size:40px}.intro-visual{height:150px;max-height:160px}.howto-illo{height:84px;margin-bottom:8px}}.shelf-header-end{display:inline-flex;align-items:center;gap:10px}.shelf-howto-btn{width:28px;height:28px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:#ffffff0f;color:var(--accent);font:inherit;font-size:15px;font-weight:800;line-height:1;cursor:pointer;touch-action:manipulation}.shelf-howto-btn:active{transform:scale(.94)}
