/* ARTHURLA / Melt Brawl
   Fire and ice, straight from the game: navy outlines, chunky toy buttons,
   hot orange against frost blue. */

:root {
  --ink: #121B3D;          /* logo outline navy */
  --ink-deep: #0B1230;
  --ink-2: #1B2752;
  --ink-3: #26346A;
  --flame: #FF7A1A;
  --flame-deep: #E2430F;
  --ember: #FFC83D;
  --ice: #6FDCFF;
  --ice-deep: #2E9BD6;
  --frost: #E6F6FF;
  --snow: #F5FBFF;
  --text: #F3F6FF;
  --muted: #AEB9DE;
  --muted-dark: #4A5784;

  --rare: #3FA9FF;
  --epic: #A65CFF;
  --legendary: #FFB627;
  --classic: #9AA6C8;

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --lip: 0 5px 0 var(--ink);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; 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(--ember); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem);
  line-height: .98;
  letter-spacing: .005em;
  margin: 0 0 .35em;
  text-shadow: 0 .06em 0 var(--ink-deep);
  max-width: 16ch;
  text-wrap: balance;
}
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.05; margin: 0 0 .4em; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.3rem); color: var(--muted); max-width: 52ch; margin: 0; text-wrap: pretty; }

/* ---------- Buttons: the game's PLAY button ---------- */
.btn {
  --face: var(--flame);
  --face-top: #FFA23D;
  --label: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px;
  padding: .55em 1.5em .6em;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  letter-spacing: .01em;
  color: var(--label);
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(11, 18, 48, .35);
  background: linear-gradient(180deg, var(--face-top) 0%, var(--face) 58%);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .35), var(--lip);
  cursor: pointer;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-2px); box-shadow: inset 0 3px 0 rgba(255,255,255,.35), 0 7px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(255,255,255,.2), 0 1px 0 var(--ink); transition-duration: .05s; }
.btn--ice { --face: #BDEBFF; --face-top: #E9F9FF; --label: var(--ink); text-shadow: none; }
.btn--ghost { --face: var(--ink-2); --face-top: var(--ink-3); border-color: var(--ink-deep); box-shadow: inset 0 2px 0 rgba(255,255,255,.12), 0 5px 0 var(--ink-deep); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 var(--gutter);
  color: var(--ink);
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.nav.is-solid { background: rgba(18, 27, 61, .92); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.45rem; letter-spacing: .06em; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-weight: 600; }
.nav__links a { text-decoration: none; position: relative; padding: 6px 0; }
.nav__links a:not(.nav__cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta { padding: 6px 16px !important; border: 2.5px solid currentColor; border-radius: 999px; }
.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__toggle { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
  .nav__burger, .nav__burger::before, .nav__burger::after { display: block; width: 24px; height: 3px; border-radius: 3px; background: currentColor; transition: transform .3s var(--ease-out), opacity .2s; }
  .nav__burger { position: relative; }
  .nav__burger::before, .nav__burger::after { content: ""; position: absolute; left: 0; }
  .nav__burger::before { top: -8px; } .nav__burger::after { top: 8px; }
  .nav.is-open .nav__burger { background: transparent; }
  .nav.is-open .nav__burger::before { transform: translateY(8px) rotate(45deg); }
  .nav.is-open .nav__burger::after { transform: translateY(-8px) rotate(-45deg); }
  .nav.is-open { background: var(--ink); color: var(--text); }
  .nav__links {
    position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--ink); color: var(--text);
    font-family: var(--display); font-weight: 400; font-size: 1.6rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__cta { border: 0; border-radius: 0; padding: 12px 0 !important; color: var(--ember); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px var(--gutter) 128px;
  overflow: hidden;
  color: var(--ink);
  background: #CFEFFF;
  touch-action: pan-y;
}
.hero__heat {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 55% at 50% 58%, #FFE27A 0%, #FFB23F 22%, #FF7A1A 48%, #E2430F 72%, #7A1730 100%);
}
.hero__heat::after { /* slow heat haze so revealed fire never looks flat */
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(25% 30% at 30% 40%, rgba(255, 236, 140, .55), transparent 70%),
    radial-gradient(22% 26% at 72% 64%, rgba(255, 120, 40, .6), transparent 70%);
  animation: haze 14s ease-in-out infinite alternate;
}
@keyframes haze { to { transform: translate3d(6%, -4%, 0) scale(1.1); } }
.hero__frost, .hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__frost { z-index: -2; }
.hero__fx { z-index: -1; pointer-events: none; }

.hero__content { width: min(940px, 100%); text-align: center; pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__kicker { margin: 0 0 clamp(8px, 2vh, 20px); font-weight: 600; font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); letter-spacing: .02em; }
.hero__logo { margin: 0 auto; width: min(880px, 92vw); filter: drop-shadow(0 10px 0 rgba(18, 27, 61, .18)) drop-shadow(0 24px 40px rgba(18, 27, 61, .25)); }
.hero__logo img { width: 100%; }
.hero__pitch { margin: clamp(14px, 3vh, 28px) auto 0; max-width: 34ch; font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 16px; margin-top: clamp(20px, 4vh, 36px); }

.hud { position: absolute; left: var(--gutter); bottom: 28px; pointer-events: none; }
.hud__score { display: flex; align-items: center; gap: .35em; font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); color: #fff; text-shadow: 0 2px 0 var(--ink), 0 0 2px var(--ink), 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 -2px 0 var(--ink); }
.hud__score b { font-weight: 400; display: inline-block; min-width: 1.6ch; }
.hud__rank { color: var(--ember); }
.hud__crown { width: 0; height: 1em; display: inline-block; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Cpath d='M3 20 1 6l8 6 7-10 7 10 8-6-2 14z' fill='%23FFC83D' stroke='%23121B3D' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E"); transform: scale(0); transition: width .3s var(--ease-out), transform .5s var(--ease-pop); }
.hud.is-king .hud__crown { width: 1.3em; transform: scale(1) rotate(-8deg); }
.hud__hint { margin: 4px 0 0; font-weight: 600; font-size: .95rem; transition: opacity .6s; }
.hud__hint.is-gone { opacity: 0; }
.hero__status { position: absolute; right: var(--gutter); bottom: 28px; margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; background: rgba(255,255,255,.72); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 16px; box-shadow: 0 4px 0 var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 3px rgba(255,122,26,.3); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255,122,26,0); } }

/* page-load: the logo lands like a pickup */
.js .hero__kicker, .js .hero__logo, .js .hero__pitch, .js .hero__actions, .js .hud, .js .hero__status { opacity: 0; }
.is-loaded .hero__kicker { animation: rise .7s var(--ease-out) .55s both; }
.is-loaded .hero__logo { animation: land .9s var(--ease-pop) .1s both; }
.is-loaded .hero__pitch { animation: rise .8s var(--ease-out) .75s both; }
.is-loaded .hero__actions { animation: rise .8s var(--ease-out) .9s both; }
.is-loaded .hud, .is-loaded .hero__status { animation: fade 1s ease 1.3s both; }
@keyframes land { 0% { opacity: 0; transform: translateY(-40px) scale(.7, .7); } 55% { opacity: 1; transform: translateY(6px) scale(1.06, .94); } 80% { transform: translateY(-2px) scale(.98, 1.02); } 100% { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

@media (max-width: 720px) {
  .hero { padding-bottom: 150px; }
  .hud { bottom: 76px; }
  .hero__status { left: var(--gutter); right: auto; bottom: 22px; font-size: .95rem; }
  .hero__actions .btn { flex: 1 1 220px; }
}

/* ---------- Round (sticky phone story) ---------- */
.round { position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); background: var(--ink); }
.round::before { /* melt line: frost drips into the navy */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 46px;
  background: no-repeat top/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1200v10c-40 0-46 26-62 26s-14-26-50-26-40 14-70 14-26-14-80-14-44 30-66 30-28-30-76-30-50 18-84 18S682 10 640 10s-40 22-62 22-30-22-74-22-52 12-84 12S382 10 330 10s-40 34-62 34-26-34-70-34S152 26 120 26 70 10 40 10 0 18 0 18z' fill='%23CFEFFF'/%3E%3C/svg%3E");
  pointer-events: none;
}
.round__head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 10px 0 0; list-style: none; }
.facts li { padding: 8px 16px 9px; border-radius: 14px; background: var(--ink-2); box-shadow: inset 0 0 0 2px var(--ink-3); color: var(--muted); font-weight: 500; }
.facts b { font-family: var(--display); font-weight: 400; color: var(--ember); font-size: 1.2em; margin-right: .2em; }

.round__body { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(32px, 7vw, 110px); align-items: start; }
.phone { position: sticky; top: max(84px, calc(50vh - 340px)); }
.phone__screen {
  position: relative; aspect-ratio: 540 / 1170; max-height: 76vh; margin: 0 auto;
  border: 10px solid var(--ink-deep); border-radius: 44px; overflow: hidden;
  background: #233; box-shadow: 0 0 0 3px var(--ink-3), 0 40px 80px -20px rgba(0,0,0,.6), 0 0 120px -30px rgba(255,122,26,.45);
}
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .5s ease, transform .9s var(--ease-out); }
.phone__screen img.on { opacity: 1; transform: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(40px, 22vh, 260px); padding-block: 4vh 18vh; }
.step { position: relative; padding-left: 76px; max-width: 520px; transition: opacity .5s ease; }
.step__shot { display: none; }
.step__n {
  position: absolute; left: 0; top: -.1em;
  width: 54px; height: 54px; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.7rem; color: var(--ink);
  background: var(--ice); border: 3px solid var(--ink-deep); border-radius: 16px; box-shadow: 0 4px 0 var(--ink-deep);
  transform: rotate(-6deg);
  transition: background-color .4s, transform .5s var(--ease-pop);
}
.step h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1; margin: 0 0 .35em; }
.step p { margin: 0; color: var(--muted); font-size: 1.1em; }
.js .step:not(.is-active) { opacity: .5; }
.step.is-active .step__n { background: var(--flame); transform: rotate(4deg) scale(1.08); }

@media (max-width: 820px) {
  .round__body { grid-template-columns: 1fr; }
  .phone { display: none; }
  .steps { gap: 64px; padding-block: 0; }
  .js .step:not(.is-active) { opacity: 1; }
  .step { padding-left: 0; max-width: none; }
  .step__shot { display: block; width: min(300px, 78vw); aspect-ratio: 540 / 900; object-fit: cover; object-position: top; margin: 0 0 22px; border: 8px solid var(--ink-deep); border-radius: 30px; box-shadow: 0 0 0 3px var(--ink-3), 0 24px 50px -16px rgba(0,0,0,.6); }
  .step__n { position: relative; display: inline-grid; margin-bottom: 12px; top: 0; }
}

/* ---------- Arsenal (frost section) ---------- */
.arsenal { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: linear-gradient(180deg, var(--frost), #D3EEFC); color: var(--ink); }
.arsenal::before, .arsenal::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; }
.arsenal::before { top: -39px; background: no-repeat bottom/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22l40 10 50-24 46 18 60-22 54 26 40-14 70 16 52-28 64 20 44-12 70 22 50-18 58 14 64-24 42 18 60-12 56 20 48-16 62 14 52-20 60 18 38-8 50 12 50-16v40z' fill='%23E6F6FF'/%3E%3C/svg%3E"); }
.arsenal::after { bottom: -39px; transform: scaleY(-1); background: no-repeat bottom/100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22l40 10 50-24 46 18 60-22 54 26 40-14 70 16 52-28 64 20 44-12 70 22 50-18 58 14 64-24 42 18 60-12 56 20 48-16 62 14 52-20 60 18 38-8 50 12 50-16v40z' fill='%23D3EEFC'/%3E%3C/svg%3E"); z-index: 2; }
.arsenal .h2 { text-shadow: 0 .06em 0 rgba(46, 155, 214, .35); }
.arsenal .lede { color: var(--muted-dark); }
.arsenal__head { display: grid; gap: 12px; margin-bottom: 36px; }

.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.tabs button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px;
  padding: 4px 20px 4px 8px; font-family: var(--display); font-size: 1.2rem; color: var(--ink);
  background: #fff; border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink);
  cursor: pointer; transition: transform .15s var(--ease-out), background-color .2s, box-shadow .15s;
}
.tabs button img { width: 44px; height: 44px; }
.tabs button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ember); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

.weapon { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: #fff; border: 3px solid var(--ink); border-radius: 32px; box-shadow: 0 8px 0 var(--ink); padding: clamp(18px, 3vw, 40px); }
.weapon__stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 24px; background: radial-gradient(closest-side, #fff 0%, #E7F6FF 55%, #C6E9FB 100%); overflow: hidden; }
.weapon__stage::before { /* soft floor shadow */ content: ""; position: absolute; left: 25%; right: 25%; bottom: 16%; height: 18px; border-radius: 50%; background: rgba(18, 27, 61, .16); filter: blur(6px); animation: shadow 3.2s ease-in-out infinite; }
.weapon__burst { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.weapon__hero { position: relative; width: 78%; animation: bob 3.2s ease-in-out infinite; }
.weapon__hero.pop { animation: skinpop .55s var(--ease-pop), bob 3.2s ease-in-out .55s infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes shadow { 50% { transform: scaleX(.82); opacity: .7; } }
@keyframes skinpop { 0% { transform: scale(.6) rotate(-14deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.weapon__name { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--display); font-size: 1.4rem; }
.rarity { font-family: var(--body); font-weight: 600; font-size: .8rem; color: #fff; padding: 1px 10px 2px; border-radius: 999px; background: var(--classic); }
.rarity[data-r="Rare"] { background: var(--rare); }
.rarity[data-r="Epic"] { background: var(--epic); }
.rarity[data-r="Legendary"] { background: var(--legendary); color: var(--ink); }
.weapon__info p { margin: 0 0 18px; color: var(--muted-dark); }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.stats div { padding: 8px 14px; border-radius: 14px; background: var(--frost); box-shadow: inset 0 0 0 2px #C3E4F6; }
.stats dt { font-size: .82rem; font-weight: 600; color: var(--muted-dark); }
.stats dd { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; }
.weapon__pick { font-weight: 600; margin: 0 0 10px !important; color: var(--ink) !important; }
.skins { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.skins button {
  --r: var(--classic);
  position: relative; aspect-ratio: 1; padding: 4px; border-radius: 14px; cursor: pointer;
  background: color-mix(in oklch, var(--r) 16%, #fff); border: 2.5px solid color-mix(in oklch, var(--r) 70%, var(--ink));
  transition: transform .18s var(--ease-pop), box-shadow .18s;
}
.skins button[data-r="Rare"] { --r: var(--rare); }
.skins button[data-r="Epic"] { --r: var(--epic); }
.skins button[data-r="Legendary"] { --r: var(--legendary); }
.skins button img { width: 100%; height: 100%; object-fit: contain; }
.skins button:hover { transform: translateY(-3px) rotate(-3deg); }
.skins button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--r); transform: scale(1.04); }

@media (max-width: 860px) {
  .weapon { grid-template-columns: 1fr; }
  .weapon__stage { max-width: 420px; width: 100%; margin: 0 auto; }
}

/* ---------- Arenas ---------- */
.arenas { padding: clamp(100px, 12vw, 170px) 0 clamp(70px, 9vw, 130px); background: var(--ink); overflow: hidden; }
.arenas .wrap { display: grid; gap: 12px; margin-bottom: 40px; }
.maps { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); display: flex; gap: 12px; height: min(68vh, 620px); }
.map {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 26px; overflow: hidden; cursor: pointer;
  border: 3px solid var(--ink-deep); box-shadow: 0 0 0 2px var(--ink-3);
  transition: flex-grow .7s var(--ease-out), box-shadow .3s;
}
.map.is-open { flex-grow: 3.2; box-shadow: 0 0 0 3px var(--ember); }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.75) brightness(.8); }
.map.is-open img { transform: scale(1); filter: none; }
.map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, color-mix(in oklch, var(--tint) 30%, rgba(11,18,48,.9)) 100%); }
.map h3 {
  position: absolute; z-index: 1; left: 50%; bottom: 22px; margin: 0; white-space: nowrap;
  font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1vw, 2rem); color: #fff;
  text-shadow: 0 3px 0 var(--ink-deep);
  writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg);
}
.map.is-open h3 { writing-mode: horizontal-tb; transform: translateX(-50%); animation: labelin .6s var(--ease-out) both; }
@keyframes labelin { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 720px) {
  .maps { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .maps::-webkit-scrollbar { display: none; }
  .map, .map.is-open { flex: 0 0 64vw; aspect-ratio: 365 / 640; scroll-snap-align: center; box-shadow: 0 0 0 2px var(--ink-3); }
  .map img { transform: none; filter: none; }
  .map h3, .map.is-open h3 { writing-mode: horizontal-tb; transform: translateX(-50%); animation: none; }
}

/* ---------- Outfits ---------- */
.outfits { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); background: var(--ink); }
.outfits__grid { display: grid; grid-template-columns: minmax(240px, 460px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(36px, 5vw, 64px); }
.outfits__art { margin: 0; border-radius: 32px; overflow: hidden; border: 3px solid var(--ink-deep); box-shadow: 0 0 0 2px var(--ink-3), 0 30px 70px -20px rgba(0,0,0,.6); transform: rotate(-2deg); }
@media (max-width: 760px) { .outfits__grid { grid-template-columns: 1fr; } .outfits__art { max-width: 420px; } }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; margin: 0; padding: 12px 0; list-style: none; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.outfit { width: 168px; flex: none; text-align: center; }
.outfit__card { aspect-ratio: 1; border-radius: 24px; background: radial-gradient(circle at 50% 35%, var(--ink-3), var(--ink-2)); box-shadow: inset 0 0 0 2px var(--ink-3); display: grid; place-items: center; transition: transform .35s var(--ease-pop), background-color .3s; }
.outfit__card img { width: 92%; }
.outfit:hover .outfit__card { transform: translateY(-6px) rotate(-2deg); }
.outfit p { margin: 8px 0 0; font-weight: 600; color: var(--muted); }

/* ---------- Games ---------- */
.games { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink-deep); }
.games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; margin-top: 28px; }
.game { border-radius: 28px; background: var(--ink-2); box-shadow: inset 0 0 0 2px var(--ink-3); overflow: hidden; }
.game__link { display: block; text-decoration: none; height: 100%; }
.game__art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.game__art > img:first-child { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.game__link:hover .game__art > img:first-child { transform: scale(1.05); }
.game__logo { position: absolute; left: 6%; right: 6%; bottom: 8%; width: 88%; filter: drop-shadow(0 6px 0 rgba(11,18,48,.4)); transition: transform .5s var(--ease-pop); }
.game__link:hover .game__logo { transform: translateY(-4px) rotate(-1.5deg); }
.game__meta { padding: 20px 24px 26px; }
.game__meta h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 0 0 4px; }
.game__meta p { margin: 0 0 14px; color: var(--muted); }
.chip { display: inline-block; font-weight: 600; font-size: .9rem; padding: 3px 12px 4px; border-radius: 999px; }
.chip--hot { background: rgba(255,122,26,.16); color: var(--ember); box-shadow: inset 0 0 0 2px rgba(255,122,26,.5); }
.game--empty { background: transparent; box-shadow: inset 0 0 0 2px var(--ink-3); }
.game__art--empty { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px); }
.game__art--empty span { width: 64px; height: 64px; border-radius: 20px; border: 3px dashed var(--muted-dark); position: relative; }
.game__art--empty span::before, .game__art--empty span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 3px; background: var(--muted-dark); border-radius: 3px; transform: translate(-50%, -50%); }
.game__art--empty span::after { transform: translate(-50%, -50%) rotate(90deg); }
.game--empty h3 { color: var(--muted); }

/* ---------- Studio / contact ---------- */
.studio { padding: clamp(80px, 10vw, 140px) 0; background: var(--ink); }
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio .h2 { letter-spacing: .05em; }
.contact { background: var(--ink-2); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: inset 0 0 0 2px var(--ink-3); }
.contact p { color: var(--muted); margin: 0 0 18px; }
.contact__mail { display: block; font-family: var(--display); font-size: clamp(1.35rem, 1rem + 1.8vw, 2.3rem); color: var(--ice); text-decoration: none; overflow-wrap: anywhere; margin-bottom: 22px; line-height: 1.1; }
.contact__mail:hover { color: #A9ECFF; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }
@media (max-width: 820px) { .studio__grid { grid-template-columns: 1fr; } }

/* ---------- Footer + toast ---------- */
.footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--ink-deep); color: var(--muted); font-size: .95rem; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer p { margin: 0; }
.footer .nav__brand { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, calc(100% + 48px)); padding: 10px 20px; font-weight: 600; color: var(--ink); background: var(--ember); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); visibility: hidden; transition: transform .45s var(--ease-pop), visibility 0s linear .45s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease-pop), visibility 0s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gutter); }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .marquee__track [aria-hidden="true"] { display: none; }
}
