:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e7decb;background:#08090e;font-synthesis:none;--gold:#c7a96b;--muted:#aaa08e;--red:#a9432c;--line:#746452;--ink:#110f17}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{display:grid;place-items:center;background:#08090e}#app{width:100%;max-width:500px;height:100vh;height:100dvh;position:relative;overflow:hidden;background:#100f17;isolation:isolate}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;border:0;cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible{outline:2px solid #e1bb73;outline-offset:3px}button:disabled{cursor:default;opacity:.4}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,Times New Roman,serif;font-weight:400}.game-screen,.story-screen,.map-world,.encounter,.result-screen{position:absolute;inset:0;overflow:hidden}.game-screen{background:radial-gradient(ellipse at 65% 22%,#2c2029 0,transparent 60%),#100f17}.eyebrow{font-size:9px;color:var(--gold);letter-spacing:2.5px;line-height:1.6}.primary{background:#a9462f;color:#f3e3ce;border:1px solid #c56244;min-height:48px;border-radius:12px;padding:12px 16px;box-shadow:0 6px 24px #b74f302d;text-align:center;font-size:14px;letter-spacing:.2px}.primary:hover:not(:disabled){background:#b95036}.secondary{background:#2a252e;border:1px solid #655761;border-radius:9px;color:#e1d8c9;min-height:44px}.game-hud{position:absolute;left:20px;right:20px;top:max(19px,env(safe-area-inset-top));display:flex;justify-content:space-between;font-size:11px;line-height:18px;color:#c7bda9;z-index:8;pointer-events:none}.game-hud b{font-weight:400}.game-hud i{font-style:normal;margin-left:9px;color:#ded2b7}.game-menu-button{width:44px;height:44px;min-width:44px;display:grid;place-items:center;background:transparent;font-family:Georgia,serif;font-size:24px;color:#b3a48e;letter-spacing:2px;line-height:1}.intro-art{position:absolute;inset:0 0 24%;overflow:hidden;background:#17212d}.intro-art img{width:100%;height:100%;object-fit:cover;object-position:53% 26%;opacity:.85;filter:brightness(.75) saturate(.7);animation:print-breathe 18s ease-in-out infinite alternate}.intro-shade{position:absolute;inset:0;background:linear-gradient(0deg,#10121d,#10131f 24%,#111521e8 36%,#131c2d30 70%,#0a0d1c50),radial-gradient(ellipse at 50% 30%,transparent 20%,#080b17b3 100%)}.intro-fog{position:absolute;inset:30% -25% 18%;background:radial-gradient(ellipse at 50% 70%,#34445f44,transparent 65%);filter:blur(20px);animation:mist-drift 15s ease-in-out infinite alternate;pointer-events:none}.storytelling{position:absolute;top:55%;left:22px;right:22px;z-index:3}.storytelling h1{font-size:clamp(27px,8vw,35px);line-height:1.15;margin:6px 0 12px;color:#f0e7d6;letter-spacing:-.5px}.storytelling .eyebrow span{margin:0 8px}.story-copy{font-family:Georgia,serif;font-style:italic;font-size:clamp(12px,3.5vw,15px);line-height:1.7;color:#d7cebd;min-height:96px;max-width:410px}.intro-controls{position:absolute;bottom:max(4.5%,env(safe-area-inset-bottom));left:22px;right:22px;z-index:4}.intro-controls .primary{width:100%;height:58px;font-size:16px}.inspiration{display:block;min-height:44px;padding:14px 0 10px;font-size:9px;color:#a99e8d;text-decoration:none;line-height:1.5}.inspiration em{font-family:Georgia,serif}.map-world{background:radial-gradient(ellipse at 70% 17%,#302a36 0,#211b29 44%,#121017,#0c0c11)}.world-shade{position:absolute;inset:0;background:radial-gradient(ellipse at 34% 80%,#97634412,transparent 40%)}.trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}.trail path{fill:none;stroke:#96784a;stroke-width:8px;stroke-dasharray:1 15;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.75}.trail .hidden-trail{opacity:.1;stroke:#b6a788;stroke-width:4px}.trail .back-trail{opacity:.65}.world-fog{position:absolute;inset:0 0 30%;pointer-events:none;z-index:2;overflow:hidden;mask-image:linear-gradient(#000 45%,#000e 70%,transparent 100%);-webkit-mask-image:linear-gradient(#000 45%,#000e 70%,transparent 100%)}.fog-bank{position:absolute;inset:-12% -25%;filter:blur(17px);background:radial-gradient(ellipse at 25% 25%,#35313df2 0,#302b38e8 35%,transparent 68%),radial-gradient(ellipse at 80% 66%,#49404f99 0,transparent 55%);animation:fog-drift 16s ease-in-out infinite alternate}.fog-two{transform:scaleX(-1);opacity:.7;animation-delay:-8s;animation-direction:alternate-reverse;inset:20% -40% -20%;background:radial-gradient(ellipse,#52495888 0,transparent 65%)}.map-stage{position:absolute;inset:0}.map-stage canvas{display:block}.fog-whisper{position:absolute;top:22%;left:0;right:0;text-align:center;font:italic 14px Georgia,serif;color:#aaa2ae;opacity:.68;z-index:3;pointer-events:none}.map-caption{position:absolute;top:39.5%;left:25px;right:25px;text-align:center;z-index:4;pointer-events:none;color:#bdb1a4}.map-caption h1{font-size:22px;line-height:1.1;margin-bottom:8px;color:#dfcfb9}.map-caption p{font:italic 12px/1.6 Georgia,serif;max-width:350px;margin:auto;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 5px #000}.map-caption h1:empty{display:none}.path-stop{position:absolute;left:var(--x);top:var(--y);width:0;height:0;z-index:5}.map-node{position:absolute;width:54px;height:54px;border-radius:50%;border:2px solid #897c62;background:#26222cd9;color:#d9cebd;display:grid;place-items:center;transform:translate(-50%,-50%);font-family:Georgia,serif;font-size:22px;box-shadow:0 0 0 4px #12101720}.map-node:disabled{opacity:.4}.map-node.unknown{border-color:#b2a58b77;background:#25232ac9}.map-node.revealed{border-color:#bd9f68;box-shadow:0 0 18px #b28d3f20}.sensory-hint{position:absolute;left:-64px;top:-53px;width:128px;text-align:center;font:italic 10px/1.5 Georgia,serif;color:#bdb2a3;white-space:normal;text-shadow:0 2px 6px #000;pointer-events:none}.path-stop:nth-of-type(2n) .sensory-hint{top:34px}.current-aura{position:absolute;left:-57px;top:-57px;width:114px;height:114px;border:8px solid #8f6438;border-radius:50%;box-shadow:0 0 30px #d4913522,inset 0 0 25px #e6a03f11;opacity:.8;animation:candle-aura 4s ease-in-out infinite}.map-node.current-node{height:70px;width:70px;background:#a9462e;border:3px solid #e3c786;color:#fff1c7;box-shadow:0 0 18px #c975332b;font-size:24px;opacity:1}.current-node:disabled{cursor:default}.current-hint{position:absolute;top:57px;left:-70px;width:140px;text-align:center;color:#b29b78;font-size:7px;letter-spacing:1px}.previous-node{left:var(--x);top:var(--y);width:49px;height:49px;font-size:18px;background:#3d3528d9;border-color:#9d895b}.previous-node small{position:absolute;top:47px;width:70px;left:-10px;font:7px -apple-system,sans-serif;color:#8d7d64}.map-bottom{position:absolute;left:17px;right:17px;bottom:max(1.8%,env(safe-area-inset-bottom));height:12.3%;z-index:7}.map-utility{height:25px;display:flex;justify-content:space-between;align-items:center;font-size:7px;letter-spacing:.2px;color:#a99d87}.map-utility .game-menu-button{height:25px}.map-party{display:flex;gap:7px;height:calc(100% - 25px)}.crew-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;height:100%;align-items:stretch}.crew-card{height:100%;min-width:0;position:relative;border:2px solid #bca06a;border-radius:9px;background:color-mix(in srgb,var(--crew-color),#17161a 65%);overflow:hidden;padding:0;text-align:left;transition:transform .25s,box-shadow .25s,opacity .25s;box-shadow:0 4px 10px #0005;isolation:isolate}.crew-card .portrait{position:absolute;inset:0;display:block;overflow:hidden}.crew-card .portrait:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 20%,#0a0b0f08 40%,#0a0b0fd9 86%)}.crew-card .portrait img{width:100%;height:100%;object-fit:cover;object-position:50% 0%;opacity:.85;filter:brightness(.8) saturate(.8)}.row-label{position:absolute;left:5px;top:6px;font-size:6px;letter-spacing:.4px;color:#dac49b;z-index:3}.crew-info{position:absolute;left:5px;right:5px;bottom:5px;z-index:4}.crew-name{display:block;font-size:9px;font-weight:500;line-height:1.4;color:#e7decb}.role-name{display:block;font-size:7px;font-weight:400;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crew-health{display:block;font-size:7px;color:#bdb19b;margin-top:4px}.health-track{height:3px;width:100%;background:#26232c;display:block;margin-top:3px;overflow:hidden}.health-track i{display:block;height:100%;background:#bd5137;transition:width .35s ease-out}.charges{display:block;font-size:6px;letter-spacing:1px;color:#ddbc7b;line-height:1.2;margin-top:4px}.crew-card.active{transform:translateY(-13px);border-color:#f1d18d;box-shadow:0 0 0 2px #c7a46166,0 0 22px #d8b85b55,0 6px 15px #0008}.crew-card.active .portrait img{filter:brightness(1) saturate(.9)}.crew-card.spent{opacity:.52;filter:saturate(.5)}.crew-card.downed{filter:grayscale(1);opacity:.42}.spent-mark{position:absolute;top:22px;right:7px;z-index:4;color:#ceb97e;font-size:12px}.crew-card:disabled{opacity:1}.crew-card.spent:disabled{opacity:.52}.crew-card.downed:disabled{opacity:.4}.mini-crew{gap:6px}.mini-crew .crew-card{border-radius:7px;border-width:2px}.mini-crew .crew-card.active{transform:translateY(-4px);box-shadow:0 0 12px #cfb46444}.mini-crew .crew-info{bottom:4px;left:3px;right:3px}.mini-crew .crew-name{font-size:6px}.mini-crew .role-name,.mini-crew .crew-health,.mini-crew .charges,.mini-crew .row-label{display:none}.mini-crew .health-track{height:2px}.scout-button{min-width:44px;width:44px;background:#17151c;border:1px solid #6f626e;border-radius:7px;font-size:8px;color:#bbac94}.encounter{background:radial-gradient(ellipse at 63% 23%,#38262d 0,#1a151e 45%,#0e0d14 78%)}.monster-art{position:absolute;top:7%;left:50%;transform:translate(-50%);height:37%;width:calc(100% - 36px);max-width:385px;isolation:isolate;display:flex;align-items:center;justify-content:center}.living-cutout{width:100%;height:100%;max-width:100%;object-fit:contain;position:relative;z-index:3;transform-origin:50% 65%;filter:drop-shadow(6px 12px 10px #0007);animation:spirit-float 6s ease-in-out infinite}.spirit-lantern-ghost .living-cutout{animation:lantern-sway 5.5s ease-in-out infinite;transform-origin:50% 10%}.spirit-yurei .living-cutout{animation:ghost-peer 7s ease-in-out infinite}.stage-paper{position:absolute;inset:0 3%;border-radius:48%;background:radial-gradient(ellipse,#9b64411a 0,#70534210 50%,transparent 73%);z-index:0}.spirit-halo{position:absolute;inset:4% 6%;border-radius:50%;border:1px solid #b7835122;box-shadow:0 0 60px #ad6e3612;z-index:0}.spirit-mist{position:absolute;inset:45% -10% -4%;background:radial-gradient(ellipse at 50% 85%,#989a8555,transparent 64%);filter:blur(15px);animation:mist-drift 9s ease-in-out infinite alternate;z-index:2}.combat-stage{position:absolute;inset:0;pointer-events:none;z-index:0}.monster-caption{position:absolute;top:44.5%;left:20px;right:20px;text-align:center;height:6.3%}.monster-caption h1{font-size:clamp(17px,4.8vw,24px);line-height:1.25;color:#e7dece;margin:0 0 7px}.monster-health{height:6px;border-radius:4px;background:#3d2d32;overflow:hidden;width:100%}.monster-health i{display:block;height:100%;background:#be5138;border-radius:4px;transition:width .35s ease-out}.monster-hp{display:block;font-size:8px;color:#b2a18c;letter-spacing:.2px;margin-top:6px}.telegraph{position:absolute;top:51.8%;left:15px;right:15px;height:4.5%;min-height:32px;border-radius:20px;border:1px solid #954b3b;background:#602d2566;color:#e4c3a5;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 10px;font-size:10px;line-height:1.3;overflow:hidden}.telegraph span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.telegraph small{font-size:8px;white-space:nowrap;color:#c5a88e}.dice-tray{position:absolute;top:57.5%;left:17px;right:17px;height:11.2%;min-height:75px}.resolution-progress{position:absolute;left:0;right:0;top:-5px;height:1px;background:#7c624e22}.resolution-progress i{display:block;height:100%;width:0;background:#c49352;transition:width .3s}.roll-title{font-size:8px;letter-spacing:.3px;color:#aa9a82;position:absolute;left:0;top:0;right:38px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:13px}.dice-row{position:absolute;inset:15px 0 0;display:flex;align-items:center;gap:12px}.dice-visual{width:43%;height:100%;display:flex;justify-content:center;align-items:center;gap:3px;perspective:500px;flex-shrink:0;overflow:visible}.physical-die{width:58px;height:65px;position:relative;flex-shrink:1;filter:drop-shadow(3px 6px 5px #0005);transform:rotate(calc(-9deg + var(--die-index)*9deg));transform-origin:50% 60%;min-width:0;max-height:100%}.physical-die svg{width:100%;height:100%;max-height:70px;overflow:visible}.physical-die.d20{width:72px;height:76px}.physical-die .die-shape>path:first-child,.physical-die .die-shape>rect{fill:#eddbaf;stroke:#cbb77d;stroke-width:1.4}.physical-die .die-shape .facet{stroke:#b69b624a;fill:none;stroke-width:.8}.physical-die .die-face text{font-family:Georgia,serif;fill:#812e23;font-size:27px;font-weight:600;paint-order:stroke;stroke:#eddbaf;stroke-width:5px;stroke-linejoin:round}.physical-die .die-face circle{fill:#8e3d2b}.die-type{position:absolute;bottom:-5px;left:0;right:0;font-size:5px;letter-spacing:.7px;color:#a9977d;text-align:center}.physical-die.discarded{opacity:.25;filter:grayscale(.8)}.rolling .physical-die{animation:die-throw .78s cubic-bezier(.22,.68,.4,1) both;animation-delay:calc(var(--die-index)*30ms)}.rolling .physical-die:nth-child(2n){animation-name:die-throw-reverse}.settled .physical-die{animation:die-land .24s ease-out both}.roll-readout{flex:1;min-width:0;padding-right:0}.roll-outcome{font-size:10px;line-height:1.4;letter-spacing:.6px;color:#ddbb72;font-weight:500;display:block}.roll-outcome[data-outcome=miss]{color:#b2a8a1}.roll-outcome[data-outcome=heal]{color:#a0bd8d}.roll-outcome[data-outcome=critical]{color:#ffd582;text-shadow:0 0 10px #e5a94c}.roll-equation{font-size:10px;line-height:1.5;color:#c4b6a3;margin-top:3px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.history-button{position:absolute;right:0;top:-13px;width:44px;height:44px;background:transparent;color:#aa9b80;font-size:20px}.turn-actions{position:absolute;top:69.1%;left:15px;right:15px;height:6.2%;min-height:44px;z-index:6}.combat-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:100%;gap:6px}.combat-buttons button{min-height:44px;padding:5px 3px;font-size:10px;line-height:1.2;border-radius:9px}.combat-buttons small{display:block;font-size:8px;line-height:1.2;color:#d7b977;margin-top:3px;letter-spacing:1px}.turn-actions>.primary{width:100%;height:100%;font-size:14px}.combat-party{position:absolute;left:12px;right:12px;bottom:max(2.3%,env(safe-area-inset-bottom));height:18.2%;z-index:7}.party-caption{position:absolute;left:0;right:0;top:-29px;height:24px;display:flex;align-items:center;justify-content:center;gap:0;font-size:7px;color:#b49b72;letter-spacing:.5px}.party-caption .game-menu-button{position:absolute;right:-2px;top:-13px}.encounter-curtain{display:none}.encounter-arriving .encounter-curtain{display:grid;position:absolute;inset:0;background:#15141d;z-index:12;place-items:center;pointer-events:none;animation:curtain-open .9s ease-out both}.encounter-curtain span{font-size:8px;letter-spacing:4px;color:#cfb27e;animation:curtain-words .8s both}.phase-2 .spirit-halo{border-color:#b04e3d55;box-shadow:0 0 50px #ae433333;animation:phase-pulse 2s ease-in-out infinite}.phase-2 .living-cutout{filter:drop-shadow(0 0 15px #a6453277);animation-duration:3s}.spirit-defeated .living-cutout{animation:spirit-release 1.6s ease-out forwards}.action-playing .combat-buttons{opacity:.45}.action-playing .crew-card:not(.active){pointer-events:none}[data-resolving=spirit] .roll-outcome{color:#a9bfcd}.impact-fx{position:absolute;inset:0;pointer-events:none;z-index:8;display:grid;place-items:center}.impact-fx>svg{position:absolute;width:110%;height:110%;overflow:visible}.effect-slash>svg>path:first-child{fill:#fff1c9;filter:drop-shadow(0 0 5px #b04536);animation:blade-flash .55s ease-out both}.effect-slash>svg>path:last-child{stroke:#bd4f34;stroke-width:2;fill:none;animation:blade-flash .55s .04s both}.effect-shadow>svg{transform:rotate(-35deg)}.effect-shadow>svg>path:first-child{fill:#b3cec3;animation:blade-flash .55s both}.effect-shadow>svg>path:last-child{stroke:#93a9a2;stroke-width:3;fill:none;animation:blade-flash .55s both}.floating-number{position:absolute;top:25%;left:50%;white-space:nowrap;transform:translate(-50%);font:600 43px Georgia,serif;color:#f3c995;text-shadow:0 2px 7px #37130c;animation:damage-rise .65s ease-out both}.crew-card .floating-number{font-size:25px;top:25%}.effect-heal .floating-number{color:#b6db9e}.effect-guard .floating-number,.effect-swap .floating-number{font-size:11px;letter-spacing:1px}.impact-fx>i{position:absolute;left:50%;top:50%;width:14px;height:22px;border-radius:65% 20% 65% 35%;background:#f1b764;box-shadow:0 0 12px #a64d2f;transform:rotate(calc(var(--particle)*40deg));animation:ember-scatter .65s both;--radius:80px}.effect-fire>i{background:#b4cfd0;box-shadow:0 0 16px #779fbc}.effect-heal>i{background:#c9d6a5;box-shadow:0 0 10px #769478;width:5px;height:18px}.effect-spirit>i{background:#b8c8b5;box-shadow:0 0 10px #6e8c87}.effect-guard>i,.effect-swap>i{background:#d5c6a2;width:4px;height:13px;--radius:35px}.taking-hit>.living-cutout{animation:spirit-hit .55s!important}.crew-card.taking-hit{animation:card-hit .45s}.receiving-heal{animation:heal-light .6s}.monster-art.lunging>.living-cutout{animation:spirit-lunge .55s!important}.monster-art.evading>.living-cutout{animation:spirit-evade .35s!important}.combat-flight{position:fixed;width:30px;height:30px;pointer-events:none;z-index:35;animation:attack-travel .35s cubic-bezier(.15,.65,.35,1) both}.flying-blade{position:absolute;width:45px;height:3px;left:-22px;top:0;background:#f1e0bb;box-shadow:0 0 5px #a23f2e;transform:rotate(var(--flight-angle));border-radius:100%;display:block}.flight-shadow .flying-blade{background:#93b4a4;box-shadow:0 0 7px #334b4b;height:5px;width:35px}.flying-flame{position:absolute;width:19px;height:24px;left:-9px;top:-12px;background:#d0e6dc;border-radius:65% 30% 60% 40%;box-shadow:0 0 8px #81aab3,0 0 24px #8ca2b3;display:block;transform:rotate(var(--flight-angle))}.flame-tail{position:absolute;width:27px;height:6px;left:-26px;top:1px;background:linear-gradient(90deg,transparent,#abc4c2);filter:blur(2px);transform:rotate(var(--flight-angle));display:block}.flying-charm{position:absolute;left:-10px;top:-18px;width:22px;height:35px;background:#eadfc0;color:#98704b;border:1px solid #beae88;font:19px serif;display:grid;place-items:center}.attack-windup{animation:traveler-windup .35s}.monster-art.phase-awakening .living-cutout{animation:mask-awakening .65s!important}.phase-awakening .floating-number{font:15px -apple-system,sans-serif;letter-spacing:4px;top:45%;background:#311919b3;padding:12px 16px}.result-backdrop{position:absolute;inset:0}.result-backdrop img{height:100%;width:100%;object-fit:cover;filter:brightness(.25) saturate(.4);opacity:.5}.result-backdrop:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#100e18 70%)}.result-story{position:absolute;top:20%;left:25px;right:25px;text-align:center}.result-mark{font-family:serif;font-size:44px;color:#ba8852;margin:22px 0 18px}.result-story h1{font-size:35px;line-height:1.15}.result-story>p:not(.eyebrow){font:italic 14px/1.8 Georgia,serif;margin:18px auto;color:#c4b7a4;max-width:380px}.result-stats{display:flex;justify-content:space-around;margin:27px 0;font-size:7px;color:#b7a082;letter-spacing:1px}.result-stats b{display:block;font:27px Georgia,serif;color:#e3c999;margin-bottom:7px;letter-spacing:0}.result-crew{position:absolute;left:20px;right:20px;top:67%;height:18%}.result-controls{position:absolute;left:22px;right:22px;bottom:max(4%,env(safe-area-inset-bottom));height:55px}.result-controls .primary{width:100%;height:100%}dialog{color:#e1d4c0;background:#201b27;border:1px solid #756245;padding:0;box-shadow:0 0 70px #0008;overflow:hidden}dialog::backdrop{background:#06070bc9;backdrop-filter:blur(6px)}.game-dialog{width:min(100% - 20px,470px);max-height:58dvh;margin:auto auto 10px;border-radius:16px}.sheet-content{padding:23px}.sheet-content h2{font-size:27px;margin:8px 0 15px}.sheet-content>p:not(.eyebrow){font-size:12px;line-height:1.7;color:#bcb09f;margin:12px 0}.menu-actions{display:grid;gap:10px;margin-top:20px}.menu-actions button{width:100%;font-size:12px}.roll-log{font-size:11px;line-height:1.65;color:#c5b69d;max-height:25dvh;overflow:hidden;margin:16px 0}.roll-log p+p{margin-top:8px}.sheet-content>.primary{width:100%;margin-top:12px}.art-dialog{width:min(100% - 20px,470px);height:90dvh;border-radius:14px;margin:auto}.art-dialog #art-viewer-content{position:absolute;inset:0 0 60px}.art-viewer-image{position:absolute;top:0;left:0;right:0;height:47%;background:#11121b;display:flex;align-items:center;justify-content:center}.art-viewer-image img{width:100%;height:100%;object-fit:contain}.art-viewer-info{position:absolute;inset:50% 20px 0}.art-viewer-info h2{font-size:23px;line-height:1.1;margin:8px 0}.art-viewer-info .eyebrow{font-size:7px;letter-spacing:1.7px}.art-viewer-info p:not(.eyebrow){font-size:10px;line-height:1.6;color:#bba98f;margin:8px 0}.art-viewer-info p.art-rights{font-size:8px}.art-viewer-info a.primary{display:block;text-decoration:none;font-size:12px;min-height:44px;padding:12px 8px;margin-top:12px}.art-viewer-info nav{display:flex;gap:9px;margin-top:13px;justify-content:center}.art-thumb{width:44px;height:53px;min-height:44px;padding:2px;background:#302b32;border:1px solid #766249;border-radius:3px}.art-thumb img{width:100%;height:100%;object-fit:cover}.art-thumb.selected{border-color:#e3bd79;box-shadow:0 0 12px #c59f4c44}.close-art{position:absolute;bottom:10px;left:20px;right:20px;height:44px;background:#3c3031;color:#e4c9a2;border:1px solid #8a6049;border-radius:9px;font-size:12px}.error{height:100%;display:flex;flex-direction:column;justify-content:center;padding:25px;gap:20px;background:#17131f}.error h1{font-size:30px}.error p{font-size:13px;line-height:1.7}.error button{min-height:48px;background:#a9462f;border-radius:8px}@keyframes print-breathe{0%{transform:scale(1.03) translateY(0)}to{transform:scale(1.1) translateY(-10px)}}@keyframes fog-drift{0%{transform:translate(-4%) scale(1)}to{transform:translate(5%,5%) scale(1.08)}}@keyframes candle-aura{50%{box-shadow:0 0 40px #d4913533,inset 0 0 25px #e6a03f22;opacity:1}}@media(min-width:650px){#app{max-width:52dvh;box-shadow:0 0 100px #000a}.storytelling h1{font-size:36px}.crew-name{font-size:10px}.role-name{font-size:8px}.monster-caption h1{font-size:24px}}@media(max-height:740px){.storytelling{top:53%}.storytelling h1{font-size:28px;margin-bottom:9px}.story-copy{font-size:12px;line-height:1.65}.intro-controls .primary{height:52px;font-size:15px}.inspiration{font-size:8px;padding:10px 0;min-height:35px}.monster-caption h1{font-size:19px;margin-bottom:5px}.monster-hp{margin-top:4px;font-size:7px}.telegraph{font-size:9px;min-height:28px}.telegraph small{font-size:7px}.dice-tray{top:57.4%;height:10.7%;min-height:67px}.roll-title{font-size:7px;height:10px}.dice-row{top:10px;gap:8px}.physical-die{width:48px;height:54px}.physical-die.d20{width:59px;height:63px}.roll-equation{font-size:9px;line-height:1.4}.roll-outcome{font-size:9px}.turn-actions{top:69%;height:6.4%}.combat-buttons button{font-size:9px}.combat-buttons small{font-size:7px}.crew-name{font-size:8px}.role-name{font-size:6px}.crew-health{font-size:6px;margin-top:3px}.charges{font-size:5px}.combat-party{height:17.8%}.party-caption{font-size:6px;top:-26px}.game-hud,.map-caption p{font-size:10px}.map-caption h1{font-size:19px}.current-aura{width:104px;height:104px;left:-52px;top:-52px}.map-node.current-node{width:63px;height:63px}.current-hint{top:53px;font-size:6px}.map-bottom{height:12.9%}.map-node{width:49px;height:49px}.sensory-hint{font-size:9px;top:-48px}.result-story{top:15%}.result-story h1{font-size:30px}.result-story>p:not(.eyebrow){font-size:12px}.result-mark{font-size:35px;margin:18px 0}.result-stats{margin:18px 0}.art-viewer-info h2{font-size:20px}.art-viewer-info p:not(.eyebrow){font-size:9px}.art-viewer-info p.art-rights{font-size:7px}.art-viewer-info a.primary{margin-top:8px}.art-viewer-info nav{margin-top:8px}.art-thumb{height:44px}.sheet-content{padding:18px}.sheet-content>p:not(.eyebrow){font-size:11px;line-height:1.6}.sheet-content h2{font-size:25px;margin:7px 0 12px}.menu-actions{margin-top:12px;gap:8px}}@media(max-width:350px){.telegraph{left:10px;right:10px;font-size:8px;gap:3px}.telegraph small{font-size:6px}.combat-party{left:8px;right:8px}.crew-grid{gap:5px}.crew-info{left:3px;right:3px}.role-name{font-size:6px}.turn-actions{left:10px;right:10px}.game-hud{left:15px;right:15px}.storytelling,.intro-controls{left:20px;right:20px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.encounter-curtain{display:none!important}.combat-flight{display:none}.spirit-defeated .living-cutout{opacity:.2}}@keyframes die-throw{0%{transform:translate(-100px,-55px) rotateX(190deg) rotateY(140deg) rotate(-150deg) scale(.7);opacity:0}15%{opacity:1}45%{transform:translate(17px,-28px) rotateX(360deg) rotateY(270deg) rotate(90deg) scale(1.13)}72%{transform:translateY(6px) rotateX(545deg) rotateY(360deg) rotate(185deg)}89%{transform:translate(2px,-5px) rotate(350deg)}to{transform:translate(0) rotate(358deg)}}@keyframes die-throw-reverse{0%{transform:translate(70px,-40px) rotateX(-210deg) rotateY(80deg) rotate(150deg) scale(.65);opacity:0}15%{opacity:1}45%{transform:translate(-10px,-33px) rotateX(-360deg) rotateY(270deg) rotate(-90deg) scale(1.1)}72%{transform:translateY(5px) rotateX(-545deg) rotateY(360deg) rotate(-185deg)}89%{transform:translate(-2px,-4px) rotate(-350deg)}to{transform:translate(0) rotate(-358deg)}}@keyframes die-land{0%{transform:translateY(-3px) rotate(calc(-9deg + var(--die-index)*9deg))}50%{transform:translateY(2px) rotate(calc(-9deg + var(--die-index)*9deg))}to{transform:translateY(0) rotate(calc(-9deg + var(--die-index)*9deg))}}@keyframes spirit-float{0%,to{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-9px) rotate(2deg)}}@keyframes lantern-sway{0%,to{transform:rotate(-5deg) translateY(3px)}50%{transform:rotate(5deg) translateY(-5px)}}@keyframes ghost-peer{0%,to{transform:translate(-5px) rotate(-3deg)}50%{transform:translate(5px,-6px) rotate(3deg)}}@keyframes hero-haunt{0%,to{transform:translate(0) rotate(-4deg)}50%{transform:translate(7px,-13px) rotate(2deg)}}@keyframes mist-drift{0%{transform:translate(-12%);opacity:.6}to{transform:translate(12%);opacity:1}}@keyframes phase-pulse{50%{transform:scale(1.08);opacity:.5}}@keyframes spirit-hit{15%{transform:translate(12px,-2px) rotate(5deg);filter:brightness(1.7) drop-shadow(0 0 14px #a64532)}40%{transform:translate(-7px,1px) rotate(-4deg)}70%{transform:translate(3px)}to{transform:translate(0)}}@keyframes card-hit{20%{transform:translate(5px);background:#b7886a}50%{transform:translate(-3px)}to{transform:translate(0)}}@keyframes spirit-lunge{35%{transform:scale(1.16) translateY(7px) rotate(-5deg)}to{transform:scale(1)}}@keyframes spirit-evade{40%{transform:translate(-24px) rotate(-8deg);opacity:.4}to{transform:translate(0)}}@keyframes blade-flash{0%{opacity:0;transform:scale(.4);transform-origin:center}25%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.1)}}@keyframes damage-rise{0%{opacity:0;transform:translate(-50%,15px) scale(.7)}25%{opacity:1;transform:translate(-50%,-4px) scale(1.1)}80%{opacity:1}to{opacity:0;transform:translate(-50%,-30px)}}@keyframes ember-scatter{0%{opacity:0;transform:rotate(calc(var(--particle)*40deg)) translateY(0) scale(.4)}20%{opacity:1}to{opacity:0;transform:rotate(calc(var(--particle)*40deg)) translateY(calc(var(--radius)*-1)) scale(.2)}}@keyframes heal-light{40%{box-shadow:inset 0 0 35px #c2d49a,0 0 15px #aabf85}}@keyframes spirit-release{0%{opacity:1;transform:translateY(0);filter:drop-shadow(0 0 0 #d6d9c4)}to{opacity:.17;transform:translateY(-15px);filter:drop-shadow(0 0 14px #d6d9c4) grayscale(.7)}}@keyframes curtain-open{0%,12%{clip-path:inset(0 0 0 0);opacity:1}55%{clip-path:inset(0 0 0 85%);opacity:1}to{clip-path:inset(0 0 0 100%);opacity:0}}@keyframes curtain-words{0%,25%{opacity:1;transform:translateY(0)}70%,to{opacity:0;transform:translateY(-8px)}}@keyframes paper-arrival{0%{opacity:0;transform:translateY(20px) rotate(8deg) scale(.94)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}@keyframes paper-rain{to{background-position:-140px 0}}@keyframes attack-travel{0%{transform:translate(-50%,-50%) scale(.7);opacity:0}15%{opacity:1}85%{opacity:1}to{transform:translate(calc(var(--flight-x) - 50%),calc(var(--flight-y) - 50%)) scale(1.15);opacity:0}}@keyframes traveler-windup{30%{transform:translateY(3px) rotate(-5deg)}65%{transform:translateY(-2px) rotate(3deg)}to{transform:none}}@keyframes mask-awakening{0%{transform:scale(1);filter:brightness(1)}25%{transform:scale(1.1) rotate(-4deg);filter:brightness(1.8) drop-shadow(0 0 20px #b24d39)}55%{transform:scale(1.05) rotate(4deg)}to{transform:scale(1);filter:drop-shadow(0 0 15px #a6453288)}}.previous-node small{display:none}.map-utility>span{max-width:44%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dice-tray>.game-menu-button{position:absolute;right:-8px;top:-15px}.crew-card.evading{animation:card-hit .35s ease-out}@media(max-height:740px){.combat-party{height:17%}.combat-party .party-caption{display:none}.combat-party .crew-card.active{transform:translateY(-9px)}}.tarot-paper{--paper-ink: #2b2016;color:var(--paper-ink);background:radial-gradient(ellipse at 15% 8%,#7a4f1e40,transparent 45%),radial-gradient(ellipse at 88% 96%,#6a3f1444,transparent 50%),radial-gradient(circle at 70% 78%,#6e461e30,transparent 14%),linear-gradient(160deg,#e6d6b0,#d6c095 55%,#bfa271);box-shadow:inset 0 0 22px #50300fb3,0 6px 14px #0008}.eyebrow{font-size:15px;letter-spacing:1.5px}.game-hud{font-size:15px;line-height:22px}.primary,.secondary{font-size:17px}.story-copy{font-size:17px;line-height:1.6}.inspiration{font-size:15px}.storytelling{top:52%}.fog-whisper{font-size:16px}.map-caption h1{font-size:24px}.map-caption p{font-size:16px;line-height:1.5}.sensory-hint{font-size:15px;width:160px;left:-80px;top:-60px;line-height:1.3}.path-stop:nth-of-type(2n) .sensory-hint{top:-60px}.path-stop.hint-below .sensory-hint{top:34px}.current-hint{font-size:15px;width:200px;left:-100px;top:60px;letter-spacing:.5px}.previous-node small{font-size:15px;top:50px;left:-15px;width:80px}.map-bottom{height:16%}.map-utility{height:30px;font-size:15px}.map-utility .game-menu-button{height:30px}.map-party{height:calc(100% - 32px)}.scout-button{min-width:64px;width:64px;font-size:15px}.monster-art{top:6.5%;height:32%}.stage-paper,.spirit-halo{display:none}.monster-caption{top:40%;height:auto}.monster-caption h1{font-size:24px;margin-bottom:6px}.monster-hp{font-size:15px;margin-top:6px}.telegraph{top:48.2%;height:auto;min-height:44px;flex-wrap:wrap;text-align:center;font-size:15px;gap:2px 8px;padding:5px 12px}.telegraph span{white-space:normal}.telegraph small{font-size:15px}.dice-tray{top:55%;height:14%}.roll-title{font-size:15px;height:20px;line-height:20px;right:46px;color:#c4b49b}.dice-row{inset:22px 0 0;gap:8px}.dice-visual{width:46%;position:relative}.dice-visual.three-dice{gap:0}.dice-canvas{display:block;width:100%;height:100%}.roll-outcome{font-size:22px;font-weight:700;letter-spacing:.5px;line-height:1.2}.roll-outcome[data-outcome=hit]{color:#f0c66e}.roll-outcome[data-outcome=miss]{color:#d1705a}.roll-outcome[data-outcome=critical]{font-size:24px}.roll-equation{font-size:15px;line-height:1.35;-webkit-line-clamp:3}.die-type{font-size:15px;bottom:-14px}.dice-tray .game-menu-button{position:absolute;right:-4px;top:-12px}.turn-actions{top:69.5%;height:7.6%;min-height:52px}.combat-buttons{gap:6px}.combat-buttons button{font-size:16px;line-height:1.15;padding:4px 3px;min-height:52px}.combat-buttons small{font-size:15px;margin-top:2px}.turn-actions>.primary{font-size:17px}.combat-party{height:19.5%;bottom:max(1.6%,env(safe-area-inset-bottom))}.party-caption{display:none}.encounter-curtain span{font-size:15px}.crew-card.active{transform:translateY(-8px)}.tarot-row{gap:6px;grid-template-rows:minmax(0,1fr)}.crew-card.tarot-card{display:flex;flex-direction:column;padding:4px;border:0;border-radius:8px;text-align:left;overflow:visible}.crew-card.tarot-card:before{content:"";position:absolute;inset:3px;border:1.5px solid #2b2016;border-radius:5px;pointer-events:none}.crew-card.tarot-card .portrait{position:relative;inset:auto;flex:1 1 auto;min-height:0;border:1.5px solid #2b2016;border-radius:2px;overflow:hidden;background:#cdb88c}.crew-card.tarot-card .portrait:after{display:none}.crew-card.tarot-card .portrait img{opacity:1;filter:sepia(.2) contrast(1.05);object-position:50% 30%}.crew-card.tarot-card .row-label{inset:0 0 auto;font-size:15px;letter-spacing:0;line-height:18px;text-align:center;color:#f3e6c8;background:linear-gradient(#1d1612cc,#1d161288)}.crew-card.tarot-card .crew-info{position:relative;inset:auto;padding:3px 2px 1px;flex:0 0 auto}.crew-card.tarot-card .crew-name{font:15px/18px Georgia,Times New Roman,serif;color:#2b2016;text-align:center;letter-spacing:.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-boxes{display:grid;grid-template-columns:1fr 1fr;gap:3px;margin-top:2px}.sbox{display:flex;flex-direction:column;align-items:center;border:1.5px solid #2b2016;border-radius:3px;padding:1px 0 0;background:#fff8e659;line-height:16px}.sbox i{font-style:normal;font-size:15px;line-height:15px;color:#5d4630}.sbox b{font:700 17px/20px Georgia,serif;color:#2b2016}.sbox.hp{border-color:#8c2f1c}.sbox.hp b{color:#8c2f1c}.crew-card.tarot-card .crew-health{display:inline;margin:0;font-size:17px;color:#8c2f1c}.crew-card.tarot-card .health-track{height:3px;margin-top:3px;background:#2b201633}.crew-card.tarot-card .health-track i{background:#9b3420}.crew-card.tarot-card .charges{font-size:15px;line-height:17px;text-align:center;color:#7a5a1c;margin-top:1px;letter-spacing:1px}.crew-card.tarot-card.active{box-shadow:0 0 0 3px #f1d18d,0 0 22px #e0b75bbb,0 6px 15px #0008}.crew-card.tarot-card.spent{opacity:.62;filter:saturate(.5) brightness(.85)}.crew-card.tarot-card.downed{filter:grayscale(1) brightness(.7);opacity:.6}.crew-card.tarot-card .spent-mark{top:6px;right:8px;font-size:17px;color:#fff3cf;text-shadow:0 1px 4px #000;z-index:5}.mini-crew .crew-card.tarot-card .stat-boxes,.mini-crew .crew-card.tarot-card .charges,.mini-crew .crew-card.tarot-card .row-label{display:none}.mini-crew .crew-card.tarot-card .crew-name{font-size:15px;display:block}.mini-crew .crew-card.tarot-card .health-track{display:block;height:3px}.result-crew{height:20%;top:64%}.bark{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%);z-index:20;width:max-content;max-width:210px;padding:7px 11px;border-radius:12px;background:#f3e6c8;color:#2b2016;font:italic 16px/1.3 Georgia,serif;box-shadow:0 4px 14px #000a;pointer-events:none;animation:bark-in 2.2s ease-out both;text-align:center;white-space:normal}.bark:after{content:"";position:absolute;left:50%;bottom:-7px;margin-left:-7px;border:7px solid transparent;border-bottom:0;border-top-color:#f3e6c8}.crew-grid>.crew-card:first-child .bark{left:0;transform:none}.crew-grid>.crew-card:first-child .bark:after{left:30px}.crew-grid>.crew-card:last-child .bark{left:auto;right:0;transform:none}.crew-grid>.crew-card:last-child .bark:after{left:auto;right:23px}@keyframes bark-in{0%{opacity:0;translate:0 6px}10%,85%{opacity:1;translate:0 0}to{opacity:0}}.sheet-content>p:not(.eyebrow){font-size:17px;line-height:1.55}.menu-actions button{font-size:17px}.roll-log{font-size:15px}.art-viewer-info .eyebrow{font-size:15px;letter-spacing:1px}.art-viewer-info p:not(.eyebrow){font-size:15px}.art-viewer-info p.art-rights{font-size:15px}.art-viewer-info a.primary,.close-art{font-size:17px}.crew-sheet[open]{width:100%;max-width:500px;height:100dvh;max-height:100dvh;margin:0 auto;border:0;border-radius:0;background:#15121a;display:grid;grid-template-rows:minmax(0,1fr) auto auto;color:#f1e7d3}.crew-sheet .sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:max(14px,env(safe-area-inset-top)) 16px 12px}.sheet-card{position:relative;height:34dvh;min-height:200px;border-radius:10px;padding:9px 10px 10px;display:flex;flex-direction:column}.sheet-card:before{content:"";position:absolute;inset:5px;border:2px solid #2b2016;border-radius:6px;pointer-events:none}.tarot-head{display:flex;justify-content:space-between;align-items:center;padding:2px 8px 6px;font:15px Georgia,serif;letter-spacing:2px}.tarot-head span:first-child,.tarot-head span:last-child{font-size:18px;letter-spacing:0}.tarot-window{flex:1;min-height:0;border:2px solid #2b2016;overflow:hidden;background:#cdb88c;margin:0 4px}.tarot-window img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;filter:sepia(.2);animation:sheet-breathe 6s ease-in-out infinite alternate}@keyframes sheet-breathe{to{transform:scale(1.04)}}.tarot-seal{position:absolute;right:22px;bottom:22px;width:44px;height:44px;display:grid;place-items:center;border:2px solid #a8351f;color:#a8351f;background:#e9d9b4d9;font:24px serif;transform:rotate(-6deg)}.sheet-identity{padding:14px 2px 4px}.sheet-identity h2{font-size:32px;line-height:1.05;color:#f3e6c8}.sheet-role{font-size:17px;color:#e2c79a;margin-top:6px}.sheet-quote{font:italic 17px/1.45 Georgia,serif;color:#e9dcc3;margin-top:10px}.sheet-section{padding-top:12px}.sheet-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.tile{background:#241e28;border:1px solid #4a4250;border-radius:10px;text-align:center;padding:8px 0 6px}.tile b{display:block;font:700 26px/1.1 Georgia,serif;color:#f3e6c8}.tile b small{font-size:17px;color:#bfb39b;font-weight:400}.tile span{font-size:15px;color:#cbbfa8}.tile.hp b{color:#f08d74}.sheet-scores{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}.score{display:grid;grid-template-columns:auto 1fr auto;align-items:baseline;gap:6px;background:#1d1922;border:1px solid #3a3340;border-radius:8px;padding:6px 9px}.score span{font-size:15px;color:#cbbfa8;letter-spacing:1px}.score b{font:700 22px Georgia,serif;text-align:right}.score em{font-style:normal;font-size:15px;color:#e2c79a}.sheet-facts{margin:12px 0 0;display:grid;gap:8px}.sheet-facts div{display:flex;justify-content:space-between;gap:12px;font-size:17px;border-bottom:1px solid #2f2935;padding-bottom:7px}.sheet-facts dt{color:#cbbfa8}.sheet-facts dd{margin:0;text-align:right}.charge-pips{color:#e2c079;letter-spacing:2px}.sheet-list,.sheet-gear{list-style:none;margin:0;padding:0;display:grid;gap:8px}.sheet-list li{background:#221d26;border-radius:10px;padding:10px 12px}.list-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.list-head b{font-size:17px}.list-head em{font-style:normal;font-size:15px;color:#ffcf8a;text-align:right}.sheet-list p{font-size:15px;line-height:1.45;color:#cbbfa8;margin-top:4px}.sheet-list .cost{color:#e2c079;white-space:nowrap}.sheet-gear li{display:grid;grid-template-columns:1fr;border:1.5px solid #6b5a43;border-radius:8px;padding:9px 12px;background:#201b23}.sheet-gear li span{font-size:15px;letter-spacing:1.5px;color:#d6b26f;text-transform:uppercase}.sheet-gear li b{font:400 19px Georgia,serif;margin-top:2px}.sheet-gear li em{font-style:normal;font-size:15px;color:#e7a98f;margin-top:2px}.sheet-gear li.empty{border-style:dashed;opacity:.7}.sheet-story p{font:17px/1.6 Georgia,serif;color:#e9dcc3}.sheet-story dl{margin:14px 0 0;display:grid;gap:10px}.sheet-story dt{font-size:15px;letter-spacing:1.5px;color:#d6b26f;text-transform:uppercase}.sheet-story dd{margin:3px 0 0;font-size:17px;line-height:1.45}.sheet-tabs{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #3a3340;background:#17141b}.sheet-tabs button{min-height:52px;font-size:16px;color:#cbbfa8;background:transparent}.sheet-tabs button[aria-pressed=true]{color:#ffcf8a;font-weight:700;box-shadow:inset 0 3px #d6b26f}.sheet-nav{display:grid;grid-template-columns:56px 1fr 56px;gap:8px;padding:8px 12px max(10px,env(safe-area-inset-bottom));background:#17141b}.sheet-nav button:not(.primary){min-height:52px;font-size:30px;line-height:1;color:#e2c79a;background:#241e28;border:1px solid #4a4250;border-radius:12px}.sheet-nav .primary{min-height:52px}@media(max-height:740px){.monster-art{top:6%;height:27%}.monster-caption{top:34.5%}.monster-caption h1{font-size:20px;margin-bottom:4px}.monster-hp{margin-top:3px}.telegraph{top:43.8%;min-height:40px;padding:3px 10px}.dice-tray{top:51%;height:16.5%}.turn-actions{top:68.6%;height:8%;min-height:50px}.combat-buttons button{min-height:50px}.combat-party{height:21%}.crew-card.tarot-card .charges{display:none}.storytelling{top:47%}.story-copy{min-height:0;line-height:1.5}.sheet-card{height:30dvh;min-height:160px}.map-caption{top:27%}.map-caption p{-webkit-line-clamp:2}.fog-whisper{top:17%}.current-hint{display:none}}
