@font-face{font-family:'Afacad';src:url('assets/fonts/Afacad-Variable.ttf') format('truetype');font-weight:400 700;font-style:normal;font-display:swap}
@font-face{font-family:'Afacad';src:url('assets/fonts/Afacad-Italic-Variable.ttf') format('truetype');font-weight:400 700;font-style:italic;font-display:swap}
#adventurescan-root{--paper:#eeeeee;--card:#f8f8f8;--ink:#282828;--muted:#747474;--line:#d7d7d7;--olive:#6b6b6b;--olive-light:#e7e7e7;--gold:#7a7a7a;--red:#5e5e5e;--dark:#272727;--serif:'Afacad',sans-serif}#adventurescan-root *{box-sizing:border-box}#adventurescan-root{margin:0;background:var(--paper);color:var(--ink);font:13.3333px/1.5 'Afacad',sans-serif}#adventurescan-root button,#adventurescan-root input,#adventurescan-root select{font:inherit}#adventurescan-root button,#adventurescan-root a,#adventurescan-root input,#adventurescan-root select{-webkit-tap-highlight-color:transparent}#adventurescan-root button{cursor:pointer}#adventurescan-root button:disabled{cursor:not-allowed;opacity:.46}#adventurescan-root button:focus-visible,#adventurescan-root a:focus-visible,#adventurescan-root input:focus-visible,#adventurescan-root select:focus-visible{outline:2px solid var(--olive);outline-offset:4px}#adventurescan-root button{color:inherit}#adventurescan-root .hidden{display:none!important}#adventurescan-root svg{width:20px;height:20px;flex-shrink:0}#adventurescan-root .masthead{height:85px;max-width:1440px;padding:0 44px;display:flex;align-items:center;justify-content:space-between;margin:auto;border-bottom:1px solid var(--line)}#adventurescan-root .wordmark{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-size:calc(16px - 2pt);font-weight:750;letter-spacing:.08em}#adventurescan-root .wordmark small{display:block;font-size:calc(16px - 2pt);font-weight:500;letter-spacing:.3em}#adventurescan-root .mark{display:grid;place-items:center;width:35px;height:40px;border:1px solid var(--ink);font:19.3333px var(--serif)}#adventurescan-root .mast-right{display:flex;align-items:center;gap:25px}#adventurescan-root .edition{font-size:calc(16px - 2pt);letter-spacing:.16em;color:var(--muted)}#adventurescan-root .edition b{margin:0 10px;color:var(--gold)}#adventurescan-root .text-button{background:transparent;border:0;padding:8px 0;font-size:calc(16px - 2pt)}#adventurescan-root .text-button span{margin-left:5px}#adventurescan-root .page-footer{max-width:1440px;margin:38px auto 0;padding:22px 44px;display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);font-size:calc(16px - 2pt);color:var(--muted);letter-spacing:.02em}#adventurescan-root .footer-dot{margin:0 10px;color:#adadad}#adventurescan-root #app{max-width:1352px;margin:auto;padding:34px 0 0}#adventurescan-root .eyebrow{font-size:calc(16px - 2pt);font-weight:650;letter-spacing:.18em;color:var(--olive);text-transform:uppercase}#adventurescan-root .breadcrumb{display:flex;align-items:center;gap:15px;font-size:calc(16px - 2pt);letter-spacing:.1em;color:var(--muted);margin-bottom:24px}#adventurescan-root .breadcrumb .active{color:var(--ink);font-weight:700}#adventurescan-root .breadcrumb .sep{width:30px;height:1px;background:var(--line)}#adventurescan-root h1,#adventurescan-root h2,#adventurescan-root h3,#adventurescan-root p{margin:0}#adventurescan-root h1{font:normal clamp(28px,4vw,44px)/1.05 var(--serif);letter-spacing:-.035em}#adventurescan-root h2{font:normal 19.3333px/1.15 var(--serif);letter-spacing:-.02em}#adventurescan-root h3{font:normal 15.3333px var(--serif)}#adventurescan-root .muted{color:var(--muted)}#adventurescan-root .intro{display:grid;grid-template-columns:1fr 350px;align-items:center;gap:40px;margin-bottom:25px}#adventurescan-root .intro p{max-width:580px;margin-top:13px;font-size:calc(16px - 2pt);color:var(--muted)}#adventurescan-root .intro-art{height:158px;position:relative;background:var(--dark);border-radius:3px;overflow:hidden}#adventurescan-root .intro-art canvas{width:100%;height:100%;display:block}#adventurescan-root .art-label{position:absolute;bottom:13px;left:17px;color:#e5e5e5;letter-spacing:.15em;font-size:calc(16px - 2pt)}#adventurescan-root .identity{display:flex;align-items:end;gap:18px;margin-bottom:23px}#adventurescan-root .field label{display:block;font-size:calc(16px - 2pt);text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px;color:var(--muted)}#adventurescan-root .field input{height:41px;border:1px solid var(--line);background:var(--card);border-radius:3px;padding:8px 12px;width:230px}#adventurescan-root .looks{display:flex;gap:5px}#adventurescan-root .look{border:1px solid var(--line);border-radius:3px;background:transparent;padding:9px 14px;font-size:calc(16px - 2pt);height:41px}#adventurescan-root .look.selected{border-color:var(--ink);background:#e5e5e5}#adventurescan-root .resume-button{margin-left:auto;align-self:center}#adventurescan-root .family-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin-bottom:16px;overflow:auto}#adventurescan-root .family-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:12px 18px 12px 0;margin-right:25px;font-size:calc(16px - 2pt);white-space:nowrap;color:var(--muted)}#adventurescan-root .family-tabs button.active{color:var(--ink);border-color:var(--ink);font-weight:650}#adventurescan-root .preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:25px}#adventurescan-root .preset{border:1px solid var(--line);background:transparent;text-align:left;border-radius:3px;padding:16px;display:flex;gap:13px;align-items:start;min-height:95px;transition:background .15s,border-color .15s}#adventurescan-root .preset:hover{background:#e8e8e8}#adventurescan-root .preset.selected{background:var(--card);border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}#adventurescan-root .preset .sigil{width:35px;height:35px;display:grid;place-items:center;background:#e6e6e6;border-radius:50%;color:var(--olive)}#adventurescan-root .preset strong{display:block;font-family:'Afacad',sans-serif;font-weight:normal;font-size:calc(16px - 2pt);line-height:1.1;margin-bottom:5px}#adventurescan-root .preset p{font-size:calc(16px - 2pt);line-height:1.5;color:var(--muted)}#adventurescan-root .check-dot{margin-left:auto;width:15px;height:15px;border:1px solid var(--line);border-radius:50%;flex-shrink:0;margin-top:3px}#adventurescan-root .selected .check-dot{background:var(--ink);border-color:var(--ink);position:relative}#adventurescan-root .selected .check-dot:after{content:'✓';position:absolute;inset:0;color:var(--paper);font-size:calc(16px - 2pt);display:grid;place-items:center}#adventurescan-root .allocation-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}#adventurescan-root .allocation{border-top:1px solid var(--ink);padding-top:13px}#adventurescan-root .allocation-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}#adventurescan-root .allocation-heading h3{font-size:calc(18px - 2pt)}#adventurescan-root .budget{font-size:calc(16px - 2pt);letter-spacing:.02em;color:var(--olive)}#adventurescan-root .budget.invalid{color:var(--red)}#adventurescan-root .skill-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:7px 0;min-height:39px}#adventurescan-root .skill-title{font-size:calc(16px - 2pt);display:flex;align-items:center;gap:6px}#adventurescan-root .new-label{font-size:calc(16px - 2pt);letter-spacing:.08em;color:var(--olive);border:1px solid #cccccc;padding:1px 4px;border-radius:2px}#adventurescan-root .skill-input{width:67px;height:29px;border:1px solid var(--line);border-radius:2px;padding:3px 6px;background:var(--card);font-size:calc(16px - 2pt);text-align:right}#adventurescan-root .add-skill{border:0;border-bottom:1px dashed var(--line);margin-top:10px;background:transparent;font-size:calc(16px - 2pt);color:var(--muted);padding:5px 0;width:100%;max-width:100%}#adventurescan-root .creation-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:23px;padding-top:18px;border-top:1px solid var(--line)}#adventurescan-root .rule-note{font-size:calc(16px - 2pt);color:var(--muted);max-width:680px}#adventurescan-root .rule-note strong{color:var(--ink);font-weight:550}#adventurescan-root .primary{display:inline-flex;align-items:center;justify-content:center;gap:14px;border:1px solid var(--ink);background:var(--ink);color:#f6f6f6;padding:13px 23px;border-radius:3px;font-size:calc(16px - 2pt);font-weight:550;white-space:nowrap;min-height:46px;transition:background .15s}#adventurescan-root .primary:hover:not(:disabled){background:#484848}#adventurescan-root .secondary{border:1px solid var(--line);background:var(--card);color:var(--ink);padding:11px 17px;border-radius:3px;font-size:calc(16px - 2pt);min-height:42px}#adventurescan-root .secondary:hover:not(:disabled){border-color:var(--ink)}#adventurescan-root .battle-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}#adventurescan-root .battle-heading h1{font-size:calc(35.2px - 2pt);margin-top:7px}#adventurescan-root .chapter-description{font-size:calc(16px - 2pt);color:var(--muted);max-width:400px;text-align:right}#adventurescan-root .game-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:25px}#adventurescan-root .encounter{min-width:0}#adventurescan-root .scene{position:relative;height:365px;background:#292929;border-radius:4px;overflow:hidden}#adventurescan-root .scene canvas{width:100%;height:100%;display:block}#adventurescan-root .scene:after{content:'';position:absolute;inset:0;pointer-events:none;border:1px solid #ffffff0d;border-radius:4px;box-shadow:inset 0 0 100px #10101055}#adventurescan-root .scene-top{position:absolute;top:21px;left:23px;right:23px;display:flex;justify-content:space-between;gap:20px;z-index:1}#adventurescan-root .fighter{width:40%;max-width:290px;color:#ededed}#adventurescan-root .fighter.enemy{text-align:right}#adventurescan-root .fighter-name{font-size:calc(16px - 2pt);font-weight:600;margin-bottom:3px}#adventurescan-root .fighter-detail{font-size:calc(16px - 2pt);color:#acacac;letter-spacing:.06em;margin-bottom:8px;text-transform:uppercase}#adventurescan-root .bar{height:4px;background:#ffffff1c;overflow:hidden;border-radius:2px}#adventurescan-root .bar span{display:block;height:100%;background:#afafaf;transition:width .35s}#adventurescan-root .enemy .bar span{background:#909090}#adventurescan-root .fighter-numbers{font-size:calc(16px - 2pt);color:#c2c2c2;margin-top:5px}#adventurescan-root .scene-bottom{position:absolute;bottom:19px;left:23px;right:23px;display:flex;align-items:center;justify-content:space-between;color:#cbcbcb;font-size:calc(16px - 2pt);letter-spacing:.13em;z-index:1}#adventurescan-root .turn-pill{background:#ffffff0c;border:1px solid #ffffff1d;border-radius:30px;padding:5px 10px;letter-spacing:.08em}#adventurescan-root .intent{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:calc(16px - 2pt)}#adventurescan-root .intent-left{display:flex;align-items:center;gap:11px}#adventurescan-root .intent-icon{display:grid;place-items:center;background:#e3e3e3;color:#6f6f6f;width:34px;height:34px;border-radius:50%}#adventurescan-root .intent-icon.danger{background:#e1e1e1;color:var(--red)}#adventurescan-root .intent strong{font-weight:650}#adventurescan-root .intent p{font-size:calc(16px - 2pt);color:var(--muted);margin-top:2px}#adventurescan-root .resource-bars{display:flex;gap:20px;min-width:205px}#adventurescan-root .resource{flex:1;font-size:calc(16px - 2pt);color:var(--muted)}#adventurescan-root .resource label{display:flex;justify-content:space-between;margin-bottom:5px}#adventurescan-root .resource .bar{background:#dbdbdb;height:3px}#adventurescan-root .resource.mana .bar span{background:#868686}#adventurescan-root .resource.stamina .bar span{background:#929292}#adventurescan-root .section-title{display:flex;align-items:center;justify-content:space-between;margin:19px 0 12px}#adventurescan-root .section-title h2{font-size:calc(18px - 2pt)}#adventurescan-root .section-title small{font-size:calc(16px - 2pt);color:var(--muted)}#adventurescan-root .prep-description{font-size:calc(16px - 2pt);color:var(--muted);margin-bottom:13px}#adventurescan-root .prep-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}#adventurescan-root .prep-card{background:var(--card);border:1px solid var(--line);border-radius:3px;text-align:left;padding:12px;display:flex;gap:10px;align-items:center;min-height:83px}#adventurescan-root .prep-card.done{background:var(--olive-light);border-color:#cbcbcb}#adventurescan-root .prep-card .prep-icon{color:var(--olive);width:28px;flex-shrink:0}#adventurescan-root .prep-card strong{display:block;font-size:calc(16px - 2pt);font-weight:600}#adventurescan-root .prep-card p{font-size:calc(16px - 2pt);color:var(--muted);margin-top:3px}#adventurescan-root .prep-card .prepared-mark{font-size:calc(16px - 2pt);margin-left:auto;color:var(--olive)}#adventurescan-root .prep-footer{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:15px}#adventurescan-root .prep-footer p{font-size:calc(16px - 2pt);color:var(--muted)}#adventurescan-root .actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}#adventurescan-root .ability{display:flex;align-items:start;gap:10px;border:1px solid var(--line);background:var(--card);border-radius:3px;text-align:left;padding:14px 11px;min-height:110px;transition:transform .1s,border-color .1s}#adventurescan-root .ability:hover:not(:disabled){border-color:var(--olive);transform:translateY(-2px)}#adventurescan-root .ability .ability-icon{color:var(--olive);margin-top:1px}#adventurescan-root .ability strong{font-size:calc(16px - 2pt);display:block;margin-bottom:6px}#adventurescan-root .ability p{font-size:calc(16px - 2pt);color:var(--muted);line-height:1.45}#adventurescan-root .ability .cost{display:block;margin-top:7px;font-size:calc(16px - 2pt);letter-spacing:.04em;color:var(--gold)}#adventurescan-root .key-hint{display:inline-grid;place-items:center;font:13.3333px system-ui;border:1px solid var(--line);color:var(--muted);border-radius:3px;min-width:16px;height:17px;margin-left:4px}#adventurescan-root .tactics{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:11px}#adventurescan-root .tactic{display:flex;align-items:center;justify-content:center;gap:6px;background:none;border:1px solid var(--line);padding:10px 5px;font-size:calc(16px - 2pt);border-radius:3px;min-height:42px}#adventurescan-root .tactic svg{width:15px;height:15px}#adventurescan-root .tactic:hover:not(:disabled){border-color:var(--ink);background:#e7e7e7}#adventurescan-root .turn-note{font-size:calc(16px - 2pt);color:var(--muted);margin-top:12px}#adventurescan-root .status-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}#adventurescan-root .status-tag{font-size:calc(16px - 2pt);border:1px solid var(--line);padding:3px 7px;border-radius:20px;color:var(--olive)}#adventurescan-root .side-panel{border-left:1px solid var(--line);padding-left:24px;min-width:0}#adventurescan-root .journal-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px}#adventurescan-root .journal-heading h2{font-size:calc(18px - 2pt)}#adventurescan-root .journal-heading span{font-size:calc(16px - 2pt);letter-spacing:.12em;color:var(--muted)}#adventurescan-root .journal{max-height:332px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9c9c9 transparent;display:flex;flex-direction:column;gap:0}#adventurescan-root .log{padding:10px 0;border-bottom:1px solid #dfdfdf;font-size:calc(16px - 2pt);line-height:1.65;color:#6d6d6d}#adventurescan-root .log.story{font-family:'Afacad',sans-serif;font-size:calc(16px - 2pt);color:var(--ink);line-height:1.6;padding-top:0}#adventurescan-root .log.player{color:#494949}#adventurescan-root .log.enemy{color:#686868}#adventurescan-root .log.gain{color:var(--olive);font-weight:600;display:flex;gap:7px}#adventurescan-root .log.gain:before{content:'+';font-size:calc(16px - 2pt)}#adventurescan-root .log.loot{color:var(--gold)}#adventurescan-root .traveler-panel{border-top:1px solid var(--ink);margin-top:24px;padding-top:13px}#adventurescan-root .traveler-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}#adventurescan-root .traveler-heading h3{font-size:calc(16px - 2pt)}#adventurescan-root .traveler-heading span{font-size:calc(16px - 2pt);color:var(--gold)}#adventurescan-root .skill-tabs{display:flex;gap:15px;border-bottom:1px solid var(--line);margin-bottom:5px}#adventurescan-root .skill-tabs button{border:0;border-bottom:2px solid transparent;background:none;font-size:calc(16px - 2pt);color:var(--muted);padding:7px 0}#adventurescan-root .skill-tabs button.active{border-color:var(--ink);color:var(--ink)}#adventurescan-root .skill-list{max-height:181px;overflow:auto;scrollbar-width:thin}#adventurescan-root .listed-skill{display:flex;justify-content:space-between;gap:10px;font-size:calc(16px - 2pt);padding:6px 0}#adventurescan-root .listed-skill .delta{color:var(--olive);font-size:calc(16px - 2pt);margin-right:6px}#adventurescan-root .capacity{margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:calc(16px - 2pt);color:var(--muted);display:flex;justify-content:space-between}#adventurescan-root .inventory-summary{font-size:calc(16px - 2pt);color:var(--muted);margin-top:13px;line-height:1.8}#adventurescan-root .inventory-summary strong{color:var(--ink);font-weight:500}#adventurescan-root .ended-panel{border:1px solid var(--line);background:var(--card);border-radius:4px;padding:22px;margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:15px}#adventurescan-root .ended-panel p{font-size:calc(16px - 2pt);color:var(--muted);margin-top:6px}#adventurescan-root .overlay{position:fixed;inset:0;background:#1e1e1e85;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:20;padding:20px}#adventurescan-root .result{width:480px;max-width:100%;background:var(--card);border:1px solid var(--line);border-radius:5px;padding:30px;box-shadow:0 18px 80px #1c1c1c55}#adventurescan-root .result h2{font-size:calc(28px - 2pt);margin:9px 0 10px}#adventurescan-root .result .result-description{font-size:calc(16px - 2pt);color:var(--muted);line-height:1.8}#adventurescan-root .result-icon{width:55px;height:55px;margin-bottom:15px;display:grid;place-items:center;border:1px solid #c7c7c7;border-radius:50%;background:var(--olive-light);color:var(--olive)}#adventurescan-root .result-icon svg{width:29px;height:29px}#adventurescan-root .loot-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:22px 0}#adventurescan-root .loot-item{background:#ebebeb;border:1px solid var(--line);padding:13px 9px;text-align:center;font-size:calc(16px - 2pt);border-radius:3px}#adventurescan-root .loot-item svg{display:block;margin:0 auto 6px}#adventurescan-root .loot-item strong{display:block;font-size:calc(16px - 2pt);margin-bottom:2px}#adventurescan-root .result-stats{display:flex;gap:20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;font-size:calc(16px - 2pt);color:var(--muted);margin-bottom:18px}#adventurescan-root .result-stats b{color:var(--ink);font-weight:600}#adventurescan-root .result-buttons{display:flex;gap:9px;flex-wrap:wrap}#adventurescan-root .result-buttons button{flex:1}#adventurescan-root .modal-close{display:block;text-align:center;margin:15px auto 0;background:none;border:0;font-size:calc(16px - 2pt);color:var(--muted);padding:7px}#adventurescan-root .toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:#f2f2f2;border:1px solid #6d6d6d;padding:12px 20px;box-shadow:0 5px 20px #1f1f1f25;border-radius:4px;z-index:30;font-size:calc(16px - 2pt);transition:opacity .2s,transform .2s;max-width:90vw;text-align:center}#adventurescan-root .toast.show{opacity:1;transform:translate(-50%,0)}#adventurescan-root .busy .ability,#adventurescan-root .busy .tactic{pointer-events:none}#adventurescan-root .draft-actions{display:flex;gap:10px}#adventurescan-root .creation-error{color:var(--red);font-size:calc(16px - 2pt)}#adventurescan-root .tips{display:flex;align-items:center;gap:8px;font-size:calc(16px - 2pt);color:var(--muted)}#adventurescan-root .help-note{border:1px solid var(--line);border-radius:3px;padding:10px 13px;background:#ededed;font-size:calc(16px - 2pt);margin-top:15px;color:var(--muted)}
@media(min-width:1441px){#adventurescan-root #app{padding-left:0;padding-right:0}}@media(max-width:1440px){#adventurescan-root #app{margin:0 44px}}@media(max-width:1080px){#adventurescan-root .game-grid{grid-template-columns:minmax(0,1fr) 260px;gap:20px}#adventurescan-root .side-panel{padding-left:19px}#adventurescan-root .scene{height:330px}#adventurescan-root .masthead{padding:0 30px}#adventurescan-root #app{margin:0 30px}#adventurescan-root .page-footer{padding-left:30px;padding-right:30px}#adventurescan-root .intro{grid-template-columns:1fr 280px;gap:25px}#adventurescan-root .family-tabs button{margin-right:18px;padding-right:8px}#adventurescan-root .resource-bars{min-width:155px;gap:10px}#adventurescan-root .ability{padding:11px 8px;gap:6px}#adventurescan-root .chapter-description{max-width:300px}#adventurescan-root .ability .ability-icon svg{width:17px;height:17px}}
@media(max-width:800px){#adventurescan-root .masthead{height:72px;padding:0 20px}#adventurescan-root .edition{font-size:calc(16px - 2pt);letter-spacing:.08em}#adventurescan-root .edition b{margin:0 5px}#adventurescan-root #app{margin:0 20px;padding-top:24px}#adventurescan-root .intro{grid-template-columns:1fr 210px;gap:20px}#adventurescan-root .intro-art{height:145px}#adventurescan-root .intro p{font-size:calc(16px - 2pt)}#adventurescan-root .game-grid{grid-template-columns:1fr}#adventurescan-root .side-panel{display:grid;grid-template-columns:1fr 1fr;gap:25px;border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:23px;margin-top:10px}#adventurescan-root .traveler-panel{border-top:0;margin:0;padding:0}#adventurescan-root .journal{max-height:240px}#adventurescan-root .scene{height:350px}#adventurescan-root .battle-heading h1{font-size:calc(28px - 2pt)}#adventurescan-root .chapter-description{font-size:calc(16px - 2pt);max-width:260px}#adventurescan-root .page-footer{padding:20px;flex-wrap:wrap}#adventurescan-root .preset{padding:13px 10px;gap:8px}#adventurescan-root .preset .sigil{width:28px;height:28px}#adventurescan-root .family-tabs button{font-size:calc(16px - 2pt);margin-right:20px}#adventurescan-root .identity{gap:12px}#adventurescan-root .field input{width:200px}#adventurescan-root .looks{gap:3px}#adventurescan-root .look{padding-left:10px;padding-right:10px}#adventurescan-root .family-tabs{margin-bottom:13px}#adventurescan-root .allocation-grid{gap:17px}#adventurescan-root .creation-bottom{align-items:end}#adventurescan-root .rule-note{font-size:calc(16px - 2pt)}#adventurescan-root .resource-bars{min-width:200px}}
@media(max-width:540px){#adventurescan-root .masthead{padding:0 16px}#adventurescan-root .wordmark{font-size:calc(16px - 2pt);gap:9px}#adventurescan-root .mark{width:30px;height:35px;font-size:calc(22px - 2pt)}#adventurescan-root .wordmark small{font-size:calc(16px - 2pt)}#adventurescan-root .mast-right{gap:12px}#adventurescan-root .edition{display:none}#adventurescan-root #app{margin:0 16px;padding-top:21px}#adventurescan-root .breadcrumb{gap:10px;letter-spacing:.05em;font-size:calc(16px - 2pt);margin-bottom:20px}#adventurescan-root .breadcrumb .sep{width:17px}#adventurescan-root .intro{grid-template-columns:1fr;gap:18px;margin-bottom:18px}#adventurescan-root .intro-art{height:125px}#adventurescan-root .intro h1{font-size:calc(31.2px - 2pt);max-width:350px}#adventurescan-root .intro p{max-width:400px}#adventurescan-root .identity{align-items:stretch;flex-wrap:wrap;gap:13px}#adventurescan-root .identity .field:first-child{flex:1;min-width:130px}#adventurescan-root .field input{width:100%}#adventurescan-root .field label{font-size:calc(16px - 2pt)}#adventurescan-root .look{font-size:calc(16px - 2pt);padding:8px 9px}#adventurescan-root .resume-button{width:100%;margin:0;text-align:left;padding:4px 0}#adventurescan-root .family-tabs button{font-size:calc(16px - 2pt);margin-right:22px}#adventurescan-root .preset-grid{grid-template-columns:1fr;gap:7px;margin-bottom:22px}#adventurescan-root .preset{min-height:64px;align-items:center;padding:12px}#adventurescan-root .preset p{font-size:calc(16px - 2pt)}#adventurescan-root .preset strong{font-size:calc(16px - 2pt)}#adventurescan-root .preset .sigil{width:33px;height:33px}#adventurescan-root .check-dot{margin-top:0}#adventurescan-root .allocation-grid{grid-template-columns:1fr;gap:22px}#adventurescan-root .allocation-heading h3{font-size:calc(18px - 2pt)}#adventurescan-root .skill-row{min-height:43px}#adventurescan-root .skill-title{font-size:calc(16px - 2pt)}#adventurescan-root .skill-input{height:34px;width:75px;font-size:calc(16px - 2pt)}#adventurescan-root .add-skill{font-size:calc(16px - 2pt);padding:9px 0}#adventurescan-root .creation-bottom{flex-direction:column;align-items:stretch;gap:14px}#adventurescan-root .creation-bottom .primary{width:100%}#adventurescan-root .rule-note{font-size:calc(16px - 2pt)}#adventurescan-root .battle-heading{display:block;margin-bottom:18px}#adventurescan-root .battle-heading h1{font-size:calc(28px - 2pt)}#adventurescan-root .chapter-description{text-align:left;max-width:100%;margin-top:10px}#adventurescan-root .scene{height:285px}#adventurescan-root .scene-top{top:16px;left:15px;right:15px}#adventurescan-root .scene-bottom{left:15px;right:15px;bottom:14px;font-size:calc(16px - 2pt)}#adventurescan-root .fighter{width:43%}#adventurescan-root .fighter-name{font-size:calc(16px - 2pt)}#adventurescan-root .fighter-detail{font-size:calc(16px - 2pt)}#adventurescan-root .intent{display:block;padding:13px 0}#adventurescan-root .intent-left{align-items:center}#adventurescan-root .intent p{font-size:calc(16px - 2pt)}#adventurescan-root .resource-bars{margin-top:15px;gap:22px}#adventurescan-root .resource label{font-size:calc(16px - 2pt)}#adventurescan-root .section-title{margin-top:18px}#adventurescan-root .section-title h2{font-size:calc(18px - 2pt)}#adventurescan-root .prep-grid{grid-template-columns:1fr}#adventurescan-root .prep-card{min-height:72px;padding:13px}#adventurescan-root .prep-card strong{font-size:calc(16px - 2pt)}#adventurescan-root .prep-card p{font-size:calc(16px - 2pt)}#adventurescan-root .prep-footer{align-items:stretch;flex-direction:column}#adventurescan-root .prep-footer .primary{width:100%}#adventurescan-root .actions{grid-template-columns:1fr;gap:8px}#adventurescan-root .ability{min-height:83px;padding:14px;gap:13px;align-items:center}#adventurescan-root .ability strong{font-size:calc(16px - 2pt);margin-bottom:4px}#adventurescan-root .ability p{font-size:calc(16px - 2pt);max-width:290px}#adventurescan-root .ability .cost{margin-top:4px}#adventurescan-root .ability .ability-icon svg{width:23px;height:23px}#adventurescan-root .ability .key-hint{display:none}#adventurescan-root .tactics{grid-template-columns:repeat(3,1fr);gap:7px}#adventurescan-root .tactic{font-size:calc(16px - 2pt);min-height:44px;padding:10px 5px}#adventurescan-root .tactic svg{width:16px}#adventurescan-root .turn-note{font-size:calc(16px - 2pt)}#adventurescan-root .side-panel{grid-template-columns:1fr;gap:22px;margin-top:12px}#adventurescan-root .journal{max-height:230px}#adventurescan-root .log{font-size:calc(16px - 2pt)}#adventurescan-root .journal-heading h2{font-size:calc(22px - 2pt)}#adventurescan-root .traveler-panel{border-top:1px solid var(--line);padding-top:18px}#adventurescan-root .listed-skill{font-size:calc(16px - 2pt);padding:7px 0}#adventurescan-root .skill-list{max-height:210px}#adventurescan-root .skill-tabs button{font-size:calc(16px - 2pt)}#adventurescan-root .capacity,#adventurescan-root .inventory-summary{font-size:calc(16px - 2pt)}#adventurescan-root .result{padding:24px}#adventurescan-root .result h2{font-size:calc(28px - 2pt)}#adventurescan-root .result-buttons{flex-direction:column}#adventurescan-root .result-stats{gap:15px;flex-wrap:wrap}#adventurescan-root .page-footer{padding:18px 16px;margin-top:30px;font-size:calc(16px - 2pt);gap:9px}#adventurescan-root .ended-panel{display:block;padding:19px}#adventurescan-root .ended-panel .primary{margin-top:16px;width:100%}#adventurescan-root .tips{font-size:calc(16px - 2pt)}#adventurescan-root .draft-actions{flex-direction:column}#adventurescan-root .new-label{font-size:calc(16px - 2pt)}#adventurescan-root .help-note{font-size:calc(16px - 2pt)}}
@media(prefers-reduced-motion:reduce){#adventurescan-root *{scroll-behavior:auto!important;transition:none!important;animation:none!important}#adventurescan-root .ability:hover{transform:none}}#adventurescan-root /* Ink edition: white paper,#adventurescan-root black doodles,#adventurescan-root color only where something happens. */
:root{--paper:#fff;--card:#fff;--ink:#19191b;--muted:#626266;--line:#d5d5d7;--olive:#27272b;--olive-light:#f1f1f2;--gold:#55555b;--red:#bd3147;--dark:#f5f5f3;--cyan:#007b9a;--cyan-light:#e8faff}#adventurescan-root{background:#fff}#adventurescan-root .masthead{border-bottom:2px solid var(--ink)}#adventurescan-root .wordmark{gap:12px;letter-spacing:0}#adventurescan-root .brand-icon{width:38px;height:38px;display:block;border-radius:3px}#adventurescan-root .brand-type{font-size:calc(18px - 2pt);font-weight:400;letter-spacing:-1px;line-height:1}#adventurescan-root .brand-type strong{font-weight:850}#adventurescan-root .brand-domain{font-weight:400}#adventurescan-root .brand-type small{font-size:calc(16px - 2pt);letter-spacing:1.2px;margin-top:7px;font-weight:500}#adventurescan-root .edition{font-weight:650;color:#555}#adventurescan-root .edition b{color:var(--cyan)}#adventurescan-root h1{font-family:'Afacad',sans-serif;font-weight:850;letter-spacing:-.055em}#adventurescan-root h2,#adventurescan-root h3{font-family:'Afacad',sans-serif;font-weight:750;letter-spacing:-.035em}#adventurescan-root .eyebrow{color:#555}#adventurescan-root .intro-art,#adventurescan-root .scene{background:#fffefa;border:2px solid var(--ink);border-radius:3px 9px 4px 8px;box-shadow:3px 4px 0 #1b1b1d}#adventurescan-root .intro-art{height:170px}#adventurescan-root .intro-art .art-label{background:#fffefaeb;padding:4px 7px;color:#333;left:9px;bottom:8px;border:1px solid #c9c9c5}#adventurescan-root .scene:after{box-shadow:none;border:0}#adventurescan-root .scene-top{top:14px;left:16px;right:16px;gap:28px}#adventurescan-root .fighter{background:#fffffff2;border:1.5px solid #222;padding:9px 11px;border-radius:3px 5px 2px 6px;color:var(--ink);box-shadow:2px 2px 0 #2222}#adventurescan-root .fighter-detail,#adventurescan-root .fighter-numbers{color:#58585d}#adventurescan-root .fighter-detail{margin-bottom:5px}#adventurescan-root .fighter-name{font-weight:750}#adventurescan-root .bar{background:#dedee1}#adventurescan-root .fighter .bar span{background:#242426}#adventurescan-root .enemy .bar span{background:#68686d}#adventurescan-root .scene-bottom{left:15px;right:15px;bottom:11px;color:#242426;letter-spacing:.1em}#adventurescan-root .scene-bottom>span{background:#fffffff0;border:1px solid #aaa;padding:5px 8px;border-radius:2px}#adventurescan-root .scene-bottom .turn-pill{border:1.5px solid var(--cyan);background:#e9faff;color:#005c76;font-weight:700;border-radius:4px 7px 3px 5px}#adventurescan-root .art-label{color:#333}#adventurescan-root .preset{border-radius:3px 7px 3px 5px}#adventurescan-root .preset strong{font-family:'Afacad',sans-serif;font-weight:750;font-size:calc(16px - 2pt)}#adventurescan-root .preset:hover{background:#f8fdff;border-color:var(--cyan)}#adventurescan-root .preset.selected{border-color:var(--ink);box-shadow:2px 3px 0 var(--ink);background:#fff}#adventurescan-root .preset .sigil{border:1px solid #222;background:#fff;color:#222;border-radius:5px 9px 4px 8px}#adventurescan-root .look.selected{background:#f2f2f3;border-color:#222}#adventurescan-root .family-tabs button.active{border-color:var(--cyan)}#adventurescan-root .check-dot{border-color:#b9b9bd}#adventurescan-root .selected .check-dot{background:#111}#adventurescan-root .new-label{color:#4e4e54;border-color:#b9b9be}#adventurescan-root .budget{color:#303035}#adventurescan-root .budget.invalid{color:#bd3147}#adventurescan-root .primary{border:2px solid #151518;border-radius:3px 7px 4px 6px;background:#151518;color:#fff;box-shadow:2px 3px 0 #bbb;min-height:46px}#adventurescan-root .primary:hover:not(:disabled){background:#00576e;border-color:#00576e;box-shadow:3px 4px 0 #79d6ed}#adventurescan-root .secondary,#adventurescan-root .prep-card,#adventurescan-root .ability{border-radius:3px 7px 4px 6px;background:#fff}#adventurescan-root .prep-card:hover:not(:disabled){border-color:var(--cyan);background:var(--cyan-light);box-shadow:2px 2px 0 #67d6ee}#adventurescan-root .prep-card.done{background:#f0fbf7;border-color:#339475}#adventurescan-root .prep-card .prep-icon{color:#333}#adventurescan-root .prepared-mark{color:#127452!important}#adventurescan-root .resource.mana .bar span{background:#058db6}#adventurescan-root .resource.stamina .bar span{background:#64646b}#adventurescan-root .intent-icon{background:#eee;color:#222;border:1px solid #555;border-radius:6px 9px 5px 8px}#adventurescan-root .intent-icon.danger{background:#fff0f1;color:#ad233c;border-color:#bd3147}#adventurescan-root .ability{border-color:#b9b9c0;border-top:3px solid var(--spell,#222)}#adventurescan-root .ability .ability-icon{color:var(--spell,#222)}#adventurescan-root .ability:hover:not(:disabled){border-color:var(--spell,var(--cyan));background:#fcfcff;box-shadow:2px 3px 0 color-mix(in srgb,var(--spell,#222) 25%,white)}#adventurescan-root .ability .cost{color:#56565d}#adventurescan-root .ability[data-tone=fire]{--spell:#d54a00}#adventurescan-root .ability[data-tone=void]{--spell:#8c32df}#adventurescan-root .ability[data-tone=arcane],#adventurescan-root .ability[data-tone=ward],#adventurescan-root .ability[data-tone=focus]{--spell:#007baf}#adventurescan-root .ability[data-tone=nature],#adventurescan-root .ability[data-tone=heal]{--spell:#008c58}#adventurescan-root .ability[data-tone=poison]{--spell:#557d00}#adventurescan-root .tactic:hover:not(:disabled),#adventurescan-root .secondary:hover:not(:disabled){border-color:var(--cyan);background:var(--cyan-light)}#adventurescan-root .tactic{border-radius:3px 6px 3px 5px}#adventurescan-root .ability:disabled,#adventurescan-root .tactic:disabled{opacity:.45}#adventurescan-root .ability:focus-visible,#adventurescan-root .tactic:focus-visible,#adventurescan-root button:focus-visible,#adventurescan-root a:focus-visible,#adventurescan-root input:focus-visible,#adventurescan-root select:focus-visible{outline-color:#009cc6}#adventurescan-root .log{color:#62626a}#adventurescan-root .log.player{color:#303036}#adventurescan-root .log.enemy{color:#923044}#adventurescan-root .log.gain{color:#16734e}#adventurescan-root .log.loot{color:#70502f}#adventurescan-root .log.story{font-family:'Afacad',sans-serif;font-size:calc(16px - 2pt)}#adventurescan-root .listed-skill .delta{color:#16734e}#adventurescan-root .status-tag{color:#32323a;background:#fff;border-color:#aaa}#adventurescan-root .toast{border-color:#333;background:#202024;color:#fff}#adventurescan-root .loot-item{background:#f5f5f6}#adventurescan-root .result-icon{background:#fff;border:2px solid #222;color:#222}#adventurescan-root .overlay{background:#10101588}#adventurescan-root .result{border:2px solid #222;border-radius:4px 12px 4px 9px;box-shadow:6px 7px 0 #0004}#adventurescan-root .help-note{background:#f5f5f6}#adventurescan-root .page-footer{color:#62626a}#adventurescan-root .page-footer>span:first-child{color:#333}#adventurescan-root .text-button:hover{color:var(--cyan)}
@media(max-width:800px){#adventurescan-root .brand-type{font-size:calc(18px - 2pt)}#adventurescan-root .brand-type small{font-size:calc(16px - 2pt);letter-spacing:.8px}#adventurescan-root .brand-icon{width:34px;height:34px}}
@media(max-width:540px){#adventurescan-root .brand-type{font-size:calc(18px - 2pt)}#adventurescan-root .brand-type small{font-size:calc(16px - 2pt);letter-spacing:.65px}#adventurescan-root .brand-icon{width:31px;height:31px}#adventurescan-root .wordmark{gap:8px}#adventurescan-root .intro-art{height:148px}#adventurescan-root .fighter{padding:7px 8px;width:46%}#adventurescan-root .fighter-detail{font-size:calc(16px - 2pt);letter-spacing:.01em}#adventurescan-root .fighter-numbers{font-size:calc(16px - 2pt)}#adventurescan-root .fighter-name{font-size:calc(16px - 2pt)}#adventurescan-root .scene-top{left:10px;right:10px;gap:17px;top:10px}#adventurescan-root .scene-bottom{left:9px;right:9px;font-size:calc(16px - 2pt);letter-spacing:.04em;gap:5px}#adventurescan-root .scene-bottom>span{padding:4px 5px}#adventurescan-root .chapter-description{font-size:calc(16px - 2pt)}#adventurescan-root .mast-right{gap:8px}#adventurescan-root .text-button{font-size:calc(16px - 2pt)}#adventurescan-root .battle-heading h1{font-size:calc(28px - 2pt)}}#adventurescan-root{--health-traveler:#03da03;--health-enemy:#ef4d46;--mana:#0563e2;--stamina:#feca02}#adventurescan-root .fighter .bar,#adventurescan-root .resource .bar{height:8px;background:#242631;border:1px solid #31343d;border-radius:3px}#adventurescan-root .fighter .bar span,#adventurescan-root .resource .bar span{background-image:linear-gradient(180deg,#ffffff38 0%,#ffffff12 45%,#00000018 46%,#00000018 100%)}#adventurescan-root .fighter .bar span{background-color:var(--health-traveler)}#adventurescan-root .fighter.enemy .bar span{background-color:var(--health-enemy)}#adventurescan-root .resource.mana .bar span{background-color:var(--mana);background-image:linear-gradient(180deg,#ffffff38 0%,#ffffff12 45%,#00000018 46%,#00000018 100%)}#adventurescan-root .resource.stamina .bar span{background-color:var(--stamina);background-image:linear-gradient(180deg,#ffffff38 0%,#ffffff12 45%,#00000018 46%,#00000018 100%)}#adventurescan-root /* Character models share equipment and combat rules. */
.identity{flex-wrap:wrap}#adventurescan-root .appearance-editor{width:600px;max-height:95dvh;overflow:auto}#adventurescan-root .appearance-preview{height:260px;margin:18px 0;border:1.5px solid var(--ink);border-radius:3px 8px 4px 6px;overflow:hidden;background:#fffefa}#adventurescan-root .appearance-preview canvas{width:100%;height:100%;display:block}#adventurescan-root .appearance-choices{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:23px}#adventurescan-root .edit-appearance{color:var(--cyan);padding:8px 0 0;font-size:calc(16px - 2pt)}#adventurescan-root .appearance-choices .field label{font-size:calc(16px - 2pt)}#adventurescan-root .appearance-choices .look{font-size:calc(16px - 2pt);min-height:44px}#adventurescan-root .appearance-choices .look.selected{border-color:var(--cyan);background:var(--cyan-light)}
@media(max-width:540px){#adventurescan-root .identity .field:first-child{flex-basis:100%}#adventurescan-root .appearance-editor{padding:20px}#adventurescan-root .appearance-preview{height:225px;margin:12px 0}#adventurescan-root .appearance-editor h2{font-size:calc(22px - 2pt)}#adventurescan-root .appearance-choices{gap:12px}#adventurescan-root .appearance-choices .look{padding-left:10px;padding-right:10px}}#adventurescan-root /* AdventureSCAN — chapter one. */
.breadcrumb button{padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;min-height:28px}#adventurescan-root .breadcrumb button:hover{color:var(--cyan)}#adventurescan-root .home-kicker{display:flex;justify-content:space-between;gap:15px;font-size:calc(16px - 2pt);letter-spacing:.14em;color:#666;padding:0 0 22px;border-bottom:1px solid #222;margin-bottom:32px}#adventurescan-root .home-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:65px;align-items:center}#adventurescan-root .home-hero h1{font-size:calc(clamp(35.2px,5.4vw,60.8px) - 2pt);letter-spacing:-.07em;margin:14px 0 8px;white-space:nowrap}#adventurescan-root .home-hero h1 span{font-weight:350;-webkit-text-stroke:1px #19191b;color:#fff}#adventurescan-root .home-hero h2{font:italic 28px/1.2 'Afacad',sans-serif,serif;margin-bottom:32px}#adventurescan-root .home-lead{font-size:calc(18px - 2pt);line-height:1.4;letter-spacing:-.025em;font-weight:600;margin-bottom:22px}#adventurescan-root .home-copy{font-size:calc(16px - 2pt);line-height:1.9;color:#64646a;max-width:490px}#adventurescan-root .home-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}#adventurescan-root .home-facts{display:flex;gap:18px;flex-wrap:wrap;margin-top:30px;font-size:calc(16px - 2pt);color:#606068}#adventurescan-root .home-facts span{display:flex;align-items:center;gap:5px}#adventurescan-root .home-facts svg{width:17px;height:17px}#adventurescan-root .import-traveler{margin-top:14px;color:var(--cyan)}#adventurescan-root .cover-art{position:relative;height:490px;border:2px solid #222;border-radius:3px 12px 5px 8px;box-shadow:5px 6px 0 #222;overflow:hidden;background:#fffefa}#adventurescan-root .cover-art canvas{display:block;width:100%;height:100%}#adventurescan-root .cover-caption{position:absolute;bottom:14px;left:16px;font-size:calc(16px - 2pt);letter-spacing:.15em;background:#fffefaee;border:1px solid #aaa;padding:5px 9px}#adventurescan-root .home-bottom{display:flex;justify-content:space-between;gap:40px;margin-top:43px;padding-top:23px;border-top:1px solid #222}#adventurescan-root .home-bottom p{max-width:690px;color:#67676d;font-size:calc(16px - 2pt);line-height:1.8}#adventurescan-root .home-bottom>span{font:italic 16px/1.2 'Afacad',sans-serif;text-align:right;white-space:nowrap}#adventurescan-root .prologue-progress{display:flex;gap:0;justify-content:space-between;max-width:700px;margin-bottom:35px;border-bottom:1px solid #ddd;font-size:calc(16px - 2pt);color:#999}#adventurescan-root .prologue-progress span{padding:10px 10px 12px 0}#adventurescan-root .prologue-progress .current{color:#111;border-bottom:2px solid #0095b7;font-weight:700}#adventurescan-root .prologue-progress .complete{color:#333}#adventurescan-root .story-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:70px;align-items:start}#adventurescan-root .story-copy h1{font-size:calc(38.4px - 2pt);max-width:550px;margin:12px 0 25px}#adventurescan-root .speaker{display:flex;gap:10px;align-items:center;font-size:calc(16px - 2pt);margin-bottom:18px}#adventurescan-root .speaker strong{font-size:calc(16px - 2pt)}#adventurescan-root .speaker span{color:#777}#adventurescan-root .story-copy blockquote{margin:0 0 24px;padding:0 0 0 20px;border-left:2px solid #222;font:13.3333px/1.9 'Afacad',sans-serif,serif;color:#36363c}#adventurescan-root .story-illustration{position:sticky;top:24px;height:500px;overflow:hidden;background:#fffefa;border:2px solid #222;border-radius:4px 10px 3px 8px;box-shadow:4px 5px 0 #222}#adventurescan-root .story-illustration canvas{width:100%;height:100%;display:block}#adventurescan-root .story-illustration>span{position:absolute;bottom:14px;left:16px;padding:5px 8px;background:#fffefaec;border:1px solid #aaa;font-size:calc(16px - 2pt);letter-spacing:.13em}#adventurescan-root .story-actions{display:flex;gap:10px;margin-top:26px}#adventurescan-root .story-actions .primary{white-space:normal}#adventurescan-root .hope-response{font:italic 16px/1.6 'Afacad',sans-serif,serif}#adventurescan-root .manifest{border:1px solid #777;padding:18px 20px;margin:20px 0;background:#fcfcf8;box-shadow:2px 3px 0 #d1d1ce}#adventurescan-root .manifest dl{display:grid;grid-template-columns:85px 1fr;gap:7px 10px;font-size:calc(16px - 2pt);margin:15px 0}#adventurescan-root .manifest dt{color:#777}#adventurescan-root .manifest dd{margin:0}#adventurescan-root .signature{border-top:1px solid #ccc;padding-top:12px;font:italic 16px 'Afacad',sans-serif,serif}#adventurescan-root .traveler-class{font-size:calc(16px - 2pt);color:#777;margin:-3px 0 10px}#adventurescan-root .key-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:25px;max-width:900px}#adventurescan-root .key-slot{display:flex;gap:9px;align-items:center;border:1px solid #d0d0d3;border-radius:3px 6px 3px 5px;padding:11px 13px;font-size:calc(16px - 2pt);color:#8c8c92;background:#fafafa}#adventurescan-root .key-slot b{margin-left:auto;font-weight:500}#adventurescan-root .key-slot.held{border-color:#333;background:#fff;color:#222}#adventurescan-root .key-slot.held b{color:#00865b;font-weight:800}#adventurescan-root .key-slot svg{width:19px;height:19px}#adventurescan-root .objective-card{border-top:2px solid #222;padding:17px 0 20px}#adventurescan-root .objective-card p{font-size:calc(16px - 2pt);font-weight:550;line-height:1.65;margin:12px 0}#adventurescan-root .rescue-count{font-size:calc(16px - 2pt);color:#666;display:flex;gap:7px;align-items:center}#adventurescan-root .rescue-count svg{width:17px;height:17px}#adventurescan-root .journal-open{width:100%;display:flex;align-items:center;justify-content:space-between;margin:0 0 20px}#adventurescan-root .campaign-grid .traveler-panel{margin-top:12px}#adventurescan-root .route-map{position:relative;height:540px;background:#fffefa;border:1.5px solid #333;border-radius:4px 9px 3px 7px;box-shadow:3px 4px 0 #252529;background-image:radial-gradient(#5551 .6px,transparent .7px);background-size:7px 7px}#adventurescan-root .route-lines{position:absolute;inset:0;width:100%;height:100%}#adventurescan-root .route-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:166px;display:flex;align-items:center;flex-direction:column;text-align:center;background:transparent;border:0;padding:8px;opacity:1!important}#adventurescan-root .route-seal{width:49px;height:49px;display:grid;place-items:center;background:#fff;border:1.5px solid #222;transform:rotate(-5deg);border-radius:5px 11px 4px 8px;box-shadow:2px 3px 0 #222;margin-bottom:10px}#adventurescan-root .route-seal svg{width:24px;height:24px;transform:rotate(5deg)}#adventurescan-root .route-node strong{font-size:calc(16px - 2pt);font-weight:700;margin-bottom:5px}#adventurescan-root .route-node>span:last-child{font-size:calc(16px - 2pt);line-height:1.5;color:#6f6f74;max-width:155px}#adventurescan-root .route-number{font-size:calc(16px - 2pt);letter-spacing:.14em;margin-bottom:7px;color:#777}#adventurescan-root .route-node.available:hover .route-seal,#adventurescan-root .route-node.available:focus-visible .route-seal{border-color:var(--cyan);background:var(--cyan-light);box-shadow:3px 4px 0 #77d8ed}#adventurescan-root .route-node.locked{color:#999}#adventurescan-root .route-node.locked .route-seal{border-color:#bbb;color:#aaa;box-shadow:2px 2px 0 #ddd;background:#f5f5f2}#adventurescan-root .route-node.cleared .route-seal{background:#222;color:#fff}#adventurescan-root .review-card{border:1px solid #ccc;margin-top:22px;padding:18px 20px;border-radius:3px}#adventurescan-root .review-card p{font:13.3333px/1.8 'Afacad',sans-serif;margin-top:10px}#adventurescan-root .story-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;margin-top:18px;border-top:1px solid #222;border-bottom:1px solid #ccc}#adventurescan-root .story-callout h2{font-size:calc(18px - 2pt);margin-bottom:7px}#adventurescan-root .story-callout p{font-size:calc(16px - 2pt);line-height:1.7;color:#666;max-width:440px}#adventurescan-root .supply-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:23px}#adventurescan-root .supply-row>span{display:flex;align-items:center;gap:8px;font-size:calc(16px - 2pt);color:#666}#adventurescan-root .supply-row svg{width:18px;height:18px}#adventurescan-root .document-details{border-bottom:1px solid #ccc;padding:14px 0;font-size:calc(16px - 2pt);line-height:1.8}#adventurescan-root .document-details summary{display:flex;gap:8px;align-items:center;cursor:pointer;font-weight:650;list-style:none}#adventurescan-root .document-details summary:after{content:'+';margin-left:auto}#adventurescan-root .document-details[open] summary:after{content:'−'}#adventurescan-root .document-details blockquote{font:italic 16px/1.8 'Afacad',sans-serif;margin:18px 0}#adventurescan-root .document-details>p{color:#777;font-size:calc(16px - 2pt)}#adventurescan-root .info-button{border:0;background:none;padding:0 3px;color:#007f9f;font-size:calc(16px - 2pt);line-height:1.2;min-width:26px;min-height:26px;cursor:help;vertical-align:middle}#adventurescan-root .info-button:hover{color:#222}#adventurescan-root .skill-help{border:0;background:transparent;padding:0;text-align:left;font:inherit;color:inherit;cursor:help}#adventurescan-root .skill-help:hover{text-decoration:underline;text-decoration-style:dotted}#adventurescan-root .help-copy{font-size:calc(16px - 2pt);line-height:1.8;margin:20px 0;color:#555}#adventurescan-root .journal-modal{width:700px;max-height:90dvh;overflow:auto}#adventurescan-root .journal-modal .journal-heading{margin-bottom:24px}#adventurescan-root .journal-entries article{padding:16px 0;border-bottom:1px solid #ddd}#adventurescan-root .journal-entries article p{font-size:calc(16px - 2pt);line-height:1.8;margin-top:8px;color:#555}#adventurescan-root .journal-modal .key-strip{margin-bottom:10px}#adventurescan-root .inventory-summary .info-button{font-size:calc(16px - 2pt);min-height:22px;min-width:20px}#adventurescan-root .foe-targets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}#adventurescan-root .foe-target{padding:10px 11px;border:1px solid #bbb;background:#fff;text-align:left;border-radius:3px 6px 3px 5px;min-height:77px}#adventurescan-root .foe-target strong{display:block;font-size:calc(16px - 2pt)}#adventurescan-root .foe-target>span{display:block;font-size:calc(16px - 2pt);color:#777;margin:4px 0 7px}#adventurescan-root .foe-target .bar{height:5px;background:#252631}#adventurescan-root .foe-target .bar span{background:var(--health-enemy)}#adventurescan-root .foe-target.selected{border:2px solid #008ca8;padding:9px 10px;background:#f4fcff}#adventurescan-root .foe-target:disabled{opacity:.55}#adventurescan-root .foe-target.selected:disabled{opacity:1}#adventurescan-root .intent p{line-height:1.7}#adventurescan-root .aftermath{padding:25px 0 12px}#adventurescan-root .aftermath h2{font-size:calc(22px - 2pt);margin:12px 0}#adventurescan-root .aftermath>p{font-size:calc(16px - 2pt);line-height:1.85;color:#555}#adventurescan-root .reward-line{font-size:calc(16px - 2pt);display:flex;align-items:center;gap:7px;margin:20px 0;padding:12px 0;border-top:1px solid #ccc;border-bottom:1px solid #ccc}#adventurescan-root .aftermath-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}#adventurescan-root .aftermath .turn-note{font-size:calc(16px - 2pt)}#adventurescan-root .chapter-description{line-height:1.7}#adventurescan-root .back-map{margin-top:25px;min-height:44px}#adventurescan-root .puzzle-story,#adventurescan-root .room-description{font-size:calc(16px - 2pt);line-height:1.9;color:#555;margin-bottom:20px}#adventurescan-root .puzzle-board{position:relative;max-width:520px;margin:25px auto 15px;padding:20px 45px 40px 62px;background:#f9f9f5;border:1.5px solid #222;border-radius:3px 9px 4px 6px;box-shadow:3px 4px 0 #222}#adventurescan-root .pipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;max-width:380px;margin:auto}#adventurescan-root .pipe-tile,#adventurescan-root .stone-tile{aspect-ratio:1;border:1px solid #a1a19c;background:#efefe9;position:relative;display:grid;place-items:center;padding:0;min-width:0}#adventurescan-root .pipe-tile svg{width:100%;height:100%;display:block}#adventurescan-root .pipe-tile.fixed{border-style:dashed;background:#e4e4de}#adventurescan-root .pipe-tile.rotatable{background:#fff;border:2px solid #222;border-radius:3px 6px 2px 5px}#adventurescan-root .pipe-tile.rotatable:hover:not(:disabled){border-color:#008ba9;background:#e7faff}#adventurescan-root .pipe-tile>span{position:absolute;bottom:3px;right:5px;background:#fffefacc;font-size:calc(16px - 2pt);font-weight:700;border-radius:2px;padding:1px 3px}#adventurescan-root .stone-tile{background:repeating-linear-gradient(35deg,#e9e9e3 0,#e9e9e3 4px,#deded8 4px,#deded8 5px);border-color:#c6c6c0}#adventurescan-root .stone-tile>span{font:29.3333px 'Afacad',sans-serif;color:#ccc}#adventurescan-root .inlet-label{position:absolute;top:47%;left:5px;font-size:calc(16px - 2pt);font-weight:750;color:#00788f;writing-mode:vertical-rl;transform:rotate(180deg)}#adventurescan-root .basin-label{position:absolute;bottom:11px;right:22px;font-size:calc(16px - 2pt);font-weight:700;letter-spacing:.06em;color:#00788f}#adventurescan-root .puzzle-feedback{font-size:calc(16px - 2pt);line-height:1.7;text-align:center;min-height:40px;margin:22px 0 16px;color:#555}#adventurescan-root .puzzle-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap}#adventurescan-root .scroll-card{border:1px solid #555;padding:25px;margin-top:22px;background:#fffefa;box-shadow:3px 4px 0 #ccc;transform:rotate(-.3deg)}#adventurescan-root .scroll-card h2{font:italic 22px 'Afacad',sans-serif;margin-top:14px}#adventurescan-root .scroll-card blockquote{font:13.3333px/1.9 'Afacad',sans-serif;margin:20px 0}#adventurescan-root .scroll-card>p{font-size:calc(16px - 2pt);line-height:1.8;color:#777}#adventurescan-root .room-description{margin-top:22px}#adventurescan-root .discovery-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}#adventurescan-root .discovery-card{border:1px solid #bbb;padding:22px 20px;border-radius:3px 8px 3px 6px;display:flex;align-items:start;flex-direction:column;gap:14px}#adventurescan-root .discovery-icon svg{width:29px;height:29px;color:#735088}#adventurescan-root .discovery-card h2{font-size:calc(18px - 2pt)}#adventurescan-root .discovery-card p{font-size:calc(16px - 2pt);line-height:1.85;color:#666;flex:1}#adventurescan-root .discovery-card button{margin-top:4px}#adventurescan-root .laboratory-scene{height:360px}#adventurescan-root .ending{max-width:930px;margin:auto;text-align:center;padding-top:20px}#adventurescan-root .ending h1{font-size:calc(51.2px - 2pt);margin:17px 0}#adventurescan-root .ending-lead{font:italic 18px/1.5 'Afacad',sans-serif;margin:0 0 30px}#adventurescan-root .ending-art{height:320px;border:2px solid #222;border-radius:3px 12px 4px 8px;box-shadow:4px 5px 0 #222;overflow:hidden;margin-bottom:40px}#adventurescan-root .ending-art canvas{display:block;width:100%;height:100%}#adventurescan-root .ending-copy{max-width:660px;text-align:left;margin:auto}#adventurescan-root .ending-copy p{font-size:calc(16px - 2pt);line-height:1.9;margin-bottom:18px;color:#555}#adventurescan-root .ending-copy blockquote{font:italic 16px/1.7 'Afacad',sans-serif;margin:30px 0;padding:0 22px;border-left:2px solid #222}#adventurescan-root .ending-stats{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #222;border-bottom:1px solid #222;margin:35px 0 25px;padding:20px 0;gap:10px;font-size:calc(16px - 2pt);color:#777}#adventurescan-root .ending-stats b{display:block;font-size:calc(18px - 2pt);font-weight:700;color:#222;margin-bottom:5px}#adventurescan-root .ending-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
@media(max-width:1100px){#adventurescan-root .home-hero{gap:35px}#adventurescan-root .home-hero h1{font-size:calc(46.4px - 2pt)}#adventurescan-root .cover-art{height:450px}#adventurescan-root .home-lead{font-size:calc(18px - 2pt)}#adventurescan-root .home-facts{gap:12px}#adventurescan-root .story-layout{gap:35px}#adventurescan-root .story-copy h1{font-size:calc(32.8px - 2pt)}#adventurescan-root .story-illustration{height:470px}#adventurescan-root .route-node{width:140px}#adventurescan-root .route-node strong{font-size:calc(16px - 2pt)}#adventurescan-root .route-node>span:last-child{font-size:calc(16px - 2pt)}#adventurescan-root .route-map{height:500px}#adventurescan-root .route-seal{width:43px;height:43px}#adventurescan-root .supply-row{align-items:start;flex-direction:column}}
@media(max-width:800px){#adventurescan-root .home-hero{grid-template-columns:1fr 1fr;gap:25px}#adventurescan-root .home-hero h1{font-size:calc(35.2px - 2pt)}#adventurescan-root .home-hero h2{font-size:calc(22px - 2pt)}#adventurescan-root .home-lead{font-size:calc(16px - 2pt)}#adventurescan-root .home-copy{font-size:calc(16px - 2pt)}#adventurescan-root .cover-art{height:420px}#adventurescan-root .home-actions{margin-top:22px}#adventurescan-root .home-facts{font-size:calc(16px - 2pt);margin-top:22px}#adventurescan-root .story-layout{grid-template-columns:1fr}#adventurescan-root .story-illustration{position:relative;top:0;height:260px;grid-row:1}#adventurescan-root .story-copy h1{font-size:calc(32px - 2pt);max-width:650px}#adventurescan-root .story-copy blockquote{font-size:calc(16px - 2pt)}#adventurescan-root .story-copy{max-width:700px}#adventurescan-root .route-node{width:165px}#adventurescan-root .route-map{height:530px}#adventurescan-root .campaign-grid .side-panel{grid-template-columns:1fr 1fr}#adventurescan-root .key-strip{max-width:100%}#adventurescan-root .objective-card{border-top:0;padding-top:0}#adventurescan-root .campaign-grid .traveler-panel{margin-top:0}#adventurescan-root .journal-open{margin-bottom:0}#adventurescan-root .mast-right{gap:15px}#adventurescan-root .ending h1{font-size:calc(41.6px - 2pt)}}
@media(max-width:540px){#adventurescan-root .home-kicker{font-size:calc(16px - 2pt);letter-spacing:.07em;margin-bottom:24px;line-height:1.6}#adventurescan-root .home-hero{grid-template-columns:1fr;gap:28px}#adventurescan-root .home-hero h1{font-size:calc(clamp(28px,10.7vw,43.2px) - 2pt);letter-spacing:-.06em;margin-top:11px}#adventurescan-root .home-hero h2{font-size:calc(22px - 2pt);margin-bottom:23px}#adventurescan-root .home-lead{font-size:calc(18px - 2pt)}#adventurescan-root .home-copy{font-size:calc(16px - 2pt)}#adventurescan-root .home-actions{flex-direction:column;align-items:stretch}#adventurescan-root .home-facts{font-size:calc(16px - 2pt);gap:14px}#adventurescan-root .cover-art{height:330px}#adventurescan-root .home-bottom{margin-top:28px;gap:20px;align-items:start}#adventurescan-root .home-bottom p{font-size:calc(16px - 2pt)}#adventurescan-root .home-bottom>span{font-size:calc(16px - 2pt)}#adventurescan-root .prologue-progress{font-size:calc(16px - 2pt);gap:5px;margin-bottom:20px}#adventurescan-root .prologue-progress span{padding-right:0}#adventurescan-root .story-copy h1{font-size:calc(28px - 2pt)}#adventurescan-root .speaker{align-items:start;flex-direction:column;gap:3px}#adventurescan-root .story-copy blockquote{font-size:calc(16px - 2pt);padding-left:15px;line-height:1.9}#adventurescan-root .story-illustration{height:230px}#adventurescan-root .story-layout{gap:25px}#adventurescan-root .story-actions{flex-wrap:wrap}#adventurescan-root .story-actions .primary{flex:1;font-size:calc(16px - 2pt)}#adventurescan-root .manifest{padding:16px}#adventurescan-root .manifest dl{grid-template-columns:65px 1fr;font-size:calc(16px - 2pt)}#adventurescan-root .signature{font-size:calc(16px - 2pt)}#adventurescan-root .key-strip{gap:5px;margin-bottom:20px}#adventurescan-root .key-slot{font-size:calc(16px - 2pt);padding:8px 6px;gap:4px}#adventurescan-root .key-slot svg{width:15px;height:15px}#adventurescan-root .key-slot b{font-size:calc(16px - 2pt)}#adventurescan-root .route-map{height:auto;padding:17px 15px;display:flex;flex-direction:column;gap:9px;background-image:none}#adventurescan-root .route-lines{display:none}#adventurescan-root .route-node{position:relative;left:auto;top:auto;transform:none;width:100%;min-height:92px;display:grid;grid-template-columns:18px 45px 1fr;grid-template-rows:auto auto;text-align:left;column-gap:12px;border-bottom:1px dashed #ccc;padding:10px 0}#adventurescan-root .route-node:last-child{border-bottom:0}#adventurescan-root .route-number{grid-row:1/3;margin:0}#adventurescan-root .route-seal{grid-column:2;grid-row:1/3;margin:0;width:40px;height:40px}#adventurescan-root .route-node strong{grid-column:3;align-self:end;font-size:calc(16px - 2pt);margin-bottom:4px}#adventurescan-root .route-node>span:last-child{grid-column:3;align-self:start;max-width:100%;font-size:calc(16px - 2pt)}#adventurescan-root .campaign-grid .side-panel{grid-template-columns:1fr;gap:22px}#adventurescan-root .story-callout{flex-direction:column;align-items:stretch;gap:15px}#adventurescan-root .story-callout .primary{width:100%}#adventurescan-root .supply-row{align-items:stretch}#adventurescan-root .supply-row>span{font-size:calc(16px - 2pt)}#adventurescan-root .foe-targets{gap:5px}#adventurescan-root .foe-target{min-height:84px;padding:9px 6px}#adventurescan-root .foe-target.selected{padding:8px 5px}#adventurescan-root .foe-target strong{font-size:calc(16px - 2pt);line-height:1.4}#adventurescan-root .foe-target>span{font-size:calc(16px - 2pt)}#adventurescan-root .aftermath{padding-top:22px}#adventurescan-root .aftermath h2{font-size:calc(22px - 2pt)}#adventurescan-root .aftermath>p{font-size:calc(16px - 2pt)}#adventurescan-root .aftermath-actions{flex-direction:column}#adventurescan-root .reward-line{font-size:calc(16px - 2pt);line-height:1.7}#adventurescan-root .puzzle-story,#adventurescan-root .room-description{font-size:calc(16px - 2pt)}#adventurescan-root .puzzle-board{padding:18px 23px 36px 30px;max-width:380px}#adventurescan-root .inlet-label{left:5px;font-size:calc(16px - 2pt)}#adventurescan-root .basin-label{font-size:calc(16px - 2pt);right:12px;bottom:10px}#adventurescan-root .puzzle-actions{gap:7px}#adventurescan-root .puzzle-actions .primary{width:100%}#adventurescan-root .puzzle-actions .secondary{flex:1}#adventurescan-root .puzzle-feedback{font-size:calc(16px - 2pt)}#adventurescan-root .scroll-card{padding:20px}#adventurescan-root .scroll-card blockquote{font-size:calc(16px - 2pt)}#adventurescan-root .discovery-grid{grid-template-columns:1fr;gap:12px}#adventurescan-root .discovery-card{padding:20px;gap:12px}#adventurescan-root .discovery-card button{width:100%}#adventurescan-root .laboratory-scene{height:285px}#adventurescan-root .journal-modal{padding:20px;max-height:92dvh}#adventurescan-root .journal-modal .journal-heading h2{font-size:calc(18px - 2pt)}#adventurescan-root .journal-modal .key-strip{gap:4px}#adventurescan-root .journal-entries article p{font-size:calc(16px - 2pt)}#adventurescan-root .ending{padding-top:8px}#adventurescan-root .ending h1{font-size:calc(34.4px - 2pt)}#adventurescan-root .ending-lead{font-size:calc(18px - 2pt)}#adventurescan-root .ending-art{height:240px;margin-bottom:30px}#adventurescan-root .ending-copy p{font-size:calc(16px - 2pt)}#adventurescan-root .ending-copy blockquote{font-size:calc(16px - 2pt);padding-left:16px}#adventurescan-root .ending-stats{grid-template-columns:1fr 1fr;gap:20px}#adventurescan-root .ending-stats b{font-size:calc(18px - 2pt)}#adventurescan-root .ending-actions{flex-direction:column}#adventurescan-root .mast-right{gap:11px}#adventurescan-root .mast-right .text-button{font-size:calc(16px - 2pt)}#adventurescan-root .masthead .brand-type small{display:none}#adventurescan-root .masthead .brand-type{font-size:calc(16px - 2pt)}#adventurescan-root .masthead .brand-icon{width:29px;height:29px}}#adventurescan-root .masthead .text-button{min-height:44px}

/* AdventureSCAN v0.5 — Afacad editorial system. All UI selectors are scoped. */
#adventurescan-root{--paper:#fafaf8;--card:#fff;--ink:#202020;--muted:#606060;--line:#d9d9d5;--serif:'Afacad',sans-serif;min-height:100svh;font:400 15.3333px/1.45 'Afacad',sans-serif;background:var(--paper);color:var(--ink);isolation:isolate}
#adventurescan-root *,#adventurescan-root *::before,#adventurescan-root *::after{box-sizing:border-box}
#adventurescan-root :is(button,input,select,textarea,summary,table){font-family:'Afacad',sans-serif}
#adventurescan-root :is(button,input,select,textarea){font-size:calc(16px - 2pt);line-height:1.3}
#adventurescan-root :is(button,summary){min-height:44px;touch-action:manipulation}
#adventurescan-root :is(p,blockquote,dd,dt,li){overflow-wrap:break-word}
#adventurescan-root p{font-size:calc(18px - 2pt);line-height:1.45}
#adventurescan-root h1{font:400 clamp(28px,5.5vw,57.6px)/1.03 'Afacad',sans-serif;letter-spacing:-.025em}
#adventurescan-root h2{font:500 19.3333px/1.15 'Afacad',sans-serif}
#adventurescan-root h3{font:500 19.3333px/1.2 'Afacad',sans-serif}
#adventurescan-root strong{font-weight:700}
#adventurescan-root .app-title{font-weight:400;font-size:calc(clamp(38.4px,7.2vw,80px) - 2pt);white-space:normal;overflow-wrap:anywhere;letter-spacing:-.04em}
#adventurescan-root .app-title strong{font-weight:700}
#adventurescan-root :is(.eyebrow,.edition,.home-kicker,.art-label,.cover-caption,.chapter-description,.help-note,.turn-note,.rule-note,.home-facts,.scene-bottom,.fighter-detail,.fighter-numbers,.resource label,.cost,.key-hint,.budget,.capacity,.new-label,.breadcrumb,.page-footer,.save-status){font-size:calc(16px - 2pt);line-height:1.4;letter-spacing:.025em}
#adventurescan-root .masthead{height:auto;min-height:106px;max-width:1512px;padding:22px 32px;gap:24px;flex-wrap:wrap}
#adventurescan-root .wordmark{gap:12px;letter-spacing:0}
#adventurescan-root .brand-icon{width:48px;height:48px;flex:0 0 auto}
#adventurescan-root .brand-type{font-size:calc(18px - 2pt);line-height:1.05}
#adventurescan-root .brand-type small{font-size:calc(16px - 2pt);line-height:1.3;letter-spacing:0;font-weight:400;display:block;margin-top:5px}
#adventurescan-root .mast-right{gap:18px;flex-wrap:wrap;min-width:0}
#adventurescan-root .text-button{font-size:calc(16px - 2pt);line-height:1.35;text-align:left;padding:8px 0}
#adventurescan-root #game-fullscreen{font-size:calc(16px - 2pt);min-height:44px;padding:9px 16px}
#adventurescan-root .save-status{max-width:1448px;margin:14px auto 0;padding:0 32px;color:var(--muted);min-height:23px}
#adventurescan-root #app{max-width:1448px;padding:38px 32px 0;margin:auto}
#adventurescan-root .page-footer{margin:54px auto 0;padding:28px 32px;max-width:1448px;justify-content:center}
#adventurescan-root .primary,#adventurescan-root .secondary{height:auto;min-height:48px;padding:12px 20px;font-size:calc(16px - 2pt);white-space:normal;text-align:center;justify-content:center;border-radius:4px;line-height:1.3;max-width:100%}
#adventurescan-root .primary{background:#242424;color:#fff;border-color:#242424}
#adventurescan-root :is(button,a,input,select,summary):focus-visible{outline:3px solid #0563e2;outline-offset:4px}
#adventurescan-root button:disabled{opacity:.62}
#adventurescan-root .home-hero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:45px;padding:38px 0 48px}
#adventurescan-root .home-hero h2{font-size:calc(28px - 2pt)}
#adventurescan-root .home-lead{font-size:calc(22px - 2pt);line-height:1.2}
#adventurescan-root :is(.home-copy,.home-bottom p){font-size:calc(18px - 2pt);max-width:680px}
#adventurescan-root .cover-art{height:550px;min-width:0}
#adventurescan-root .cover-caption{font-size:calc(16px - 2pt)}
#adventurescan-root .home-actions{display:flex;gap:14px;flex-wrap:wrap}
#adventurescan-root .home-facts{gap:15px;flex-wrap:wrap}
#adventurescan-root .home-facts span{display:flex;gap:6px;align-items:center}
#adventurescan-root .home-bottom{gap:24px;align-items:center}
#adventurescan-root .home-bottom>span{font-size:calc(18px - 2pt);white-space:nowrap}
#adventurescan-root .creation-intro{grid-template-columns:minmax(0,1fr) minmax(320px,440px);gap:48px;align-items:center;margin-bottom:28px}
#adventurescan-root .creation-intro p{font-size:calc(18px - 2pt);margin-top:22px;max-width:700px}
#adventurescan-root .creation-intro .intro-art{height:440px;background:#fff;border:1px solid var(--line)}
#adventurescan-root .identity{margin-top:26px;gap:24px;flex-wrap:wrap;align-items:end}
#adventurescan-root .field{min-width:0}
#adventurescan-root .field :is(label,.field-label){display:block;font-size:calc(16px - 2pt);letter-spacing:.025em;line-height:1.4;margin-bottom:8px;color:#555}
#adventurescan-root .field input:not([type=checkbox]),#adventurescan-root .field select{height:auto;min-height:48px;width:100%;max-width:100%;background:#fff;border:1px solid #aaa;border-radius:4px;padding:10px 12px;font-size:calc(16px - 2pt)}
#adventurescan-root .identity .field{flex:1 1 230px}
#adventurescan-root .look{height:auto;min-height:48px;font-size:calc(16px - 2pt);padding:10px 16px}
#adventurescan-root .looks{flex-wrap:wrap}
#adventurescan-root .customization{border:1px solid var(--line);padding:22px 26px;background:#fff;margin:0 0 32px;border-radius:4px}
#adventurescan-root .customization summary{font-size:calc(22px - 2pt);line-height:1.3;font-weight:500;cursor:pointer}
#adventurescan-root .appearance-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}
#adventurescan-root .tabard-choice{display:flex;align-items:center;gap:12px;font-size:calc(16px - 2pt);line-height:1.3;min-height:48px;align-self:end}
#adventurescan-root .tabard-choice input{width:22px;height:22px;min-height:22px;flex:0 0 22px;accent-color:#222}
#adventurescan-root .customization .help-note{margin-top:20px}
#adventurescan-root .family-tabs{flex-wrap:wrap;overflow:visible;gap:8px 20px;margin-bottom:24px}
#adventurescan-root .family-tabs button{font-size:calc(16px - 2pt);white-space:normal;margin:0;padding:12px 0}
#adventurescan-root .preset-grid{grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:18px;margin-bottom:36px}
#adventurescan-root .preset{padding:22px 18px;gap:12px;min-height:150px}
#adventurescan-root .preset strong{font:500 19.3333px/1.1 'Afacad',sans-serif}
#adventurescan-root .preset p{font-size:calc(16px - 2pt);line-height:1.4}
#adventurescan-root .check-dot{flex:0 0 17px;width:17px;height:17px}
#adventurescan-root .allocation-grid{gap:36px}
#adventurescan-root .allocation-heading{gap:12px;flex-wrap:wrap;margin-bottom:16px}
#adventurescan-root .allocation-heading h3{font-size:calc(22px - 2pt)}
#adventurescan-root .skill-title{font-size:calc(18px - 2pt);flex-wrap:wrap;line-height:1.3;min-width:0;max-width:calc(100% - 110px)}
#adventurescan-root .skill-row{min-height:62px;gap:18px;padding:9px 0}
#adventurescan-root .skill-input{flex:0 0 92px;width:92px;height:44px;font-size:calc(16px - 2pt);padding:7px}
#adventurescan-root .add-skill{font-size:calc(16px - 2pt);padding:12px 0;min-height:48px;white-space:normal}
#adventurescan-root .creation-bottom{gap:28px;align-items:start}
#adventurescan-root .creation-bottom .primary{flex:0 0 auto}
#adventurescan-root .creation-error{font-size:calc(16px - 2pt);color:#a22121;margin-top:10px}
#adventurescan-root .story-layout{grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);gap:44px;align-items:start}
#adventurescan-root .story-copy blockquote{font:400 15.3333px/1.5 'Afacad',sans-serif;margin:26px 0}
#adventurescan-root .speaker strong{font-size:calc(18px - 2pt)}
#adventurescan-root .speaker span{font-size:calc(16px - 2pt)}
#adventurescan-root .story-illustration{height:560px;min-width:0}
#adventurescan-root .story-illustration>span{font-size:calc(16px - 2pt)}
#adventurescan-root .story-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px;align-items:center}
#adventurescan-root .prologue-progress{gap:12px 24px;flex-wrap:wrap;margin:0 0 28px}
#adventurescan-root .prologue-progress span{font-size:calc(16px - 2pt)}
#adventurescan-root .optional-question{border-top:1px solid var(--line);padding-top:20px;margin-top:24px;display:flex;align-items:start;flex-direction:column;gap:10px}
#adventurescan-root .hope-response{font-size:calc(18px - 2pt)}
#adventurescan-root .manifest{padding:24px;max-width:100%;margin-top:24px}
#adventurescan-root .manifest dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px}
#adventurescan-root .manifest dt{font-size:calc(16px - 2pt)}
#adventurescan-root .manifest dd{font-size:calc(16px - 2pt);margin:0}
#adventurescan-root .signature{font:500 15.3333px/1.3 'Afacad',sans-serif;margin-top:22px}
#adventurescan-root .opening{max-width:1180px;margin:auto}
#adventurescan-root .opening-progress{display:flex;gap:12px;margin:0 0 20px}
#adventurescan-root .opening-progress span{font-size:calc(16px - 2pt);width:38px;height:38px;display:grid;place-items:center;border-bottom:2px solid #ddd;color:#666}
#adventurescan-root .opening-progress .current{color:#222;border-color:#222;font-weight:700}
#adventurescan-root .opening-illustration{position:relative;height:440px;border:1px solid var(--line);background:#fff;overflow:hidden}
#adventurescan-root .opening-illustration canvas{display:block;width:100%;height:100%}
#adventurescan-root .opening-illustration>span{position:absolute;bottom:12px;left:16px;font-size:calc(16px - 2pt);letter-spacing:.04em;background:#ffffffed;padding:5px 10px;max-width:calc(100% - 32px)}
#adventurescan-root .opening-copy{max-width:960px;margin:30px auto 0}
#adventurescan-root .opening-copy h1{font-size:calc(clamp(28px,5vw,48px) - 2pt);margin:12px 0 22px}
#adventurescan-root .opening-copy p{font-size:calc(18px - 2pt)}
#adventurescan-root .opening-copy blockquote{font:400 italic 18px/1.45 'Afacad',sans-serif;margin:24px 0;border-left:2px solid #bbb;padding-left:20px}
#adventurescan-root .game-grid{grid-template-columns:minmax(0,1fr) 330px;gap:36px;align-items:start}
#adventurescan-root .game-grid>*,#adventurescan-root .side-panel>*{min-width:0}
#adventurescan-root .battle-heading{align-items:start;gap:24px;margin-bottom:28px}
#adventurescan-root .battle-heading p{font-size:calc(16px - 2pt);max-width:410px}
#adventurescan-root .key-strip{gap:12px;margin-bottom:26px;flex-wrap:wrap}
#adventurescan-root .key-slot{flex:1 1 190px;padding:12px;gap:10px}
#adventurescan-root .key-slot span,#adventurescan-root .key-slot b{font-size:calc(16px - 2pt)}
#adventurescan-root .route-map{height:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:22px;background:#fff;border:1px solid var(--line)}
#adventurescan-root .route-lines{display:none}
#adventurescan-root .route-node{position:static;transform:none;left:auto;top:auto;width:auto;min-height:190px;border:1px solid var(--line);padding:22px;display:flex;flex-direction:column;align-items:start;text-align:left;gap:10px;border-radius:4px;background:#fafaf8}
#adventurescan-root .route-node:hover{transform:none}
#adventurescan-root .route-number{margin:0;font-size:calc(16px - 2pt)}
#adventurescan-root .route-seal{margin:0;width:42px;height:42px}
#adventurescan-root .route-node strong{font:500 15.3333px/1.15 'Afacad',sans-serif;margin:0}
#adventurescan-root .route-node>span:last-child{font-size:calc(16px - 2pt);max-width:none}
#adventurescan-root .objective-card p{font-size:calc(18px - 2pt)}
#adventurescan-root .rescue-count,#adventurescan-root .inventory-summary{font-size:calc(16px - 2pt)}
#adventurescan-root .traveler-class{font-size:calc(16px - 2pt);margin-top:8px}
#adventurescan-root .listed-skill{gap:12px;min-height:44px;font-size:calc(16px - 2pt);align-items:start}
#adventurescan-root .skill-help{font-size:calc(16px - 2pt);max-width:70%;text-align:left}
#adventurescan-root .delta{font-size:calc(16px - 2pt)}
#adventurescan-root .skill-tabs{gap:12px;flex-wrap:wrap}
#adventurescan-root .skill-tabs button{font-size:calc(16px - 2pt)}
#adventurescan-root .capacity{gap:12px;flex-wrap:wrap}
#adventurescan-root .supply-row{flex-wrap:wrap;gap:16px;margin-top:26px}
#adventurescan-root .supply-row>span{font-size:calc(16px - 2pt);flex:1 1 300px}
#adventurescan-root .story-callout{flex-wrap:wrap;gap:22px;padding:26px}
#adventurescan-root .story-callout p{font-size:calc(18px - 2pt)}
#adventurescan-root .scene{height:480px;overflow:hidden}
#adventurescan-root .scene-top{padding:20px;gap:20px}
#adventurescan-root .fighter{width:42%;min-width:0;max-width:290px}
#adventurescan-root .fighter-name{font:500 15.3333px/1.15 'Afacad',sans-serif;overflow-wrap:anywhere}
#adventurescan-root .fighter-detail,#adventurescan-root .fighter-numbers{font-size:calc(16px - 2pt);letter-spacing:0}
#adventurescan-root .scene-bottom{gap:12px;flex-wrap:wrap;padding:12px 18px;background:#ffffffed}
#adventurescan-root .turn-pill{font-size:calc(16px - 2pt);max-width:100%;white-space:normal}
#adventurescan-root .intent{padding:22px 0;gap:24px;flex-wrap:wrap}
#adventurescan-root .intent-left{min-width:0;flex:1 1 300px}
#adventurescan-root .intent-left strong{font-size:calc(18px - 2pt)}
#adventurescan-root .intent-left p{font-size:calc(16px - 2pt)}
#adventurescan-root .resource-bars{width:auto;min-width:250px;flex:1 1 250px;gap:14px}
#adventurescan-root .resource label{font-size:calc(16px - 2pt)}
#adventurescan-root .status-tags{gap:8px;flex-wrap:wrap}
#adventurescan-root .status-tags span{font-size:calc(16px - 2pt);padding:6px 10px}
#adventurescan-root .section-title{flex-wrap:wrap;gap:14px;align-items:baseline}
#adventurescan-root .section-title small{font-size:calc(16px - 2pt)}
#adventurescan-root .prep-description{font-size:calc(18px - 2pt);margin-top:12px}
#adventurescan-root .prep-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:22px}
#adventurescan-root .prep-card{padding:18px;gap:12px;min-height:110px}
#adventurescan-root .prep-card strong{font-size:calc(18px - 2pt);line-height:1.2}
#adventurescan-root .prep-card p{font-size:calc(16px - 2pt)}
#adventurescan-root .prep-footer{gap:22px;flex-wrap:wrap;margin-top:24px}
#adventurescan-root .prep-footer p{font-size:calc(16px - 2pt);flex:1 1 300px}
#adventurescan-root .actions{gap:14px;margin-top:24px;grid-template-columns:1fr}
#adventurescan-root .ability{padding:20px;gap:20px;min-height:110px;height:auto}
#adventurescan-root .ability strong{font-size:calc(18px - 2pt);line-height:1.15}
#adventurescan-root .ability p{font-size:calc(16px - 2pt);line-height:1.35;margin:8px 0}
#adventurescan-root .ability .cost{font-size:calc(16px - 2pt)}
#adventurescan-root .ability[data-tone=holy] .ability-icon{color:#b48800;background:#fff7d2}
#adventurescan-root .tactics{flex-wrap:wrap;gap:10px;display:flex;margin-top:22px}
#adventurescan-root .tactic{font-size:calc(16px - 2pt);padding:12px 14px;flex:1 1 125px;white-space:normal;min-height:48px}
#adventurescan-root .turn-note{font-size:calc(16px - 2pt);line-height:1.5;margin-top:18px}
#adventurescan-root .journal-heading{flex-wrap:wrap;gap:12px}
#adventurescan-root .journal-heading span{font-size:calc(16px - 2pt)}
#adventurescan-root .journal{max-height:480px}
#adventurescan-root .log{font-size:calc(16px - 2pt);line-height:1.45;padding:12px 0}
#adventurescan-root .foe-targets{gap:10px}
#adventurescan-root .foe-target{padding:14px 10px;min-height:110px}
#adventurescan-root .foe-target.selected{padding:13px 9px}
#adventurescan-root .foe-target strong{font-size:calc(16px - 2pt)}
#adventurescan-root .foe-target>span{font-size:calc(16px - 2pt)}
#adventurescan-root .reward-line{font-size:calc(16px - 2pt)}
#adventurescan-root .aftermath>p{font-size:calc(18px - 2pt)}
#adventurescan-root .aftermath-actions{gap:16px;flex-wrap:wrap}
#adventurescan-root .pipe-tile{min-height:0}
#adventurescan-root .pipe-tile span{font-size:calc(16px - 2pt)}
#adventurescan-root .puzzle-board{max-width:520px;padding:48px 30px 46px;margin:26px auto}
#adventurescan-root .inlet-label{left:15px;top:14px;transform:none;font-size:calc(16px - 2pt)}
#adventurescan-root .basin-label{font-size:calc(16px - 2pt);bottom:12px;right:20px}
#adventurescan-root .puzzle-actions{gap:12px;flex-wrap:wrap}
#adventurescan-root .puzzle-feedback{font-size:calc(18px - 2pt)}
#adventurescan-root .scroll-card blockquote{font-size:calc(18px - 2pt);line-height:1.5}
#adventurescan-root .discovery-grid{grid-template-columns:1fr;gap:22px}
#adventurescan-root .discovery-card{padding:26px}
#adventurescan-root .discovery-card p{font-size:calc(18px - 2pt)}
#adventurescan-root .document-details{font-size:calc(16px - 2pt)}
#adventurescan-root .document-details blockquote{font:400 15.3333px/1.5 'Afacad',sans-serif;margin:20px 0}
#adventurescan-root .overlay{padding:24px;z-index:2000;background:#101010a8;overflow:auto;align-items:center}
#adventurescan-root .result{width:min(760px,100%);max-height:90dvh;overflow:auto;padding:32px;background:#fff;border-radius:5px;font-family:'Afacad',sans-serif}
#adventurescan-root .result p,#adventurescan-root .help-copy{font-size:calc(18px - 2pt);line-height:1.45}
#adventurescan-root .result h2{font-size:calc(28px - 2pt);margin:12px 0 22px}
#adventurescan-root .result-buttons{gap:14px;flex-wrap:wrap;display:flex;padding-top:20px}
#adventurescan-root .appearance-editor{width:min(960px,100%)}
#adventurescan-root .appearance-preview{height:350px;margin:22px 0;border:1px solid var(--line);background:#fff}
#adventurescan-root .appearance-preview canvas{display:block;width:100%;height:100%}
#adventurescan-root .appearance-editor .appearance-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
#adventurescan-root .appearance-editor .result-buttons{position:sticky;bottom:-32px;background:#fff;border-top:1px solid var(--line);padding:16px 0 8px}
#adventurescan-root .journal-modal{width:min(960px,100%);max-height:90dvh}
#adventurescan-root .journal-entries article p{font-size:calc(18px - 2pt)}
#adventurescan-root .replay-intro{margin:18px 0}
#adventurescan-root .opening-replay{width:min(1120px,100%)}
#adventurescan-root .opening-replay .opening-illustration{height:340px}
#adventurescan-root .close-replay{margin-left:auto;display:block;margin-bottom:16px}
#adventurescan-root .ending-copy p{font-size:calc(18px - 2pt)}
#adventurescan-root .ending-copy blockquote{font:400 italic 22px/1.4 'Afacad',sans-serif}
#adventurescan-root .ending-stats{gap:28px}
#adventurescan-root .ending-stats span{font-size:calc(16px - 2pt)}
#adventurescan-root .ending-stats b{font-size:calc(28px - 2pt)}
#adventurescan-root .toast{font-size:calc(16px - 2pt);line-height:1.4;max-width:calc(100% - 32px);padding:14px 22px;z-index:3000;white-space:normal;text-align:center}
#adventurescan-root .info-button{font-size:calc(16px - 2pt);width:44px;height:44px;vertical-align:middle}
#adventurescan-root .load-error{padding:40px 0;max-width:800px}
#adventurescan-root .load-error p{margin:24px 0}
#adventurescan-root.expanded-view{position:fixed;inset:0;z-index:2147483000;overflow:auto;width:100%;height:100dvh;max-width:none}
#adventurescan-root:fullscreen{overflow:auto;width:100%;height:100dvh;background:var(--paper)}
@media(max-width:1100px){
 #adventurescan-root .game-grid{grid-template-columns:minmax(0,1fr)}
 #adventurescan-root .side-panel{display:grid;grid-template-columns:1fr 1fr;gap:30px}
 #adventurescan-root .home-hero{gap:30px}
 #adventurescan-root .story-layout{gap:28px;grid-template-columns:1fr 1fr}
 #adventurescan-root .appearance-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 #adventurescan-root .masthead{padding:20px;gap:16px}
 #adventurescan-root .mast-right{gap:14px;width:100%}
 #adventurescan-root .edition{margin-right:auto}
 #adventurescan-root .brand-type small{display:block;font-size:calc(16px - 2pt)}
 #adventurescan-root .brand-type{font-size:calc(18px - 2pt)}
 #adventurescan-root .brand-icon{width:42px;height:42px}
 #adventurescan-root #app{padding:28px 20px 0}
 #adventurescan-root .save-status{padding:0 20px;font-size:calc(16px - 2pt)}
 #adventurescan-root .page-footer{padding:24px 20px;font-size:calc(16px - 2pt)}
 #adventurescan-root .home-kicker{flex-wrap:wrap;gap:10px}
 #adventurescan-root .home-hero{grid-template-columns:1fr;gap:28px;padding-top:28px}
 #adventurescan-root .home-hero .cover-art{height:380px}
 #adventurescan-root .home-actions>*{flex:1 1 210px}
 #adventurescan-root .home-bottom{flex-direction:column;align-items:start;gap:20px}
 #adventurescan-root .home-lead{font-size:calc(22px - 2pt)}
 #adventurescan-root .home-bottom>span{font-size:calc(18px - 2pt)}
 #adventurescan-root .creation-intro{grid-template-columns:1fr;gap:24px}
 #adventurescan-root .creation-intro .intro-art{height:380px}
 #adventurescan-root .appearance-fields,#adventurescan-root .appearance-editor .appearance-fields{grid-template-columns:1fr}
 #adventurescan-root .customization{padding:20px}
 #adventurescan-root .family-tabs{gap:6px 18px}
 #adventurescan-root .family-tabs button{font-size:calc(16px - 2pt)}
 #adventurescan-root .allocation-grid{grid-template-columns:1fr;gap:32px}
 #adventurescan-root .creation-bottom{flex-direction:column;gap:20px}
 #adventurescan-root .creation-bottom .primary{width:100%}
 #adventurescan-root .preset-grid{grid-template-columns:1fr}
 #adventurescan-root .preset{min-height:110px}
 #adventurescan-root .story-layout{grid-template-columns:1fr;gap:26px}
 #adventurescan-root .story-illustration{grid-row:1;height:380px}
 #adventurescan-root .story-copy blockquote{font-size:calc(18px - 2pt)}
 #adventurescan-root .story-actions>*{flex:1 1 200px}
 #adventurescan-root .manifest{padding:18px}
 #adventurescan-root .manifest dl{grid-template-columns:1fr;gap:5px}
 #adventurescan-root .manifest dd{margin-bottom:12px}
 #adventurescan-root .opening-illustration{height:300px}
 #adventurescan-root .opening-illustration>span{font-size:calc(16px - 2pt)}
 #adventurescan-root .opening-copy{margin-top:24px}
 #adventurescan-root .opening-copy p{font-size:calc(18px - 2pt)}
 #adventurescan-root .battle-heading{flex-direction:column;gap:18px}
 #adventurescan-root .key-slot{flex:1 1 130px}
 #adventurescan-root .route-map{grid-template-columns:1fr;padding:16px}
 #adventurescan-root .route-node{min-height:160px;padding:20px}
 #adventurescan-root .side-panel{grid-template-columns:1fr;gap:30px}
 #adventurescan-root .scene{height:430px}
 #adventurescan-root .scene-top{padding:16px 12px;gap:10px}
 #adventurescan-root .fighter{width:47%;max-width:none}
 #adventurescan-root .fighter-name{font-size:calc(18px - 2pt)}
 #adventurescan-root .fighter-numbers,#adventurescan-root .fighter-detail{font-size:calc(16px - 2pt)}
 #adventurescan-root .scene-bottom{padding:10px;gap:8px}
 #adventurescan-root .scene-bottom span{font-size:calc(16px - 2pt)}
 #adventurescan-root .intent{padding:22px 0;gap:20px}
 #adventurescan-root .intent-left,#adventurescan-root .resource-bars{min-width:0;flex-basis:100%}
 #adventurescan-root .prep-grid{grid-template-columns:1fr}
 #adventurescan-root .prep-card{min-height:100px}
 #adventurescan-root .ability{padding:18px 14px;gap:12px}
 #adventurescan-root .ability strong{font-size:calc(18px - 2pt)}
 #adventurescan-root .ability p{font-size:calc(16px - 2pt)}
 #adventurescan-root .foe-targets{flex-wrap:wrap;display:flex}
 #adventurescan-root .foe-target{flex:1 1 120px;min-height:100px}
 #adventurescan-root .foe-target strong{font-size:calc(16px - 2pt)}
 #adventurescan-root .aftermath-actions{flex-direction:column}
 #adventurescan-root .puzzle-board{padding:48px 14px 46px}
 #adventurescan-root .pipe-tile span{font-size:calc(16px - 2pt)}
 #adventurescan-root .inlet-label{left:12px;font-size:calc(16px - 2pt)}
 #adventurescan-root .basin-label{font-size:calc(16px - 2pt);right:12px}
 #adventurescan-root .puzzle-actions>*{flex:1 1 140px}
 #adventurescan-root .discovery-card{padding:22px}
 #adventurescan-root .overlay{padding:12px}
 #adventurescan-root .result{padding:22px;max-height:94dvh;width:100%}
 #adventurescan-root .result h2{font-size:calc(22px - 2pt)}
 #adventurescan-root .appearance-preview{height:300px}
 #adventurescan-root .appearance-editor .result-buttons{bottom:-22px}
 #adventurescan-root .result-buttons>*{flex:1 1 150px}
 #adventurescan-root .opening-replay .opening-illustration{height:250px}
 #adventurescan-root .ending-art{height:330px}
 #adventurescan-root .ending-stats{grid-template-columns:1fr 1fr;gap:24px}
 #adventurescan-root .ending-actions{flex-direction:column;gap:16px}
}
@media(prefers-reduced-motion:reduce){#adventurescan-root *,#adventurescan-root *::before,#adventurescan-root *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

#adventurescan-root #app *,#adventurescan-root .masthead *,#adventurescan-root .overlay *,#adventurescan-root .page-footer{font-family:'Afacad',sans-serif}
#adventurescan-root .app-tooltip{position:fixed;z-index:4000;max-width:min(330px,calc(100vw - 32px));padding:12px 16px;background:#242424;color:#fff;font:400 13.3333px/1.4 'Afacad',sans-serif;border-radius:4px;box-shadow:0 3px 12px #0003;pointer-events:none;overflow-wrap:break-word}
/* Keep the same branding readable at every breakpoint. */
#adventurescan-root .masthead .brand-type{font-size:calc(18px - 2pt);line-height:1.1}
#adventurescan-root .masthead .brand-type small{display:block;font-size:calc(16px - 2pt);line-height:1.35;letter-spacing:0;white-space:normal}
#adventurescan-root .masthead .brand-icon{width:44px;height:44px}
#adventurescan-root .masthead .edition{display:block;font-size:calc(16px - 2pt)}
#adventurescan-root{--health-traveler:#03da03;--health-enemy:#ef4d46;--mana:#0563e2;--stamina:#feca02}
#adventurescan-root .inlet-label{writing-mode:horizontal-tb}
#adventurescan-root .art-label{color:#222;background:#fffefae8;padding:5px 8px;max-width:calc(100% - 32px)}

#adventurescan-root .puzzle-story,#adventurescan-root .room-description,#adventurescan-root .review-card p{font-size:calc(18px - 2pt)}

/* v0.5.1: compact readable typography and proportional WordPress embeds. */
#adventurescan-root{font-size:calc(18px - 2pt);line-height:1.5}
#adventurescan-root p{font-size:calc(18px - 2pt);line-height:1.5}
#adventurescan-root :is(button,input,select,textarea){font-size:calc(16px - 2pt)}
#adventurescan-root h1{font-size:calc(clamp(30px,4.2vw,48px) - 2pt);line-height:1.08}
#adventurescan-root h2{font-size:calc(25px - 2pt);line-height:1.2}
#adventurescan-root h3{font-size:calc(22px - 2pt);line-height:1.25}
#adventurescan-root .masthead{min-height:78px;padding:16px 28px;gap:18px}
#adventurescan-root .masthead .brand-type{font-size:calc(22px - 2pt)}
#adventurescan-root .masthead .brand-icon{width:38px;height:38px}
#adventurescan-root .masthead .brand-type small{font-size:calc(16px - 2pt);margin-top:3px}
#adventurescan-root #app{padding:26px 28px 0}
#adventurescan-root .save-status{padding:0 28px;margin-top:10px}
#adventurescan-root .home-kicker{padding-bottom:16px;margin-bottom:12px}
#adventurescan-root .home-hero{gap:32px;padding:24px 0 28px;align-items:center}
#adventurescan-root #app .home-hero .app-title{font-size:calc(clamp(36px,4.6vw,58px) - 2pt);white-space:normal;line-height:1.02;letter-spacing:-.045em;margin:10px 0 8px}
#adventurescan-root .home-hero h2{font-size:calc(28px - 2pt);margin-bottom:24px}
#adventurescan-root .home-lead{font-size:calc(24px - 2pt);line-height:1.3;margin-bottom:20px}
#adventurescan-root .home-hero .home-copy{font-size:calc(18px - 2pt);line-height:1.55;max-width:60ch}
#adventurescan-root .home-hero .cover-art{height:clamp(300px,34vw,400px);min-height:0;min-width:0;align-self:center}
#adventurescan-root .home-actions{gap:12px;margin-top:22px;flex-direction:row;align-items:stretch}
#adventurescan-root .home-actions>*{flex:0 1 auto}
#adventurescan-root .home-facts{margin-top:22px;gap:10px 16px;line-height:1.4}
#adventurescan-root .home-bottom{margin-top:18px;padding-top:18px;gap:20px}
#adventurescan-root .home-bottom p{font-size:calc(18px - 2pt);line-height:1.5}
#adventurescan-root .home-bottom>span{font-size:calc(18px - 2pt)}
#adventurescan-root .primary,#adventurescan-root .secondary{font-size:calc(16px - 2pt);min-height:44px;padding:10px 16px}
#adventurescan-root .creation-intro .intro-art{height:360px}
#adventurescan-root .creation-intro p{font-size:calc(18px - 2pt);line-height:1.5}
#adventurescan-root .customization{padding:18px 22px;margin-bottom:26px}
#adventurescan-root .customization summary{font-size:calc(22px - 2pt)}
#adventurescan-root .appearance-fields{gap:16px}
#adventurescan-root .appearance-preview{height:300px}
#adventurescan-root .story-copy blockquote{font-size:calc(20px - 2pt);line-height:1.5}
#adventurescan-root .story-illustration{height:420px}
#adventurescan-root .opening-illustration{height:360px}
#adventurescan-root .opening-copy{margin-top:24px}
#adventurescan-root .opening-copy h1{font-size:calc(clamp(30px,4.2vw,44px) - 2pt)}
#adventurescan-root .opening-copy p,#adventurescan-root .opening-copy blockquote{font-size:calc(18px - 2pt);line-height:1.55}
#adventurescan-root .story-actions{margin-top:22px}
#adventurescan-root .result p,#adventurescan-root .help-copy,#adventurescan-root .journal-entries article p{font-size:calc(18px - 2pt);line-height:1.5}
#adventurescan-root .result h2{font-size:calc(28px - 2pt)}
#adventurescan-root .result-description{font-size:calc(18px - 2pt)}
#adventurescan-root .puzzle-story,#adventurescan-root .room-description,#adventurescan-root .review-card p,#adventurescan-root .discovery-card p,#adventurescan-root .ending-copy p{font-size:calc(18px - 2pt);line-height:1.55}
#adventurescan-root .page-footer{margin-top:30px;padding:22px 28px}
@media(max-width:900px) and (min-width:761px){
 #adventurescan-root .home-hero{grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:24px}
 #adventurescan-root #app .home-hero .app-title{font-size:calc(38px - 2pt)}
 #adventurescan-root .home-hero .cover-art{height:330px}
 #adventurescan-root .home-lead{font-size:calc(22px - 2pt)}
}
@media(max-width:760px){
 #adventurescan-root .masthead{padding:16px 18px;gap:14px}
 #adventurescan-root #app{padding:22px 18px 0}
 #adventurescan-root .save-status{padding:0 18px}
 #adventurescan-root .home-hero{grid-template-columns:1fr;gap:24px;padding-top:18px}
 #adventurescan-root #app .home-hero .app-title{font-size:calc(clamp(34px,9vw,46px) - 2pt)}
 #adventurescan-root .home-lead{font-size:calc(22px - 2pt);line-height:1.3}
 #adventurescan-root .home-hero .cover-art{height:320px;max-width:480px;width:100%;justify-self:center}
 #adventurescan-root .home-actions>*{flex:1 1 150px}
 #adventurescan-root .home-bottom{margin-top:18px}
 #adventurescan-root .creation-intro .intro-art{height:320px}
 #adventurescan-root .story-illustration{height:320px}
 #adventurescan-root .opening-illustration{height:260px}
 #adventurescan-root .appearance-preview{height:280px}
 #adventurescan-root .story-copy blockquote{font-size:calc(18px - 2pt);line-height:1.5}
 #adventurescan-root .result h2{font-size:calc(25px - 2pt)}
}
/* v0.5.2: artwork-led combat with a compact, engraved action dock. */
#adventurescan-root .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}
#adventurescan-root.combat-view .masthead{min-height:54px;height:auto;padding:8px 18px;gap:12px}
#adventurescan-root.combat-view .masthead .brand-icon{width:30px;height:30px}
#adventurescan-root.combat-view .masthead .brand-type{font-size:19.3333px}
#adventurescan-root.combat-view .masthead .brand-type small,#adventurescan-root.combat-view .edition{display:none}
#adventurescan-root.combat-view .mast-right{gap:16px}
#adventurescan-root.combat-view .save-status{padding:0 18px;margin:3px 0;font-size:13.3333px;line-height:1.3}
#adventurescan-root.combat-view #app{max-width:1600px;padding:6px 12px 0}
#adventurescan-root.combat-view .page-footer{padding:6px 18px;margin:0;font-size:13.3333px;border:0}
#adventurescan-root .combat-stage{position:relative;height:calc(100svh - 140px);min-height:510px;max-height:1000px;background:#e8e6df;border:1px solid #292929;border-radius:6px;overflow:hidden;isolation:isolate;box-shadow:0 3px 0 #292929}
#adventurescan-root .combat-stage>canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:-1}
#adventurescan-root .stage-glass{background:#fffef8ed;border:1px solid #77766e;border-radius:4px;box-shadow:0 2px 6px #0002;color:#222;backdrop-filter:blur(3px)}
#adventurescan-root .stage-vitals{position:absolute;inset:12px 14px auto;display:flex;justify-content:space-between;gap:24px;pointer-events:none}
#adventurescan-root .stage-vitals .fighter{width:32%;max-width:310px;padding:9px 12px;color:#222;pointer-events:auto}
#adventurescan-root .vital-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:13.3333px;line-height:1.25}
#adventurescan-root .vital-heading strong{font-size:15.3333px;overflow-wrap:anywhere}
#adventurescan-root .vital-heading>span{white-space:nowrap}
#adventurescan-root .stage-vitals .bar{height:6px;background:#272832}
#adventurescan-root .stage-vitals .resource-bars{min-width:0;gap:12px;margin-top:7px}
#adventurescan-root .stage-vitals .resource label{font-size:13.3333px;line-height:1.2;margin-bottom:3px;gap:4px}
#adventurescan-root .stage-vitals .resource .bar{height:4px}
#adventurescan-root .stage-round{display:block;margin-top:9px;font-size:13.3333px;line-height:1.35;color:#444}
#adventurescan-root .stage-intent{position:absolute;top:114px;left:14px;max-width:min(650px,calc(100% - 28px));padding:6px 10px;font-size:13.3333px;line-height:1.35}
#adventurescan-root .stage-lower{position:absolute;bottom:10px;left:14px;right:14px;display:flex;flex-direction:column;gap:7px}
#adventurescan-root .stage-target-row{display:flex;align-items:end;justify-content:space-between;gap:8px;pointer-events:none}
#adventurescan-root .stage-target-row>*{pointer-events:auto}
#adventurescan-root .stage-target-picker .foe-targets{display:flex;gap:6px;margin:0;flex-wrap:wrap}
#adventurescan-root .stage-target-picker .foe-target{min-height:38px;padding:6px 10px;display:flex;align-items:center;gap:8px;background:#fffef8ed;border:1px solid #77766e;border-radius:3px;width:auto;flex:0 1 auto}
#adventurescan-root .stage-target-picker .foe-target.selected{border:2px solid #167a99;background:#f4fdff}
#adventurescan-root .stage-target-picker .foe-target strong,#adventurescan-root .stage-target-picker .foe-target>span{font-size:13.3333px;line-height:1.2}
#adventurescan-root .stage-target-row .status-tags{margin:0;gap:4px;justify-content:end;max-width:48%}
#adventurescan-root .stage-target-row .status-tags span{font-size:13.3333px;padding:3px 6px;background:#fffef8ed}
#adventurescan-root .stage-target-row .info-button{width:28px;height:28px;min-height:28px}
#adventurescan-root .stage-journal{width:100%;max-width:1040px;align-self:center;padding:0;overflow:hidden}
#adventurescan-root .stage-journal summary{cursor:pointer;display:flex;align-items:center;gap:12px;padding:7px 11px;font-size:13.3333px;line-height:1.3;list-style:none;min-height:34px}
#adventurescan-root .stage-journal summary::-webkit-details-marker{display:none}
#adventurescan-root .stage-journal summary strong{white-space:nowrap;font-size:13.3333px}
#adventurescan-root .stage-journal summary>span:nth-child(2){white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1;min-width:0}
#adventurescan-root .stage-journal .journal-toggle{white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
#adventurescan-root .stage-journal .journal{max-height:min(180px,32svh);padding:0 12px;overflow:auto;border-top:1px solid #ccc}
#adventurescan-root .stage-journal .log{font-size:13.3333px;padding:7px 0;line-height:1.4}
#adventurescan-root .stage-commandbar{position:relative;align-self:center;display:flex;align-items:stretch;gap:8px;padding:9px 13px 7px;border:3px double #bcb8ac;border-radius:5px;background:linear-gradient(120deg,#292a2c,#151618 50%,#323234);box-shadow:0 0 0 1px #222,0 4px 12px #0005;color:#fff;max-width:100%}
#adventurescan-root .stage-commandbar:before,#adventurescan-root .stage-commandbar:after{content:'◆';position:absolute;top:-14px;font-size:20px;color:#ece8dd;text-shadow:0 0 2px #111}
#adventurescan-root .stage-commandbar:before{left:14px}#adventurescan-root .stage-commandbar:after{right:14px}
#adventurescan-root .dock-abilities,#adventurescan-root .dock-tactics,#adventurescan-root .dock-tools{display:flex;gap:5px;align-items:stretch}
#adventurescan-root .dock-abilities{padding-right:9px;border-right:1px solid #777}
#adventurescan-root .ability-chip,#adventurescan-root .dock-action{font:400 13.3333px/1.2 'Afacad',sans-serif;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-align:center;border:1px solid #938f83;background:linear-gradient(#fffef8,#e5e2d9);border-radius:3px;color:#222;padding:5px 6px;min-height:78px;width:78px;position:relative;box-shadow:inset 0 0 0 2px #fff8}
#adventurescan-root .ability-chip:hover,#adventurescan-root .dock-action:hover{background:#fff;border-color:#fff;transform:translateY(-1px)}
#adventurescan-root .ability-chip strong{font-size:13.3333px;line-height:1.15;font-weight:600}
#adventurescan-root .ability-chip>span:last-child{font-size:13.3333px;color:#555}
#adventurescan-root .chip-icon{position:relative;display:grid;place-items:center;width:32px;height:30px}
#adventurescan-root .chip-icon svg{width:28px;height:28px;stroke-width:1.5}
#adventurescan-root .chip-icon kbd{position:absolute;right:-15px;top:-4px;border:1px solid #a7a398;border-radius:2px;padding:0 3px;background:#fffef8;font:400 13.3333px/1.15 'Afacad',sans-serif;color:#444}
#adventurescan-root .ability-chip[data-tone=fire] .chip-icon{color:#bc4805}
#adventurescan-root .ability-chip[data-tone=void] .chip-icon{color:#7d3ca9}
#adventurescan-root .ability-chip[data-tone=holy] .chip-icon{color:#947000}
#adventurescan-root .ability-chip:is([data-tone=nature],[data-tone=heal]) .chip-icon{color:#277846}
#adventurescan-root .ability-chip[data-tone=arcane] .chip-icon{color:#245bbe}
#adventurescan-root .ability-chip[aria-disabled=true]{background:#d6d3cc;color:#65645f;border-style:dashed}
#adventurescan-root .dock-action{width:67px;min-height:78px}
#adventurescan-root .dock-action svg{width:25px;height:25px}
#adventurescan-root .dock-tools{flex-direction:column;border-left:1px solid #777;padding-left:9px}
#adventurescan-root .dock-tools .dock-action{min-height:40px;width:47px;padding:3px}
#adventurescan-root .dock-tools .dock-action svg{width:20px;height:20px}
#adventurescan-root .stage-commandbar :focus-visible{outline:3px solid #16baff;outline-offset:2px}
#adventurescan-root .ability-reference article{padding:16px 0;border-bottom:1px solid #ccc}
#adventurescan-root .ability-reference article h3{display:flex;align-items:center;gap:10px}
#adventurescan-root .ability-reference article p{margin:8px 0}
#adventurescan-root .combat-reference .traveler-panel{border:0;padding:0;margin-top:16px}
#adventurescan-root .stage-journal summary:focus-visible{outline:3px solid #0563e2;outline-offset:-3px}
@media(min-width:761px) and (max-height:650px){
 #adventurescan-root .combat-stage{min-height:420px;height:calc(100svh - 130px)}
 #adventurescan-root.combat-view .masthead{min-height:44px;padding:4px 14px}
 #adventurescan-root .stage-intent{top:100px}
 #adventurescan-root .stage-vitals .fighter{padding:6px 9px}
 #adventurescan-root .ability-chip,#adventurescan-root .dock-action{min-height:66px}
 #adventurescan-root .dock-tools .dock-action{min-height:30px}
}
@media(max-width:760px){
 #adventurescan-root.combat-view .masthead{padding:8px 12px;flex-wrap:wrap}
 #adventurescan-root.combat-view .mast-right{gap:12px;flex-wrap:wrap}
 #adventurescan-root.combat-view #app{padding:6px 8px 0}
 #adventurescan-root .combat-stage{height:auto;min-height:0;max-height:none;overflow:visible;padding-top:280px;background:#eeece6}
 #adventurescan-root .combat-stage>canvas{height:280px}
 #adventurescan-root .stage-vitals{inset:8px 8px auto;gap:8px}
 #adventurescan-root .stage-vitals .fighter{width:50%;padding:7px;max-width:none}
 #adventurescan-root .vital-heading{display:block}
 #adventurescan-root .vital-heading>span{display:block;margin-top:3px}
 #adventurescan-root .stage-round{margin-top:6px}
 #adventurescan-root .stage-intent{position:relative;top:auto;left:auto;max-width:none;margin:8px}
 #adventurescan-root .stage-lower{position:relative;bottom:auto;left:auto;right:auto;margin:8px;gap:8px}
 #adventurescan-root .stage-target-row{flex-direction:column;align-items:stretch}
 #adventurescan-root .stage-target-row .status-tags{max-width:none;justify-content:start}
 #adventurescan-root .stage-target-picker .foe-targets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 #adventurescan-root .stage-target-picker .foe-target{flex-direction:column;align-items:start;padding:6px;gap:3px}
 #adventurescan-root .stage-commandbar{flex-wrap:wrap;width:100%;justify-content:center;padding:10px 7px;gap:8px}
 #adventurescan-root .dock-abilities{justify-content:center;width:100%;border:0;padding:0}
 #adventurescan-root .ability-chip{width:calc((100% - 10px)/3);min-height:78px}
 #adventurescan-root .dock-tactics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;gap:4px}
 #adventurescan-root .dock-action{width:100%;min-width:0;min-height:64px;padding:4px}
 #adventurescan-root .dock-tools{border:0;padding:0;flex-direction:row;justify-content:center;width:100%}
 #adventurescan-root .dock-tools .dock-action{width:80px;min-height:44px;flex-direction:row;gap:6px}
 #adventurescan-root .stage-journal summary{flex-wrap:wrap;gap:5px 10px}
 #adventurescan-root .stage-journal summary>span:nth-child(2){flex-basis:100%;order:3;white-space:normal}
 #adventurescan-root .journal-toggle{margin-left:auto}
}

#adventurescan-root .stage-target-picker{position:absolute;top:154px;left:14px;right:14px}
@media(max-width:760px){#adventurescan-root .stage-target-picker{position:relative;top:auto;left:auto;right:auto;margin:8px}}

/* Original engraved crystal bookends: decorative, never interactive. */
#adventurescan-root .stage-commandbar>.dock-bookend{position:absolute;bottom:-5px;width:68px;height:128px;pointer-events:none;overflow:visible;filter:drop-shadow(0 3px 3px #0005)}
#adventurescan-root .dock-bookend-left{left:-62px}
#adventurescan-root .dock-bookend-right{right:-62px;transform:scaleX(-1)}
#adventurescan-root .prepared-reference{background:#f0f0eb;padding:12px;border:1px solid #ccc;border-radius:4px;margin-bottom:14px}
#adventurescan-root .prepared-reference p{margin-top:8px}
@media(max-width:950px){#adventurescan-root .stage-commandbar>.dock-bookend{width:34px;height:64px;bottom:calc(100% - 13px)}#adventurescan-root .dock-bookend-left{left:-7px}#adventurescan-root .dock-bookend-right{right:-7px}}
@media(max-width:760px){#adventurescan-root .stage-commandbar>.dock-bookend{width:28px;height:53px;bottom:calc(100% - 15px)}#adventurescan-root .dock-bookend-left{left:0}#adventurescan-root .dock-bookend-right{right:0}}

/* Keep narrow-screen crystals inside the dock, clear of journal text. */
@media(max-width:950px){#adventurescan-root .stage-commandbar>.dock-bookend{top:4px;bottom:auto;width:22px;height:42px}#adventurescan-root .dock-bookend-left{left:-5px}#adventurescan-root .dock-bookend-right{right:-5px}}
@media(max-width:760px){#adventurescan-root .stage-commandbar{padding-left:18px;padding-right:18px}#adventurescan-root .dock-bookend-left{left:0}#adventurescan-root .dock-bookend-right{right:0}}
/* v0.7 activity feedback, cinematic study and repeatable Arena. */
#adventurescan-root .pipe-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;width:100%;max-width:660px}
#adventurescan-root .puzzle-board{width:100%;max-width:780px;padding:45px 14px 42px}
#adventurescan-root .pipe-tile{aspect-ratio:1;position:relative;min-width:0;min-height:44px;padding:0;border-radius:4px}
#adventurescan-root .pipe-tile svg{width:100%;height:100%;display:block}
#adventurescan-root .pipe-tile>span{font-size:13.3333px;position:absolute;bottom:2px;right:4px;background:#fffefae8;line-height:1.1;padding:1px 3px;border-radius:2px}
#adventurescan-root .pipe-tile .pressure-seal{position:absolute;top:3px;left:4px;background:#27252c;color:#fff;font-size:13.3333px;line-height:1.15;padding:2px 4px;border-radius:2px}
#adventurescan-root .pipe-tile.wet .pressure-seal{background:#00687d}
#adventurescan-root .inlet-label{top:15px;left:14px}
#adventurescan-root .basin-label{bottom:12px;right:14px}
#adventurescan-root .discovery-rewards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}
#adventurescan-root .discovery-rewards article{border:1px solid #bcb8aa;border-radius:4px;padding:20px;background:#f8f7f1}
#adventurescan-root .discovery-rewards svg{width:46px;height:46px;color:#6c4e99;margin-bottom:12px}
#adventurescan-root .discovery-rewards p{margin-top:10px}
#adventurescan-root .gain-float{position:absolute;z-index:5;pointer-events:none;transform:translateX(-50%);display:grid;gap:5px;justify-items:center}
#adventurescan-root .gain-message{max-width:100%;background:#183c29f5;color:#f5fff7;border:1px solid #8dd4a4;border-radius:5px;box-shadow:0 2px 5px #0005;padding:7px 12px;font:500 13.3333px/1.3 'Afacad',sans-serif;text-align:center;animation:skill-rise 2400ms both;overflow-wrap:anywhere}
@keyframes skill-rise{0%{opacity:0;transform:translateY(5px)}12%,76%{opacity:1}100%{opacity:0;transform:translateY(-16px)}}
#adventurescan-root .gain-inline{background:#edf8ed;border:1px solid #3d9e55;color:#1a582d;padding:9px 12px;margin:12px 0;border-radius:4px}
#adventurescan-root .equip-action,#adventurescan-root button[id^=equip-]{border:3px solid #3d9e55!important;box-shadow:0 0 0 1px #3d9e552b;border-radius:4px;padding:8px 13px;background:#f4fbf4;color:#184a27;min-height:44px}
#adventurescan-root .equip-action:hover,#adventurescan-root button[id^=equip-]:hover{background:#e0f5e3;box-shadow:0 0 0 3px #3d9e5533}
#adventurescan-root .art-toggle{position:absolute;z-index:3;right:14px;top:114px;border:1px solid #999;background:#fffef9ed;color:#222;padding:6px 9px;border-radius:4px;font-size:13.3333px;min-height:36px}
#adventurescan-root .cinematic-stage .stage-vitals .fighter{width:27%;max-width:260px}
#adventurescan-root .cinematic-stage .stage-intent{max-width:calc(100% - 210px)}
#adventurescan-root .arena-lobby{max-width:1050px;margin:auto}
#adventurescan-root .arena-lobby>p{max-width:75ch;margin:18px 0}
#adventurescan-root .arena-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0;padding:18px 0;border-block:1px solid #ccc}
#adventurescan-root .arena-stats span{display:flex;flex-direction:column;font-size:13.3333px;color:#666}
#adventurescan-root .arena-stats strong{font-size:28px;color:#222}
#adventurescan-root .arena-rule{display:flex;align-items:start;gap:14px;border:1px solid #c7be9e;border-radius:5px;background:#fbf8eb;padding:18px;margin-bottom:20px}
#adventurescan-root .arena-rule svg{width:26px;height:26px}
#adventurescan-root .arena-rule p{margin-top:8px}
#adventurescan-root .arena-actions{display:flex;flex-wrap:wrap;gap:12px}
#adventurescan-root .arena-roster{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}
#adventurescan-root .arena-roster article{border:1px solid #ccc;border-radius:4px;padding:16px}
#adventurescan-root .arena-roster h3{font-size:19.3333px}
#adventurescan-root .arena-roster p{font-size:13.3333px;margin-top:8px}
#adventurescan-root .sound-settings>p{margin:16px 0}
#adventurescan-root .volume-control{display:grid;grid-template-columns:1fr auto;gap:10px;margin:22px 0;font-size:15.3333px}
#adventurescan-root .volume-control input{grid-column:1/-1;width:100%;min-height:32px;accent-color:#3d9e55}
#adventurescan-root .sound-samples{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:760px){
 #adventurescan-root .pipe-grid{gap:3px}
 #adventurescan-root .puzzle-board{padding-inline:4px}
 #adventurescan-root .pipe-tile>span{font-size:13.3333px;right:0;bottom:0;padding:0 2px}
 #adventurescan-root .pipe-tile .pressure-seal{font-size:13.3333px;left:0;top:0;padding:1px 3px}
 #adventurescan-root .cinematic-stage .stage-vitals .fighter{width:50%;max-width:none}
 #adventurescan-root .art-toggle{top:292px;right:10px;min-height:32px}
 #adventurescan-root .cinematic-stage .stage-intent{max-width:none;margin-top:42px}
 #adventurescan-root .arena-roster{grid-template-columns:1fr 1fr}
 #adventurescan-root .discovery-rewards{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){#adventurescan-root .gain-message{animation:none!important;opacity:1;transform:none}}

/* Phone artwork uses a landscape viewport and uniform Canvas scaling. HUD sits above it. */
@media(max-width:760px){
 #adventurescan-root .combat-stage{display:flex;flex-direction:column;padding-top:0;overflow:hidden}
 #adventurescan-root .combat-stage>canvas{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:2/1;z-index:0;flex:none}
 #adventurescan-root .cinematic-stage>canvas{aspect-ratio:1672/941}
 #adventurescan-root .stage-vitals{position:relative;inset:auto;margin:8px;order:-1}
 #adventurescan-root .combat-stage .art-toggle{position:relative;top:auto;right:auto;align-self:flex-end;margin:6px 8px 0;min-height:36px}
 #adventurescan-root .cinematic-stage .stage-intent{margin-top:8px}
 #adventurescan-root .scene{height:auto;min-height:0;display:flex;flex-direction:column}
 #adventurescan-root .scene>canvas{position:relative;width:100%;height:auto;aspect-ratio:2/1;flex:none}
 #adventurescan-root .scene .scene-top{position:relative;inset:auto;order:-1;margin:8px;gap:8px}
 #adventurescan-root .scene .scene-top .fighter{width:50%;max-width:none;padding:7px}
 #adventurescan-root .scene .scene-bottom{position:relative;inset:auto;margin:8px;gap:8px;flex-wrap:wrap}
 #adventurescan-root .opening-illustration,#adventurescan-root .ending-art{height:auto;min-height:0;aspect-ratio:2/1}
 #adventurescan-root .opening-illustration canvas,#adventurescan-root .ending-art canvas{width:100%;height:100%}
}
@media(max-width:760px){
 #adventurescan-root .stage-vitals .resource label{display:flex;flex-direction:column;align-items:flex-start;gap:1px}
 #adventurescan-root .stage-vitals .resource-bars{gap:8px}
 #adventurescan-root .stage-target-picker:empty{display:none}
}

/* v0.8 realistic art and recorded story playback. */
#adventurescan-root .painted-icon{display:inline-block;width:30px;height:30px;flex:none;background-image:url('./assets/art/v08/icons.webp');background-size:700% 700%;background-position:calc(var(--icon-x)*100%/6) calc(var(--icon-y)*100%/6);border-radius:3px;vertical-align:middle}
#adventurescan-root .chip-icon .painted-icon{width:34px;height:34px}
#adventurescan-root .dock-action>.painted-icon{width:27px;height:27px}
#adventurescan-root .stage-commandbar>.dock-bookend{height:68px;width:68px;top:auto;bottom:0;filter:drop-shadow(0 2px 4px #0008)}
#adventurescan-root .narration-panel{margin:0 0 18px;padding:10px 12px;border:1px solid #d5cec0;border-radius:5px;background:#fffdf8;color:#292720;font-size:13.3333px;max-width:100%;position:relative;z-index:1}
#adventurescan-root .voice-buttons{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#adventurescan-root .voice-buttons button{min-height:36px;font-size:13.3333px}
#adventurescan-root .voice-state{color:#685e4c;font-size:13.3333px}
#adventurescan-root .voice-options{margin-top:7px;font-size:13.3333px}
#adventurescan-root .voice-options summary{cursor:pointer;min-height:28px}
#adventurescan-root .voice-options label{display:flex;align-items:center;gap:10px;margin:10px 0;max-width:420px}
#adventurescan-root .voice-options input[type=range]{flex:1;min-width:60px;accent-color:#3d9e55}
#adventurescan-root .voice-caption{white-space:pre-line;line-height:1.6;max-width:90ch;margin-top:12px}
#adventurescan-root .scene,#adventurescan-root .cover-art,#adventurescan-root .opening-illustration,#adventurescan-root .story-illustration,#adventurescan-root .ending-art{background:#22292d}
#adventurescan-root .cover-caption,#adventurescan-root .story-illustration>span{background:#fff8ebed;color:#322b20}
#adventurescan-root .arena-bracket select{max-width:100%;width:100%;white-space:normal}
#adventurescan-root .route-map{background-image:linear-gradient(#10191f50,#10191f80),url('./assets/art/v08/world.webp');background-size:300% 400%;background-position:0 0}
#adventurescan-root .route-node{background:#fffdf5e8;border-radius:7px;padding:12px;color:#282a2c}
#adventurescan-root .route-lines{opacity:.25}
#adventurescan-root .puzzle-board{background-color:#4d4539;background-image:linear-gradient(#29211399,#29211399),url('./assets/art/v08/world.webp');background-size:300% 400%;background-position:0 66.6667%}
#adventurescan-root .pipe-tile{box-shadow:inset 0 0 7px #0005;border-color:#655f51;background:#c2b49c}
#adventurescan-root .inlet-label,#adventurescan-root .basin-label{color:#e1f7ff;text-shadow:0 1px 3px #000}
@media(max-width:950px){#adventurescan-root .stage-commandbar>.dock-bookend{width:25px;height:25px;top:4px;bottom:auto}}
@media(max-width:760px){#adventurescan-root .narration-panel{padding:8px;margin-bottom:12px}#adventurescan-root .voice-buttons{gap:8px}#adventurescan-root .voice-buttons button{min-height:44px}#adventurescan-root .stage-commandbar>.dock-bookend{width:22px;height:22px}}
