/* ===== Vu Studio: shared shell ===== */
:root {
  --ink: #15131c;
  --ink-2: #1f1c29;
  --line: #2e2a3b;
  --cream: #f4efe4;
  --muted: #a6a1b5;
  --gold: #ffd166;
  --radius: 14px;
  --px: "Pixelify Sans", ui-monospace, monospace;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.px { font-family: var(--px); letter-spacing: 0.02em; }
.pixelated { image-rendering: pixelated; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 19, 28, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--px); font-size: 1.45rem; font-weight: 700; text-decoration: none; letter-spacing: 0.04em; }
.brand b { color: var(--gold); font-weight: 700; }
nav { display: flex; gap: 22px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--cream); }

/* Animated sprite strips: set --w --h --n --k --dur on the element */
.sprite {
  --k: 3;
  width: calc(var(--w) * var(--k) * 1px);
  height: calc(var(--h) * var(--k) * 1px);
  background-repeat: no-repeat;
  background-size: calc(var(--n) * var(--w) * var(--k) * 1px) 100%;
  image-rendering: pixelated;
  animation: sprite-play var(--dur, 1.8s) steps(var(--n)) infinite;
  flex: none;
}
.sprite.flip { transform: scaleX(-1); }
@keyframes sprite-play { to { background-position-x: calc(var(--n) * var(--w) * var(--k) * -1px); } }

.s-pip       { --w: 24; --h: 26; --n: 7; --dur: 3.1s; background-image: url(/assets/pip-idle.png); }
.s-pip-wet   { --w: 24; --h: 26; --n: 2; --dur: 0.3s; background-image: url(/assets/pip-soaked.png); }
.s-nora-run  { --w: 32; --h: 32; --n: 6; --dur: 0.45s; background-image: url(/assets/nora-run.png); }
.s-nora-laugh{ --w: 32; --h: 32; --n: 2; --dur: 0.3s; background-image: url(/assets/nora-laugh.png); }
.s-cinderkid { --w: 32; --h: 32; --n: 4; --dur: 2.1s; background-image: url(/assets/cinderkid.png); }
.s-bramblet  { --w: 32; --h: 32; --n: 4; --dur: 2.1s; background-image: url(/assets/bramblet.png); }
.s-hushmoth  { --w: 32; --h: 32; --n: 6; --dur: 1.9s; background-image: url(/assets/hushmoth.png); }
.s-slippet  { --w: 32; --h: 32; --n: 6; --dur: 3s;   background-image: url(/assets/slippet.png); }
.s-kindlehorn{ --w: 48; --h: 48; --n: 4; --dur: 2.1s; background-image: url(/assets/kindlehorn.png); }

/* Hero */
.hero { padding: 72px 0 28px; text-align: center; }
.hero .eyebrow { display: inline-block; color: var(--gold); font-family: var(--px); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-family: var(--px); font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 0.95; margin: 0 0 18px; font-weight: 700; }
.hero h1 b { color: var(--gold); font-weight: 700; }
.hero p { color: var(--muted); max-width: 46ch; margin: 0 auto; font-size: 1.15rem; }

.cast { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2.4vw, 28px); padding: 40px 0 0; flex-wrap: nowrap; }
.cast .sprite { --k: 3; }
.cast .s-slippet { --k: 3.6; }
.shelf { height: 10px; background: linear-gradient(var(--line), transparent); border-top: 2px solid var(--line); margin: 0 auto; width: min(760px, 100%); }
.cast-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }

/* Section heading */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 76px 0 22px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--px); font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0; }
.sec-head span { color: var(--muted); font-weight: 700; }

/* Game worlds: each game is a band with its own palette */
.world {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 28px;
  color: var(--w-text);
  background: var(--w-bg);
}
.world .inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 48px; position: relative; z-index: 1; }
.world.reverse .inner { grid-template-columns: 1fr 1.05fr; }
.world.reverse .art { order: 2; }
.world h3 { margin: 0 0 6px; }
.world .tagline { font-size: 1.15rem; margin: 14px 0 18px; max-width: 42ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 800; background: var(--w-chip-bg); color: var(--w-chip-text); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-family: var(--px); font-size: 1.1rem; font-weight: 700; text-decoration: none;
  background: var(--w-accent, var(--gold)); color: var(--w-accent-text, var(--ink));
  box-shadow: 0 4px 0 var(--w-accent-dark, #b8892c);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--w-accent-dark, #b8892c); }
.btn.ghost { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; box-shadow: inset 0 0 0 3px currentColor; font-weight: 800; }
.btn.ghost:hover { transform: none; background: color-mix(in srgb, currentColor 26%, transparent); }
.btn.soon { cursor: default; }
.btn.soon:hover { transform: none; box-shadow: 0 4px 0 var(--w-accent-dark, #b8892c); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- Nora's Traps world: sage wallpaper, wood floor, pink-red --- */
.w-nora {
  --w-bg: repeating-linear-gradient(90deg, #a9c2a0 0 58px, #9fb996 58px 62px);
  --w-text: #2a1d33;
  --w-chip-bg: #f7f1e4;
  --w-chip-text: #6b3fa0;
  --w-accent: #e2445e;
  --w-accent-text: #fff;
  --w-accent-dark: #9e2539;
}
.w-nora .inner { padding-bottom: 96px; }
.w-nora .art img { border-radius: 14px; border: 4px solid #2a1d33; box-shadow: 8px 8px 0 rgba(42, 29, 51, 0.25); }
.w-nora .logo { width: min(320px, 80%); image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(42, 29, 51, 0.25)); }
.floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background:
    linear-gradient(#f3e3c4 0 6px, transparent 6px),
    repeating-linear-gradient(90deg, #c56a45 0 76px, #e8d2b0 76px 152px);
  border-top: 6px solid #5b3a2e;
  z-index: 1;
}
.runner { position: absolute; bottom: 52px; left: 0; z-index: 2; animation: run-across 9s linear infinite; }
.runner .sprite { --k: 2; }
@keyframes run-across { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 40px)); } }
.world .runner-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }

/* --- Glintholm world: endless dusk, lantern-moon, glint gold --- */
.w-glint {
  --w-bg:
    radial-gradient(circle at 92% 16%, #ffe2a3 0 30px, rgba(255, 214, 130, 0.28) 33px, rgba(255, 214, 130, 0.08) 80px, transparent 170px),
    linear-gradient(170deg, #2c2347 0%, #1d1830 55%, #141022 100%);
  --w-text: #f4efe4;
  --w-chip-bg: rgba(255, 214, 130, 0.14);
  --w-chip-text: #ffd682;
  --w-accent: #ffd682;
  --w-accent-text: #1d1830;
  --w-accent-dark: #b58a3c;
}
.glint-title { font-family: var(--px); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; margin: 0; color: #fff3d6; text-shadow: 0 0 18px rgba(255, 214, 130, 0.55), 0 3px 0 #b58a3c; letter-spacing: 0.04em; }
.glint-sub { font-family: var(--px); color: #ffd682; letter-spacing: 0.22em; text-transform: uppercase; font-size: 1rem; margin-top: 6px; }
.arena { position: relative; border-radius: 14px; overflow: hidden; border: 4px solid #0e0b18; box-shadow: 0 0 0 2px rgba(255, 214, 130, 0.25), 0 18px 40px rgba(0, 0, 0, 0.45); }
.arena > img { width: 100%; image-rendering: pixelated; }
.arena .fighter { position: absolute; bottom: 30%; }
.arena .fighter.left { left: 22%; }
.arena .fighter.right { right: 20%; bottom: 32%; }
.arena .sprite { --k: 2.6; }
.arena .s-slippet { --k: 2.85; }
.motes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.motes i { position: absolute; width: 4px; height: 4px; background: #ffd682; box-shadow: 0 0 8px #ffd682; border-radius: 1px; opacity: 0; animation: mote 7s linear infinite; }
@keyframes mote { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.9; } 100% { transform: translateY(260px); opacity: 0; } }

/* --- Next game slot --- */
.next {
  border: 2px dashed var(--line); border-radius: 22px; padding: 40px 32px; text-align: center; color: var(--muted);
}
.next .px { color: var(--cream); font-size: 1.5rem; display: block; margin-bottom: 6px; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 80px 0 40px; align-items: start; }
.about h2 { font-family: var(--px); font-size: 2.2rem; margin: 0 0 12px; }
.about p { color: var(--muted); margin: 0 0 14px; max-width: 58ch; }
.contact-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card .px { font-size: 1.3rem; display: block; margin-bottom: 6px; }
.contact-card p { color: var(--muted); margin: 0 0 18px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 0.9rem; margin-top: 40px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--cream); }

/* ===== Game pages ===== */
.g-hero { position: relative; overflow: hidden; color: var(--w-text); background: var(--w-bg); }
.g-hero .inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding: 64px 0 88px; position: relative; z-index: 1; }
.g-hero .status { display: inline-block; font-family: var(--px); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 8px; background: var(--w-chip-bg); color: var(--w-chip-text); margin-bottom: 18px; }
.g-hero .lead { font-size: 1.2rem; max-width: 44ch; margin: 18px 0 26px; }

.g-section { padding: 64px 0 0; }
.g-section h2 { font-family: var(--px); font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 8px; }
.g-section > .wrap > p.sub { color: var(--muted); margin: 0 0 26px; max-width: 60ch; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; border-radius: 12px; border: 3px solid var(--line); }
.gallery figcaption { color: var(--muted); font-size: 0.9rem; padding-top: 8px; }

.cast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.member { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.member .stage { height: 110px; display: flex; align-items: flex-end; }
.member .stage .s-slippet { --k: 3.3; }
.member .stage .s-kindlehorn { --k: 2.2; }
.member h3 { font-family: var(--px); margin: 0; font-size: 1.35rem; }
.member p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.member .el { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 9px; border-radius: 6px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-family: var(--px); margin: 0 0 6px; font-size: 1.25rem; color: var(--f-accent, var(--gold)); }
.feature p { margin: 0; color: var(--muted); }

.cta { margin-top: 64px; border-radius: 22px; padding: 40px; text-align: center; color: var(--w-text); background: var(--w-bg); position: relative; overflow: hidden; }
.cta h2 { font-family: var(--px); font-size: 2rem; margin: 0 0 8px; }
.cta p { margin: 0 0 22px; }
.cta .buttons { justify-content: center; }

/* Responsive */
@media (max-width: 860px) {
  .world .inner, .world.reverse .inner, .g-hero .inner, .about { grid-template-columns: 1fr; gap: 28px; }
  .world.reverse .art { order: 0; }
  .world .inner { padding: 28px 22px; }
  .w-nora .inner { padding-bottom: 92px; }
  .g-hero .inner { padding: 40px 0 88px; }
  nav { gap: 14px; }
  .cast .sprite { --k: 2; }
  .cast .s-slippet { --k: 2.4; }
  .hero { padding-top: 48px; }
}
@media (max-width: 480px) {
  nav a.hide-sm { display: none; }
  .cast .sprite { --k: 1.6; }
  .cast .s-slippet { --k: 1.95; }
  .cta { padding: 30px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sprite, .runner, .motes i { animation: none !important; }
  .runner { display: none; }
}

/* ===== Round 2: compact hero, notify button, interactive cast ===== */
.hero.compact { padding: 44px 0 30px; }
.hero.compact h1 { font-size: clamp(2rem, 5.6vw, 3.6rem); line-height: 1.05; margin-bottom: 12px; }
.hero.compact p { font-size: 1.1rem; }
.world { margin-bottom: 24px; }
.world .inner { padding: 36px 40px; }
.w-nora .inner { padding-bottom: 88px; }
.game-logo { margin: 0; }
.btn.sm { padding: 7px 14px; font-size: 0.95rem; border-radius: 10px; box-shadow: 0 3px 0 #b8892c; color: var(--ink); }
nav { align-items: center; }
nav .btn.sm:hover { transform: translateY(1px); box-shadow: 0 2px 0 #b8892c; color: var(--ink); }

.stage { background: var(--ink-2); border: 1px solid var(--line); border-radius: 22px; padding: 64px 16px 0; overflow: hidden; }
.stage-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 8px 4px; }
.stage-floor { height: 26px; margin: 0 -16px; background: repeating-linear-gradient(90deg, #2a2638 0 40px, #231f31 40px 80px); border-top: 3px solid var(--line); }
.char {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 168px; padding: 0 6px 12px;
  background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.char .sprite { --k: 5; transform-origin: 50% 100%; }
.char .s-pip { --k: 5; }
.char .s-slippet { --k: 4.95; }
.char .name { font-family: var(--px); font-size: 1.05rem; color: var(--muted); letter-spacing: 0.04em; }
.char:hover .name, .char.on .name, .char:focus-visible .name { color: var(--gold); }
.char:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 12px; }

.bubble {
  position: absolute; left: 50%; top: -34px; transform: translate(-50%, 6px);
  background: var(--cream); color: var(--ink);
  padding: 5px 10px; border-radius: 10px; white-space: nowrap;
  font-family: var(--px); font-weight: 700; font-size: 0.85rem;
  opacity: 0; pointer-events: none; transition: opacity 0.12s, transform 0.12s; z-index: 2;
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; background: var(--cream); transform: translateX(-50%) rotate(45deg); }
.char:hover .bubble, .char.on .bubble, .char:focus-visible .bubble { opacity: 1; transform: translate(-50%, 0); }

.char:hover .sprite, .char.on .sprite, .char:focus-visible .sprite {
  animation: sprite-play var(--dur, 1.8s) steps(var(--n)) infinite, hop 0.5s ease-in-out infinite;
}
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-16px); } }

/* Reaction animations swap in on hover */
.char:hover .s-pip, .char.on .s-pip, .char:focus-visible .s-pip { background-image: url(/assets/pip-soaked.png); --n: 2; --dur: 0.3s; }
.char:hover .s-nora-laugh, .char.on .s-nora-laugh, .char:focus-visible .s-nora-laugh { background-image: url(/assets/nora-run.png); --n: 6; --dur: 0.45s; }
.char:hover .s-bramblet, .char.on .s-bramblet, .char:focus-visible .s-bramblet { background-image: url(/assets/bramblet-atk.png); --n: 4; --dur: 0.32s; }
.char:hover .s-cinderkid, .char.on .s-cinderkid, .char:focus-visible .s-cinderkid { background-image: url(/assets/cinderkid-atk.png); --n: 4; --dur: 0.24s; }
.char:hover .s-hushmoth, .char.on .s-hushmoth, .char:focus-visible .s-hushmoth { background-image: url(/assets/hushmoth-atk.png); --n: 4; --dur: 0.4s; }
.char:hover .s-slippet, .char.on .s-slippet, .char:focus-visible .s-slippet { background-image: url(/assets/slippet-atk.png); --n: 6; --dur: 0.48s; }

@media (max-width: 860px) {
  .world .inner { padding: 26px 20px; }
  .w-nora .inner { padding-bottom: 88px; }
  .hero.compact { padding-top: 32px; }
  .char { width: 30%; min-width: 104px; }
  .char .sprite { --k: 3.6; }
  .char .s-slippet { --k: 3.6; }
  .char .s-pip { --k: 3.6; }
}
@media (max-width: 640px) { nav a.hide-sm { display: none; } }

/* Email popover */
.mailpop { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(10,8,16,.6); padding: 16px; }
.mailpop.open { display: flex; }
.mailpop .box { background: #fff7e6; color: var(--ink); border-radius: 16px; padding: 24px; max-width: 380px; width: 100%; box-shadow: 0 8px 0 rgba(0,0,0,.25); text-align: center; }
.mailpop .addr { font-family: 'Pixelify Sans', sans-serif; font-size: 1.2rem; margin: 10px 0 16px; word-break: break-all; }
.mailpop .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.mailpop .btn { font-size: .95rem; }
.mailpop .ghost { color: var(--ink); }
.mailpop .x { margin-top: 14px; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
