:root{--cream:#f1e1bc;--gold:#e8b85b;--ink:#32291e;--muted:#bdab88;--red:#c95749;--green:#89b277;--cardW:clamp(124px,10.5vw,180px);--cardH:calc(var(--cardW)*1.42);font-family:'Trebuchet MS',Verdana,sans-serif;color:var(--cream);font-synthesis:none;background:#181713}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}button,input{font:inherit}button{color:inherit;cursor:pointer;border:0}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,input:focus-visible{outline:2px solid #f5d689;outline-offset:5px}img{user-select:none;-webkit-user-drag:none;pointer-events:none}p,h1,h2,h3{margin:0}svg{width:20px;height:20px;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#world,#game,#fx,#float-layer{position:fixed;inset:0}#world{overflow:hidden;background:#181713}#backdrop{position:absolute;inset:-2%;background-position:center;background-size:cover;filter:brightness(.63) saturate(.78)}#world:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 48% 40%,transparent 25%,#0d0f12b3 98%),linear-gradient(transparent 55%,#11121690)}.world-light{position:absolute;width:28vw;height:40vh;background:radial-gradient(ellipse,#ffb34d19,transparent 70%);mix-blend-mode:screen;animation:flicker 3.6s ease-in-out infinite;top:20%}.world-light.one{left:12%}.world-light.two{right:0;top:30%;animation-delay:-1.3s}#motes{position:absolute;inset:0;pointer-events:none}#motes i{position:absolute;bottom:-10px;width:3px;height:3px;border-radius:50%;background:#e9b567;box-shadow:0 0 8px #ebaa43;animation:rise 13s linear infinite;opacity:0}#game{z-index:2}#fx{z-index:25;pointer-events:none}#float-layer{pointer-events:none;z-index:28;overflow:hidden}.scene{height:100%;position:relative;isolation:isolate}.scene.appear{animation:appear .38s ease-out}.serif,h1,h2,h3{font-family:Georgia,'Times New Roman',serif}.eyebrow{font-size:10px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:var(--gold)}.soft{color:var(--muted)}.hud{height:90px;position:absolute;inset:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:20px 38px;z-index:16;background:linear-gradient(#0e1112a0,transparent)}.hud-left,.hud-right,.hud-stat,.hud-title,.relics{display:flex;align-items:center;gap:15px}.brand{font:700 25px/.82 Georgia,serif;letter-spacing:-1px;width:154px;text-align:center;color:var(--cream);background:none}.brand i{font-style:normal;font-size:13px;display:block;margin-bottom:7px;color:var(--gold)}.hud-stat{gap:8px;font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}.hud-stat img{width:29px;height:30px;object-fit:contain}.hud-stat small{font-size:12px;color:var(--muted);font-weight:400}.hud-title{position:absolute;left:50%;transform:translateX(-50%);flex-direction:column;gap:5px}.hud-title b{font:20px Georgia,serif;letter-spacing:.4px}.hud-title small{font-size:10px;letter-spacing:2px;color:var(--muted)}.hud-divider{width:1px;height:28px;background:#e0c99e26;margin:0 5px}.round-button{width:40px;height:40px;border:1px solid #dec3992b;background:#1617179e;border-radius:10px;display:grid;place-items:center;transition:background .16s,transform .16s}.round-button:hover{background:#6c523849;transform:translateY(-2px)}.relics{gap:6px}.relic{width:36px;height:38px;background:none;padding:3px;border-bottom:1px solid #d8b25b70}.relic img{width:100%;height:100%;object-fit:contain}.footer{position:absolute;bottom:16px;left:34px;right:34px;display:flex;justify-content:space-between;color:#ab9b7d;font-size:10px;letter-spacing:1px;z-index:16}.keycap{display:inline-block;background:#d7b47312;border:1px solid #ceb88b2a;border-radius:4px;padding:2px 5px;margin:0 4px;font-size:9px;color:#d3c29c}.wood-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:14px 26px;border:1px solid #e4bb7459;background:linear-gradient(170deg,#3d3527,#282720);color:var(--cream);font:700 17px Georgia,serif;box-shadow:0 5px 0 #111613,0 12px 30px #070d1040;border-radius:5px;transition:transform .16s,filter .16s}.wood-btn:hover{filter:brightness(1.16);transform:translateY(-2px)}.wood-btn.gold{background:linear-gradient(155deg,#f1d494,#cc9f50);color:#362a15;border:2px solid #f6daa0;box-shadow:0 5px 0 #644822,0 12px 30px #0005}.wood-btn.danger{background:linear-gradient(155deg,#a85645,#713b33);border-color:#c3805c}.text-btn{background:transparent;color:var(--muted);border-bottom:1px solid #bfa36d40;padding:10px 4px;font-size:12px}.text-btn:hover{color:var(--cream)}.ribbon{font:700 24px Georgia,serif;color:#362b1d;background:#e8d2a6;padding:12px 28px;position:relative;clip-path:polygon(1% 0,98% 3%,100% 83%,97% 96%,2% 100%,0 14%);box-shadow:0 4px 12px #0006;text-align:center}.section-title{font:42px Georgia,serif}.section-kicker{font-size:11px;letter-spacing:3px;color:var(--gold);text-transform:uppercase;margin-bottom:12px}
/* Title scene */
.menu-copy{position:absolute;left:9%;top:14%;width:36%;max-width:510px;z-index:6}.menu-crown{color:var(--gold);display:flex;gap:13px;align-items:center;margin-bottom:22px;font-size:10px;letter-spacing:3px}.menu-crown:before{content:'';width:35px;height:1px;background:var(--gold)}.game-title{font:700 clamp(60px,7.6vw,124px)/.89 Georgia,serif;letter-spacing:-5px;color:#f4e7c7;text-shadow:3px 5px 0 #12181b,0 10px 50px #12181b}.game-title em{font-style:normal;letter-spacing:-6px}.menu-tag{font:italic clamp(18px,1.7vw,26px) Georgia,serif;color:#d8b477;margin:20px 0 32px}.menu-buttons{display:flex;flex-direction:column;align-items:flex-start;gap:13px;width:260px}.menu-buttons>.wood-btn{min-width:232px;justify-content:space-between;font-size:22px;padding:16px 25px}.menu-links{display:flex;gap:23px;margin-top:10px}.menu-stat{display:inline-flex;align-items:center;gap:10px;font-size:11px;color:#bbaa8b;margin-top:35px}.menu-stat img{width:20px}.menu-hero{position:absolute;width:45%;max-width:730px;right:7%;bottom:14%;aspect-ratio:400/440;filter:drop-shadow(0 32px 28px #0008);z-index:3}.menu-hero .sprite{position:absolute;inset:0;animation:breathe 4s ease-in-out infinite}.menu-hero .crown-float{position:absolute;width:20%;top:12%;left:53%;transform:rotate(12deg);filter:drop-shadow(0 5px 6px #0008);animation:bob 3.3s ease-in-out infinite}.menu-gold{position:absolute;width:35%;right:14%;bottom:12%;opacity:.93;z-index:2;filter:drop-shadow(0 10px 12px #0007)}.menu-gold img{width:25%;display:inline-block;vertical-align:bottom}.menu-quote{position:absolute;right:12%;bottom:11%;font:italic 19px Georgia,serif;color:#e8d4b0;z-index:5}.menu-version{position:absolute;right:34px;top:24px;font-size:10px;letter-spacing:2px;color:#b9a37b}.profile-main{position:absolute;top:14%;left:8%;right:8%;bottom:80px;display:flex;flex-direction:column;align-items:center;gap:20px}.profile-options{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;width:min(980px,96%);flex:1;max-height:405px}.profile-choice{background:linear-gradient(#10181899,#171d1bde);border:1px solid #baa07142;position:relative;padding:18px 25px 23px;border-radius:10px;box-shadow:0 15px 35px #0004;display:flex;flex-direction:column;align-items:center;justify-content:end;transition:transform .2s,background .2s}.profile-choice:hover{transform:translateY(-8px);background:#372c22bc}.profile-choice.active{border-color:var(--gold);box-shadow:0 0 0 3px #b9914330}.profile-choice img{height:190px;width:230px;object-fit:contain;filter:drop-shadow(0 8px 16px #0007)}.profile-choice h3{font-size:26px;margin:8px 0}.profile-choice p{font-size:12px;line-height:1.6;color:#c7b696}.profile-choice small{margin-top:11px;font-size:9px;letter-spacing:1.4px;color:var(--gold)}.keepsakes{display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:center}.keepsake{display:flex;gap:10px;align-items:center;background:#171d1ae0;border:1px solid #c6a77733;border-radius:5px;padding:8px 12px;text-align:left;min-width:138px}.keepsake.active{border-color:var(--gold);background:#51402b7a}.keepsake img{width:30px;height:30px;object-fit:contain}.keepsake strong{font-size:11px;display:block}.keepsake small{font-size:9px;color:var(--muted)}.seed-row{display:flex;gap:18px;align-items:center;font-size:11px;color:#cbb894}.seed-row input[type=text]{color:var(--cream);width:160px;letter-spacing:2px;background:#181d19b8;border:1px solid #ad916649;border-radius:4px;padding:10px}.seed-row label{display:flex;gap:7px;align-items:center}
/* Encounters */
.encounter-heading{position:absolute;top:110px;left:5%;right:5%;text-align:center;z-index:5}.encounter-heading h2{font-size:32px;font-weight:400;letter-spacing:.2px}.encounter-heading p{font-size:12px;color:var(--muted);margin-top:9px}.actor{position:absolute;bottom:calc(var(--cardH) + 158px);width:clamp(220px,22.7vw,360px);height:calc(clamp(220px,22.7vw,360px)*1.1);transform:translateX(-50%);z-index:6;background:none;outline:none;--h:0}.actor.player{width:clamp(330px,31vw,500px);height:calc(clamp(330px,31vw,500px)*1.1);bottom:calc(var(--cardH) + 139px);pointer-events:none}.actor .sprite{position:absolute;inset:0;background-position:center bottom;background-size:contain;background-repeat:no-repeat;transform-origin:center 95%;filter:drop-shadow(0 18px 15px #0006)}.breath{animation:breathe 3.3s ease-in-out infinite}.actor:nth-of-type(2) .breath{animation-delay:-.9s}.actor:nth-of-type(3) .breath{animation-delay:-1.7s}.actor .shadow{position:absolute;bottom:2%;height:11%;left:13%;width:77%;border-radius:50%;background:#050b0cac;filter:blur(8px)}.actor .ring{position:absolute;bottom:1%;left:19%;width:67%;height:10%;border-radius:50%;border:2px solid #edc578;box-shadow:0 0 18px #e7b95146,inset 0 0 18px #e7b95122;opacity:0}.actor.selected .ring{opacity:.8}.actor.selected .sprite{filter:drop-shadow(0 0 5px #e9b56290) drop-shadow(0 16px 18px #0006)}.actor:hover .ring{opacity:.65}.actor.death{pointer-events:none}.actor.far .sprite{opacity:.85}.actor-caption{position:absolute;left:50%;transform:translateX(-50%);top:100%;width:174px;text-align:center;pointer-events:none}.actor.player .actor-caption{top:97%;width:228px}.actor-name{font:700 18px Georgia,serif;text-shadow:0 2px 5px #000;margin-top:1px}.hp{position:relative;height:12px;border-radius:12px;background:#171c1a;border:1px solid #070d0f;box-shadow:0 0 0 1px #95876473,0 2px 4px #0004;overflow:hidden;margin-top:8px}.hp>i{position:absolute;top:1px;bottom:1px;left:1px;border-radius:8px;background:linear-gradient(#df8a6e,#aa4c40);transition:width .25s}.actor.player .hp>i{background:linear-gradient(#b5c581,#748f61)}.hp b{position:relative;display:block;text-align:center;font-size:9px;text-shadow:0 1px 2px #000;color:#fff7df;font-variant-numeric:tabular-nums;line-height:10px}.actor-flags{font-size:10px;display:flex;align-items:center;gap:7px;justify-content:center;margin-top:9px;color:#d4c5a1;min-height:20px}.actor-flags span{display:flex;gap:3px;align-items:center}.actor-flags svg{width:13px;height:13px}.greed-pips{display:inline-flex;gap:4px;margin-left:2px}.greed-pips i{height:7px;width:7px;transform:rotate(45deg);border:1px solid #e6bd716d}.greed-pips i.on{background:var(--gold);box-shadow:0 0 6px #b6894080}.poison-flag{color:#b1d689}.trap-flag{color:#f5d78e;font-size:9px;letter-spacing:1px}.intent{position:absolute;left:50%;bottom:69%;transform:translateX(-50%);min-width:112px;background:#151d1bee;border:1px solid #bd927b7c;border-radius:28px;padding:10px 16px;display:flex;gap:8px;align-items:center;justify-content:center;box-shadow:0 7px 16px #0005;z-index:7;font-weight:700;font-size:16px;color:#e7a78e;white-space:nowrap}.intent:after{content:'';position:absolute;bottom:-6px;left:50%;height:10px;width:10px;background:#151d1b;transform:rotate(45deg);border-right:1px solid #bd927b7c;border-bottom:1px solid #bd927b7c}.intent svg{width:18px}.intent small{font-size:10px;font-weight:400}.intent.heal{color:#aed09b;border-color:#8eb17f}.intent.guard{color:#b4c6da;border-color:#7f9dab}.intent.steal,.intent.stun{color:#edcb82;border-color:#bd9658}.intent.aim{color:#c7b8dc}.intent.move{color:#c8c1ae}.taste-hint{font-size:9px;position:absolute;bottom:84%;left:50%;transform:translateX(-50%);color:#c5b090;letter-spacing:1px;white-space:nowrap}.actor.target-preview .intent{box-shadow:0 0 0 2px #faebbd60}.enemy-detail{position:absolute;left:5%;top:192px;width:220px;font-size:11px;line-height:1.5;color:#cbb99a;display:none;padding:12px 14px;border-radius:8px;border:1px solid #d7b66c3d;background:#14201eed;z-index:20}.enemy-detail.show{display:block}.enemy-detail b{font:700 18px Georgia,serif;color:var(--cream);display:block;margin-bottom:5px}.speech{position:absolute;right:18%;top:25%;font:italic 17px Georgia,serif;color:#32261a;background:#edddb8;padding:14px 22px;max-width:220px;border-radius:50% 43% 47% 6%;transform:rotate(3deg);box-shadow:0 4px 10px #0004;z-index:5}.arena-edge{position:absolute;bottom:0;left:0;right:0;height:calc(var(--cardH) + 101px);background:linear-gradient(transparent,#13201ee0 30%,#111c1af2);pointer-events:none;border-bottom:8px solid #0c1213}.table-line{height:1px;position:absolute;left:13%;right:13%;bottom:calc(var(--cardH) + 37px);background:linear-gradient(90deg,transparent,#ba976e80,transparent)}
/* Cards & compact controls */
.hand{position:absolute;bottom:34px;left:50%;transform:translateX(-50%);display:flex;align-items:flex-end;justify-content:center;width:min(1030px,72%);height:var(--cardH);z-index:14;padding:0 12px}.card{width:var(--cardW);height:var(--cardH);flex:0 0 var(--cardW);margin:0 -4px;position:relative;color:#362b1d;background:none;padding:0;transform:translateY(var(--lift,0px)) rotate(var(--rot,0deg));transform-origin:center 120%;filter:drop-shadow(0 9px 6px #040e1080);transition:transform .16s ease,filter .16s;outline:0}.card:hover,.card.selected{transform:translateY(-23px) rotate(0);z-index:10;filter:drop-shadow(0 0 5px #e8c369b3) drop-shadow(0 12px 9px #0008)}.card .frame{width:100%;height:100%;object-fit:fill;position:absolute;inset:0}.card .card-name{position:absolute;top:12.5%;left:29%;right:10%;font-size:11px;line-height:1.1;font-weight:700;text-align:center;min-height:25px;display:flex;align-items:center;justify-content:center}.card .cost{position:absolute;left:9%;top:10.5%;width:21%;height:12%;display:grid;place-items:center;font:700 22px Georgia,serif;color:#fff4d7;text-shadow:0 1px 2px #000}.card .card-art{position:absolute;left:19%;width:62%;top:29%;height:32%;object-fit:contain;filter:drop-shadow(0 4px 1px #0002)}.card .family{position:absolute;top:62%;left:9%;right:9%;font-size:7px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;text-align:center;color:#6b5130}.card .description{position:absolute;top:70%;left:15%;right:15%;height:22%;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px;line-height:1.24}.card.frame-gold .cost{top:18%;color:#582a15}.card.frame-gold .card-name{top:20%;font-size:10px}.card.frame-gold .card-art{top:35%;height:26%}.card.frame-purple .cost{top:13%}.card.frame-purple .card-name{top:15%}.card.frame-purple .card-art{top:31%;height:30%}.card .card-key{position:absolute;left:50%;bottom:1%;transform:translateX(-50%);font-size:8px;color:#785f3a}.card .held{position:absolute;top:4px;right:8px;z-index:3;background:#294344;color:var(--gold);font-size:9px;padding:6px 7px;border-radius:15px}.card.unaffordable{filter:brightness(.7) drop-shadow(0 9px 6px #0008)}.card.unaffordable:hover,.card.unaffordable.selected{filter:brightness(1)}.energy-dock{position:absolute;left:3.8%;bottom:69px;width:125px;z-index:16;text-align:center}.energy-orb{height:84px;width:84px;border-radius:50%;margin:auto;display:grid;place-items:center;background:radial-gradient(circle at 34% 29%,#fae6b0,#d4aa5a 75%,#956f32);border:4px solid #452f1c;outline:2px solid #e4c282;box-shadow:0 0 0 7px #9b825348,0 0 24px #eecf6740,0 10px 10px #0004;color:#342416;font:700 36px Georgia,serif;position:relative}.energy-orb small{font:11px 'Trebuchet MS',sans-serif;position:absolute;bottom:7px;opacity:.75}.energy-label{font-size:9px;letter-spacing:2px;margin-top:12px;color:#d3bd94}.piles{display:flex;gap:10px;justify-content:center;margin-top:20px}.pile{position:relative;background:none;width:45px;height:61px;padding:0}.pile img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 3px #0008)}.pile b{position:absolute;bottom:5px;left:0;right:0;font-size:14px;color:var(--cream);text-shadow:0 1px 3px #000}.pile small{position:absolute;bottom:-12px;font-size:7px;letter-spacing:1px;left:-7px;right:-7px;color:var(--muted)}.end-dock{position:absolute;right:3.5%;bottom:64px;width:182px;display:flex;flex-direction:column;gap:15px;align-items:center;z-index:17}.end-dock .wood-btn{width:100%;height:63px;font-size:21px}.forecast{font-size:11px;color:#c5b392;display:flex;align-items:center;gap:5px}.forecast b{color:#edc5a2;font-size:17px}.forecast.safe b{color:#b5d092}.turn-note{font-size:9px;letter-spacing:1px;color:#aa9776}.combo-meter{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--cardH) + 54px);display:flex;align-items:center;gap:9px;color:#c4bda2;font-size:10px;letter-spacing:1px;z-index:9}.combo-meter b{color:var(--gold);font:700 19px Georgia,serif}.combo-pips{display:flex;gap:5px}.combo-pips i{width:17px;height:4px;background:#635f3a70;border-radius:2px}.combo-pips i.on{background:var(--gold);box-shadow:0 0 6px #d9b55580}.action-bar{position:absolute;bottom:calc(var(--cardH) + 66px);left:50%;transform:translateX(-50%);width:min(730px,64%);padding:12px 17px;background:#15201eed;border:1px solid #b698665e;border-radius:9px;box-shadow:0 12px 25px #0008;z-index:22;animation:appear .15s ease}.action-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:9px;font-size:11px;color:#b9ad91}.action-header b{font:700 19px Georgia,serif;color:var(--cream)}.action-buttons{display:flex;gap:8px}.action-btn{flex:1;background:#eedbae;color:#3b2b18;border:1px solid #f7ddb2;border-radius:4px;padding:9px 7px;font-size:12px;font-weight:700;text-align:center}.action-btn small{display:block;font-size:9px;font-weight:400;margin-top:4px}.action-btn.bait{background:#d6ba73}.action-btn.digest{background:#8ea594;border-color:#acc1aa;color:#172b26}.hold-btn{width:44px;background:#25372f;border:1px solid #8aa18868;border-radius:4px;color:#dfc18b}.action-preview{font-size:10px;color:#d8c695;text-align:center;margin-top:8px;min-height:12px}.hint-pill{position:absolute;left:50%;transform:translateX(-50%);bottom:calc(var(--cardH) + 90px);font-size:11px;color:#dfc596;letter-spacing:.2px;background:#111b1999;padding:10px 18px;border:1px solid #b1916236;border-radius:28px;z-index:8;max-width:60%;text-align:center}
/* Between encounters */
.inter-main{position:absolute;top:16%;left:8%;right:8%;bottom:70px;display:flex;flex-direction:column;align-items:center;gap:22px}.inter-main .section-title{text-align:center}.reward-row{display:flex;gap:36px;justify-content:center;align-items:center;margin:9px 0 4px}.reward-choice{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px;--cardW:190px;--cardH:270px}.reward-choice .card{margin:0}.reward-choice .card:hover{transform:translateY(-10px)}.reward-choice .wood-btn{width:165px;min-height:43px;padding:10px 16px;font-size:14px}.fit-tag{font-size:9px;letter-spacing:1px;color:#cfb86e;min-height:12px}.reward-actions{display:flex;gap:22px;align-items:center}.risk-offer{display:flex;align-items:center;gap:15px;padding:13px 20px;background:#37261c99;border:1px solid #b7855247;border-radius:9px;margin-top:5px}.risk-offer img{width:45px;height:45px;object-fit:contain}.risk-offer p{font-size:11px;color:#d1bfa0;line-height:1.5}.risk-offer p b{font:700 17px Georgia,serif;display:block;color:var(--cream)}.risk-offer .wood-btn{font-size:14px;min-width:174px;padding:10px 15px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;width:min(940px,96%);margin-top:16px}.service{border:1px solid #b2a0733d;background:linear-gradient(#24332cb3,#111e1be0);border-radius:8px;padding:22px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:15px;box-shadow:0 12px 22px #0004}.service>img{height:136px;width:160px;object-fit:contain;filter:drop-shadow(0 8px 10px #0005)}.service h3{font-size:25px;font-weight:400}.service p{font-size:12px;line-height:1.6;color:#c6b392;min-height:45px}.service .wood-btn{margin-top:auto;font-size:15px;min-width:160px}.event-link{display:flex;gap:15px;align-items:center;background:#152722d4;padding:12px 20px;border:1px solid #aa956244;border-radius:7px;font-size:12px}.event-link img{width:38px;height:40px;object-fit:contain}.cleared-content{position:absolute;left:50%;top:17%;transform:translateX(-50%);width:min(780px,86%);text-align:center}.cleared-content>h1{font-size:72px;font-weight:400;letter-spacing:-2px}.cleared-art{height:280px;width:360px;object-fit:contain;margin:0 auto;filter:drop-shadow(0 13px 16px #0006)}.cleared-content p{font:italic 19px Georgia,serif;color:#d2c098;margin:12px 0 25px}.stat-row{display:flex;gap:34px;justify-content:center;margin:5px 0 27px}.stat-row strong{font:700 32px Georgia,serif;color:var(--gold);display:block}.stat-row span{font-size:10px;color:#c6b695;letter-spacing:1px}.shop-layout{display:flex;gap:45px;width:min(1030px,94%);align-items:center}.shop-merchant{width:190px;flex-shrink:0;text-align:center}.shop-merchant img{width:170px;filter:drop-shadow(0 10px 10px #0006)}.shop-merchant p{font:italic 17px/1.5 Georgia,serif;margin-top:15px;color:#cdbc9f}.shop-cards{display:flex;gap:24px}.shop-cards .reward-choice{--cardW:165px;--cardH:234px}.shop-extras{display:flex;gap:20px}.shop-extra{display:flex;gap:12px;align-items:center;border:1px solid #bc9d6442;background:#172722d1;padding:12px 17px;max-width:470px;border-radius:6px}.shop-extra img{width:45px;height:50px;object-fit:contain}.shop-extra h3{font-size:18px}.shop-extra p{font-size:11px;color:#c8b794;max-width:220px;margin:5px 0}.shop-extra .wood-btn{font-size:14px;white-space:nowrap;padding:10px 14px}.memory-row{display:flex;gap:10px;align-items:center;font-size:12px;color:#d9c49c;justify-content:center;margin:17px 0}.memory-row img{height:25px;width:25px;object-fit:contain}.relic-selection{margin-top:15px}.relic-selection .service img{width:125px;height:130px}
/* Illustrated route map */
.map-paper{position:absolute;left:8%;right:8%;top:15%;bottom:10%;background:radial-gradient(ellipse at 43% 45%,#f2e7c7,#dbcea9 85%);color:#4c4030;box-shadow:0 25px 70px #0008,inset 0 0 90px #9c7d4560;border:1px solid #80613e;border-radius:3px 18px 7px 12px;transform:rotate(-.3deg);overflow:hidden}.map-paper:after{content:'';position:absolute;inset:17px;border:1px solid #89664545;pointer-events:none;border-radius:8% 4% 8% 3%}.map-title{position:absolute;top:26px;left:32px;z-index:2}.map-title h2{font:30px Georgia,serif;color:#463727}.map-title p{margin-top:7px;font-size:10px;letter-spacing:2px;color:#8b7151}.map-lines{position:absolute;inset:0;width:100%;height:100%;stroke:#987854;stroke-width:2.5;fill:none;stroke-dasharray:5 9}.map-node{position:absolute;transform:translate(-50%,-50%);width:130px;height:125px;z-index:3;background:none;color:#443426;transition:filter .15s}.map-node img{height:78px;width:98px;object-fit:contain;margin:auto;filter:drop-shadow(0 7px 4px #72582b39)}.map-node .node-name{display:block;padding:5px 5px;background:#efe1bc;border:1px solid #90785463;white-space:nowrap;font:700 12px Georgia,serif;transform:rotate(-2deg);box-shadow:0 2px 2px #7c642c30}.map-node.available img{filter:drop-shadow(0 0 8px #c79318b3) drop-shadow(0 7px 4px #72582b39);animation:bob 3s ease-in-out infinite}.map-node.available .node-name{background:#f6e6b7;border-color:#b58941}.map-node.locked{opacity:.35;cursor:default}.map-node.done{opacity:.55}.map-node.current:before{content:'YOU';position:absolute;left:38px;top:-10px;color:#846622;font-size:9px;letter-spacing:2px}.map-node .node-tier{display:block;font-size:8px;letter-spacing:1px;margin-top:5px;color:#916832}.map-compass{position:absolute;right:38px;top:25px;font:40px Georgia,serif;color:#997a50;text-align:center}.map-compass small{display:block;font:9px 'Trebuchet MS',sans-serif}.route-preview{position:absolute;left:50%;bottom:15px;transform:translateX(-50%);width:80%;display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:#f7edcfed;border:1px solid #ac885765;border-radius:5px;z-index:5}.route-preview h3{font-size:20px}.route-preview p{font-size:11px;color:#8c7150;margin-top:6px}.route-preview .wood-btn{padding:10px 20px;min-height:45px;font-size:16px}.map-instruction{position:absolute;left:50%;transform:translateX(-50%);bottom:27px;text-align:center;color:#967c59;font:italic 15px Georgia,serif}.map-marker{position:absolute;width:55px;height:61px;object-fit:contain;z-index:4;pointer-events:none;filter:drop-shadow(0 5px 2px #735c4859)}
/* Menus, collection, reusable modals */
#modal-root:empty{display:none}.scrim{position:fixed;inset:0;background:#081310ac;backdrop-filter:blur(5px);z-index:50;display:grid;place-items:center;padding:26px}.dialog{background:linear-gradient(145deg,#24362eee,#13221fee);border:1px solid #b99a606b;box-shadow:0 25px 80px #0008;border-radius:10px;padding:26px;width:min(1010px,94vw);max-height:86vh;overflow:auto;animation:appear .18s ease}.dialog.small{width:480px}.dialog header{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:22px}.dialog h2{font-size:30px;font-weight:400}.dialog>p{font-size:12px;color:#cab997;line-height:1.6}.modal-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:18px;padding:16px 0;--cardW:158px;--cardH:224px}.modal-cards .card{margin:0}.modal-cards .card:hover{transform:translateY(-5px)}.card-pick{display:flex;flex-direction:column;gap:9px;align-items:center}.card-pick .wood-btn{font-size:13px;padding:8px 16px}.modal-actions{display:flex;justify-content:center;gap:12px;margin-top:24px}.pause-actions{display:flex;flex-direction:column;gap:13px}.setting-row{padding:14px 0;border-bottom:1px solid #c4a97622;display:flex;justify-content:space-between;align-items:center;font-size:13px}.setting-row input{accent-color:#cbae6e;max-width:160px}.toggle{border:1px solid #ae9c655e;background:#172720;color:#ccb984;padding:6px 10px;border-radius:4px;font-size:11px}.toggle.on{background:#b9a26b;color:#1e3228}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.help-grid h3{font-size:22px;margin-bottom:10px}.help-grid p{font-size:12px;line-height:1.6;color:#c7b696}.collection-tabs{display:flex;gap:20px;margin-bottom:10px}.book-tab{background:none;border-bottom:1px solid #9b956349;padding:8px 3px;font-size:12px;color:#b1a78a}.book-tab.active{color:var(--gold);border-color:var(--gold)}#toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;transition:opacity .2s,transform .2s;z-index:70;background:#102821ef;color:var(--cream);border:1px solid #ab976956;border-radius:5px;padding:12px 20px;font-size:12px;pointer-events:none;max-width:85%;text-align:center}#toast.show{transform:translate(-50%,0);opacity:1}#transit{position:fixed;inset:0;pointer-events:none;z-index:40;background:#0c1b15;opacity:0;transition:opacity .2s}#transit.cover{opacity:1;pointer-events:auto}.popup{position:absolute;font:700 34px Georgia,serif;text-shadow:0 3px 1px #242219,0 0 14px #171d1b;transform:translateX(-50%);white-space:nowrap;color:#f2d594;animation:float-up .85s ease-out forwards}.popup.damage{color:#f5cbb7}.popup.heal{color:#badd9b}.popup.label{font:700 13px 'Trebuchet MS',sans-serif;letter-spacing:1px;background:#183228da;border:1px solid #c6ab6b55;border-radius:5px;padding:7px 12px}.battle-banner{position:absolute;left:50%;top:35%;transform:translate(-50%,-50%);font:700 53px Georgia,serif;text-align:center;color:#ffe1a5;text-shadow:0 3px 2px #18291e,0 0 24px #d6b36355;animation:banner-pop .95s ease-out forwards;white-space:nowrap}.battle-banner small{display:block;font:11px 'Trebuchet MS',sans-serif;letter-spacing:3px;margin-top:9px;color:#d8c69f}.fx-art{position:absolute;width:180px;height:180px;object-fit:contain;transform:translate(-50%,-50%);animation:effect-pop .4s ease-out forwards}body.busy .hand,body.busy .action-bar{pointer-events:none}body.busy .end-dock .wood-btn{opacity:.5}body.busy{cursor:wait}.memory-progress{height:5px;border-radius:4px;background:#0b231c;margin:14px 0}.memory-progress i{display:block;height:100%;background:#d5b672;border-radius:4px}.collection-relics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.relic-entry{display:flex;gap:13px;padding:15px;background:#0d211c9e;border:1px solid #a1916940;border-radius:6px}.relic-entry img{width:46px;height:48px;object-fit:contain}.relic-entry h3{font-size:18px}.relic-entry p{font-size:11px;line-height:1.5;color:#bdaf91;margin-top:7px}
@keyframes breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(1.017,.985)}}@keyframes bob{0%,100%{translate:0 0}50%{translate:0 -6px}}@keyframes rise{0%{transform:translate(0,0);opacity:0}15%{opacity:.6}80%{opacity:.3}100%{transform:translate(50px,-105vh);opacity:0}}@keyframes flicker{0%,100%{opacity:.6;scale:1}45%{opacity:1;scale:1.09}70%{opacity:.85;scale:.99}}@keyframes appear{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}@keyframes float-up{0%{opacity:0;translate:0 4px;scale:.8}16%{opacity:1;scale:1.12}65%{opacity:1}100%{opacity:0;translate:0 -74px;scale:1}}@keyframes effect-pop{0%{opacity:0;scale:.4}20%{opacity:1;scale:1.08}100%{opacity:0;scale:1.3}}@keyframes banner-pop{0%{opacity:0;scale:.7}20%,65%{opacity:1;scale:1}100%{opacity:0;translate:0 -20px}}
.reduce *,body.reduce *:before,body.reduce *:after{animation:none!important;transition:none!important}.reduce .popup,.reduce .battle-banner,.reduce .fx-art{opacity:1}.reduce #motes{display:none}@media(prefers-reduced-motion:reduce){.breath,#motes i,.world-light{animation:none}}
@media(max-height:790px) and (min-width:850px){:root{--cardW:clamp(120px,9.3vw,155px)}.hud{height:72px;padding-top:12px;padding-bottom:12px}.encounter-heading{top:83px}.encounter-heading h2{font-size:27px}.encounter-heading p{margin-top:5px;font-size:10px}.actor{bottom:calc(var(--cardH) + 116px);width:clamp(210px,20vw,310px);height:calc(clamp(210px,20vw,310px)*1.1)}.actor.player{bottom:calc(var(--cardH) + 94px);width:clamp(300px,27vw,430px);height:calc(clamp(300px,27vw,430px)*1.1)}.actor-name{font-size:16px}.intent{padding:8px 13px;font-size:14px}.speech{display:none}.combo-meter{bottom:calc(var(--cardH) + 38px)}.hint-pill{bottom:calc(var(--cardH) + 68px)}.action-bar{bottom:calc(var(--cardH) + 49px);padding:10px 14px}.menu-copy{top:12%}.game-title{font-size:clamp(58px,7vw,99px)}.menu-tag{margin:17px 0 25px}.menu-buttons>.wood-btn{padding:12px 24px;font-size:20px}.profile-main{top:12%;gap:12px;bottom:47px}.profile-choice img{height:132px;width:180px}.profile-options{max-height:325px}.profile-choice{padding:12px 20px}.inter-main{top:13%;gap:15px;bottom:55px}.reward-choice{--cardW:170px;--cardH:241px}.risk-offer{padding:10px 16px}.service>img{height:108px}.service-grid{margin-top:8px}.service{padding:18px;gap:10px}.cleared-content{top:14%}.cleared-content>h1{font-size:62px}.cleared-art{height:220px}.map-paper{top:13%;bottom:9%}.route-preview{padding:10px 15px;bottom:12px}.map-node{width:115px;height:104px}.map-node img{height:64px;width:84px}}
@media(max-width:1100px){.hud{padding-left:22px;padding-right:22px}.hud-title b{font-size:16px}.hud-title small{font-size:8px}.hud-stat{font-size:16px}.hud-left,.hud-right{gap:10px}.brand{font-size:20px;width:115px}.hud-divider{margin:0}.relics{max-width:114px;overflow:hidden}.hud-stat img{width:23px}.end-dock{width:137px;right:2%}.end-dock .wood-btn{font-size:17px}.energy-dock{width:96px;left:2%}.energy-orb{width:66px;height:66px;font-size:30px}.forecast{font-size:9px}.hand{width:73%}.card .card-name{font-size:9px}.card .description{font-size:9px}.card .family{font-size:6px}.card.frame-gold .card-name{font-size:8px}.card .cost{font-size:19px}.service-grid{gap:14px}.service{padding:15px}.shop-layout{gap:20px}.shop-merchant{width:110px}.shop-cards{gap:15px}.shop-cards .reward-choice{--cardW:150px;--cardH:213px}.shop-extras{gap:10px}.shop-extra{padding:10px}.footer{font-size:8px}.section-title{font-size:34px}}
@media(max-width:760px) and (orientation:portrait){:root{--cardW:125px;--cardH:178px}.hud{height:68px;padding:12px 15px}.hud-title{display:none}.hud-stat{font-size:14px;gap:5px}.hud-stat small{font-size:9px}.brand{font-size:17px;width:89px}.brand i{font-size:10px;margin-bottom:5px}.hud-divider{display:none}.hud-left{gap:11px}.hud-right{gap:6px}.round-button{width:32px;height:34px;border-radius:7px}.round-button svg{width:16px}.hud .relics{display:none}.hud-right .optional{display:none}.hud-stat img{height:22px;width:21px}.encounter-heading{top:93px}.encounter-heading h2{font-size:25px}.encounter-heading p{font-size:10px;max-width:90%;margin:8px auto}.actor{bottom:calc(var(--cardH) + 286px);width:190px;height:209px}.actor.player{bottom:calc(var(--cardH) + 131px);width:225px;height:247px;left:72%!important}.actor-caption{width:112px}.actor.player .actor-caption{width:139px;left:50%}.actor-name{font-size:14px}.actor-flags{font-size:8px;gap:5px}.actor-flags svg{width:11px}.intent{padding:7px 10px;font-size:12px;min-width:88px;bottom:69%;gap:5px}.intent svg{width:15px}.intent small{font-size:8px}.taste-hint{font-size:8px}.hp{height:11px}.hp b{font-size:8px}.speech{font-size:12px;left:9%;right:auto;top:48%;max-width:140px;padding:11px 15px}.arena-edge{height:295px}.hand{bottom:60px;width:100%;padding:0 10px;justify-content:center}.hand .card{margin:0 -23px;--lift:0px!important;--rot:0deg!important}.hand .card:hover,.hand .card.selected{transform:translateY(-13px);z-index:10}.card .description{font-size:9px}.card .card-name{font-size:9px}.card .family{font-size:6px}.card .cost{font-size:17px}.end-dock{bottom:15px;right:15px;width:126px;gap:5px;align-items:flex-end}.end-dock .wood-btn{height:36px;min-height:0;font-size:14px;padding:8px 14px}.forecast{position:absolute;bottom:44px;right:0;white-space:nowrap;background:#12251e;padding:5px 9px;border-radius:15px;font-size:9px}.turn-note{display:none}.energy-dock{bottom:15px;left:18px;width:180px;display:flex;align-items:center;gap:16px;text-align:left}.energy-orb{height:45px;width:45px;font-size:23px;border-width:2px;outline-width:1px;box-shadow:0 0 0 4px #9b825348;margin:0}.energy-orb small{font-size:7px;bottom:3px}.energy-label{display:none}.piles{margin:0;gap:11px}.pile{height:40px;width:32px}.pile b{font-size:11px}.pile small{bottom:-8px;font-size:6px}.combo-meter{bottom:calc(var(--cardH) + 80px);width:90%;justify-content:center;font-size:8px}.combo-meter b{font-size:15px}.hint-pill{bottom:calc(var(--cardH) + 114px);font-size:10px;max-width:90%;padding:9px 14px;white-space:normal;width:87%}.action-bar{bottom:calc(var(--cardH) + 80px);width:94%;padding:11px 12px}.action-header{font-size:9px;gap:4px}.action-header b{font-size:16px}.action-buttons{gap:5px}.action-btn{font-size:11px;padding:9px 4px}.action-btn small{font-size:8px}.action-preview{font-size:9px}.footer{display:none}.menu-copy{left:8%;top:12%;width:90%;max-width:none}.game-title{font-size:71px;letter-spacing:-3px}.game-title em{letter-spacing:-4px}.menu-tag{font-size:18px;margin:18px 0 22px}.menu-crown{font-size:8px;margin-bottom:18px;letter-spacing:2px}.menu-buttons{width:192px;gap:11px}.menu-buttons>.wood-btn{min-width:180px;font-size:18px;padding:12px 17px}.menu-links{gap:18px}.menu-links .text-btn{font-size:10px}.menu-hero{width:74%;right:-3%;bottom:6%;max-width:none}.menu-gold{right:3%;bottom:7%;width:55%}.menu-quote{font-size:12px;right:7%;bottom:6%}.menu-stat{font-size:9px;max-width:175px;line-height:1.6;margin-top:20px}.menu-version{top:19px;right:21px;font-size:8px}.profile-main{top:10%;left:5%;right:5%;bottom:20px;gap:14px;overflow:auto}.profile-options{display:flex;flex-direction:column;gap:10px;max-height:none;flex:none;width:100%}.profile-choice{min-height:123px;align-items:flex-start;text-align:left;padding:15px 15px 15px 125px;display:block}.profile-choice img{position:absolute;left:7px;top:8px;width:112px;height:108px}.profile-choice h3{font-size:21px;margin:0 0 7px}.profile-choice p{font-size:11px;line-height:1.4}.profile-choice small{font-size:7px;display:block}.profile-main .section-title{font-size:31px}.keepsakes{gap:7px}.keepsake{min-width:100px;padding:7px 8px;gap:6px}.keepsake strong{font-size:9px}.keepsake small{font-size:8px}.keepsake img{width:24px;height:26px}.seed-row{font-size:10px;gap:9px}.seed-row input[type=text]{width:130px;padding:8px}.inter-main{top:12%;left:4%;right:4%;bottom:18px;gap:14px;overflow:auto;padding-bottom:20px}.section-title{font-size:31px}.section-kicker{font-size:9px;letter-spacing:2px;margin-bottom:6px}.reward-row{gap:7px;width:100%;margin:6px 0}.reward-choice{--cardW:113px;--cardH:161px;gap:10px}.reward-choice .card .description{font-size:8px}.reward-choice .card .card-name{font-size:8px}.reward-choice .wood-btn{width:105px;min-height:38px;font-size:12px;padding:8px}.fit-tag{font-size:7px;letter-spacing:.3px;min-height:18px;max-width:100px}.risk-offer{width:100%;padding:13px 12px;gap:9px;flex-wrap:wrap}.risk-offer p{font-size:10px;flex:1}.risk-offer img{width:35px}.risk-offer p b{font-size:15px}.risk-offer .wood-btn{margin:auto;font-size:12px;min-height:34px}.service-grid{display:flex;flex-direction:column;width:100%;gap:11px;margin-top:0}.service{position:relative;min-height:150px;display:block;padding:14px 15px 12px 125px;text-align:left}.service>img{position:absolute;left:8px;top:12px;width:108px;height:111px}.service h3{font-size:22px}.service p{min-height:0;font-size:11px;margin:8px 0}.service .wood-btn{font-size:12px;min-width:140px;padding:8px 14px}.event-link{font-size:10px;padding:10px;gap:8px}.event-link .wood-btn{font-size:12px;white-space:nowrap;padding:9px}.cleared-content{top:13%;width:90%}.cleared-content>h1{font-size:48px}.cleared-content>p{font-size:16px;margin:12px 0 20px}.cleared-art{height:220px;width:270px}.stat-row{gap:24px;margin-bottom:20px}.stat-row strong{font-size:27px}.stat-row span{font-size:8px}.shop-layout{gap:0;width:100%;display:block}.shop-merchant{display:none}.shop-cards{gap:6px;justify-content:center}.shop-cards .reward-choice{--cardW:111px;--cardH:158px}.shop-extras{flex-direction:column;gap:10px;width:100%}.shop-extra{width:100%;padding:10px;gap:7px}.shop-extra p{font-size:10px}.shop-extra h3{font-size:15px}.shop-extra .wood-btn{padding:8px;font-size:11px}.shop-extra img{width:33px}.relic-selection .service img{width:105px;height:108px}.map-paper{left:4%;right:4%;top:12%;bottom:6%}.map-title{left:22px;top:23px}.map-title h2{font-size:24px}.map-title p{font-size:7px}.map-compass{font-size:26px;right:20px;top:22px}.map-node{width:100px;height:102px}.map-node img{width:69px;height:63px}.map-node .node-name{font-size:9px;white-space:normal;line-height:1.2;padding:4px}.map-node .node-tier{font-size:6px}.map-marker{width:40px;height:44px}.map-node.current:before{font-size:6px;top:0;left:37px}.route-preview{width:93%;padding:12px;display:block;bottom:14px}.route-preview h3{font-size:19px}.route-preview p{font-size:10px;line-height:1.5}.route-preview .wood-btn{padding:8px 15px;font-size:13px;min-height:36px;float:right;margin-top:9px}.map-instruction{font-size:12px;bottom:27px;max-width:80%}.dialog{padding:18px;max-height:88vh;width:95vw}.dialog.small{width:92vw}.dialog h2{font-size:26px}.scrim{padding:10px}.help-grid{grid-template-columns:1fr;gap:18px}.collection-relics{grid-template-columns:1fr}.modal-cards{--cardW:142px;--cardH:202px;gap:15px}.battle-banner{font-size:31px;top:42%}.popup{font-size:27px}.enemy-detail{top:161px;left:6%;width:190px}.enemy-detail.show{display:none}.reward-actions{font-size:10px}.actor.player .sprite{filter:drop-shadow(0 12px 8px #0006)} }
@media(max-height:480px) and (orientation:landscape){:root{--cardW:105px;--cardH:149px}.hud{height:51px;padding:9px 19px}.brand{font-size:16px;width:92px}.brand i{display:none}.hud-stat{font-size:14px}.hud-stat img{width:20px;height:23px}.round-button{height:31px;width:33px}.hud-title b{font-size:14px}.hud-title small{font-size:7px}.hud-divider{height:21px}.relics{display:none}.encounter-heading{top:57px}.encounter-heading h2{font-size:20px}.encounter-heading p{display:none}.actor{width:190px;height:209px;bottom:calc(var(--cardH) + 58px)}.actor.player{width:270px;height:297px;bottom:calc(var(--cardH) + 48px)}.actor-caption{width:123px}.actor.player .actor-caption{width:150px}.actor-name{font-size:12px}.actor-flags{font-size:7px;margin-top:5px}.intent{padding:5px 9px;font-size:11px;min-width:84px}.taste-hint{display:none}.hand{bottom:14px}.card .description{font-size:8px}.card .card-name{font-size:8px}.card .family{font-size:5px}.card.frame-gold .card-name{font-size:7px}.card .cost{font-size:17px}.end-dock{bottom:25px;width:128px;right:2%;gap:10px}.end-dock .wood-btn{height:46px;font-size:16px;padding:8px}.energy-dock{bottom:35px;left:2%;width:90px}.energy-orb{height:53px;width:53px;font-size:25px}.energy-label{font-size:7px}.piles{margin-top:11px;gap:9px}.pile{width:30px;height:42px}.footer{display:none}.combo-meter{bottom:calc(var(--cardH) + 14px);font-size:8px}.hint-pill{bottom:calc(var(--cardH) + 40px);font-size:9px;padding:8px 12px}.action-bar{bottom:calc(var(--cardH) + 28px);padding:8px 10px}.action-header{font-size:9px;margin-bottom:6px}.action-header b{font-size:15px}.action-btn{font-size:10px;padding:6px}.action-btn small{font-size:8px}.action-preview{font-size:8px;margin-top:6px}.menu-copy{top:12%;left:8%}.game-title{font-size:57px;letter-spacing:-3px}.menu-crown{font-size:7px;margin-bottom:13px}.menu-tag{font-size:16px;margin:13px 0 18px}.menu-buttons{gap:8px}.menu-buttons>.wood-btn{min-width:175px;font-size:17px;padding:9px 15px}.menu-links{margin-top:0}.menu-stat{margin-top:9px;font-size:9px}.menu-hero{width:43%;right:11%;bottom:7%}.menu-quote{font-size:12px}.profile-main{top:9%;bottom:10px;gap:9px;overflow:auto}.profile-main .section-title{font-size:25px}.profile-options{min-height:213px}.profile-choice img{height:100px}.profile-choice h3{font-size:19px}.profile-choice p{font-size:10px}.profile-choice small{font-size:6px}.keepsakes{gap:9px}.keepsake{padding:6px 10px}.seed-row{font-size:9px}.inter-main{top:12%;bottom:10px;gap:9px;overflow:auto}.section-title{font-size:27px}.section-kicker{font-size:8px;margin-bottom:6px}.reward-choice{--cardW:125px;--cardH:178px;gap:6px}.reward-choice .wood-btn{font-size:11px;min-height:30px;padding:6px 14px;width:118px}.reward-row{gap:25px;margin:3px 0}.risk-offer{padding:7px 12px}.risk-offer p{font-size:10px}.risk-offer p b{font-size:13px}.risk-offer img{width:27px;height:30px}.risk-offer .wood-btn{font-size:11px;padding:8px}.reward-actions{gap:15px}.service>img{height:74px}.service{gap:8px;padding:14px}.service h3{font-size:19px}.service p{font-size:10px;min-height:32px}.service .wood-btn{font-size:12px;padding:7px;min-width:110px}.cleared-content{top:14%}.cleared-content>h1{font-size:43px}.cleared-art{height:145px;width:200px}.cleared-content p{font-size:15px;margin:6px 0 12px}.stat-row{margin:5px 0 15px}.stat-row strong{font-size:24px}.stat-row span{font-size:8px}.map-title h2{font-size:20px}.map-title{top:15px;left:22px}.map-title p{font-size:7px}.map-node{width:106px;height:90px}.map-node img{height:51px;width:65px}.map-node .node-name{font-size:9px}.map-node .node-tier{font-size:6px}.route-preview{padding:9px 12px;bottom:8px}.route-preview h3{font-size:16px}.route-preview p{font-size:8px}.route-preview .wood-btn{font-size:12px;padding:7px 11px;min-height:32px}.map-marker{width:36px;height:39px}.map-compass{font-size:22px;right:27px;top:16px}.dialog{max-height:93vh}.speech{display:none}}
/* Final readability pass: keep targeting information clear of controls. */
.game-title em{white-space:nowrap;font-size:.86em}
.hint-pill{display:none}
.action-header,.action-preview{display:none}
.action-bar{bottom:calc(var(--cardH) + 30px);padding:6px;width:min(630px,64%)}
.action-btn{padding:8px 8px}
.hand{bottom:20px}
.hand .card:hover,.hand .card.selected{transform:translateY(-11px) rotate(0)}
.scene:has(.action-bar) .combo-meter{opacity:0}
.hp{height:15px}.hp b{line-height:13px;font-size:10px}
@media(min-height:790px) and (min-width:850px){.encounter-heading{top:94px}}
@media(max-width:760px) and (orientation:portrait){
 .hand{bottom:60px}
 .action-bar{bottom:calc(var(--cardH) + 83px);width:94%;padding:6px}
 .action-btn{padding:9px 5px}
 .actor.player{width:190px;height:209px;bottom:calc(var(--cardH) + 160px)}
 .actor.player .actor-caption{top:94%}
 .actor.player .actor-name{font-size:12px}
 .speech{display:none}
 .hp{height:13px}.hp b{font-size:9px;line-height:11px}
 .actor-flags{margin-top:6px}
}
@media(max-height:480px) and (orientation:landscape){
 .hand{bottom:14px}
 .action-bar{bottom:calc(var(--cardH) + 26px);padding:5px;width:60%}
 .action-btn{padding:6px 4px}
 .actor-flags{margin-top:5px}
 .hp{height:11px}.hp b{font-size:8px;line-height:9px}
}
@media(min-width:761px){
 .hand[data-count="6"] .card{margin:0 -14px}
 .hand[data-count="7"] .card{margin:0 -25px}
 .hand[data-count="8"] .card{margin:0 -35px}
 .hand[data-count="9"] .card{margin:0 -43px}
}
@media(max-width:760px) and (orientation:portrait){
 .hand[data-count="6"] .card{margin:0 -32px}
 .hand[data-count="7"] .card{margin:0 -36px}
 .hand[data-count="8"] .card{margin:0 -39px}
 .hand[data-count="9"] .card{margin:0 -42px}
}
@media(min-width:761px){
 .hand[data-count="6"] .card{margin:0 calc(var(--cardW)*-.10)}
 .hand[data-count="7"] .card{margin:0 calc(var(--cardW)*-.14)}
 .hand[data-count="8"] .card{margin:0 calc(var(--cardW)*-.18)}
 .hand[data-count="9"] .card{margin:0 calc(var(--cardW)*-.21)}
}
@media(max-width:760px) and (orientation:portrait){
 .hand:is([data-count="6"],[data-count="7"],[data-count="8"],[data-count="9"]){justify-content:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;height:calc(var(--cardH) + 19px);padding:14px 10px 0}
 .hand:is([data-count="6"],[data-count="7"],[data-count="8"],[data-count="9"]) .card{margin:0 -4px}
}
/* Preserve the same card aspect ratio in row and column flex layouts. */
.card{flex:0 0 auto}
@media(max-height:790px) and (min-width:850px){.reward-choice{--cardW:156px;--cardH:222px}}


/* V7 visual polish overrides */
:root{
  --ui-font: "Avenir Next", "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  --serif-font: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --panel:#171916e8;
  --panel-soft:#1d211de0;
  --line:#d7b77755;
  --line-strong:#f0ce8c96;
  --shadow:0 18px 45px rgba(0,0,0,.35), 0 2px 0 rgba(255,232,184,.04) inset;
  font-family:var(--ui-font);
}
body{letter-spacing:.01em;text-rendering:optimizeLegibility}
.serif,h1,h2,h3,.brand,.game-title,.section-title,.ribbon,.actor-name,.hud-title b,.wood-btn,.action-header b,.dialog h2,.menu-tag{font-family:var(--serif-font)}
#backdrop{filter:brightness(.58) saturate(.82) blur(.3px);transform:scale(1.03)}
#world:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 56%,rgba(246,194,105,.08),transparent 32%),linear-gradient(180deg,rgba(5,6,7,.08),rgba(4,4,4,.16));pointer-events:none}
.scene{animation:none}
.scene.appear{animation:sceneIn .48s cubic-bezier(.22,.86,.22,1)}
@keyframes sceneIn{from{opacity:0;transform:translateY(10px) scale(.994)}to{opacity:1;transform:none}}
#transit{position:fixed;inset:0;z-index:35;pointer-events:none;overflow:hidden}
#transit:before,#transit:after{content:'';position:absolute;inset:0;transform:translateX(-115%);transition:transform .34s cubic-bezier(.65,.05,.36,1);background:linear-gradient(135deg,rgba(18,16,12,.98),rgba(36,27,17,.94) 42%,rgba(126,92,44,.56) 48%,rgba(20,18,14,.98) 54%,rgba(10,9,8,.98));}
#transit:after{opacity:.35;filter:blur(18px);transition-duration:.42s}
#transit.cover:before,#transit.cover:after{transform:translateX(0)}
.hud{height:96px;padding:20px 34px;background:linear-gradient(180deg,rgba(8,11,12,.76),rgba(8,11,12,.18) 72%,transparent)}
.hud:before{content:'';position:absolute;left:18px;right:18px;top:12px;height:58px;border-radius:18px;background:linear-gradient(180deg,rgba(20,21,18,.78),rgba(13,15,14,.55));border:1px solid rgba(229,196,136,.16);box-shadow:var(--shadow);z-index:-1}
.hud-left,.hud-right{position:relative;z-index:1}
.brand{width:170px;text-align:left;font-size:26px;letter-spacing:-.02em;line-height:.8;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.brand i{font-size:11px;letter-spacing:.28em;margin-bottom:5px;color:#efcb82}
.hud-title{gap:2px}
.hud-title b{font-size:22px;letter-spacing:.02em}
.hud-title small{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:#c9b28b}
.hud-stat{background:rgba(255,248,230,.05);border:1px solid rgba(229,196,136,.12);padding:9px 12px;border-radius:14px;gap:10px;box-shadow:0 8px 20px rgba(0,0,0,.18) inset}
.hud-stat b{font-size:21px}
.hud-stat small{font-size:11px}
.round-button{width:44px;height:44px;border-radius:14px;background:linear-gradient(180deg,rgba(39,35,28,.95),rgba(24,24,21,.92));border:1px solid rgba(233,201,146,.2);box-shadow:0 9px 18px rgba(0,0,0,.25), 0 1px 0 rgba(255,240,205,.09) inset;transition:transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease}
.round-button:hover{transform:translateY(-2px) scale(1.02);background:linear-gradient(180deg,rgba(76,59,36,.96),rgba(34,29,22,.94));box-shadow:0 14px 26px rgba(0,0,0,.34),0 1px 0 rgba(255,240,205,.12) inset}
.relic{width:40px;height:42px;border:1px solid rgba(232,186,93,.16);border-radius:12px;background:linear-gradient(180deg,rgba(31,29,25,.7),rgba(16,16,15,.5));box-shadow:0 10px 18px rgba(0,0,0,.18)}
.relic:hover{transform:translateY(-1px);border-color:rgba(232,186,93,.45)}
.wood-btn{min-height:54px;border-radius:14px;padding:15px 26px;border:1px solid rgba(239,203,130,.34);background:linear-gradient(180deg,#4c3d2a,#2f271e 58%,#241e18);box-shadow:0 12px 28px rgba(0,0,0,.35), 0 2px 0 rgba(255,239,201,.08) inset, 0 -2px 0 rgba(0,0,0,.18) inset;letter-spacing:.02em;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.wood-btn:hover{transform:translateY(-3px) scale(1.01);filter:brightness(1.08);box-shadow:0 18px 32px rgba(0,0,0,.38), 0 2px 0 rgba(255,239,201,.12) inset, 0 -2px 0 rgba(0,0,0,.2) inset}
.wood-btn:active{transform:translateY(0) scale(.995)}
.wood-btn.gold{background:linear-gradient(180deg,#f0d79d,#ddb869 55%,#b1823f);border:1px solid #f6dfae;color:#372712;text-shadow:0 1px 0 rgba(255,248,224,.35);box-shadow:0 12px 28px rgba(0,0,0,.35),0 2px 0 rgba(255,249,225,.4) inset,0 -2px 0 rgba(125,83,22,.26) inset}
.wood-btn.danger{background:linear-gradient(180deg,#c16a57,#8a4639 58%,#6f392f)}
.text-btn{padding:8px 2px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#ccb18a;border-bottom:1px solid rgba(214,177,110,.16)}
.text-btn:hover{color:#f2e1c2;border-bottom-color:rgba(214,177,110,.55)}
.menu-copy{background:linear-gradient(180deg,rgba(15,17,18,.44),rgba(15,17,18,.16));padding:28px 30px 24px;border:1px solid rgba(230,193,124,.10);border-radius:24px;backdrop-filter:blur(7px);box-shadow:var(--shadow)}
.menu-crown{font-size:11px;letter-spacing:.35em;color:#e6c581}
.game-title{text-shadow:0 4px 0 rgba(10,10,10,.45),0 18px 50px rgba(0,0,0,.5)}
.menu-tag{letter-spacing:.02em;color:#e7c27d}
.menu-buttons{width:300px}.menu-buttons>.wood-btn{width:100%;justify-content:space-between}
.menu-links{width:100%;justify-content:space-between}
.menu-stat{padding:12px 14px;background:rgba(255,248,230,.03);border:1px solid rgba(230,193,124,.08);border-radius:14px}
.menu-hero .sprite{animation:breathe 3.8s ease-in-out infinite, heroSway 8s ease-in-out infinite}
@keyframes heroSway{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-6px) rotate(1.2deg)}}
.profile-choice,.service,.shop-extra,.risk-offer,.keepsake,.dialog,.route-preview,.enemy-detail,.action-bar,.map-paper,.reward-choice .wood-btn,.shop-extra,.event-link{box-shadow:var(--shadow)}
.profile-choice,.service,.shop-extra,.keepsake,.dialog,.route-preview,.enemy-detail,.action-bar{border-radius:18px}
.profile-choice{border:1px solid rgba(232,186,93,.12);background:linear-gradient(180deg,rgba(20,22,20,.88),rgba(14,16,15,.82));overflow:hidden}
.profile-choice:before,.service:before,.shop-extra:before,.dialog:before,.route-preview:before,.map-paper:before,.action-bar:before{content:'';position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,240,205,.18),transparent)}
.profile-choice:hover{transform:translateY(-10px) scale(1.01);background:linear-gradient(180deg,rgba(44,36,28,.92),rgba(17,17,16,.88))}
.profile-choice.active{border-color:rgba(240,206,140,.55);box-shadow:0 0 0 1px rgba(240,206,140,.22), var(--shadow)}
.keepsake{border:1px solid rgba(232,186,93,.12);background:linear-gradient(180deg,rgba(23,27,24,.92),rgba(13,15,14,.88))}
.keepsake.active{border-color:rgba(240,206,140,.5);background:linear-gradient(180deg,rgba(76,59,36,.74),rgba(24,21,18,.92))}
.seed-row input[type=text]{border-radius:12px;padding:12px 14px;background:rgba(14,16,15,.8);border:1px solid rgba(232,186,93,.14)}
.intent{min-width:124px;padding:11px 16px;border-radius:999px;background:linear-gradient(180deg,rgba(26,31,30,.97),rgba(16,20,20,.95));border:1px solid rgba(240,206,140,.18);box-shadow:0 12px 20px rgba(0,0,0,.32);font-size:15px;letter-spacing:.01em}
.intent:after{display:none}
.intent small{font-size:10px;opacity:.72}
.actor{transition:transform .2s ease,filter .2s ease}
.actor:hover{filter:brightness(1.05)}
.actor.selected{transform:translateX(-50%) translateY(-4px)}
.actor .ring{height:11%;bottom:2%;border-color:rgba(239,203,130,.76);box-shadow:0 0 0 3px rgba(239,203,130,.09),0 0 24px rgba(239,203,130,.18), inset 0 0 20px rgba(239,203,130,.15)}
.actor.selected .ring{opacity:1}
.actor-caption{width:190px}.actor.player .actor-caption{width:240px}
.actor-name{font-size:20px;letter-spacing:.01em}
.hp{height:14px;border-radius:999px;background:rgba(6,8,8,.82);border:1px solid rgba(231,184,91,.16);box-shadow:0 2px 0 rgba(255,245,215,.05) inset,0 3px 12px rgba(0,0,0,.32)}
.hp>i{background:linear-gradient(180deg,#e5997a,#b54f44 65%,#903930)}
.actor.player .hp>i{background:linear-gradient(180deg,#c7dd8c,#84a55e 65%,#5f7b44)}
.hp b{line-height:12px;font-size:10px;letter-spacing:.05em}
.greed-pips i{width:8px;height:8px;border-radius:2px;transform:rotate(45deg)}
.hand{bottom:24px;width:min(1180px,78%);height:calc(var(--cardH) + 10px);padding:0 16px 12px}
.hand .card:nth-child(1){--rot:-7deg;--lift:18px}.hand .card:nth-child(2){--rot:-5deg;--lift:10px}.hand .card:nth-child(3){--rot:-3deg;--lift:4px}.hand .card:nth-child(4){--rot:-1deg;--lift:0px}.hand .card:nth-child(5){--rot:1deg;--lift:0px}.hand .card:nth-child(6){--rot:3deg;--lift:4px}.hand .card:nth-child(7){--rot:5deg;--lift:10px}.hand .card:nth-child(8){--rot:7deg;--lift:18px}
.card{margin:0 -7px;filter:drop-shadow(0 14px 14px rgba(0,0,0,.42));transition:transform .18s cubic-bezier(.22,.86,.22,1),filter .18s ease}
.card:before{content:'';position:absolute;inset:5% 8% auto;border-radius:18px;height:24%;background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,0));mix-blend-mode:screen;pointer-events:none;opacity:.4}
.card:hover,.card.selected{transform:translateY(-28px) rotate(0deg) scale(1.03);filter:drop-shadow(0 0 10px rgba(234,196,105,.42)) drop-shadow(0 18px 18px rgba(0,0,0,.5))}
.card .card-name{font-size:11px;letter-spacing:.02em}.card .description{font-size:10px;line-height:1.26}.card .family{letter-spacing:.16em}
.energy-dock,.end-dock{bottom:52px}
.energy-dock{left:30px}.end-dock{right:28px;width:208px;align-items:stretch}
.energy-orb{box-shadow:0 0 0 8px rgba(155,130,83,.22),0 0 30px rgba(238,207,103,.24),0 14px 20px rgba(0,0,0,.32)}
.forecast{padding:8px 12px;border-radius:999px;background:rgba(17,25,24,.8);border:1px solid rgba(232,186,93,.14)}
.forecast b{font-size:18px}
.combo-meter{padding:8px 14px;border-radius:999px;background:rgba(17,25,24,.8);border:1px solid rgba(232,186,93,.12);box-shadow:var(--shadow)}
.action-bar{padding:14px 16px 12px;background:linear-gradient(180deg,rgba(19,26,25,.97),rgba(17,22,22,.94));border:1px solid rgba(232,186,93,.18);backdrop-filter:blur(10px)}
.action-header{font-size:12px;align-items:flex-start}.action-header b{font-size:21px}.action-buttons{gap:10px}
.action-btn,.hold-btn{border-radius:14px;padding:11px 8px;font-size:12px;border:1px solid rgba(251,224,173,.34);box-shadow:0 8px 18px rgba(0,0,0,.16), 0 1px 0 rgba(255,255,255,.18) inset;transition:transform .16s ease,filter .16s ease}
.action-btn:hover,.hold-btn:hover{transform:translateY(-2px);filter:brightness(1.05)}
.action-btn small{font-size:10px;opacity:.82}.hold-btn{background:linear-gradient(180deg,#2c4139,#182622)}
.hint-pill{padding:11px 16px;border-radius:999px;background:rgba(17,25,24,.85);border:1px solid rgba(232,186,93,.14);box-shadow:var(--shadow);backdrop-filter:blur(8px)}
.map-paper{border-radius:28px;border:1px solid rgba(239,203,130,.16);background:linear-gradient(180deg,rgba(24,20,16,.72),rgba(17,15,13,.86));backdrop-filter:blur(12px);overflow:hidden}
.map-paper:after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 45%,rgba(255,238,199,.05),transparent 38%);pointer-events:none}
.map-node{transition:transform .18s ease,filter .18s ease}
.map-node:hover{transform:translateY(-4px) scale(1.02);filter:brightness(1.05)}
.route-preview{padding:18px 20px;background:linear-gradient(180deg,rgba(23,22,18,.94),rgba(15,15,14,.94));border:1px solid rgba(232,186,93,.18)}
.service,.shop-extra,.risk-offer,.event-link,.dialog{position:relative;background:linear-gradient(180deg,rgba(24,23,19,.92),rgba(15,15,14,.92));border:1px solid rgba(232,186,93,.14)}
.service-grid,.shop-extras{gap:16px}.service,.shop-extra{border-radius:20px}
.dialog{padding:28px 28px 24px;border-radius:24px;backdrop-filter:blur(12px)}
.scrim{background:rgba(4,5,6,.6);backdrop-filter:blur(7px)}
#toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(16px);padding:12px 16px;border-radius:14px;background:rgba(22,23,21,.94);border:1px solid rgba(232,186,93,.18);box-shadow:var(--shadow);opacity:0;pointer-events:none;z-index:40;transition:opacity .2s ease, transform .2s ease;font-size:13px}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.battle-banner{padding:16px 24px;border-radius:20px;background:linear-gradient(180deg,rgba(25,22,18,.96),rgba(16,16,15,.92));border:1px solid rgba(241,211,147,.25);box-shadow:var(--shadow)}
.popup{font-weight:800;letter-spacing:.03em;text-shadow:0 2px 8px rgba(0,0,0,.45)}
.popup.damage{color:#ffd6c8}.popup.heal{color:#c8efb5}.popup.label{color:#fae1a8}
.fx-art{filter:drop-shadow(0 10px 10px rgba(0,0,0,.28))}
.footer{font-size:11px;color:#c1ab84;letter-spacing:.16em;text-transform:uppercase}
@media (min-width:1100px){
  .reward-row{gap:18px}
  .reward-choice .wood-btn{width:140px}
}
@media (max-width:900px){
  .menu-copy{padding:20px 20px 18px}
  .hud:before{left:12px;right:12px}
}
