/* Slime Vault — studio site.  One stylesheet for every page. */

:root {
  --bg: #0b0f0c;
  --bg-2: #121813;
  --bg-3: #1a221b;
  --line: rgba(190, 230, 140, 0.14);
  --text: #ece7d8;
  --muted: #a7ae9d;
  --slime: #a6e83c;
  --slime-deep: #5fa61d;
  --gold: #e9b44c;
  --gold-deep: #9b6a1e;
  --ember: #ff7a2f;
  --parchment: #d8c196;
  --ink: #2a1d10;
  --radius: 14px;
  --nav-h: 76px;
  --max: 1240px;
  --font-display: "Anton", "Impact", sans-serif;
  --font-fantasy: "Cinzel", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--slime); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.8rem, 7.5vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
p { margin: 0 0 1em; }
.eyebrow {
  font-family: var(--font-fantasy);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--slime);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: 0.7em;
}
@media (max-width: 600px) { .eyebrow { letter-spacing: 0.2em; font-size: 0.74rem; } }
.eyebrow.both::after { margin-left: -0.3em; } /* letter-spacing trails the last letter */
.eyebrow::before, .eyebrow.both::after {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6;
}
/* hanging full stop: centre the words, not the words plus the dot */
.hang { margin-right: -0.26em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d8d4c6; max-width: 46ch; }
.muted { color: var(--muted); }
.glow-text { text-shadow: 0 4px 30px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.9); }
.slime-text { color: var(--slime); }
.gold-text { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--slime);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1.5px solid var(--b);
  background: transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); background: rgba(166, 232, 60, 0.12); }
.btn-solid { background: var(--slime); color: #142008; box-shadow: 0 8px 30px rgba(166, 232, 60, 0.28); }
.btn-solid:hover { background: #bdf55a; box-shadow: 0 10px 40px rgba(166, 232, 60, 0.45); }
.btn-gold { --b: var(--gold); color: var(--gold); }
.btn-gold:hover { background: rgba(233, 180, 76, 0.12); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* The painted plaque from the in-game menu — the site's signature button. */
.btn-plaque {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  width: min(380px, 100%); aspect-ratio: 900 / 208; flex-shrink: 0;
  padding: 0 12%; white-space: nowrap;
  background: url("../assets/img/button.webp") center / 100% 100% no-repeat;
  color: #f4ecd9; text-decoration: none;
  font-family: var(--font-fantasy); font-weight: 700; font-size: clamp(0.82rem, 1.4vw, 1rem);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-shadow: 0 2px 4px #000;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
  transition: transform .2s ease, filter .2s ease;
}
.btn-plaque:hover { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 0 22px rgba(120, 230, 160, 0.45)) drop-shadow(0 10px 22px rgba(0,0,0,.6)); }
.btn-plaque svg { width: 1.3em; height: 1.3em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(9, 13, 10, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.6)); transition: transform .2s; }
.brand:hover img { transform: rotate(-2deg) scale(1.04); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: #d9d6ca;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--slime); border-radius: 2px; transform: scaleX(0); transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { margin-left: 10px; }
.nav-links .nav-cta a.btn { display: inline-flex; min-height: 42px; padding: 0.55em 1.25em; font-size: 0.78rem; border-radius: 999px; color: #142008; }
.nav-links .nav-cta a.btn::after { display: none; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0,0,0,.35); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: rgba(9, 13, 10, 0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 24px;
    transform: translateY(-110%); opacity: 0; pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-open .site-header { background: rgba(9, 13, 10, 0.97); }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { padding: 14px 6px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--slime); }
  .nav-cta { margin: 18px 0 0; }
  .nav-links .nav-cta a.btn { width: 100%; min-height: 52px; font-size: 0.9rem; border-bottom: 0; }
  .brand img { height: 38px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(56px, 7vw, 90px) 0; }
.bg-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bg-art img, .bg-art video { width: 100%; height: 100%; object-fit: cover; }
.bg-art::after { content: ""; position: absolute; inset: 0; background: var(--shade, linear-gradient(180deg, rgba(11,15,12,.55), rgba(11,15,12,.8))); }
.isolate { isolation: isolate; }
.fade-top::before, .fade-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 160px; z-index: 0; pointer-events: none;
}
.fade-top::before { top: 0; background: linear-gradient(var(--bg), transparent); }
.fade-bottom::after { bottom: 0; background: linear-gradient(transparent, var(--bg)); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 70px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-inline: auto; max-width: 60ch; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 40px) 0 110px;
  text-align: center; isolation: isolate; overflow: hidden;
}
.hero .bg-art img { animation: slowzoom 30s ease-in-out infinite alternate; transform-origin: 50% 45%; }
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero .bg-art::after {
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0,0,0,.05), rgba(0,0,0,.55) 75%),
    linear-gradient(180deg, rgba(8,11,9,.5) 0%, rgba(8,11,9,.15) 35%, rgba(8,11,9,.55) 75%, var(--bg) 100%);
}
.door-glow {
  position: absolute; left: 50%; top: 22%; width: 6vw; min-width: 40px; height: 52%;
  transform: translateX(-50%); z-index: -1;
  background: radial-gradient(ellipse at center, rgba(170, 255, 90, 0.55), rgba(120, 220, 60, 0) 70%);
  filter: blur(18px); mix-blend-mode: screen;
  animation: pulse 4.5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
#embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero .lead { margin: 0 auto 2.2rem; }
.hero h1 { text-shadow: 0 6px 40px rgba(0,0,0,.8); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.45); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--slime); animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.page-hero {
  min-height: 62vh; display: grid; place-items: center; text-align: center;
  padding: calc(var(--nav-h) + 60px) 0 80px; isolation: isolate; overflow: hidden;
}
.page-hero .bg-art::after { background: linear-gradient(180deg, rgba(8,11,9,.65), rgba(8,11,9,.55) 50%, var(--bg)); }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: linear-gradient(90deg, #0d130d, #142212, #0d130d);
  border-block: 1px solid var(--line);
  padding: 16px 0;
}
.marquee-track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  text-transform: uppercase; letter-spacing: 0.02em; padding-right: 0.6em;
}
.marquee .dot { color: var(--slime); }
.marquee .hl { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- coming-soon feature ---------- */
.feature-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr; } }
.video-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(233, 180, 76, 0.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 6px rgba(0,0,0,.35);
  background: #000; aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-frame .play-trailer {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: rgba(8, 11, 9, 0.75); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(6px); cursor: pointer; font-weight: 800; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; transition: background .2s, transform .2s;
}
.video-frame .play-trailer:hover { background: rgba(166, 232, 60, 0.9); color: #142008; transform: translateY(-2px); }
.play-trailer i {
  width: 34px; height: 34px; border-radius: 50%; background: var(--slime); display: grid; place-items: center; color: #142008;
}
.play-trailer:hover i { background: #142008; color: var(--slime); }
.play-trailer i svg { width: 14px; height: 14px; margin-left: 2px; }

.rune-panel {
  position: relative;
  background: url("../assets/img/panel.webp") center / 100% 100% no-repeat;
  aspect-ratio: 900 / 1257;
  padding: 17% 16% 16%;
  display: flex; flex-direction: column; justify-content: center;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.6));
  max-width: 470px; justify-self: center; width: 100%;
}
.rune-panel img.logo { width: 78%; margin: 0 auto 0.5rem; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.rune-panel .tag { font-family: var(--font-fantasy); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slime); font-size: .78rem; text-align: center; margin-bottom: .8rem; }
.rune-panel p { font-size: clamp(.84rem, 1.05vw, .95rem); line-height: 1.55; margin-bottom: .7em; color: #dfe4d6; }
.rune-panel .btn-plaque { width: 100%; margin-top: .6rem; font-size: clamp(.68rem, .95vw, .82rem); }
.rune-panel .demo-link { display: block; text-align: center; margin-top: .4rem; font-weight: 700; font-size: .82rem; color: var(--gold); letter-spacing: .08em; }
@media (max-width: 520px) { .rune-panel { aspect-ratio: auto; background-size: 100% 100%; padding: 22% 15% 20%; } }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(166, 232, 60, 0.12); color: var(--slime); border: 1px solid rgba(166, 232, 60, 0.4);
}
.badge.gold { background: rgba(233,180,76,.12); color: var(--gold); border-color: rgba(233,180,76,.45); }
.badge .live { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(166,232,60,.7); } 100% { box-shadow: 0 0 0 10px rgba(166,232,60,0); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--bg-2); padding: 34px 16px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1; color: var(--gold); }
.stat span { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:last-child { grid-column: span 2; } }

/* ---------- demo banner ---------- */
.demo-banner {
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; overflow: hidden;
  border-radius: 20px; border: 1px solid rgba(233,180,76,.35);
  background: linear-gradient(120deg, #1d140a, #0f140e);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  text-decoration: none;
}
.demo-banner img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; transition: transform .6s ease; }
.demo-banner:hover img { transform: scale(1.04); }
.demo-banner .copy { padding: clamp(26px, 4vw, 48px); }
.demo-banner h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
@media (max-width: 860px) { .demo-banner { grid-template-columns: 1fr; } }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.studio-grid .mascot { width: min(420px, 80%); margin-inline: auto; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)) drop-shadow(0 0 60px rgba(166,232,60,.15)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }
.studio-copy p { color: #d6d3c6; font-size: 1.08rem; }
.studio-copy p.punch { font-family: var(--font-fantasy); font-weight: 700; color: var(--slime); font-size: 1.15rem; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; text-align: center; } .studio-copy .btn-row { justify-content: center; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(50px, 7vw, 90px); }
.pillar { padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid var(--line); }
.pillar .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(166,232,60,.12); color: var(--slime); margin-bottom: 16px; }
.pillar .ico svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.45rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- vault CTA ---------- */
.vault-cta { min-height: 90vh; display: grid; place-items: center; text-align: center; padding: 120px 0; isolation: isolate; overflow: hidden; }
.vault-cta .bg-art::after { background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.15), rgba(0,0,0,.7) 80%), linear-gradient(var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.vault-cta p { max-width: 54ch; margin-inline: auto; color: #e2dfd2; }

/* ---------- games page ---------- */
.games-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(18px, 2.4vw, 32px); align-items: stretch; }
@media (max-width: 980px) { .games-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } .games-grid .game-card.featured { order: -1; } }
.game-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; text-decoration: none;
  background: rgba(14, 18, 14, 0.82); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.game-card.featured { border-color: rgba(233,180,76,.5); }
.game-card.featured:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 50px rgba(233,180,76,.18); }
.game-card .media { position: relative; aspect-ratio: 920 / 430; overflow: hidden; background: #000; }
.game-card .media img, .game-card .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s ease, transform .8s ease; }
.game-card .media video { opacity: 0; }
.game-card:hover .media video.ready { opacity: 1; }
.game-card:hover .media img { transform: scale(1.05); }
.game-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-card h3 { margin: 0; font-size: 2rem; }
.game-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.game-card .tags span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); }
.game-card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.game-card .go svg { width: 18px; transition: transform .25s; }
.game-card:hover .go svg { transform: translateX(5px); }
.game-card.locked { justify-content: center; align-items: center; text-align: center; padding: 50px 26px; min-height: 380px;
  background:
    radial-gradient(circle at 50% 40%, rgba(166,232,60,.08), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 14px, transparent 14px 28px),
    rgba(12, 15, 12, 0.88);
}
.game-card.locked .lock { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: radial-gradient(circle, #23301c, #121811); border: 2px solid rgba(166,232,60,.35); color: var(--slime);
  box-shadow: inset 0 0 20px rgba(0,0,0,.6), 0 0 40px rgba(166,232,60,.12);
}
.game-card.locked .lock svg { width: 40px; height: 40px; }
.game-card.locked:hover .lock { animation: rattle .5s ease; }
@keyframes rattle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-10deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
.game-card.locked h3 { font-size: clamp(2.2rem, 3.6vw, 3rem); }
.game-card.locked p { color: var(--muted); margin: 0; max-width: 26ch; }
.game-card .qmark { position: absolute; font-family: var(--font-display); font-size: 16rem; line-height: 1; color: rgba(255,255,255,.025); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }

/* ---------- game page ---------- */
.rp-hero { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 30px) 0 100px; isolation: isolate; overflow: hidden; }
.rp-hero .bg-art::after { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,.15), rgba(0,0,0,.6)), linear-gradient(180deg, rgba(8,11,9,.55), transparent 30%, transparent 60%, var(--bg)); }
.rp-hero .logo { width: min(640px, 88vw); margin: 0 auto 1.2rem; filter: drop-shadow(0 18px 40px rgba(0,0,0,.7)); animation: logoin 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes logoin { from { opacity: 0; transform: translateY(20px) scale(.94); } to { opacity: 1; transform: none; } }
.rp-hero .tagline { font-family: var(--font-fantasy); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.5rem); letter-spacing: .08em; margin-bottom: 1.4rem; text-shadow: 0 3px 16px #000; }
.rp-hero .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 2rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #cfcbbd; font-weight: 700; }
.platforms span { display: inline-flex; align-items: center; gap: 8px; }
.platforms svg { width: 18px; height: 18px; color: var(--slime); }

.stone-panel {
  max-width: 860px; margin-inline: auto; padding: clamp(36px, 6vw, 70px);
  background: rgba(6, 8, 6, 0.78); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.stone-panel p { font-size: 1.1rem; color: #dcd9cc; }
.stone-panel p.beat { font-family: var(--font-fantasy); font-weight: 700; color: var(--gold); font-size: 1.15rem; }
.stone-panel .split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
@media (max-width: 720px) { .stone-panel .split { grid-template-columns: 1fr; } }

.trailer-frame { max-width: 1100px; margin-inline: auto; }
.trailer-frame .video-frame { cursor: pointer; }
.trailer-frame .video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s; }
.trailer-frame .video-frame:hover img { transform: scale(1.03); filter: brightness(1.08); }
.big-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(76px, 10vw, 112px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: rgba(166,232,60,.92); color: #142008; border: none; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(166,232,60,.2), 0 20px 50px rgba(0,0,0,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.big-play svg { width: 38%; margin-left: 8%; }
.video-frame:hover .big-play { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 18px rgba(166,232,60,.16), 0 20px 50px rgba(0,0,0,.6); }

/* heroes */
.heroes { min-height: 100vh; isolation: isolate; overflow: hidden; }
.heroes .bg-art::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(8,11,9,.35) 18%, rgba(8,11,9,.45) 70%, var(--bg) 100%); }
.hero-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 880px; margin: 0 auto 34px; }
.hero-tab {
  position: relative; border-radius: 16px; padding: 14px 10px 12px; cursor: pointer;
  background: rgba(8, 11, 9, 0.6); border: 1.5px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: border-color .25s, background .25s, transform .25s;
}
.hero-tab img { height: 130px; width: auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)) saturate(.6) brightness(.8); transition: filter .3s, transform .3s; }
.hero-tab span { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .03em; }
.hero-tab:hover { transform: translateY(-3px); border-color: rgba(166,232,60,.5); }
.hero-tab:hover img, .hero-tab[aria-selected="true"] img { filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); transform: scale(1.05); }
.hero-tab[aria-selected="true"] { border-color: var(--slime); background: rgba(30, 45, 20, .75); box-shadow: 0 0 30px rgba(166,232,60,.25); }
.hero-tab .demo-pill { position: absolute; top: 8px; right: 8px; font-size: .6rem; font-weight: 800; letter-spacing: .12em; padding: 3px 7px; border-radius: 5px; background: var(--gold); color: #2a1a06; }
@media (max-width: 640px) { .hero-picker { grid-template-columns: repeat(2, 1fr); } .hero-tab img { height: 110px; } }

.hero-detail {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(20px, 4vw, 50px); align-items: center;
  max-width: 1000px; margin: 0 auto; padding: clamp(24px, 4vw, 44px);
  background: linear-gradient(160deg, rgba(225, 204, 160, .96), rgba(196, 168, 118, .96));
  color: var(--ink); border-radius: 18px; border: 3px solid #6b4a22;
  box-shadow: inset 0 0 60px rgba(90, 55, 20, .35), 0 30px 80px rgba(0,0,0,.6);
}
.hero-detail .portrait { width: 100%; max-height: 430px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(60,35,10,.45)); animation: portraitin .5s ease both; }
@keyframes portraitin { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
.hero-detail .title { font-family: var(--font-fantasy); font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #7a1f12; margin: 0 0 .2rem; line-height: 1.15; }
.hero-detail .role { font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: #5a3d1c; margin-bottom: 1rem; }
.hero-detail p { font-size: 1.02rem; }
.statbars { display: grid; gap: 9px; margin: 1.2rem 0; }
.statbar { display: grid; grid-template-columns: 76px 1fr 40px; align-items: center; gap: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.statbar .track { height: 10px; border-radius: 6px; background: rgba(60,35,10,.22); overflow: hidden; }
.statbar .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8a2b14, #d4562a); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.statbar b { text-align: right; }
.skills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: .4rem; }
.skill { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; background: rgba(80, 50, 20, .14); border: 1px solid rgba(80,50,20,.25); font-weight: 700; font-size: .9rem; }
.skill img { width: 40px; height: 40px; object-fit: contain; }
.skill small { display: block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: #7a1f12; font-weight: 800; }
@media (max-width: 820px) { .hero-detail { grid-template-columns: 1fr; text-align: center; } .hero-detail .portrait { max-height: 300px; } .skills { justify-content: center; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }
.feature {
  border-radius: 18px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(166,232,60,.45); }
.feature .media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.feature .media video, .feature .media img { width: 100%; height: 100%; object-fit: cover; }
.feature .media .num { position: absolute; top: 12px; left: 14px; font-family: var(--font-display); font-size: 1rem; padding: 2px 10px; border-radius: 6px; background: rgba(0,0,0,.6); color: var(--gold); letter-spacing: .06em; }
.feature .body { padding: 22px 24px 26px; }
.feature h3 { font-size: 1.6rem; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* realms parchment */
.realms-board {
  position: relative; max-width: 1240px; margin-inline: auto;
  background: url("../assets/img/bg-parchment.jpg") center / 100% 100% no-repeat;
  border-radius: 10px; padding: clamp(60px, 8vw, 110px) clamp(24px, 10vw, 150px) clamp(70px, 9vw, 130px);
  color: var(--ink); box-shadow: 0 40px 90px rgba(0,0,0,.6);
}
.realms-board h2 { text-align: center; color: #23170b; }
.realms-board .sub { text-align: center; max-width: 56ch; margin: 0 auto 2.6rem; font-weight: 600; color: #4b3418; }
.realm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 900px) { .realm-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .realms-board { padding: 80px 13% 90px; } .realms-board h2 { font-size: 1.9rem; } .realms-board .sub { font-size: .9rem; } .realm-cards { gap: 12px; } .realm h3 { font-size: 1.2rem; } .realm p { font-size: .74rem; line-height: 1.4; } }
.realm { text-align: center; }
.realm .pic { position: relative; aspect-ratio: 4 / 3; border: 4px solid #3b2812; border-radius: 6px; overflow: hidden; box-shadow: 0 10px 22px rgba(60,35,10,.45); transform: rotate(var(--r, 0deg)); transition: transform .3s ease; background: #1a120a; }
.realm:hover .pic { transform: rotate(0) scale(1.04); }
.realm .pic img { width: 100%; height: 100%; object-fit: cover; }
.realm .pic .pin { position: absolute; top: -2px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c7c7c7, #3b3b3b); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.realm h3 { margin: 1rem 0 .1rem; color: #23170b; font-size: 1.7rem; }
.realm p { margin: 0; font-size: .9rem; font-weight: 700; color: #2b1a08; }
.realm.sealed .pic { display: grid; place-items: center; background: radial-gradient(circle, #3a2a16, #170f07); }
.realm.sealed .pic span { font-family: var(--font-display); font-size: 4rem; color: rgba(233,180,76,.75); text-shadow: 0 0 30px rgba(233,180,76,.4); }

/* rosters */
.roster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .roster { grid-template-columns: repeat(2, 1fr); } }
.unit {
  position: relative; text-align: center; padding: 22px 16px 20px; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 30%, var(--tint, rgba(166,232,60,.14)), transparent 70%), var(--bg-2);
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
}
.unit:hover { transform: translateY(-6px); border-color: var(--edge, rgba(166,232,60,.5)); }
.unit img { height: 190px; width: 100%; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)); transition: transform .35s ease; }
.unit:hover img { transform: scale(1.07) translateY(-4px); }
.unit h3 { font-size: 1.45rem; margin: 0; }
.unit p { margin: .2rem 0 0; font-size: .84rem; color: var(--muted); }
.unit .chip { display: inline-block; margin-top: 10px; font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 5px; background: rgba(255,255,255,.07); color: var(--gold); }
.unit.pet img { height: 150px; }
#locals { display: flex; flex-wrap: wrap; justify-content: center; }
#locals .unit { width: calc((100% - 54px) / 4); animation: unitin .45s cubic-bezier(.2,.8,.2,1) both; }
@media (max-width: 900px) { #locals .unit { width: calc((100% - 18px) / 2); } }
@keyframes unitin { from { opacity: 0; transform: translateY(14px); } }
#locals .unit .chip { color: var(--muted); }
#locals .unit.boss { border-color: rgba(233,180,76,.35); }
#locals .unit.boss .chip { color: #2a1a06; background: var(--gold); }
.realm-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 28px; }
.realm-pill {
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--bg-2);
  font-weight: 800; font-size: .84rem; letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s, background .2s, color .2s;
}
.realm-pill:hover { border-color: rgba(166,232,60,.5); }
.realm-pill[aria-selected="true"] { background: var(--slime); border-color: var(--slime); color: #142008; }
@media (max-width: 600px) { .realm-pills { justify-content: center; } .realm-pill { padding: 9px 16px; font-size: .76rem; } }
.two-col-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.two-col-head h2 { margin: 0; }
.two-col-head p { margin: 0; color: var(--muted); max-width: 46ch; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #000; aspect-ratio: 16 / 9; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gallery button:hover img { transform: scale(1.06); filter: brightness(1.1); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* faq */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 800; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--slime); transition: transform .25s; font-weight: 400; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.faq details[open] { border-color: rgba(166,232,60,.35); }

.steam-widget { max-width: 646px; margin: 0 auto 2.4rem; border-radius: 10px; overflow: hidden; }
.steam-widget iframe { display: block; width: 100%; height: 190px; border: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-art { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55); position: sticky; top: calc(var(--nav-h) + 20px); }
.contact-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 920px) { .contact-art { position: static; order: -1; max-width: 460px; margin-inline: auto; } .contact-art img { aspect-ratio: 16 / 11; } }
.topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6rem 0 2rem; }
.topic { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; transition: border-color .2s, background .2s, color .2s; }
.topic:hover { border-color: rgba(166,232,60,.5); }
.topic[aria-pressed="true"] { background: rgba(166,232,60,.14); border-color: var(--slime); color: var(--slime); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 7px; letter-spacing: .04em; }
.field label small { color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: #0e130f; border: 1px solid rgba(255,255,255,.14); color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--slime); box-shadow: 0 0 0 4px rgba(166,232,60,.15); }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.direct { margin-top: 2.2rem; padding: 22px 24px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.direct b { display: block; font-size: 1.1rem; word-break: break-all; }
.direct small { color: var(--muted); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; }
.copy-btn { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); cursor: pointer; font-weight: 700; font-size: .85rem; }
.copy-btn:hover { border-color: var(--slime); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(60px, 8vw, 100px); }
.info-cards .pillar a { color: var(--slime); font-weight: 700; }
@media (max-width: 860px) { .info-cards { grid-template-columns: 1fr; } }

/* ---------- press ---------- */
.press-grid { display: grid; grid-template-columns: 340px 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
@media (max-width: 900px) { .press-grid { grid-template-columns: 1fr; } }
.factsheet { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); padding: 28px; }
@media (max-width: 900px) { .factsheet { position: static; } }
.factsheet dl { margin: 0; display: grid; gap: 16px; }
.factsheet dt { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--slime); }
.factsheet dd { margin: 2px 0 0; font-weight: 600; }
.press-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 2.6rem; }
.press-body h2:first-child { margin-top: 0; }
.press-body ul { padding-left: 1.2em; color: #d6d3c6; }
.press-body li { margin-bottom: .5em; }
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; align-items: start; }
.dl { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s; }

.dl .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: repeating-conic-gradient(#1a201a 0 25%, #141914 0 50%) 0 0 / 22px 22px; padding: 14px; }
.dl .thumb img { width: 100%; height: 100%; object-fit: contain; }
.dl .thumb.photo { padding: 0; } .dl .thumb.photo img { width: 100%; height: 100%; object-fit: cover; }
.dl span { padding: 12px 14px; font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; gap: 8px; }
.dl span em { font-style: normal; color: var(--slime); }

/* ---------- footer ---------- */
.site-footer { background: #070a08; border-top: 1px solid var(--line); padding: 70px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
.footer-brand img { height: 54px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.site-footer h4 { font-family: var(--font-fantasy); font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--slime); margin: 6px 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; color: #cfcbbd; font-weight: 600; font-size: .95rem; }
.site-footer ul a:hover { color: var(--slime); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: #d9d6ca; transition: background .2s, color .2s, transform .2s; }
.socials a:hover { background: var(--slime); color: #142008; transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between; color: #7f8676; font-size: .84rem; }

/* ---------- modal / lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(3, 5, 4, 0.92); backdrop-filter: blur(6px); }
.modal.open { display: grid; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } }
.modal-inner { width: min(1280px, 100%); position: relative; }
.modal video, .modal img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 12px; background: #000; box-shadow: 0 30px 90px rgba(0,0,0,.8); }
.modal-close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.5); cursor: pointer; display: grid; place-items: center; font-size: 1.4rem; }
.modal-close:hover { background: var(--slime); color: #142008; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.55); cursor: pointer; font-size: 1.4rem; }
.lb-nav:hover { background: var(--slime); color: #142008; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; z-index: 120; padding: 12px 20px; border-radius: 12px; background: var(--slime); color: #142008; font-weight: 800; transition: opacity .25s, transform .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- scroll reveal ---------- */
/* only hide when the script is running, so a failed script never leaves the page blank */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; } .reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
