:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:#e7e9df;background:#11191f;font-synthesis:none;font-weight:400;color-scheme:dark;--muted: #a2ada8;--mint: #b2e1c5}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{padding:0}button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}button:focus-visible{outline:2px solid var(--mint);outline-offset:5px}button:disabled{cursor:default;opacity:.35}[hidden]{display:none!important}.game-shell,.stage{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw;height:100dvh}canvas{position:fixed;top:0;right:0;bottom:0;left:0;display:block;width:100vw;height:100dvh;border:0;outline:none;touch-action:none;cursor:crosshair}canvas:focus,canvas:focus-visible{outline:none}.hud{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5;pointer-events:none;text-shadow:0 2px 2px #081015,0 0 8px #081015}.hub-status{position:absolute;top:28px;right:30px;left:30px;display:none;align-items:center;justify-content:space-between;gap:20px}#hub-character{color:var(--mint);font-size:15px;font-weight:550}.hub-wallet{display:inline-flex;align-items:center;gap:9px;color:#d9c18c;white-space:nowrap;font-size:13px}.hub-wallet svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}.hub-wallet b{margin-left:7px;color:#f0dbab;font-size:18px;font-weight:550;font-variant-numeric:tabular-nums}#save-status{position:absolute;top:36px;right:0;color:#e2aa8c;font-size:12px}body[data-scene=hub] .hub-status{display:flex}body[data-scene=hub] .vitals,body[data-scene=hub] .room,body[data-scene=hub] .weapon,body[data-scene=hub] #inventory,body[data-scene=hub] #open-map{display:none}.vitals{position:absolute;top:28px;left:30px}.health-row{display:flex;align-items:center;gap:12px}.debug-status{color:#ead7ab;font-size:12px;font-weight:600;white-space:nowrap}.health{display:flex;align-items:center;gap:6px;height:19px;filter:drop-shadow(0 2px 1px #081015)}.health-pip{display:block;width:19px;height:18px;background:#ee8e7e;clip-path:polygon(0 15%,15% 15%,15% 0,40% 0,40% 15%,60% 15%,60% 0,85% 0,85% 15%,100% 15%,100% 55%,85% 55%,85% 70%,70% 70%,70% 85%,60% 85%,60% 100%,40% 100%,40% 85%,30% 85%,30% 70%,15% 70%,15% 55%,0 55%)}.health-pip.empty{background:#584849}.supplies{display:flex;align-items:center;gap:23px;margin-top:14px}.supply{display:flex;align-items:center;gap:8px;color:#dec897}.supply+.supply{color:#aed8d3}.supply svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:square;stroke-linejoin:miter}.supply b{font-size:16px;font-weight:550;font-variant-numeric:tabular-nums}.room{position:absolute;right:30px;top:166px;display:flex;gap:14px;align-items:center;color:#c7d0c8;font-size:12px}#room-count{color:#97a59f;font-variant-numeric:tabular-nums}.weapon{position:absolute;right:30px;bottom:28px;min-width:154px;text-align:right}.weapon-readout{display:flex;align-items:center;justify-content:flex-end;gap:14px}.weapon-icon{width:62px;height:40px;fill:#cbd7c9;stroke:#cbd7c9;stroke-width:2;stroke-linejoin:miter;filter:drop-shadow(0 2px 1px #081015)}.weapon-icon path+path{fill:none}.weapon-text{display:flex;flex-direction:column;gap:2px}#weapon-name{font-size:12px;color:#b6c5ba}#ammo{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:.025em}#reload{display:block;width:100%;height:3px;margin:9px 0 0;border:0;border-radius:0;background:#314640;accent-color:var(--mint)}#reload::-webkit-progress-bar{background:#314640}#reload::-webkit-progress-value{background:var(--mint)}#reload::-moz-progress-bar{background:var(--mint)}.inventory{display:flex;justify-content:flex-end;gap:8px;margin-top:10px;pointer-events:auto}.inventory button{min-width:25px;height:25px;padding:1px 5px 4px;background:transparent;border:0;border-bottom:2px solid #50615a;border-radius:0;color:#8d9d92;font-size:12px;font-variant-numeric:tabular-nums;text-shadow:inherit}.inventory button.active{border-bottom-color:var(--weapon-color, var(--mint));color:#e2eddf}.inventory button:hover{color:#e2eddf;border-bottom-color:#d3dfcc}.message{position:absolute;left:50%;bottom:40px;max-width:min(64vw,720px);margin:0;transform:translate(-50%);text-align:center;font-size:14px;line-height:1.6;color:#ead7ab}.message:empty{display:none}.system-pause{position:fixed;left:25px;bottom:25px;z-index:6;display:grid;place-items:center;width:34px;height:34px;padding:5px;border:0;background:transparent;opacity:.6;pointer-events:auto}.system-pause svg{width:24px;height:24px;fill:#d7e1d7;filter:drop-shadow(0 2px 1px #081015)}.system-pause:hover{opacity:1}.open-map{position:fixed;top:20px;right:20px;z-index:6;width:200px;height:136px;padding:0;border:0;background:transparent}body[data-phase=ready] .hud,body[data-phase=ready] .system-pause{visibility:hidden}body[data-phase=paused] .hud{opacity:.35}body[data-phase=map] .hud,body[data-phase=panel] .hud{opacity:.2}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;align-items:center;justify-content:center;overflow-y:auto;background:#071018d9}.overlay-content{width:370px;max-width:calc(100vw - 48px);margin:auto;padding:34px 0;text-align:center}.overlay h1{margin:0 0 35px;padding-left:.12em;font-size:clamp(37px,5vw,58px);line-height:1.25;font-weight:650;letter-spacing:.12em;color:#ecece0;text-shadow:0 3px 0 #071014}#overlay-copy{margin:-14px 0 25px;color:#adb8ad;font-size:13px;line-height:1.9;white-space:pre-line}.menu-options{display:flex;flex-direction:column;align-items:center;gap:16px}.menu-options button{position:relative;min-width:128px;padding:3px 10px;border:0;border-radius:0;background:transparent;color:#b0bcb0;font-size:15px;letter-spacing:.06em}.menu-options button:before{position:absolute;left:-7px;top:50%;width:0;height:0;margin-top:-4px;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:6px solid var(--mint);content:"";opacity:0}.menu-options button:hover,.menu-options button:focus-visible{color:var(--mint)}.menu-options button:hover:before,.menu-options button:focus-visible:before{opacity:1}#start{color:#e5e9da;font-size:20px;font-weight:550;margin-bottom:2px}#start:hover{color:var(--mint)}.controls{display:grid;grid-template-columns:1fr 1.3fr;column-gap:28px;row-gap:12px;margin:43px auto 0;text-align:left;font-size:11px;line-height:1.4;color:#81938a}.controls span{display:flex;align-items:baseline;gap:10px;white-space:nowrap}kbd{min-width:35px;font:inherit;font-size:11px;font-weight:500;color:#b0bdb0}#desktop-hint{display:none;margin:25px 0 0;color:#c9b48e;font-size:12px}.map-screen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:12;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;padding:26px 38px 24px;background:#071018ed}.map-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.map-header h1{margin:0;font-size:23px;font-weight:550;letter-spacing:.08em}#close-map{display:grid;place-items:center;width:36px;height:36px;padding:6px;border:0;background:transparent;color:#b7c7bd}#close-map:hover{color:#e7f1e5}#close-map svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}.map-visual{display:block;width:100%;height:100%;min-height:0;overflow:visible}.map-corridor{fill:#30484b}.map-corridor.frontier{fill:#1b3039}.map-room-floor{fill:#253d43}.map-room-outline{fill:none;stroke:#78978e;stroke-width:1.25;vector-effect:non-scaling-stroke}.map-room.unknown .map-room-floor{fill:#101f29}.map-room.unknown .map-room-outline{stroke:#344b53;stroke-width:1}.map-room.current .map-room-floor{fill:#365c57}.map-room[data-room-id]{cursor:pointer;outline:none}.map-room[data-room-id]:hover .map-room-floor,.map-room[data-room-id]:focus .map-room-floor{fill:#3c625c}.map-room[data-room-id]:hover .map-room-outline,.map-room[data-room-id]:focus .map-room-outline{stroke:#b5e1ca;stroke-width:2}.map-room[aria-disabled=true]{cursor:default}.map-room[aria-disabled=true]:hover .map-room-floor,.map-room[aria-disabled=true]:focus .map-room-floor{fill:#30474b}.map-room-label{fill:#c6d5cb;font-weight:450;text-anchor:middle;dominant-baseline:central;pointer-events:none}.map-room.current .map-room-label{fill:#e3f1df}.map-portal{fill:#112b30;stroke:#9cd8c7;stroke-width:1.5;vector-effect:non-scaling-stroke}.map-portal-core{fill:#b2e1c5}.map-portal.locked{fill:#15242d;stroke:#5b7178;stroke-dasharray:3 3}.map-portal-core.locked{fill:#5b7178}.map-footer{text-align:center}#map-status{min-height:21px;margin:0;color:#d5decf;font-size:14px;line-height:1.5}.map-controls{margin:9px 0 0;color:#83988b;font-size:11px;line-height:1.6}.map-controls kbd{min-width:0}.map-controls span{padding:0 8px;color:#4d655b}.hub-screen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:12;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:22px;padding:28px 38px 23px;background:#0a121bed}.hub-panel-header{display:flex;align-items:center;justify-content:space-between;gap:24px}.hub-panel-header h1{margin:0;font-size:24px;font-weight:550;letter-spacing:.06em}.hub-panel-actions{display:flex;align-items:center;gap:30px}#close-hub-panel{display:grid;place-items:center;width:36px;height:36px;padding:6px;border:0;background:transparent;color:#b7c7bd}#close-hub-panel:hover{color:#e7f1e5}#close-hub-panel svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}.hub-panel-content{width:min(100%,940px);min-height:0;justify-self:center;overflow-y:auto;overscroll-behavior:contain;padding:4px 10px 20px;scrollbar-width:thin;scrollbar-color:#496058 transparent}.hub-section-count{margin:0 0 9px;color:#9caf9f;font-size:13px;font-variant-numeric:tabular-nums}.hub-record-list{list-style:none;margin:0;padding:0}.hub-record-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:20px;padding:23px 0;border-bottom:1px solid #30423f}.hub-record-row:last-child{border-bottom:0}.hub-record-icon{width:32px;height:32px;color:#6d8278}.hub-record-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:square;stroke-linejoin:miter}.hub-record-row.completed .hub-record-icon{color:#c8ba85}.hub-record-name{margin:0;color:#dce5d7;font-size:16px;font-weight:550;line-height:1.4}.hub-record-description{margin:6px 0 0;color:#97a99b;font-size:12px;line-height:1.65}.hub-record-progress{min-width:74px;text-align:right;color:#9eafa1;font-size:13px;font-variant-numeric:tabular-nums}.hub-record-row.completed .hub-record-progress{color:#b6d7b7}.hub-achievement-bar{display:block;width:min(100%,270px);height:3px;margin-top:11px;border:0;background:#293c36;accent-color:#9dbf9e}.hub-achievement-bar::-webkit-progress-bar{background:#293c36}.hub-achievement-bar::-webkit-progress-value{background:#9dbf9e}.hub-achievement-bar::-moz-progress-bar{background:#9dbf9e}.hub-codex-stats{margin:8px 0 0;color:#c2cbb7;font-size:12px;line-height:1.7;font-variant-numeric:tabular-nums}.hub-shop-row{padding:31px 0}.hub-shop-row:focus{outline:1px solid #6e9981;outline-offset:7px}.hub-shop-row .hub-record-icon{color:#c3b184}.hub-shop-action{min-width:110px;text-align:right}.hub-shop-cost{margin:0 0 7px;color:#c9b57e;font-size:12px;font-variant-numeric:tabular-nums}.hub-shop-action button{min-width:110px;border:0;border-bottom:1px solid #89b69a;border-radius:0;padding:9px 11px;background:transparent;color:#c2e3c8;font-size:14px;white-space:nowrap}.hub-shop-action button:hover:not(:disabled){background:#8db49a12;color:#e1f1dd}.hub-shop-action button:disabled{border-bottom-color:#4a5c50;color:#899c89;opacity:.7}.hub-panel-footer{text-align:center}.hub-panel-footer p{margin:0;min-height:18px;color:#84998b;font-size:11px;line-height:1.6}#hub-panel-status{min-height:23px;margin-bottom:5px;color:#d6cfab;font-size:13px}.hub-screen[data-panel=codex]{padding:24px 46px 20px;gap:4px;background:#060b10db}.hub-screen[data-panel=codex] .hub-panel-header{justify-content:flex-end}.hub-screen[data-panel=codex] .hub-panel-header h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.hub-screen[data-panel=codex] .hub-wallet{display:none}.hub-screen[data-panel=codex] .hub-panel-content{display:grid;place-items:center;align-self:stretch;width:100%;padding:8px 12px 20px;overflow:visible}.hub-screen[data-panel=codex] .hub-panel-footer{align-self:end}@media(max-width:600px){.vitals{top:20px;left:20px}.health-pip{width:16px;height:15px}.health{gap:4px}.supplies{margin-top:10px;gap:17px}.room{right:20px;top:166px;gap:10px;font-size:11px}.weapon{right:20px;bottom:20px;min-width:120px}.weapon-icon{width:46px;height:32px}#ammo{font-size:23px}#weapon-name{font-size:11px}.system-pause{left:15px;bottom:15px}.message{bottom:115px;max-width:80vw;font-size:12px}#desktop-hint{display:block}.controls{column-gap:16px}.map-screen{gap:10px;padding:18px 18px 20px}.map-header h1{font-size:20px}#map-status{font-size:12px}.map-controls span{padding:0 4px}.hub-status{top:20px;right:20px;left:20px}#hub-character{font-size:13px}.hub-wallet{gap:6px;font-size:11px}.hub-wallet b{margin-left:4px;font-size:16px}.hub-screen{gap:15px;padding:18px 18px 20px}.hub-panel-header h1{font-size:21px}.hub-panel-actions{gap:16px}.hub-panel-content{padding-right:5px;padding-left:5px}.hub-record-row{gap:12px;grid-template-columns:28px minmax(0,1fr) auto;padding:19px 0}.hub-record-icon{width:25px;height:25px}.hub-record-name{font-size:14px}.hub-record-description{font-size:11px}.hub-record-progress{min-width:55px;font-size:11px}.hub-shop-row{grid-template-columns:28px minmax(0,1fr)}.hub-shop-action{grid-column:2;text-align:left;margin-top:3px}.hub-shop-action button{padding-left:0;padding-right:0}}@media(max-height:600px){.overlay-content{padding:24px 0}.overlay h1{margin-bottom:20px;font-size:36px}.menu-options{gap:10px}.controls{margin-top:25px;row-gap:8px}.map-screen{padding-top:16px;padding-bottom:16px;gap:8px}.hub-screen{padding-top:16px;padding-bottom:16px;gap:12px}}.codex-book{--codex-ink: #4b382b;--codex-soft-ink: #82715a;position:relative;width:min(1040px,100%);height:min(620px,calc(100dvh - 130px));min-height:340px;margin:auto;padding:12px 42px 19px 12px;color:var(--codex-ink);perspective:1500px}.codex-volume{position:relative;display:grid;grid-template-columns:1fr 1fr;width:100%;height:100%;background:#4c3029;border:9px solid #4c3029;border-radius:5px 8px 8px 5px;box-shadow:0 2px #a18055,0 7px #37261f,0 10px #231b18,0 22px 60px #0009;transform-style:preserve-3d;animation:codex-volume-open .8s cubic-bezier(.2,.7,.25,1) both}.codex-page{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;padding:clamp(22px,3.1vw,40px);background-color:#e1d0a8;background-image:repeating-linear-gradient(0deg,#a4895610 0,#a4895610 1px,transparent 1px,transparent 4px);border:1px solid #b19c74;box-shadow:0 2px #b09b72,0 5px #e5d7b3,0 7px #a08b61;backface-visibility:hidden}.codex-page-left{border-radius:1px 0 0 3px;background-image:linear-gradient(90deg,#a58b5e1c,#fff2cc33 25%,transparent 72%,#94774b66),repeating-linear-gradient(0deg,#a489560c 0,#a489560c 1px,transparent 1px,transparent 4px);transform-origin:right center;animation:codex-left-open .8s cubic-bezier(.2,.7,.25,1) both}.codex-page-right{border-radius:0 2px 3px 0;background-image:linear-gradient(90deg,#84653d69,transparent 16%,#fff3ce38 66%,#a58b5e22),repeating-linear-gradient(0deg,#a489560c 0,#a489560c 1px,transparent 1px,transparent 4px);transform-origin:left center;animation:codex-right-open .8s cubic-bezier(.2,.7,.25,1) both}.codex-page:after{position:absolute;width:22px;height:22px;bottom:0;pointer-events:none;content:""}.codex-page-left:after{left:0;background:linear-gradient(45deg,#b59e71 0 47%,#f0e2bd 49% 64%,transparent 67%)}.codex-page-right:after{right:0;background:linear-gradient(-45deg,#b59e71 0 47%,#f0e2bd 49% 64%,transparent 67%)}.codex-spine{position:absolute;inset:0 auto 0 50%;width:22px;transform:translate(-50%);background:linear-gradient(90deg,transparent,#5a432436 35%,#f6e6bc4d 52%,#644b292e 70%,transparent);pointer-events:none}.codex-heading{margin:0;font-size:clamp(23px,2.5vw,30px);font-weight:650;letter-spacing:.12em}.codex-chapter{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:22px 0 18px;padding-bottom:11px;border-bottom:1px solid #a18a6173}.codex-chapter h3{margin:0;font-size:15px;font-weight:550}.codex-count{color:var(--codex-soft-ink);font-size:12px;font-variant-numeric:tabular-nums}.codex-index{display:grid;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:clamp(10px,1.6vw,18px);min-height:0;overflow:auto;padding:4px;margin:-4px;scrollbar-width:thin;scrollbar-color:#a48a63 transparent}.codex-index-entry{display:grid;place-items:center;width:100%;min-height:48px;padding:7px;color:#947d58;border:1px solid #b29b724d;border-radius:0;background:#b0955c0c;box-shadow:inset 0 0 15px #98774408}.codex-index-entry:hover{background:#a8844030;border-color:#9a794c}.codex-index-entry[aria-pressed=true]{border-color:#82623c;background:#a8844026;box-shadow:0 0 0 2px #cdb785,inset 0 0 18px #aa874d22}.codex-index-entry:focus-visible,.codex-entry-nav button:focus-visible,.codex-bookmark:focus-visible{outline:2px solid #6c5031;outline-offset:3px}.codex-index-entry svg{display:block;width:100%;max-height:77px;filter:sepia(.15)}.codex-index-unknown{background:transparent}.codex-unknown{display:block;font-size:32px;font-weight:500;color:#a18c68;line-height:1}.codex-page-number{margin-top:auto;padding-top:17px;text-align:center;color:#9b8765;font-size:11px}.codex-detail{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a48a63 transparent}.codex-detail-content{animation:codex-entry-turn .18s ease-out both;transform-origin:left center}.codex-portrait{display:grid;place-items:center;width:100%;height:clamp(115px,20vh,180px);margin:0 0 12px;background:radial-gradient(ellipse,#ad8f5420,transparent 65%)}.codex-portrait svg{display:block;width:92%;height:100%;filter:sepia(.2) drop-shadow(0 4px 0 #8d70421c)}.codex-portrait-unknown .codex-unknown{font-size:82px;font-weight:400;opacity:.65}.codex-entry-name{margin:0;padding-bottom:14px;border-bottom:1px solid #a18a6173;font-size:clamp(19px,2vw,25px);line-height:1.4;font-weight:650}.codex-description{margin:17px 0 0;font-size:14px;line-height:1.85}.codex-undiscovered{color:var(--codex-soft-ink)}.codex-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:22px 0 0;font-size:12px;font-variant-numeric:tabular-nums}.codex-facts dt{color:var(--codex-soft-ink)}.codex-facts dd{margin:0;text-align:right}.codex-starters{margin:21px 0 0;color:var(--codex-soft-ink);font-size:11px;line-height:1.7}.codex-entry-nav{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:auto;padding-top:17px}.codex-entry-nav button{display:grid;place-items:center;width:35px;height:26px;padding:0;border:0;background:transparent;color:#8b724e;font-size:23px;line-height:1}.codex-entry-nav button:hover{color:#423022}.codex-entry-number{color:#9b8765;font-size:11px;font-variant-numeric:tabular-nums}.codex-bookmarks{position:absolute;left:calc(100% + 8px);top:48px;display:flex;flex-direction:column;gap:14px}.codex-bookmark{width:40px;height:89px;padding:12px 9px 18px;border:1px solid #2e231c;border-left:0;background:#6f5140;color:#d5c29a;font-size:13px;line-height:1.6;writing-mode:vertical-rl;letter-spacing:.2em;box-shadow:inset 4px 0 8px #0003,2px 2px #1b171480;clip-path:polygon(0 0,100% 0,100% 100%,50% 89%,0 100%)}.codex-bookmark-enemies{background:#596350}.codex-bookmark[aria-selected=true]{width:47px;color:#f3e5c0;background:#8c6245}.codex-bookmark-enemies[aria-selected=true]{background:#758066}.codex-bookmark:hover{filter:brightness(1.15)}.codex-intro{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;pointer-events:none;z-index:3;animation:codex-intro-out .8s linear both}.codex-gun{width:74%;max-height:100%;overflow:visible;filter:drop-shadow(0 16px 10px #0008);animation:codex-gun-fold .8s ease-in-out both}.codex-gun-barrel{transform-origin:302px 159px;animation:codex-barrel-fold .8s cubic-bezier(.5,0,.2,1) both}.codex-gun-grip{transform-origin:257px 170px;animation:codex-grip-fold .8s cubic-bezier(.5,0,.2,1) both}.codex-gun-cylinder{transform-origin:257px 159px;animation:codex-cylinder-fold .8s cubic-bezier(.5,0,.2,1) both}@keyframes codex-volume-open{0%,28%{opacity:0;transform:scale(.42) rotate(-8deg);clip-path:inset(-15% 45% -15% 45%)}42%{opacity:1;transform:scale(.66) rotate(-3deg);clip-path:inset(-15% 39% -15% 39%)}74%{clip-path:inset(-15% -15% -15% -15%)}to{opacity:1;transform:none;clip-path:inset(-15% -15% -15% -15%)}}@keyframes codex-left-open{0%,38%{transform:rotateY(88deg)}to{transform:rotateY(0)}}@keyframes codex-right-open{0%,38%{transform:rotateY(-88deg)}to{transform:rotateY(0)}}@keyframes codex-intro-out{0%,54%{opacity:1;visibility:visible}78%,to{opacity:0;visibility:hidden}}@keyframes codex-gun-fold{0%{transform:translateY(35px) rotate(-9deg) scale(.85)}20%{transform:translateY(0) rotate(0) scale(1)}60%,to{transform:translate(5%) rotate(90deg) scale(.46)}}@keyframes codex-barrel-fold{0%,24%{transform:none}62%,to{transform:translate(-125px,30px) rotate(90deg)}}@keyframes codex-grip-fold{0%,24%{transform:none}62%,to{transform:translate(28px,-34px) rotate(-90deg)}}@keyframes codex-cylinder-fold{0%,18%{transform:none}65%,to{transform:rotate(300deg) scale(.85)}}@keyframes codex-entry-turn{0%{opacity:.55;transform:perspective(800px) rotateY(-9deg)}to{opacity:1;transform:none}}@media(max-height:680px){.codex-book{height:calc(100dvh - 106px);min-height:300px}.codex-page{padding:19px 28px}.codex-chapter{margin-top:13px;margin-bottom:13px}.codex-index-entry{min-height:45px}.codex-portrait{height:105px;margin-bottom:5px}.codex-description{margin-top:12px;font-size:13px;line-height:1.7}.codex-facts{margin-top:15px;gap:7px 20px}.codex-starters{margin-top:13px}}@media(max-width:700px){.codex-book{padding:7px 29px 13px 4px;height:min(560px,calc(100dvh - 110px))}.codex-volume{border-width:6px}.codex-page{padding:19px 15px}.codex-heading{font-size:22px}.codex-chapter{margin-top:17px;gap:5px}.codex-index{gap:9px}.codex-index-entry{padding:3px;min-height:48px}.codex-index-entry .codex-unknown{font-size:25px}.codex-entry-name{font-size:18px}.codex-portrait{height:120px}.codex-description{font-size:12px}.codex-facts{gap:8px;font-size:11px}.codex-bookmarks{top:38px;left:calc(100% + 5px)}.codex-bookmark{width:28px;height:79px;padding-left:6px;padding-right:6px;font-size:12px}.codex-bookmark[aria-selected=true]{width:33px}}@media(prefers-reduced-motion:reduce){.codex-volume,.codex-page,.codex-detail-content{animation:none}.codex-intro{display:none}}
