@font-face{font-family:Adventure;src:local('Courier New')}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%} :root{color-scheme:dark;--bg:#111b22;--panel:#17262c;--ink:#f4e9c9;--muted:#a5b9ab;--gold:#edc765;--line:#3c514b;--green:#94be73}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 Adventure,'Courier New',monospace}button,input,select{font:inherit}button{cursor:pointer;background:#24382e;border:1px solid #657455;color:var(--ink);padding:10px 14px;line-height:1.4;border-radius:0}button:hover:not(:disabled){background:#3a5039;border-color:var(--gold)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:inherit;text-decoration:none}.masthead{max-width:1320px;margin:0 auto;padding:26px 28px;display:flex;align-items:center;gap:25px}.masthead a{font-weight:bold;letter-spacing:2px;font-size:20px;color:var(--gold)}.masthead>span{font-size:12px;letter-spacing:1.5px;color:var(--muted)}.masthead button{margin-left:auto;background:transparent;font-size:13px;padding:6px 12px}main{max-width:1320px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:24px;padding:8px 28px 24px}.game-shell{border:3px solid #6c795f;box-shadow:0 0 0 4px #0c1319;align-self:start;background:#080e14}.hud{display:flex;justify-content:space-between;align-items:center;padding:15px 22px;border-bottom:3px solid #6c795f;gap:16px}.eyebrow{font-size:12px;letter-spacing:1.4px;color:var(--muted);display:block;font-weight:bold}.hud strong{font-size:19px;letter-spacing:1px}.health{text-align:center}.health #hearts{display:block;color:#ef775f;font-size:23px;letter-spacing:2px}.rep{text-align:right;color:var(--gold)}.viewport{position:relative;overflow:hidden;line-height:0;background:#598a3d}canvas{display:block;width:100%;height:auto;image-rendering:pixelated;touch-action:none}.location{position:absolute;top:15px;left:16px;right:16px;display:flex;justify-content:space-between;gap:10px;pointer-events:none;line-height:1.5;color:#fff5d3;text-shadow:2px 2px #111b22;font-size:13px;font-weight:bold;letter-spacing:1px}.location #area-tag{font-size:11px;opacity:.85}#interaction{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);background:#101c20ee;border:2px solid var(--gold);padding:10px 16px;font-size:14px;line-height:1.4;text-align:center;pointer-events:none;white-space:nowrap}#interaction:empty{display:none}.message{padding:19px 22px;display:flex;gap:18px;border-top:3px solid #6c795f;min-height:125px}.message p{margin:5px 0 0;font-size:15px;line-height:1.65}.message-star{font-size:24px;color:var(--gold)}.controls{display:flex;flex-wrap:wrap;gap:10px 18px;padding:10px 18px 13px;background:#142028;color:#a9b5ab;font-size:12px}kbd{color:#e8dcc2;font:inherit}.journal{padding:20px 0 0}.journal-top{display:flex;justify-content:space-between;align-items:center}.journal-top>span:last-child{font-size:12px;color:var(--gold)}h1{font-size:26px;line-height:1.25;letter-spacing:-1px;margin:15px 0}p{color:#c2ccbb}.journal>p{font-size:14px;line-height:1.8;min-height:70px}.primary{background:var(--gold);border:2px solid var(--gold);color:#17251e;font-weight:bold;box-shadow:3px 3px 0 #785c37}.primary:hover:not(:disabled){background:#f5d98a;color:#152018}.journal>.primary{width:100%;font-size:14px}.divider{height:1px;background:var(--line);margin:25px 0 19px}#artifacts{list-style:none;padding:0;margin:14px 0 0}#artifacts li{display:flex;align-items:center;gap:10px;font-size:13px;padding:8px 0;color:#899889}#artifacts li.earned{color:var(--gold)}#artifacts .icon{font-size:19px;width:22px;display:inline-block}.side-actions{display:grid;gap:9px}.side-actions button{font-size:14px;text-align:left;display:flex;justify-content:space-between;background:transparent;border-color:var(--line)}.side-actions span{color:var(--gold)}.journal .save-status{font-size:12px;min-height:0;color:#8caa90;line-height:1.6}footer{max-width:1320px;margin:auto;padding:0 28px 24px;display:flex;justify-content:space-between;gap:15px;font-size:11px;letter-spacing:1px;color:#7e9689}dialog{background:#142329;border:3px solid #b2ad7b;color:var(--ink);padding:0;width:min(690px,calc(100% - 28px));max-height:90vh;max-height:90dvh;overflow-y:auto;box-shadow:8px 8px 0 #050b0ea8}dialog::backdrop{background:#040c16bd}#modal-content{padding:28px}dialog h2{font-size:27px;line-height:1.25;color:var(--gold);margin:8px 0 16px}dialog h3{font-size:17px}dialog p{font-size:15px;line-height:1.8}dialog .actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:24px}label{display:block;font-size:14px;color:var(--muted)}input,select{background:#09151c;border:1px solid #61725b;color:var(--ink);padding:10px;width:100%;border-radius:0;margin-top:5px;min-width:0}.character-layout{display:grid;grid-template-columns:1fr 160px;gap:24px}.character-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.character-fields .full{grid-column:1/-1}.hero-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;background:#0b191e;border:1px solid var(--line);padding:15px}.hero-preview canvas{width:128px;height:160px}.hero-preview span{font-size:12px;color:var(--gold);margin-top:12px}.hint{background:#203b37;border-left:3px solid #87b4a0;padding:12px;font-size:14px!important}.choice-list{display:grid;gap:10px}.choice-list button{text-align:left;padding:13px 15px;background:#1b3034;border:1px solid #536953}.choice-list button.selected{border:2px solid var(--gold);background:#354535}.allocation-row{display:grid;grid-template-columns:1fr 95px;gap:15px;align-items:center;margin:14px 0;padding:12px 15px;background:#203035}.allocation-row small{display:block;font-size:13px;color:var(--muted)}.allocation-row input{margin:0}.feedback{padding:12px;border:1px solid #c19b63;background:#393126;margin-top:14px;font-size:14px;line-height:1.7}.feedback:empty{display:none}.map-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.map-grid button{text-align:left;min-height:90px}.map-grid small{display:block;font-size:12px;color:var(--muted);margin-top:6px}.oracle-entry{border-bottom:1px solid var(--line);padding:10px 0}.oracle-entry h3{color:var(--gold);margin:3px 0}.oracle-entry p{margin:5px 0}.touch-controls{display:none;padding:15px;align-items:center;justify-content:space-between;gap:8px}.touch-controls>div{text-align:center}.touch-controls button{touch-action:none;min-width:42px}.touch-controls>button{max-width:110px}#combat-bar{position:absolute;top:43px;left:16px;right:16px;background:#0b141ddd;padding:9px 12px;line-height:1.5;font-size:12px;color:var(--gold)}progress{display:block;width:100%;height:9px;margin-top:6px;accent-color:#ef775f}.celebration{text-align:center;padding:12px 0}.celebration .big{font-size:48px;color:var(--gold);margin:10px}.small-note{font-size:12px!important;color:var(--muted)}@media(max-width:1000px){main{grid-template-columns:minmax(0,1fr) 240px;gap:18px;padding:8px 18px 24px}.masthead{padding:20px 18px}.masthead>span{display:none}.hud{padding:12px}.hud strong{font-size:16px}.health #hearts{font-size:18px}.location #area-tag{display:none}.journal{padding-top:10px}.journal h1{font-size:23px}}@media(max-width:760px){main{grid-template-columns:1fr;padding:5px 12px 20px;gap:10px}.masthead{padding:17px 12px;gap:10px}.masthead a{font-size:17px;letter-spacing:0}.journal{padding:16px 8px}.journal>p{min-height:0}#artifacts{display:grid;grid-template-columns:1fr 1fr}.hud .eyebrow{font-size:10px}.hud strong{font-size:14px}.health #hearts{font-size:16px;letter-spacing:0}.message{padding:14px;min-height:110px}.message p{font-size:14px}.controls{font-size:11px;gap:6px 12px}.touch-controls{display:flex}.location{font-size:11px;top:8px;left:10px}footer{font-size:10px;padding:0 20px 20px;flex-wrap:wrap}.character-layout{grid-template-columns:1fr}.hero-preview{order:-1;flex-direction:row;gap:20px}.hero-preview canvas{width:64px;height:80px}#modal-content{padding:19px}.map-grid{grid-template-columns:1fr}dialog h2{font-size:24px}#interaction{font-size:11px;padding:7px 9px;max-width:95%;white-space:normal}}
html.rotate-prompt #rotate-overlay{display:flex}#rotate-overlay{display:none;position:fixed;inset:0;z-index:20;background:#0b141df5;color:var(--ink);flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:20px}#rotate-overlay .rotate-icon{font-size:48px;color:var(--gold)}html.handheld .masthead,html.handheld footer,html.handheld .journal,html.handheld .controls,html.handheld .touch-controls{display:none}html.handheld main{grid-template-columns:1fr;gap:0;padding:0;max-width:none}html.handheld .game-shell{border:none;box-shadow:none;height:100vh;height:100dvh;display:flex;flex-direction:column}html.handheld .viewport{flex:1;min-height:0}html.handheld canvas{width:100%;height:100%;object-fit:contain}
html.handheld .hud{position:absolute;top:0;left:0;right:0;z-index:2;height:36px;box-sizing:content-box;padding:4px 10px;padding-top:calc(4px + env(safe-area-inset-top,0px));background:#0b141dcc;border-bottom:none;gap:8px}
html.handheld .hud strong{font-size:13px}html.handheld .hud .eyebrow{font-size:10px}html.handheld .health #hearts{font-size:13px}
html.handheld .location{top:calc(40px + env(safe-area-inset-top,0px))}
@media(min-height:430px){
  html.handheld .hud{height:48px;padding:8px 14px;padding-top:calc(8px + env(safe-area-inset-top,0px))}
  html.handheld .hud strong{font-size:16px}html.handheld .hud .eyebrow{font-size:12px}html.handheld .health #hearts{font-size:16px}
  html.handheld .location{top:calc(52px + env(safe-area-inset-top,0px))}
}
html.handheld .message{position:absolute;left:0;right:calc(268px + env(safe-area-inset-right,0px));bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:2;background:none;padding:0;padding-left:calc(12px + env(safe-area-inset-left,0px));min-height:0;max-height:none;overflow:visible;border-top:none;gap:0;pointer-events:auto;cursor:pointer;transition:opacity .25s ease}
html.handheld .message.hh-hide{opacity:0;transform:none;pointer-events:none}
html.handheld .message>div{overflow:hidden;min-width:0}
html.handheld .message-star,html.handheld #message-label{display:none}
html.handheld .message p{font-size:13px;line-height:1.3;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:1px 1px 2px #000,0 0 6px #000}
html.handheld #interaction{bottom:calc(40px + env(safe-area-inset-bottom,0px));font-size:11px;padding:6px 10px;max-width:60%;white-space:normal}
html.handheld #combat-bar{top:calc(52px + env(safe-area-inset-top,0px))}
html.handheld dialog{display:flex;flex-direction:column;width:100vw;width:100dvw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;border:none;border-radius:0;box-shadow:none}
html.handheld dialog::backdrop{background:#040c16}
html.handheld #modal-content{flex:1 1 auto;min-height:0;height:auto;max-height:none;position:relative;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;padding:0}html.handheld .sheet-body{flex:1 1 auto;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:14px calc(16px + env(safe-area-inset-right,0px)) 16px calc(16px + env(safe-area-inset-left,0px));padding-top:calc(14px + env(safe-area-inset-top,0px))}
html.handheld dialog h2{font-size:20px;margin:4px 0 10px}
html.handheld dialog p,html.handheld dialog li,html.handheld dialog label{font-size:15px;line-height:1.45}
html.handheld dialog .hint,html.handheld dialog .small-note{font-size:14px!important}
html.handheld dialog .actions{position:static;flex:0 0 auto;background:#142329;border-top:1px solid var(--line);min-height:56px;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0;padding:8px calc(16px + env(safe-area-inset-right,0px)) calc(8px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px))}
html.handheld .choice-list{margin-bottom:8px}
html.handheld dialog .actions button,html.handheld dialog button,html.handheld .choice-list button{min-height:40px;font-size:14px;padding:8px 12px}
@media(min-height:430px){
  html.handheld .sheet-body{padding-bottom:20px}
  html.handheld dialog h2{font-size:22px;margin:4px 0 12px}
  html.handheld dialog p,html.handheld dialog li,html.handheld dialog label{font-size:16px;line-height:1.55}
  html.handheld dialog .actions{min-height:64px;padding:10px calc(18px + env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) calc(18px + env(safe-area-inset-left,0px))}
  html.handheld dialog .actions button,html.handheld dialog button,html.handheld .choice-list button{min-height:48px;font-size:15px;padding:10px 14px}
}
html.handheld #kingdom-map,html.handheld #town-map{width:100%;height:auto;max-width:100%}
html.handheld .character-layout{grid-template-columns:1fr}
html.handheld .hero-preview{order:-1;flex-direction:row;gap:12px;padding:6px}
html.handheld .hero-preview canvas{width:48px;height:60px}
html.handheld .hero-preview span{margin-top:0;font-size:10px}
html.handheld .character-fields{grid-template-columns:1fr 1fr}
html.handheld .character-fields .full{grid-column:span 1}
html.handheld .character-fields label{font-size:12px}
.handheld-controls{display:none}
html.handheld .handheld-controls{display:block;position:fixed;inset:0;z-index:3;pointer-events:none}
.handheld-stick-zone{position:absolute;left:0;top:0;bottom:0;width:38%;pointer-events:auto;touch-action:none}
.handheld-stick-hint{position:absolute;left:calc(52px + env(safe-area-inset-left,0px));bottom:calc(52px + env(safe-area-inset-bottom,0px));width:74px;height:74px;border-radius:50%;background:#edc76522;border:2px dashed #edc76566;pointer-events:none}
.handheld-stick-hint::after{content:'';position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px;border-radius:50%;background:#edc76544}
.handheld-stick-base{position:fixed;width:96px;height:96px;margin-left:-48px;margin-top:-48px;border-radius:50%;background:#0b141d99;border:2px solid #edc765;pointer-events:none;z-index:1}
.handheld-stick-thumb{position:absolute;left:30px;top:30px;width:36px;height:36px;border-radius:50%;background:#edc765cc}
.handheld-buttons{position:absolute;right:0;bottom:0;width:48%;height:65%;pointer-events:none}
.hh-btn{position:absolute;pointer-events:auto;border-radius:50%;font-weight:bold;background:#24382ecc;border:2px solid #657455;color:var(--ink);touch-action:none;display:flex;align-items:center;justify-content:center;padding:0}
.hh-a,.hh-b{width:52px;height:52px;font-size:14px}
.hh-a{right:82px;bottom:60px}.hh-b{right:16px;bottom:98px}
.hh-map,.hh-quest{border-radius:10px;width:58px;height:34px;font-size:12px}
.hh-map{right:150px;bottom:16px}
.hh-quest{right:16px;bottom:16px}
.hh-menu{display:none}
html.handheld .hud .hh-menu{display:inline-flex;align-items:center;justify-content:center;position:static;min-width:auto;height:28px;padding:0 12px;border-radius:8px;font-size:11px;white-space:nowrap;pointer-events:auto}
.hh-fullscreen{display:none}
html.handheld .hud .hh-fullscreen{display:inline-flex;align-items:center;justify-content:center;position:static;width:28px;height:28px;padding:0;border-radius:8px;font-size:13px;pointer-events:auto}
@media(min-height:430px){
  .handheld-stick-base{width:110px;height:110px;margin-left:-55px;margin-top:-55px}
  .handheld-stick-thumb{left:33px;top:33px;width:44px;height:44px}
  .hh-a,.hh-b{width:64px;height:64px;font-size:16px}
  .hh-a{right:92px;bottom:66px}.hh-b{right:16px;bottom:114px}
  .hh-map,.hh-quest{width:70px;height:48px;font-size:13px}
  .hh-map{right:170px}
  html.handheld .hud .hh-menu{height:36px;padding:0 14px;font-size:12px}
  html.handheld .hud .hh-fullscreen{width:36px;height:36px;font-size:15px}
}
.hh-a2hs-tip{display:none}
html.handheld .hh-a2hs-tip{display:flex;position:fixed;top:calc(46px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);z-index:5;background:#0b141dee;border:1px solid var(--gold);color:var(--ink);font-size:11px;padding:6px 10px;border-radius:8px;align-items:center;gap:8px;pointer-events:auto}
.hh-a2hs-tip button{background:transparent;border:none;color:var(--ink);font-size:14px;padding:0 2px;min-width:0;min-height:0;line-height:1;cursor:pointer}.name-row{display:flex;gap:8px;align-items:stretch;margin-top:5px}.name-row input{margin-top:0;flex:1}.name-row button{white-space:nowrap;padding:6px 10px}html.handheld.keyboard-open dialog .hero-preview,html.handheld.keyboard-open dialog h2,html.handheld.keyboard-open dialog .eyebrow,html.handheld.keyboard-open dialog .hint{display:none}html.handheld.keyboard-open dialog .actions{display:none}html.handheld dialog input,html.handheld dialog select,html.handheld dialog textarea{font-size:16px}html.handheld,html.handheld body{overflow:hidden;position:fixed;inset:0;width:100%;height:100%;overscroll-behavior:none;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}html.handheld input,html.handheld textarea{-webkit-user-select:text;user-select:text}html.handheld .viewport,html.handheld .hud,html.handheld .message,html.handheld .handheld-controls,html.handheld .handheld-controls *{touch-action:none}html.handheld:has(dialog[open]) .handheld-controls{display:none}@media (min-height:700px){html.handheld dialog{width:min(100dvw,960px);height:min(100dvh,760px);margin:auto;border:3px solid #b2ad7b;box-shadow:8px 8px 0 #050b0ea8}html.handheld dialog::backdrop{background:#040c16bd}}.cast-list{list-style:none;padding:0;margin:12px 0}.cast-list li{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}.cast-list li span{color:var(--muted);font-size:13px}