@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-cyrillic-ext-700-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Alegreya';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-sc-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-sc-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-sc-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:400;src:url(fonts/alegreya-sc-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-sc-cyrillic-ext-700-normal.woff2) format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-sc-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-sc-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Alegreya SC';font-style:normal;font-display:swap;font-weight:700;src:url(fonts/alegreya-sc-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Gothic: Colony for Two — landing page styles.
   Palette: dark stone, wrought iron, tarnished gold, parchment, magic-ore blue. */

:root {
  --bg: #0c0a08;
  --bg-2: #14100c;
  --stone: #1d1813;
  --stone-2: #262019;
  --iron: #3b3127;
  --line: #57462f;
  --bone: #ece2cc;
  --muted: #b9aa8c;
  --dim: #8c7f68;
  --gold: #cfa45a;
  --gold-hi: #f2d38e;
  --ore: #86c8ff;
  --ore-glow: rgba(110, 170, 255, 0.35);
  --barrier: #9a8cff;
  --ember: #e0782f;
  --blood: #8f2a1e;
  --parch: #d8c196;
  --parch-2: #c7ab7a;
  --ink: #2a1c0f;
  --radius: 4px;
  --wrap: 1180px;
  --serif: 'Alegreya', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --caps: 'Alegreya SC', 'Alegreya', Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font: 400 1.125rem/1.6 var(--serif);
  text-rendering: optimizeLegibility;
}
body::before {
  /* fine grain over the whole page */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff1c9; }
:focus-visible { outline: 2px solid var(--ore); outline-offset: 3px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--gold); color: var(--ink); padding: .5rem 1rem; }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--caps); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: .01em; }
h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); color: #f6eedd; text-align: center; text-wrap: balance;
  text-shadow: 0 0 2px rgba(255, 214, 160, .55), 0 0 16px rgba(232, 128, 52, .55), 0 0 42px rgba(232, 128, 52, .22);
}
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; }

/* ---------- header ---------- */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1rem 0;
}
.top .wrap { display: flex; align-items: center; gap: 1.5rem; }
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--bone); text-decoration: none;
  font-family: var(--caps); font-size: 1.15rem; font-weight: 700;
  text-shadow: 0 1px 8px #000;
}
.brand svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 6px rgba(207, 164, 90, .35)); }
.brand small { display: block; font-size: .7rem; letter-spacing: .35em; color: var(--gold); line-height: 1; }
.nav { display: flex; gap: 1.3rem; margin-left: auto; }
.nav a {
  color: var(--bone); text-decoration: none; font-family: var(--caps); font-size: 1.02rem;
  text-shadow: 0 1px 6px #000; opacity: .88;
}
.nav a:hover { color: var(--gold-hi); opacity: 1; }
.langs { display: flex; gap: .25rem; border: 1px solid rgba(207, 164, 90, .35); padding: .2rem; background: rgba(12, 10, 8, .55); }
.langs a {
  font-family: var(--caps); font-size: .92rem; text-decoration: none;
  color: var(--muted); padding: .15rem .5rem; letter-spacing: .06em;
}
.langs a[aria-current='page'] { background: var(--gold); color: var(--ink); }
.langs a:hover { color: var(--gold-hi); }
.langs a[aria-current='page']:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 7rem 0 6rem;
}
.hero picture, .hero picture img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 62% 40%; z-index: -2;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 7, 5, .92) 0%, rgba(8, 7, 5, .72) 34%, rgba(8, 7, 5, .12) 64%, rgba(8, 7, 5, .05) 100%),
    linear-gradient(180deg, rgba(8, 7, 5, .55) 0%, rgba(8, 7, 5, 0) 22%, rgba(8, 7, 5, 0) 66%, var(--bg) 100%);
}
.hero-copy { max-width: 640px; }
.kicker {
  font-family: var(--caps); color: var(--gold); letter-spacing: .14em; font-size: 1.02rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.title-top {
  display: block; margin-top: 1.2rem;
  font-family: var(--caps); font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem); letter-spacing: .55em;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold) 55%, #8a6428 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8));
}
.hero h1 {
  font-size: clamp(2.9rem, 1.6rem + 5.6vw, 5.8rem);
  line-height: .98;
  margin: .35rem 0 1.3rem;
  color: var(--bone);
  text-shadow: 0 3px 0 #000, 0 0 30px rgba(0, 0, 0, .9), 0 0 60px rgba(134, 200, 255, .12);
  text-wrap: balance;
}
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.38rem); color: #ddd2bb; max-width: 34em; text-shadow: 0 1px 8px #000; }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.btn {
  --b: var(--gold);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--caps); font-weight: 700; font-size: 1.12rem; letter-spacing: .04em;
  padding: .85rem 1.5rem; min-height: 50px;
  text-decoration: none; cursor: pointer;
  color: #1b1208;
  background: linear-gradient(180deg, #f5d995 0%, #d4a85c 48%, #a77a35 100%);
  border: 1px solid #6e4f1f;
  box-shadow: 0 0 0 3px #1a140c, 0 0 0 4px rgba(207, 164, 90, .55), 0 8px 24px rgba(0, 0, 0, .55);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { color: #1b1208; filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost {
  color: var(--bone);
  background: rgba(14, 11, 8, .55);
  border-color: rgba(207, 164, 90, .55);
  box-shadow: 0 0 0 3px rgba(12, 10, 8, .6), 0 8px 24px rgba(0, 0, 0, .45);
}
.btn.ghost:hover { color: var(--gold-hi); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- sections ---------- */
section { padding: clamp(4rem, 3rem + 4vw, 7rem) 0; position: relative; }
.rule { display: flex; align-items: center; gap: 6px; width: min(100%, 980px); margin: 0 auto 1.8rem; }
.rule-line { flex: 1 1 0; height: 12px; min-width: 0; }
.rule-gem { flex: none; width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(232, 128, 52, .45)); }
h2 + .rule { margin: 1.4rem auto 0; }
.section-intro { max-width: 46em; margin: 1.1rem auto 0; text-align: center; color: var(--muted); }

.intro { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.intro-text p:last-child { margin-bottom: 0; }
.intro-text { max-width: 44em; margin: 1.6rem auto 0; font-size: 1.22rem; color: #ddd2bb; text-align: center; }

/* steps: parchment strip */
.steps { background: var(--bg-2); padding-top: 0; }
/* generated parchment sheet, 9-slice: torn corners/edges keep their shape, the calm middle stretches */
.parchment {
  position: relative;
  color: var(--ink);
  border: clamp(22px, 2.6vw, 36px) solid transparent;
  border-image: url('img/paper.webp?v=d4ab52f479') 90 fill / 1 / 0 stretch;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .6));
}
.parchment h2, .parchment h3 { color: var(--ink); text-shadow: none; }
.steps .parchment { padding: clamp(2rem, 1.4rem + 2.5vw, 3.4rem) clamp(1.4rem, 1rem + 3vw, 3.4rem); }
.steps ol { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(s, upper-roman);
  position: absolute; top: 0; left: 0;
  font-family: var(--caps); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--blood);
}
.steps h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: #3d2a17; font-size: 1.05rem; }

/* features */
.features { background: radial-gradient(ellipse at 50% 0%, #1f1912 0%, var(--bg) 70%); }
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin-top: 2.6rem; }
.card {
  position: relative;
  padding: 1.5rem 1.4rem 1.35rem;
  background: linear-gradient(180deg, rgba(42, 34, 25, .92), rgba(22, 18, 13, .96));
  border: 1px solid var(--iron);
  box-shadow: inset 0 0 0 1px rgba(207, 164, 90, .14), inset 0 0 40px rgba(0, 0, 0, .5), 0 10px 26px rgba(0, 0, 0, .45);
}
.card::before, .card::after {
  /* iron rivets */
  content: ''; position: absolute; top: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a69479, #4a3d2c 70%);
}
.card::before { left: 8px; }
.card::after { right: 8px; }
.card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .7rem; }
.card-icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(207, 164, 90, .4); background: rgba(0, 0, 0, .35);
  color: var(--gold);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { color: var(--bone); }
.card p { color: var(--muted); font-size: 1.04rem; margin: 0 0 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--caps); font-size: .86rem; letter-spacing: .06em;
  padding: .12rem .6rem; border: 1px solid;
}
.chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.ready { color: var(--ore); border-color: rgba(134, 200, 255, .45); background: rgba(30, 60, 100, .25); }
.chip.ready::before { box-shadow: 0 0 8px var(--ore); }
.chip.wip { color: #f0b768; border-color: rgba(240, 183, 104, .45); background: rgba(100, 60, 20, .25); }
.chip.planned { color: var(--dim); border-color: rgba(140, 127, 104, .45); }
.chip.planned::before { background: transparent; border: 1px solid currentColor; }

/* network */
.network { overflow: hidden; background: var(--bg-2); }
.network::before {
  content: ''; position: absolute; left: 50%; top: -40%; width: 1300px; height: 1300px; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 58%, rgba(154, 140, 255, .14) 66%, rgba(134, 200, 255, .07) 70%, transparent 74%);
  pointer-events: none;
}
.network .wrap { position: relative; }
.net-text { max-width: 44em; margin: 1.2rem auto 0; text-align: center; color: #ddd2bb; font-size: 1.15rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 2.4rem 0 2rem; }
.stat {
  text-align: center; padding: 1.4rem 1rem;
  border: 1px solid rgba(134, 200, 255, .28);
  background: linear-gradient(180deg, rgba(25, 32, 52, .55), rgba(12, 12, 18, .7));
  box-shadow: 0 0 30px rgba(110, 170, 255, .08) inset;
}
.stat b { display: block; font-family: var(--caps); font-size: 1.85rem; color: var(--ore); text-shadow: 0 0 18px var(--ore-glow); }
.stat span { color: var(--muted); }
.points { list-style: none; padding: 0; margin: 0 auto; max-width: 44em; display: grid; gap: .7rem; }
.points li { position: relative; padding-left: 2rem; color: #ddd2bb; }
.points li::before {
  content: ''; position: absolute; left: .2rem; top: .55em; width: 11px; height: 11px; rotate: 45deg;
  background: var(--ore); box-shadow: 0 0 10px var(--ore-glow);
}

/* progress: quest journal */
.progress { background: radial-gradient(ellipse at 50% 100%, #1f1912 0%, var(--bg) 70%); }
.journal {
  max-width: 860px; margin: 2.4rem auto 0;
  padding: clamp(1.6rem, 1rem + 3vw, 3rem) clamp(1.2rem, .8rem + 3vw, 3.2rem);
}
.journal-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-family: var(--caps); color: #5a3d1f; border-bottom: 1px solid rgba(60, 40, 15, .35); padding-bottom: .7rem; margin-bottom: .6rem; }
.journal ul { list-style: none; margin: 0; padding: 0; }
.journal li { display: grid; grid-template-columns: 34px 1fr auto; gap: .2rem .9rem; align-items: start; padding: .85rem 0; border-bottom: 1px dashed rgba(60, 40, 15, .3); }
.journal li:last-child { border-bottom: 0; }
.journal .mark { width: 24px; height: 24px; margin-top: .15rem; border: 2px solid #5a3d1f; border-radius: 50%; position: relative; }
.journal .ready .mark { background: #2f5f86; border-color: #1f3f5a; box-shadow: 0 0 0 3px rgba(47, 95, 134, .2); }
.journal .ready .mark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #e9f4ff; border-width: 0 2px 2px 0; rotate: 45deg; }
.journal .wip .mark { background: linear-gradient(90deg, #a5651f 50%, transparent 50%); border-color: #7a4b18; }
.journal strong { font-family: var(--caps); font-size: 1.18rem; color: var(--ink); }
.journal .note { grid-column: 2; color: #4a341c; font-size: 1rem; }
.journal .state { font-family: var(--caps); font-size: .92rem; color: #5a3d1f; white-space: nowrap; }
.journal .ready .state { color: #1f4f78; }
.journal .wip .state { color: #8a4d12; }
.journal-intro { color: #3d2a17; margin: 1rem 0 0; font-size: 1.02rem; }

/* screenshots */
.screens { background: var(--bg-2); }
.shots { display: grid; gap: 1.6rem; margin-top: 2.6rem; }
.shot { margin: 0; }
.shot button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: zoom-in;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .7);
}
.shot button::before, .shot button::after {
  content: ''; position: absolute; width: clamp(42px, 7vw, 86px); height: clamp(42px, 7vw, 86px);
  border: 2px solid #ece4d4; pointer-events: none; transition: inset .25s ease;
}
.shot button::before { left: -14px; top: -14px; border-right: 0; border-bottom: 0; }
.shot button::after { right: -14px; bottom: -14px; border-left: 0; border-top: 0; }
.shot button:hover::before { left: -18px; top: -18px; }
.shot button:hover::after { right: -18px; bottom: -18px; }
.shots { gap: 3.2rem; padding: 14px; }
.shot img { width: 100%; }
.shot figcaption { margin-top: .9rem; color: var(--muted); text-align: center; font-style: italic; }
.shots-note { text-align: center; color: var(--dim); margin-top: 1rem; }
dialog.lightbox {
  padding: 0; border: 1px solid var(--line); background: #000; max-width: min(96vw, 1700px);
  box-shadow: 0 0 0 4px #0f0c09, 0 30px 80px #000;
}
dialog.lightbox::backdrop { background: rgba(5, 4, 3, .88); }
dialog.lightbox img { width: 100%; height: auto; max-height: 88vh; object-fit: contain; }
dialog.lightbox form { position: absolute; top: .5rem; right: .5rem; margin: 0; }
dialog.lightbox button { font: inherit; font-family: var(--caps); background: rgba(12, 10, 8, .85); color: var(--bone); border: 1px solid var(--line); padding: .3rem .8rem; cursor: pointer; }

/* faq */
.faq { background: var(--bg); }
.faq-list { max-width: 860px; margin: 2.4rem auto 0; display: grid; gap: .8rem; }
.faq details {
  border: 1px solid var(--iron);
  background: linear-gradient(180deg, rgba(38, 32, 25, .9), rgba(20, 16, 12, .95));
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 3rem 1.05rem 1.3rem; position: relative;
  font-family: var(--caps); font-size: 1.2rem; color: var(--bone);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 1.3rem; top: 50%; width: 10px; height: 10px;
  border: solid var(--gold); border-width: 0 2px 2px 0; translate: 0 -70%; rotate: 45deg; transition: rotate .2s;
}
.faq details[open] summary::after { rotate: 225deg; translate: 0 -20%; }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* signup: a letter with a wax seal */
.signup { background: radial-gradient(ellipse at 50% 30%, #241c13 0%, var(--bg) 70%); }
.letter { max-width: 760px; margin: 0 auto; padding: clamp(2.2rem, 1.6rem + 3vw, 3.6rem) clamp(1.4rem, 1rem + 3vw, 3.4rem) clamp(2rem, 1.6rem + 2vw, 3rem); text-align: center; }
.letter-wrap { position: relative; max-width: 760px; margin: 0 auto; }
/* wax seal pressed onto the letter's corner (generated art, transparent PNG → webp) */
.seal {
  position: absolute; z-index: 2; right: clamp(.4rem, 3vw, 2.4rem); top: -38px;
  width: 112px; height: auto; rotate: 8deg;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)) drop-shadow(0 1px 1px rgba(0, 0, 0, .5));
}
.letter p { color: #3d2a17; }
.form { margin-top: 1.6rem; display: grid; gap: 1rem; text-align: left; }
.field-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.form input[type='email'] {
  flex: 1 1 240px; min-height: 52px; padding: .7rem 1rem;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: rgba(255, 248, 230, .55); border: 1px solid #6b4a24; border-radius: 0;
}
.form input[type='email']::placeholder { color: #8b6a43; }
.form input[type='email']:focus-visible { outline: 2px solid #2f5f86; outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.6em; margin: 0; font-family: var(--caps); font-size: 1.08rem; text-align: center; }
.form-status.ok { color: #1f4f78; }
.form-status.err { color: var(--blood); }

/* footer */
.foot { background: #080605; border-top: 1px solid var(--iron); padding: 2.6rem 0 3rem; color: var(--dim); font-size: .98rem; }
.foot .wrap { display: grid; gap: 1rem; }
.foot p { margin: 0; max-width: 62em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1rem; font-family: var(--caps); }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--gold-hi); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
}
@media (max-width: 700px) {
  body { font-size: 1.06rem; }
  .brand span:not(small) { font-size: 1rem; }
  .hero { align-items: flex-end; padding-bottom: 4rem; min-height: 100svh; }
  .hero::before {
    background: linear-gradient(180deg, rgba(8, 7, 5, .55) 0%, rgba(8, 7, 5, .2) 26%, rgba(8, 7, 5, .82) 58%, var(--bg) 100%);
  }
  .title-top { letter-spacing: .4em; }
  .actions .btn { flex: 1 1 100%; }
  .journal li { grid-template-columns: 28px 1fr; }
  .journal .state { grid-column: 2; }
  .seal { width: 84px; top: -30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* logo pieces */
.wordmark { display: block; width: clamp(170px, 21vw, 300px); height: auto; margin: 1.1rem 0 .1rem -6px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .85)); }
.title-main { display: block; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(134, 200, 255, .25)); }

/* comparison */
.compare { background: var(--bg-2); padding-top: clamp(1rem, 1rem + 2vw, 3rem); }
.vs { position: relative; margin-top: 2.4rem; border: 1px solid var(--iron); background: linear-gradient(180deg, rgba(29, 24, 19, .9), rgba(16, 13, 10, .95)); box-shadow: inset 0 0 0 1px rgba(207, 164, 90, .12), 0 16px 40px rgba(0, 0, 0, .5); }
.vs-head, .vs-row { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr 1fr; }
.vs-head { font-family: var(--caps); font-size: 1.08rem; letter-spacing: .03em; color: var(--muted); background: rgba(0, 0, 0, .32); border-bottom: 1px solid var(--line); }
.vs-head > span { padding: .9rem 1.2rem; }
.vs-head .ours { color: var(--gold-hi); background: linear-gradient(90deg, rgba(134, 200, 255, .08), rgba(134, 200, 255, .02)); border-left: 1px solid rgba(134, 200, 255, .25); }
.vs-list { list-style: none; margin: 0; padding: 0; }
.vs-row + .vs-row { border-top: 1px solid rgba(87, 70, 47, .55); }
.vs-topic { display: flex; align-items: center; gap: .7rem; margin: 0; padding: 1rem 1.2rem; font-family: var(--caps); font-size: 1.1rem; color: var(--bone); background: rgba(0, 0, 0, .2); }
.vs-topic svg { width: 26px; height: 26px; flex: none; color: var(--gold); }
.vs-old, .vs-new { display: flex; gap: .65rem; align-items: flex-start; margin: 0; padding: 1rem 1.2rem; line-height: 1.5; }
.vs-old svg, .vs-new svg { width: 20px; height: 20px; flex: none; margin-top: .2rem; }
.vs-old { color: var(--dim); }
.vs-old svg { color: #a2503f; }
.vs-new { color: var(--bone); background: linear-gradient(90deg, rgba(134, 200, 255, .07), rgba(134, 200, 255, .02)); border-left: 1px solid rgba(134, 200, 255, .25); }
.vs-new svg { color: var(--ore); filter: drop-shadow(0 0 4px var(--ore-glow)); }
.vs-old small, .vs-new small { display: none; }
.compare-note { text-align: center; color: var(--dim); margin: 1.2rem 0 0; font-style: italic; }
@media (max-width: 760px) {
  .vs { background: none; border: 0; box-shadow: none; }
  .vs-head { display: none; }
  .vs-list { display: grid; gap: 1rem; }
  .vs-row { display: block; border: 1px solid var(--iron); background: linear-gradient(180deg, rgba(29, 24, 19, .95), rgba(16, 13, 10, .95)); box-shadow: inset 0 0 0 1px rgba(207, 164, 90, .1); }
  .vs-row + .vs-row { border-top: 1px solid var(--iron); }
  .vs-topic { padding: .8rem 1rem; border-bottom: 1px solid rgba(87, 70, 47, .55); }
  .vs-old, .vs-new { padding: .75rem 1rem; }
  .vs-new { border-left: 2px solid rgba(134, 200, 255, .45); }
  .vs-old small, .vs-new small { display: block; font-family: var(--caps); font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
  .vs-new small { color: var(--gold-hi); }
}

/* a lone last card spans the row */
.grid > .card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
.grid > .card:last-child:nth-child(3n + 1) p { max-width: 60em; }

/* frame brackets on the comparison and journal, like the in-game screens */
.vs, .journal { position: relative; }
.vs::before, .vs::after {
  content: ''; position: absolute; width: 56px; height: 56px; border: 2px solid #ece4d4; pointer-events: none; opacity: .85;
}
.vs::before { left: -12px; top: -12px; border-right: 0; border-bottom: 0; }
.vs::after { right: -12px; bottom: -12px; border-left: 0; border-top: 0; }


/* ---------- dice contest ---------- */
.dice { background: radial-gradient(ellipse at 50% 20%, #1d1710 0%, var(--bg) 70%); }
.dice-why { color: #d8ccb2; font-style: italic; margin-top: .6rem; }
.dice-rules { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin: 2.4rem 0 2.6rem; }
.dice-col {
  padding: 1.4rem 1.5rem 1.2rem; border: 1px solid var(--iron);
  background: linear-gradient(180deg, rgba(42, 34, 25, .9), rgba(22, 18, 13, .95));
  box-shadow: inset 0 0 0 1px rgba(207, 164, 90, .12);
}
.dice-col h3 { color: var(--gold-hi); margin-bottom: .7rem; }
.dice-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; }
.dice-col li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.dice-col li::before { content: ''; position: absolute; left: .15rem; top: .62em; width: 8px; height: 8px; rotate: 45deg; background: var(--gold); }
.dice-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  background: #0a0806 center 60% / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}
/* backdrop loads with the scene (dice.js adds .is-near) */
.dice-stage.is-near { background-image: url('img/hero-1100.webp?v=b9f7c89738'); }
.dice-stage::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 55%, rgba(8, 7, 5, .35), rgba(8, 7, 5, .82) 75%); transition: background .6s ease; }
.dice-stage.is-rolling::before, .dice-stage.is-done::before { background: radial-gradient(ellipse at 50% 55%, rgba(8, 7, 5, .5), rgba(8, 7, 5, .9) 75%); }
.dice-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dice-stage::after {
  /* corner brackets, as around the screenshots */
  content: ''; position: absolute; inset: 12px; pointer-events: none;
  background:
    linear-gradient(#ece4d4, #ece4d4) left top / 64px 2px no-repeat, linear-gradient(#ece4d4, #ece4d4) left top / 2px 64px no-repeat,
    linear-gradient(#ece4d4, #ece4d4) right bottom / 64px 2px no-repeat, linear-gradient(#ece4d4, #ece4d4) right bottom / 2px 64px no-repeat;
  opacity: .8;
}
.dice-caption {
  position: absolute; left: 50%; top: 5%; translate: -50% 0; width: min(90%, 760px); margin: 0; text-align: center;
  font-family: var(--caps); font-size: clamp(1.05rem, .8rem + 1.2vw, 1.6rem); color: #f6eedd; min-height: 1.4em;
  text-shadow: 0 2px 6px #000, 0 0 18px rgba(232, 128, 52, .45);
}
.dice-caption[data-kind='win'] { color: #ffe3b0; }
.dice-caption[data-kind='lose'] { color: #c8dbe3; }
.dice-caption[data-kind='crit-success'] { color: #fff1c4; text-shadow: 0 2px 6px #000, 0 0 26px rgba(255, 200, 90, .8); }
.dice-caption[data-kind='crit-fail'] { color: #ffb3a3; text-shadow: 0 2px 6px #000, 0 0 26px rgba(200, 50, 30, .8); }
.dice-card {
  position: absolute; left: 50%; bottom: 7%; translate: -50% 0; width: min(92%, 560px);
  padding: 1.1rem 1.3rem 1.2rem; text-align: center;
  background: linear-gradient(180deg, rgba(36, 29, 21, .96), rgba(16, 13, 10, .97));
  border: 1px solid var(--line); box-shadow: inset 0 0 0 1px rgba(207, 164, 90, .18), 0 14px 40px rgba(0, 0, 0, .7);
  transition: opacity .35s ease, translate .35s ease;
}
.dice-who { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .35rem; font-family: var(--caps); color: var(--gold); font-size: .95rem; letter-spacing: .05em; }
.dice-who svg { width: 20px; height: 20px; }
.dice-question { margin: 0 0 1rem; font-size: clamp(1.02rem, .9rem + .5vw, 1.25rem); color: var(--bone); }
.dice-buttons { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.dice-buttons .btn, .dice-after .btn { min-height: 46px; padding: .6rem 1.2rem; font-size: 1.05rem; }
.btn svg { width: 22px; height: 22px; }
.dice-stage.is-rolling .dice-card, .dice-stage.is-done .dice-card { opacity: 0; translate: -50% 20px; pointer-events: none; }
.dice-after {
  position: absolute; left: 50%; bottom: 6%; translate: -50% 0; width: min(92%, 640px); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .35s ease .15s;
}
.dice-stage.is-done .dice-after { opacity: 1; pointer-events: auto; }
.dice-force { margin: 1.2rem 0 0; text-align: center; color: var(--muted); font-size: 1rem; }
.dice-force button { font: inherit; color: var(--gold-hi); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dice-sound {
  position: absolute; right: 22px; top: 18px; font: inherit; font-family: var(--caps); font-size: .9rem; cursor: pointer;
  color: var(--muted); background: rgba(12, 10, 8, .6); border: 1px solid var(--line); padding: .2rem .7rem;
}
.dice-sound[aria-pressed='false'] { text-decoration: line-through; opacity: .7; }
.dice-note { text-align: center; color: var(--dim); font-style: italic; margin: 1.2rem 0 0; }
@media (max-width: 700px) {
  .dice-stage { aspect-ratio: 3 / 4; }
  .dice-caption { top: 12%; width: 86%; font-size: 1.05rem; }
  .dice-sound { top: 14px; right: 16px; }
  .dice-card { bottom: 4%; }
  .dice-after { bottom: 4%; }
}

/* luck trader + lucky-bone contest */
.dice-trader {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.2rem; align-items: center;
  margin: -1.2rem 0 2.6rem; padding: 1.2rem 1.4rem;
  border: 1px solid rgba(134, 200, 255, .3);
  background: linear-gradient(90deg, rgba(25, 32, 52, .55), rgba(16, 13, 10, .9));
  box-shadow: inset 0 0 30px rgba(110, 170, 255, .06);
}
.dice-trader .card-icon { width: 52px; height: 52px; color: var(--ore); border-color: rgba(134, 200, 255, .4); }
.dice-trader h3 { color: var(--ore); margin-bottom: .3rem; }
.dice-trader p { margin: 0; color: var(--muted); }
.btn.buff {
  color: #eaf5ff;
  background: linear-gradient(180deg, #4d7ea8 0%, #2f5a80 55%, #1d3b57 100%);
  border-color: #16304a;
  box-shadow: 0 0 0 3px #0d1520, 0 0 0 4px rgba(134, 200, 255, .5), 0 8px 24px rgba(0, 0, 0, .55), 0 0 18px rgba(110, 170, 255, .25);
}
.btn.buff:hover { color: #fff; }
.btn.buff svg + svg { margin-left: -14px; }
.dice-after .dice-buttons { justify-content: center; }
@media (max-width: 700px) {
  .dice-card { bottom: 3%; padding: .9rem 1rem 1rem; }
  .dice-buttons .btn, .dice-after .btn { min-height: 42px; font-size: .98rem; padding: .5rem .9rem; }
}

/* full logo lock-up in the hero */
.hero-logo-wrap { margin: 1rem 0 1.3rem; line-height: 0; }
.hero-logo { width: clamp(300px, 44vw, 620px); height: auto; margin-left: -1.5%; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .85)) drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }
@media (max-width: 700px) { .hero-logo { width: 100%; margin-left: 0; } }

/* ---------- centered hero ---------- */
.hero { justify-content: center; text-align: center; }
.hero .wrap { display: flex; justify-content: center; }
.hero picture img { object-position: 50% 42%; }
.hero::before {
  background:
    radial-gradient(ellipse 58% 52% at 50% 50%, rgba(8, 7, 5, .62) 0%, rgba(8, 7, 5, .38) 55%, rgba(8, 7, 5, .1) 100%),
    linear-gradient(180deg, rgba(8, 7, 5, .6) 0%, rgba(8, 7, 5, 0) 24%, rgba(8, 7, 5, 0) 62%, var(--bg) 100%);
}
.hero-copy { max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.kicker::after { content: ''; width: 34px; height: 1px; background: currentColor; }
.hero-logo-wrap { margin: 1.1rem 0 1.4rem; }
.hero-logo { width: clamp(320px, 50vw, 760px); margin-left: 0; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .9)) drop-shadow(0 0 2px rgba(0, 0, 0, .9)); }
.wordmark { margin: 1.1rem auto .1rem; }
.lead { margin: 0 auto 1.8rem; }
.actions { justify-content: center; }
@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 7, 5, .5) 0%, rgba(8, 7, 5, .25) 30%, rgba(8, 7, 5, .8) 62%, var(--bg) 100%); }
  .hero picture img { object-position: 88% 30%; }
  .hero-logo { width: 100%; }
}
@media (max-width: 700px) { .kicker::before, .kicker::after { display: none; } }
