/* Deep Regrats: the website. Plain CSS, no build step. Fonts are self-hosted (assets/fonts, SIL OFL). */

@font-face { font-family: "Cinzel Decorative"; src: url("../fonts/cinzel-decorative-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Cinzel Decorative"; src: url("../fonts/cinzel-decorative-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pirata One"; src: url("../fonts/pirata-one-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0c0a0f;
  --bg-2: #141117;
  --stone: #1c1921;
  --stone-2: #26222c;
  --stone-3: #332e3a;
  --line: rgba(232, 182, 76, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);
  --text: #ece4d6;
  --muted: #b9ae9f;
  --dim: #8d8478;
  --gold: #e8b64c;
  --gold-hi: #ffe2a0;
  --gold-lo: #a8741f;
  --torch: #ff8a2b;
  --ember: #ff5a1f;
  --purple: #9b6dff;
  --purple-lo: #3b2366;
  --radius: 14px;
  --nav-h: 64px;
  --display: "Cinzel Decorative", "Trajan Pro", Georgia, serif;
  --head: "Pirata One", "Cinzel Decorative", Georgia, serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.125rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 400; }
h2 { font-family: var(--head); font-size: clamp(2.3rem, 5.5vw, 4rem); color: var(--gold); letter-spacing: .01em; }
h3 { font-family: var(--head); font-size: 1.7rem; color: var(--text); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1206; padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; gap: 20px; padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-left));
  transition: background .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.scrolled, .nav.solid { background: rgba(12, 10, 15, .82); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font-family: var(--display); font-weight: 900; font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; }
.brand-logo { height: 46px; width: auto; overflow: visible; margin-top: 6px; }
.brand-logo .tt { font-family: var(--display); font-weight: 900; font-size: 108px; letter-spacing: 4px; }
.brand-logo .scrawl, .brand-logo .scribe { fill: none; stroke: #e5372a; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.brand-logo .scrawl { animation: ink .5s ease-out .9s forwards; }
.brand-logo .scribe { stroke: #ff5a48; animation: ink .45s ease-out 1.4s forwards; }
.brand-logo .scribe.tick { animation-delay: 1.3s; animation-duration: .25s; }
@media (prefers-reduced-motion: reduce) { .brand-logo .scrawl, .brand-logo .scribe { animation: none; stroke-dashoffset: 0; } }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(0,0,0,.5); }
.nav .links { display: flex; gap: 4px; margin-left: auto; }
.nav .links a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--text); background: rgba(255,255,255,.06); }
.nav .menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 8px 14px; font: 700 1rem var(--body); cursor: pointer; }
@media (max-width: 400px) { .brand { font-size: .9rem; gap: 8px; } .brand img { width: 30px; height: 30px; } }
@media (max-width: 860px) {
  .nav .menu-btn { display: inline-block; }
  .nav .links { position: absolute; top: var(--nav-h); right: 12px; left: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--radius);
    background: rgba(20, 17, 23, .97); box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.6); display: none; }
  .nav.open .links { display: flex; }
  .nav .links a { padding: 12px 14px; font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); overflow: hidden; isolation: isolate; display: grid; background: #0b090d; }
.scene { position: absolute; inset: 0; z-index: -1; }
.scene .layer { position: absolute; inset: -4%; width: 108%; height: 108%; will-change: transform;
  transform: translate3d(calc(var(--px, 0) * var(--d) * -1px), calc(var(--py, 0) * var(--d) * -1px + var(--sy, 0) * var(--d) * .06px), 0); }
.scene svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* The arch keeps a sensible size on tall, narrow screens: its box is at most 160vw tall, standing on the floor. */
.scene .layer.arch { top: auto; bottom: -4%; height: min(108%, 160vw); }
.scene .glow { position: absolute; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; }
.scene .stair-glow { left: 50%; top: 58%; width: 46vmax; height: 46vmax; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 190, 110, .55), rgba(255, 120, 40, .18) 45%, transparent 72%); animation: breathe 6s ease-in-out infinite; }
.scene .torch { width: 34vmax; height: 34vmax; translate: -50% -50%; top: var(--ty); left: var(--tx);
  background: radial-gradient(closest-side, rgba(255, 150, 50, .5), rgba(255, 90, 20, .16) 50%, transparent 75%); animation: flicker 2.3s infinite steps(1, end); }
.scene .torch.r { animation-duration: 2.9s; animation-delay: -1.1s; }
.scene .fog { position: absolute; inset: auto -20% -6% -20%; height: 38%; background:
  radial-gradient(40% 60% at 30% 70%, rgba(150, 120, 190, .16), transparent 70%),
  radial-gradient(35% 50% at 70% 80%, rgba(120, 100, 160, .14), transparent 70%); filter: blur(10px); animation: drift 22s ease-in-out infinite alternate; }
.scene .vignette { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 55%, transparent 45%, rgba(5, 4, 7, .85) 100%),
  linear-gradient(to bottom, rgba(8, 6, 10, .65), transparent 22%, transparent 70%, var(--bg) 100%); }
#embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

@keyframes breathe { 0%, 100% { opacity: .85; scale: 1; } 50% { opacity: 1; scale: 1.06; } }
@keyframes flicker { 0% { opacity: .9; } 8% { opacity: .7; } 15% { opacity: 1; } 31% { opacity: .78; } 44% { opacity: .95; } 52% { opacity: .68; } 63% { opacity: 1; } 79% { opacity: .82; } 88% { opacity: .97; } }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

.hero-inner { position: relative; z-index: 1; align-self: stretch; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--nav-h) + clamp(18px, 5vh, 56px)) 16px clamp(28px, 5vh, 56px); }
.eyebrow { font-weight: 800; letter-spacing: .32em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin: 0 0 14px; }
.title { margin: 0; width: min(100%, 920px); line-height: 0; }
.title svg { display: block; width: 100%; height: auto; overflow: visible; }
.title .tt { font-family: var(--display); font-weight: 900; font-size: 108px; letter-spacing: 4px; }
/* The deliberate typo: the A is scribbled out and a small red e is written below it. */
.title .scrawl, .title .scribe { fill: none; stroke: #e5372a; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.title .scrawl { stroke-width: 5.4; animation: ink .55s ease-out 1.9s forwards; }
.title .scribe { stroke: #ff5a48; stroke-width: 5.2; animation: ink .5s ease-out 2.4s forwards; }
.title .scribe.tick { stroke-width: 3.6; animation-delay: 2.25s; animation-duration: .3s; }
@keyframes ink { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .title .scrawl, .title .scribe { animation: none; stroke-dashoffset: 0; } }

.tagline { line-height: 1.15; margin: clamp(14px, 3vh, 26px) 0 0; font-family: var(--head); font-size: clamp(1.6rem, 4.2vw, 2.6rem); color: var(--text); text-shadow: 0 2px 12px #000; }
.tagline .t1, .tagline .t2 { display: block; opacity: 0; animation: rise .9s ease-out forwards; }
.tagline .t1 { animation-delay: .5s; }
.tagline .t2 { animation-delay: 2.3s; color: var(--gold-hi); font-size: .8em; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.hero-spacer { flex: 1; min-height: clamp(150px, 30vh, 380px); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; opacity: 0; animation: rise .8s ease-out 1.2s forwards; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 20px 9px 14px; border-radius: 14px; text-decoration: none; text-align: left;
  color: var(--text); background: rgba(14, 12, 17, .82); box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .2s, box-shadow .2s;
}
.badge svg { flex: none; }
.badge small { display: block; font-size: .78rem; line-height: 1.2; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.badge b { display: block; font-size: 1.2rem; line-height: 1.15; font-weight: 800; }
a.badge:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--gold), 0 14px 34px rgba(0,0,0,.6); color: var(--text); }
.badge[aria-disabled="true"] { cursor: default; }
.badge.primary { background: linear-gradient(180deg, #f6cf72, #d99a2b); color: #1d1204; box-shadow: 0 0 0 1px #ffe6a8, 0 10px 30px rgba(255, 140, 40, .3); }
.badge.primary small { color: #4a300a; }
.hero-note { margin: 14px 0 0; font-size: .95rem; color: var(--muted); opacity: 0; animation: rise .8s ease-out 1.6s forwards; }
.scroll-cue { margin-top: 18px; color: var(--muted); text-decoration: none; font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; opacity: 0; animation: rise .8s ease-out 2.6s forwards; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 8px auto 0; background: linear-gradient(var(--gold), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

@media (max-width: 700px) {
  .hero-note, .scroll-cue { display: none; }
  .scene .layer.arch { bottom: 92px; }
  .badge { min-width: 250px; }
}

/* Kevin crossing the hero */
.crosser { position: absolute; bottom: 7%; left: 0; width: 80px; aspect-ratio: 399 / 320; z-index: 1; pointer-events: none;
  animation: cross 26s linear 4s infinite; transform: translateX(-120px); }
.crosser .sprite { width: 100%; height: 100%; }
@keyframes cross { 0% { transform: translateX(-120px); } 40%, 100% { transform: translateX(calc(100vw + 40px)); } }

/* ---------- Sprites (frames side by side; any size via aspect-ratio) ---------- */
.sprite { background-repeat: no-repeat; background-size: calc(var(--n) * 100%) 100%; background-position: 0 0;
  animation: frames var(--dur, .9s) steps(var(--n), jump-none) infinite; image-rendering: auto; }
@keyframes frames { from { background-position: 0 0; } to { background-position: 100% 0; } }
.paused .sprite, .sprite.paused { animation-play-state: paused; }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, #120f15, #1a1520, #120f15); padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.marquee li { font-family: var(--head); font-size: 1.6rem; color: var(--muted); padding: 0 22px; white-space: nowrap; }
.marquee li::after { content: "✦"; color: var(--gold); font-size: .8rem; margin-left: 44px; vertical-align: middle; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { position: relative; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.band { padding: clamp(72px, 11vw, 140px) 0; }
.band.alt { background: linear-gradient(180deg, var(--bg), #120f16 15%, #120f16 85%, var(--bg)); }
.kicker { font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--torch); font-size: .82rem; margin: 0 0 10px; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 60ch; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card {
  position: relative; padding: 26px 24px 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--stone-2), var(--stone) 60%); box-shadow: 0 0 0 1px var(--line-soft), 0 20px 40px rgba(0,0,0,.35);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s; transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 180, 90, .12), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 0 0 1px var(--line), 0 26px 50px rgba(0,0,0,.45); }
.card .ico { width: 56px; height: 56px; margin-bottom: 14px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,0,0,.3); box-shadow: inset 0 0 0 1px var(--line); }
.card .ico img { width: 46px; height: 46px; object-fit: contain; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }
.card .aside { display: block; margin-top: 10px; color: var(--dim); font-style: italic; font-size: 1rem; }

/* Monsters */
.regions { display: grid; gap: clamp(28px, 4vw, 44px); }
.region h3 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.9rem; margin-bottom: 14px; color: var(--gold-hi); }
.region h3 small { font-family: var(--body); font-size: .95rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.monsters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.monster { position: relative; display: grid; grid-template-rows: 150px auto; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 55% at 50% 72%, var(--glow, rgba(255,140,60,.13)), transparent 70%), linear-gradient(180deg, #1a171e, #121014);
  box-shadow: 0 0 0 1px var(--line-soft); transition: box-shadow .25s, transform .25s; }
.monster:hover { box-shadow: 0 0 0 1px var(--line), 0 18px 34px rgba(0,0,0,.45); transform: translateY(-3px); }
.monster .stage { position: relative; display: grid; place-items: end center; padding-bottom: 14px; }
.monster .stage::after { content: ""; position: absolute; bottom: 12px; left: 50%; width: 70px; height: 14px; translate: -50% 0; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(3px); z-index: 0; }
.monster .sprite { position: relative; z-index: 1; height: calc(var(--h) * 1px * var(--k, 1.15)); aspect-ratio: var(--w) / var(--h); max-height: 136px; }
.monster .info { padding: 12px 16px 16px; border-top: 1px solid var(--line-soft); }
.monster h4 { margin: 0 0 4px; font-family: var(--head); font-weight: 400; font-size: 1.35rem; color: var(--text); }
.monster p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.catacombs { --glow: rgba(160, 120, 255, .16); }
.caves { --glow: rgba(120, 200, 120, .13); }
.sewers { --glow: rgba(140, 200, 80, .14); }
.frozen { --glow: rgba(120, 190, 255, .16); }
.inferno { --glow: rgba(255, 110, 40, .2); }

.bosses { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.bosses figure { margin: 0; position: relative; }
.bosses figure img { border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(155, 109, 255, .22); }
.bosses figcaption { margin-top: 12px; color: var(--dim); font-size: .95rem; text-align: center; font-style: italic; }
.boss-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; counter-reset: floor; }
.boss-list li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-soft); }
.boss-list .fl { font-weight: 800; color: var(--torch); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.boss-list b { font-family: var(--head); font-weight: 400; font-size: 1.35rem; color: var(--gold-hi); }
.boss-list span.q { display: block; color: var(--muted); font-size: 1rem; font-style: italic; }
@media (max-width: 760px) { .bosses { grid-template-columns: 1fr; } .bosses figure { max-width: 320px; margin-inline: auto; } }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.class-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.class-card .stage { position: relative; height: 230px; display: grid; place-items: end center; padding-bottom: 22px;
  background: radial-gradient(60% 60% at 50% 80%, var(--c, rgba(255,150,60,.25)), transparent 70%), linear-gradient(180deg, #0f0d12, #1d1a22); }
.class-card .stage::after { content: ""; position: absolute; bottom: 18px; left: 50%; width: 110px; height: 20px; translate: -50% 0; border-radius: 50%; background: rgba(0,0,0,.6); filter: blur(4px); }
.class-card .sprite { position: relative; z-index: 1; height: calc(var(--h) * 1.3px); aspect-ratio: var(--w) / var(--h); }
.class-card .sprite.attack { display: none; --dur: .7s; }
.class-card:hover .sprite.walk, .class-card:focus-within .sprite.walk, .class-card.attacking .sprite.walk { display: none; }
.class-card:hover .sprite.attack, .class-card:focus-within .sprite.attack, .class-card.attacking .sprite.attack { display: block; }
.class-card .emblem { position: absolute; top: 14px; left: 14px; width: 54px; height: 54px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }
.class-card .body { padding: 20px 22px 24px; }
.class-card .tag { color: var(--torch); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.class-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.class-card li { font-size: .92rem; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-soft); }
.class-card .try { margin-top: 14px; background: none; border: 1px solid var(--line); color: var(--gold-hi); font: 700 .95rem var(--body); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.barbarian { --c: rgba(255, 110, 50, .28); }
.ranger { --c: rgba(110, 210, 120, .22); }
.sorcerer { --c: rgba(155, 109, 255, .3); }

/* Kevin */
.kevin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.kevin-stage { position: relative; display: grid; place-items: center; min-height: 500px; padding-bottom: 36px; border-radius: 28px;
  background: radial-gradient(55% 50% at 50% 62%, rgba(155, 109, 255, .28), transparent 70%), linear-gradient(180deg, #120f17, #1b1622); box-shadow: 0 0 0 1px var(--line-soft); overflow: hidden; }
.kevin-stage::after { content: ""; position: absolute; bottom: 64px; left: 50%; width: 150px; height: 26px; translate: -50% 0; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(5px); }
.kevin-cat { position: relative; z-index: 1; width: 170px; aspect-ratio: 283 / 591; margin-top: 44px; }
.kevin-cat img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease, transform .45s cubic-bezier(.3,1.6,.5,1); transform: translateY(6px); }
.kevin-cat img.on { opacity: 1; transform: none; }
/* Kevin is never quite still: he breathes, sways a little, nods at his own remarks and hops when he gets a new hat. */
.kevin-cat { transform-origin: 50% 96%; animation: kbreathe 3.8s ease-in-out infinite, ksway 9s ease-in-out infinite, klook 11s ease-in-out infinite; }
.kevin-cat.react { animation: kbreathe 3.8s ease-in-out infinite, ksway 9s ease-in-out infinite, klook 11s ease-in-out infinite, knod .7s ease-out 1; }
.kevin-cat.pop { animation: kbreathe 3.8s ease-in-out infinite, ksway 9s ease-in-out infinite, klook 11s ease-in-out infinite, khop .7s cubic-bezier(.3,1.4,.5,1) 1; }
@keyframes kbreathe { 0%, 100% { scale: 1 1; } 50% { scale: 1.012 1.026; } }
@keyframes ksway { 0%, 100% { rotate: -.7deg; } 50% { rotate: .7deg; } }
@keyframes klook { 0%, 62%, 100% { translate: 0 0; } 68%, 78% { translate: -5px 0; } 84%, 94% { translate: 5px 0; } }
@keyframes knod { 0% { translate: 0 0; } 30% { translate: 0 5px; } 100% { translate: 0 0; } }
@keyframes khop { 0% { translate: 0 0; } 35% { translate: 0 -22px; } 70% { translate: 0 2px; } 100% { translate: 0 0; } }
.kevin-stage::after { animation: kshadow 3.8s ease-in-out infinite; }
@keyframes kshadow { 0%, 100% { scale: 1 1; opacity: 1; } 50% { scale: 1.05 1; opacity: .85; } }
.bubble:not(.swap) { animation: bpop .4s cubic-bezier(.3,1.5,.5,1); }
@keyframes bpop { from { transform: scale(.94); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .kevin-cat, .kevin-cat.react, .kevin-cat.pop, .kevin-stage::after, .bubble:not(.swap) { animation: none; } }
.bubble { position: absolute; z-index: 2; top: 28px; left: 50%; translate: -50% 0; width: min(86%, 360px); padding: 14px 18px; border-radius: 16px; background: #f4ecdc; color: #20180f;
  font-weight: 700; font-size: 1.12rem; line-height: 1.35; text-align: center; box-shadow: 0 12px 30px rgba(0,0,0,.45); transition: opacity .35s, transform .35s; }
.bubble::after { content: ""; position: absolute; bottom: -10px; left: 50%; translate: -50% 0; border: 10px solid transparent; border-bottom: 0; border-top-color: #f4ecdc; }
.bubble.swap { opacity: 0; transform: translateY(-6px); }
.bubble cite { display: block; font-style: normal; font-size: .8rem; color: #7a6a55; margin-top: 4px; letter-spacing: .1em; text-transform: uppercase; }
.kevin-controls { position: absolute; z-index: 2; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); font: 700 1rem var(--body); padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, border-color .2s; }
.btn:hover { background: rgba(232, 182, 76, .14); border-color: var(--gold); }
.hats { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.hats li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-soft); cursor: pointer; transition: background .2s, box-shadow .2s; }
.hats li:hover, .hats li.on { background: rgba(155, 109, 255, .1); box-shadow: inset 0 0 0 1px rgba(155, 109, 255, .45); }
.hats li button { all: unset; display: contents; cursor: pointer; }
.hats img { width: 44px; height: 44px; object-fit: contain; }
.hats b { display: block; font-size: 1rem; line-height: 1.25; }
.hats span { display: block; font-size: .9rem; color: var(--dim); line-height: 1.3; }
@media (max-width: 860px) { .kevin { grid-template-columns: 1fr; } }

/* Screens */
.carousel { position: relative; }
.shots { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(16px, calc((100vw - 1180px) / 2)) 30px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--stone-3) transparent; overscroll-behavior-x: contain; }
.shots li { flex: none; width: min(78vw, 780px); scroll-snap-align: center; }
.device { position: relative; padding: 12px; border-radius: 38px; background: linear-gradient(145deg, #3a3542, #17141b 40%, #2a2630); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px rgba(0,0,0,.55); }
.device img { width: 100%; aspect-ratio: 2282 / 1206; object-fit: cover; border-radius: 27px; background: #000; }
.device::before { content: ""; position: absolute; left: 22px; top: 50%; width: 9px; height: 64px; translate: 0 -50%; border-radius: 6px; background: #050406; z-index: 1; opacity: .9; }
.shots figcaption { margin-top: 14px; color: var(--muted); text-align: center; font-size: 1.05rem; }
.shots figcaption b { color: var(--text); font-family: var(--head); font-weight: 400; font-size: 1.35rem; margin-right: 6px; }
.carousel-nav { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.carousel-nav .btn { width: 48px; height: 48px; justify-content: center; padding: 0; font-size: 1.3rem; }
@media (max-width: 600px) { .shots li { width: 88vw; } .device { padding: 7px; border-radius: 24px; } .device img { border-radius: 18px; } .device::before { display: none; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--radius); background: linear-gradient(160deg, var(--stone-2), var(--stone)); box-shadow: 0 0 0 1px var(--line-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; position: relative; font-weight: 800; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; color: var(--gold); font-size: 1.6rem; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: #09080b; color: var(--dim); font-size: 1rem; }
footer .inner { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer .spacer { flex: 1; }
footer a { color: var(--muted); }
footer .made { font-family: var(--head); color: var(--gold); font-size: 1.25rem; }

/* ---------- Legal pages ---------- */
.legal { width: min(780px, 100% - 32px); margin: 0 auto; padding: calc(var(--nav-h) + 48px) 0 80px; }
.legal h1 { font-family: var(--head); font-size: clamp(2.6rem, 7vw, 4rem); color: var(--gold); margin-bottom: .2em; }
.legal h2 { font-family: var(--body); font-weight: 800; font-size: 1.4rem; color: var(--gold-hi); margin: 2.2em 0 .6em; letter-spacing: 0; }
.legal h3 { font-family: var(--body); font-weight: 800; font-size: 1.1rem; margin: 1.4em 0 .4em; }
.legal .date { color: var(--dim); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .55em; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--text); }
.legal p, .legal li { color: #d9d0c2; }
.legal .toc { margin: 24px 0 8px; padding: 16px 20px; border-radius: var(--radius); background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-soft); columns: 2 220px; font-size: 1rem; }
.legal .toc a { color: var(--muted); display: block; padding: 2px 0; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); margin-left: auto; }
.lang-switch a { padding: 5px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 800; font-size: .9rem; }
.lang-switch a[aria-current] { background: var(--gold); color: #1d1204; }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px 16px; }
.notfound h1 { font-family: var(--display); font-weight: 900; color: var(--gold); font-size: clamp(4rem, 16vw, 9rem); margin: 0; }

/* ---------- Reduced motion: everything still, nothing missing ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .sprite { animation: none !important; }
  .scene .layer { transform: none !important; }
  .crosser { display: none; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; }
  .marquee ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; }
  [data-reveal] { opacity: 1; transform: none; }
  .card { transform: none !important; }
}

/* ---------- Monster of the moment ---------- */
.spot { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; max-width: 980px; margin: 8px auto 0; transition: opacity .26s ease, transform .26s ease; }
.spot.swap .spot-stage .sprite, .spot.swap .spot-body > *:not(.spot-controls):not(.spot-bar) { opacity: 0; transform: translateY(8px); }
.spot-stage { position: relative; min-height: 230px; display: grid; place-items: end center; padding-bottom: 36px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 70%, rgba(140, 90, 255, .20), rgba(20, 16, 28, .0) 62%), linear-gradient(180deg, #17121e, #0f0c14);
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0,0,0,.55); }
.spot-glow { position: absolute; inset: auto 10% 8% 10%; height: 40%; background: radial-gradient(ellipse at 50% 100%, rgba(255, 150, 60, .28), transparent 70%); filter: blur(10px); }
.spot-shadow { position: absolute; bottom: 28px; left: 50%; width: 150px; height: 24px; translate: -50% 0; border-radius: 50%; background: rgba(0,0,0,.55); filter: blur(7px); }
.spot-stage .sprite { position: relative; z-index: 1; transition: opacity .26s ease, transform .26s ease; max-width: 90%; }
.spot-body { min-width: 0; }
.spot-body > * { transition: opacity .26s ease, transform .26s ease; }
.spot-where { margin: 0 0 8px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: .8rem; color: var(--torch); }
.spot-name { margin: 0 0 12px; font-family: var(--head); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1; color: var(--gold-hi); }
.spot-desc { margin: 0; font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.5; color: var(--text); max-width: 34ch; min-height: 4.6em; }
.spot-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.spot-count { color: var(--dim); font-size: .92rem; letter-spacing: .06em; }
.spot-bar { margin-top: 18px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; max-width: 340px; }
.spot-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--torch), var(--gold)); transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) { .spot { grid-template-columns: 1fr; text-align: center; } .spot-stage { min-height: 220px; } .spot-desc { margin-inline: auto; min-height: 0; } .spot-controls, .spot-bar { justify-content: center; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .spot, .spot-body > *, .spot-stage .sprite { transition: none; } }
