@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--gold:#c89b58;--gold-light:#f0d39a;--blood:#a83b34;--ink:#080b0f;--muted:#a9a39a;--panel:rgba(8,11,15,.84)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#080b0f;color:#f5f0e7;font-family:Inter,Arial,sans-serif}body{touch-action:none}button{font:inherit;color:inherit;cursor:pointer}#game-shell{position:relative;width:100%;height:100%;min-height:100%;overflow:hidden;background:#101720}#game{position:absolute;inset:0;width:100%;height:100%;display:block;outline:none}#vignette{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at center,transparent 40%,rgba(0,0,0,.2) 78%,rgba(0,0,0,.65) 130%);z-index:2}#cinema-bars{position:absolute;inset:0;pointer-events:none;z-index:3}#cinema-bars div:first-child,#cinema-bars div:last-child{position:absolute;left:0;width:100%;height:0;background:#050609;transition:height .7s}#cinema-bars div:first-child{top:0}#cinema-bars div:last-child{bottom:0}.cinematic #cinema-bars div{height:4.2vh}
.hud{position:absolute;z-index:5;display:flex;pointer-events:none}.hidden{display:none!important}#hud-top{top:0;left:0;right:0;align-items:center;justify-content:space-between;padding:25px 34px 18px;background:linear-gradient(180deg,rgba(0,0,0,.7),transparent)}.brand-mark{display:flex;align-items:center;gap:12px}.rune{font-family:serif;color:var(--gold-light);font-size:30px;text-shadow:0 0 18px #d18a3f}.brand-mark strong{display:block;font:600 11px Cinzel,serif;letter-spacing:2px}.brand-mark small{display:block;color:#aaa196;font-size:8px;letter-spacing:2px;margin-top:4px}.chapter-chip{text-align:center;position:absolute;left:50%;transform:translateX(-50%)}.chapter-chip span{display:block;color:var(--gold);font:600 9px Cinzel,serif;letter-spacing:2px;margin-bottom:5px}.chapter-chip strong{font:600 14px Cinzel,serif;letter-spacing:1.5px}.icon-button{pointer-events:auto;border:1px solid rgba(216,181,125,.35);background:rgba(4,7,10,.55);width:42px;height:42px;border-radius:50%;font-size:18px;color:#e8d5b8;backdrop-filter:blur(8px)}
#hud-left{left:32px;top:110px;width:275px;display:block}.hero-status{display:flex;align-items:center;gap:12px}.portrait-rune{width:48px;height:48px;border:1px solid rgba(207,167,107,.65);display:grid;place-items:center;color:#f2d7a7;font:700 24px Cinzel,serif;background:linear-gradient(145deg,#30363a,#0d1116);clip-path:polygon(50% 0,91% 18%,100% 72%,50% 100%,0 72%,9% 18%);box-shadow:0 0 18px rgba(188,123,52,.22)}.vitals{flex:1}.bar-line{display:flex;justify-content:space-between;font:600 9px Cinzel,serif;letter-spacing:1.5px;color:#d9d0c3;margin-bottom:5px}.bar-line strong{font:700 10px Inter,sans-serif;color:#fff}.meter{height:7px;background:rgba(0,0,0,.62);border:1px solid rgba(255,255,255,.1);overflow:hidden;transform:skewX(-12deg)}.meter i{display:block;width:100%;height:100%;transition:width .2s;background:linear-gradient(90deg,#7c2020,#d25a45);box-shadow:0 0 12px rgba(214,73,53,.55)}.stamina-label{margin-top:8px}.stamina-meter{height:4px}.stamina-meter i{background:linear-gradient(90deg,#9a682c,#e7bb6b);box-shadow:0 0 10px rgba(224,172,87,.4)}.objective{margin-top:24px;padding:12px 15px 13px;border-left:2px solid var(--gold);background:linear-gradient(90deg,rgba(4,7,10,.72),transparent)}.objective-kicker{font:600 9px Cinzel,serif;letter-spacing:2px;color:var(--gold)}.objective p{margin:7px 0 8px;font-size:12px;line-height:1.5;color:#f2e9dc}.objective small{font-size:9px;letter-spacing:1.3px;color:#b3a89a}#enemy-panel{position:absolute;z-index:5;top:112px;left:50%;transform:translateX(-50%);width:min(320px,55vw);pointer-events:none;text-align:center}.enemy-name{display:flex;justify-content:space-between;font:600 10px Cinzel,serif;letter-spacing:1.5px;color:#f2d8b2;margin-bottom:7px}.enemy-name small{color:#c66c5c}.enemy-meter{height:5px}.enemy-meter i{background:linear-gradient(90deg,#691d1d,#c7443b)}#interaction-hint{position:absolute;z-index:5;left:50%;bottom:23%;transform:translateX(-50%);padding:9px 14px;background:rgba(4,7,10,.75);border:1px solid rgba(205,169,111,.4);font:700 10px Cinzel,serif;color:var(--gold-light)}#interaction-hint span{margin-left:7px;color:#eee;letter-spacing:1px}.toast{position:absolute;z-index:8;left:50%;top:23%;transform:translateX(-50%);font:600 11px Cinzel,serif;letter-spacing:2px;color:#f1d59f;text-shadow:0 2px 12px #000;background:rgba(5,8,12,.55);padding:11px 18px;border:1px solid rgba(205,169,111,.24);white-space:nowrap}
.screen{position:absolute;z-index:10;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(4,7,10,.65);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .4s}.screen.active{opacity:1;pointer-events:auto}.menu-backdrop{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,5,8,.96) 0%,rgba(4,7,10,.76) 42%,rgba(4,7,10,.1) 100%),linear-gradient(0deg,rgba(2,4,6,.65),transparent 55%);pointer-events:none}.menu-content{position:relative;z-index:1;width:min(550px,90vw);margin-left:clamp(18px,8vw,150px);margin-right:auto;padding:5vh 0 4vh}.title-eyebrow{display:flex;align-items:center;gap:12px;color:var(--gold);font:600 9px Cinzel,serif;letter-spacing:3px}.title-eyebrow i{display:block;width:24px;height:1px;background:var(--gold)}h1,h2{font-family:Cinzel,Georgia,serif;font-weight:500;letter-spacing:1px}h1{font-size:clamp(46px,7.7vw,92px);line-height:.94;margin:22px 0 13px;text-shadow:0 8px 40px #000}h1 em,h2 em{font-style:normal;color:var(--gold-light)}.subtitle{font:600 9px Cinzel,serif;letter-spacing:2.1px;color:#c7b9a7;margin:0}.title-divider{display:flex;align-items:center;gap:12px;color:var(--gold);font-size:18px;margin:22px 0}.title-divider span{width:75px;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}.title-divider span:last-child{transform:rotate(180deg)}.story-intro{max-width:395px;color:#c4bdb4;font-size:13px;line-height:1.8;margin:0 0 25px}.main-button{width:min(315px,100%);height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 22px;border:1px solid #c49b61;background:linear-gradient(110deg,rgba(116,72,36,.86),rgba(47,37,28,.88));box-shadow:inset 0 0 0 1px rgba(255,224,171,.12),0 8px 28px rgba(0,0,0,.22);font:700 10px Cinzel,serif;letter-spacing:2px;color:#fff0d8;transition:filter .2s,transform .2s}.main-button:hover{filter:brightness(1.28);transform:translateY(-2px)}.main-button b{font:24px Inter,sans-serif;color:#efd2a1}.text-button{display:block;margin-top:16px;padding:7px 0;background:none;border:0;color:#c6b8a7;font:600 9px Cinzel,serif;letter-spacing:1.7px;text-align:left}.text-button:hover{color:#fff}.menu-footer{display:flex;justify-content:space-between;width:min(400px,100%);margin-top:42px;padding-top:13px;border-top:1px solid rgba(210,179,133,.22);font:500 8px Cinzel,serif;letter-spacing:1.5px;color:#77746f}.menu-side-note{position:absolute;right:35px;bottom:40px;writing-mode:vertical-rl;color:rgba(230,209,173,.52);font:500 9px Cinzel,serif;letter-spacing:3px}.chapter-card,.pause-card,.result-card{width:min(650px,90vw);padding:42px 48px;background:linear-gradient(140deg,rgba(12,17,22,.96),rgba(7,9,12,.91));border:1px solid rgba(205,169,111,.42);box-shadow:0 30px 100px #000;position:relative}.chapter-card:before,.pause-card:before,.result-card:before{content:"";position:absolute;inset:8px;border:1px solid rgba(205,169,111,.12);pointer-events:none}.chapter-overline{font:600 9px Cinzel,serif;letter-spacing:2.5px;color:#b69a75}.chapter-overline span{color:var(--gold);margin:0 8px}.chapter-overline b{color:var(--gold-light)}.chapter-card h2,.pause-card h2,.result-card h2{font-size:clamp(27px,4vw,42px);margin:18px 0 14px;line-height:1.1}.chapter-card p,.pause-card p,.result-card p{max-width:540px;color:#bcb6ad;font-size:13px;line-height:1.8}.chapter-quote{margin:24px 0 28px;padding-left:15px;border-left:2px solid var(--gold);font:italic 16px Georgia,serif;color:#e1c79f}.pause-card{width:min(470px,90vw)}.pause-card .main-button{margin-top:24px}.sound-row{display:flex;align-items:center;gap:14px;margin-top:25px;padding-top:17px;border-top:1px solid rgba(255,255,255,.1);font:600 9px Cinzel,serif;letter-spacing:1px;color:#a69a89}.sound-toggle{background:transparent;border:1px solid rgba(205,169,111,.3);padding:6px 12px;color:var(--gold-light);font:600 9px Cinzel,serif}.result-card{width:min(600px,90vw)}.result-stats{display:flex;gap:45px;margin:27px 0}.result-stats div b{display:block;font:500 26px Cinzel,serif;color:var(--gold-light)}.result-stats div span{display:block;margin-top:5px;font:600 8px Cinzel,serif;letter-spacing:1.3px;color:#8d857b}.result-card .main-button{margin-top:10px}.ending-card{text-align:center}.ending-card .title-eyebrow{justify-content:center}.ending-card h2{font-size:clamp(56px,8vw,84px);line-height:.94}.ending-card .title-divider{justify-content:center}.ending-card .title-divider span{width:65px}.ending-card p{margin:0 auto;max-width:490px}.ending-card .main-button{margin:25px auto 0}.ending-card .menu-footer{margin:35px auto 0}
.controls-hint{position:absolute;z-index:5;bottom:21px;left:50%;transform:translateX(-50%);padding:9px 15px;background:rgba(3,6,9,.62);border:1px solid rgba(205,169,111,.18);color:#9e978d;font-size:8px;letter-spacing:1px;white-space:nowrap;pointer-events:none}.controls-hint span{color:#e9d3ad;font-weight:800}.controls-hint i{font-style:normal;color:#776b5b;padding:0 6px}#mobile-controls{position:absolute;z-index:6;inset:0;pointer-events:none}.mobile-actions{position:absolute;right:24px;bottom:25px;width:170px;height:165px;pointer-events:none}.mobile-button{position:absolute;width:58px;height:58px;border-radius:50%;border:1px solid rgba(225,195,148,.55);background:radial-gradient(circle at 35% 25%,rgba(142,97,55,.8),rgba(18,20,22,.9));box-shadow:0 5px 18px #0009,inset 0 0 13px #f0d29b22;color:#ffe7c3;font-size:21px;pointer-events:auto;touch-action:none}.mobile-button small{position:absolute;left:0;right:0;bottom:-15px;color:#ddcdb4;font:700 7px Cinzel,serif;letter-spacing:1px}.attack-button{right:0;bottom:28px;width:68px;height:68px;font-size:26px;border-color:#b58157}.heavy-button{right:78px;bottom:0}.dodge-button{right:82px;top:0;width:48px;height:48px;font-size:17px}.lock-button{right:0;top:0;width:48px;height:48px;font-size:22px}#joystick-zone{position:absolute;left:18px;bottom:22px;width:155px;height:155px;pointer-events:auto;touch-action:none}#joystick-base{position:absolute;width:110px;height:110px;left:21px;top:21px;border:1px solid rgba(230,205,165,.4);border-radius:50%;background:radial-gradient(circle,rgba(65,67,68,.52),rgba(8,11,14,.42));box-shadow:inset 0 0 20px #0008}#joystick-stick{position:absolute;left:31px;top:31px;width:48px;height:48px;border-radius:50%;background:linear-gradient(145deg,#c29b67,#534536);border:1px solid #e4c28f;box-shadow:0 3px 12px #0009;transform:translate(0,0)}#loading-screen{position:absolute;z-index:20;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#080b0f;gap:15px;transition:opacity .5s}#loading-screen.fade{opacity:0;pointer-events:none}.loading-emblem{font:48px Georgia,serif;color:var(--gold);text-shadow:0 0 28px #a76b31}.loading-track{width:180px;height:2px;background:#24211d}.loading-track i{display:block;width:0;height:100%;background:#d5ad72;animation:load 1.6s ease forwards}.loading-screen strong,#loading-screen strong{font:600 9px Cinzel,serif;letter-spacing:2px;color:#d8c7aa}#loading-screen small{font:8px Cinzel,serif;letter-spacing:2px;color:#6d665b}@keyframes load{to{width:100%}}
@media(max-width:700px){#hud-top{padding:17px 15px}.brand-mark strong{font-size:9px}.brand-mark small{font-size:7px}.rune{font-size:25px}.chapter-chip{top:70px}.chapter-chip strong{font-size:10px}.icon-button{width:36px;height:36px}#hud-left{left:14px;top:115px;width:220px}.portrait-rune{width:39px;height:39px}.objective{margin-top:14px;padding:9px 11px}.objective p{font-size:10px}#enemy-panel{top:110px}.menu-content{margin:0 8vw;padding:0}.menu-side-note{right:13px;bottom:17px;font-size:7px}h1{font-size:clamp(48px,13vw,76px)}.story-intro{font-size:11px;max-width:310px}.title-eyebrow{font-size:8px;letter-spacing:2px}.main-button{height:50px}.menu-footer{margin-top:23px}.chapter-card,.pause-card,.result-card{padding:31px 25px}.chapter-card p,.pause-card p,.result-card p{font-size:12px}.chapter-quote{font-size:14px}.controls-hint{display:none!important}.mobile-actions{right:12px;bottom:23px;transform:scale(.9);transform-origin:bottom right}#joystick-zone{left:0;bottom:18px;transform:scale(.9);transform-origin:bottom left}.result-stats{gap:22px}.result-stats div b{font-size:21px}}
@media(orientation:landscape) and (max-height:500px){.menu-content{padding:0}.menu-content h1{font-size:45px;margin:12px 0}.story-intro{margin-bottom:10px;font-size:11px}.title-divider{margin:10px 0}.menu-footer{margin-top:15px}.chapter-card,.pause-card,.result-card{padding:23px 30px}.chapter-card h2,.pause-card h2,.result-card h2{margin:10px 0;font-size:28px}.chapter-card p,.pause-card p,.result-card p{margin:8px 0}.chapter-quote{margin:10px 0 15px}.mobile-actions{right:18px;bottom:10px;transform:scale(.78);transform-origin:bottom right}#joystick-zone{bottom:5px;transform:scale(.75);transform-origin:bottom left}}

/* Combat controls: dedicated jump button and stronger tactile separation. */
.jump-button{right:77px;top:57px;width:48px;height:48px;font-size:20px;border-color:rgba(176,199,207,.72);background:radial-gradient(circle at 35% 25%,rgba(74,108,121,.9),rgba(13,18,22,.94));}
.mobile-button:active{transform:scale(.92);filter:brightness(1.35);}

/* Remaster pass: interface de combate mais legível e controles táteis maiores. */
:root{--panel:rgba(7,11,16,.78);--gold:#d0a66b;--gold-light:#f4d9a7}
.hud{filter:drop-shadow(0 8px 22px rgba(0,0,0,.3))}
#hud-top{background:linear-gradient(180deg,rgba(5,8,12,.78),rgba(5,8,12,.16));border-bottom:1px solid rgba(218,183,132,.16);padding:20px 26px}
.brand-mark strong{letter-spacing:2px;text-shadow:0 2px 10px #000}
.chapter-chip{background:rgba(7,10,14,.58);border:1px solid rgba(210,174,124,.26);border-radius:3px;padding:9px 18px;backdrop-filter:blur(12px)}
#hud-left{width:min(270px,34vw)}
.hero-status,.objective,#enemy-panel{background:linear-gradient(145deg,rgba(8,12,17,.86),rgba(10,13,17,.58));border:1px solid rgba(215,184,139,.23);box-shadow:0 12px 32px #0005;backdrop-filter:blur(12px)}
.hero-status{padding:12px;border-radius:5px}
.portrait-rune{box-shadow:0 0 0 2px rgba(209,168,108,.14),inset 0 0 18px #0008}
.meter{height:7px;border-radius:8px;overflow:hidden;background:rgba(255,255,255,.12)}
.meter i{border-radius:8px;box-shadow:0 0 12px currentColor}
.objective{border-radius:5px;padding:13px 15px}
#enemy-panel{border-radius:5px;padding:12px 15px;min-width:210px}
.toast{border-radius:4px;backdrop-filter:blur(10px)}
.main-button{border-radius:3px;letter-spacing:2.2px;min-height:54px}
.screen{backdrop-filter:blur(7px)}
.mobile-button{width:64px;height:64px;border-radius:22px;font-size:23px;background:linear-gradient(145deg,rgba(83,65,47,.94),rgba(9,13,18,.96));border:1px solid rgba(239,207,160,.7);box-shadow:0 7px 20px #0009,inset 0 1px 0 #fff3,inset 0 -8px 18px #0006;display:grid;place-items:center;user-select:none;-webkit-user-select:none}
.mobile-button small{bottom:-14px;font-size:8px;text-shadow:0 2px 4px #000;letter-spacing:.8px;white-space:nowrap}
.mobile-button:active{filter:brightness(1.4);transform:scale(.94)}
.mobile-actions{right:max(16px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));width:190px;height:205px}
.attack-button{right:0;bottom:24px;width:74px;height:74px;border-radius:25px;font-size:28px;border-color:#e0aa70;background:linear-gradient(145deg,#8b4c30,#251712)}
.heavy-button{right:88px;bottom:0;width:62px;height:62px}
.dodge-button{right:95px;top:0;width:54px;height:54px}
.jump-button{right:12px;top:0;width:58px;height:58px}
.lock-button{right:7px;top:86px;width:48px;height:48px;border-radius:18px}
#joystick-zone{left:max(18px,env(safe-area-inset-left));bottom:max(22px,env(safe-area-inset-bottom));width:168px;height:168px}
#joystick-base{width:124px;height:124px;left:22px;top:22px;border:1px solid rgba(236,211,174,.5);background:radial-gradient(circle,rgba(95,99,101,.42),rgba(5,8,11,.66));box-shadow:inset 0 0 24px #0009,0 5px 18px #0005}
#joystick-stick{left:37px;top:37px;width:50px;height:50px;background:linear-gradient(145deg,#e1c18d,#62503a);border:1px solid #f0d5a7}
@media(max-width:700px){
 #hud-top{padding:calc(12px + env(safe-area-inset-top)) 12px 12px}
 #hud-left{left:10px;top:105px;width:min(205px,57vw)}
 .hero-status{padding:8px}.portrait-rune{width:35px;height:35px}
 .objective{margin-top:8px;padding:8px 10px}.objective p{font-size:9px;line-height:1.45}
 #enemy-panel{top:105px;right:10px;min-width:132px;width:34vw;padding:9px 10px}
 .enemy-name{font-size:8px;letter-spacing:.8px}
 .mobile-actions{right:max(8px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));transform:scale(.88);transform-origin:bottom right}
 #joystick-zone{left:max(4px,env(safe-area-inset-left));bottom:max(12px,env(safe-area-inset-bottom));transform:scale(.88);transform-origin:bottom left}
}
@media(orientation:landscape) and (max-height:500px){
 .mobile-actions{transform:scale(.76);right:8px;bottom:5px}
 #joystick-zone{transform:scale(.74);left:3px;bottom:3px}
 #hud-left{top:74px;width:185px}
 #enemy-panel{top:74px}
}

/* Direção do próximo objetivo: seta de bússola e instrução persistente no HUD. */
#route-guidance{display:flex;align-items:center;gap:8px;margin-top:9px;padding:8px 9px 0;border-top:1px solid rgba(221,190,139,.2);font:700 8px Cinzel,serif;letter-spacing:1px;color:#ead7b8;min-height:25px}
#route-guidance .route-glyph{color:#f5cf8b;font-size:14px;text-shadow:0 0 12px rgba(245,190,105,.85)}
#route-guidance #route-text{flex:1;line-height:1.4}
#route-guidance #route-arrow{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid rgba(235,198,137,.42);border-radius:50%;font:700 18px/1 sans-serif;color:#ffe2a9;text-shadow:0 0 10px #e3a95c;transition:transform .12s linear}
@media(max-width:700px){#route-guidance{font-size:7px;gap:6px;margin-top:7px;padding:6px 5px 0}#route-guidance #route-arrow{width:21px;height:21px;font-size:16px}}
