:root{--bg-void: #0d1316;--bg-slate: #141d21;--bg-panel: rgba(20, 29, 33, .93);--bg-panel-solid: #162024;--border-brass: rgba(214, 184, 122, .36);--border-subtle: rgba(182, 198, 194, .28);--text-primary: #f8f4e8;--text-muted: #cfc8b8;--gold-accent: #f0e442;--brass-accent: #e8c872;--cyan-accent: #7be0d6;--coral-accent: #ff7b59;--pink-accent: #f080c0;--error-red: #ff8a8a;--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-mono: "SF Mono", "Cascadia Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace}*,*:before,*:after{box-sizing:border-box}html{font-size:18px}@media(max-width:1120px){html{font-size:17px}}@media(max-width:780px){html{font-size:16px}}html,body{margin:0;padding:0;width:100%;height:100dvh;overflow:hidden;background:var(--bg-void);color:var(--text-primary);font-family:var(--font-ui);line-height:1.45;overscroll-behavior:none;-webkit-user-select:none;user-select:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#app-shell{position:relative;width:100%;height:100dvh;overflow:hidden}#pixi-root{position:absolute;inset:0;z-index:1}#pixi-root canvas{display:block;width:100%;height:100%;touch-action:none}#ui-overlay{position:absolute;inset:0;z-index:10;pointer-events:none;display:flex;flex-direction:column;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.interactive{pointer-events:auto}button{font-family:inherit;font-size:1rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.42rem;border:1.5px solid var(--border-brass);background-color:#182226f2;background-image:linear-gradient(165deg,#28383cb8,#121a1eeb),url(/assets/world/ui_scroll_frame.webp);background-size:cover;color:var(--text-primary);border-radius:10px;padding:.52rem 1rem;min-height:44px;font-weight:700;white-space:nowrap;box-shadow:inset 0 1px #fff5d629,inset 0 -3px #080c0e8c,0 5px 14px #00000059;transition:transform .13s ease,border-color .14s ease,box-shadow .14s ease,filter .14s ease}.craft-icon{display:inline-block;flex-shrink:0;vertical-align:-.14em}button.compact-btn{min-height:44px;min-width:44px;padding:.4rem .78rem;font-size:.95rem;white-space:normal;text-align:center}input,select,textarea{font-size:1rem}button:hover:not(:disabled){transform:translateY(-1px);border-color:var(--brass-accent);box-shadow:inset 0 1px #fff5d647,inset 0 -3px #080c0e8c,0 8px 20px #e8c87238}button:focus-visible,[role=button]:focus-visible,[role=tab]:focus-visible{outline:3px solid var(--gold-accent);outline-offset:2px}button:disabled{background:#18202499;background-image:none;color:#b6c2bc;border-color:#d6b87a2e;box-shadow:none;cursor:not-allowed}.btn-locked{background:#182125c2;background-image:linear-gradient(165deg,#1f2b2fb8,#10171ae0);color:#cfc6b4;border-color:#d6b87a38;cursor:pointer}.btn-locked:hover:not(:disabled){border-color:#f0e44285;color:#f8f4e8}.btn-primary{background-color:#194f56;background-image:linear-gradient(155deg,#18605af5,#10383efa),url(/assets/world/ui_scroll_frame.webp);border-color:#7be0d6;color:#fffdf4}.btn-danger{background-color:#7d251b;background-image:linear-gradient(155deg,#b84a2af0,#7d251bf7),url(/assets/world/ui_scroll_frame.webp);border-color:#f59d78;color:#fffdf4}.btn-gold{background-color:#c6852a;background-image:linear-gradient(155deg,#f3ce63f0,#c6852af7),url(/assets/world/ui_scroll_frame.webp);color:#1c1408;border-color:#fef08a;font-weight:800}.panel{background-color:var(--bg-panel);background-image:linear-gradient(165deg,#182226ed,#0e1518f5),url(/assets/world/ui_scroll_frame.webp);background-size:cover;border:1.5px solid var(--border-brass);border-radius:14px;box-shadow:inset 0 1px #fff5d61f,0 18px 42px #0000008a}.combat-hud .panel,.sanctuary-hud .panel,.modal-backdrop .panel{backdrop-filter:none;-webkit-backdrop-filter:none}.campfire-screen{position:relative;width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.9rem 1.35rem;overflow:hidden;pointer-events:none}.campfire-header{position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:.85rem;flex-wrap:wrap}.brand-title{margin:0;font-size:clamp(1.75rem,3vw,2.45rem);letter-spacing:.1em;background:linear-gradient(90deg,#7be0d6,#f0e442,#ff8fa3);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 2px 10px rgba(0,0,0,.75))}.campfire-sub{font-size:1.05rem;color:#e6dfd0;text-shadow:0 2px 8px rgba(0,0,0,.85)}.campfire-hero{position:relative;z-index:2;text-align:center;margin-top:.25rem;text-shadow:0 2px 12px rgba(0,0,0,.92)}.campfire-hero h2{margin:0;font-size:clamp(1.5rem,2.8vw,2.05rem);font-weight:800;color:#fffdf4}.campfire-hero div{font-size:1.08rem;color:#e6dfd0;margin-top:.18rem}.campfire-scene-anchors{position:absolute;inset:0;z-index:2;pointer-events:none}.campfire-anchor{position:absolute;transform:translate(-50%);display:inline-flex;flex-direction:column;align-items:center}.campfire-card-btn{position:relative;display:flex;flex-direction:column;align-items:center;background:transparent;background-image:none;border:none;box-shadow:none;padding:0;margin:0;min-height:0;border-radius:18px;color:inherit;white-space:normal}.campfire-card-btn:hover:not(:disabled){transform:none;border-color:transparent;box-shadow:none}.campfire-card-btn:focus-visible{outline:none}.campfire-card-btn:focus-visible .campfire-plaque{outline:3px solid var(--gold-accent);outline-offset:2px}.campfire-creature-zone{position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-radius:50%;pointer-events:auto}.campfire-plaque{display:block;margin-top:12px;width:max-content;min-width:clamp(175px,22vw,245px);max-width:320px;padding:.68rem 3.1rem .75rem 1.25rem;background-color:#0c1216db;background-image:linear-gradient(180deg,#0c12167a,#0a0f13ad),url(/assets/world/ui_plaque_wood.webp);background-size:100% 100%;background-repeat:no-repeat;border-radius:18px;text-align:center;cursor:pointer;filter:drop-shadow(0 8px 18px rgba(0,0,0,.7));transition:transform .15s ease,filter .15s ease}.campfire-anchor:hover .campfire-plaque,.campfire-card-btn:focus-visible .campfire-plaque{transform:translateY(-3px) scale(1.03);filter:drop-shadow(0 0 16px rgba(240,228,66,.42)) drop-shadow(0 10px 20px rgba(0,0,0,.72))}.campfire-plaque-head{display:flex;align-items:center;justify-content:center;gap:.55rem}.campfire-plaque-name{font-size:1.2rem;font-weight:800;color:#fffdf4;white-space:nowrap;text-shadow:0 2px 6px rgba(0,0,0,.85)}.campfire-plaque-sub{display:block;font-size:.86rem;color:var(--text-muted);margin-bottom:.12rem}.campfire-plaque-edit{position:absolute;top:18px;right:8px;z-index:2;flex-shrink:0;min-height:44px!important;min-width:44px!important;padding:.2rem .5rem!important;font-size:.95rem!important;border-radius:999px!important;background:#182226f0!important;background-image:none!important;border:1px solid rgba(232,200,114,.48)!important;box-shadow:none!important}.campfire-plaque-meta{display:block;font-size:.96rem;color:#efe8d6;margin-top:.12rem;text-shadow:0 1px 4px rgba(0,0,0,.85)}.campfire-footer{position:relative;z-index:3;display:inline-flex;justify-content:center;align-items:center;gap:.9rem;flex-wrap:wrap;font-size:.98rem;color:#e6dfd0;background:#10171bd1;border:1.5px solid var(--border-brass);border-radius:18px 22px 20px 18px;padding:.42rem 1.15rem;margin:auto auto 0}.badge-row{display:flex;flex-wrap:wrap;gap:.38rem}.pill{display:inline-flex;align-items:center;gap:.32rem;font-size:.92rem;font-weight:700;padding:.24rem .65rem;border-radius:8px;background:#1a2428d6;border:1px solid rgba(214,184,122,.32)}.sanctuary-hud{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.75rem 1.1rem;pointer-events:none}.top-bar{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap}.sanctuary-nav{display:flex;flex-wrap:wrap;gap:.4rem;padding:.35rem}.sanctuary-nav button{border-radius:14px 18px 15px 17px;display:inline-flex;align-items:center;gap:.42rem}.nav-crest-icon{width:26px;height:26px;object-fit:contain;flex-shrink:0}.sanctuary-nav button.active{background:linear-gradient(155deg,#18605af5,#10383efa);border-color:#e8c872;color:#fffdf4}.sanctuary-drawer{margin-top:.5rem;flex:1;min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:.95rem 1.15rem;background-color:#0e1519e6}.camp-stage-wrap{flex:1;min-height:0;display:flex;justify-content:flex-end;align-items:stretch;padding:.45rem 0;pointer-events:none}.camp-craft-tray{width:clamp(380px,42vw,480px);max-width:100%;display:flex;flex-direction:column;min-height:0;max-height:100%;padding:0;overflow:hidden;background-color:#0e1519f0;background-image:linear-gradient(168deg,#182428f0,#0d1418fa),url(/assets/world/ui_scroll_frame.webp);background-size:cover}.camp-tray-header{display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.72rem .95rem .58rem;background:linear-gradient(180deg,rgba(214,184,122,.08),transparent);border-bottom:1px solid rgba(214,184,122,.24);flex-shrink:0}.camp-tray-scroll{flex:1;min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:.65rem .95rem .85rem}.tray-codex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(195px,1fr));gap:.6rem}.inline-subpanel{margin-top:.75rem;padding:0;overflow:hidden;border-radius:16px;background-color:#0c1216f2;background-image:linear-gradient(165deg,#162226f2,#0c1216fa),url(/assets/world/ui_scroll_frame.webp);background-size:cover;border:1.5px solid rgba(123,224,214,.36)}.inline-subpanel-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.65rem .95rem .55rem;border-bottom:1px solid rgba(214,184,122,.22);background:linear-gradient(180deg,rgba(214,184,122,.07),transparent)}.inline-subpanel-body{padding:.72rem .95rem}.accessible-summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}.trail-hero{display:flex;align-items:center;justify-content:space-between;gap:.9rem;flex-wrap:wrap;padding:.95rem 1.2rem;border-radius:20px 24px 22px 18px;background:linear-gradient(155deg,#1c3e4273,#10171be0);border:2px solid rgba(123,224,214,.52);margin-bottom:.85rem}.trail-chapters{display:flex;gap:.42rem;flex-wrap:wrap;margin-bottom:.45rem}.trail-progress-wrap{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem}.trail-stones-path{display:flex;align-items:stretch;gap:.35rem;flex-wrap:wrap;margin-bottom:.9rem}.trail-stone-node{flex:1 1 155px;min-width:145px;display:flex;align-items:center;gap:.35rem}.trail-connector{font-size:1.15rem;font-weight:900;color:#b6c6c259;flex-shrink:0}.trail-connector.is-done{color:#f0e442}.trail-stone{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:.18rem;padding:.68rem .6rem;min-height:112px;white-space:normal;border-radius:22px 26px 24px 20px}.trail-stone-top{display:inline-flex;align-items:center;gap:.35rem}.trail-stone-emblem{width:30px;height:30px;object-fit:contain;border-radius:999px}.trail-stone-emblem.is-mastered{filter:drop-shadow(0 0 6px rgba(240,228,66,.65))}.trail-stone-emblem.is-locked{filter:grayscale(.88) brightness(.55);opacity:.72}.trail-stone-keys{font-family:var(--font-mono);font-size:.82rem;font-weight:700;padding:.08rem .42rem;border-radius:8px;background:#0a0f13b8;color:#efe8d6;border:1px solid rgba(214,184,122,.24)}.freeplay-section{padding:.75rem .95rem;border-radius:18px 22px 20px 18px;background:#0e1519b8;border:1px solid rgba(123,224,214,.24)}.intro-key-chip{display:flex;flex-direction:column;align-items:center;padding:.45rem .78rem;border-radius:14px;border:2px solid #7be0d6;background:#10181ce6;min-width:88px}.intro-key-chip.is-active{box-shadow:0 0 14px #f0e44259;transform:translateY(-2px)}.intro-key-chip.is-done{background:#4ade8024}.trail-stone.is-current{border-color:#7be0d6;box-shadow:0 0 18px #7be0d657;background:linear-gradient(160deg,#28726c73,#121c20f2)}.trail-stone.is-mastered{border-color:#f0e4427a}.trail-stone-num{font-size:.88rem;font-weight:700;color:var(--text-muted)}.trail-stone-title{font-size:1.1rem;font-weight:900;color:#fffdf4}.trail-stone-meta{font-size:.94rem;font-weight:800}.trail-stone-cap{display:inline-flex;align-items:center;gap:.3rem;font-size:.88rem;color:#f0e442;margin-top:.1rem}.trail-actions{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap;padding-top:.65rem;border-top:1px solid rgba(214,184,122,.18)}.lesson-hud{position:relative;pointer-events:none;width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.65rem 1rem;gap:.4rem}.lesson-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.65rem;padding:.44rem .85rem;background:#0b1114d6;border:1px solid rgba(214,184,122,.28);border-radius:10px}.lesson-title-wrap{display:flex;flex-direction:column;align-items:center;gap:.2rem}.lesson-beat-dots{display:flex;gap:.35rem;flex-wrap:wrap;justify-content:center}.lesson-beat-dot{font-size:.88rem;font-weight:700;padding:.14rem .52rem;border-radius:999px;border:1px solid rgba(182,198,194,.25);color:var(--text-muted);background:#10171bc7}.lesson-beat-dot.is-active{border-color:#7be0d6;color:#fffdf4;background:#22585cb8}.lesson-beat-dot.is-done{border-color:#4ade80;color:#4ade80}.lesson-stage-spacer{flex:1 1 85px;min-height:75px}.lesson-caps-slot{pointer-events:none;z-index:6;display:flex;justify-content:center;min-height:0}.lesson-desk{margin:0 auto;width:min(1080px,100%);padding:.62rem .95rem .7rem;background-color:#0d1418;background-image:linear-gradient(180deg,#0d14185c,#0a0f128a),url(/assets/world/ui_desk_ledge.webp);background-size:cover;border:2px solid rgba(214,184,122,.45);border-radius:22px 24px 20px 22px;display:flex;flex-direction:column;align-items:center;gap:.45rem}#ch-spirit-hands.lesson-desk{width:fit-content;max-width:min(1080px,100%)}.lesson-desk.is-victory{width:min(740px,100%)}.lesson-reading-well{width:100%;max-width:720px;padding:.48rem .95rem;border-radius:16px;background:#0b1115f0;border:1.5px solid rgba(123,224,214,.3);display:flex;flex-direction:column;align-items:center;text-align:center;gap:.24rem}.lesson-desk-divider{width:min(760px,92%);height:1px;background:linear-gradient(90deg,transparent,rgba(214,184,122,.34),transparent)}.prompt-source-slot{display:inline-flex;align-items:center;gap:.35rem;height:1.2rem;line-height:1.2rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-ui);font-size:.78rem;font-style:italic;font-weight:600;color:#b9b3a3;user-select:none;-webkit-user-select:none;pointer-events:none}.prompt-source-slot.is-empty{visibility:hidden}.prompt-source-slot.is-collapsed{display:none}.lesson-desk-kb{width:100%;min-height:196px;display:flex;align-items:center;justify-content:center}.lesson-desk-kb:has(.kb-row:nth-child(5)){min-height:226px}.victory-plaque{width:100%;text-align:center;padding:6px 8px .45rem;max-height:min(520px,calc(100dvh - 190px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y}.victory-banner-wrap{position:relative;width:min(460px,96%);margin:0 auto .2rem;display:grid;place-items:center}.victory-banner-img{width:100%;height:auto;display:block}.victory-banner-text{position:absolute;inset:10% 14%;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,rgba(10,16,20,.58) 0%,transparent 72%);text-shadow:0 2px 6px rgba(0,0,0,.95)}.lesson-crystals{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:center}.lesson-crystal{font-size:.92rem;color:#d6b87a73;margin:0 2px}.lesson-crystal.filled{color:#4ade80}.lesson-crystal.current{color:#f0e442}.camp-dock{margin:auto auto .25rem;padding:.6rem 1.05rem;display:flex;align-items:center;justify-content:space-between;gap:.85rem;flex-wrap:wrap;border-color:#d6b87a7a}.quest-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.6rem;margin-bottom:.85rem}.quest-card{padding:.7rem .88rem;border-radius:15px 18px 16px 14px;background:#10171beb;border:1.5px solid rgba(214,184,122,.25)}.grid-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:.95rem}.codex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:.75rem;margin-top:.75rem}.codex-card{padding:.85rem;border-radius:16px 20px 18px 15px;background:#10171beb;border:1.5px solid rgba(214,184,122,.26);display:flex;flex-direction:column;align-items:stretch;text-align:left;white-space:normal;min-height:44px;gap:.42rem;content-visibility:auto;contain-intrinsic-size:118px}.heatmap-wrap{display:flex;flex-direction:column;align-items:center;gap:.3rem;margin:.5rem 0}.hm-key{width:clamp(36px,4.4vw,48px);height:44px;border-radius:10px 12px 11px 10px;border:1.5px solid rgba(214,184,122,.34);display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:.92rem;font-weight:800}.finger-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:14px;border:2px solid var(--border-brass);background:#0e1519eb;padding:3px;flex-shrink:0}.finger-hand-img{width:100%;height:100%;object-fit:contain;display:block}.finger-hand-img.flip-x{transform:scaleX(-1)}.finger-hand-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.25rem;padding:.48rem .65rem;min-width:clamp(128px,12vw,168px);border-radius:12px;border:2px solid rgba(214,184,122,.3);background:#10181ce0;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease}.finger-hand-card.is-active{transform:translateY(-2px)}.finger-hand-card.is-emphasized{transform:translateY(-4px) scale(1.06)}.lead-surge-ring{padding:3px;border-radius:13px;flex-shrink:0}.lead-surge-ring.is-ready{box-shadow:0 0 14px #f0e4428c}.squad-pip{position:relative;min-height:44px;min-width:44px;padding:4px;border-radius:11px}.squad-pip img{width:28px;height:28px;border-radius:7px;display:block}.squad-pip.is-active{border-color:#7be0d6;box-shadow:0 0 10px #7be0d673}.squad-pip-adv{position:absolute;top:-5px;right:-4px;font-size:.72rem;color:#4ade80;text-shadow:0 1px 3px #000}.squad-pip-seal{position:absolute;bottom:-4px;right:-4px;font-size:.68rem;font-weight:800;background:#0d1316;color:#ff8a8a;padding:0 3px;border-radius:999px}.finger-hand-card .finger-hand-img{width:clamp(112px,10.8vw,152px);height:clamp(112px,10.8vw,152px)}.finger-hand-cap{font-size:.94rem;font-weight:800;letter-spacing:.04em}.combat-hud{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;padding:.5rem .9rem;pointer-events:none}.combat-header-rail{padding:.45rem .75rem .55rem;border-radius:20px;background-color:#0d1418e6;background-image:linear-gradient(180deg,#10181ce6,#0b1115f0),url(/assets/world/ui_scroll_frame.webp);background-size:cover;border:1.5px solid rgba(214,184,122,.34);box-shadow:0 10px 28px #00000073}.combat-top{display:grid;grid-template-columns:minmax(220px,260px) minmax(0,1fr) auto;align-items:start;gap:.65rem}.combat-left-card,.combat-right-card{padding:.25rem .35rem}.combat-center-col{display:flex;flex-direction:column;align-items:center;min-width:0;gap:.35rem}.target-banner{padding:.48rem 1.15rem;background-color:#0d1418;border:2px solid rgba(123,224,214,.68);border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:.24rem;min-width:268px}.target-banner.prose-wide{max-width:640px;width:100%;min-width:0}.target-banner.pulse-miss,.lesson-reading-well.pulse-miss{border-color:#ff7b59!important;box-shadow:0 0 18px #ff7b5973}.word-glyphs{font-family:var(--font-mono);font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0;font-size:clamp(2.15rem,3.8vw,3.05rem);font-weight:800;letter-spacing:.08em;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.04rem}.word-glyphs.prose-text{display:block;text-align:center;line-height:1.45;white-space:normal;word-break:normal;overflow-wrap:break-word;font-size:clamp(1.25rem,2.2vw,1.6rem);letter-spacing:.02em}.glyph-done{color:#4ade80;white-space:pre-wrap}.glyph-current{padding:0;border-radius:6px;background:#ffffff29;box-shadow:inset 0 -2px 0 currentColor;white-space:pre-wrap}.glyph-slip{color:#ff8a8a;text-decoration:underline wavy #ff8a8a;background:#ff8a8a2e;border-radius:6px;padding:0 .18rem}.glyph-todo{color:#f8f4e8;white-space:pre-wrap}.cutin-banner{position:relative;margin:0 auto;width:min(460px,94vw);display:grid;place-items:center;animation:slideBanner .26s ease;filter:drop-shadow(0 0 18px var(--cutin-accent, #f0e442)) drop-shadow(0 12px 24px rgba(0,0,0,.72))}.cutin-ribbon-bg{width:100%;height:auto;display:block}.cutin-banner-inner{position:absolute;inset:12% 13%;display:flex;align-items:center;justify-content:center;gap:.75rem;text-shadow:0 2px 6px rgba(0,0,0,.94)}@keyframes slideBanner{0%{transform:translate(-36px);opacity:0}to{transform:translate(0);opacity:1}}.spirit-hands{position:relative;margin:0 auto;padding:.55rem .95rem;transition:opacity .2s ease,transform .2s ease;max-width:100%;overflow:hidden}.spirit-hands.hidden-collapsed{display:none}.spirit-hands-shell{display:flex;align-items:center;justify-content:center;gap:.9rem}.spirit-hands-kb{display:flex;flex-direction:column;align-items:flex-start;gap:.24rem;max-width:100%;overflow-x:auto}.kb-row{position:relative;z-index:1;display:flex;gap:clamp(3px,.35vw,5px)}.kb-row.stagger-0{padding-left:clamp(18px,2.2vw,30px)}.kb-row.stagger-1{padding-left:clamp(28px,3.3vw,46px)}.kb-row.stagger-2{padding-left:0}.kb-row.stagger-3{width:100%;justify-content:center}.kb-key{position:relative;width:clamp(30px,3.4vw,44px);height:39px;border-radius:10px 12px 11px 10px;background:linear-gradient(175deg,#1f2a2ff5,#11181cfa);border:2px solid rgba(182,198,194,.38);box-shadow:inset 0 -3px #070a0ca6;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:clamp(.9rem,1.2vw,1.04rem);font-weight:800;line-height:1}.kb-key.home-anchor{box-shadow:inset 0 -3px #f8f4e84d}.kb-key.home-bump{padding-top:3px;padding-bottom:5px;justify-content:flex-start}.kb-key.home-bump:after{content:"";position:absolute;bottom:2px;left:50%;transform:translate(-50%);width:14px;height:2.5px;border-radius:999px;background:#fffdf4;box-shadow:0 0 4px #f0e442;pointer-events:none}.kb-key.kb-wrong{border-color:#ff7b59!important;color:#fffdf4!important;background:#ff7b5961!important;box-shadow:0 0 14px #ff7b59b8!important}.kb-blind-wrap{padding:.5rem 1.15rem!important;margin:auto}.kb-blind-banner{display:flex;align-items:center;justify-content:center;gap:.85rem;flex-wrap:wrap;font-size:.98rem;color:#7be0d6}.kb-key.kb-untaught{background:#121a1e8c;border-color:#b6c6c229!important;box-shadow:inset 0 -2px #070a0c66}.kb-key.wide{width:clamp(58px,6.2vw,80px);font-size:clamp(.76rem,.95vw,.86rem);white-space:nowrap}.kb-key.space{width:clamp(148px,21vw,224px)}.kb-key.active-target{transform:scale(1.12);box-shadow:0 0 18px currentColor;background:#ffffff1f}.kb-shape{font-size:.82rem;margin-top:2px}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalPopIn{0%{opacity:0;transform:translateY(10px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toastIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal-backdrop{position:fixed;inset:0;z-index:40;background:radial-gradient(circle at 50% 42%,#101a1ec7,#060a0deb);display:flex;align-items:center;justify-content:center;padding:calc(1rem + env(safe-area-inset-top)) calc(1rem + env(safe-area-inset-right)) calc(1rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left));animation:modalFadeIn .15s ease}.modal-card{position:relative;width:min(640px,100%);max-height:calc(90dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;overflow:hidden;display:flex;flex-direction:column;background-color:#121b1f;background-image:linear-gradient(168deg,#182428f5,#0d1418fa),url(/assets/world/ui_scroll_frame.webp);background-size:cover;border:1.5px solid rgba(214,184,122,.48);border-radius:22px 26px 24px 20px;box-shadow:inset 0 1px #fff5d629,0 24px 60px #000000ad,var(--modal-glow, 0 0 0 transparent);animation:modalPopIn .18s cubic-bezier(.22,1,.36,1)}.modal-card button{white-space:normal;text-align:center}.modal-card:before{content:"";position:absolute;top:0;left:16%;right:16%;height:2px;background:linear-gradient(90deg,transparent,var(--modal-accent, var(--brass-accent)),transparent);opacity:.75;pointer-events:none}.modal-card--compact{width:min(400px,100%)}.modal-card--wide{width:min(740px,100%)}.modal-card--gold{--modal-accent: #f0e442;border-color:#f0e4428f}.modal-card--coral{--modal-accent: #ff7b59;border-color:#ff7b598f}.modal-card--teal{--modal-accent: #7be0d6;border-color:#7be0d68f}.modal-header{padding:.88rem 1.2rem .76rem;border-bottom:1px solid rgba(214,184,122,.24);background:linear-gradient(180deg,rgba(214,184,122,.08),transparent);display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-shrink:0}.modal-title-group{display:flex;align-items:center;gap:.72rem;min-width:0}.modal-icon-medallion{width:40px;height:40px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#0c1317eb;border:1.5px solid rgba(214,184,122,.45);color:var(--modal-accent, var(--brass-accent));flex-shrink:0;box-shadow:inset 0 1px #fff5d624}.modal-kicker{font-size:.76rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--modal-accent, var(--brass-accent));line-height:1.15;margin-bottom:.1rem}.modal-title{margin:0;font-size:1.2rem;font-weight:800;color:var(--text-primary);line-height:1.2}.modal-close-btn{min-width:44px;min-height:44px;padding:0;border-radius:12px;background:#10181ceb;background-image:none;border:1.5px solid rgba(214,184,122,.34);color:var(--text-muted);box-shadow:none;flex-shrink:0}.modal-close-btn:hover:not(:disabled){color:var(--text-primary);border-color:var(--brass-accent);background:#1c282df2;box-shadow:none}.modal-body{padding:1rem 1.2rem;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;flex:1;min-height:0}.modal-body--center{text-align:center}.modal-footer{padding:.78rem 1.2rem 1rem;border-top:1px solid rgba(214,184,122,.2);background:#0a10148c;display:flex;align-items:center;justify-content:flex-end;gap:.55rem;flex-wrap:wrap;flex-shrink:0}.modal-footer--split{justify-content:space-between}.modal-footer--center{justify-content:center}.craft-input,.craft-select{width:100%;min-height:44px;padding:.48rem .72rem;border-radius:12px;background:#0b1115f5;color:var(--text-primary);border:1.5px solid rgba(214,184,122,.34);font-family:inherit;font-size:.98rem;transition:border-color .14s ease,box-shadow .14s ease}.craft-input:focus,.craft-select:focus{outline:2px solid transparent;outline-offset:2px;border-color:var(--cyan-accent);box-shadow:0 0 0 2px #7be0d63d}.craft-inline-label{display:inline-flex;align-items:center;gap:.35rem}.caps-alert-pill{display:inline-flex;align-items:center;gap:.35rem;font-size:.9rem;font-weight:800;color:#fffdf4;background:#7d251be0;border:1.5px solid #f59d78;border-radius:999px;padding:.22rem .68rem}.pin-dots{display:flex;justify-content:center;align-items:center;gap:.72rem;margin-bottom:.8rem}.pin-dot{width:14px;height:14px;border-radius:50%;border:2px solid rgba(214,184,122,.55);background:#0c1216d9;transition:background .12s ease,border-color .12s ease,transform .12s ease}.pin-dot--filled{background:var(--gold-accent);border-color:#fffdf4;transform:scale(1.1)}.inline-cost{display:inline-flex;align-items:center;gap:.28rem;font-weight:800}.inline-cost img{width:16px;height:16px;object-fit:contain;vertical-align:middle}.craft-checkbox{width:20px;height:20px;accent-color:#7be0d6;cursor:pointer;flex-shrink:0}.craft-toggle-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem;min-height:46px;padding:.45rem .75rem;border-radius:12px;background:#0c1317bd;border:1px solid rgba(214,184,122,.22);cursor:pointer}.craft-field-label{display:block;font-size:.88rem;font-weight:700;color:var(--text-muted);margin-bottom:.28rem}.craft-tabs{display:inline-flex;gap:.38rem;padding:.28rem;border-radius:15px;background:#0a1014c7;border:1px solid rgba(214,184,122,.24)}.fork-choice-btn{display:flex;flex-direction:column;align-items:flex-start;text-align:left;white-space:normal;width:100%;padding:.85rem 1rem;gap:.22rem}.holo-card{background:linear-gradient(135deg,#141d21f7,#202e34f0,#141d21f7)}.pin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;max-width:280px;margin:.75rem auto}@keyframes vaultShake{0%,to{transform:rotate(0) scale(1)}25%{transform:rotate(-6deg) scale(1.06)}75%{transform:rotate(6deg) scale(1.06)}}.vault-shaking{animation:vaultShake .22s infinite}.toast-stack{position:fixed;top:calc(14px + env(safe-area-inset-top));bottom:auto;left:50%;transform:translate(-50%);z-index:80;display:flex;flex-direction:column;align-items:center;gap:.45rem;pointer-events:none;width:max-content;max-width:94vw}.toast-pill{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;max-width:min(92vw,480px);text-align:center;background-color:#10181cf7;background-image:linear-gradient(165deg,#1c282cf0,#0e1518fa),url(/assets/world/ui_scroll_frame.webp);background-size:cover;color:#f8f4e8;border:1.5px solid rgba(214,184,122,.36);border-left:4px solid var(--toast-accent, #7be0d6);border-radius:14px 18px 16px 14px;padding:.58rem 1rem;font-size:.98rem;font-weight:700;box-shadow:inset 0 1px #fff5d61f,0 12px 30px #0000008c;transition:opacity .2s ease;animation:toastIn .16s ease}.hp-bar-track{height:11px;border-radius:999px;background:#ffffff24;overflow:hidden}.hp-bar-fill{height:100%;transition:width .18s ease}.muted{color:var(--text-muted)}body.low-stim *,body.low-stim *:before,body.low-stim *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}body.low-stim .kb-key.active-target{transform:none;box-shadow:none;outline:2px solid currentColor}body.low-stim .panel{backdrop-filter:none;-webkit-backdrop-filter:none}body.low-stim button:hover:not(:disabled),body.low-stim .btn-play-plaque:hover:not(:disabled),body.low-stim .campfire-anchor:hover .campfire-plaque,body.low-stim .campfire-card-btn:focus-visible .campfire-plaque,body.low-stim .intro-key-chip.is-active,body.low-stim .finger-hand-card.is-active,body.low-stim .finger-hand-card.is-emphasized{transform:none!important;filter:none!important}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.kb-key.active-target{transform:none;box-shadow:none;outline:2px solid currentColor}.panel{backdrop-filter:none;-webkit-backdrop-filter:none}button:hover:not(:disabled),.btn-play-plaque:hover:not(:disabled),.campfire-anchor:hover .campfire-plaque,.campfire-card-btn:focus-visible .campfire-plaque,.intro-key-chip.is-active,.finger-hand-card.is-active,.finger-hand-card.is-emphasized{transform:none!important;filter:none!important}}@media(max-width:1080px){.camp-stage-wrap{align-items:flex-end;justify-content:center}.camp-craft-tray,.field-journal-drawer{width:100%;max-height:min(52dvh,100%)}}@media(max-width:1060px){.combat-top{grid-template-columns:minmax(215px,245px) minmax(0,1fr) auto;gap:.45rem}.target-banner{min-width:0;padding:.42rem .85rem}.finger-hand-card{min-width:108px}.finger-hand-card .finger-hand-img{width:96px;height:96px}}@media(max-width:900px){.finger-hand-card{display:none}}@media(max-width:780px){.combat-top{grid-template-columns:1fr}}@media(max-width:640px){.inline-finger-badge-hide-short{display:none}}@media(max-height:760px){.kb-key{height:34px}.spirit-hands{padding:.35rem .65rem}.finger-hand-card{min-width:108px}.finger-hand-card .finger-hand-img{width:96px;height:96px}.lesson-stage-spacer{min-height:44px}.lesson-desk{padding:.45rem .78rem;gap:.3rem}.lesson-desk-kb{min-height:172px}.lesson-desk-kb:has(.kb-row:nth-child(5)){min-height:202px}.lesson-reading-well{padding:.35rem .75rem;gap:.16rem}}.prologue-shell{width:100%;height:100%;overflow-y:auto;display:flex;flex-direction:column;justify-content:space-between;padding:.75rem 1.05rem;gap:.55rem;pointer-events:none}.prologue-top-bar{display:flex;justify-content:space-between;align-items:center;gap:.65rem;flex-wrap:wrap;padding:.52rem .9rem;background-color:#0e1519e8}.prologue-main-split{flex:1;min-height:0;display:flex;align-items:stretch;justify-content:space-between;gap:.85rem}.prologue-clearing-window{flex:1;min-width:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:.45rem;pointer-events:none}.prologue-live-plaque{display:flex;flex-direction:column;align-items:center;padding:.45rem 1.05rem;margin-top:0;min-width:0;cursor:default}.prologue-folio{width:clamp(360px,45vw,520px);max-width:100%;display:flex;flex-direction:column;min-height:0;padding:.75rem .95rem;border-radius:18px;gap:.45rem}.prologue-folio-scroll{flex:1;min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column;gap:.48rem;padding:6px}.starter-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.42rem;padding:.45rem .6rem;background-color:#0e1519e8;flex-shrink:0}.starter-codex-tile{display:flex;flex-direction:row;align-items:center;text-align:left;gap:.52rem;padding:.36rem .52rem;min-height:44px;border-radius:13px;background:#10181be0;border:1.5px solid rgba(214,184,122,.25);transition:transform .12s ease,border-color .12s ease,background .12s ease}.starter-codex-tile img{width:40px;height:40px;border-radius:10px;object-fit:contain;background:var(--bg-void);flex-shrink:0}.starter-codex-tile.is-selected{background:#183438f0;box-shadow:0 0 18px #7be0d642}.starter-codex-tile-name{font-size:.96rem;font-weight:800;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.starter-codex-tile-fam{font-size:.86rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(min-width:921px){.prologue-folio .dossier-hero-img{display:none}}.dossier-head{display:flex;align-items:center;gap:.65rem}.dossier-hero-img{width:68px;height:68px;border-radius:13px;object-fit:contain;background:var(--bg-void);border:2px solid #7be0d6;flex-shrink:0}.dossier-stats{display:grid;gap:.28rem}.dossier-stat-row{display:flex;align-items:center;gap:.5rem}.dossier-stat-track{flex:1;height:8px;border-radius:999px;background:#d6b87a33;overflow:hidden}.dossier-stat-fill{height:100%;border-radius:999px}.dossier-skills{display:grid;gap:.45rem}.dossier-skill-box{padding:.48rem .65rem;border-radius:11px;background:#121b1eeb;border:1px solid rgba(214,184,122,.28)}.prologue-cta-row{display:flex;flex-direction:column;align-items:stretch;gap:.32rem;padding-top:.15rem;flex-shrink:0}.prologue-cta-row button,.starter-codex-tile,.tray-codex-grid button,#btn-hero-play,#btn-hero-start,#btn-hub-settings,#gm-capstone,#cb-launch,#vs-open-vault,#lv-done-evolve,#btn-tricky-keys,#btn-pv-practice,#btn-hero-evolve,#btn-signature{white-space:normal}.tray-codex-grid button.codex-card{text-align:left}@media(max-width:920px){.prologue-clearing-window{display:none}.prologue-folio{width:100%}}.keybound-emblem-sm{width:44px;height:44px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 2px 8px rgba(0,0,0,.6))}.prologue-brand-kicker{font-size:.72rem;font-weight:900;letter-spacing:.14em;color:var(--brass-accent);text-transform:uppercase}.hub-bar-art{background-color:#0b1114f0;background-image:linear-gradient(180deg,#10191df0,#0a1013f5);border-radius:0;border:10px solid transparent;border-image-source:url(/assets/world/ui_hud_bar_frame.webp);border-image-slice:34 64 34 64;border-image-width:10px 22px;border-image-repeat:round stretch}.hub-top-bar{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;padding:.48rem .9rem}.hub-bottom-dock{padding:.52rem .9rem}.btn-play-plaque{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:50px;padding:.45rem 1.15rem;border-radius:0;white-space:normal;text-align:center;color:#fffdf4;font-weight:800;background-color:#133539;background-image:linear-gradient(180deg,#14383d85,#0b2023a3);border:14px solid transparent;border-image-source:url(/assets/world/ui_play_plaque.webp);border-image-slice:44 82 44 82 fill;border-image-width:14px 26px;border-image-repeat:stretch;box-shadow:0 6px 18px #00000073;text-shadow:0 1px 4px rgba(0,0,0,.85)}.btn-play-plaque:hover:not(:disabled){filter:brightness(1.09);transform:translateY(-1px);border-color:transparent;box-shadow:0 8px 22px #f2cc7638,0 6px 18px #00000085}.btn-play-plaque:focus-visible{outline:3px solid var(--brass-accent);outline-offset:2px}.journal-surface{background-color:#0c1417f2;background-image:linear-gradient(168deg,#101a1ef2,#0a1013f7);border-radius:0;border:14px solid transparent;border-image-source:url(/assets/world/ui_journal_frame.webp);border-image-slice:135 125 135 125;border-image-width:14px;border-image-repeat:round}.field-journal-drawer{width:clamp(410px,46vw,540px);max-width:100%;display:flex;flex-direction:column;min-height:0;max-height:100%;padding:0;overflow:hidden;border-radius:0}.journal-header{padding:.72rem .95rem .58rem;border-bottom:1px solid rgba(214,184,122,.24);background:linear-gradient(180deg,rgba(214,184,122,.09),transparent);display:flex;align-items:center;justify-content:space-between;gap:.45rem;flex-shrink:0}.journal-tablist{display:flex;gap:.35rem;flex-wrap:wrap}.journal-body{flex:1;min-height:0;overflow-y:auto;touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:.72rem .95rem .9rem}.pedestal-card{background-color:#0e1519f0;background-image:linear-gradient(175deg,#162125f0,#0c1215f7);border:1.5px solid rgba(214,184,122,.34);border-radius:12px}.heatmap-wrap{max-width:100%;overflow-x:auto}.field-journal-drawer .hm-key{width:clamp(28px,3vw,38px);height:36px;font-size:.72rem}@media(max-width:520px){.journal-body .hm-key{width:clamp(24px,7.2vw,34px);height:32px;font-size:.64rem}}.title-gate-shell{position:relative;width:100%;height:100%;overflow-y:auto;display:flex;align-items:flex-start;justify-content:center;padding:clamp(1rem,3.8vh,2.2rem) 1.25rem 1.5rem;pointer-events:none}.title-top-actions{position:absolute;top:.85rem;right:1rem;display:flex;gap:.45rem;align-items:center;z-index:4}.title-gate-card{width:min(460px,100%);padding:.95rem 1.2rem;border-radius:0;display:flex;flex-direction:column;align-items:center;text-align:center}.title-emblem-lg{width:58px;height:58px;flex-shrink:0;object-fit:contain;filter:drop-shadow(0 4px 16px rgba(0,0,0,.7))}.title-welcome-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;width:100%;margin:0 0 .65rem;padding:.38rem .5rem;border-radius:8px;background:#101a1ec7;border:1px solid rgba(214,184,122,.28);font-size:.76rem;font-weight:700;color:var(--text-primary)}.title-welcome-step{display:flex;flex-direction:column;align-items:center;gap:.14rem;line-height:1.2}.title-welcome-num{color:var(--brass-accent);font-size:.72rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.prologue-folio--compact{align-self:center;justify-content:space-between;padding:.9rem 1.05rem;gap:.85rem}.quiet-link-btn{background:transparent;background-image:none;border:0;border-radius:8px;box-shadow:none;color:var(--brass-accent);font-size:.94rem;font-weight:700;padding:.45rem .75rem;min-height:44px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.quiet-link-btn:hover:not(:disabled){color:#fffdf4;background:#d6b87a14;border-color:transparent;box-shadow:none;transform:none}.quiet-link-btn:focus-visible{outline:2px solid var(--brass-accent);outline-offset:2px;border-radius:8px}
