:root{--ink:#183128;--gold:#d7ae59;--paper:#f5efdf;--muted:#aebeb0}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#11291c;color:#fff;font-family:system-ui,-apple-system,Segoe UI,sans-serif}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid #e9b759;outline-offset:3px}button:disabled{opacity:.45;cursor:default}button,.panel{border-radius:12px}button{border:1px solid #fff3;background:#19392ded;color:#fff;padding:10px 15px;font-weight:650}button:hover:not(:disabled){filter:brightness(1.13)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}#game,#world{position:absolute;inset:0;width:100%;height:100%}#world{display:block;touch-action:none}#hud{position:absolute;left:22px;right:22px;top:max(18px,env(safe-area-inset-top));display:flex;justify-content:space-between;gap:14px;pointer-events:none}.hero-panel{display:flex;gap:10px;width:270px;padding:8px 14px 8px 6px;border:1px solid #e7cc8a66;border-radius:16px;background:#10291eea;box-shadow:0 8px 24px #0004;pointer-events:auto}.hero-panel>canvas{width:64px;height:64px;object-fit:contain;border-radius:11px;background:#526b46}.hero-info{flex:1;min-width:0}.hero-info>div{display:flex;justify-content:space-between;font-size:12px;letter-spacing:.12em;margin-bottom:4px}.hero-info>div span{color:#ecd08a;letter-spacing:0;font-size:11px}.hero-info label{display:flex;align-items:center;gap:8px;font-size:9px;line-height:1.6}.hero-info label>span{width:60px;white-space:nowrap}.bar{display:block;height:6px;flex:1;border-radius:8px;background:#030e0b88;overflow:hidden}.bar b{display:block;height:100%;width:100%;border-radius:8px;transition:width .15s}.hp b{background:linear-gradient(90deg,#da725d,#f5b276)}.mp b{background:linear-gradient(90deg,#6398ae,#a8d7dc)}.xp{height:3px;margin-top:4px}.xp b{background:#d6bb71}.hud-right{display:flex;align-items:start;gap:8px;pointer-events:auto}.hud-right button{padding:11px 14px;background:#10291eeb;border-color:#dbca9a55;font-size:12px}.gold{display:flex;align-items:center;gap:8px;background:#10291ee8;border:1px solid #d4b77077;border-radius:10px;padding:10px 14px;color:#f6d17f;font-size:15px}.gold>b{color:#efbd44}#questCount{display:inline-block;margin-left:3px;font-size:10px;color:#efc87c}#location{position:absolute;top:114px;left:26px;text-shadow:0 2px 5px #13291d;pointer-events:none}#location>span{font-size:9px;letter-spacing:.3em;color:#e9cd91;display:block}#location strong{display:block;font-family:Georgia,serif;font-size:22px;font-weight:500;margin-top:4px}#location small{display:block;color:#d1dfc9;font-size:11px;margin-top:4px}#objective{position:absolute;right:24px;top:86px;max-width:265px;padding:16px 18px;background:#10291edb;border:1px solid #ebd4a34a;border-radius:12px;pointer-events:none}#objective>span:first-child{font-size:8px;letter-spacing:.22em;color:#d4b36b;display:block}#objective strong{display:block;font-size:12px;margin-top:6px}#objective small{display:block;font-size:10px;color:#c2d3c1;line-height:1.6;margin-top:5px}#compass{display:block;font-size:10px;color:#f1d396;margin-top:8px}#miniBtn{position:absolute;left:24px;bottom:30px;padding:5px;background:#10291ee8;border-color:#e4d2a955;border-radius:14px}#minimap{width:144px;height:115px;display:block;border-radius:8px}#bottom{position:absolute;inset:auto 22px 22px;display:flex;align-items:end;justify-content:end;gap:16px;pointer-events:none}.actions{display:flex;gap:9px;align-items:end;pointer-events:auto}.actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;width:60px;height:60px;gap:3px;background:#17392de9;border:1px solid #ead4a77a;box-shadow:0 4px 14px #0004}.actions span{font:25px Georgia,serif;color:#e6d2a2}.actions small{font-size:8px}.actions #interactBtn{background:#e4bc72;color:#253628;width:75px;height:68px}.actions #interactBtn span{color:#30412a}.key-guide{font-size:10px;color:#e1e8d4;text-shadow:0 2px 4px #142817;position:absolute;left:180px;bottom:0;white-space:nowrap}#joystick{display:none}#prompt{position:absolute;left:50%;bottom:116px;transform:translateX(-50%);padding:9px 15px;border-radius:30px;border:1px solid #e4d3ab66;background:#132b20ed;color:#f3e4bd;font-size:12px;pointer-events:none;white-space:nowrap;box-shadow:0 4px 15px #0004}#toast{position:absolute;left:50%;top:24%;transform:translate(-50%,-12px);max-width:min(450px,85%);padding:12px 20px;background:#13291df2;border:1px solid #ddc98f99;border-radius:12px;color:#ffe9af;font-size:13px;opacity:0;transition:.2s;pointer-events:none;text-align:center;z-index:6}#toast.show{opacity:1;transform:translate(-50%,0)}#bossHud{position:absolute;top:22px;left:50%;transform:translateX(-50%);width:280px;background:#172b25ee;padding:12px 18px;border:1px solid #78c8d3;border-radius:14px;text-align:center}#bossHud small{font-size:8px;letter-spacing:.2em;color:#93dce7}#bossHud strong{display:block;font:17px Georgia;margin:5px 0 10px}.overlay{position:absolute;inset:0;z-index:10;background:#0a1e16bb;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}.title-screen{width:min(1030px,100%);border:1px solid #c2af7c66;border-radius:22px;background:linear-gradient(120deg,#19352cf5,#0b241bf5);box-shadow:0 30px 100px #0008;display:grid;grid-template-columns:1fr 1.1fr;overflow:hidden}.title-art{position:relative;overflow:hidden;min-height:560px;background:radial-gradient(ellipse at 40% 45%,#96ad5e77,#2c4b34aa 65%,#192f26);border-right:1px solid #cab97a33}.title-art img{position:absolute;width:1350px;height:1350px;max-width:none;left:-5px;top:-25px;filter:drop-shadow(0 15px 15px #071309aa);opacity:.95}.title-art::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#112e26,transparent 45%),linear-gradient(90deg,transparent,#152e2566)}.title-copy{padding:64px 45px;position:relative}.eyebrow{font-size:9px;letter-spacing:.23em;color:#dbbd7c}h1{font:500 clamp(55px,7vw,82px)/1 Georgia,serif;letter-spacing:.04em;color:#efd59f;margin:24px 0}h1>span{display:block;font:500 16px/1.4 Georgia,serif;letter-spacing:.08em;color:#e1d9c7;margin-top:12px}.title-copy>p{color:#c3d3c2;font:17px/1.7 Georgia,serif}.chapter{display:flex;gap:15px;margin:30px 0;align-items:center}.chapter>span{font:35px Georgia;color:#deb971;width:48px;height:55px;border:1px solid #dec18c66;border-radius:8px;display:grid;place-items:center}.chapter strong{font:20px Georgia}.chapter small{display:block;font-size:11px;color:#a9bbab;margin-top:6px}.primary{background:linear-gradient(120deg,#e3c78c,#be9554);color:#1c3325;border:1px solid #ecd6a4;padding:15px 28px;font-size:14px;font-weight:750}.title-copy .primary{width:100%}.title-note{font:10px/1.5 system-ui!important;text-align:center;margin-top:12px}.credits{display:block;font-size:9px;color:#8ba18c;margin-top:32px;line-height:1.6}.panel{width:min(720px,100%);background:var(--paper);color:var(--ink);padding:30px;box-shadow:0 20px 80px #0007;border:1px solid #ead2a0;max-height:88dvh;overflow:auto;position:relative}.panel h2{font:500 29px Georgia,serif;margin:7px 0 12px}.panel h3{font-size:14px;margin:0 0 7px}.panel .overline{font-size:9px;letter-spacing:.17em;font-weight:750;color:#8f723d}.panel p{font-size:13px;line-height:1.85;margin:10px 0;color:#51614f}.panel button{color:#25402f;background:#e7dfcc;border-color:#c5b993;font-size:12px}.panel button.primary{background:linear-gradient(100deg,#e4c789,#d4af6c)}.panel .close{position:absolute;right:15px;top:14px;border:0;background:transparent;font-size:22px;padding:2px 8px;color:#6b745d}.panel .options{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}.dialogue-heading{display:flex;align-items:center;gap:18px;padding-right:20px}.dialogue-heading canvas{width:90px;height:100px;background:#e4dcc6;border:1px solid #c2af80;border-radius:14px;object-fit:contain}.dialogue-heading h2{font-size:24px}.dialogue-heading small{color:#7e8c6e;font-size:11px}.dialogue-body{font:17px/1.8 Georgia,serif!important;color:#344831!important;min-height:80px;margin-top:23px!important}.quest-card{border:1px solid #cbbb98;background:#ede6d5;padding:16px;border-radius:12px;margin:12px 0}.quest-card.done{opacity:.7}.quest-card small{font-size:10px;color:#8c744c}.quest-card p{margin:5px 0;font-size:12px}.quest-card .reward{color:#8e6627;font-weight:700;font-size:11px}.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.shop-item{border:1px solid #cfbf9b;border-radius:12px;padding:16px;background:#ebe3cf}.shop-item .item-icon{font:28px Georgia;float:right;color:#a27d3e}.shop-item p{font-size:11px;line-height:1.6;min-height:36px}.shop-item button{width:100%;margin-top:6px}.inventory{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:15px 0;border-bottom:1px solid #c9bc99;font-size:11px}.inventory b{display:block;color:#987139;font-size:17px}.map-large{width:100%;height:auto;background:#3c6442;border:1px solid #b6a477;border-radius:12px;margin-top:16px;touch-action:manipulation}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:#617055;margin-top:12px}.panel .footer-brand{margin-top:22px;border-top:1px solid #d2c5a5;padding-top:16px;font-size:10px;color:#859076}.badge{font-size:9px;padding:4px 8px;border-radius:12px;background:#dae1c9;color:#43603a;display:inline-block}.danger{color:#945b44!important}.loading-error{color:#ffbc90;font-size:11px}.chapter-seal{font:56px Georgia;color:#ad8846;margin-bottom:8px}.victory{text-align:center;padding:25px 10px}.victory h2{font-size:35px}.victory p{max-width:480px;margin:12px auto}.name-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.name-grid button{text-align:left;font-size:11px}
@media(pointer:coarse),(max-width:760px){#hud{left:10px;right:10px;top:max(8px,env(safe-area-inset-top));gap:6px}.hero-panel{width:203px;padding:5px 9px 5px 4px;gap:6px}.hero-panel>canvas{width:46px;height:52px}.hero-info>div{font-size:10px}.hero-info label{font-size:8px;gap:4px}.hero-info label>span{width:50px}.hud-right{gap:4px;flex-wrap:wrap;justify-content:end;max-width:165px}.hud-right button{padding:8px 9px;font-size:10px}.gold{padding:6px 9px;font-size:12px}.gold>b{font-size:12px}#menuBtn{min-width:32px}#location{top:87px;left:15px}#location strong{font-size:20px}#objective{right:10px;top:115px;max-width:180px;padding:10px 12px}#objective strong{font-size:10px}#objective small{font-size:9px;line-height:1.4}#objective>span:first-child{font-size:7px}#compass{font-size:9px}#miniBtn{left:12px;bottom:185px;padding:4px}#minimap{width:96px;height:76px}#bottom{bottom:max(22px,env(safe-area-inset-bottom));left:14px;right:12px;justify-content:space-between}.key-guide{display:none}#joystick{display:block;position:relative;width:116px;height:116px;border-radius:50%;border:1px solid #e8dbb066;background:#183b2c66;box-shadow:inset 0 0 20px #081d1455;pointer-events:auto;touch-action:none}#stick{position:absolute;left:36px;top:36px;width:44px;height:44px;border:1px solid #e0d4acaa;border-radius:50%;background:#d6c48a77;pointer-events:none}.actions{display:grid;grid-template-columns:48px 58px;gap:7px;align-items:center}.actions button{width:48px;height:48px;padding:4px}.actions #attackBtn{grid-column:1;grid-row:2;width:53px;height:53px}.actions #interactBtn{grid-column:2;grid-row:2;width:58px;height:58px}.actions span{font-size:22px}.actions small{font-size:7px}.actions #potionBtn,.actions #spellBtn{width:46px;height:43px}#prompt{bottom:154px;font-size:10px;padding:8px 12px;max-width:85%;overflow:hidden;text-overflow:ellipsis}.overlay{padding:12px}.panel{padding:24px 19px;max-height:88dvh}.panel h2{font-size:25px}.shop-grid{gap:8px}.shop-item{padding:12px}.shop-item h3{font-size:12px}.shop-item p{font-size:10px}.shop-item button{padding:10px 5px;font-size:10px}.inventory{font-size:10px}.title-screen{grid-template-columns:1fr;max-width:460px}.title-art{height:160px;min-height:160px;border-right:0;border-bottom:1px solid #cab97a33}.title-art img{width:780px;height:780px;left:5px;top:-35px}.title-copy{padding:24px 27px}.eyebrow{font-size:8px}h1{font-size:52px;margin:14px 0}h1>span{font-size:13px}.title-copy>p{font-size:15px;line-height:1.5;margin:15px 0}.chapter{margin:20px 0}.chapter strong{font-size:18px}.chapter>span{height:45px;width:40px;font-size:28px}.credits{margin-top:18px}#bossHud{top:83px;width:205px;padding:9px 13px;left:55%}.dialogue-body{font-size:16px!important;line-height:1.7!important}.dialogue-heading canvas{width:72px;height:82px}.dialogue-heading h2{font-size:22px}.name-grid{grid-template-columns:1fr 1fr}}
@media(max-height:540px) and (min-width:700px){.title-screen{grid-template-columns:1fr 1.2fr;max-width:800px}.title-art{height:100%;min-height:340px}.title-copy{padding:25px 35px}.title-copy h1{font-size:50px;margin:12px 0}.title-copy>p{font-size:13px}.chapter{margin:12px 0}.credits{margin-top:12px}#objective{top:85px}#location{top:100px}#miniBtn{bottom:110px}.panel{max-height:90dvh}.hero-panel{width:220px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
.knight-heading{display:flex;gap:24px;align-items:center;padding:20px;border-radius:16px;background:radial-gradient(ellipse at 0 30%,#507055,#17392c 75%);color:#f5e8c7;border:1px solid #9f8c56}.knight-heading>canvas{width:105px;height:130px;object-fit:contain;filter:drop-shadow(0 6px 7px #091f18aa)}.knight-heading>div{flex:1;min-width:0}.knight-heading .overline{color:#dcbf7e}.knight-heading h2{font-size:34px;margin:4px 0}.knight-rank{font-size:11px;color:#d9e0c7}.knight-heading small{display:block;font-size:10px;color:#bdcdb8;margin-top:11px}.knight-vital{display:flex;gap:10px;align-items:center;margin-top:9px;font-size:10px}.knight-vital>span{width:91px}.knight-vital .bar{height:8px}.knight-stats{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #d0c19c;border-radius:12px;background:#eae3d0;margin:14px 0;text-align:center;padding:12px 0;font-size:10px;color:#667054}.knight-stats b{display:block;font:700 23px Georgia;color:#7f622e;margin-bottom:3px}.knight-stats>div+div{border-left:1px solid #d4c7a8}.knight-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:16px 0}.knight-tabs button{min-height:44px}.knight-menu .section-heading{font-size:13px;margin:19px 0 12px}.supply-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.supply-card{position:relative;border:1px solid #cbb98e;background:linear-gradient(145deg,#eee8d9,#e6dbc1);padding:14px;border-radius:14px;text-align:center}.equipment-art{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 4px 3px #55482524)}.supply-card .item-quantity{position:absolute;top:14px;right:14px;background:#254c38;color:#f8e9c1;border-radius:20px;padding:4px 9px;font-size:13px;font-weight:750}.supply-card h3{font-size:13px;margin:4px 0}.supply-card p{font-size:11px;line-height:1.5;margin:6px 0}.supply-card small{display:block;font-size:10px;color:#7c775c}.supply-card button{width:100%;min-height:43px;margin-top:12px;padding:10px 7px;font-size:11px}.material-card{display:flex;align-items:center;gap:14px;background:#eae4d4;border:1px solid #d0c19c;border-radius:12px;padding:10px 14px;margin-top:12px}.material-card .equipment-art{width:55px;height:55px;flex-shrink:0}.material-card h3{font-size:12px;margin:0}.material-card p{font-size:11px;margin:3px 0;line-height:1.5}.material-card .item-quantity{color:#8c672b;margin-left:4px}.gear-list{display:grid;gap:10px}.gear-card{display:flex;gap:18px;align-items:center;padding:16px;border:1px solid #ccb98d;border-radius:14px;background:linear-gradient(110deg,#e5d9bb,#f1ebdd)}.gear-card .equipment-art{width:90px;height:90px;flex-shrink:0}.gear-card>div{flex:1;min-width:0}.gear-card h3{margin:6px 0}.gear-card p{font-size:11px;margin:0}.gear-progress{list-style:none;padding:0;margin:9px 0 0;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:9px}.gear-progress .acquired{color:#326448}.gear-progress .locked{color:#7f7b6b}.unowned .equipment-art{opacity:.4;filter:grayscale(.65)}.knight-menu .inventory-feedback:empty{display:none}.knight-menu .inventory-feedback{color:#306444;font-weight:700;font-size:12px}.knight-menu .options{margin-top:16px}.knight-menu .footer-brand{margin-bottom:0}.knight-menu{padding-top:12px}#inventoryBtn{color:#ffe6aa;border-color:#d8b87599}
.map-mission{padding:14px 16px;border-radius:12px;border:1px solid #b9a575;background:#e7dcc0;margin-top:16px}.map-mission>label{display:block;color:#855433;font-size:10px;letter-spacing:.12em;font-weight:750;margin-bottom:7px}.map-mission select,.map-search select{width:100%;max-width:100%;min-height:44px;border:1px solid #b49b69;border-radius:8px;background:#faf0d6;color:#3c4832;font:13px system-ui;padding:9px}.map-mission p{font-size:12px;line-height:1.55;margin:9px 0 0}.parchment-map{display:block;width:min(100%,420px);margin:18px auto 8px;background:#dfc799;border:1px solid #ad8d52;box-shadow:0 8px 20px #594d3022;border-radius:5px}.map-help{font-size:11px!important}.map-search{margin-top:15px;padding:14px;border:1px solid #c9b790;border-radius:10px;background:#eee6d2}.map-search summary{cursor:pointer;font-size:12px;font-weight:700;min-height:25px}.map-search label{display:block;font-size:11px;margin:12px 0 6px}.map-search .options{margin-top:10px}.map-search button{min-height:44px}
.economy-ranks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:#1d4030;border:1px solid #8b9b60;padding:16px;border-radius:13px;color:#dae3c5}.economy-ranks span{font-size:10px;line-height:1.5}.economy-ranks b{display:block;font:17px Georgia;color:#f5d89d;margin-bottom:4px}.economy-note{font-size:12px!important;line-height:1.6!important}.order-card,.recipe-card{margin:12px 0;padding:16px;border:1px solid #c7b58d;background:linear-gradient(135deg,#efe7d3,#e5d9be);border-radius:13px}.order-heading{display:flex;gap:15px;align-items:center}.order-heading .equipment-art{width:76px;height:76px;flex-shrink:0}.order-heading h3{margin:7px 0 2px}.order-heading p{font-size:12px;line-height:1.5;margin:4px 0}.order-reward{font-size:11px;color:#806028}.order-stock{margin-top:10px;font-size:11px;color:#4b6542}.order-card .options,.recipe-card .options{margin-top:12px;gap:7px}.order-card button,.recipe-card button{min-height:44px;padding:10px 13px}.panel button.quiet{font-size:10px;background:transparent;border-color:transparent;color:#726951}.resource-grid,.market-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.resource-card,.market-item{padding:14px;text-align:center;border:1px solid #c7b58d;background:#eae1cb;border-radius:12px}.resource-card .equipment-art,.market-item .equipment-art{height:74px;width:74px}.resource-card h3,.market-item h3{font-size:13px}.resource-card h3 span{color:#8c672f}.resource-card p{font-size:11px;line-height:1.4;margin:4px 0}.resource-card small{display:block;font-size:10px;color:#6c7458}.resource-card button{width:100%;margin-top:11px;min-height:44px;font-size:11px;padding:9px}.goods-list{margin-top:20px}.goods-list>div{display:flex;gap:12px;align-items:center;padding:8px 12px;background:#eae2ce;border-bottom:1px solid #cec09c;font-size:12px}.goods-list .equipment-art{height:44px;width:44px}.goods-list b{margin-left:auto;color:#85652f}.recipe-costs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.recipe-costs span{font-size:11px;padding:5px 9px;border-radius:8px;background:#e2dec5}.recipe-costs .enough{color:#38613c}.recipe-costs .missing{color:#95533c}.market-item .options{display:grid;gap:7px;margin-top:10px}.market-item button{font-size:11px;min-height:44px;padding:9px}
@media(max-width:760px){.economy-ranks{padding:12px;gap:8px}.economy-ranks b{font-size:14px}.economy-ranks span{font-size:9px}.order-card,.recipe-card{padding:12px}.order-heading{gap:10px}.order-heading .equipment-art{width:55px;height:65px}.order-heading h3{font-size:13px}.order-heading p{font-size:11px}.order-card .options button,.recipe-card .options button{font-size:11px}.resource-grid,.market-grid{gap:8px}.resource-card,.market-item{padding:10px}.resource-card button,.market-item button{font-size:10px}.order-card button.primary{padding:10px 14px}}
@media(pointer:coarse),(max-width:760px){.knight-heading{gap:10px;padding:14px 10px}.knight-heading>canvas{width:70px;height:110px}.knight-heading h2{font-size:28px}.knight-rank{font-size:10px}.knight-vital{font-size:9px;gap:6px}.knight-vital>span{width:83px}.knight-heading small{font-size:9px}.knight-tabs button{padding:10px 4px}.supply-grid{gap:8px}.supply-card{padding:12px 8px}.supply-card .equipment-art{width:74px;height:74px}.supply-card .item-quantity{top:9px;right:9px;font-size:11px}.supply-card h3{font-size:12px}.supply-card button{font-size:10px}.gear-card{padding:13px 9px;gap:10px}.gear-card .equipment-art{width:64px;height:72px}.gear-card .overline{font-size:8px}.gear-card h3{font-size:12px}.knight-stats b{font-size:21px}.knight-menu .options button{min-height:44px}.knight-menu .footer-brand{font-size:10px}.hud-right{max-width:166px}#objective{top:125px}}
/* Title artwork remains readable at desktop, portrait and landscape sizes. */
.title-screen{display:block;position:relative;width:min(1200px,100%);min-height:650px;border-radius:20px;background:#0c1d20;isolation:isolate;border-color:#cbbd886b}
.title-art{position:absolute;inset:0;min-height:0;height:auto;border:0;z-index:-2;background:#122629}
.title-art img{width:100%;height:100%;left:0;top:0;object-fit:cover;object-position:62% 50%;opacity:1;filter:none}
.title-art::after{background:linear-gradient(90deg,#081a1df5 0%,#0b1c20de 24%,#0c202783 47%,#0a1a2420 72%),linear-gradient(0deg,#0b1e27b8,transparent 30%)}
.title-copy{padding:48px 52px 28px;width:510px;max-width:53%;min-height:650px;display:flex;flex-direction:column;justify-content:center}
.title-copy .eyebrow{letter-spacing:.27em;color:#d2bc84;font-size:10px}.title-ornament{font:35px Georgia;color:#d6be7e;margin-top:22px;line-height:1}
.title-copy h1{font:500 clamp(64px,6.8vw,96px)/.95 Georgia,serif;letter-spacing:.09em;margin:12px 0 22px;color:#f3dfac;text-shadow:0 3px 25px #071917}
.title-copy h1>span{font:17px/1.5 Georgia,serif;letter-spacing:.05em;color:#eee6cd;margin-top:16px}
.title-copy .title-tagline{font:21px/1.5 Georgia,serif;color:#e1e8db;margin:0 0 6px}.title-copy .chapter{margin:21px 0}.title-copy .chapter strong{font-size:20px}.title-copy .chapter small{font-size:11px;color:#c1d0c4}.title-copy .primary{min-height:52px;box-shadow:0 5px 24px #040e1477}
.title-secondary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.title-secondary button{min-height:44px;font-size:12px;background:#102b31cc;border-color:#c4b87955;color:#e3dec9}
.title-copy .title-save{font:10px/1.6 system-ui;color:#c0cabb;margin:14px 0 0;min-height:16px}.title-copy .credits{font-size:9px;letter-spacing:.04em;color:#99afa4;margin-top:18px}
.story-progress{padding:16px;background:#24473d;color:#eee3bd;border:1px solid #829878;border-radius:12px;margin:18px 0}.story-progress span{font:16px/1.5 Georgia;display:block}.story-progress progress{display:block;appearance:none;width:100%;height:7px;border:0;background:#152f2e;border-radius:6px;overflow:hidden;margin:12px 0 8px}.story-progress progress::-webkit-progress-bar{background:#152f2e}.story-progress progress::-webkit-progress-value{background:#dcc18a}.story-progress small{font-size:10px;color:#d8e2cb}.panel .story-lead{font:17px/1.75 Georgia;color:#3b5344}.story-next{background:#e8dfc7;border-left:3px solid #a58144;padding:14px 18px;border-radius:0 9px 9px 0}.story-next p{margin:6px 0 0;font-size:12px}.story-chapters{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:23px 0}.story-chapters li{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #d4c6a4;border-radius:9px;background:#eee7d7}.story-chapters li>span{font:23px Georgia;color:#9b7b40;min-width:28px}.story-chapters b{font-size:12px}.story-chapters small{display:block;font-size:10px;color:#697761;margin-top:5px}.story-chapters .current{background:#d9e2ce;border-color:#93a584}.story-chapters .done{background:#e3e7d6}.story-chapters .locked{opacity:.65}.story-memory{border-top:1px solid #cbbb96;padding-top:15px;font-size:12px}.story-memory summary{cursor:pointer;min-height:35px;font-weight:700}.story-memory p{padding-bottom:12px;border-bottom:1px solid #d5c9af}.story-memory b{color:#89662f}.bell-notes{display:flex;justify-content:center;gap:18px;padding:22px}.bell-notes span{width:64px;height:64px;display:grid;place-items:center;border:1px solid #bead85;background:#e3dac4;border-radius:50%;font:22px Georgia;color:#97846b}.bell-notes .lit{background:#f5dfa1;color:#4f673e;box-shadow:0 0 24px #dfb95b66}.story-finale{text-align:center;padding:16px 2px}.story-finale .chapter-seal{margin-top:18px}.story-finale .options{justify-content:center}.story-reward{background:#e5dcc1;border:1px solid #c1a46c;color:#785c29;border-radius:12px;padding:16px;margin:14px 0;font:18px Georgia}.story-reward small{display:block;font:11px/1.6 system-ui;margin-top:7px}.prologue-art{height:165px;border-radius:10px;margin:5px 0 22px;background:linear-gradient(0deg,#15312640,#091d2110),url('assets/valen-cover-v1-7.webp') center 40%/cover}.panel #storyActions button,.panel #prologueActions button,.panel #bellKeys button,.panel #storyEndActions button{min-height:46px}#bellKeys{justify-content:center}#bellKeys button{min-width:80px}
@media(max-width:760px){.title-screen{min-height:min(740px,calc(100dvh - 24px));max-width:460px}.title-art{height:auto;min-height:0}.title-art img{width:100%;height:100%;object-position:68% 50%}.title-art::after{background:linear-gradient(0deg,#071b20fa 0%,#0c2027eb 35%,#11233033 78%,#0c20273d)}.title-copy{max-width:100%;width:100%;min-height:min(740px,calc(100dvh - 24px));padding:24px;justify-content:flex-end;padding-top:205px}.title-copy .eyebrow{font-size:8px}.title-ornament{display:none}.title-copy h1{font-size:60px;margin:14px 0 14px}.title-copy h1>span{font-size:14px;margin-top:9px}.title-copy .title-tagline{font-size:17px;line-height:1.4}.title-copy .chapter{margin:17px 0}.title-copy .chapter strong{font-size:18px}.title-copy .chapter>span{height:43px;width:38px}.title-copy .credits{font-size:8px;margin-top:12px}.title-copy .title-save{font-size:9px;margin-top:11px}.title-secondary{gap:8px}.title-secondary button{font-size:11px}.story-chapters{grid-template-columns:1fr}.story-progress span{font-size:14px}.panel .story-lead{font-size:16px}.prologue-art{height:140px}.story-next{padding:12px}.bell-notes{gap:12px;padding:15px}.bell-notes span{width:54px;height:54px}}
@media(max-height:550px) and (min-width:700px){.title-screen{min-height:410px;width:min(1000px,100%);max-width:1000px}.title-art{min-height:0;height:auto}.title-copy{min-height:410px;padding:22px 38px;width:470px;max-width:55%;justify-content:center}.title-ornament{display:none}.title-copy h1{font-size:55px;margin:10px 0}.title-copy h1>span{font-size:13px;margin-top:6px}.title-copy .title-tagline{font-size:14px}.title-copy .chapter{margin:12px 0}.title-copy .chapter strong{font-size:17px}.title-copy .credits{margin-top:9px}.title-copy .primary{min-height:44px;padding:10px}.title-secondary{margin-top:7px}.title-secondary button{min-height:38px}.title-copy .title-save{margin-top:8px}}

.panel>.overline{display:block;padding-right:26px;line-height:1.7}.title-screen{margin:auto}@media(max-width:760px) and (max-height:750px){.title-copy{padding-top:115px}.title-copy h1{font-size:52px}.title-copy .title-tagline{font-size:15px}.title-copy .chapter{margin:13px 0}.title-copy .credits{margin-top:9px}}
/* Mobile: an invisible floating movement area and two primary action buttons. */
#rotateHint{display:none;pointer-events:none}
@media(pointer:coarse),(max-width:760px),(max-width:1200px) and (max-height:600px){
 #hud{z-index:4}.key-guide{display:none}#miniBtn{z-index:4}#bottom{z-index:3;justify-content:flex-end;left:12px;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));gap:0}
 #joystick{display:block;position:fixed;left:0;bottom:0;width:46vw;height:64dvh;border:0;border-radius:0;background:transparent;box-shadow:none;opacity:1;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
 #joystick::before,#joystick::after{display:none}.actions{display:flex;align-items:flex-end;gap:16px;pointer-events:none}.actions button{pointer-events:auto;-webkit-tap-highlight-color:transparent;touch-action:none}
 .actions #potionBtn,.actions #spellBtn{display:none}.actions #attackBtn{width:76px;height:76px;min-width:76px;border-radius:50%;padding:8px;background:radial-gradient(circle at 35% 25%,#53695bde,#1c352ce0);border:2px solid #e9dfbba6;box-shadow:0 0 0 4px #193b302e,0 5px 18px #07150d55;gap:4px}
 .actions #attackBtn span{font-size:30px;color:#fff1cf}.actions #attackBtn small{font-size:10px;color:#f7efda}.actions #interactBtn{width:66px;height:66px;min-width:66px;border-radius:50%;padding:7px;border:1px solid #f4db9cba;background:linear-gradient(135deg,#eed39bd9,#b49458e8);box-shadow:0 5px 16px #07150d55;gap:3px}.actions #interactBtn span{font-size:24px}.actions #interactBtn small{font-size:9px}
 #prompt{z-index:4;max-width:50vw;white-space:normal;text-align:center;line-height:1.4;bottom:max(22px,env(safe-area-inset-bottom));font-size:11px;padding:8px 14px}
 .panel .options button{min-height:44px}.hud-right button{min-height:42px}.hero-panel{width:180px}
}
@media(orientation:landscape) and (max-height:600px){
 #hud{top:max(9px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));gap:12px;align-items:flex-start}
 .hero-panel{width:176px;padding:5px 8px 5px 4px;gap:7px;border-radius:12px;box-shadow:none}.hero-panel>canvas{width:42px;height:44px;border-radius:8px}.hero-info>div{font-size:10px;letter-spacing:.08em;margin-bottom:2px}.hero-info>div span{font-size:10px}.hero-info label{font-size:8px;line-height:1.6;gap:5px}.hero-info label>span{width:49px}.hero-info .bar{height:5px}.hero-info .xp{height:2px;margin-top:3px}
 .hud-right{max-width:none;flex-wrap:nowrap;gap:6px;align-items:center}.hud-right button{min-height:44px;font-size:10px;padding:8px 11px}.hud-right #mapBtn{display:none}.gold{min-height:42px;font-size:12px;padding:8px;gap:5px}.gold>b{font-size:13px}#menuBtn{min-width:44px}
 #miniBtn{top:max(9px,env(safe-area-inset-top));left:calc(max(12px,env(safe-area-inset-left)) + 184px);bottom:auto;padding:3px;border-radius:9px}#minimap{width:78px;height:62px;border-radius:5px}
 #location{top:73px;left:max(14px,env(safe-area-inset-left));max-width:180px}#location>span{display:none}#location strong{font-size:14px;line-height:1.3;margin-top:0}#location small{font-size:9px;line-height:1.4;margin-top:3px}
 #objective{top:74px;right:max(12px,env(safe-area-inset-right));width:220px;max-width:29vw;padding:9px 11px;border-radius:10px;background:#10291eb8}#objective>span:first-child{font-size:7px;letter-spacing:.16em}#objective strong{font-size:11px;margin-top:4px}#objective small{font-size:9px;line-height:1.45;margin-top:4px}#compass{font-size:9px;margin-top:6px}
 #bossHud{top:73px;left:50%;width:205px;max-width:30vw;padding:8px 12px;border-radius:10px}#bossHud strong{font-size:14px;margin:4px 0 7px}#bossHud small{font-size:7px}#game:has(#bossHud:not([hidden])) #objective{display:none}
 #prompt{max-width:calc(100vw - 380px);bottom:20px;font-size:10px}#toast{top:29%;max-width:min(420px,58%);font-size:12px;padding:10px 16px}
 .overlay{padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left))}.panel{max-height:calc(100dvh - 20px);padding:20px 24px;width:min(720px,100%)}.panel h2{font-size:24px}.dialogue-body{font-size:16px!important;line-height:1.65!important;min-height:40px}.dialogue-heading canvas{width:65px;height:72px}.dialogue-heading h2{font-size:22px}.panel .options{margin-top:16px}.story-chapters{grid-template-columns:1fr 1fr}.prologue-art{height:105px;margin-bottom:16px}.knight-heading{padding:12px 16px}.knight-heading>canvas{height:85px;width:70px}
 .title-screen{max-width:1200px;width:100%;min-height:calc(100dvh - 20px)}.title-art{height:auto;min-height:0}.title-art img{object-position:65% 50%}.title-art::after{background:linear-gradient(90deg,#081a1df5 0%,#0b1c20df 28%,#0c202780 50%,#0a1a2410 78%)}
 .title-copy{width:47%;max-width:500px;min-height:calc(100dvh - 20px);padding:18px 28px;justify-content:center}.title-copy .eyebrow{font-size:8px}.title-ornament,.title-copy .title-tagline{display:none}.title-copy h1{font-size:52px;margin:9px 0 12px}.title-copy h1>span{font-size:13px;margin-top:7px}.title-copy .chapter{margin:8px 0 13px;gap:11px}.title-copy .chapter>span{width:32px;height:34px;font-size:24px}.title-copy .chapter strong{font-size:16px}.title-copy .chapter small{font-size:9px;margin-top:3px}.title-copy .primary{min-height:44px;font-size:12px;padding:10px 15px}.title-secondary{gap:8px;margin-top:8px}.title-secondary button{font-size:10px;min-height:40px;padding:8px}.title-copy .title-save{font-size:8px;line-height:1.5;margin-top:9px}.title-copy .credits{font-size:7px;line-height:1.4;margin-top:8px}
}
@media(orientation:landscape) and (max-height:380px){.title-copy{padding:12px 22px}.title-copy h1{font-size:43px;margin:7px 0 8px}.title-copy h1>span{font-size:11px;margin-top:6px}.title-copy .chapter{margin:5px 0 9px}.title-copy .chapter strong{font-size:14px}.title-copy .chapter small{font-size:8px}.title-copy .credits{display:none}.title-copy .title-save{margin-top:7px}.actions #attackBtn{width:70px;height:70px;min-width:70px}.actions #interactBtn{width:62px;height:62px;min-width:62px}#objective{max-width:28vw}#prompt{max-width:calc(100vw - 300px)}}
@media(orientation:portrait) and (max-width:760px){#rotateHint{display:block;position:absolute;z-index:4;top:109px;right:10px;width:175px;font-size:10px;line-height:1.5;text-align:right;color:#f0d99e;text-shadow:0 2px 5px #142d22}#objective{top:153px}.hero-panel{width:173px}.hud-right{max-width:150px;gap:4px}.hud-right button{font-size:9px;padding:7px 8px;min-height:38px}#joystick{height:55dvh;width:47vw}#prompt{bottom:102px;max-width:86vw}.actions{gap:12px}.actions #attackBtn{width:70px;height:70px;min-width:70px}.actions #interactBtn{width:62px;height:62px;min-width:62px}}


@media(orientation:landscape) and (max-height:600px){.title-copy{min-height:calc(100dvh - 24px)}}
/* Four actions share a thumb-sized orbit; the sword stays in the center. */
.actions{position:relative;width:216px;height:208px;display:block;pointer-events:none}
.actions::before{content:'';position:absolute;width:146px;height:146px;left:35px;top:32px;border:1px solid #e8d29b50;border-radius:50%;background:radial-gradient(circle,transparent 48%,#183b2b35 70%,transparent 71%);pointer-events:none}
.actions button{position:absolute;display:flex;pointer-events:auto;touch-action:none;border-radius:50%;padding:5px;gap:2px;box-shadow:0 4px 15px #07150d66;-webkit-tap-highlight-color:transparent;user-select:none}
.actions #attackBtn{left:68px;top:69px;width:80px;height:80px;min-width:80px;border:2px solid #f2dfafa6;background:radial-gradient(circle at 35% 25%,#5a7161ed,#19392ded);box-shadow:0 0 0 5px #d5b97819,0 6px 18px #07150d80;z-index:1}
.actions #attackBtn span{font-size:31px;color:#fff0c9}.actions #attackBtn small{font-size:10px;color:#f9ecca}
.actions #potionBtn{display:flex;left:0;top:52px;width:60px;height:60px;min-width:60px;background:radial-gradient(circle at 35% 25%,#69534cf2,#3e302de8);border:1px solid #e7bc8ca6}
.actions #spellBtn{display:flex;left:80px;top:0;width:60px;height:60px;min-width:60px;background:radial-gradient(circle at 35% 25%,#556b89f2,#273e54ed);border:1px solid #b9dae3a6}
.actions #interactBtn{display:flex;left:150px;top:91px;width:66px;height:66px;min-width:66px;background:linear-gradient(135deg,#efd59de8,#bc9c60ed);border:1px solid #f5dda7ba}
.actions #potionBtn span,.actions #spellBtn span,.actions #interactBtn span{font-size:24px}.actions #potionBtn span{color:#ffd4ad}.actions #spellBtn span{color:#d2edff}.actions #interactBtn span{color:#30412a}
.actions small{font-size:8px;line-height:1.25;white-space:nowrap}.actions #interactBtn small{font-size:9px}.actions button:focus-visible{outline-offset:3px}
@media(pointer:coarse),(max-width:760px),(max-width:1200px) and (max-height:600px){#bottom{bottom:max(10px,env(safe-area-inset-bottom));right:max(12px,env(safe-area-inset-right))}.actions{width:205px;height:183px}.actions::before{left:30px;top:26px;width:140px;height:140px}.actions #attackBtn{left:65px;top:65px;width:76px;height:76px;min-width:76px}.actions #potionBtn{left:0;top:45px;width:58px;height:58px;min-width:58px}.actions #spellBtn{left:74px;top:0;width:58px;height:58px;min-width:58px}.actions #interactBtn{left:144px;top:88px;width:61px;height:61px;min-width:61px}.actions #potionBtn small,.actions #spellBtn small{font-size:8px}#prompt{max-width:calc(100vw - 440px);bottom:20px}#objective small{display:none}#objective{max-height:88px}#compass{margin-top:4px}}
@media(orientation:landscape) and (max-height:380px){.actions{width:185px;height:160px}.actions::before{left:27px;top:18px;width:128px;height:128px}.actions #attackBtn{left:59px;top:58px;width:70px;height:70px;min-width:70px}.actions #potionBtn{left:0;top:37px;width:52px;height:52px;min-width:52px}.actions #spellBtn{left:66px;top:0;width:52px;height:52px;min-width:52px}.actions #interactBtn{left:134px;top:78px;width:51px;height:51px;min-width:51px}.actions #interactBtn span{font-size:22px}#prompt{max-width:calc(100vw - 400px)}#objective{top:68px;padding:7px 10px}#objective>span:first-child{display:none}.actions::before{opacity:.7}}
@media(orientation:portrait) and (max-width:760px){#prompt{bottom:205px;max-width:85vw}.actions{width:205px;height:183px}#miniBtn{bottom:215px}}

.title-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.title-secondary button{padding-left:6px;padding-right:6px;white-space:nowrap}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.profile-card{display:grid;grid-template-columns:58px 1fr;gap:12px;padding:17px;border:1px solid #c9b78b;border-radius:14px;background:#eee7d5}.profile-card.selected{border-color:#557557;box-shadow:inset 0 0 0 1px #557557;background:#e6e8d6}.profile-card h3{font:24px Georgia;margin:6px 0;overflow-wrap:anywhere}.profile-card small{font-size:8px;letter-spacing:.1em;color:#677957}.profile-card p{font-size:11px;line-height:1.6;margin:0}.profile-emblem{display:grid;place-items:center;width:58px;height:65px;flex-shrink:0;color:#efd39b;background:radial-gradient(circle at 30% 20%,#53714e,#193c2b);border:1px solid #ad925b;border-radius:50% 50% 45% 45%;font:38px Georgia;box-shadow:inset 0 0 0 4px #ecd3a018}.profile-card-actions{grid-column:1/-1}.profile-card-actions button{width:100%;min-height:44px}.profile-note{font-size:11px!important;border-top:1px solid #cebf99;padding-top:14px}.player-heading{display:flex;gap:20px;align-items:center;margin-bottom:18px}.player-heading h2{overflow-wrap:anywhere;margin-bottom:3px}.player-heading p{margin:0;font-size:12px}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:18px 0 24px;text-align:center}.profile-stats>div{padding:12px 4px;background:#e5ddc5;border-radius:10px;font-size:10px}.profile-stats b{display:block;font:24px Georgia;color:#826231;margin-bottom:6px}.achievement-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.achievement{display:flex;gap:12px;padding:14px;border-radius:12px;border:1px solid #ccbea0;background:#e9e3d5}.achievement>span{font:29px Georgia;width:32px;flex-shrink:0;color:#8d8d78}.achievement>div{flex:1;min-width:0}.achievement h3{font-size:12px;margin:0}.achievement p{font-size:10px;line-height:1.5;margin:5px 0 7px}.achievement small{font-size:9px;color:#707758}.achievement.earned{background:#e2e8d0;border-color:#92a579}.achievement.earned>span{color:#957332}.achievement.earned small{color:#3c6544;font-weight:700}.achievement progress{display:block;width:100%;height:5px;margin-top:7px;accent-color:#668554}.profile-field{display:block;margin-top:18px;font-size:12px;font-weight:650}.profile-field input,.profile-field select{display:block;width:100%;margin-top:8px;border:1px solid #ae9f7a;border-radius:9px;min-height:48px;padding:10px 12px;font:16px system-ui;background:#fffaf0;color:#253b28}.profile-error{color:#98412f!important;font-weight:650;min-height:20px}
@media(max-width:600px){.profile-grid{grid-template-columns:1fr}.achievement-grid{grid-template-columns:1fr}.profile-stats{grid-template-columns:repeat(2,1fr)}.player-heading{gap:14px}}
@media(orientation:landscape) and (max-height:600px){.title-copy{width:49%;padding-left:22px;padding-right:22px}.title-secondary button{font-size:9px;min-height:40px}.title-copy .title-save{line-height:1.4}.profile-grid{grid-template-columns:1fr 1fr}.achievement-grid{grid-template-columns:1fr 1fr}.profile-stats{grid-template-columns:repeat(4,1fr)}}

.actions #spellBtn{gap:0}.actions #spellBtn span{font-size:21px}.actions #spellBtn .action-caption{font-size:9px;line-height:1.2;color:#edf3ff}.actions #spellText{font-size:7px;line-height:1.3;color:#c5d5e7}

.cloud-status{padding:12px 15px;border:1px solid #8ba782;border-radius:10px;background:#e2e8d6;font-weight:700}.profile-field textarea{display:block;width:100%;border:1px solid #ac9870;border-radius:9px;margin-top:10px;padding:14px;font:16px/1.8 monospace;background:#fff9e9;color:#2a432f;overflow-wrap:anywhere;resize:none}.profile-note a{color:#496b48}

/* A labeled fullscreen shortcut is visible before and during play. */
.fullscreen-toggle{position:absolute;z-index:11;top:max(18px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:center;gap:8px;width:166px;min-height:44px;padding:8px 10px;border:1px solid #e9cb85;background:#17382ff2;color:#ffedbc;border-radius:12px;font-size:11px;line-height:1.35;box-shadow:0 3px 14px #07180c55;touch-action:manipulation}
.fullscreen-toggle>span:first-child{font:26px/1 system-ui}.fullscreen-toggle[aria-pressed="true"]{background:#e3c489;color:#203a2d;border-color:#ffedbd}
#game:has(#overlay[hidden]) .fullscreen-toggle{left:24px;right:auto;top:172px}
#game:has(#panel:not([hidden])) .fullscreen-toggle{display:none}
#toast{z-index:12}
@media(orientation:landscape) and (max-height:600px){.fullscreen-toggle{top:max(12px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right))}#game:has(#overlay[hidden]) .fullscreen-toggle{left:max(12px,env(safe-area-inset-left));top:114px;width:166px}}
@media(orientation:portrait) and (max-width:760px){.fullscreen-toggle{top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right))}#game:has(#overlay[hidden]) .fullscreen-toggle{left:14px;top:104px;width:158px}#location{top:157px;max-width:165px}#location strong{font-size:17px}}
/* Story identity remains visible alongside the selected optional activity. */
.story-ribbon{position:absolute;z-index:5;top:218px;left:24px;max-width:330px;padding:10px 14px;min-height:44px;text-align:left;line-height:1.4;border:1px solid #b9d2c2;background:#163c35ee;color:#d9f0e2;border-radius:10px;font-size:12px;box-shadow:0 3px 12px #10241750}
.story-ribbon.completed{border-color:#d1b873;color:#f2dda5}
.raid-notice{position:absolute;z-index:6;left:50%;transform:translateX(-50%);top:104px;max-width:340px;min-height:44px;padding:9px 15px;border:1px solid #e1ad76;background:#65342cf2;color:#ffedce;border-radius:12px;font-size:12px;box-shadow:0 3px 14px #241b1655}
#game:has(#overlay:not([hidden])) .story-ribbon,#game:has(#overlay:not([hidden])) .raid-notice{display:none}
.actions{width:240px;height:230px}.actions #attackBtn{left:105px;top:65px}.actions #potionBtn{left:35px;top:50px}.actions #spellBtn{left:115px;top:0}.actions #interactBtn{left:85px;top:155px;width:66px;height:66px;min-width:66px}
@media(orientation:landscape) and (max-height:600px){
 .story-ribbon{top:164px;left:max(12px,env(safe-area-inset-left));max-width:250px;padding:7px 10px;font-size:10px}
 .raid-notice{top:58px;max-width:280px;padding:6px 10px;font-size:10px}
 #objective{width:235px;max-width:235px;max-height:none;padding:8px 11px;top:102px;right:max(14px,env(safe-area-inset-right))}
 #objective small{display:block;font-size:9px;line-height:1.3;max-height:36px;overflow:hidden}#objective>span:first-child{display:block;font-size:8px}
 #bottom{right:max(24px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}
 .actions{width:230px;height:208px}.actions::before{left:63px;top:33px;width:148px;height:148px}
 .actions #attackBtn{left:112px;top:68px;width:70px;height:70px;min-width:70px}
 .actions #potionBtn{left:43px;top:53px;width:54px;height:54px;min-width:54px}
 .actions #spellBtn{left:120px;top:0;width:54px;height:54px;min-width:54px}
 .actions #interactBtn{left:83px;top:149px;width:59px;height:59px;min-width:59px}
 #prompt{bottom:24px;max-width:calc(100vw - 520px)}
}
@media(orientation:landscape) and (max-height:400px){
 .story-ribbon{top:159px;max-width:205px;font-size:9px;min-height:38px}.raid-notice{top:54px;font-size:9px}
 #objective{top:100px;width:200px;max-width:200px;padding:6px 9px}#objective strong{font-size:9px}#objective small{max-height:24px;font-size:8px}
 .actions{width:222px;height:184px}.actions #attackBtn{left:112px;top:58px;width:63px;height:63px;min-width:63px}.actions #potionBtn{left:49px;top:45px;width:50px;height:50px;min-width:50px}.actions #spellBtn{left:118px;top:0;width:50px;height:50px;min-width:50px}.actions #interactBtn{left:86px;top:130px;width:54px;height:54px;min-width:54px}
}
@media(orientation:portrait) and (max-width:760px){.story-ribbon{top:217px;left:14px;max-width:185px;font-size:10px}.raid-notice{top:275px;width:90%;max-width:90%}}


/* Title film 1.9.2 */
.title-art video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 50%;opacity:0;pointer-events:none;transition:opacity .45s ease}
.title-art.has-video video{opacity:1}
.title-art::after{z-index:1}
.title-motion{position:absolute;right:22px;bottom:22px;z-index:3;min-height:44px;padding:10px 16px;background:#10251de8;border:1px solid #dfbf7290;border-radius:24px;color:#f2dfae;font-size:12px;box-shadow:0 2px 16px #0005}
.title-motion:focus-visible{outline:3px solid #f2d785;outline-offset:3px}
.title-motion:disabled{opacity:.65}
@media(max-width:760px) and (orientation:portrait){.title-art video{object-position:68% 50%}.title-motion{top:65px;bottom:auto;right:16px}}
@media(orientation:landscape) and (max-height:600px){.title-motion{bottom:14px;right:18px;padding:9px 14px;font-size:11px}}
@media(prefers-reduced-motion:reduce){.title-art video{transition:none}}

/* Two visible spells; interaction stays below the sword and away from the edge. */
.actions{width:260px;height:242px}.actions #attackBtn{left:120px;top:80px}.actions #spellBtn{left:93px;top:9px}.actions #healBtn{left:170px;top:32px;width:60px;height:60px;min-width:60px;background:radial-gradient(circle at 35% 25%,#70967c,#254c39);border:1px solid #c0e5c9}.actions #healBtn span{font-size:25px;color:#d6f6cb}.actions #healBtn .action-caption{font-size:9px;color:#f3ffe8}.actions #healText{font-size:7px;color:#d6e6cf}.actions #potionBtn{left:43px;top:96px}.actions #interactBtn{left:107px;top:171px}.actions .unlearned{opacity:.63}.actions::before{left:62px;top:39px;width:162px;height:162px}
.wild-main{background:#e3e8d2;border:1px solid #90a079;border-radius:12px;padding:18px;margin:20px 0}.wild-main h3{font:24px Georgia;margin:12px 0}.wild-regions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0}.wild-regions article{padding:15px;border:1px solid #b6ab85;border-radius:12px;background:#ece5d0}.wild-regions h3{font:22px Georgia}.wild-regions p{font-size:12px}.wild-loot{display:grid;gap:12px;margin:20px 0}.wild-loot article{display:flex;gap:16px;border:1px solid #c2b58c;background:#ebe5d4;border-radius:12px;padding:16px;align-items:center}.wild-loot .equipment-art{width:86px;height:86px;flex-shrink:0}.wild-loot h3{font:23px Georgia;margin:10px 0}.wild-loot p{font-size:12px}.wild-loot small{font-size:12px}.wild-loot button{margin-top:12px}.wild-regions .unowned{opacity:.6}
@media(orientation:landscape) and (max-height:600px){.actions{width:234px;height:212px}.actions #attackBtn{left:107px;top:75px;width:68px;height:68px;min-width:68px}.actions #spellBtn{left:81px;top:9px;width:54px;height:54px;min-width:54px}.actions #healBtn{left:150px;top:24px;width:54px;height:54px;min-width:54px}.actions #potionBtn{left:43px;top:87px;width:54px;height:54px;min-width:54px}.actions #interactBtn{left:96px;top:153px;width:57px;height:57px;min-width:57px}.actions::before{left:55px;top:33px;width:148px;height:148px}#objective{max-width:210px;top:72px}#objective small{max-height:24px}#prompt{max-width:calc(100vw - 480px);bottom:22px}.wild-main{padding:12px}.wild-loot article{padding:12px}}
@media(orientation:landscape) and (max-height:400px){.actions{width:222px;height:190px}.actions #attackBtn{left:108px;top:67px;width:61px;height:61px;min-width:61px}.actions #spellBtn{left:81px;top:8px;width:50px;height:50px;min-width:50px}.actions #healBtn{left:145px;top:23px;width:50px;height:50px;min-width:50px}.actions #potionBtn{left:48px;top:78px;width:50px;height:50px;min-width:50px}.actions #interactBtn{left:95px;top:139px;width:50px;height:50px;min-width:50px}#objective{max-width:185px}#objective small{display:none}}
@media(max-width:600px) and (orientation:portrait){.wild-regions{grid-template-columns:1fr}.wild-loot article{padding:10px;gap:8px}.wild-loot h3{font-size:19px}#prompt{bottom:248px}}

/* The exterior boss card stays away from the creature and its attack telegraph. */
#bossHud.wild-boss{left:24px;top:292px;transform:none;width:244px;max-width:244px;pointer-events:none}#game:has(#bossHud.wild-boss:not([hidden])) #toast{top:auto;bottom:24px;max-width:min(440px,52vw)}
@media(orientation:landscape) and (max-height:600px){#bossHud.wild-boss{left:12px;top:218px;width:202px;max-width:202px;padding:8px 10px}#bossHud.wild-boss strong{font-size:13px}#bossHud.wild-boss small{font-size:7px}}
@media(orientation:landscape) and (max-height:400px){#bossHud.wild-boss{top:210px;width:196px;max-width:196px}}
