:root{--ink:#061115;--teal:#a8ecda;--mint:#6ec8b6;--gold:#d6b781;--warm:#ffca85;--fog:#b4c5c4;--panel:#0a161aef;--line:#648a86aa}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#02090b;color:#e6eeea;font-family:'Segoe UI',Arial,sans-serif;-webkit-user-select:none;user-select:none;touch-action:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.42}a{color:inherit;text-decoration:none}.hidden{display:none!important}#gameShell{position:fixed;inset:0;overflow:hidden;background:#010609}#game{width:100%;height:100%;display:block;touch-action:none}#filmGrain{position:absolute;inset:0;pointer-events:none;opacity:.11;z-index:5;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.33' filter='url(%23n)'/%3E%3C/svg%3E")}#vignette{position:absolute;inset:0;pointer-events:none;z-index:4;background:radial-gradient(ellipse at center,transparent 37%,#0008 100%)}#hud{position:absolute;z-index:15;top:0;left:0;right:0;display:flex;align-items:center;gap:22px;padding:16px 24px 28px;background:linear-gradient(180deg,#020a0dec,transparent)}.hud-brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-sigil{font-size:31px;color:#a7e2d2;line-height:1}.hud-brand-text{font-family:Georgia,serif;font-size:14px;letter-spacing:.17em;font-weight:600}.hud-brand-text b{font-weight:400;color:var(--teal)}.hud-progress{display:flex;align-items:center;gap:8px;font-size:19px;font-family:Georgia,serif;color:#ccefe6;white-space:nowrap;margin-left:auto}.hud-progress small{font-family:Arial,sans-serif;font-size:9px;letter-spacing:.22em;color:#a8c0ba}.hud-icon{font-size:24px;color:#7dd7cb}.hud-fuel{display:flex;align-items:center;gap:8px;min-width:150px}.lamp-icon{color:#ffc579;font-size:21px}.fuel-track{width:105px;height:8px;border:1px solid #ae9b7b90;background:#081011;border-radius:50px;padding:1px}.fuel-track>div{width:100%;height:100%;border-radius:50px;background:linear-gradient(90deg,#ae763c,#ffcb7a);box-shadow:0 0 10px #e39d4b50;transition:width .3s}.hud-fuel #fuelNum{font-size:11px;color:#e1c79c;font-variant-numeric:tabular-nums}.hud-actions{display:flex;gap:7px}.hud-btn{border:1px solid #66858085;background:#0c1f22ce;padding:9px 13px;border-radius:3px;font-size:10px;font-weight:700;letter-spacing:.13em}.hud-btn:hover{background:#17403f}.hud-btn kbd{font:inherit;color:#8dbab0;margin-left:8px}.icon-btn{min-width:37px;font-size:17px;padding:6px}.hud-btn.muted{color:#768c87}.screen{position:absolute;inset:0;z-index:40;overflow:hidden}.screen.visible{display:block}#menu{background:#040d10}.menu-art{position:absolute;inset:0;background:url('assets/portal-dormant.webp') center/cover no-repeat;filter:brightness(.72) saturate(.87);animation:slowDrift 25s ease-in-out infinite alternate}.menu-haze{position:absolute;inset:0;background:linear-gradient(90deg,#020809b9 0%,#020809d1 38%,#020b0e75 75%),linear-gradient(0deg,#02080ceb,transparent 23%,transparent 78%,#02080dcc)}.menu-content{position:absolute;left:clamp(20px,6.5vw,120px);top:50%;transform:translateY(-50%);width:min(690px,87vw);text-align:center;animation:menuAppear .9s both}.eyebrow,.panel-kicker{font-size:10px;letter-spacing:.23em;font-weight:700;color:#c1bea4}.dot{display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--gold);vertical-align:middle;margin:0 13px}.menu-sigil{font-size:70px;line-height:1;color:#9fe3d2;text-shadow:0 0 35px #65cfb18f;margin-bottom:9px}.menu-content h1{margin:0;font:normal clamp(36px,4.9vw,76px)/.99 Georgia,'Times New Roman',serif;letter-spacing:.07em;text-shadow:0 8px 32px #000;white-space:nowrap}.menu-content h1 em{font-weight:normal;font-style:normal;color:#b1dacf}.episode{margin:20px 0 22px;font-size:13px;letter-spacing:.48em;color:var(--gold);font-weight:600}.ornament{font-size:13px;color:#89bfb4;display:flex;align-items:center;justify-content:center;gap:20px;margin:0 auto 20px}.ornament span{height:1px;width:105px;background:linear-gradient(90deg,transparent,#9cd4c8,transparent)}.menu-copy{font:17px/1.75 Georgia,serif;color:#c5d7d2;letter-spacing:.02em;margin:0 0 29px}.menu-buttons{display:flex;flex-direction:column;align-items:center;gap:9px}.btn{appearance:none;border:1px solid transparent;min-height:46px;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 27px;border-radius:2px;font-size:11px;font-weight:750;letter-spacing:.14em;transition:background .2s,transform .2s,color .2s;max-width:100%;text-align:center}.btn:hover{transform:translateY(-2px)}.btn.primary{background:linear-gradient(110deg,#8dc9bd,#c1e6d6);border-color:#c3e8d9;color:#0b282b;min-width:min(330px,100%);box-shadow:0 0 35px #63cbbb22}.btn.primary:hover{background:#dbf6e7}.btn.outline{border-color:#8caaa17a;background:#081b1acc;color:#d5e5de;min-width:min(330px,100%)}.btn.outline:hover{background:#163b35}.btn.ghost{color:#d8c3a2;background:transparent;border-color:transparent;font-size:10px}.btn.ghost:hover{color:white}.btn.ghost span{font-size:17px}.menu-micro{font-size:9px;letter-spacing:.15em;color:#91aca6;margin-top:22px}.menu-micro span{padding:0 7px;color:var(--gold)}.menu-bottom{position:absolute;bottom:17px;left:26px;right:26px;display:flex;justify-content:space-between;gap:16px;font-size:9px;letter-spacing:.16em;color:#9baaa6a0}#zoneChip{position:absolute;top:83px;left:50%;transform:translateX(-50%);z-index:13;text-align:center;text-shadow:0 1px 6px black;pointer-events:none}#zoneChip span{display:block;font:16px Georgia,serif;letter-spacing:.21em;color:#d4ece7}#zoneChip small{display:block;font-size:10px;letter-spacing:.16em;color:#b7c6c2;margin-top:4px}#interactionHint{position:absolute;z-index:16;bottom:127px;left:50%;transform:translateX(-50%);border:1px solid #7cbbae8c;border-radius:4px;background:#06171be8;padding:11px 19px;color:#e5efeb;font-size:11px;font-weight:600;letter-spacing:.1em;box-shadow:0 8px 35px #000a;white-space:nowrap;pointer-events:none}#interactionHint kbd{display:inline-grid;place-items:center;width:25px;height:25px;border:1px solid #c5e1d3aa;margin-right:9px;color:#c9e8de}#toast{position:absolute;z-index:32;left:50%;bottom:20%;transform:translateX(-50%) translateY(15px);opacity:0;pointer-events:none;transition:all .35s ease;background:#05171bdc;border:1px solid #55958cbb;box-shadow:0 15px 60px #0009;padding:12px 22px;color:#d5ede6;letter-spacing:.08em;text-align:center;font-size:12px;max-width:90vw}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}#controlsTip{position:absolute;z-index:12;bottom:20px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.08em;color:#bfd5cb96;text-align:center;white-space:nowrap;pointer-events:none;text-shadow:1px 2px 4px black}#controlsTip i{color:#78beb0;margin:0 9px}.modal{position:absolute;inset:0;z-index:45;display:flex;align-items:center;justify-content:center;padding:22px}.modal-shade{position:absolute;inset:0;background:#000b;backdrop-filter:blur(8px)}.panel{position:relative;width:min(680px,100%);max-height:min(90dvh,780px);overflow-y:auto;border:1px solid #64817c;background:linear-gradient(145deg,#102327f4,#071215f9);box-shadow:0 10px 100px #000, inset 0 0 45px #76b2a407;padding:30px 36px}.panel:before,.panel:after{content:'◈';position:absolute;font-size:15px;color:var(--gold)}.panel:before{top:9px;left:12px}.panel:after{bottom:9px;right:12px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.panel h2{font:normal 34px Georgia,serif;margin:12px 0 8px;letter-spacing:.01em;color:#e7f2e9}.panel-lead{color:#abc2bc;line-height:1.55;font-size:13px;margin:0 0 23px}.close-btn{border:1px solid #53716d;background:transparent;border-radius:3px;width:35px;height:35px}.close-btn:hover{background:#2d5350}.inventory-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin:12px 0 18px}.inv-tile{min-height:104px;display:grid;grid-template-columns:46px 1fr;grid-template-rows:1fr 1fr;align-items:center;column-gap:14px;padding:17px 14px;background:#122b2a91;border:1px solid #53696368}.inv-symbol{grid-row:span 2;display:grid;place-items:center;font-size:38px;color:#b6e8d6}.inv-symbol.amber{color:#e2b879}.inv-name{font-size:12px;color:#b1cbc2}.inv-tile strong{font:19px Georgia,serif;color:#f0e7d4}.inv-lamp-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-block:1px solid #54746e68;padding:18px 0}.inv-lamp-row b{display:block;font-size:11px;letter-spacing:.12em;color:#e9d3a9}.inv-lamp-row small{display:block;margin-top:6px;color:#9db8af;font-size:11px}.panel-controls{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.small-btn{padding:10px 11px;background:#4d3720;border:1px solid #9a7849;font-size:9px;letter-spacing:.09em}.small-btn.teal{background:#183d38;border-color:#549d8c}.small-btn:hover{filter:brightness(1.3)}.lore-box{padding:17px 20px;background:#06101396;margin:18px 0;border-left:2px solid #aa9564}.lore-box span{font-size:9px;letter-spacing:.18em;color:#d0af7d}.lore-box p{font:italic 14px/1.6 Georgia,serif;color:#d8e0d6;margin:10px 0 0}.btn.compact{min-width:0;min-height:38px;padding:10px 16px}.small-panel{width:min(450px,100%)}.center-panel{text-align:center}.center-panel .btn{display:flex;margin:12px auto;width:100%}.btn.text-btn{background:transparent;color:#9eb6ae;font-size:10px;min-height:30px}.puzzle-panel{width:min(720px,100%);text-align:center}.puzzle-panel .panel-heading{text-align:left}.puzzle-panel h2{font-size:36px}.puzzle-runes{display:flex;justify-content:center;gap:4px;flex-wrap:wrap;margin:16px 0}.puzzle-runes span{color:#8edfd3;font-size:22px;text-shadow:0 0 13px #5cc4b2}.puzzle-guide{border:1px solid #667f76aa;padding:12px;margin:15px auto;color:#d5ba8e;font-size:10px;letter-spacing:.18em}.puzzle-guide strong{display:block;font:27px Georgia,serif;color:#d9f4e9;margin:6px auto 0;letter-spacing:.35em}.dials{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.dial{padding:14px 5px;display:grid;grid-template-columns:30px 1fr 30px;grid-template-rows:20px 60px;align-items:center;border:1px solid #4c7a72;background:#06171bc9}.dial span{grid-column:1/-1;font-size:9px;letter-spacing:.12em;color:#adbea9}.dial b{font:43px Georgia,serif;color:#d8f5eb;text-shadow:0 0 20px #92f4cf50}.dial b.matched{color:#f3da94;text-shadow:0 0 24px #e6ba59}.dial-arrow{border:0;background:transparent;color:#bcd7ce;font-size:34px}.dial-arrow:hover{color:#fff}.puzzle-status{color:#c7d7d0;font-size:12px;min-height:18px;margin:16px 0}.puzzle-panel #activateBtn{min-width:min(350px,100%)}#ending{background:#010b10}.ending-art{position:absolute;inset:0;background:url('assets/portal-awakened.webp') center/cover no-repeat;animation:endingEnter 2.8s cubic-bezier(.2,.7,.1,1) both}.ending-flare{position:absolute;inset:0;background:radial-gradient(circle at 27% 52%,#7fffe053,transparent 31%),linear-gradient(0deg,#000c,transparent 44%);mix-blend-mode:screen;animation:flare 5s ease-in-out infinite alternate}.ending-smoke{position:absolute;top:11%;left:9%;width:42vw;height:65vh;opacity:.55;pointer-events:none;filter:blur(27px);mix-blend-mode:screen;background:radial-gradient(ellipse at 34% 65%,#81d9c956,transparent 62%),radial-gradient(ellipse at 65% 32%,#dcfff43a,transparent 64%);animation:smokeSweep 6s ease-in-out infinite alternate}.ending-smoke.smoke-two{animation-delay:-2.8s;left:18%;top:24%;width:36vw;height:50vh;filter:blur(45px)}.ending-smoke.smoke-three{animation-delay:-4.1s;left:34%;top:17%;width:42vw;height:65vh;filter:blur(50px)}.ending-vignette{position:absolute;inset:0;background:linear-gradient(0deg,#000e,transparent 58%,#0004)}.ending-content{position:absolute;bottom:clamp(20px,7vh,75px);left:0;right:0;text-align:center;padding:20px;animation:appear 2.5s 1s both}.ending-kicker{font-size:11px;letter-spacing:.29em;color:#efe0a5;text-shadow:0 2px 10px #000}.ending-content h2{font:normal clamp(22px,3.8vw,42px) Georgia,serif;letter-spacing:.18em;margin:8px 0;color:#f0fff8;text-shadow:0 3px 18px #000,0 0 22px #7be5ce40}.ending-content p:not(.ending-kicker){color:#c5d8cd;font-size:14px;text-shadow:0 2px 9px #000}.ending-content .btn{margin:7px 7px}.btn.giant{min-width:min(420px,90vw);min-height:56px}.ending-content .btn.ghost{display:inline-flex}
#speechBubble{position:absolute;z-index:34;left:0;top:0;transform:translate(-50%,-100%);max-width:min(340px,72vw);padding:10px 14px;border:1px solid #b4dcd2cc;border-radius:16px;background:linear-gradient(180deg,#f5f4ebf2,#dddfd6eb);color:#102022;font:600 12px/1.35 "Segoe UI",Arial,sans-serif;box-shadow:0 12px 34px #0008;pointer-events:none;white-space:normal;text-align:left}#speechBubble:after{content:"";position:absolute;left:26px;bottom:-11px;border-width:12px 10px 0 4px;border-style:solid;border-color:#dddfd6eb transparent transparent transparent;filter:drop-shadow(0 1px 0 #b4dcd2cc)}#speechBubble b{color:#224946}#interactionHint{display:none!important}@media (max-width:900px){#speechBubble{max-width:min(270px,74vw);font-size:11px;padding:9px 12px}}
#touchControls{position:absolute;z-index:20;bottom:max(15px,env(safe-area-inset-bottom));left:0;right:0;justify-content:space-between;padding:0 18px;pointer-events:none}#touchControls button{pointer-events:auto;touch-action:none;border:1px solid #92c4b681;color:#e7f2ec;background:#061b20b9;border-radius:50%;height:64px;width:64px;font-size:22px;text-shadow:0 1px 5px #000;box-shadow:0 7px 20px #0008}#touchControls button.pressed{background:#398777e0}#touchControls button small{display:block;font-size:8px;letter-spacing:.06em;margin-top:2px}.touch-left,.touch-right{display:flex;align-items:flex-end;gap:8px}#loadError{position:absolute;z-index:100;bottom:10px;left:10px;right:10px;background:#391612;color:white;padding:20px;font-size:14px;text-align:center}@keyframes smokeSweep{0%{transform:translate3d(-45px,34px,0) scale(.85);opacity:0}30%{opacity:.3}65%{opacity:.5}100%{transform:translate3d(190px,-32px,0) scale(1.32);opacity:.12}}@keyframes menuAppear{from{opacity:0;transform:translateY(calc(-50% + 16px))}to{opacity:1;transform:translateY(-50%)}}@keyframes slowDrift{from{transform:scale(1.03) translateX(-.5%)}to{transform:scale(1.1) translateX(1%)}}@keyframes appear{from{opacity:0;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}@keyframes endingEnter{from{opacity:0;transform:scale(1.11);filter:brightness(2) blur(10px)}to{opacity:1;transform:scale(1);filter:brightness(1) blur(0)}}@keyframes flare{from{opacity:.25}to{opacity:.8}}@media (hover:none),(pointer:coarse){#touchControls:not(.hidden){display:flex!important}#controlsTip{display:none!important}#interactionHint{bottom:105px}#hud{padding:10px 11px 24px;gap:10px}.hud-brand-text{display:none}.hud-fuel{min-width:96px}.fuel-track{width:55px}.hud-btn{padding:8px 9px}.hud-btn kbd{display:none}}@media (max-width:720px){.menu-content{left:5vw;width:90vw}.menu-content h1{font-size:clamp(26px,5.5vw,43px)}.episode{font-size:10px;letter-spacing:.28em}.menu-copy{font-size:14px}.eyebrow{font-size:8px;letter-spacing:.12em}.menu-sigil{font-size:56px}.menu-bottom{font-size:8px}.menu-bottom span:nth-child(2){display:none}.hud-progress{margin-left:auto;font-size:15px}.hud-progress small{display:none}.hud-fuel #fuelNum{display:none}.hud-actions{gap:4px}#zoneChip{top:65px}#zoneChip span{font-size:12px}.panel{padding:23px 19px}.panel h2{font-size:27px}.inventory-grid{gap:7px}.inv-tile{padding:10px;min-height:84px;grid-template-columns:34px 1fr;column-gap:8px}.inv-symbol{font-size:29px}.inv-name{font-size:10px}.inv-tile strong{font-size:15px}.inv-lamp-row{flex-direction:column;align-items:stretch}.panel-controls{justify-content:flex-start}.dials{gap:5px}.dial{padding:11px 1px;grid-template-columns:22px 1fr 22px}.dial b{font-size:31px}.dial-arrow{font-size:26px}.dial span{font-size:7px}.ending-content h2{font-size:20px}}@media(max-height:500px){.menu-sigil{font-size:32px}.menu-content h1{font-size:34px}.menu-copy{font-size:12px;line-height:1.35;margin-bottom:8px}.menu-bottom{display:none}.menu-content .episode{margin:6px 0}.ornament{margin:4px auto}.menu-micro{margin:7px}.btn{min-height:36px;padding:8px 12px}.menu-buttons{gap:2px}#hud{padding-top:6px}#zoneChip{top:44px}.panel{max-height:95dvh}.ending-content{bottom:0}.ending-content p:not(.ending-kicker){display:none}.ending-content h2{font-size:20px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* Assets-integrated HUD and controls */
#hud{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:12px 16px 0;pointer-events:none}#hud>*{pointer-events:auto}.hud-left-pack{display:flex;flex-direction:column;gap:8px}.hud-energy-shell{position:relative;width:286px;height:51px}.hud-energy-art{position:absolute;inset:0;background:url('assets/barra-de-energia.png') center/contain no-repeat}.hud-energy-shell .fuel-track{position:absolute;left:54px;top:9px;width:184px;height:12px;border:none;background:transparent;overflow:visible}.hud-energy-shell .fuel-track:before{content:'';position:absolute;inset:0;border-radius:999px;background:linear-gradient(90deg,rgba(0,0,0,.25),rgba(0,0,0,.1))}.hud-energy-shell #fuelFill{height:12px;border-radius:999px;box-shadow:0 0 10px rgba(255,188,104,.45)}.hud-energy-shell #fuelNum{position:absolute;right:41px;top:20px;font:700 13px/1 'Segoe UI',Arial,sans-serif;color:#f7efd8;text-shadow:0 2px 6px #000}.hud-resources{display:flex;gap:8px;align-items:flex-start}.resource-card{position:relative;width:110px;height:56px;padding-left:40px;padding-top:11px;color:#f4ead3;font:700 18px/1 'Segoe UI',Arial,sans-serif;text-shadow:0 2px 6px #000;background-position:center;background-repeat:no-repeat;background-size:contain}.hud-progress{background-image:url('assets/barra-runas.png')}.hud-oil{background-image:url('assets/barra-lamparina.png')}.hud-coal{background-image:url('assets/barra-carvao.png')}.resource-icon{position:absolute;left:11px;top:10px;width:30px;height:30px;background-position:center;background-repeat:no-repeat;background-size:contain}.rune-icon{background-image:url('assets/fragmento-de-runa.png')}.oil-icon{background-image:url('assets/fraco-querosene.png')}.coal-icon{background-image:url('assets/carvao.png')}.hud-actions{display:flex;align-items:flex-start;gap:8px}.hud-btn{min-height:50px;background:rgba(7,20,24,.76);border:1px solid rgba(146,186,180,.55);box-shadow:0 6px 18px #0007}.img-btn{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 8px}.img-btn span:last-child{font-size:15px;color:#f3efe0;text-shadow:0 2px 6px #000}.key-art{display:block;width:34px;height:34px;background-position:center;background-repeat:no-repeat;background-size:contain;flex:none}.key-i{background-image:url('assets/btn-i.png')}.key-f{background-image:url('assets/btn-f.png')}.key-e{background-image:url('assets/btn-e.png')}.key-menu{background-image:url('assets/btn-hamburg.png');width:36px;height:36px}.square-btn{width:50px;padding:6px;display:grid;place-items:center}.hud-btn.icon-btn{width:44px;min-height:44px;display:grid;place-items:center;font-size:18px}.hud-btn kbd{display:none}.puzzle-runes span{display:inline-block;width:28px;height:28px;background:url('assets/fragmento-de-runa.png') center/contain no-repeat;color:transparent;filter:drop-shadow(0 0 10px rgba(110,228,210,.35))}.touch-art{background-color:transparent!important;border:none!important;box-shadow:none!important;width:64px!important;height:64px!important;background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important}.left-art{background-image:url('assets/btn-esquerda.png')!important}.right-art{background-image:url('assets/btn-direita.png')!important}.jump-art{background-image:url('assets/btn-cima.png')!important}.use-art{background-image:url('assets/btn-mao.png')!important}.lamp-art{background-image:url('assets/btn-lamparina.png')!important;width:80px!important}.touch-left,.touch-right{gap:10px}#touchControls button.pressed{filter:brightness(1.18)}@media (max-width:900px){#hud{padding:8px 8px 0;gap:10px}.hud-energy-shell{width:230px;height:42px}.hud-energy-art{background-size:100% 100%}.hud-energy-shell .fuel-track{left:44px;top:7px;width:150px;height:10px}.hud-energy-shell #fuelNum{right:29px;top:16px;font-size:11px}.resource-card{width:84px;height:44px;padding-left:30px;padding-top:7px;font-size:14px}.resource-icon{left:8px;top:8px;width:22px;height:22px}.img-btn span:last-child{display:none}.img-btn{padding:6px}.square-btn,.hud-btn.icon-btn{width:38px;min-height:38px}.key-art{width:28px;height:28px}.hud-actions{gap:4px}.lamp-art{width:68px!important;height:68px!important}}

/* V8 - clean resource counters; icons only inside the inventory */
.hud-resources .resource-icon{display:none!important}
.hud-resources .resource-card{display:flex!important;align-items:center!important;justify-content:center!important;gap:0!important;padding:0 8px 0 35px!important;width:108px!important;min-width:0!important;font-size:17px!important;line-height:1!important;white-space:nowrap!important}
.hud-resources .resource-card span[id]{display:block!important;margin:0!important;padding:0!important;letter-spacing:0!important;font-weight:700!important}
.inv-symbol{background-size:contain;background-position:center;background-repeat:no-repeat;font-size:0!important;width:44px;height:44px}
.inv-rune{background-image:url('assets/fragmento-de-runa.png')}
.inv-oil{background-image:url('assets/fraco-querosene.png')}
.inv-coal{background-image:url('assets/carvao.png')}
.inv-lore{background-image:url('assets/runas-ativadas.png')}
.puzzle-runes span{background:none!important;width:auto!important;height:auto!important;filter:none!important}.puzzle-runes img{width:24px;height:34px;object-fit:contain;filter:drop-shadow(0 0 7px #7fd5cb65)}
/* Lightweight upward smoke for the final logo screen, GPU-friendly transforms only */
.ending-wisps{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.ending-wisps i{position:absolute;bottom:7%;left:19%;width:92px;height:160px;background:radial-gradient(ellipse,#a6f5e446 0%,#80d4d21e 35%,transparent 73%);border-radius:50%;filter:blur(14px);opacity:0;animation:ghWispRise 6s linear infinite}
.ending-wisps i:nth-child(2){left:27%;animation-delay:-1s;width:120px}.ending-wisps i:nth-child(3){left:38%;animation-delay:-2.5s}.ending-wisps i:nth-child(4){left:15%;animation-delay:-3.7s;width:80px}.ending-wisps i:nth-child(5){left:48%;animation-delay:-4.8s;width:110px}.ending-wisps i:nth-child(6){left:58%;animation-delay:-1.8s;width:88px}
@keyframes ghWispRise{0%{transform:translate3d(0,70px,0) scale(.55);opacity:0}24%{opacity:.42}75%{opacity:.26}100%{transform:translate3d(35px,-310px,0) scale(1.8);opacity:0}}
@media(max-width:900px){.hud-resources .resource-card{width:83px!important;padding:0 4px 0 29px!important;font-size:13px!important}.ending-wisps i:nth-child(n+4){display:none}}

/* V10 */
#endLamp{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;mix-blend-mode:screen}
#ending .ending-content{bottom:clamp(14px,5vh,56px);padding:0 16px;display:flex;flex-direction:column;align-items:center;gap:10px}
#ending .ending-kicker,#ending .ending-content p:not(.ending-kicker){display:none}
#ending .ending-content h2{margin:0;font-size:clamp(15px,2.4vw,28px);letter-spacing:.16em;white-space:nowrap}
#ending .ending-content .btn{margin:0}
#ending .btn.giant{min-width:0;min-height:44px;padding:12px 30px}
.menu-micro{margin-top:18px;font-size:9px;letter-spacing:.14em}
.menu-bottom{justify-content:flex-start}
html,body,#gameShell{height:100dvh}
@media (max-height:520px){.menu-copy{display:none}.menu-micro{display:none}}

/* V10.2 */
.hud-energy-art{display:none}
.hud-energy-shell{width:auto;height:auto;display:flex;align-items:center;gap:8px}
.hud-energy-shell .fuel-track{position:relative;left:auto;top:auto;width:176px;height:12px;border:1px solid #ae9b7baa;background:#081011cc;border-radius:99px;padding:1px;overflow:hidden}
.hud-energy-shell .fuel-track:before{display:none}
.hud-energy-shell #fuelFill{height:100%}
.hud-energy-shell #fuelNum{position:static;font:700 12px 'Segoe UI',Arial,sans-serif;color:#f1d9a5;min-width:34px}
#speechBubble{margin-top:-6px;--tx:0px}
#speechBubble:after{left:calc(50% + var(--tx) - 8px);border-width:11px 8px 0 8px}
#ending .ending-content{left:clamp(16px,8vw,120px);right:auto;transform:none;width:auto;align-items:flex-start;text-align:left;bottom:clamp(18px,8vh,72px)}
canvas{touch-action:none}html,body{overscroll-behavior:none}
#rotateHint{display:none;position:fixed;inset:0;z-index:99;background:#02090cf2;color:#cfe8e2;align-items:center;justify-content:center;text-align:center;padding:24px;font:600 15px/1.5 Georgia,serif;letter-spacing:.08em}
@media (orientation:portrait) and (pointer:coarse){#rotateHint{display:flex}}
@media (max-width:760px){.hud-energy-shell .fuel-track{width:96px}}
