:root{color-scheme:dark;--bg:#0d0c0b;--panel:#191513;--panel2:#211b17;--line:#48382b;--gold:#e2b979;--text:#f1e8dc;--muted:#b5a698;--red:#a84731;--font:'Inter',Arial,sans-serif;--title:'Cinzel',Georgia,serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:75px}body{margin:0;background:var(--bg);color:var(--text);font:18px/1.48 var(--font);overflow-x:hidden}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--gold);outline-offset:3px}img{max-width:100%;display:block}h1,h2,h3,p{margin-top:0}h2,h3{font-family:var(--title);line-height:1.75;overflow-wrap:anywhere}h2{font-size:clamp(1.05rem,2.4vw,1.85rem)}h3{font-size:clamp(.78rem,1.3vw,1.05rem)}em{font-style:normal;color:var(--gold)}.wrap{width:min(1120px,calc(100% - 36px));margin-inline:auto}.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.grain{position:fixed;inset:0;pointer-events:none;z-index:30;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)'/%3E%3C/svg%3E")}.site-header{position:sticky;top:0;z-index:20;background:#100e0deF;border-bottom:1px solid #453426;backdrop-filter:blur(16px)}.nav{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:9px;font:clamp(.58rem,1vw,.77rem)/1.7 var(--title);white-space:nowrap}.brand small{font-size:.65em;color:var(--gold)}.brand-rune{color:var(--gold);font:26px var(--font)}.nav-links{display:flex;align-items:center;gap:clamp(10px,1.6vw,24px)}.nav-links a{font-size:16px;color:var(--muted)}.nav-links a:hover{color:var(--gold)}.nav-links .nav-play{background:var(--gold);color:#1a110c;padding:9px 15px;border-radius:6px;font-weight:700}.menu-toggle{display:none;background:none;border:1px solid var(--line);border-radius:6px;color:var(--gold);padding:6px 12px;font-size:23px}.hero{position:relative;isolation:isolate;overflow:hidden;text-align:center;padding:65px 0 82px;background:radial-gradient(ellipse at 50% 34%,#49251d66,transparent 55%),linear-gradient(180deg,#17100f,var(--bg))}.hero-inner{display:flex;align-items:center;flex-direction:column;gap:16px}.hero-aura{position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 50% 45%,#7c342224,transparent 45%)}.hero-logo{width:min(600px,95%);margin:0 auto}.hero-logo img{width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 14px 25px #0009) drop-shadow(0 0 28px #a3432c30)}.eyebrow,.chapter-index,.side-caption,.card-counter{font-size:14px;color:var(--gold);letter-spacing:.08em}.hero-headline{font:clamp(.95rem,2.1vw,1.5rem)/1.8 var(--title);margin:0}.hero-lead{color:var(--muted);font-size:19px;margin:0}.hero-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:11px 22px;border-radius:7px;font-weight:700;border:1px solid var(--line);transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn-primary{background:var(--gold);color:#21160d;border-color:var(--gold)}.btn-ghost{background:#211914a8}.hero-bottom{display:none}.chapter{padding:clamp(58px,8vw,105px) 0;border-top:1px solid #2f241d}.story{background:#12100e}.story-layout{display:grid;grid-template-columns:210px 1fr;gap:50px;align-items:center}.story-side{border-right:1px solid var(--line);min-height:250px;display:flex;flex-direction:column;justify-content:space-between}.large-glyph{font-size:100px;color:#6c4c35}.story-copy{max-width:700px}.story-copy p:not(.eyebrow),.creators-heading p,.section-intro,.play-heading>p,.sidebar-heading p{color:var(--muted)}.story-copy blockquote{border-left:3px solid var(--gold);padding:9px 0 9px 18px;margin:22px 0 0;color:var(--gold)}.rule{width:90px;height:1px;background:var(--line);margin:18px 0}.section-top{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:26px}.section-intro{max-width:380px}.world-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.world-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden}.world-art{height:155px;display:grid;place-items:center;font-size:76px;background:radial-gradient(circle at 50% 90%,#773f3055,transparent 60%),linear-gradient(130deg,#33241f,#151312)}.world-art-two{background:radial-gradient(circle,#45533d55,transparent 70%),#171c18}.world-art-three{background:radial-gradient(circle,#6d402b55,transparent 70%),#1b1513}.world-card-copy{padding:22px}.world-card-copy p{color:var(--muted);margin:0}.concept-note{font-size:13px;color:var(--muted);margin:15px 0 0}.kingdom-section{background:#100f0e}.atlas{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:var(--panel)}.atlas-bar,.atlas-discovery-bar,.atlas-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 17px;border-bottom:1px solid var(--line);flex-wrap:wrap}.atlas-status{color:var(--gold);font-weight:700}.atlas-bar small{display:block;color:var(--muted)}.atlas-tools,.atlas-filters{display:flex;gap:7px;flex-wrap:wrap}.atlas-tools button,.atlas-filter,.atlas-reset-progress,.dialog-back,.game-reset,.battle-controls button{background:#2b211b;color:var(--text);border:1px solid var(--line);border-radius:6px;min-height:39px;padding:7px 12px}.atlas-tools button:hover,.atlas-filter:hover,.atlas-filter.active{background:#59412e;border-color:var(--gold)}.atlas-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#100e0d;border-radius:6px;padding:0 12px;flex:1 1 250px}.atlas-search input{width:100%;background:none;border:0;outline:0;color:var(--text);padding:10px 0;min-width:0;font-size:16px}.atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;min-height:490px}.atlas-viewport{position:relative;min-height:490px;overflow:hidden;touch-action:none;cursor:grab;background:#211d17}.atlas-viewport:active{cursor:grabbing}.atlas-world{position:absolute;left:0;top:0;width:2250px;height:1350px;transform-origin:0 0;will-change:transform}.atlas-art{width:2250px;height:1350px;max-width:none;user-select:none;pointer-events:none}.map-pin{position:absolute;left:var(--px);top:var(--py);transform:translate(-50%,-50%);width:43px;height:43px;border:2px solid #e6bc7e;background:#201810e8;color:#ffe0a6;border-radius:50%;font-size:24px;box-shadow:0 3px 15px #0009}.map-pin:hover,.map-pin:focus-visible{background:#6c3926;z-index:2}.map-pin.npc-pin{border-color:#a4bd94}.map-pin.danger-pin{border-color:#d06e63}.map-pin.forest-pin{border-color:#77a48d}.map-pin.is-hidden{display:none}.map-pin.is-discovered:after{content:'✓';position:absolute;right:-5px;bottom:-6px;font-size:13px;background:#2b6b4a;border-radius:50%;width:16px;height:16px}.atlas-corner{position:absolute;left:12px;bottom:10px;color:#fff;background:#100c0bba;padding:5px 10px;font-size:12px;pointer-events:none}.atlas-sidebar{padding:20px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:15px;min-width:0}.sidebar-heading h3{margin-bottom:8px}.traveler-status{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;background:#100e0d;border:1px solid var(--line);border-radius:7px}.traveler-status strong{color:var(--gold)}.journal-title,.inventory-title{font-weight:700;color:var(--gold)}.atlas-journal{max-height:170px;overflow:auto;font-size:15px;color:var(--muted)}.atlas-journal p{margin:0 0 8px}.atlas-inventory{display:flex;flex-wrap:wrap;gap:7px}.atlas-inventory span{background:#34271e;border:1px solid var(--line);padding:4px 8px;border-radius:5px;font-size:14px}.atlas-reset-progress{margin-top:auto}.atlas-bottom{justify-content:flex-start;border-bottom:0;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.legend-dot{display:inline-block;width:9px;height:9px;background:var(--gold);border-radius:50%;margin-right:5px}.legend-dot.npc{background:#a4bd94}.legend-dot.forest{background:#77a48d}.legend-dot.danger{background:#d06e63}.atlas-coords{margin-left:auto}.atlas-hint,.play-disclaimer{font-size:15px;color:var(--muted);margin:14px 0 0}.map-dialog{width:min(530px,calc(100% - 24px));max-height:min(90dvh,850px);overflow:auto;background:#1a1512;color:var(--text);border:1px solid #7d5b3d;border-radius:12px;padding:0;box-shadow:0 25px 100px #000d}.map-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:12px;top:10px;z-index:1;background:#100e0ddc;color:#fff;border:1px solid var(--line);border-radius:6px;font-size:26px;width:40px;height:40px}.dialog-scene{position:relative;height:145px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 80%,#8e49375c,transparent 50%),linear-gradient(#31241e,#100d0c)}.scene-sun{position:absolute;width:110px;height:110px;border-radius:50%;background:#a4563740;filter:blur(15px)}.scene-icon{z-index:1;font-size:80px}.scene-kicker{position:absolute;bottom:8px;left:18px;color:var(--gold)}.dialog-content{padding:25px}.dialog-content h3{margin:8px 0 14px}.dialog-content p{color:var(--muted)}.npc-speech{border-left:2px solid var(--gold);padding:7px 12px;color:var(--gold);margin:12px 0}.dialog-quest{display:grid;gap:4px;padding:12px;background:#100d0b;border:1px solid var(--line);border-radius:6px}.dialog-quest span{font-size:13px;color:var(--muted)}.map-action-options{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.map-action-options button{border:1px solid var(--line);background:#33261e;color:var(--text);padding:9px 12px;border-radius:6px}.dialog-feedback{min-height:24px}.dialog-back{background:var(--gold);color:#21160d;width:100%;font-weight:700}.creators{background:#12100e}.creators-layout{display:grid;grid-template-columns:1fr 1fr;gap:45px}.team-list{padding:0;margin:0;list-style:none;counter-reset:team}.team-list li{counter-increment:team;padding:11px 0;border-bottom:1px solid var(--line)}.team-list li:before{content:counter(team,decimal-leading-zero) ' / ';color:var(--gold)}.play-heading{text-align:center;max-width:650px;margin:0 auto 28px}.demo-tag{font-size:14px;color:var(--gold)}.game-shell{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#171310}.game-topbar,.game-footer{padding:13px 18px;background:#221a15;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.game-top-title{color:var(--gold);font-weight:700}.game-top-title span,.game-online{color:var(--muted)}.game-top-actions{display:flex;align-items:center;gap:12px}.game-stage{min-height:450px;position:relative;background:radial-gradient(ellipse at 50% 30%,#4a2c2466,transparent 65%),#100e0d}.game-screen{min-height:450px;padding:32px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.game-screen[hidden]{display:none!important}.login-scene{position:absolute;inset:0;overflow:hidden;pointer-events:none;opacity:.32}.moon{position:absolute;width:110px;height:110px;left:50%;top:30px;transform:translateX(-50%);border-radius:50%;background:#b87856;filter:blur(3px)}.castle{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:250px;height:200px;background:#090908;clip-path:polygon(0 100%,0 50%,15% 50%,15% 25%,25% 25%,25% 50%,38% 50%,38% 0,50% 20%,62% 0,62% 50%,75% 50%,75% 25%,85% 25%,85% 50%,100% 50%,100% 100%)}.login-panel,.finale-panel{position:relative;z-index:1;width:min(420px,100%);padding:22px;background:#191410df;border:1px solid var(--line);border-radius:9px}.login-panel h3{color:var(--gold)}.login-panel p,.login-panel small{color:var(--muted)}.login-panel form{display:grid;text-align:left;gap:9px;margin:18px 0}.login-panel input{background:#100d0c;border:1px solid #6a4a34;color:var(--text);padding:12px;border-radius:6px;min-width:0;font-size:17px}.game-main-btn{width:100%;margin-top:7px}.stage-heading{max-width:650px}.stage-heading p{color:var(--muted)}.class-list{width:min(850px,100%);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.class-card{background:#211913;border:1px solid var(--line);border-radius:9px;color:var(--text);padding:22px 10px;display:flex;align-items:center;flex-direction:column;gap:10px;min-height:185px}.class-card:hover{border-color:var(--gold);background:#36261c}.class-symbol{font-size:42px;color:var(--gold)}.class-card strong{font-family:var(--title);font-size:11px;line-height:1.6}.class-card span:not(.class-symbol){color:var(--muted)}.class-card small{color:var(--gold)}#screen-battle{padding:0;justify-content:stretch}.battle-scene{position:relative;width:100%;min-height:220px;background:radial-gradient(circle at 50% 65%,#753d3266,transparent 35%),linear-gradient(#241914,#100e0d);overflow:hidden}.battle-topline{display:flex;justify-content:space-between;gap:10px;padding:15px;color:var(--gold);font-size:14px}.enemy-visual{font-size:105px;color:#d7b187;text-shadow:0 0 30px #b7513b;line-height:1.4}.battle-silhouette{position:absolute;bottom:-35px;left:12%;font-size:100px;color:#090807}.battle-ui{width:100%;padding:20px;display:grid;gap:18px}.battle-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stat-label{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.stat-block small{color:var(--muted)}.hp-track{height:12px;background:#44332b;border:1px solid #74523d;border-radius:5px;overflow:hidden;margin:6px 0}.hp-fill{width:100%;height:100%;background:#80a96c;transition:width .3s}.enemy-fill{background:#b35a47}.battle-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px}.battle-narrative{color:var(--gold);flex:1}.battle-controls{display:flex;gap:8px;flex-wrap:wrap}.battle-controls button:hover{border-color:var(--gold)}.battle-controls button:disabled{opacity:.4;cursor:not-allowed}.finale-symbol{font-size:70px;color:var(--gold)}.finale-panel p{color:var(--muted)}.game-footer{font-size:13px;color:var(--muted)}.footer{border-top:1px solid var(--line);padding:25px 0}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.footer p{margin:0;color:var(--muted);font-size:13px}.footer a:last-child{font-size:14px;color:var(--gold)}
@media(max-width:900px){.nav-links{gap:10px}.nav-links a{font-size:14px}.atlas-layout{grid-template-columns:minmax(0,1fr) 235px}.atlas-sidebar{padding:14px}.section-top{align-items:start;flex-direction:column;gap:0}.section-intro{max-width:700px}.story-layout{grid-template-columns:125px 1fr;gap:22px}}
@media(max-width:700px){.menu-toggle{display:block}.nav-links{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:stretch;padding:12px 18px 18px;background:#15110ff9;border-bottom:1px solid var(--line)}.nav-links.is-open{display:flex}.nav-links a{font-size:17px;padding:9px 10px}.nav-links .nav-play{text-align:center}.hero{padding:42px 0 60px}.hero-logo{width:min(500px,100%)}.story-layout,.creators-layout{grid-template-columns:1fr;gap:20px}.story-side{display:none}.world-cards{grid-template-columns:1fr}.world-card{display:grid;grid-template-columns:120px 1fr}.world-art{height:100%;min-height:125px;font-size:52px}.world-card-copy{padding:18px}.atlas-layout{grid-template-columns:1fr}.atlas-viewport{min-height:360px}.atlas-sidebar{border-left:0;border-top:1px solid var(--line)}.atlas-bottom{gap:9px}.atlas-coords{display:none}.class-list{grid-template-columns:1fr}.class-card{min-height:0;display:grid;grid-template-columns:48px 1fr;gap:3px 12px;text-align:left;padding:14px}.class-symbol{grid-row:span 3;font-size:37px}.battle-bottom{flex-direction:column;align-items:stretch}.battle-controls{justify-content:center}.battle-controls button{flex:1}.game-stage,.game-screen{min-height:410px}.game-top-title span{display:none}}
@media(max-width:420px){.wrap{width:calc(100% - 26px)}.brand{font-size:.54rem}.hero-headline{font-size:.85rem}.hero-lead{font-size:17px}.hero-actions{width:100%}.hero-actions .btn{width:100%}.atlas-discovery-bar{padding:12px}.atlas-filters{width:100%;justify-content:center}.atlas-filter{font-size:14px;padding:7px 9px}.atlas-viewport{min-height:310px}.atlas-corner{font-size:10px}.battle-stats{gap:10px}.stat-label{font-size:14px}.game-topbar{padding:10px}.game-online{display:none}.game-footer span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}


/* V4 — RPG clean: contrast, rhythm, accessibility and responsive polish */
:root{--bg:#100e0d;--panel:#1c1815;--panel2:#241e19;--line:#59483a;--gold:#f0c98a;--text:#fff6e9;--muted:#d3c5b6;--red:#bd654b;--title:'Inter',Arial,sans-serif;--font:'Inter',Arial,sans-serif}
html{scroll-padding-top:82px}body{font-size:clamp(17px,1.15vw,19px);line-height:1.55;letter-spacing:.008em;-webkit-font-smoothing:antialiased}h2,h3{font-family:var(--title);font-weight:700;line-height:1.13;letter-spacing:.012em;overflow-wrap:normal}h2{font-size:clamp(2rem,4vw,3.35rem);max-width:22ch}h3{font-size:clamp(1.3rem,2vw,1.75rem)}p{line-height:1.55}button,input{font-size:inherit}button{touch-action:manipulation}button:disabled{cursor:not-allowed}.wrap{width:min(1140px,calc(100% - 48px))}.grain{opacity:.012}.site-header{background:rgba(17,14,12,.95);border-bottom-color:#44372c}.nav{min-height:76px}.brand{font-family:var(--title);font-size:clamp(15px,1.5vw,20px);font-weight:700;line-height:1.1;letter-spacing:.025em}.brand-rune{font-size:25px}.nav-links a{font-size:17px;color:#e5d6c6}.nav-links a:hover,.nav-links a:focus-visible{color:var(--gold)}.nav-links .nav-play{background:var(--gold);color:#21150c;font-weight:700}.hero{padding:clamp(44px,7vw,88px) 0 clamp(70px,8vw,110px);background:radial-gradient(ellipse at 50% 30%,#572c224f,transparent 55%),#100e0d}.hero-inner{gap:18px}.hero-logo{width:min(560px,100%)}.hero-logo img{filter:drop-shadow(0 18px 32px #0009) drop-shadow(0 0 22px #a3472b25)}.hero .eyebrow{font-size:13px;letter-spacing:.1em}.hero-headline{font:700 clamp(25px,3.3vw,43px)/1.1 var(--title);max-width:760px;letter-spacing:.02em}.hero-lead{font-size:clamp(18px,1.8vw,22px);color:var(--text)}.hero-actions{margin-top:12px}.btn{min-height:50px;padding:12px 23px;border-radius:7px;font-size:18px}.btn-ghost{background:#2a211b;border-color:#76614e}.btn:hover{filter:brightness(1.08)}.chapter{padding:clamp(64px,7vw,100px) 0;border-top-color:#342b25}.story,.creators{background:#151210}.story-layout{grid-template-columns:150px minmax(0,1fr);gap:48px}.story-side{min-height:220px}.large-glyph{font-size:80px}.story-copy{max-width:720px}.story-copy p:not(.eyebrow),.creators-heading p,.section-intro,.play-heading>p,.sidebar-heading p{color:var(--muted)}.story-copy p:not(.eyebrow){max-width:66ch}.story-copy blockquote{font-size:clamp(19px,2vw,24px);line-height:1.35}.eyebrow,.chapter-index,.side-caption,.card-counter{font-size:14px;letter-spacing:.04em;font-weight:700}.section-top{align-items:center;gap:32px;margin-bottom:32px}.section-intro{max-width:420px;font-size:19px}.world-cards{gap:18px}.world-card{border-color:#584739;border-radius:12px;background:#201a16;transition:transform .2s,border-color .2s}.world-card:hover{transform:translateY(-3px);border-color:#a78359}.world-art{height:130px;font-size:66px}.world-card-copy{padding:22px}.world-card-copy h3{margin-bottom:9px}.world-card-copy p{font-size:17px}.concept-note{display:none}.kingdom-section{background:#110f0e}.atlas{border-color:#66513e;border-radius:12px}.atlas-bar,.atlas-discovery-bar{padding:16px 20px}.atlas-bar{background:#251d18}.atlas-status{font-size:19px}.atlas-tools button,.atlas-filter,.atlas-reset-progress,.dialog-back,.game-reset,.battle-controls button{min-height:44px;border-color:#7a624d;font-weight:700;color:#fff3e4}.atlas-tools button:hover,.atlas-filter:hover,.atlas-filter.active{background:#765237;color:#fff}.atlas-search{background:#130f0d;border-color:#78614c}.atlas-search input{font-size:18px;color:#fff}.atlas-search input::placeholder{color:#bdac9c}.atlas-layout{grid-template-columns:minmax(0,1fr) 300px}.atlas-viewport{min-height:520px}.atlas-sidebar{padding:22px;gap:17px;background:#1d1815}.sidebar-heading h3{font-size:24px}.sidebar-heading p{font-size:17px}.atlas-journal{font-size:17px;max-height:190px}.atlas-inventory span{font-size:16px}.atlas-hint,.play-disclaimer{font-size:16px}.atlas-corner{font-size:13px;background:#100c0be8}.map-dialog{border-color:#99714e}.dialog-content{padding:26px}.dialog-content h3{font-size:30px}.dialog-content p{color:#e4d4c5}.map-action-options button{min-height:44px;font-weight:700}.creators-layout{gap:60px}.team-list li{font-size:18px;padding:13px 0}.play-heading{max-width:740px;margin-bottom:35px}.play-heading h2{margin-inline:auto}.game-shell{border-color:#755941}.game-topbar{background:#251c17}.game-stage{min-height:480px}.game-screen{min-height:480px}.login-panel,.finale-panel{background:#211913f2;border-color:#8b6a4b;padding:28px}.login-panel h3,.stage-heading h3{font-size:clamp(25px,3vw,36px)}.login-panel p,.login-panel small,.stage-heading p{color:#e0cfc0}.login-panel input{border-color:#977454;background:#110d0b;color:#fff;font-size:19px;min-height:48px}.class-card{background:#2a201a;border-color:#745840}.class-card strong{font:700 24px/1.15 var(--title)}.class-card span:not(.class-symbol){font-size:17px;color:#e2d2c2}.class-card small{font-size:16px}.class-card:hover{border-color:var(--gold)}.battle-topline{font-size:16px}.battle-narrative{font-size:19px}.stat-label{font-size:18px}.hp-track{height:15px}.game-footer{font-size:14px}.footer{background:#100e0d}.footer p{color:#d0bfae}
@media(max-width:980px){.nav-links{gap:12px}.nav-links a{font-size:15px}.atlas-layout{grid-template-columns:minmax(0,1fr) 265px}.atlas-sidebar{padding:16px}.story-layout{grid-template-columns:100px 1fr;gap:24px}}
@media(max-width:760px){.menu-toggle{display:block;min-width:46px;min-height:44px}.nav-links{position:absolute;top:100%;left:0;right:0;display:none;flex-direction:column;align-items:stretch;padding:12px 22px 20px;background:#17120ffb;border-bottom:1px solid var(--line);box-shadow:0 15px 25px #0008}.nav-links.is-open{display:flex}.nav-links a{font-size:19px;padding:10px 12px}.hero-logo{width:min(510px,100%)}.hero{padding:38px 0 66px}.story-layout,.creators-layout{grid-template-columns:1fr;gap:22px}.story-side{display:none}.section-top{flex-direction:column;align-items:start;gap:6px}.section-intro{max-width:70ch}.world-cards{grid-template-columns:1fr}.world-card{display:grid;grid-template-columns:110px minmax(0,1fr)}.world-art{height:100%;min-height:125px;font-size:48px}.atlas-layout{grid-template-columns:1fr}.atlas-viewport{min-height:clamp(320px,65vw,460px)}.atlas-sidebar{border-left:0;border-top:1px solid var(--line)}.class-list{grid-template-columns:1fr}.class-card{min-height:0;display:grid;grid-template-columns:50px 1fr;gap:5px 14px;text-align:left;padding:16px}.class-symbol{grid-row:span 3;font-size:40px}.battle-bottom{flex-direction:column;align-items:stretch}.battle-controls{justify-content:center}.battle-controls button{flex:1 1 110px}.game-top-title span{display:none}}
@media(max-width:480px){.wrap{width:calc(100% - 30px)}.nav{min-height:66px}.brand{font-size:15px}.hero .eyebrow{font-size:12px}.hero-headline{font-size:clamp(23px,7vw,32px)}.hero-lead{font-size:18px}.hero-actions{width:100%}.hero-actions .btn{width:100%}.chapter{padding:62px 0}.world-card{grid-template-columns:85px 1fr}.world-card-copy{padding:16px}.world-card-copy h3{font-size:21px}.atlas-bar,.atlas-discovery-bar{padding:13px}.atlas-filters{width:100%;justify-content:flex-start}.atlas-filter{font-size:15px;padding:8px 10px}.atlas-corner{font-size:11px}.atlas-viewport{min-height:320px}.game-topbar{padding:12px}.game-online{display:none}.game-screen{padding:24px 12px}.login-panel{padding:18px}.battle-stats{grid-template-columns:1fr;gap:12px}.battle-scene{min-height:185px}.enemy-visual{font-size:85px}.game-footer span:last-child{display:none}.footer-inner{justify-content:center;text-align:center}}
@media(max-width:350px){.brand{font-size:13px}.atlas-tools button{padding:7px 9px}.atlas-filter{font-size:13px}.hero-headline{font-size:22px}.class-card strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.world-card:hover,.btn:hover{transform:none}}

/* V5 — barra de rolagem medieval discreta, nativa e acessível */
html{scrollbar-color:#a46a3e #17110f;scrollbar-width:thin}
::-webkit-scrollbar{width:11px;height:9px}
::-webkit-scrollbar-track{background:#17110f}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#d5a46a,#885034);border:2px solid #17110f;border-radius:10px}
::-webkit-scrollbar-thumb:hover{background:#e6bb80}
::-webkit-scrollbar-corner{background:#17110f}

/* Acessibilidade, clareza e menos trabalho de pintura */
:focus-visible{outline:2px solid #f1c98d;outline-offset:3px}
img{max-width:100%}
.grain{pointer-events:none;opacity:.13}
@media(max-width:700px){::-webkit-scrollbar{width:6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* V6 — scrollbar real do navegador: tema bronze medieval */
html { scrollbar-width: thin; scrollbar-color: #b88746 #120d0b; }
::-webkit-scrollbar { width: 10px; height: 9px; }
::-webkit-scrollbar-track { background: #120d0b; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#e0b875,#a36a32,#6f4025); border: 2px solid #120d0b; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #e6b76c; }
::-webkit-scrollbar-corner { background: #120d0b; }

/* V7: atmosfera limpa — sem ruído visual ou sobreposição de textura */
:root{--bg:#100f10;--panel:#1b191a;--panel2:#252021;--line:#51443d;--gold:#f1cb91;--text:#fff6ed;--muted:#d2c5bb}
html,body{background:#100f10}
.grain{display:none!important}
.site-header{isolation:isolate;background:#131113!important;backdrop-filter:none!important;border-bottom:1px solid #48382f}
.site-header::before,.site-header::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1}
.site-header::before{background:linear-gradient(90deg,#121113,#211b1b 50%,#121113)}
.site-header::after{background:radial-gradient(ellipse 30% 110% at 28% 80%,#8c777321,transparent 80%),radial-gradient(ellipse 30% 110% at 72% 20%,#b2a09a14,transparent 80%);opacity:.7;animation:header-mist 18s ease-in-out infinite alternate}
@keyframes header-mist{from{transform:translateX(-2%);opacity:.4}to{transform:translateX(2%);opacity:.75}}
.brand{display:inline-flex;align-items:center;min-width:0;text-decoration:none}
.brand-mark{display:inline-flex;flex-direction:column;align-items:center;gap:0;line-height:1.1}
.brand-crown{width:43px;height:25px;display:block;flex-shrink:0}
.brand-wordmark{font-family:'Inter',Arial,sans-serif;font-size:clamp(15px,1.5vw,19px);font-weight:700;letter-spacing:.045em;color:#fff0d9;white-space:nowrap}
.brand-wordmark small{font-size:.7em;color:var(--gold)}
.site-header .nav{min-height:84px}
.footer .brand-crown{width:38px;height:22px}
.hero{background:linear-gradient(180deg,#171415 0%,#151214 55%,#100f10 100%);isolation:isolate;overflow:hidden}
.hero-aura{background:radial-gradient(ellipse 45% 37% at 50% 37%,#7d473025,transparent 80%)}
.smoke-layer{position:absolute;pointer-events:none;z-index:-1;left:-15%;width:130%;height:48%;border-radius:50%;opacity:.6;transform:translate3d(0,0,0);will-change:transform}
.smoke-layer-one{top:4%;background:radial-gradient(ellipse 35% 42% at 20% 50%,#a9a0a018,transparent 85%),radial-gradient(ellipse 35% 40% at 77% 45%,#a9a0a01a,transparent 85%);animation:mist-drift 24s ease-in-out infinite alternate}
.smoke-layer-two{bottom:2%;background:radial-gradient(ellipse 42% 35% at 58% 60%,#b3a7a512,transparent 85%),radial-gradient(ellipse 27% 37% at 10% 55%,#c1aaa511,transparent 85%);animation:mist-drift 30s ease-in-out infinite alternate-reverse}
@keyframes mist-drift{from{transform:translate3d(-2%,0,0)}to{transform:translate3d(2%,0,0)}}
.story,.creators,.kingdom-section,.world,.play-section{background:#131113}
.world,.kingdom-section,.play-section{background:#100f10}
.world-card,.atlas,.game-shell{background:#1b1717}
.world-art{background:linear-gradient(135deg,#302522,#191718)}
.world-art-two{background:linear-gradient(135deg,#252b25,#171918)}
.world-art-three{background:linear-gradient(135deg,#302521,#191718)}
.hero-logo img{filter:drop-shadow(0 16px 24px #0008)}
.chapter{border-top-color:#31292a}
@media(max-width:760px){.site-header .nav{min-height:74px}.brand-crown{width:36px;height:22px}.brand-wordmark{font-size:clamp(13px,3.5vw,17px)}.smoke-layer{opacity:.4}}
@media(max-width:350px){.brand-wordmark{font-size:12px}}
@media(prefers-reduced-motion:reduce){.site-header::after,.smoke-layer{animation:none!important;will-change:auto}}

/* Wordmark: maintain legible medieval serif lettering */
.brand-wordmark{font-family:Georgia,'Times New Roman',serif;font-weight:900;letter-spacing:1px}

/* Tipografia RPG legível: Cinzel nos títulos, Inter na interface */
:root { --font: 'Inter', Arial, sans-serif; --title: 'Cinzel', Georgia, serif; }
body, button, input, textarea, select { font-family: var(--font); }
h1, h2, h3, h4, .hero-headline, .brand, .brand-wordmark, .eyebrow, .chapter-index, .card-counter, .side-caption { font-family: var(--title); }
.brand-wordmark { font-family: var(--title) !important; font-weight: 800; letter-spacing: .04em; }
.brand-wordmark small { font-family: inherit; }
.nav-links a, .btn, .atlas-tools button, .atlas-filter, .game-reset, .battle-controls button, .class-card strong { font-family: var(--font); }


/* ===== TIPOGRAFIA DEFINITIVA — CROWN OF ASHES =====
   Regras finais para vencer estilos antigos e evitar fonte pixelada. */
:root { --font: 'Inter', Arial, sans-serif; --title: 'Cinzel', Georgia, serif; }
html body, html body p, html body li, html body span:not(.brand-wordmark):not(.class-symbol):not(.scene-icon):not(.enemy-ring),
html body button, html body input, html body textarea, html body select,
html body label, html body a:not(.brand), html body small {
  font-family: 'Inter', Arial, sans-serif;
}
html body h1, html body h2, html body h3, html body h4,
html body .hero-headline, html body .brand-wordmark,
html body .brand-wordmark small, html body .eyebrow,
html body .chapter-index, html body .card-counter, html body .side-caption {
  font-family: 'Cinzel', Georgia, serif !important;
  font-variant-ligatures: none;
}
html body .brand-wordmark { font-weight: 800; letter-spacing: .04em; }
html body h2, html body h3 { line-height: 1.18; }

/* Stable pointer gestures and GPU-accelerated atlas panning */
.atlas-viewport{touch-action:none;overscroll-behavior:contain;cursor:grab;user-select:none;-webkit-user-select:none}
.atlas-viewport:active{cursor:grabbing}
.atlas-world{transform-origin:0 0;will-change:transform;pointer-events:none}
.atlas-world .map-pin{pointer-events:auto;touch-action:none}
.atlas-art{pointer-events:none;user-select:none;-webkit-user-drag:none}


/* Crown of Ashes — tipografia final, RPG elegante e legível */
:root { --font: 'Manrope', Arial, sans-serif; --title: 'Marcellus', Georgia, serif; }
html, body, p, li, small, label, input, button, select, textarea, .nav-links a, .btn, .atlas-tools button, .atlas-filter, .game-reset, .battle-controls button, .class-card strong, .game-topbar, .atlas-sidebar, .map-dialog { font-family: 'Manrope', Arial, sans-serif !important; }
h1, h2, h3, h4, .hero-headline, .brand, .brand-wordmark, .eyebrow, .chapter-index, .card-counter, .side-caption, .game-ornament { font-family: 'Marcellus', Georgia, serif !important; }
.brand-wordmark { font-weight: 400 !important; letter-spacing: .055em; }
.brand-wordmark small { font-family: inherit !important; }
h1, h2, h3, h4, .hero-headline { line-height: 1.22; letter-spacing: .025em; }

/* v9 — map interaction and typography */
.atlas-world{width:2250px;height:1350px;transform-origin:top left;pointer-events:none;will-change:transform}
.atlas-world .map-pin{pointer-events:auto;cursor:pointer;touch-action:none}
.atlas-viewport{touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
.atlas-corner{pointer-events:none}
:root{--font:'Manrope',Arial,sans-serif;--title:'Almendra',Georgia,serif}
body,button,input,textarea,select{font-family:var(--font)!important}
h1,h2,h3,h4,.brand,.brand-wordmark,.hero-headline,.eyebrow,.chapter-index,.card-counter,.side-caption,.game-ornament{font-family:var(--title)!important}
.brand-wordmark{font-weight:700;letter-spacing:.045em}
.brand-wordmark small{font-family:inherit!important}

/* V10: marcadores clicaveis; imagem nao intercepta cliques */
.atlas-world{pointer-events:auto !important;}
.atlas-world .atlas-art{pointer-events:none !important;}
.atlas-world .map-pin{pointer-events:auto !important;position:absolute;z-index:5;cursor:pointer;}
.atlas-world .map-pin.is-hidden{pointer-events:none !important;}
.map-dialog[open]{z-index:9999;}


/* Projeto Integrador — documentação UX */
.ux-section{background:linear-gradient(180deg,#14100f,#1b1512 50%,#100d0c);scroll-margin-top:80px}.ux-intro{max-width:860px;margin-bottom:28px}.ux-intro h2{font-size:clamp(1.45rem,3.3vw,2.6rem);line-height:1.35}.ux-intro>p:last-of-type{color:var(--muted);max-width:760px}.ux-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.ux-index{display:flex;gap:8px;overflow-x:auto;padding:8px 0 20px;margin-bottom:12px;scrollbar-width:thin}.ux-index a{flex:none;border:1px solid #634a35;background:#261b15;border-radius:5px;padding:10px 14px;color:#f4d5a5;font-size:14px}.ux-index a:hover,.ux-index a:focus-visible{background:#49301f}.ux-panel{scroll-margin-top:95px;padding:clamp(20px,4vw,36px);margin:0 0 16px;border:1px solid #57402f;border-radius:12px;background:linear-gradient(125deg,#241b16,#15110f);box-shadow:0 14px 35px #0002}.ux-step{display:block;color:#e8ba78;font-size:13px;letter-spacing:.1em;font-weight:800;margin-bottom:12px}.ux-panel h3{font-size:clamp(1rem,2vw,1.35rem);line-height:1.4;margin-bottom:12px}.ux-panel p{color:#d2c5b8;line-height:1.65}.ux-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px}.ux-mini{padding:18px;background:#120f0d;border:1px solid #4e392b;border-radius:8px}.ux-mini strong{display:block;color:#f0c78d;font-size:14px;margin-bottom:8px}.ux-mini p{margin:0;font-size:15px}.ux-note{font-size:13px;color:#bba99a!important;margin-top:14px}.ux-flow{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap;margin:20px 0}.ux-flow>div{flex:1 1 150px;padding:16px 12px;border:1px solid #9a714a;background:#33251c;border-radius:7px;color:#f4d6a8;font-weight:800;font-size:13px;text-align:center}.ux-flow small,.ux-root small,.ux-branches small{display:block;color:#c8b6a7;font-weight:400;font-size:12px;margin-top:8px}.ux-flow>span{align-self:center;color:#e8ba78;font-size:22px}.ux-sitemap{padding:18px;border:1px dashed #795739;border-radius:8px;background:#130f0d}.ux-root{width:fit-content;margin:0 auto 25px;padding:14px 30px;background:#67412a;color:#fff0d4;text-align:center;border-radius:7px;font-weight:800;position:relative}.ux-root:after{content:'';position:absolute;top:100%;height:25px;width:1px;background:#9a714a;left:50%}.ux-branches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ux-branches>div{border:1px solid #76563a;background:#2b211b;border-radius:6px;padding:14px;text-align:center;color:#eec58a;font-size:13px;font-weight:800}.ux-wire-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.ux-wire{border:1px solid #796452;background:#d4cabe;color:#302c29;padding:12px;border-radius:7px;min-width:0}.ux-wire-label{font-size:11px;font-weight:900;letter-spacing:.06em;margin-bottom:10px}.ux-wire-top,.ux-wire-search{background:#77716b;color:#fff;padding:10px 8px;font-size:11px;font-weight:800;display:flex;justify-content:space-between;gap:8px}.ux-wire-top span{font-size:9px}.ux-wire-search{margin-top:8px;background:#a49a90;color:#2e2823}.ux-wire-hero{margin:10px 0;background:#b6aaa0;border:2px dashed #807368;min-height:155px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;font-size:10px}.ux-wire-hero b{font-size:15px}.ux-wire-hero small{font-size:10px}.ux-wire-hero i{font-style:normal;background:#5e5852;color:#fff;padding:8px}.ux-wire-columns{display:flex;gap:6px}.ux-wire-columns span{flex:1;background:#a49a90;padding:12px 4px;text-align:center;font-size:9px;font-weight:800}.ux-wire-map{height:155px;margin:10px 0;background:repeating-linear-gradient(25deg,#aaa197,#aaa197 18px,#c5baac 19px,#c5baac 38px);display:flex;align-items:center;justify-content:space-around;color:#4b3023;font-size:26px}.ux-wire-map span:nth-child(even){align-self:flex-start;margin-top:12px}.ux-wire-map span:nth-child(3n){align-self:flex-end;margin-bottom:15px}
@media(max-width:800px){.ux-grid,.ux-wire-grid{grid-template-columns:1fr}.ux-branches{grid-template-columns:repeat(2,minmax(0,1fr))}.ux-flow>span{display:none}.ux-panel{padding:20px}.ux-index a{font-size:13px}}
@media(prefers-reduced-motion:reduce){.ux-section *{scroll-behavior:auto}}
