*{box-sizing:border-box}
html{color-scheme:dark;scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:#110e19;color:#f4edf4;font:16px/1.8 system-ui,-apple-system,'Segoe UI',sans-serif}
a{color:#f6c363}
main{max-width:1120px;margin:auto;padding:0 28px}
.top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;font-size:14px}
.home{display:flex;gap:9px;align-items:center;color:#eee;line-height:1.5}
.home img{flex:none}
.languages{display:flex;gap:14px;flex-wrap:wrap;flex-shrink:0}
.languages a{color:#ddd;text-decoration:none;white-space:nowrap;min-height:36px;display:flex;align-items:center}
.languages [aria-current]{color:#ffc46c;text-decoration:underline;text-underline-offset:6px}
.hero{position:relative;isolation:isolate;min-height:580px;display:flex;align-items:center;border:1px solid #6a4b38;background:linear-gradient(90deg,#16111df5 0%,#21131dd9 48%,#24121e22),url('title_back.jpg') center/cover;box-shadow:0 26px 60px #0005;padding:36px 40px;overflow:hidden}
.hero-copy{z-index:2;width:65%;position:relative}
.logo{display:block;width:min(100%,330px);height:92px;object-fit:contain;object-position:left}
.eyebrow{font-weight:700;font-size:14px;letter-spacing:.06em;color:#ffc277;margin:15px 0 10px}
h1{font-size:clamp(28px,3.4vw,45px);line-height:1.4;margin:12px 0 20px;letter-spacing:.01em;text-shadow:0 3px 6px #000}
.lead{max-width:540px;margin:20px 0 12px;text-shadow:0 2px 4px #000}
.hero-note{font-size:15px;color:#ffdaa1;margin:12px 0}
.scope{font-size:15px;color:#e5dbe9;margin-bottom:0}
.scope span{color:#c6b6cc;font-size:14px}
.character{position:absolute;width:100%;right:-32%;height:110%;bottom:0;pointer-events:none;z-index:1;filter:drop-shadow(-10px 5px 20px #0008)}
.character img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:22px}
.button{display:inline-flex;align-items:center;justify-content:center;padding:13px 23px;border:1px solid #997744;border-radius:6px;text-decoration:none;font-weight:700;line-height:1.5;background:#1a1424;color:#fff;min-height:52px;text-align:center}
.primary{background:#f3b64c;color:#20120a;border-color:#ffcd71;box-shadow:0 4px 0 #7b4317}
.hero .primary{min-width:230px;font-size:21px}
.learn-link{font-size:15px;min-height:44px;display:inline-flex;align-items:center;text-underline-offset:5px}
.button:hover{filter:brightness(1.12)}
a:focus-visible,button:focus-visible{outline:3px solid #fff;outline-offset:5px}
section{padding:52px 0;border-bottom:1px solid #36273c}
h2{font-size:clamp(25px,3vw,34px);line-height:1.5;margin:0 0 24px;text-wrap:balance}
h3{font-size:21px;line-height:1.5;margin:0 0 12px;text-wrap:balance}
section p{overflow-wrap:anywhere}
.gameplay{margin:28px 0 0;border:1px solid #6a4b38;box-shadow:0 20px 50px #0006;background:#1c1423}
.gameplay img{display:block;width:100%;height:auto}
.gameplay figcaption{padding:14px 20px;color:#e3d7e8;font-size:15px;line-height:1.7}
.steam-description{max-width:780px;margin:auto}
.steam-description h3{margin-top:34px}
.steam-description p{margin:0 0 10px;color:#e3d7e8}
.steam-media{display:block;width:100%;max-width:640px;height:auto;margin:18px 0 26px;background:#000}
.steam-top{position:absolute;top:20px;right:20px;z-index:3;gap:.55em;min-height:44px;padding:8px 13px;background:#101c2aef;color:#e2f5ff;border-color:#627f98;font-size:14px}
.steam-promo{display:grid;grid-template-columns:114px 1fr auto;gap:clamp(9px,2.5vw,22px);width:min(100%,510px);min-height:138px;margin:34px auto 0;padding:0 20px 0 10px;border-color:#78acd0;background:linear-gradient(112deg,#15263e,#254967 63%,#1b344b);color:#f5fbff;box-shadow:inset 0 1px 0 #c6e5fa33,0 4px 0 #0c1726;text-align:left}
.steam-dwarf{position:relative;display:block;width:114px;height:136px;overflow:hidden}
.steam-dwarf img{position:absolute;top:0;left:-31px;width:136px;height:136px}
.steam-dwarf img.steam-dwarf-front{left:-19px}
.steam-promo-label{font-size:clamp(16px,2.7vw,23px);overflow-wrap:anywhere;text-wrap:balance}
.steam-promo-arrow{font-size:22px;color:#b8e7ff}
footer{text-align:center;padding:30px}
@media(max-width:760px){
 main{padding:0 18px}
 .top{display:block;padding:14px 0}
 .languages{margin-top:7px;gap:18px}
 .hero{padding:65px 24px 24px;min-height:0;align-items:flex-start}
 .steam-top{top:10px;right:10px}
 .hero-copy{width:100%}
 .logo{height:68px;width:min(88%,280px)}
 .eyebrow{margin:12px 0 6px;letter-spacing:.02em}
 h1{font-size:clamp(27px,6vw,38px);margin:10px 0 16px;line-height:1.4}
 .hero .actions{gap:8px;margin-top:12px;align-items:flex-start;flex-direction:column}
 .hero .primary{min-width:210px;font-size:20px;padding-block:12px}
 .learn-link{min-height:34px;font-size:14px}
 .hero-note{font-size:14px;margin:10px 0}
 .lead{margin-top:16px;max-width:95%}
 .character{width:160%;height:68%;right:-78%;bottom:0;opacity:.3;z-index:0}
 .hero:after{content:'';position:absolute;inset:0;background:linear-gradient(#110e1911,#110e1911 35%,#110e1955);z-index:0}
 .gameplay{margin-top:22px}
 .gameplay figcaption{padding:12px 15px;font-size:14px}
 section{padding:36px 0}
}
@media(max-width:360px){
 main{padding-inline:12px}
 .hero{padding:65px 18px 19px}
 .logo{height:58px}
 h1{font-size:26px}
 .hero .primary{min-width:200px}
 .languages{gap:14px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

html.game-open { overflow: hidden; touch-action: none; overscroll-behavior: none; }
#game-overlay[hidden] { display: none; }
#game-overlay {
 position: fixed; top: var(--game-view-top,0px); left: var(--game-view-left,0px);
 width: var(--game-view-width,100%); height: var(--game-view-height,100%);
 height: min(var(--game-view-height,100dvh),100dvh); z-index: 100; background: #000;
 touch-action: none;
}
#game-overlay iframe { display: block; width: 100%; height: 100%; border: 0; }
#game-overlay-close {
 position: absolute; top: max(2px, env(safe-area-inset-top)); right: max(2px, env(safe-area-inset-right));
 z-index: 1; width: 36px; height: 32px; padding: 0; color: #fff; background: #24202c;
 border: 1px solid #6c586f; border-radius: 4px; font: 23px/1 system-ui; cursor: pointer;
}
