/* Self-hosted fonts (no request to Google): Fraunces variable + Outfit, latin subset */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2-variations"), url("assets/fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("assets/fonts/outfit-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("assets/fonts/outfit-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("assets/fonts/outfit-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url("assets/fonts/outfit-latin-700.woff2") format("woff2"); }

:root {
  --ink: #fff4e8;
  --ink-soft: #d9d3f5;
  --night: #15134a;
  --night-2: #221c66;
  --coral: #ff6b57;
  --coral-2: #ff8a5c;
  --on-coral: #1a1448;
  --cyan: #35e0ff;
  --magenta: #e048ff;
  --live: #4ade80;
  --soon: #f9c96b;
  --dev: #c4b5fd;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--night);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }

/* ---------- Sky & spores ---------- */
.sky {
  position: fixed; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(21,19,74,0) 55%, rgba(21,19,74,.55) 100%),
    url("assets/img/sky.webp") center 30% / cover no-repeat,
    var(--night);
}
.spores { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background .3s, backdrop-filter .3s;
}
.nav.is-scrolled { background: rgba(21,19,74,.72); backdrop-filter: blur(12px); }
.nav__logo img { width: 132px; height: auto; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; opacity: .9; }
.nav__links a:hover { opacity: 1; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary { background: linear-gradient(135deg, var(--coral), var(--coral-2)); color: var(--on-coral); box-shadow: 0 8px 28px -8px rgba(255,107,87,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(255,107,87,.9); }
.btn--ghost { border-color: rgba(255,244,232,.45); color: var(--ink); background: rgba(255,255,255,.04); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px;
  max-width: 1320px; margin: 0 auto;
  padding: 120px clamp(16px, 4vw, 48px) 60px;
}
.scene { position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); width: 100vw; overflow: hidden; pointer-events: none; z-index: -1; }
.scene__rock {
  position: absolute; left: -4vw; top: 40px;
  width: clamp(260px, 30vw, 470px);
  aspect-ratio: 900 / 1204;
}
.scene__rock img { width: 100%; height: 100%; filter: saturate(.9) brightness(.82); }
/* waterfall canvas: starts at the lip of the stream (87%, 42.8%) */
.waterfall {
  position: absolute; left: 79.7%; top: 41.5%;
  width: 15%; height: 115%;
  pointer-events: none;
}
.scene__far { position: absolute; right: 2vw; top: 18vh; width: clamp(80px, 9vw, 150px); opacity: .55; filter: blur(.6px); }

.hero__text { position: relative; z-index: 2; }
.hero__text::before { content: ""; position: absolute; inset: -12% -18% -14% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(21,19,74,.62), rgba(21,19,74,0)); }
.hero h1 {
  font-size: clamp(46px, 7vw, 96px); line-height: .98; letter-spacing: -.02em;
  text-shadow: 0 6px 40px rgba(10,8,40,.6);
}
.hero p { font-size: clamp(18px, 1.7vw, 22px); color: var(--ink-soft); max-width: 470px; margin: 22px 0 32px; line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__island { justify-self: center; width: min(100%, 600px); perspective: 1200px; }
.hero__island img { width: 100%; height: auto; animation: bob 7s ease-in-out infinite; filter: drop-shadow(0 40px 60px rgba(8,6,40,.55)); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 90px clamp(16px, 4vw, 48px); }
.section__title { display: flex; align-items: center; gap: 22px; justify-content: center; text-align: center;
  font-size: clamp(30px, 4vw, 46px); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 26px; }
.section__title::before, .section__title::after { content: ""; flex: 1; max-width: 260px; height: 1px; background: linear-gradient(90deg, transparent, var(--coral)); }
.section__title::after { background: linear-gradient(90deg, var(--coral), transparent); }
.section__lead { text-align: center; max-width: 720px; margin: 0 auto 50px; color: var(--ink-soft); font-size: 18px; line-height: 1.55; }
.center { display: flex; justify-content: center; }

/* ---------- Games grid ---------- */
.games { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 32px; }
.game { display: flex; flex-direction: column; align-items: center; text-align: center; }
.game:nth-child(3n+2) { margin-top: 40px; }

.isle {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / 1;
  perspective: 900px; cursor: pointer; border: 0; background: none; padding: 0; color: inherit;
}
.isle__float { position: absolute; inset: 0; animation: bob 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.isle__tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.isle__ground { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(8,6,40,.6)); transition: filter .35s; }
.isle__shadow { position: absolute; left: var(--cx, 50%); bottom: var(--cb, 50%); width: 30%; height: 6%; transform: translate(-50%, 50%); background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); }
.isle__char {
  position: absolute; left: var(--cx, 50%); bottom: var(--cb, 50%); height: var(--ch, 45%); width: auto; max-width: none;
  transform: translateX(-50%); transform-origin: 50% 100%;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
}
.isle__fx { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.isle:hover .isle__tilt, .isle:focus-visible .isle__tilt { --lift: -10px; }
.isle:hover .isle__ground { filter: drop-shadow(0 34px 34px rgba(8,6,40,.6)) drop-shadow(0 0 26px var(--glow, rgba(53,224,255,.45))); }

.game__logo { height: 78px; width: auto; max-width: 92%; object-fit: contain; margin: 4px auto 12px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.game__meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #19163f; }
.pill--live { background: var(--live); }
.pill--soon { background: var(--soon); }
.pill--dev { background: var(--dev); }
.linkbtn { background: none; border: 0; color: var(--ink-soft); font: 500 14px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 4px; }
.linkbtn:hover { color: #fff; }

/* ---------- Hover effects ---------- */
/* La Secousse: the whole island quakes */
.isle[data-fx="quake"].is-active .isle__tilt { animation: quake .5s linear 2; }
.isle[data-fx="quake"].is-active .isle__char { animation: hop .5s ease-out 2; }
/* Goblin's Fury: Razka lunges, fire glow */
.isle[data-fx="embers"].is-active .isle__char { animation: lunge 1s ease-in-out; }
/* Krag's Town: stomp then the town shakes */
.isle[data-fx="stomp"].is-active .isle__char { animation: stomp 1.1s cubic-bezier(.3,.1,.3,1); }
.isle[data-fx="stomp"].is-active .isle__tilt { animation: quake .35s linear .55s 1; }
/* Sam Ourai: jump and slash */
.isle[data-fx="slash"].is-active .isle__char { animation: slashjump .9s ease-out; }
/* Hollow Harvest: blackout + lightning */
.isle[data-fx="storm"].is-active .isle__char { animation: sway 1.4s ease-in-out; }
/* Anselme's Workshop: gears + nod */
.isle[data-fx="gears"].is-active .isle__char { animation: nod 1.4s ease-in-out; }

.fx-dark { position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(5,4,25,.85), rgba(5,4,25,0)); opacity: 0; animation: blackout 1.4s ease-in-out forwards; }
.fx-bolt { position: absolute; left: 58%; top: -18%; width: 26%; height: 70%; opacity: 0; filter: drop-shadow(0 0 10px #c9b8ff) drop-shadow(0 0 24px #8f7bff); animation: bolt 1.4s steps(1) forwards; }
.fx-flash { position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(220,215,255,.75), transparent); opacity: 0; animation: flash 1.4s ease-out forwards; mix-blend-mode: screen; }
.fx-glow { position: absolute; inset: 10% 15% 35%; border-radius: 50%; background: radial-gradient(closest-side, var(--fxglow, rgba(255,120,40,.6)), transparent); animation: glowpulse 1s ease-in-out forwards; mix-blend-mode: screen; }
.fx-slash { position: absolute; left: 8%; top: 0; width: 84%; height: 70%; overflow: visible; }
.fx-slash path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: slash .45s ease-out .25s forwards; }
.fx-gear { position: absolute; width: var(--s); height: var(--s); left: var(--x); top: var(--y); opacity: 0; animation: gearin 1.6s ease-out forwards, spin 1.6s linear; }
.fx-gear.rev { animation: gearin 1.6s ease-out forwards, spinrev 1.6s linear; }
.fx-p { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); animation: particle var(--d, 1.2s) ease-out forwards; }
.fx-p.coin { background: radial-gradient(circle at 35% 35%, #fff4b0, #f5b301 55%, #a86b00); box-shadow: 0 0 6px rgba(255,200,40,.8); }
.fx-p.petal { border-radius: 70% 0 70% 0; box-shadow: none; }
.fx-p.dust { background: radial-gradient(closest-side, rgba(255,235,210,.8), transparent); box-shadow: none; }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes quake {
  0%,100% { transform: translate(0,0); } 10% { transform: translate(-6px,2px) rotate(-.6deg); } 20% { transform: translate(5px,-3px) rotate(.5deg); }
  30% { transform: translate(-4px,3px); } 40% { transform: translate(6px,1px) rotate(.4deg); } 50% { transform: translate(-5px,-2px); }
  60% { transform: translate(4px,3px) rotate(-.4deg); } 70% { transform: translate(-3px,-1px); } 80% { transform: translate(3px,2px); } 90% { transform: translate(-2px,0); }
}
@keyframes hop { 0%,100% { transform: translateX(-50%); } 40% { transform: translateX(-50%) translateY(-14%) rotate(-3deg); } }
@keyframes lunge { 0%,100% { transform: translateX(-50%); } 35% { transform: translateX(-50%) translateY(2%) scale(1.04, .96); } 60% { transform: translateX(-50%) translateY(-6%) scale(1.12) rotate(-2deg); } }
@keyframes stomp { 0%,100% { transform: translateX(-50%); } 30% { transform: translateX(-50%) translateY(-22%) scale(.95, 1.05); } 50% { transform: translateX(-50%) translateY(0) scale(1.1, .9); } 65% { transform: translateX(-50%) scale(.98, 1.02); } }
@keyframes slashjump { 0%,100% { transform: translateX(-50%); } 30% { transform: translateX(-50%) translateY(-16%) rotate(-6deg); } 55% { transform: translateX(-50%) translateY(-4%) rotate(5deg) scale(1.05); } }
@keyframes sway { 0%,100% { transform: translateX(-50%) rotate(0); } 25% { transform: translateX(-50%) rotate(-4deg); } 60% { transform: translateX(-50%) rotate(3deg) scale(1.05); } }
@keyframes nod { 0%,100% { transform: translateX(-50%) rotate(0); } 30% { transform: translateX(-50%) rotate(-3deg) translateY(2%); } 60% { transform: translateX(-50%) rotate(2deg); } }
@keyframes blackout { 0% { opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bolt { 0% { opacity: 0; } 34% { opacity: 1; } 40% { opacity: 0; } 46% { opacity: 1; } 62% { opacity: 0; } }
@keyframes flash { 0%,33% { opacity: 0; } 36% { opacity: 1; } 55% { opacity: 0; } }
@keyframes glowpulse { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes slash { to { stroke-dashoffset: 0; } }
@keyframes gearin { 0% { opacity: 0; transform: scale(.4); } 20%,80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.9); } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes spinrev { to { rotate: -360deg; } }
@keyframes particle { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r, 0deg)); } }

/* ---------- Services ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.step { text-align: center; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 22%; right: -26px; width: 30px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M1 14 C 10 2, 18 2, 27 10' fill='none' stroke='%23ff6b57' stroke-width='2' stroke-dasharray='3 3'/%3E%3Cpath d='M22 6 L28 10 L22 13' fill='none' stroke='%23ff6b57' stroke-width='2'/%3E%3C/svg%3E");
}
.step__island { height: 190px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 18px; }
.step__island img { max-height: 100%; width: auto; animation: bob 6.5s ease-in-out infinite; filter: drop-shadow(0 18px 20px rgba(8,6,40,.55)); }
.step:nth-child(2) img { animation-delay: -1.6s; } .step:nth-child(3) img { animation-delay: -3.2s; } .step:nth-child(4) img { animation-delay: -4.8s; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0; }

/* ---------- Studio ---------- */
.pillars { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillars li { padding: 28px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.pillars strong { display: block; font: 600 22px var(--serif); margin-bottom: 10px; }
.pillars span { color: var(--ink-soft); line-height: 1.55; }

.contact { padding-bottom: 40px; }

/* ---------- Contact form ---------- */
.cform {
  max-width: 760px; margin: 0 auto; display: grid; gap: 18px;
  padding: clamp(20px, 4vw, 36px); border-radius: 26px;
  background: rgba(21,19,74,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px -30px rgba(8,6,40,.8);
}
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cfield { display: grid; gap: 7px; min-width: 0; }
.cfield > span { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cfield input, .cfield select, .cfield textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: rgba(10,8,40,.55); border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.cfield select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23d9d3f5' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.cfield select option { background: #1c1b5e; color: var(--ink); }
.cfield textarea { resize: vertical; min-height: 140px; }
.cfield input::placeholder, .cfield textarea::placeholder { color: rgba(217,211,245,.45); }
.cfield input:focus, .cfield select:focus, .cfield textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(53,224,255,.2); }
.cfield .is-invalid { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,87,.2); }
.cform__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cform__foot .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.cform__status { margin: 0; min-height: 1.4em; color: var(--ink-soft); flex: 1; min-width: 200px; }
.cform__status[data-kind="ok"] { color: var(--live); }
.cform__status[data-kind="error"] { color: var(--coral-2); }
@media (max-width: 640px) { .cform__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 220px clamp(16px, 4vw, 48px) 26px; overflow: hidden; }
.footer__plants { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: max(1400px, 110vw); max-width: none; pointer-events: none; opacity: .95; }
.footer__inner { position: relative; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 40px; padding-top: 22px; border-top: 1px solid rgba(255,107,87,.4); }
.footer__inner img { width: 110px; height: auto; }
.footer__inner nav { display: flex; gap: 26px; margin: 0 auto; }
.footer__inner nav a { text-decoration: none; opacity: .85; }
.footer__inner nav a:hover { opacity: 1; }
.footer__legal { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; font-size: 14px; }
.footer__legal a { color: var(--ink-soft); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__rg { display: flex; align-items: center; gap: 10px; margin: 0; }
.footer__rg a { text-decoration: none; }
.footer__rg a:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge18 { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 700; font-size: 13px; }
.footer__copy { position: relative; text-align: center; color: var(--ink-soft); font-size: 13px; margin: 26px 0 0; }

/* ---------- Modal ---------- */
.modal {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid rgba(255,255,255,.12);
  border-radius: 26px; background: #191654; color: var(--ink); overflow: auto;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
}
.modal::backdrop { background: rgba(8,6,30,.7); backdrop-filter: blur(6px); }
.modal__close { position: sticky; float: right; top: 12px; margin: 12px 12px -56px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(10,8,40,.65); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.mhero { position: relative; aspect-ratio: 16 / 7; background: #000 center / cover no-repeat; }
.mhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, #191654 100%); }
.mhero img { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); height: 42%; width: auto; z-index: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,.6)); }
.mcontent { padding: 6px clamp(18px, 4vw, 40px) 36px; }
.mcontent .game__meta { justify-content: flex-start; margin-bottom: 16px; }
.mtag { font: 600 22px/1.3 var(--serif); margin: 0 0 12px; }
.mtext { color: var(--ink-soft); line-height: 1.6; margin: 0 0 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.facts li { padding: 7px 14px; border-radius: 10px; background: rgba(255,255,255,.07); font-size: 14px; }
.gallery__main { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #0c0a2c; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin-top: 12px; }
.gallery__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumbs button[aria-current="true"], .gallery__thumbs button:hover { opacity: 1; border-color: var(--coral); }
.gallery__thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mcta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mcta small { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__island { width: min(88%, 480px); }
  .scene__rock { left: -12vw; top: 70px; width: clamp(200px, 38vw, 340px); opacity: .7; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .game:nth-child(3n+2) { margin-top: 0; }
  .game:nth-child(2n) { margin-top: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .step:nth-child(2)::after { display: none; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { gap: 12px; }
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; padding: 10px 16px; font-size: 14px; }
  .nav__logo img { width: 104px; }
  .games { grid-template-columns: 1fr; gap: 40px; }
  .game:nth-child(2n) { margin-top: 0; }
  .isle { max-width: 320px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer__inner { flex-direction: column; gap: 18px; }
  .footer__inner nav { margin: 0; flex-wrap: wrap; justify-content: center; }
  .scene__far { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages & 404 ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 40px; }
.page__card { padding: clamp(22px, 4vw, 44px); border-radius: 26px; background: rgba(21,19,74,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); }
.page h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; text-wrap: balance; margin-bottom: 10px; }
.page__meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 30px; }
.page h2 { font-size: 22px; margin: 34px 0 10px; }
.page p, .page li { color: var(--ink-soft); line-height: 1.65; max-width: 68ch; }
.page ul { padding-left: 20px; }
.page a { color: var(--cyan); text-underline-offset: 3px; }
.page strong { color: var(--ink); }
.page dl { display: grid; grid-template-columns: minmax(130px, max-content) 1fr; gap: 8px 20px; margin: 0; }
.page dt { color: var(--ink); font-weight: 600; }
.page dd { margin: 0; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.todo { background: #ffd84d; color: #1a1448; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 100px clamp(16px, 4vw, 48px) 40px; }
.notfound img.isle404 { width: auto; height: min(34vh, 300px); margin: 0 auto 10px; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(8,6,40,.6)); }
.notfound h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 12px; }
.notfound p { color: var(--ink-soft); font-size: 18px; margin: 0 0 28px; }
.notfound .hero__ctas { justify-content: center; }
@media (max-width: 560px) { .page dl { grid-template-columns: 1fr; gap: 2px; } .page dd { margin-bottom: 10px; } }
.footer--plain { padding-top: 60px; }
