:root{color-scheme:dark;--ink:#0d0d0d;--panel:#1a1a1a;--red:#aa151b;--bright-red:#c60b1e;--gold:#f1bf00;--aged-gold:#d4af37;--adobe:#c27d56;--sand:#e6d5b8;--muted:#b7a991;--border:#695235;font-family:Georgia,'Times New Roman',serif;background:var(--ink);color:var(--sand)}
*{box-sizing:border-box}body{margin:0;min-width:280px;background:radial-gradient(ellipse at 50% 0,#32201d,transparent 65%),var(--ink)}[hidden]{display:none!important}button,input,summary{font:inherit}button,summary{touch-action:manipulation}button{min-height:44px;padding:11px 15px;background:#25201d;color:var(--sand);border:1px solid var(--border);border-radius:2px;font:13px/1.35 'Courier New',monospace;cursor:pointer}button:hover:enabled,button.active,button[aria-pressed=true]{background:var(--red);border-color:var(--gold);color:#fff}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:4px}.primary{background:var(--red);border-color:var(--bright-red);color:#fff}.shell{max-width:1120px;margin:auto;padding:24px}.masthead,.toolbar,.scene-header,.modal-header,.game-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.toolbar{justify-content:flex-end;flex-wrap:wrap}.brand{text-decoration:none;color:var(--gold);font-size:44px;font-style:italic;font-weight:bold;display:flex;align-items:center;gap:20px}.brand span,.eyebrow{font:11px/1.5 'Courier New',monospace;letter-spacing:2px}.brand span{color:var(--muted)}.title-screen{text-align:center;padding:45px 20px 30px}.eyebrow{color:var(--aged-gold)}.title-mark{font-size:100px;line-height:1;color:var(--red);font-style:italic;font-weight:bold;text-shadow:2px 2px var(--gold);margin:10px}h1{font-size:clamp(36px,6vw,72px);font-weight:normal;line-height:1.05;color:var(--sand);margin:10px 0}h1 em{color:var(--gold)}.subtitle{font:16px 'Courier New',monospace;letter-spacing:4px;color:var(--aged-gold)}.intro{line-height:1.8;color:var(--muted);margin:28px 0}.title-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.title-actions button{min-width:180px}#boot-status{font:12px/1.7 'Courier New',monospace;color:var(--muted);max-width:600px;margin:24px auto}.instructions{text-align:left;border-top:1px solid var(--border);max-width:650px;margin:30px auto 0;padding-top:18px;line-height:1.7}.instructions summary{cursor:pointer;color:var(--gold);min-height:44px}.game-screen{border:1px solid var(--border);margin-top:20px;box-shadow:0 20px 80px #0008}.scene-header{padding:14px 20px;background:#241d19}.scene-header h2{font-size:20px;margin:4px 0}.badge{font:12px 'Courier New',monospace;border:1px solid var(--aged-gold);color:var(--gold);padding:9px;white-space:nowrap}.stage{position:relative;overflow:hidden;background:#171c2b}canvas{image-rendering:pixelated;image-rendering:crisp-edges}#scene{display:block;width:100%;height:auto;aspect-ratio:16/9;touch-action:manipulation}.scene-tooltip{position:absolute;bottom:8px;left:10px;pointer-events:none;background:#0d0d0de8;color:var(--gold);padding:8px;font:12px monospace}.chapter-banner{position:absolute;inset:35% 0 auto;text-align:center;background:#0d0d0ddc;padding:25px;font-size:28px;color:var(--gold)}.scene-targets{display:flex;flex-wrap:wrap;gap:5px;padding:10px;background:#201915}.scene-targets button{flex:1 1 110px;font-size:12px}.dialogue{display:grid;grid-template-columns:96px 1fr;gap:18px;padding:20px;background:#111;min-height:160px;border-top:1px solid var(--border)}#portrait{width:96px;height:96px;border:1px solid var(--border);background:#211e25}.dialogue h3{color:var(--gold);font:14px monospace;margin:0 0 10px}.dialogue p{margin:0 0 12px;line-height:1.65}.choices{display:flex;flex-wrap:wrap;gap:8px}.choices button{text-align:left;flex:1 1 200px}.action-line{margin:0;min-height:44px;background:#2e1919;padding:13px 20px;color:var(--gold);font:14px monospace}.scumm-controls{display:grid;grid-template-columns:1fr 1.25fr;gap:22px;padding:20px;background:#171412}.verbs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.verbs button{text-align:left;color:var(--gold)}.inventory-panel h3{font:11px monospace;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin:0 0 12px}.inventory{display:flex;gap:7px;flex-wrap:wrap;align-content:flex-start;max-height:200px;overflow:auto}.inventory button{display:flex;gap:8px;align-items:center}.inventory canvas{width:28px;height:28px}.game-footer{flex-wrap:wrap;padding:16px;background:#201b18;border-top:1px solid var(--border)}#objective{flex:1 1 250px;margin:0;font-size:14px;line-height:1.5}#save-status{width:100%;font:10px monospace;color:var(--muted)}.credits{text-align:center;font:11px/1.7 monospace;color:#9b8c78;margin:28px auto;max-width:750px}dialog{background:#191615;color:var(--sand);border:1px solid var(--aged-gold);padding:24px;width:min(640px,calc(100% - 24px));max-height:85dvh;overflow:auto}dialog::backdrop{background:#000c}.modal-header{margin-bottom:20px}.modal-header h2{font-size:24px;color:var(--gold);margin:0}.modal-header button{font-size:22px}dialog label{display:block;margin:16px 0 8px}dialog input[type=range]{width:100%;accent-color:var(--red)}dialog .check{display:flex;align-items:center;gap:12px;min-height:44px}input[type=checkbox]{width:20px;height:20px;accent-color:var(--red)}#audio-status{font:12px/1.6 monospace;color:var(--muted)}.map-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}#journal-content{line-height:1.7}#journal-content h3{color:var(--gold)}#duel-scene{width:100%;height:auto}#duel-heading{color:var(--gold)}#duel-insult{border-left:3px solid var(--red);padding:12px;margin:16px 0;line-height:1.6}#duel-feedback{min-height:44px;line-height:1.6;color:var(--gold)}.victory-screen{text-align:center;padding:50px 15px}.victory-screen h2{font-size:clamp(32px,6vw,64px);color:var(--gold)}#victory-text{max-width:640px;margin:20px auto;line-height:1.8}#victory-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:450px;margin:30px auto}#victory-stats dt{text-align:right}#victory-stats dd{text-align:left;color:var(--gold);margin:0}.skip{position:fixed;top:-100px;left:10px;background:var(--gold);color:#111;padding:12px;z-index:10}.skip:focus{top:10px}.error{padding:20px;color:#fff;background:var(--red)}
@media(max-width:700px){.shell{padding:12px}.brand span{font-size:9px;letter-spacing:0;max-width:90px}.brand{gap:10px;font-size:36px}.masthead .toolbar{gap:5px}.masthead button{font-size:11px;padding:8px}.title-screen{padding:30px 0}.eyebrow{font-size:9px;letter-spacing:1px}.title-mark{font-size:75px}.scumm-controls{grid-template-columns:1fr;padding:12px;gap:18px}.dialogue{grid-template-columns:64px 1fr;padding:12px;gap:12px}#portrait{width:64px;height:64px}.dialogue p{font-size:15px}.scene-header{padding:10px}.scene-header h2{font-size:17px}.badge{font-size:10px}.game-footer .toolbar{justify-content:flex-start}.game-footer{padding:12px}.choices button{flex-basis:100%}.inventory{max-height:150px}.subtitle{font-size:13px}.map-grid{grid-template-columns:1fr}}
@media(orientation:landscape) and (max-height:550px){.title-screen{padding:15px}.title-mark{display:none}.intro{margin:12px 0}#scene{max-height:55vh;object-fit:contain}.scumm-controls{grid-template-columns:1fr 1fr}.dialogue{min-height:100px}dialog{max-height:90dvh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.reduced-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* Atualização de exploração: jogo ocupa a página e controles respeitam o toque. */
:root{font-size:16px}button{font-size:.875rem}.eyebrow,.brand span{font-size:.875rem;letter-spacing:1px}.credits{font-size:.75rem}#boot-status{font-size:.875rem}.scene-tooltip{font-size:.875rem}.inventory-panel h3{font-size:.875rem;letter-spacing:1px}.action-line{font-size:1rem}.scene-targets button{font-size:.875rem}#save-status{font-size:.75rem}.playing .shell{max-width:1440px;padding:10px 18px}.playing .masthead{min-height:45px}.playing .brand{font-size:28px}.playing .credits{display:none}.playing .game-screen{margin-top:8px}.playing .scene-header{padding:9px 16px}.playing #scene{max-height:52vh;object-fit:contain;background:#101b2d;image-rendering:auto}.playing .stage{background:#101b2d}.playing .dialogue{padding:13px 18px;min-height:122px;grid-template-columns:80px 1fr;gap:15px}.playing #portrait{width:80px;height:80px;image-rendering:auto}.playing .dialogue h3{font-size:.9375rem}.playing .dialogue p{font-size:1rem;line-height:1.5}.playing .scumm-controls{padding:12px 16px;gap:20px}.explore-bar{display:flex;gap:8px;align-items:center;padding:6px 12px;background:#19212a;border-top:1px solid #39434b}.explore-bar span{flex:1;font: .875rem/1.4 'Courier New',monospace;color:#b7c1c7}.explore-bar button{font-size:.875rem;min-height:40px;padding:7px 12px}.playing .game-footer{padding:10px 16px}.playing .scene-targets{padding:7px 12px;gap:5px}.playing .scene-targets button{padding:6px 9px;min-height:40px}.playing .inventory button{min-width:104px;font-size:.875rem}.inventory canvas{image-rendering:auto;flex-shrink:0}.shell:fullscreen{background:#0d0d0d;max-width:none;width:100%;height:100%;overflow:auto}.title-screen{background:radial-gradient(ellipse at 50% 25%,#192c3c88,transparent 65%)}.choices button:hover{box-shadow:inset 3px 0 #f1bf00}#duel-scene{image-rendering:auto}#duel-feedback{font-size:1rem}.map-grid button{text-align:left;padding:16px}.playing .scene-header h2{font-size:1.25rem}
@media(min-width:1100px){.playing .game-screen{display:grid;grid-template-columns:minmax(0,1fr) 290px}.playing .scene-header,.playing .game-footer,.playing .action-line{grid-column:1/-1}.playing .stage,.playing .explore-bar,.playing .scene-targets{grid-column:1}.playing .dialogue{grid-column:2;grid-row:2/5;display:flex;flex-direction:column;border-left:1px solid var(--border);max-height:65vh;overflow:auto}.playing .scumm-controls{grid-column:1/-1;grid-template-columns:360px 1fr}.playing #scene{max-height:54vh}.playing .dialogue .choices{flex-direction:column}.playing .choices button{flex-basis:auto}.playing .explore-bar span{font-size:.875rem}.playing .scene-header .eyebrow{font-size:.875rem}}
@media(max-width:700px){.playing .shell{padding:5px}.playing .brand span{display:none}.playing #scene{max-height:none}.playing .explore-bar{flex-wrap:wrap}.explore-bar span{flex-basis:100%}.explore-bar button{flex:1}.playing .dialogue{display:grid;grid-template-columns:58px 1fr;padding:10px;gap:10px}.playing #portrait{width:58px;height:58px}.playing .scumm-controls{padding:10px;grid-template-columns:1fr}.playing .scene-header{align-items:flex-start}.badge{font-size:.875rem}.playing .scene-header .eyebrow{font-size:.75rem}.playing .scene-targets button{font-size:.875rem}.playing .toolbar button{font-size:.875rem}.playing .game-footer{padding:10px}.scene-header h2{font-size:1.1rem}.brand span{font-size:.75rem}.playing .inventory{max-height:180px}.playing .inventory button{min-width:auto}}
@media(orientation:landscape) and (max-height:550px){.playing #scene{max-height:none}.playing .masthead{display:none}.playing .game-screen{margin-top:0}.playing .scene-header .eyebrow{font-size:.75rem}.playing .dialogue{min-height:90px}.playing .scumm-controls{grid-template-columns:1fr 1fr}}
/* A proporção do canvas e a área de toque permanecem idênticas em qualquer tela. */
.playing #scene{max-height:none;object-fit:fill}
