:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: #10141c;
  --panel-2: #0b0f15;
  --line: rgba(227, 189, 120, 0.18);
  --gold: #e9c788;
  --gold-2: #f3d08d;
  --teal: #4fd1c5;
  --violet: #9b7bea;
  --text: #e8e6e1;
  --muted: #a9adb6;
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, rgba(79, 209, 197, 0.08), transparent 60%), radial-gradient(900px 600px at 10% 10%, rgba(155, 123, 234, 0.08), transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.02em; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin: 0 0 1.5rem; color: var(--gold-2); }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; color: var(--gold); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(7, 9, 13, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 1.15rem var(--display); }
.brand span { color: var(--gold); }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); flex-wrap: wrap; justify-content: flex-end; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.top nav a:not(.btn):hover { color: var(--text); }

.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; background: linear-gradient(135deg, #f3d08d, #b8843f); color: #1a1206; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: filter 0.2s, background-color 0.2s; }
.btn:hover { filter: brightness(1.1); color: #1a1206; }
.btn.ghost { background: transparent; color: var(--gold); border-color: var(--line); }
.btn.ghost:hover { background: rgba(233, 199, 136, 0.08); color: var(--gold-2); }
.btn.small { padding: 7px 16px; font-size: 0.9rem; }

.hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; align-items: center; gap: clamp(24px, 5vw, 64px); max-width: 1100px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 40px) 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--teal); margin: 0 0 0.5rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 0 0 1rem; }
.hero h1 span { color: var(--gold); }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 34em; margin: 0 0 1.6rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions.center { justify-content: center; }
.version { color: var(--muted); font-size: 0.9rem; margin-top: 1.2rem; }

/* The living emblem: two counter-rotating rune rings round the clockwork die, its core glowing. */
.emblem { position: relative; width: 100%; aspect-ratio: 1; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rings g { transform-box: view-box; transform-origin: 100px 100px; }
.runes { font-family: "Segoe UI Historic", "Noto Sans Runic", "Segoe UI Symbol", serif; font-size: 8px; fill: var(--gold); opacity: 0.8; }
.aura { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle at 30% 40%, rgba(60, 200, 255, 0.5), transparent 55%), radial-gradient(circle at 70% 60%, rgba(60, 200, 255, 0.45), transparent 55%), radial-gradient(circle, rgba(255, 190, 90, 0.4), transparent 65%); filter: blur(18px); opacity: 0.75; }
.art { position: absolute; inset: 13%; width: 74%; height: 74%; }
.core { position: absolute; top: 50.4%; left: 50.1%; width: 12%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen; background: radial-gradient(circle, rgba(255, 250, 220, 0.95), rgba(255, 200, 90, 0.55) 35%, transparent 70%); opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
  .emblem { animation: float 7s ease-in-out infinite; }
  .ring-outer { animation: spin 90s linear infinite; }
  .ring-inner { animation: spin 55s linear infinite reverse; }
  .aura { animation: aura 6s ease-in-out infinite; }
  .core { animation: glow 7s ease-in-out infinite; }
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes float { 50% { translate: 0 -8px; } }
@keyframes aura { 50% { opacity: 1; scale: 1.06; } }
@keyframes glow { 0%, 40%, 100% { opacity: 0.35; scale: 0.8; } 48% { opacity: 1; scale: 1.5; } 56% { opacity: 0.55; scale: 1; } 60% { opacity: 1; scale: 1.35; } 70% { opacity: 0.35; scale: 0.8; } }

.showcase { max-width: 1100px; margin: 0 auto 24px; padding: 0 clamp(16px, 4vw, 40px); }
.showcase img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(79, 209, 197, 0.08); }
.showcase figcaption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

.band { padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px); }
.band > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.band.alt { background: linear-gradient(180deg, transparent, rgba(16, 20, 28, 0.7) 12%, rgba(16, 20, 28, 0.7) 88%, transparent); }
.center { text-align: center; }
.note { color: var(--muted); font-size: 0.95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards article { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.cards p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.games { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.games li { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 10px; padding: 14px 16px; }
.games li:nth-child(even) { border-left-color: var(--violet); }
.games strong { display: block; color: var(--text); }
.games span { color: var(--muted); font-size: 0.92rem; }
#games .note { text-align: center; margin-top: 1.5rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-2); cursor: zoom-in; }
.gallery img { width: 100%; transition: scale 0.3s; }
@media (prefers-reduced-motion: no-preference) { .gallery button:hover img { scale: 1.04; } }

.lightbox { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--panel-2); color: var(--text); max-width: min(1600px, 94vw); width: 100%; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(3px); }
.lightbox img { width: 100%; }
.lightbox p { margin: 0; padding: 12px 16px; color: var(--muted); }
.lightbox form { position: absolute; top: 8px; right: 8px; margin: 0; }
.lightbox .close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.6); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }

.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 1.5rem auto; }
.dl { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; transition: border-color 0.2s, background-color 0.2s; }
.dl:hover { border-color: var(--gold); background: #141a24; }
.dl strong { display: block; font: 700 1.2rem var(--display); color: var(--gold-2); }
.dl span { color: var(--muted); font-size: 0.9rem; }
.steps { max-width: 640px; margin: 2rem auto 0; color: var(--muted); }
.steps li { margin-bottom: 0.5rem; }
.steps strong { color: var(--text); }

.community { text-align: center; }
.community p { color: var(--muted); max-width: 36em; margin: 0 auto 1.5rem; }

.foot { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 40px); text-align: center; color: var(--muted); font-size: 0.9rem; }

@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .emblem { max-width: 260px; margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
}
