/* Hammerheir site: dark forge slate, warm ember light, burnished bronze. Mobile first. */
:root {
  --bg: #191713; --bg-deep: #120f0c; --panel: #29231E; --panel-hi: #332A23; --border: #4A3B30; --border-hi: #6b4a24;
  --text: #E6D5B5; --muted: #B8A88F; --accent: #F6A247; --accent-deep: #B8651F; --glow: #FF8A2A; --gold: #f3d28c;
  --display: "Cinzel", "Trajan Pro", Georgia, serif; --body: "EB Garamond", Georgia, serif; --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px)); --max: 1180px; --radius: 6px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.55 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--panel); padding: 8px 14px; border: 1px solid var(--accent); border-radius: var(--radius); font: 500 14px var(--ui); }
.skip:focus { top: 12px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: .03em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 52px); color: var(--gold); }
h2 { font-size: clamp(24px, 4.2vw, 36px); color: var(--gold); }
h3 { font-size: 22px; color: var(--gold); }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 600 12px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.section { padding-block: 56px; }
.section-head { display: grid; gap: 10px; margin-bottom: 28px; max-width: 760px; }
.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--border-hi) 20%, var(--accent-deep) 50%, var(--border-hi) 80%, transparent); }

/* buttons and the store badge */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--ui); color: var(--text); text-decoration: none; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border-hi); background: rgba(41, 35, 30, .85); }
.btn:hover { border-color: var(--accent); color: var(--gold); }
.btn.primary { background: linear-gradient(180deg, #f6a247, #b8651f); color: #1d140c; border-color: #f6b46a; }
.btn.primary:hover { color: #000; filter: brightness(1.07); }
.play { display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 14px; border-radius: 10px; border: 1px solid var(--border-hi); background: #0f0c0a; color: var(--text); text-decoration: none; font-family: var(--ui); line-height: 1.1; }
.play svg { width: 26px; height: 28px; flex: none; }
.play small { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.play b { display: block; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.play.soon { border-style: dashed; cursor: default; }
a.play:hover { border-color: var(--accent); color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(18, 15, 12, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.head-in { max-width: var(--max); margin: 0 auto; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 700 19px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.brand img { width: 34px; height: auto; filter: drop-shadow(0 0 8px rgba(255, 138, 42, .45)); }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; padding: 0; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; } .nav-toggle .bars::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: rgba(18, 15, 12, .98); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px; flex-direction: column; }
.site-nav.open { display: flex; }
.site-nav a { font: 500 16px var(--ui); color: var(--text); text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(74, 59, 48, .5); }
.site-nav a[aria-current="page"] { color: var(--accent); }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; position: static; flex-direction: row; background: none; border: 0; padding: 0; gap: 4px; }
  .site-nav a { border: 0; padding: 8px 12px; font-size: 15px; border-radius: 999px; }
  .site-nav a:hover { color: var(--gold); background: var(--panel); }
  .site-nav a[aria-current="page"] { background: var(--panel); box-shadow: inset 0 0 0 1px var(--border-hi); }
}

/* footer */
.site-foot { border-top: 1px solid var(--border); background: var(--bg-deep); margin-top: 24px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter); display: grid; gap: 24px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; }
.foot-brand img { width: 220px; }
.foot-brand p { font-size: 16px; color: var(--muted); max-width: 46ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; font: 500 14px var(--ui); }
.foot-nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.foot-nav a:hover { color: var(--accent); }
.copy { font: 13px var(--ui); color: var(--muted); }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.2fr 1fr; align-items: start; } .foot-nav { justify-content: flex-end; } .copy { grid-column: 1 / -1; } }

/* page heads (inner pages) */
.page-hero { position: relative; padding-block: 48px 36px; overflow: hidden; border-bottom: 1px solid var(--border); background: radial-gradient(90% 120% at 15% 0%, #3a2412 0%, transparent 60%), var(--bg); }
.page-hero .wrap { display: grid; gap: 14px; position: relative; }
.page-hero.art::before { content: ""; position: absolute; inset: 0; background: var(--art) center / cover no-repeat; opacity: .35; }
.page-hero.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 23, 19, .35), var(--bg) 96%); }
.page-hero.art .wrap { z-index: 1; }

/* home hero */
.hero { position: relative; min-height: min(88svh, 820px); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; background: url(/img/hero-village.webp) center 30% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 15, 12, .2) 0%, rgba(18, 15, 12, .35) 40%, rgba(25, 23, 19, .94) 82%, var(--bg) 100%), radial-gradient(70% 50% at 50% 100%, rgba(255, 138, 42, .18), transparent 70%); }
.hero .wrap { width: 100%; display: grid; gap: 18px; padding-block: 120px 48px; justify-items: start; }
.hero .wordmark { width: min(560px, 92%); filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .7)) drop-shadow(0 0 30px rgba(255, 138, 42, .25)); }
.hero .pitch { font-size: clamp(21px, 3.4vw, 28px); line-height: 1.35; max-width: 30ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
@media (min-width: 860px) {
  .hero-art { background-position: center 38%; }
  .hero .wrap { padding-block: 160px 72px; }
}
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 6px 2px rgba(255, 138, 42, .6); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .embers i { animation: rise var(--d, 9s) linear var(--w, 0s) infinite; }
  @keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate(var(--x, 20px), -70vh); opacity: 0; } }
}

/* intro */
.intro { display: grid; gap: 20px; }
.intro p { font-size: 21px; line-height: 1.55; max-width: 58ch; }
.intro .first::first-letter { font-family: var(--display); font-size: 3.1em; float: left; line-height: .85; padding: 6px 10px 0 0; color: var(--accent); }

/* feature tour */
.tour { display: grid; gap: 56px; max-width: 1000px; margin: 0 auto; }
.feature { display: grid; gap: 22px; align-items: center; }
.feature .shot { justify-self: center; width: min(300px, 78vw); }
.feature .copy-col { display: grid; gap: 12px; }
.feature .copy-col p:not(.eyebrow) { color: var(--text); font-size: 19px; max-width: 52ch; }
.feature h3 { font-size: clamp(24px, 3.6vw, 32px); }
.feature ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 18px; }
.feature li { padding-left: 26px; position: relative; }
.feature li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--accent); box-shadow: 0 0 8px var(--glow); }
.gems { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.gems img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 0 6px rgba(255, 180, 90, .25)); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 320px 1fr; gap: 56px; }
  .feature:nth-child(even) { grid-template-columns: 1fr 320px; }
  .feature:nth-child(even) .shot { order: 2; }
  .feature .shot { width: 300px; }
}

/* phone-framed screenshot */
.phone { position: relative; border-radius: 26px; padding: 8px; background: linear-gradient(160deg, #4a3b30, #1a1410 40%, #2b231c); box-shadow: 0 0 0 1px #5e4632, 0 24px 60px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 138, 42, .12); }
.phone img { border-radius: 19px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--panel); }
a.phone { display: block; }

/* legends teaser */
.legend-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 82%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; overscroll-behavior-x: contain; scrollbar-color: var(--border-hi) transparent; }
.legend-card { scroll-snap-align: start; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border-hi); background: radial-gradient(120% 90% at 50% 0%, #3a2412 0%, var(--panel) 60%); color: var(--text); text-decoration: none; }
.legend-card:hover { border-color: var(--accent); color: var(--text); }
.legend-card .art { height: 96px; display: grid; place-items: center; }
.legend-card img { max-height: 92px; width: auto; filter: drop-shadow(0 0 16px rgba(255, 122, 42, .35)); }
.legend-card h3 { font-size: 21px; }
.legend-card .meta { font: 600 11px var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.legend-card p { font-style: italic; color: var(--muted); font-size: 17px; line-height: 1.45; }
@media (min-width: 860px) { .legend-strip { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }

/* screenshot strip */
.shot-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; overscroll-behavior-x: contain; scrollbar-color: var(--border-hi) transparent; }
.shot-strip a { scroll-snap-align: start; }
.shot-strip .phone { border-radius: 20px; padding: 6px; }
.shot-strip .phone img { border-radius: 15px; }
.shot-strip figcaption { font: 500 13px var(--ui); color: var(--muted); margin-top: 8px; text-align: center; }

/* panels and cards */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.panel.glow { border-color: var(--border-hi); background: radial-gradient(120% 100% at 0% 0%, #3a2412 0%, var(--panel) 55%); }
.cta { display: grid; gap: 16px; justify-items: start; text-align: left; }
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; align-items: center; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* world: map */
.map-frame { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-hi); box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.map-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.regions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 22px; }
.region { padding: 14px 16px; border-left: 2px solid var(--accent-deep); background: linear-gradient(90deg, var(--panel), transparent); }
.region h4 { font-size: 17px; color: var(--text); }
.region p { font-size: 16px; color: var(--muted); }

/* world: foes */
.tier + .tier { margin-top: 40px; }
.tier h3 { margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; color: var(--accent); font-size: 20px; text-transform: uppercase; letter-spacing: .08em; }
.tier h3 small { font: 400 13px var(--ui); letter-spacing: .04em; text-transform: none; color: var(--muted); }
.foes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.foe { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; }
.foe.unique { border-color: var(--border-hi); }
.foe .lair { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.foe .lair img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.foe .lair::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(41, 35, 30, .95)); }
.foe .lair-name { position: absolute; right: 10px; top: 10px; z-index: 1; font: 600 11px var(--ui); letter-spacing: .08em; text-transform: uppercase; background: rgba(18, 15, 12, .78); padding: 4px 9px; border-radius: 999px; color: var(--text); }
.foe .body { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 0 16px 18px; margin-top: -48px; position: relative; z-index: 1; align-items: end; }
.foe .portrait { position: relative; width: 96px; height: 96px; }
.foe .portrait img.face { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; object-fit: cover; }
.foe .portrait img.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.foe h4 { font-size: 19px; color: var(--gold); }
.foe .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font: 500 11px var(--ui); }
.foe .tags span { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--panel-hi); color: var(--muted); }
.foe .tags img { width: 14px; height: 14px; }
.foe .blurb { grid-column: 1 / -1; font-size: 17px; line-height: 1.45; color: var(--text); font-style: italic; }
@media (prefers-reduced-motion: no-preference) { .foe:hover .lair img { transform: scale(1.04); } }

/* world: workshops */
.workshops { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-color: var(--border-hi) transparent; }
.workshop { scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin: 0; }
.workshop img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.workshop figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(180deg, transparent, rgba(12, 10, 8, .92)); }
.workshop b { display: block; font: 700 17px var(--display); color: var(--gold); letter-spacing: .03em; }
.workshop span { font-size: 15px; color: var(--muted); }
@media (min-width: 860px) { .workshops { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

/* press */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; font-size: 17px; }
.facts dt { font: 600 12px/2 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 0; }
.downloads { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dl { display: grid; gap: 10px; align-content: start; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; color: var(--text); text-decoration: none; }
.dl:hover { border-color: var(--accent); color: var(--text); }
.dl .thumb { height: 140px; display: grid; place-items: center; background: radial-gradient(80% 90% at 50% 55%, var(--panel-hi), transparent 70%); border-radius: 4px; }
.dl .thumb img { max-height: 132px; width: auto; max-width: 100%; object-fit: contain; }
.dl b { font: 600 15px var(--ui); }
.dl small { font: 13px var(--ui); color: var(--muted); }
.shots-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shots-grid a { color: var(--muted); text-decoration: none; font: 500 13px var(--ui); display: grid; gap: 8px; text-align: center; }
.shots-grid .phone { padding: 5px; border-radius: 16px; } .shots-grid .phone img { border-radius: 12px; }

/* support */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 17px var(--ui); color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; color: var(--text); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.mail { font: 600 clamp(20px, 4vw, 26px) var(--ui); word-break: break-word; }

/* legal documents: text kept exactly as published, only restyled */
.doc { max-width: 760px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-right, 0px)) 56px var(--gutter); font-size: 19px; line-height: 1.6; }
.doc h1 { font-size: clamp(28px, 5vw, 42px); margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; color: var(--accent); letter-spacing: .05em; }
.doc p, .doc ul, .doc ol, .doc table { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 24px; display: grid; gap: 6px; }
.doc .muted { font: 14px var(--ui); color: var(--muted); margin-bottom: 22px; }
.doc a { word-break: break-word; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; font-family: var(--ui); display: block; overflow-x: auto; }
.doc th, .doc td { border-bottom: 1px solid var(--border); text-align: left; padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.doc strong { color: var(--gold); font-weight: 500; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 30; background: rgba(10, 7, 5, .94); display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px); }
.lightbox[hidden] { display: none; }
.lightbox .bar { display: flex; justify-content: flex-end; }
.lightbox button { font: 500 14px var(--ui); color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.lightbox .stage { min-height: 0; display: grid; place-items: center; }
.lightbox .stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .cap { text-align: center; color: var(--muted); font: 14px var(--ui); }
