/* Puzzle instruments: clear controls, discovered evidence, one goal at a time. */
body.office-ar #puzzle-dialog{width:min(calc(100% - 20px),430px);max-height:calc(100dvh - 20px);margin:auto;padding:24px 20px 18px;color:#f5edd6;border:1px solid #d7bc7c;background-color:#112c28;background-image:linear-gradient(#d9bb7809 1px,transparent 1px),linear-gradient(90deg,#d9bb7809 1px,transparent 1px);background-size:24px 24px;border-radius:12px;box-shadow:inset 0 0 0 4px #112c28,inset 0 0 0 5px #d9bb7833,0 28px 100px #03151199}
#puzzle-dialog::backdrop{background:#061c18a6;backdrop-filter:blur(3px)}.office-ar #puzzle-dialog h2{color:#fff0cb;font-size:31px;margin:10px 0 12px;line-height:1.02;max-width:310px}.office-ar #puzzle-dialog .eyebrow{color:#a9dbca;font:9px/1.5 Archivo,sans-serif;letter-spacing:.15em;padding-right:24px;margin-bottom:9px}.office-ar #puzzle-dialog .close{color:#e9d7ac;background:#1c3b32;border:1px solid #a6b18a55;border-radius:4px;min-width:36px;min-height:36px;font-size:25px;margin:-8px -5px 0 9px}.puzzle-intro{font-size:13px;line-height:1.5;margin:8px 0 14px;color:#d6e1d3}.puzzle-intro b{font-weight:600;color:#fff0ce}.relic-inventory{display:flex;gap:7px;margin:12px 0}.relic-inventory>span{flex:1;display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid #70857277;border-radius:4px;color:#aabcad;background:#09231d}.relic-inventory b{font-size:22px;line-height:1;font-weight:400}.relic-inventory small{font-size:10px}.relic-inventory em{font-style:normal;margin-left:auto;font-size:11px}.relic-inventory .found{color:#f6d996;border-color:#d7bc7c;background:#334333}
.maze-wrap{width:min(100%,260px);margin:8px auto 0;padding:7px;border:1px solid #9dae8544;border-radius:6px;background:#0a211b;box-shadow:inset 0 3px 18px #0006,0 2px 0 #b29e6533}.maze-wrap svg{display:block;width:100%;aspect-ratio:1;touch-action:none;user-select:none}.maze-wall{fill:#0c211c;stroke:#82916a55;stroke-width:.75}.maze-floor{fill:#35574b;stroke:#60867544;stroke-width:1}.maze-floor.visited{fill:#49694e}.maze-relic{fill:#ffe1a0;font:25px Georgia,serif;text-anchor:middle}.maze-relic.collected{fill:#aed4b3}.maze-exit{fill:#d5e9c5;font:8px Archivo,sans-serif;letter-spacing:.7px;text-anchor:middle}.maze-light{fill:#fbd68a;stroke:#fff6c9;stroke-width:2;filter:drop-shadow(0 0 5px #fbc76999);transition:cx .12s ease-out,cy .12s ease-out}.maze-core{fill:#fffbe5;pointer-events:none;transition:cx .12s ease-out,cy .12s ease-out}
.terminal-feedback{font-size:12px;line-height:1.4;color:#bde2cb;min-height:2.8em;margin:12px 0 6px}.maze-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;max-width:280px;margin:0 auto}.office-ar #puzzle-dialog .maze-controls button{font-size:27px;line-height:1;min-height:47px;padding:7px;background:linear-gradient(#ebe0bd,#cdb578);color:#173d30;border:1px solid #f0dfad;border-radius:5px;box-shadow:0 3px 0 #74623b}.office-ar #puzzle-dialog button:active{transform:translateY(2px);box-shadow:none}.control-note{font-size:9px;text-align:center;line-height:1.5;color:#aac5b2;margin:9px 0 12px}.office-ar #puzzle-dialog .primary{background:#e8cf95;color:#193b2e;border:1px solid #f3dca6;border-radius:5px;min-height:46px;font-size:14px;font-weight:600;width:100%;margin:9px 0 4px}.office-ar #puzzle-dialog .primary:disabled{opacity:.45;cursor:default}.puzzle-hint{border-top:1px solid #8f9c7040;margin-top:13px;padding-top:12px;color:#cadbc5}.puzzle-hint summary{font-size:11px;text-underline-offset:3px}.puzzle-hint p{font-size:12px;line-height:1.55}.puzzle-footer{font-size:10px;line-height:1.5;color:#9eb6a3;margin:14px 0 0}.terminal-caption{font:9px/1.4 Archivo,sans-serif;letter-spacing:.15em;color:#b3dccc;margin:22px 0 14px}.puzzle-riddle{font:23px/1.25 Newsreader,Georgia,serif;margin:15px 0 20px;padding:0 0 0 15px;border-left:2px solid #d0b978;color:#f3e7c9}.symbol-entry{display:flex;justify-content:center;gap:9px;margin:16px 0}.symbol-entry span{width:62px;height:58px;background:#071c18;border:1px solid #7d94706b;border-radius:3px;text-align:center;font:32px/56px Georgia,serif;color:#ffe2a0;box-shadow:inset 0 2px 10px #0003}.symbol-keyboard{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.office-ar #puzzle-dialog .symbol-keyboard button{background:linear-gradient(#284b3d,#19382e);color:#f4dc9e;border:1px solid #a2b28166;border-radius:5px;padding:9px 4px;box-shadow:0 3px 0 #071e17;min-height:67px}.symbol-keyboard b{display:block;font:28px/1.1 Georgia,serif}.symbol-keyboard small{display:block;text-transform:uppercase;font-size:9px;letter-spacing:.09em;margin-top:6px;color:#c7d8b9}.terminal-tools{display:flex;gap:12px;justify-content:space-between;margin:12px 0 0}.office-ar #puzzle-dialog .terminal-tools button{background:transparent;color:#cbd8bf;border:1px solid #80967566;font-size:11px;border-radius:4px;min-height:40px;padding:8px 15px}.office-ar #puzzle-dialog .motion-toggle{color:#b7d0b8}.cipher-message{display:flex;gap:8px;justify-content:center;padding:17px 10px;margin:17px 0;background:#071d18;border:1px solid #bda56688;box-shadow:inset 0 0 25px #0004;border-radius:5px}.cipher-message span{font:37px/1.2 Georgia,serif;color:#f8d591;flex:1;text-align:center;text-shadow:0 0 16px #e9c27355}.cipher-legend{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin:0 0 19px}.cipher-legend span{text-align:center;border-bottom:1px solid #92b19055;padding:3px 0 8px}.cipher-legend b{display:block;font:22px/1.3 Georgia,serif;color:#bde4ce}.cipher-legend small{display:block;color:#eee2bd;font:12px/1.7 Archivo,sans-serif}.office-ar #puzzle-dialog #cipher-word{background:#0b211b;color:#f6e4b8;border:1px solid #96b18b77;letter-spacing:.35em;font:28px/1.3 Archivo,sans-serif;text-align:center;min-height:51px;max-width:100%;border-radius:4px;margin:9px 0 16px}.letter-keyboard>div{display:flex;justify-content:center;gap:4px;margin-bottom:5px}.office-ar #puzzle-dialog .letter-keyboard button{flex:0 1 calc(10% - 4px);min-width:0;min-height:43px;padding:4px 0;border:1px solid #b3bf915f;border-radius:4px;background:linear-gradient(#355441,#203b2f);box-shadow:0 3px 0 #071c16;color:#f2e1b6;font:13px/1 Archivo,sans-serif}.office-ar #puzzle-dialog .code-label{color:#acccb5}.vault-riddle{font:20px/1.25 Newsreader,Georgia,serif;border-left:2px solid #b69961;margin:17px 0;padding:2px 0 2px 12px;color:#304d38}
@media(max-height:740px){.office-ar #puzzle-dialog{padding:19px 17px 15px}.office-ar #puzzle-dialog h2{font-size:28px}.maze-wrap{max-width:210px}.relic-inventory{margin:8px 0}.terminal-feedback{margin-top:9px}.puzzle-intro{font-size:12px}.puzzle-hint{margin-top:10px;padding-top:9px}.puzzle-footer{margin-top:10px}.puzzle-riddle{font-size:21px}.cipher-message{margin:12px 0;padding:12px 8px}.cipher-message span{font-size:30px}.cipher-legend{margin-bottom:13px}}
@media(max-width:360px){.office-ar #puzzle-dialog{padding-inline:16px}.relic-inventory>span{padding:7px 6px;gap:4px}.relic-inventory small{font-size:9px}.letter-keyboard>div{gap:3px}.office-ar #puzzle-dialog .letter-keyboard button{font-size:12px;min-height:42px}.cipher-legend{gap:2px}.cipher-legend b{font-size:20px}.office-ar #puzzle-dialog h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){.maze-light,.maze-core{transition:none}.office-ar #puzzle-dialog button:active{transform:none}}
