:root{color-scheme:dark;--gold:#c9a96c;--gold2:#f0d9a3;--ink:#080d0d;--paper:#eee5d1;--muted:#aaa99b;--panel:rgba(7,13,14,.82);--red:#b64d42}*{box-sizing:border-box}html,body,#game-root{width:100%;height:100%;margin:0;overflow:hidden;background:var(--ink)}body{font-family:Georgia,'Times New Roman',serif;color:var(--paper);touch-action:none}#game-root{position:relative;isolation:isolate}#game-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0}.hidden{display:none!important}.screen{position:absolute;inset:0;z-index:10;display:grid;place-items:center;overflow:auto;background:radial-gradient(ellipse at 50% 42%,rgba(18,34,31,.58),rgba(3,7,8,.94) 72%)}.start-screen{background:#07100f}.start-backdrop{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,8,8,.83),rgba(3,8,8,.28),rgba(3,8,8,.84)),linear-gradient(0deg,#050a0a 0%,transparent 45%,rgba(2,7,7,.45)),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop stop-color='%233c604e' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%23070d0d' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='900' height='700' fill='%23081110'/%3E%3Ccircle cx='450' cy='320' r='340' fill='url(%23g)'/%3E%3Cg fill='%23050b0a' opacity='.95'%3E%3Cpath d='M0 700V170l90 210 65-145 80 190 75-250 100 260 80-300 100 280 70-200 90 210 70-150 80 180V700z'/%3E%3Cpath d='M0 700V360l75 80 60-160 80 190 90-220 90 230 100-180 90 210 85-170 90 180 70-120 70 140v160z' fill='%230b1714'/%3E%3C/g%3E%3C/svg%3E");background-size:cover;background-position:center}.start-content{position:relative;text-align:center;width:min(620px,calc(100% - 34px));padding:28px 20px 24px;animation:arrive 1s ease both}.sigil{font-size:46px;color:var(--gold2);text-shadow:0 0 32px #d4ad6380;margin-bottom:4px}.eyebrow{font-size:9px;letter-spacing:.34em;color:var(--gold);margin:0 0 16px}.start-content h1{font-size:clamp(36px,8vw,76px);font-weight:400;line-height:.91;letter-spacing:.09em;margin:0;color:#f3ead8;text-shadow:0 4px 28px #000}.start-content h1 span{font-size:.45em;color:var(--gold);vertical-align:middle;letter-spacing:.3em}.title-rule{display:flex;align-items:center;justify-content:center;gap:14px;margin:22px auto 18px;color:var(--gold)}.title-rule i{display:block;width:76px;height:1px;background:linear-gradient(90deg,transparent,var(--gold))}.title-rule i:last-child{transform:rotate(180deg)}.title-rule b{font-size:13px;font-weight:400}.episode-label{font-size:9px;letter-spacing:.25em;color:#c4ad7d;margin:0 0 10px}.start-content h2,.modal-card h2{font-weight:400;font-size:clamp(22px,4vw,34px);letter-spacing:.035em;margin:0 0 14px;color:#f2e8d5}.intro-copy{max-width:450px;margin:0 auto;color:#c4c4b7;font-size:14px;line-height:1.8}.primary-button{display:flex;align-items:center;justify-content:center;gap:28px;min-width:240px;margin:26px auto 0;padding:15px 22px;border:1px solid #d6b778;background:linear-gradient(110deg,#94713c,#c7a365 48%,#8a6837);color:#11130f;font-family:Georgia,serif;font-size:11px;letter-spacing:.2em;font-weight:bold;cursor:pointer;box-shadow:0 8px 34px #0008,inset 0 1px #f5dfad88;transition:transform .2s,filter .2s}.primary-button:hover{transform:translateY(-2px);filter:brightness(1.13)}.primary-button b{font-size:18px;font-weight:400}.start-note{font-family:Arial,sans-serif;font-size:8px;letter-spacing:.17em;color:#858b7d;margin:18px 0 0}.start-footer{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#7e887c;font-family:Arial,sans-serif;font-size:8px;letter-spacing:.23em}.start-footer span{color:var(--gold);padding:0 10px}.hud{position:absolute;inset:0;z-index:2;pointer-events:none}.hud-top{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-start;padding:20px 24px;background:linear-gradient(#030807d9,transparent)}.game-brand{display:flex;align-items:center;gap:10px}.mini-sigil{font-size:28px;color:var(--gold)}.game-brand strong,.game-brand small{display:block}.game-brand strong{font-size:11px;letter-spacing:.16em}.game-brand small,.objective small{font-family:Arial,sans-serif;font-size:8px;letter-spacing:.18em;color:#aaa99a;margin-top:5px}.objective{text-align:right;border-right:2px solid var(--gold);padding:5px 10px;background:linear-gradient(90deg,transparent,#050b0bb0)}.objective strong{display:block;font-size:13px;font-weight:400;margin-top:5px}.health-card{position:absolute;top:92px;left:24px;width:230px;padding:12px 14px;background:var(--panel);border:1px solid #c9a96c55;box-shadow:0 8px 28px #0005}.health-heading,.rune-count{display:flex;justify-content:space-between;align-items:center;font-family:Arial,sans-serif;font-size:9px;letter-spacing:.12em;color:#d2c9b6}.health-heading b,.rune-count b{color:#f4e4c0;font-size:11px}.health-track,.boss-track{height:6px;background:#ffffff20;margin:9px 0 10px;overflow:hidden}.health-track i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#7c2e2b,#d36b50);transition:width .2s}.rune-count{padding-top:8px;border-top:1px solid #ffffff1b;color:#b7ad98}.rune-count b{color:var(--gold2)}.toast{position:absolute;top:24%;left:50%;transform:translate(-50%,-8px);padding:11px 18px;text-align:center;background:#06100edb;border-top:1px solid #d1ae6b88;border-bottom:1px solid #d1ae6b88;color:#f0dba9;font-size:11px;letter-spacing:.16em;opacity:0;transition:.25s;text-shadow:0 2px 8px #000;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}.boss-card{position:absolute;top:17%;left:50%;transform:translateX(-50%);width:min(320px,65vw);text-align:center;padding:10px 14px;background:#090b0bd9;border:1px solid #b76a4d66;color:#f0d6b2;font-family:Arial,sans-serif;font-size:9px;letter-spacing:.2em}.boss-track{margin:9px 0 0;height:7px;border:1px solid #b76a4d55}.boss-track i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#762c27,#df6047)}.bottom-hint{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font-family:Arial,sans-serif;font-size:8px;letter-spacing:.15em;color:#e1d8c4;text-shadow:0 2px 5px #000;white-space:nowrap}.bottom-hint span{color:var(--gold);padding:0 7px}.modal-screen{z-index:15;background:rgba(2,7,7,.66);backdrop-filter:blur(7px);padding:18px}.modal-card{width:min(510px,100%);padding:34px 30px;text-align:center;background:linear-gradient(145deg,rgba(21,31,28,.97),rgba(5,11,11,.98));border:1px solid #c9a96c66;box-shadow:0 24px 90px #000b;animation:arrive .45s ease both}.modal-sigil{font-size:40px;color:var(--gold);margin-bottom:10px;text-shadow:0 0 24px #c9a96c77}.modal-card p:not(.eyebrow){font-size:13px;line-height:1.8;color:#c4c3b6}.chapter-objectives{display:grid;gap:9px;margin:20px auto 4px;padding:15px 12px;border-top:1px solid #c9a96c44;border-bottom:1px solid #c9a96c44;color:#d8c69f;font-family:Arial,sans-serif;font-size:9px;letter-spacing:.14em}.modal-card .primary-button{margin-top:22px}.secondary-button{margin-top:14px;padding:10px 15px;background:transparent;border:0;color:#a7a898;font-family:Arial,sans-serif;font-size:9px;letter-spacing:.16em;cursor:pointer}.touch-controls{display:none;position:absolute;left:14px;right:14px;bottom:16px;justify-content:space-between;align-items:end;pointer-events:none}.touch-controls button{pointer-events:auto;width:42px;height:42px;border:1px solid #d8c28b88;border-radius:50%;background:#08110fd9;color:#f4e7c9;font-size:14px;touch-action:none}.touch-pad>button{display:block;margin:0 auto 4px}.touch-pad>div{display:flex;gap:4px}.touch-actions{display:flex;gap:6px;align-items:end}.touch-actions button{width:53px;height:53px;font-family:Arial,sans-serif;font-size:8px;letter-spacing:.04em}.touch-actions .attack-touch{width:65px;height:65px;background:#55251fdc;border-color:#db7963}.error-text{color:#f1b6a9}@keyframes arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@media(max-width:650px){.start-content{padding:18px 10px}.start-content h1{font-size:clamp(38px,11vw,62px)}.intro-copy{font-size:12px;line-height:1.65;max-width:340px}.start-footer{bottom:10px}.hud-top{padding:12px}.game-brand strong{font-size:9px}.game-brand small,.objective small{font-size:7px}.mini-sigil{font-size:23px}.objective{padding:4px 7px}.objective strong{font-size:10px;max-width:130px}.health-card{top:72px;left:12px;width:185px;padding:9px 10px}.health-heading,.rune-count{font-size:8px}.bottom-hint{display:none}.touch-controls{display:flex}.boss-card{top:19%}.toast{top:30%;max-width:90%;font-size:9px;white-space:normal}.modal-card{padding:26px 20px}.modal-card h2{font-size:26px}}@media(max-height:650px){.start-content{padding-top:8px;padding-bottom:8px}.sigil{font-size:32px}.start-content h1{font-size:clamp(32px,7vh,56px)}.title-rule{margin:12px auto}.intro-copy{line-height:1.5}.primary-button{margin-top:15px;padding:12px}.start-note{margin-top:10px}}

/* Trilha e acabamento da edição aprimorada */
.sound-button{margin:14px auto 0;padding:9px 15px;background:#08110fc9;border:1px solid #c9a96c77;color:#e8d4a8;font:9px Arial,sans-serif;letter-spacing:.15em;cursor:pointer}.sound-button[aria-pressed="true"]{background:#8d6b38;color:#10130f}.sound-hud{position:absolute;right:22px;bottom:18px;pointer-events:auto;border:1px solid #c9a96c88;background:#07100fc9;color:#f0d9a3;width:38px;height:38px;border-radius:50%;font-size:18px;cursor:pointer;z-index:3}.modal-card{backdrop-filter:blur(12px);border-radius:3px}.primary-button{border-radius:2px}.touch-controls button{box-shadow:0 4px 18px #0008;backdrop-filter:blur(5px)}@media(max-width:650px){.sound-hud{right:12px;bottom:150px;width:34px;height:34px}.sound-button{font-size:8px}}
