.memory-console[hidden],.bridge-log[hidden]{display:none}.bridge-stage .canvas-wrap{aspect-ratio:auto;display:flex;flex-direction:column;background:#192b3b}.bridge-stage #game{height:auto;aspect-ratio:2/1;flex:none}.bridge-stage .world-caption,.bridge-stage .touch-zone{display:none!important}.bridge-stage .vignette{bottom:auto;height:auto;aspect-ratio:2/1;width:100%;box-shadow:inset 0 0 15px #061e3533}.bridge-stage .toast{max-width:93%;width:max-content;white-space:normal;font-size:12px}.bridge-stage .overlay{z-index:15}.bridge-stage .dialog{max-width:380px}.bridge-stage .quest-panel{padding:23px}.bridge-stage .quest-intro h2{font-size:24px}.bridge-stage .quest-intro p,.bridge-stage .dungeon-note p{font-size:14px}.bridge-stage .arena-footer{font-size:11px}.bridge-stage .objective p{font-size:13px}
.memory-console{position:relative;border-top:3px solid #caa96a;padding:17px 24px 15px;background:radial-gradient(ellipse at 50% 35%,#31434d,#182c3a 72%);box-shadow:inset 0 4px #0c1b27,inset 0 5px #587078;isolation:isolate}.memory-command{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:470px;margin:0 auto}.memory-phase{font-size:11px;letter-spacing:2px;font-weight:700;color:#e7c178}.memory-command h2{margin:3px 0 0;font-size:19px;font-weight:500;color:#eee2c3;line-height:1.3}.memory-count{border:1px solid #566a73;padding:7px 10px;color:#c8d9d6;white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}.sequence-pips{display:flex;justify-content:center;gap:7px;height:8px;margin:12px auto 6px}.sequence-pips span{width:22px;height:5px;background:#526269;box-shadow:0 1px #091c26}.sequence-pips .filled{background:#efc976;box-shadow:0 0 7px #f6c75b66}.sequence-pips .error{background:#e19083}.stone-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 20px;max-width:362px;margin:0 auto;touch-action:manipulation}.stone-button{position:relative;appearance:none;border:0;padding:0 0 3px;background:none;display:flex;flex-direction:column;align-items:center;min-width:0;color:#bfcaca;-webkit-tap-highlight-color:transparent;touch-action:manipulation;user-select:none;-webkit-user-select:none}.stone-face{display:block;width:100%;aspect-ratio:1;background-image:url('./assets/bridge-stones.png');background-size:300% 200%;image-rendering:pixelated;filter:brightness(.89) drop-shadow(0 4px 1px #061521);transform:translateY(0);transition:filter .06s,transform .055s}.stone-caption{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:-3px;font-size:14px;line-height:1.4}.stone-caption kbd{font:11px/1 'Space Grotesk',sans-serif;height:17px;width:17px;border-color:#51656f;background:#1a2b35;color:#d4c5a4;box-shadow:none}.stone-button:enabled:hover .stone-face{filter:brightness(1.06) drop-shadow(0 4px 1px #061521)}.stone-button.is-lit .stone-face{filter:brightness(1.58) saturate(1.17) drop-shadow(0 0 8px var(--rune-color));transform:translateY(2px)}.stone-button.is-lit .stone-caption{color:var(--rune-color)}.stone-button.is-pressed .stone-face{transform:translateY(4px);filter:brightness(1.32) drop-shadow(0 1px 1px #061521)}.stone-button.is-wrong .stone-face{filter:sepia(.3) brightness(1.12) drop-shadow(0 0 8px #f47762)}.stone-button:disabled{cursor:default;opacity:1}.stone-button:focus-visible{outline:2px solid #ffdc89;outline-offset:1px;border-radius:4px}.memory-hint{font-size:12px;line-height:1.5;text-align:center;margin:12px auto 0;color:#aebdbf;max-width:420px;min-height:18px}.memory-console[data-phase="input"] .memory-phase{color:#abdbaa}.memory-console[data-phase="slip"] .memory-phase,.memory-console[data-phase="rescue"] .memory-phase{color:#f1aa94}
.bridge-log{padding-top:23px;margin-top:24px;border-top:1px solid #425061}.bridge-rounds{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px}.bridge-rounds span{display:flex;flex-direction:column;align-items:center;gap:5px;padding:12px 2px;border:1px solid #485664;background:#1a2533;font-size:11px;color:#91a5b2}.bridge-rounds b{font-size:23px;font-weight:500;color:#a5b4bb}.bridge-rounds .active{border-color:#c0a36c;background:#34404a}.bridge-rounds .active b{color:#f5d18c}.bridge-rounds .done{border-color:#729d8c;background:#283f42}.bridge-rounds .done b{color:#b8dfbd}#bridgeLogStatus{color:#a9bbc5;font-size:14px;line-height:1.5;margin:16px 0}.bridge-help{background:#142331;border-left:2px solid #b69b68;padding:14px}.bridge-help strong{font-size:15px;font-weight:500;color:#efd7a7}.bridge-help p{font-size:13px;line-height:1.6;color:#a3b5c1;margin:7px 0 0}.bridge-stage .photo-progress{margin-top:23px}.bridge-stage .boss-card{margin-top:23px}
@media(min-width:1000px){.bridge-stage.game-shell{max-width:1100px}.bridge-stage .play-layout{grid-template-columns:minmax(0,650fr) minmax(300px,340fr)}}
@media(max-width:760px){.bridge-stage .heading{margin:16px 0}.bridge-stage .quest-panel{padding:14px;gap:14px}.bridge-stage .quest-intro{display:none}.bridge-stage .objective{grid-column:1/-1}.bridge-stage .bridge-log{grid-column:1/-1;margin:0;padding:0;border:0}.bridge-stage .bridge-log .label-row{font-size:11px}.bridge-stage .bridge-rounds{margin-top:9px;gap:7px}.bridge-stage .bridge-rounds span{padding:8px 3px;font-size:11px}.bridge-stage .bridge-rounds b{font-size:20px}.bridge-stage #bridgeLogStatus{margin:10px 0 0;font-size:13px}.bridge-stage .bridge-help{display:none}.bridge-stage .photo-progress{margin:0;padding-top:12px}.bridge-stage .boss-card{margin:0}.bridge-stage .arena-footer{font-size:9px}.memory-console{padding:12px 13px 13px}.memory-command h2{font-size:16px}.memory-phase{font-size:10px}.memory-count{font-size:12px;padding:6px 8px}.stone-grid{max-width:300px;gap:6px 11px}.stone-caption{font-size:14px;margin-top:-4px;gap:4px}.stone-caption kbd{font-size:10px;width:15px;height:16px}.memory-hint{font-size:12px;margin-top:11px}.sequence-pips{margin:11px auto 4px}.bridge-stage .toast{font-size:11px}.bridge-stage .dialog{max-width:315px}.bridge-stage .objective p{font-size:12px}.bridge-stage .canvas-wrap .dialog h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){.stone-face{transition:none}.stone-button.is-lit .stone-face,.stone-button.is-pressed .stone-face{transform:none}}

@media(max-width:760px){.bridge-stage .boss-detail{display:block}.bridge-stage .boss-detail>p{font-size:11px;white-space:normal;line-height:1.5}}
