/* Layout concept: a game you scroll through. Each section is a "stage" with its own
   screen: sunny title meadow, maroon player-select poster, Undertale-style status UI,
   grass world map, project consoles, CRT channel room, holo guild hall, RPG skill tree,
   academy save point with a spinning university crest, and a sunset "Continue?" ending. One committed look. */
:root {
  --ink: #1b1430;
  --night: #120e24;
  --void: #07060d;
  --cream: #f2dcc4;
  --paper: #fff8e7;
  --maroon: #5e1528;
  --yellow: #ffd23f;
  --lime: #b8ff3c;
  --green: #39d65a;
  --pink: #ff5fa2;
  --rose: #ff9ec2;
  --cyan: #3fe0ff;
  --blue: #3fa9ff;
  --purple: #a77bff;
  --orange: #ff8a3c;
  --red: #ff4d6d;
  --win: #c3c3c3;
  --win-dark: #7b7b7b;
  --white: #ffffff;

  --f-display: "Silkscreen", "Courier New", monospace;
  --f-giant: "Jersey 10", "Silkscreen", "Impact", sans-serif;
  --f-ui: "Pixelify Sans", "Trebuchet MS", system-ui, sans-serif;
  --f-term: "VT323", "Courier New", monospace;
  --f-read: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --section-pad: clamp(80px, 10vw, 130px);
  --gutter: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; cursor: url("../img/cursor.png") 0 0, auto; }
body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--f-read);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
}
a, button, [role="button"], .chip, .gcard, summary { cursor: url("../img/cursor-hand.png") 10 0, pointer; }
img { max-width: 100%; }
img[src=""] { visibility: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pixelated, [data-icon] { image-rendering: pixelated; image-rendering: crisp-edges; }

.wrap {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}
main > section { position: relative; overflow: hidden; overflow: clip; }

/* ---------- shared type ---------- */
.eyebrow { margin: 0 0 6px; font-family: var(--f-term); font-size: 1.5rem; line-height: 1; letter-spacing: .04em; color: var(--purple); }
.h-pixel {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
  text-wrap: balance;
}
.h-pixel em { font-style: normal; color: var(--yellow); }
.sec-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.sec-head p:last-child:not(.eyebrow) { max-width: 54ch; margin: 14px auto 0; font-size: 1.05rem; color: rgba(255, 255, 255, .8); }
.sec-head--ut .h-pixel em { color: var(--purple); }
.sub-pixel {
  margin: clamp(48px, 6vw, 72px) 0 22px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  color: var(--yellow);
}
.sub-pixel::after { content: ""; display: block; width: 72px; height: 6px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--yellow) 0 12px, transparent 12px 18px); }

/* pixel border with notched corners */
.px {
  box-shadow:
    0 -4px 0 0 var(--bc, var(--ink)), 0 4px 0 0 var(--bc, var(--ink)),
    -4px 0 0 0 var(--bc, var(--ink)), 4px 0 0 0 var(--bc, var(--ink)),
    8px 8px 0 0 rgba(0, 0, 0, .3);
}

/* ---------- boot screen ---------- */
.boot { display: none; }
.js .boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity .6s steps(6), visibility 0s linear .6s;
}
.is-booted .boot { opacity: 0; visibility: hidden; }
.boot__inner { display: grid; justify-items: center; gap: 14px; }
.boot__avatar { width: 116px; height: 116px; object-fit: cover; border: 4px solid #fff; border-radius: 50%; box-shadow: 0 0 0 6px var(--purple), 0 0 46px rgba(167, 123, 255, .7); animation: glow-pulse 1.1s ease-in-out infinite alternate; }
.boot__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 1.4rem; letter-spacing: .1em; }
.boot__bar { width: min(280px, 70vw); height: 22px; padding: 3px; border: 3px solid #fff; }
.boot__bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--lime) 0 12px, transparent 12px 15px); }
.boot__pct { margin: 0; font-family: var(--f-term); font-size: 1.3rem; color: #9b93c9; }
.boot__go { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 12px; margin-top: 10px; padding: 14px 24px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; color: var(--ink); background: #fff; border: 0; box-shadow: 0 6px 0 var(--purple), 0 0 40px rgba(167, 123, 255, .6); animation: pop-in .4s steps(4) both, glint 1.4s ease-in-out .4s infinite; }
.boot__go[hidden] { display: none; }
.boot__go small { grid-column: 1 / -1; margin-top: 6px; font-family: var(--f-read); font-weight: 600; font-size: .78rem; text-transform: none; text-align: center; color: #6a5aa8; }
.boot__tri { width: 0; height: 0; border-left: 14px solid #ff2d8a; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* ---------- HUD ---------- */
.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  padding-bottom: 10px;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
  background: rgba(18, 14, 36, .88);
  border-bottom: 4px solid var(--void);
  box-shadow: 0 4px 0 rgba(167, 123, 255, .25);
  backdrop-filter: blur(6px);
}
.hud__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.hud__brand img { width: 40px; height: 40px; object-fit: cover; background: #2a2250; border: 3px solid #fff; border-radius: 50%; }
.hud__brand span { display: grid; line-height: 1.05; }
.hud__brand b { font-family: var(--f-display); font-size: 1rem; letter-spacing: .06em; }
.hud__brand small { font-family: var(--f-term); font-size: 1rem; color: var(--yellow); }
.hud__nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.hud__nav a {
  padding: 8px 10px;
  font-family: var(--f-display);
  font-size: .78rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #d9d3ff;
}
.hud__nav a:hover, .hud__nav a.is-active { color: var(--yellow); }
.hud__nav a.is-active::before, .hud__nav a:hover::before { content: "▶"; margin-right: 4px; font-size: .7em; }
.hud__nav .hud__cta { margin-left: 6px; color: var(--ink); background: var(--yellow); box-shadow: 0 4px 0 #b88a00; }
.hud__nav .hud__cta:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 2px 0 #b88a00; }
.hud__nav .hud__cta::before { content: none; }
.hud__nav .hud__cta.is-active { color: var(--ink); }
.hud__audio { display: flex; gap: 6px; }
.hud__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-family: var(--f-display);
  font-size: .7rem;
  color: #d9d3ff;
  background: #241d46;
  border: 2px solid #5a4d9a;
}
.hud__btn[aria-pressed="true"] { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.hud__ico { font-size: 1rem; line-height: 1; }
.hud__menu { display: none; position: relative; width: 46px; height: 42px; padding: 0; background: #241d46; border: 2px solid #5a4d9a; }
.hud__menu span:not(.sr-only) { position: absolute; left: 11px; right: 11px; height: 4px; background: #fff; }
.hud__menu span:nth-child(1) { top: 12px; }
.hud__menu span:nth-child(2) { top: 22px; }
.hud__menu[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.hud__menu[aria-expanded="true"] span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .hud__menu { display: block; }
  .hud__audio { margin-left: auto; }
  .hud__nav {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    right: var(--gutter-r);
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    padding: 10px;
    background: var(--night);
    border: 4px solid #fff;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, .4);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .2s steps(3), transform .2s steps(3), visibility 0s linear .2s;
  }
  .hud__nav a { padding: 12px 14px; font-size: .9rem; }
  .hud__nav .hud__cta { margin: 8px 0 0; text-align: center; }
  .hud.is-open .hud__nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
@media (max-width: 560px) {
  .hud__lbl, .hud__brand small { display: none; }
  .hud__brand b { font-size: .9rem; }
}

.stage-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 78px);
  left: 50%;
  z-index: 80;
  display: grid;
  justify-items: center;
  padding: 10px 22px 12px;
  background: var(--void);
  border: 4px solid #fff;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .4);
  transform: translate(-50%, -160%);
  transition: transform .35s steps(5);
  pointer-events: none;
}
.stage-toast.show { transform: translate(-50%, 0); }
.stage-toast span { font-family: var(--f-term); font-size: 1.2rem; line-height: 1; color: var(--yellow); }
.stage-toast b { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 1. title screen ---------- */
.title {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(100svh, 1000px);
  background: #0b1416;
}
.title.is-shake { animation: shake .35s steps(6); }
.title__world { position: absolute; inset: 0; overflow: hidden; background: #0b1416; }
.title__world::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 236, 190, .16) 50%, transparent 58%);
  mix-blend-mode: screen;
  animation: sweep 8s ease-in-out 3.2s infinite;
  pointer-events: none;
}
.title__gif, .ending__gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.title__gif { object-position: 30% 40%; }
.title__dust { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.title__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 18, .78), rgba(6, 14, 18, .35) 55%, rgba(6, 14, 18, .1)),
    linear-gradient(180deg, rgba(6, 14, 18, .55), transparent 30%, transparent 70%, rgba(6, 14, 18, .75)),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.crt { display: none; }
.js .crt { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #000; pointer-events: none; }
.crt__line { width: 100%; height: 3px; background: #fff; box-shadow: 0 0 20px #bff, 0 0 60px #8ff; transform: scaleX(0); }
.is-ready .crt { animation: crt-off .9s steps(1) .55s forwards; }
.is-ready .crt__line { animation: crt-line .55s cubic-bezier(.6, 0, .2, 1) both; }
.is-ready .title__world { animation: crt-open .7s cubic-bezier(.2, .8, .2, 1) .5s both; }
.is-ready .title__gif { animation: pull-back 2.6s cubic-bezier(.2, .7, .2, 1) .5s both, gundam-drift 24s ease-in-out 3.1s infinite alternate; }
.title__inner {
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding-block: calc(env(safe-area-inset-top, 0px) + 96px) 96px;
}
.title__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; text-align: left; }
.hl {
  display: inline-block;
  margin: 0;
  padding: 2px 12px 4px;
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.15;
  color: var(--ink);
  background: #eaff5e;
  box-shadow: 0 -3px 0 #eaff5e, 0 3px 0 #eaff5e, -3px 0 0 #eaff5e, 3px 0 0 #eaff5e, 6px 6px 0 rgba(20, 40, 90, .35);
}
.hl--sm { font-size: clamp(1rem, 2.2vw, 1.4rem); }
.title__name {
  margin: 4px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.2vw, 6.2rem);
  line-height: .95;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 4px 4px 0 #0f5a63, 8px 8px 0 rgba(0, 0, 0, .45), 0 0 30px rgba(120, 255, 240, .25);
}
.title__name span { display: block; }
.roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35em;
  margin: 12px 0 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.5rem);
  line-height: 1.2;
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .6);
}
.roles__word { min-height: 1.4em; padding: 2px 10px; color: var(--yellow); background: rgba(0, 0, 0, .6); border-left: 4px solid var(--cyan); }
.roles__caret { width: .5em; height: 1.1em; background: var(--cyan); animation: blink 1s steps(1) infinite; }
.deck { position: relative; width: min(560px, 100%); height: clamp(120px, 17vw, 180px); margin: 26px 0 10px; }
.deck__card {
  position: absolute;
  left: 50%;
  top: 0;
  width: clamp(88px, 12vw, 140px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #000;
  border: 4px solid #fff;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .45);
  transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--r));
  transition: transform .25s steps(4);
}
.deck__card:hover { z-index: 2; transform: translateX(calc(-50% + var(--x))) translateY(calc(var(--y) - 12px)) rotate(0deg) scale(1.08); }
.deck__label { position: absolute; z-index: 3; padding: 1px 8px 3px; font-weight: 700; font-size: .85rem; color: var(--ink); background: #eaff5e; white-space: nowrap; }
.deck__label--l { left: 0; top: -12px; transform: rotate(-4deg); color: #fff; background: #ff3b5c; }
.deck__label--r { right: 0; bottom: 0; transform: rotate(3deg); }
.title__go { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 8px; }
.btn-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px 16px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff, -4px 0 0 #fff, 4px 0 0 #fff, 0 10px 0 #1f4fb0, 8px 14px 0 rgba(15, 40, 110, .35);
  transition: transform .12s steps(2), box-shadow .12s steps(2);
}
.btn-start:hover { transform: translateY(4px); box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff, -4px 0 0 #fff, 4px 0 0 #fff, 0 6px 0 #1f4fb0, 6px 10px 0 rgba(15, 40, 110, .35); }
.btn-start__tri { width: 0; height: 0; border-left: 12px solid var(--red); border-top: 8px solid transparent; border-bottom: 8px solid transparent; animation: blink 1s steps(1) infinite; }
.title__note { margin: 0; font-size: .85rem; color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .8); }

/* party: clear close-up photo + FD-07 robot + Byte the pet */
.party { position: relative; align-self: end; justify-self: center; width: 100%; max-width: 520px; height: clamp(420px, 64svh, 660px); }
.party__me { position: absolute; right: 0; bottom: -96px; width: 88%; }
.party__me img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .65)); }
.party__tag {
  position: absolute;
  left: -8%;
  top: 12%;
  padding: 4px 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .78rem;
  color: var(--ink);
  background: #6bff3a;
  border: 3px solid var(--ink);
  transform: rotate(-5deg);
}
/* party: Pokémon sent out one by one (Poké Ball throw, white flash, sprite pops in) */
.mon { position: absolute; z-index: 3; cursor: pointer; }
.mon--flareon { left: -7%; bottom: 30px; width: clamp(110px, 11vw, 158px); }
.mon--umbreon { right: -5%; bottom: 14px; z-index: 4; width: clamp(104px, 10.5vw, 150px); }
.mon--mew { right: -2%; top: 14%; width: clamp(124px, 12vw, 176px); }
.mon__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .45)); transform-origin: 50% 100%; }
.mon--mew .mon__img { transform-origin: 50% 50%; }
.mon__ball {
  position: absolute;
  left: calc(50% - 13px);
  bottom: 6%;
  width: 26px;
  height: 26px;
  background: linear-gradient(180deg, #e8384f 0 44%, #1b1430 44% 56%, #f4f6ff 56%);
  border: 3px solid #1b1430;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.mon__ball::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: #f4f6ff; border: 2px solid #1b1430; border-radius: 50%; transform: translate(-50%, -50%); }
.mon--mew .mon__ball { bottom: 40%; }
.mon__flash { position: absolute; left: 50%; bottom: 10%; width: 120%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, rgba(255, 255, 255, .7) 23% 40%, rgba(255, 250, 200, .25) 41% 60%, transparent 61%); opacity: 0; transform: translate(-50%, 30%) scale(0); pointer-events: none; }
.mon--mew .mon__flash { bottom: 0; transform: translate(-50%, 0) scale(0); }
.mon__heart { position: absolute; left: 50%; top: -6px; font-size: 1.5rem; color: #ff4d6d; opacity: 0; transform: translateX(-50%); pointer-events: none; }
.js .mon__img { opacity: 0; }
.mon.is-throw .mon__ball { animation: ball-throw .56s cubic-bezier(.3, 0, .6, 1) both; }
.mon.is-out .mon__ball { animation: ball-open .3s ease-out both; }
.mon.is-out .mon__flash { animation: mon-flash .6s ease-out both; }
.mon.is-out .mon__img { opacity: 1; animation: send-out .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.mon--mew.is-out { animation: mew-float 2.8s ease-in-out .8s infinite alternate; }
.mon.is-happy .mon__heart { animation: heart-up .8s ease-out; }
.mon.is-happy:not(.mon--mew) { animation: hop-once .45s ease-out; }
.dex {
  position: absolute;
  left: -6%;
  top: 0;
  z-index: 6;
  max-width: 70%;
  min-width: 210px;
  margin: 0;
  padding: 10px 16px 12px;
  font-family: var(--f-term);
  font-size: 1.35rem;
  line-height: 1.05;
  color: var(--ink);
  background: #fff;
  border: 4px solid #4a5d86;
  border-radius: 10px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink), 8px 10px 0 4px rgba(0, 0, 0, .35);
  transform-origin: 20px 100%;
}
.dex span::after { content: "▼"; margin-left: 6px; font-size: .8em; color: #e8384f; animation: blink .8s steps(1) infinite; }
.js .dex { opacity: 0; }
.dex.is-in { opacity: 1; animation: pop-in .3s steps(4) both; }
.js:not(.is-ready) .party__me { opacity: 0; }
.is-ready .party__me { animation: me-pop .9s cubic-bezier(.2, 1.5, .4, 1) 2.3s both; }
.title__dust { image-rendering: pixelated; }

.roles-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  overflow: hidden;
  padding-block: 10px;
  background: var(--yellow);
  border-top: 4px solid var(--ink);
  box-shadow: 0 -6px 0 rgba(0, 0, 0, .25);
}
.roles-marquee__track { display: flex; width: max-content; font-family: var(--f-display); font-weight: 700; font-size: clamp(.85rem, 1.6vw, 1.05rem); text-transform: uppercase; color: var(--ink); animation: marquee 26s linear infinite; }
.roles-marquee__track > * { margin-right: 22px; white-space: nowrap; }
.roles-marquee__track i { font-style: normal; color: #ff2d8a; }

/* title entrance: fades up from a dark screen, words resolve from blur like the reference */
.js:not(.is-ready) [data-step] { opacity: 0; }
.is-ready [data-step="1"] { animation: wipe .5s steps(6) .95s both; }
.is-ready [data-step="2"] { animation: focus-in 1.1s cubic-bezier(.2, .7, .2, 1) 1.1s both, glitch .5s steps(2) 2.2s both; }
.is-ready [data-step="3"] { animation: wipe .5s steps(6) 1.65s both; }
.is-ready [data-step="4"] { animation: focus-in .8s ease-out 1.85s both; }
.is-ready [data-step="5"] { animation: fade .1s 2s both; }
.is-ready [data-step="5"] .deck__card { animation: deal .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.is-ready [data-step="5"] .deck__card:nth-of-type(1) { animation-delay: 2.05s; }
.is-ready [data-step="5"] .deck__card:nth-of-type(2) { animation-delay: 2.15s; }
.is-ready [data-step="5"] .deck__card:nth-of-type(3) { animation-delay: 2.25s; }
.is-ready [data-step="5"] .deck__card:nth-of-type(4) { animation-delay: 2.35s; }
.is-ready [data-step="5"] .deck__label { animation: wipe .4s steps(5) 2.6s both; }
.is-ready [data-step="6"] { animation: pop-in .5s steps(5) 2.75s both; }

@media (max-width: 1000px) {
  .title__inner { grid-template-columns: minmax(0, 1fr); padding-block: calc(env(safe-area-inset-top, 0px) + 90px) 70px; }
  .title__copy { align-items: center; text-align: center; }
  .title__go { align-items: center; }
  .roles { justify-content: center; }
  .deck { margin-inline: auto; }
  .party { max-width: 400px; height: clamp(360px, 95vw, 470px); margin-top: 10px; }
  .party__me { bottom: -70px; width: 86%; }
  .party__tag { left: -14%; font-size: .68rem; }
  .mon--flareon { left: -3%; bottom: 26px; width: clamp(84px, 24vw, 120px); }
  .mon--umbreon { right: -3%; bottom: 10px; width: clamp(80px, 23vw, 114px); }
  .mon--mew { right: -2%; top: 16%; width: clamp(100px, 28vw, 136px); }
  .dex { left: -2%; min-width: 0; max-width: 78%; font-size: 1.15rem; }
}

/* ---------- 2. player select: black 3D poster ---------- */
.intro { background: #000; color: var(--white); }
.poster {
  --mx: 0;
  --my: 0;
  position: relative;
  height: clamp(560px, 100svh, 960px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 38% 55% at 50% 52%, rgba(255, 214, 190, .2), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 40%, #1a1412, #000 70%);
  isolation: isolate;
}
.poster__rays {
  position: absolute;
  inset: -50%;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 236, 222, .08) 0deg .6deg, transparent .6deg 9deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 55%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 55%);
  animation: spin 120s linear infinite;
}
.poster__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 46%, rgba(255, 240, 230, .14), transparent 32%); }
.poster__hud {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-display);
  font-size: clamp(.75rem, 1.4vw, .95rem);
  color: rgba(255, 255, 255, .85);
}
.poster__hearts { color: var(--red); letter-spacing: .2em; font-size: 1.25em; }
.battery { display: inline-flex; gap: 2px; padding: 2px; margin-left: 6px; vertical-align: middle; border: 2px solid currentColor; }
.battery b { width: 6px; height: 12px; background: currentColor; }
.battery--sm b { width: 4px; height: 8px; }
.poster__scene {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.poster__scene > * { will-change: transform; }
.poster__word {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: flex;
  margin: 0;
  font-family: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  font-size: clamp(7rem, 30vw, 31rem);
  line-height: .78;
  letter-spacing: -.01em;
  white-space: nowrap;
  color: #f1dccc;
  background: linear-gradient(180deg, #fff3ea 0%, #ecd0bf 48%, #b98d78 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55));
  transform: translate(-50%, -54%);
  pointer-events: none;
}
.poster__word span { display: inline-block; }
.poster__me {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  width: auto;
  height: 92%;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 28px rgba(255, 225, 205, .18)) drop-shadow(0 30px 40px rgba(0, 0, 0, .8));
}
.poster__script {
  position: absolute;
  z-index: 5;
  margin: 0;
  font-family: "Allura", "Snell Roundhand", cursive;
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  line-height: 1;
  color: #f6e3d6;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
  white-space: nowrap;
}
.poster__script--a { top: 24%; right: 9%; rotate: -6deg; }
.poster__script--b { bottom: 14%; left: 8%; rotate: -4deg; }
.poster__tag {
  position: absolute;
  top: 36%;
  right: 31%;
  z-index: 6;
  padding: 4px 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--ink);
  background: #6bff3a;
  border: 3px solid var(--ink);
  rotate: 5deg;
}
.poster__flare {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    radial-gradient(circle at 6% 92%, rgba(255, 150, 70, .55), transparent 14%),
    radial-gradient(circle at 10% 86%, rgba(80, 150, 255, .35), transparent 18%),
    radial-gradient(ellipse 40% 1.2% at 14% 89%, rgba(140, 190, 255, .7), transparent 70%),
    radial-gradient(circle at 92% 8%, rgba(255, 230, 200, .12), transparent 18%);
  mix-blend-mode: screen;
  animation: flare 6s ease-in-out infinite alternate;
}
.poster::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 18%;
  background: linear-gradient(transparent, #000);
  pointer-events: none;
}

/* 3D app icons: each one is a stack of layers, so it has real thickness when it tilts */
.icons3d { position: absolute; inset: 0; z-index: 4; pointer-events: none; transform-style: preserve-3d; }
.ic {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  filter: var(--blur, none) drop-shadow(0 26px 22px rgba(0, 0, 0, .55));
}
.ic__body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  animation: ic-float 5s ease-in-out var(--d, 0s) infinite alternate;
}
.ic__layer, .ic__face {
  position: absolute;
  inset: 0;
  border-radius: 24%;
}
.ic__layer { background: var(--side); }
.ic__face {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--face);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .28), inset 0 -6px 12px rgba(0, 0, 0, .25);
  transform: translateZ(0);
}
.ic__face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, .35), transparent 38%);
}
.ic__face b { font-family: "Trebuchet MS", system-ui, sans-serif; font-weight: 700; font-size: calc(var(--s) * .42); letter-spacing: -.02em; color: var(--ink-c); }
.ic__face svg { width: 62%; height: 62%; }
.ic--canva .ic__face { border-radius: 50%; }
.ic--canva .ic__layer { border-radius: 50%; }
.ic--canva .ic__face b { font-family: "Allura", cursive; font-weight: 400; font-size: calc(var(--s) * .42); }
.ic--wix .ic__face b { font-size: calc(var(--s) * .32); }
.ic--notion .ic__face b { font-family: Georgia, "Times New Roman", serif; font-size: calc(var(--s) * .5); padding: 0 10%; border: 3px solid #111; border-radius: 10%; line-height: 1.1; }

/* poster entrance */
.io .intro .poster__word span { transition: transform .9s cubic-bezier(.2, .9, .2, 1), opacity .6s ease; }
.io .intro:not(.is-in) .poster__word span { opacity: 0; transform: translateY(40%) scaleY(1.3); }
.io .intro .poster__word span:nth-child(2) { transition-delay: .05s; }
.io .intro .poster__word span:nth-child(3) { transition-delay: .1s; }
.io .intro .poster__word span:nth-child(4) { transition-delay: .15s; }
.io .intro .poster__word span:nth-child(5) { transition-delay: .2s; }
.io .intro .poster__word span:nth-child(6) { transition-delay: .25s; }
.io .intro .poster__word span:nth-child(7) { transition-delay: .3s; }
.io .intro .poster__me { transition: opacity .8s ease .35s, translate 1s cubic-bezier(.2, .9, .2, 1) .35s; }
.io .intro:not(.is-in) .poster__me { opacity: 0; translate: 0 12%; }
.io .intro .ic { transition: opacity .6s ease calc(.6s + var(--i) * 90ms), scale .8s cubic-bezier(.3, 1.6, .5, 1) calc(.6s + var(--i) * 90ms); }
.io .intro:not(.is-in) .ic { opacity: 0; scale: .2; }
.io .intro .poster__script { transition: clip-path 1.2s steps(14) 1.3s; clip-path: inset(0 -5% 0 0); }
.io .intro:not(.is-in) .poster__script { clip-path: inset(0 100% 0 0); }

/* info strip under the poster */
.intro__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .9fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
  padding-block: clamp(26px, 4vw, 44px) clamp(64px, 8vw, 100px);
}
.intro__name { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: .95; text-transform: uppercase; }
.intro__name span { display: block; color: #f1dccc; }
.intro__role { margin: 12px 0 0; font-family: var(--f-term); font-size: 1.35rem; line-height: 1.15; color: var(--yellow); }
.intro__about p { margin: 0 0 .8em; color: #ddd3cc; }
.intro__about strong { color: #fff; }
.intro__sheet { display: grid; gap: 10px; margin: 0; }
.intro__sheet div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 9px 12px; background: #0e0c0b; border: 2px solid #2e2622; }
.intro__sheet dt { font-family: var(--f-display); font-size: .66rem; text-transform: uppercase; color: #b98d78; }
.intro__sheet dd { margin: 0; font-size: .95rem; line-height: 1.3; }
.sheet__ok { color: #6bff8a; font-weight: 700; }

/* app tiles used in the tools inventory */
.tile {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  border-radius: 12px;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .22), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 5px 0 rgba(0, 0, 0, .55), 0 10px 0 rgba(0, 0, 0, .25), 0 16px 18px rgba(0, 0, 0, .35);
}
.tile--capcut { color: #fff; background: #111; }
.tile--lr { color: #31a8ff; background: #001e36; }
.tile--ai { color: #ff9a00; background: #330000; }
.tile--canva { color: #fff; background: linear-gradient(135deg, #00c4cc, #7d2ae8); font-family: var(--f-ui); }
.tile--notion { color: #111; background: #fff; border: 3px solid #111; }
.tile--procreate { color: #fff; background: linear-gradient(160deg, #222 55%, #ff5fa2 56%, #ffd23f 70%, #3fe0ff 85%); }
.tile--wix { color: #fff; background: #111; font-size: .85rem; }
.tile--cam { background: var(--yellow); }
.tile--cam img { width: 30px; height: auto; }

@media (max-width: 900px) {
  .poster { height: clamp(560px, 92svh, 760px); }
  .poster__word { top: 40%; font-size: 34vw; }
  .poster__me { height: 78%; }
  .poster__script--a { top: 20%; right: 4%; }
  .poster__script--b { bottom: 10%; left: 4%; }
  .poster__tag { top: 31%; right: 6%; }
  .ic--wix { --x: 74% !important; --y: 58% !important; }
  .ic--procreate { --x: 4% !important; --y: 48% !important; }
  .poster__script--b { bottom: 3%; left: 4%; font-size: 1.5rem; }
  .intro__info { grid-template-columns: 1fr; }
}

/* ---------- 3. status (Undertale-style UI) ---------- */
.stats, .skills {
  padding-block: var(--section-pad);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(140, 90, 255, .28), transparent 70%),
    radial-gradient(circle at 20% 30%, #fff 1px, transparent 1.5px) 0 0 / 140px 140px,
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .6) 1px, transparent 1.5px) 0 0 / 190px 190px,
    var(--void);
}
.ut { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: 18px; }
.ut__box { padding: 18px 20px; background: #000; border: 4px solid #fff; }
.ut__dialog { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: start; }
.ut__face { width: 88px; height: 88px; object-fit: cover; background: #1a1433; border: 3px solid #fff; }
.ut__text { margin: 0; font-family: var(--f-term); font-size: 1.45rem; line-height: 1.2; white-space: pre-line; }
.ut__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-family: var(--f-display); font-size: .9rem; }
.ut__heart { color: var(--red); font-weight: 400; }
.ut__xp { display: inline-flex; align-items: center; gap: 10px; }
.ut__meter { display: inline-block; width: 70px; height: 18px; background: #8b0000; }
.ut__meter b { display: block; height: 100%; width: 100%; background: #ffff00; }
.ut__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ut__act {
  padding: 8px 10px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  border: 3px solid currentColor;
}
.ut__act--o { color: #ff8a3c; }
.ut__act--y { color: #ffe600; }
.ut__act--r { color: #ff6a4d; }
.ut__act--p { color: #b18cff; }
.ut__act:hover { color: #000; background: var(--yellow); border-color: var(--yellow); }
.ut__act:hover::before { content: "♥ "; color: var(--red); }
.ut__quote { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.ut__quote img { width: 56px; height: auto; }
.ut__quote p { margin: 0; font-family: var(--f-term); font-size: 1.5rem; line-height: 1.15; }
.ut__quote span { color: #9b93c9; }
.ach { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ach__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: #14102a;
  border: 3px solid #3a2f6b;
  transition: border-color .15s steps(2), transform .15s steps(2);
}
.ach__item:hover { border-color: var(--yellow); transform: translate(-2px, -2px); }
.ach__item > img { width: 48px; height: auto; justify-self: center; }
.ach__item div { display: grid; min-width: 0; }
.ach__item b { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.ach__item span { font-size: .96rem; font-weight: 500; line-height: 1.35; }
.ach__item small { font-size: .82rem; color: #a79bd6; }
.ach__item--gold { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 210, 63, .35), 0 0 30px rgba(255, 210, 63, .25); }
.ach__state { padding: 2px 6px; font-family: var(--f-display) !important; font-size: .62rem !important; text-transform: uppercase; color: #6bff3a; border: 2px solid #6bff3a; }

@media (max-width: 980px) {
  .ut { grid-template-columns: 1fr; }
  .ach { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ut__dialog { grid-template-columns: 60px minmax(0, 1fr); }
  .ut__face { width: 60px; height: 60px; }
  .ut__text { font-size: 1.3rem; }
  .ach__state { display: none; }
  .ach__item { grid-template-columns: 44px minmax(0, 1fr); }
}

/* ---------- 4. quest log on a grass map ---------- */
.quests {
  padding-block: var(--section-pad);
  background: #3d9b3f var(--grass, none) 0 0 / 64px 64px repeat;
  image-rendering: pixelated;
}
.signboard { position: relative; max-width: 640px; margin: 0 auto clamp(48px, 6vw, 70px); padding-bottom: 40px; }
.signboard__post { position: absolute; bottom: 0; width: 18px; height: 60px; background: #6b3d1a; box-shadow: inset -5px 0 0 #4a2810; }
.signboard__post:first-child { left: 18%; }
.signboard__post:nth-child(2) { right: 18%; }
.signboard__board {
  position: relative;
  padding: 24px clamp(18px, 4vw, 36px) 26px;
  text-align: center;
  color: #fff6e0;
  background: repeating-linear-gradient(0deg, #b87a3f 0 26px, #a86a32 26px 30px);
  box-shadow: 0 -4px 0 #4a2810, 0 4px 0 #4a2810, -4px 0 0 #4a2810, 4px 0 0 #4a2810, 10px 10px 0 rgba(0, 0, 0, .3);
}
.signboard .eyebrow { color: #ffe9a8; }
.signboard p:last-child { margin: 12px auto 0; max-width: 46ch; font-size: 1rem; color: #fff6e0; }
.path { position: relative; display: grid; gap: 30px; max-width: 1040px; margin: 0 auto; padding: 0; list-style: none; }
.path::before {
  content: "";
  position: absolute;
  top: -20px;
  bottom: -20px;
  left: 50%;
  width: 28px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 30% 30%, #b98a52 2px, transparent 2.5px) 0 0 / 14px 14px,
    #d9b27a;
  box-shadow: -4px 0 0 #a87a45, 4px 0 0 #a87a45;
}
.quest { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); align-items: start; }
.quest__node {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink), 6px 8px 0 rgba(0, 0, 0, .3);
}
.quest__node--guild { background: var(--rose); }
.quest__node--side { background: #fff; }
.quest__card { grid-column: 1; grid-row: 1; min-width: 0; }
.quest:nth-child(even) .quest__card { grid-column: 3; }
.quest__card {
  padding: 20px 22px 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink), 10px 10px 0 rgba(0, 0, 0, .3);
}
.quest__type { display: inline-block; margin: 0 0 10px; padding: 2px 8px; font-family: var(--f-display); font-size: .68rem; text-transform: uppercase; }
.quest__type--main { color: var(--ink); background: var(--yellow); }
.quest__type--guild { color: #fff; background: #d6337a; }
.quest__type--side { color: #fff; background: #5a4d9a; }
.quest__card h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.15; text-transform: uppercase; }
.quest__who { margin: 6px 0 0; font-weight: 600; font-size: .98rem; }
.quest__who a { color: #1d5fd6; }
.quest__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.quest__meta span { padding: 1px 8px; font-weight: 600; font-size: .8rem; color: #fff; background: var(--ink); }
.quest__meta .quest__loc { color: var(--ink); background: #ffe1b8; }
.quest__sum { margin: 12px 0 0; font-size: 1rem; font-weight: 600; line-height: 1.45; color: #5a3a9a; }
.quest__obj { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .95rem; line-height: 1.45; }
.quest__obj li { position: relative; padding-left: 26px; }
.quest__obj li::before { content: "✓"; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 16px; height: 16px; font-size: .75rem; font-weight: 700; color: #fff; background: var(--green); box-shadow: 0 0 0 2px var(--ink); }
.quest__reward { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 4px 10px 4px 6px; font-family: var(--f-display); font-size: .74rem; text-transform: uppercase; color: var(--yellow); background: var(--ink); }
.quest__reward img { width: 22px; height: auto; }

@media (max-width: 820px) {
  .path::before { left: 22px; }
  .quest { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
  .quest__node { grid-column: 1; width: 40px; height: 40px; margin-top: 12px; font-size: .85rem; }
  .quest__card, .quest:nth-child(even) .quest__card { grid-column: 2; }
}

/* ---------- 5. project files: one console screen per project, each plays by itself ---------- */
.works {
  padding-block: var(--section-pad);
  color: #fff;
  background:
    radial-gradient(ellipse 60% 30% at 20% 0%, rgba(110, 90, 255, .35), transparent 70%),
    radial-gradient(ellipse 50% 25% at 90% 55%, rgba(79, 227, 208, .1), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 100% 32px,
    #12122b;
}
.sec-head--ps .eyebrow, .sec-head--ps .h-pixel em { color: #4fe3d0; }
.pj-index { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(30px, 4vw, 52px); }
.pj-index a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; font-family: var(--f-display); font-size: .6rem; text-transform: uppercase; color: #fff; text-decoration: none; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .2); }
.pj-index a img { width: 36px; height: 24px; object-fit: cover; }
.pj-index a:hover { color: var(--acc); border-color: var(--acc); }
/* the project screens break out a little wider than the text column */
.pjs { display: grid; gap: clamp(40px, 6vw, 84px); margin-inline: calc((100% - min(1400px, 100vw - 32px)) / 2); }
.pj { --acc: #4fe3d0; display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); background: linear-gradient(160deg, #1f1e5a, #16153f); box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); scroll-margin-top: 84px; }
.pj:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr); }
.pj:nth-child(even) .pj__console { order: 2; }
.pj__stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0a22; isolation: isolate; }
.pj__bg { position: absolute; inset: -10%; z-index: -2; width: 120%; height: 120%; object-fit: cover; filter: blur(30px) saturate(1.4) brightness(.55); }
.pj__stage::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 50% at 50% 115%, color-mix(in srgb, var(--acc) 40%, transparent), transparent 70%), linear-gradient(180deg, rgba(5, 4, 20, .45), transparent 22%, transparent 70%, rgba(5, 4, 20, .7)); }
.pj__view { position: absolute; inset: 46px clamp(56px, 6vw, 76px) 66px; padding: 0; background: none; border: 0; cursor: zoom-in; }
.pj__img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); }
.pj__img.is-swap { animation: ps-in .5s cubic-bezier(.2, .9, .3, 1); }
.pj__top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: .58rem; text-transform: uppercase; }
.pj__auto { padding: 3px 8px; color: #12122b; background: var(--acc); }
.pj__auto.is-paused { background: #fff; }
.pj__timer { flex: 1; height: 4px; background: rgba(255, 255, 255, .2); }
.pj__timer b { display: block; width: 0; height: 100%; background: var(--acc); }
.pj__timer b.is-run { animation: xp var(--t, 2.8s) linear both; }
.pj__count b { font-size: .9rem; color: var(--acc); }
.pj__code { position: absolute; left: 16px; bottom: 10px; margin: 0; font-family: "Anton", "Impact", sans-serif; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: .85; color: #fff; text-shadow: 0 6px 20px rgba(0, 0, 0, .45); pointer-events: none; }
.pj__code span { color: var(--acc); }
.pj__zoom { position: absolute; right: 16px; bottom: 16px; font-family: var(--f-display); font-size: .56rem; text-transform: uppercase; color: rgba(255, 255, 255, .8); pointer-events: none; }
.pj__watch { position: absolute; left: 50%; top: 50%; z-index: 2; padding: 12px 18px; font-family: var(--f-display); font-size: .72rem; text-transform: uppercase; color: #12122b; background: var(--acc); border: 0; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 14px 30px rgba(0, 0, 0, .5); translate: -50% -50%; animation: glint 1.6s ease-in-out infinite; }
.pj__watch[hidden] { display: none; }
.pj__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: clamp(20px, 2.6vw, 32px); }
.pj__no { margin: 0; font-family: "Anton", "Impact", sans-serif; font-size: clamp(2.6rem, 5vw, 4rem); line-height: .85; color: transparent; -webkit-text-stroke: 2px var(--acc); }
.pj__cat { margin: 0; font-family: var(--f-display); font-size: .64rem; text-transform: uppercase; color: var(--acc); }
.pj__title { margin: 0; font-family: "Anton", "Impact", sans-serif; font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.pj__client { margin: 0; font-size: .92rem; font-weight: 600; color: #b9bbf0; }
.pj__text { margin: 0; font-size: .95rem; line-height: 1.5; color: #d4d5ff; }
.pj__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pj__tags li { padding: 3px 9px; font-family: var(--f-display); font-size: .54rem; text-transform: uppercase; color: var(--acc); border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); }
.pj__cap { display: flex; align-items: center; gap: 10px; min-height: 2.8em; margin: auto 0 0; padding-top: 10px; font-size: .92rem; line-height: 1.3; border-top: 1px solid rgba(255, 255, 255, .12); }
.pj__cap span { flex: 1; min-width: 0; }
.pj__cap b { margin-right: 8px; font-family: var(--f-display); font-size: .58rem; color: var(--acc); }
.pj__ctrl { display: flex; flex: none; gap: 6px; }
.pj__ctrl button { width: 36px; height: 30px; padding: 0; font-size: .75rem; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); }
.pj__ctrl button:hover { color: #12122b; background: var(--acc); border-color: var(--acc); }
.pj__strip { display: flex; gap: 8px; padding: 6px 2px 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--acc) transparent; }
.pj__strip button { position: relative; flex: none; width: 78px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; background: #2a2970; border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s, transform .2s; }
.pj__strip button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pj__strip button i { position: absolute; right: 3px; bottom: 2px; font-size: .62rem; font-style: normal; color: #fff; text-shadow: 0 1px 3px #000; }
.pj__strip button:hover { opacity: 1; }
.pj__strip button.is-on { opacity: 1; border-color: var(--acc); transform: translateY(-3px); }

.pj__console { display: grid; grid-template-columns: clamp(54px, 5.4vw, 78px) minmax(0, 1fr) clamp(54px, 5.4vw, 78px); align-self: center; min-width: 0; padding: clamp(14px, 2vw, 24px) clamp(10px, 1.4vw, 18px); }
.pj__console .pj__stage { border: 12px solid #18181d; border-radius: 10px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), 0 0 0 2px #3c3c46, 0 24px 50px rgba(0, 0, 0, .45); }
.joy { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-evenly; gap: 14px; padding: 16px 6px; }
.joy--l { background: linear-gradient(180deg, #2fd0f7, #0aa2d4); border-radius: 30px 6px 6px 30px; box-shadow: inset 5px 5px 0 rgba(255, 255, 255, .28), inset -4px -4px 0 rgba(0, 0, 0, .18), -6px 10px 24px rgba(0, 0, 0, .35); }
.joy--r { background: linear-gradient(180deg, #ff6f66, #e8433a); border-radius: 6px 30px 30px 6px; box-shadow: inset -5px 5px 0 rgba(255, 255, 255, .28), inset 4px -4px 0 rgba(0, 0, 0, .18), 6px 10px 24px rgba(0, 0, 0, .35); }
.joy__stick { width: clamp(30px, 3vw, 40px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #6a6a74 0 22%, #2b2b31 60%); box-shadow: 0 0 0 4px #1b1b20, 0 5px 0 4px rgba(0, 0, 0, .3); transition: translate .2s ease; }
.joy.is-tilt-r .joy__stick { translate: 5px 0; }
.joy.is-tilt-l .joy__stick { translate: -5px 0; }
.joy__pad { display: grid; grid-template-columns: repeat(3, clamp(14px, 1.5vw, 20px)); grid-template-rows: repeat(3, clamp(14px, 1.5vw, 20px)); gap: 2px; }
.joy__pad > * { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; font-family: var(--f-display); font-size: .5rem; line-height: 1; color: #d9d9e0; background: #1d1d22; border: 0; border-radius: 50%; box-shadow: 0 2px 0 rgba(0, 0, 0, .45); }
.joy__pad > :nth-child(1) { grid-area: 1 / 2; }
.joy__pad > :nth-child(2) { grid-area: 2 / 1; }
.joy__pad > :nth-child(3) { grid-area: 2 / 3; }
.joy__pad > :nth-child(4) { grid-area: 3 / 2; }
.joy__pad button:hover, .joy__pad button:active { color: #12122b; background: #fff; translate: 0 1px; }
.joy__pad button.is-on { color: #12122b; background: var(--yellow); }
.joy__dot { width: 12px; height: 12px; border-radius: 3px; background: #1d1d22; }
.joy--r .joy__dot { border-radius: 50%; box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }
.hand { position: absolute; top: 50%; z-index: 3; width: clamp(40px, 4.2vw, 56px); padding: 4px; background: none; border: 0; translate: 0 -50%; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)); }
.hand img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.hand--l { left: 6px; animation: hand-l 1.1s ease-in-out infinite; }
.hand--l img { transform: scaleX(-1); }
.hand--r { right: 6px; animation: hand-r 1.1s ease-in-out infinite; }
.hand--r.is-push { animation: hand-push-r .4s ease-out; }
.hand--l.is-push { animation: hand-push-l .4s ease-out; }
.hand:hover { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 10px var(--acc)); }
.pj__keys { margin: 0; font-family: var(--f-display); font-size: .52rem; text-transform: uppercase; color: #8d8fd0; }

/* each project powers on like a TV when it scrolls in, then its text and pages pop in */
.js .pj:not(.is-in) .pj__stage { clip-path: inset(50% 0 50% 0); }
.pj.is-in .pj__stage { animation: crt-open .8s cubic-bezier(.2, .8, .2, 1) both; }
.js .pj:not(.is-in) .pj__info > * { opacity: 0; }
.pj.is-in .pj__info > * { animation: focus-in .6s ease-out backwards; animation-delay: calc(var(--i, 0) * 80ms + .3s); }
.pj.is-in .pj__strip button { animation: pop-in .35s steps(4) backwards; animation-delay: calc(var(--i, 0) * 35ms + .7s); }

@media (max-width: 900px) {
  .pj, .pj:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .pj:nth-child(even) .pj__console { order: 0; }
  .pj__console { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "screen screen" "l r"; padding: 12px 12px 0; }
  .pj__console .pj__stage { grid-area: screen; border-width: 7px; }
  .pj__console { align-self: stretch; }
  .pj__stage { aspect-ratio: 4 / 3.5; }
  .joy { flex-direction: row; justify-content: space-around; margin: 10px 0 0; padding: 10px 12px; }
  .joy--l { grid-area: l; margin-left: 0; border-radius: 6px 6px 6px 30px; }
  .joy--r { grid-area: r; flex-direction: row-reverse; margin-right: 0; border-radius: 6px 6px 30px 6px; }
  .joy__pad { grid-template-columns: repeat(3, 20px); grid-template-rows: repeat(3, 20px); }
  .pj__view { inset: 40px 34px 50px; }
  .hand { width: 30px; padding: 2px; }
  .hand--l { left: 2px; }
  .hand--r { right: 2px; }
  .pj__code { font-size: 2.4rem; }
  .pj__zoom { display: none; }
}

/* ---------- 5b. web builds ---------- */
.web {
  padding-block: var(--section-pad);
  background:
    linear-gradient(rgba(63, 224, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(63, 224, 255, .05) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse 60% 50% at 75% 10%, rgba(63, 224, 255, .18), transparent 70%),
    #08121c;
}
.sec-head--web .eyebrow { color: #39ff6a; }
.sec-head--web .h-pixel em { color: var(--cyan); text-shadow: 0 0 16px rgba(63, 224, 255, .55), 4px 4px 0 rgba(0, 0, 0, .35); }
.sites { display: grid; gap: clamp(44px, 6vw, 80px); }
.site { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: center; }
.site--flip .site__frame { order: 2; }
.site__frame {
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #0d1424;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(63, 224, 255, .35), 0 30px 60px rgba(0, 0, 0, .55), 0 0 44px rgba(63, 224, 255, .14);
  transition: transform .3s ease, box-shadow .3s ease;
}
.site__frame:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--cyan), 0 40px 70px rgba(0, 0, 0, .6), 0 0 60px rgba(63, 224, 255, .3); }
.site__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #16213a; }
.site__bar i { width: 10px; height: 10px; background: #ff5f57; border-radius: 50%; }
.site__bar i:nth-child(2) { background: #febc2e; }
.site__bar i:nth-child(3) { background: #28c840; }
.site__bar span { flex: 1; min-width: 0; margin-left: 8px; padding: 3px 12px; overflow: hidden; font-family: var(--f-term); font-size: 1.05rem; color: #b8c8e8; white-space: nowrap; text-overflow: ellipsis; background: #0b1222; border-radius: 999px; }
.site__screen { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.site__shot { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.site__screen.is-play .site__shot { animation: site-scroll var(--dur, 30s) ease-in-out infinite; }
.site__live { position: absolute; top: 0; left: 0; z-index: 1; width: 1280px; height: 800px; transform-origin: 0 0; opacity: 0; pointer-events: none; transition: opacity .6s ease; }
.site__live.is-loaded { opacity: 1; }
.site__live iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.site__screen.is-live .site__shot { visibility: hidden; }
.site__go { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 8px 14px; font-family: var(--f-display); font-size: .7rem; text-transform: uppercase; color: var(--ink); background: var(--cyan); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.site__frame { position: relative; }
.site__info { min-width: 0; }
.site__no { margin: 0; font-family: "Anton", "Impact", sans-serif; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--cyan); }
.site__info h3 { margin: 6px 0 10px; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.15; text-transform: uppercase; }
.site__info p:not(.site__no) { margin: 0; color: #c8d4ec; }
.site__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.site__tags li { padding: 4px 10px; font-family: var(--f-display); font-size: .6rem; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(63, 224, 255, .45); }
.minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mini { display: grid; gap: 4px; padding: 10px; background: #0d1424; border: 1px solid rgba(63, 224, 255, .2); }
.mini img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 6px; }
.mini b { font-family: var(--f-display); font-size: .72rem; text-transform: uppercase; }
.mini small { font-size: .82rem; color: #9fb0d0; }
@media (max-width: 900px) {
  .site, .site--flip { grid-template-columns: minmax(0, 1fr); }
  .site--flip .site__frame { order: 0; }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 6. video library: PC game launcher ---------- */
.library {
  padding-block: var(--section-pad);
  background:
    linear-gradient(rgba(63, 224, 255, .06) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(63, 224, 255, .06) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(160, 60, 255, .35), transparent 70%),
    #07060f;
}
.launcher {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(180deg, rgba(22, 18, 44, .92), rgba(10, 8, 22, .96));
  border: 1px solid rgba(160, 130, 255, .35);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.launcher::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, #3fe0ff, #a77bff 40%, #ff4fd8 70%, #ffd23f);
  filter: blur(18px);
  opacity: .35;
}
.launcher__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.launcher__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: .8rem; letter-spacing: .08em; color: #cfc6ff; }
.launcher__brand img { width: 28px; height: 28px; border-radius: 6px; }
.launcher__brand b { color: #fff; }
.launcher__tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255, 255, 255, .05); border-radius: 10px; }
.ltab { padding: 8px 14px; font-family: var(--f-display); font-size: .7rem; text-transform: uppercase; color: #b8b0e0; background: none; border: 0; border-radius: 7px; }
.ltab:hover { color: #fff; }
.ltab.is-on { color: var(--ink); background: linear-gradient(90deg, #3fe0ff, #a77bff); }
.launcher__status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-family: var(--f-term); font-size: 1.15rem; color: #9b93c9; }
.dot-live { width: 8px; height: 8px; background: #39ff6a; border-radius: 50%; box-shadow: 0 0 10px #39ff6a; animation: blink 1.4s steps(1) infinite; }
.launcher__head { margin: 26px 0 22px; text-align: left; }
.launcher__head .eyebrow { color: var(--cyan); }
.launcher__head .h-pixel em { color: var(--cyan); text-shadow: 0 0 14px rgba(63, 224, 255, .6), 4px 4px 0 rgba(0, 0, 0, .35); }
.launcher__head p:last-child { margin: 10px 0 0; color: #b8b0e0; }
.games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
@media (max-width: 1000px) and (min-width: 761px) { .games { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.game {
  --glow: #3fe0ff;
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  color: #fff;
  text-align: left;
  text-decoration: none;
  background: #0d0b1d;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 30px rgba(0, 0, 0, .5);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), box-shadow .25s ease;
}
.game[hidden] { display: none; }
.game--featured { grid-column: span 2; grid-row: span 2; --glow: #ffd23f; }
.game:nth-child(3n) { --glow: #ff4fd8; }
.game:nth-child(3n+2) { --glow: #a77bff; }
.game:hover, .game:focus-visible { transform: translateY(-6px) scale(1.015); box-shadow: 0 0 0 2px var(--glow), 0 0 30px color-mix(in srgb, var(--glow) 55%, transparent), 0 24px 40px rgba(0, 0, 0, .6); outline: none; }
.game__media { position: absolute; inset: 0; }
.game__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.game__media img.is-still { animation: kenburns 14s ease-in-out infinite alternate; transform-origin: var(--ox, 50%) var(--oy, 35%); }
.game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 4, 15, .55) 0%, transparent 26%, transparent 52%, rgba(5, 4, 15, .92) 100%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.game::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  z-index: 2;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
  pointer-events: none;
}
.game:hover::after { left: 130%; }
.game__corners { position: absolute; inset: 10px; z-index: 3; pointer-events: none; }
.game__corners::before, .game__corners::after { content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid var(--glow); opacity: .8; }
.game__corners::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.game__corners::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.game__top { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; }
.game__badge { padding: 3px 8px; font-family: var(--f-display); font-size: .62rem; text-transform: uppercase; color: var(--ink); background: var(--glow); border-radius: 4px; }
.game__views { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-family: var(--f-display); font-size: .7rem; background: rgba(0, 0, 0, .55); border-radius: 4px; backdrop-filter: blur(4px); }
.game__views::before { content: ""; width: 7px; height: 7px; background: #ff3b5c; border-radius: 50%; box-shadow: 0 0 8px #ff3b5c; }
.game__views--dur::before { width: 0; height: 0; background: none; border-left: 7px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-radius: 0; box-shadow: none; }
.game__info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; display: grid; gap: 2px; }
.game__info b { font-family: var(--f-display); font-weight: 700; font-size: clamp(.78rem, 1.3vw, .95rem); line-height: 1.15; text-transform: uppercase; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.game__info small { font-family: var(--f-term); font-size: 1.1rem; line-height: 1; color: #cfc6ff; }
.game__info p { margin: 6px 0 0; max-width: 46ch; font-size: .92rem; line-height: 1.4; color: #e2dcff; }
.game__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
  color: var(--ink);
  background: var(--glow);
  border-radius: 50%;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--glow) 30%, transparent), 0 0 30px var(--glow);
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease;
}
.game:hover .game__play, .game:focus-visible .game__play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.game--featured .game__play { width: 86px; height: 86px; font-size: 1.8rem; opacity: 1; transform: translate(-50%, -50%) scale(1); animation: pulse-ring 1.8s ease-out infinite; }
.game--featured .game__badge { font-size: .72rem; }
.game__now { position: absolute; left: 16px; top: 52px; z-index: 3; font-family: var(--f-term); font-size: 1.3rem; color: var(--yellow); text-shadow: 0 0 10px rgba(255, 210, 63, .6); }
.game__xp { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 4px; background: rgba(255, 255, 255, .1); }
.game__xp span { display: block; height: 100%; width: 0; background: var(--glow); box-shadow: 0 0 8px var(--glow); animation: xp 7s linear infinite; }
.launcher__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; padding-top: 14px; font-family: var(--f-term); font-size: 1.15rem; color: #9b93c9; border-top: 1px solid rgba(255, 255, 255, .08); }
.launcher__foot b { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 5px; margin-right: 4px; font-family: var(--f-display); font-size: .6rem; color: var(--ink); background: #cfc6ff; border-radius: 4px; }
.launcher__links { display: inline-flex; gap: 16px; margin-left: auto; }
.launcher__more { font-family: var(--f-display); font-size: .72rem; text-transform: uppercase; color: var(--cyan); text-decoration: none; }
.launcher__more:hover { color: #fff; }

/* video player dialog */
.player-box { width: min(440px, 92vw); max-height: 94vh; padding: 0; color: #fff; background: transparent; border: 0; overflow: visible; }
.player-box--wide { width: min(960px, 94vw); }
.player-box::backdrop { background: rgba(5, 4, 15, .9); }
.player-box__inner { overflow: hidden; background: #0d0b1d; border: 2px solid #3fe0ff; border-radius: 14px; box-shadow: 0 0 40px rgba(63, 224, 255, .4); }
.player-box__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; font-family: var(--f-display); font-size: .72rem; text-transform: uppercase; background: #16123a; }
.player-box__close { width: 34px; height: 34px; padding: 0; font-size: 1.3rem; color: var(--ink); background: var(--cyan); border: 0; border-radius: 8px; }
.player-box__stage { position: relative; background: #000; }
.player-box video { display: block; width: 100%; max-height: calc(94vh - 52px); background: #000; }
.player-box__msg { position: absolute; left: 50%; top: 50%; margin: 0; padding: 8px 14px; font-family: var(--f-display); font-size: .7rem; text-transform: uppercase; color: var(--ink); background: var(--cyan); transform: translate(-50%, -50%); pointer-events: none; }
.player-box__msg a { pointer-events: auto; color: var(--ink); }
.player-box[open] { position: fixed; inset: 0; z-index: 300; margin: auto; }

@media (max-width: 760px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game:last-child:nth-child(even) { grid-column: span 2; aspect-ratio: 2 / 1; }
  .game__info p { display: none; }
  .game__vw { display: none; }
  .game__top { top: 10px; left: 10px; right: 10px; }
  .launcher__status { margin-left: 0; }
  .launcher__links { margin-left: 0; }
}

/* ---------- 7. guild hall (holo card carousel) ---------- */
.guilds { padding-block: var(--section-pad); background: #0d0d11; }
.guilds__frame {
  padding-block: clamp(36px, 5vw, 56px) 30px;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(167, 123, 255, .22), transparent 70%), linear-gradient(#1b1b24, #101016);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
}
.guilds__head { text-align: center; }
.guilds__head .eyebrow { color: #39ff6a; }
.glow { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 5.6vw, 3.8rem); line-height: 1.05; text-transform: uppercase; text-shadow: 0 0 18px rgba(255, 255, 255, .35); }
.glow span { display: block; background: linear-gradient(90deg, #7a5cff, #ff4fd8 50%, #ff8a3c); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.guilds__head p:last-child { max-width: 46ch; margin: 14px auto 0; color: #b8b8c8; }
.carousel { position: relative; height: clamp(400px, 46vw, 470px); margin-top: 20px; perspective: 1200px; }
.carousel::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0;
  height: 32%;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 80px), linear-gradient(rgba(255, 255, 255, .06), transparent);
}
.gcard {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: var(--z, 1);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: clamp(200px, 22vw, 250px);
  aspect-ratio: 3 / 4.2;
  padding: 14px;
  color: #fff;
  text-decoration: none;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
  transform: translateX(-50%) translateX(var(--tx, 0)) translateZ(var(--tz, 0)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  opacity: var(--op, 1);
  transition: transform .5s cubic-bezier(.3, .8, .3, 1), opacity .4s ease;
  overflow: hidden;
}
.gcard.is-center::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .55) 40%, rgba(160, 255, 255, .35) 48%, transparent 60%) 0 0 / 250% 100%;
  mix-blend-mode: overlay;
  animation: holo 3.2s ease-in-out infinite;
  pointer-events: none;
}
.gcard[data-hue="pink"] { --bg: linear-gradient(160deg, #ff9ec2, #d6337a 60%, #7a1240); }
.gcard[data-hue="cyan"] { --bg: linear-gradient(160deg, #9ff3ff, #2fb5d6 55%, #1a4a8a); }
.gcard[data-hue="gold"] { --bg: linear-gradient(160deg, #ffe48a, #ffb02e 55%, #b2541a); }
.gcard[data-hue="purple"] { --bg: linear-gradient(160deg, #d0b8ff, #7a5cff 55%, #2e1a7a); }
.gcard[data-hue="orange"] { --bg: linear-gradient(160deg, #ffc09a, #ff6a3c 55%, #8a2a12); }
.gcard[data-hue="lime"] { --bg: linear-gradient(160deg, #e2ff9a, #5fd35a 55%, #1a6a3a); }
.gcard[data-hue="rose"] { --bg: linear-gradient(160deg, #ffd1e8, #ff6fa8 50%, #6a2a8a); }
.gcard.is-center { --bg: linear-gradient(135deg, #e9d8ff, #b8f1ff 30%, #ffd1f2 55%, #c6ffe4 80%, #ffe9b8); color: var(--ink); }
.gcard__artist { display: flex; align-items: center; gap: 8px; justify-self: start; max-width: 100%; padding: 5px 10px 5px 5px; background: rgba(0, 0, 0, .35); border-radius: 999px; color: #fff; }
.gcard__artist img { width: 28px; height: 28px; background: #2a2250; border-radius: 50%; }
.gcard__artist span { display: grid; min-width: 0; line-height: 1.1; }
.gcard__artist small { font-size: .62rem; opacity: .8; }
.gcard__artist b { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard__icon { align-self: center; justify-self: center; width: 52%; height: auto; aspect-ratio: 1; object-fit: cover; background: #fff; border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 255, 255, .85), 0 0 0 9px rgba(0, 0, 0, .25), 0 14px 24px rgba(0, 0, 0, .35); }
.gcard__icon.is-pixel { border-radius: 0; image-rendering: pixelated; background: #2a2250; }
.gcard__stat { display: block; margin-top: 4px; font-family: var(--f-term); font-size: 1.1rem; font-weight: 400; line-height: 1; text-transform: none; opacity: .9; }
.gcard__name { font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.1; text-transform: uppercase; }
.gcard__bid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px; margin-top: 10px; padding: 10px 12px; color: #fff; background: rgba(20, 20, 30, .55); border-radius: 14px; backdrop-filter: blur(4px); }
.gcard__bid small { grid-column: 1 / -1; font-size: .66rem; opacity: .75; }
.gcard__bid b { font-size: .82rem; line-height: 1.2; }
.gcard__bid em { font-style: normal; font-family: var(--f-display); font-size: .72rem; color: #39ff6a; white-space: nowrap; }
.carousel__nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { width: 12px; height: 12px; padding: 0; background: #3a3a4a; border: 0; }
.carousel__dots button.is-on { background: #39ff6a; }
.cbtn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; font-size: 1rem; color: var(--ink); background: #fff; border: 0; box-shadow: 0 4px 0 #8a8aa0; }
.cbtn:hover { background: var(--yellow); }
.cbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a8aa0; }

/* ---------- 8. skill tree ---------- */
.trees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tree { padding: 18px; background: #14102a; border: 4px solid var(--purple); box-shadow: 8px 8px 0 rgba(0, 0, 0, .4); }
.tree h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--f-display); font-size: .82rem; line-height: 1.25; text-transform: uppercase; color: var(--yellow); }
.tree h3 img { width: 34px; height: auto; flex: none; }
.slots { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.slots li { position: relative; padding: 5px 8px 5px 26px; font-size: .95rem; line-height: 1.3; background: #0b0818; border: 2px solid #2a2250; }
.slots li::before { content: "◆"; position: absolute; left: 8px; top: 5px; font-size: .7rem; color: var(--purple); }
.slots li:hover { border-color: var(--yellow); }
.loadout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.panel { padding: 18px 20px 22px; background: #000; border: 4px solid #fff; }
.panel__title { margin: 0 0 16px; font-family: var(--f-display); font-size: 1rem; text-transform: uppercase; }
.inv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 10px; margin: 0; padding: 0; list-style: none; }
.inv li { display: grid; justify-items: center; gap: 12px; padding: 12px 4px 10px; font-size: .82rem; text-align: center; background: #0b0818; border: 3px solid #2a2250; }
.inv li:hover { border-color: var(--yellow); }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.perks li { padding: 6px 10px; font-family: var(--f-term); font-size: 1.25rem; line-height: 1; color: var(--ink); background: var(--lime); }
.perks li:nth-child(3n+2) { background: var(--rose); }
.perks li:nth-child(3n) { background: var(--cyan); }
.carts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cart {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 12px 12px;
  text-align: center;
  background: #8b8ba3;
  clip-path: polygon(0 0, 78% 0, 100% 12%, 100% 100%, 0 100%);
  box-shadow: inset 0 -6px 0 #6a6a84;
}
.cart::before { content: ""; position: absolute; top: 6px; left: 12px; right: 30%; height: 4px; background: repeating-linear-gradient(90deg, #6a6a84 0 6px, transparent 6px 10px); }
.cart__label { display: grid; gap: 2px; padding: 12px 6px; color: var(--ink); background: var(--c); border: 3px solid var(--ink); }
.cart__label b { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.cart small { font-family: var(--f-display); font-size: .62rem; text-transform: uppercase; color: #fff; }

@media (max-width: 1080px) {
  .trees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .trees, .loadout { grid-template-columns: 1fr; }
  .inv { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .carts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 9. academy: spinning KSÜ crest, diploma card and a level path ---------- */
.academy {
  padding-block: var(--section-pad);
  color: #fff;
  background:
    radial-gradient(ellipse 55% 45% at 18% 35%, rgba(63, 90, 230, .5), transparent 70%),
    radial-gradient(ellipse 45% 40% at 88% 75%, rgba(226, 35, 26, .25), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 100% 28px,
    #0d1236;
}
.sec-head--academy .eyebrow { color: var(--yellow); }
.sec-head--academy .h-pixel em { color: var(--yellow); }
.sec-head--academy p:not(.eyebrow) { color: #c9cff5; }
.academy__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.crest { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; perspective: 900px; }
.crest__rays { position: absolute; left: 50%; top: 46%; width: 130%; aspect-ratio: 1; background: repeating-conic-gradient(rgba(255, 210, 63, .2) 0 7deg, transparent 7deg 20deg); border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%); mask-image: radial-gradient(circle, #000 18%, transparent 68%); translate: -50% -50%; animation: spin 40s linear infinite; pointer-events: none; }
.crest__coin { position: relative; width: clamp(190px, 22vw, 280px); aspect-ratio: 339 / 370; transform-style: preserve-3d; animation: coin-spin 6s ease-in-out infinite; }
.crest__face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; filter: drop-shadow(0 0 22px rgba(255, 210, 63, .4)); }
.crest__face--back { transform: rotateY(180deg); }
/* hanging student ID (3D in assets/js/lanyard.js) and Jirachi */
.crest--mini { min-height: 0; margin: 0 auto 8px; perspective: 600px; }
.crest--mini .crest__coin { width: 78px; }
.lanyard-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.lanyard-wrap .crest__rays { top: 56%; width: 125%; }
.lanyard { position: relative; width: 100%; height: clamp(540px, 50vw, 660px); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.lanyard.is-hover { cursor: grab; }
.lanyard.is-grabbing { cursor: grabbing; }
.lanyard__canvas { position: absolute; top: -150px; left: -24%; z-index: 1; display: block; width: 148%; height: calc(100% + 150px); touch-action: pan-y; -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
.lanyard__still { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; }
.lanyard.is-3d .lanyard__still { display: none; }
.lanyard__strap { width: 30px; height: 26%; background: linear-gradient(90deg, var(--yellow) 0 3px, #2b3990 3px calc(100% - 3px), var(--yellow) calc(100% - 3px)); }
.lanyard__still img { width: min(58%, 290px); height: auto; margin-top: -4px; border-radius: 14px; box-shadow: 0 26px 44px rgba(0, 0, 0, .45); transform-origin: 50% 0; animation: still-swing 3.4s ease-in-out infinite alternate; }
.lanyard__hint { margin: 4px 0 0; font-family: var(--f-display); font-size: .62rem; text-transform: uppercase; color: #c9cff5; }
.jirachi { position: absolute; top: -78px; right: -30px; z-index: 4; width: clamp(130px, 13vw, 178px); padding: 0; background: none; border: 0; animation: jirachi-float 2.8s ease-in-out infinite alternate; }
.jirachi img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 16px rgba(255, 236, 140, .6)); }
.jirachi__wish { position: absolute; left: 50%; bottom: 92%; padding: 5px 10px; font-family: var(--f-display); font-weight: 700; font-size: .6rem; white-space: nowrap; color: var(--ink); background: #fff; box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink); translate: -50% 0; }
.jirachi.is-wish .jirachi__wish { background: var(--yellow); animation: pop-in .3s steps(4) both; }
.jirachi.is-wish img { animation: hop-once .5s ease-out; }
.diploma { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); color: var(--ink); background: #fdf6e3; border: 5px solid #c9a646; box-shadow: 0 0 0 5px #0d1236, 0 0 0 9px #c9a646, 0 34px 70px rgba(0, 0, 0, .55); }
.diploma__photo { position: relative; min-height: 340px; margin: 0; }
.diploma__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.diploma__stamp { position: absolute; right: -16px; bottom: 22px; padding: 8px 14px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; color: #e2231a; background: rgba(253, 246, 227, .94); border: 3px solid #e2231a; transform: rotate(-12deg); }
.io .diploma.is-in .diploma__stamp { animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) .5s both; }
.diploma__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: clamp(18px, 3vw, 34px); background: radial-gradient(circle at 100% 0%, rgba(201, 166, 70, .18), transparent 50%); }
.diploma__uni { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: .68rem; line-height: 1.3; text-transform: uppercase; color: #2b3990; }
.diploma__uni img { flex: none; width: 46px; height: auto; }
.diploma__deg { margin: 8px 0 0; font-family: var(--f-giant); font-weight: 400; font-size: clamp(2.3rem, 4.6vw, 3.5rem); line-height: .9; color: #2b3990; }
.diploma__major { margin: 0; font-family: "Allura", "Snell Roundhand", cursive; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.1; color: #b02a2a; }
.diploma__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.diploma__facts div { padding: 8px 10px; border: 2px dashed rgba(43, 57, 144, .3); }
.diploma__facts dt { font-family: var(--f-display); font-size: .56rem; text-transform: uppercase; color: #b02a2a; }
.diploma__facts dd { margin: 2px 0 0; font-weight: 600; font-size: .92rem; line-height: 1.35; }
.diploma__facts .is-ok { color: #1f8a3a; }
.journey { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: clamp(46px, 6vw, 76px) 0 0; padding: 0; list-style: none; }
.journey::before { content: ""; position: absolute; left: 12%; right: 12%; top: 26px; height: 6px; background: repeating-linear-gradient(90deg, var(--yellow) 0 14px, transparent 14px 24px); }
.journey li { position: relative; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.journey__node { display: grid; place-items: center; width: 58px; height: 58px; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); background: var(--yellow); box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink), 6px 8px 0 rgba(0, 0, 0, .4); }
.journey .is-boss .journey__node { color: #fff; background: #e2231a; animation: glint 1.4s ease-in-out infinite; }
.journey b { font-family: var(--f-display); font-weight: 700; font-size: .8rem; text-transform: uppercase; color: var(--yellow); }
.journey p { margin: 0; max-width: 26ch; font-size: .92rem; line-height: 1.5; color: #d3d8fa; }

@media (max-width: 900px) {
  .academy__grid, .diploma { grid-template-columns: minmax(0, 1fr); }
  .diploma__photo { min-height: 0; aspect-ratio: 4 / 3.6; }
  .diploma__stamp { right: 10px; }
  .lanyard { height: 560px; }
  .lanyard__canvas { top: -40px; left: -16px; width: calc(100% + 32px); height: calc(100% + 40px); }
  .jirachi { top: -62px; right: -6px; width: 118px; }
  .journey { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .journey::before { left: 26px; right: auto; top: 10px; bottom: 10px; width: 6px; height: auto; background: repeating-linear-gradient(180deg, var(--yellow) 0 14px, transparent 14px 24px); }
  .journey li { grid-template-columns: 58px 1fr; justify-items: start; column-gap: 16px; text-align: left; }
  .journey__node { grid-row: span 2; }
}

/* ---------- 10. continue? (sunset ending) ---------- */
.ending { min-height: 820px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; background: #0b1416; }
.ending__world { position: absolute; inset: 0; overflow: hidden; background: #0b1416; }
.ending__gif { object-position: 70% 40%; transform: scaleX(-1); }
.ending__world::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 24, .82), rgba(8, 10, 24, .35) 55%, rgba(8, 10, 24, .2)), linear-gradient(180deg, transparent 60%, rgba(7, 6, 13, .9)), repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.ending__inner { z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: end; gap: 24px; padding-top: var(--section-pad); }
.continue {
  align-self: center;
  max-width: 560px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(16, 10, 36, .82);
  box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff, -4px 0 0 #fff, 4px 0 0 #fff, 10px 10px 0 rgba(0, 0, 0, .35);
}
.continue__q { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; text-transform: uppercase; }
.continue__count { margin: 0; font-family: var(--f-giant); font-size: clamp(6rem, 14vw, 9rem); line-height: .8; color: var(--yellow); text-shadow: 6px 6px 0 #b02a68; font-variant-numeric: tabular-nums; }
.continue__coin { display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; font-family: var(--f-display); font-size: .82rem; text-transform: uppercase; color: var(--cyan); animation: blink 1.2s steps(1) infinite; }
.continue__coin img { width: 24px; height: auto; }
.continue__sub { margin: 14px 0 0; max-width: 44ch; color: #e8e2ff; }
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--c, #fff);
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), 0 8px 0 rgba(0, 0, 0, .35);
  transition: transform .12s steps(2);
}
.contact-list a:hover { transform: translateY(-3px); }
.contact-list svg { flex: none; width: 24px; height: 24px; }
.contact-list span { display: grid; min-width: 0; }
.contact-list b { font-family: var(--f-display); font-size: .78rem; text-transform: uppercase; }
.contact-list small { font-size: .82rem; overflow-wrap: anywhere; }
.contact-list .c-wa { --c: #6bff8a; }
.contact-list .c-mail { --c: var(--yellow); }
.contact-list .c-ig { --c: var(--rose); }
.contact-list .c-in { --c: #8fd0ff; }
.ending__me { justify-self: end; width: min(100%, 440px); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.credits { position: relative; z-index: 1; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--void); border-top: 4px solid #fff; }
.credits__roll { overflow: hidden; padding-block: 12px; }
.credits__track { display: flex; width: max-content; font-family: var(--f-display); font-size: .9rem; text-transform: uppercase; animation: marquee 34s linear infinite; }
.credits__track > * { margin-right: 26px; white-space: nowrap; }
.credits__track i { font-style: normal; color: var(--yellow); }
.credits__copy { margin: 0; padding-block: 6px 24px; font-family: var(--f-term); font-size: 1.1rem; text-align: center; color: #9b93c9; }

@media (max-width: 860px) {
  .ending__inner { grid-template-columns: 1fr; }
  .ending__me { justify-self: center; width: min(78%, 340px); margin-top: 10px; }
  .contact-list { grid-template-columns: 1fr; }
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  font-family: var(--f-display);
  font-size: .78rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: #6bff8a;
  box-shadow: 0 -4px 0 var(--ink), 0 4px 0 var(--ink), -4px 0 0 var(--ink), 4px 0 0 var(--ink), 0 10px 0 rgba(0, 0, 0, .35);
  transition: transform .12s steps(2), opacity .4s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 24px; height: 24px; }
.js:not(.is-booted) .wa-float { opacity: 0; }
@media (max-width: 600px) {
  .wa-float { padding: 12px; }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .credits__copy { padding-bottom: 90px; }
}

/* ---------- lightbox ---------- */
.lightbox { width: 100%; max-width: min(1100px, 94vw); max-height: 92vh; padding: 0; overflow: visible; color: var(--ink); background: transparent; border: 0; }
.lightbox::backdrop { background: rgba(7, 6, 13, .88); }
.lightbox__inner { position: relative; padding: 12px; background: var(--paper); box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff, -4px 0 0 #fff, 4px 0 0 #fff; }
.lightbox__img { display: block; width: 100%; height: auto; max-height: calc(92vh - 100px); object-fit: contain; background: #2a0a18; }
.lightbox__bar { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.lightbox__title { flex: 1; margin: 0; font-family: var(--f-display); font-size: .85rem; text-align: center; text-transform: uppercase; }
.lightbox__close { position: absolute; top: -18px; right: -18px; z-index: 2; width: 40px; height: 40px; padding: 0; font-family: var(--f-display); font-size: 1.4rem; line-height: 1; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); }

/* ---------- scroll reveal (only once JS runs) ---------- */
.io [data-reveal] { transition: opacity .45s steps(5) var(--d, 0ms), transform .45s steps(5) var(--d, 0ms); }
.io [data-reveal="pop"]:not(.is-in) { opacity: 0; transform: scale(.82); }
.io [data-reveal="slide"]:not(.is-in) { opacity: 0; transform: translateX(-40px); }
.io .quest:nth-child(even)[data-reveal="slide"]:not(.is-in) { transform: translateX(40px); }
.io [data-reveal="rise"]:not(.is-in) { opacity: 0; transform: translateY(60px); }
.io [data-reveal="drop"]:not(.is-in) { opacity: 0; transform: translateY(-70px); }

/* ---------- keyframes ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes float { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-14px) rotate(6deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes upload { from { width: 0; } to { width: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes holo { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes glint { 50% { transform: scale(1.12); } }
@keyframes swap { from { opacity: .2; filter: brightness(2); } to { opacity: 1; filter: none; } }
@keyframes crt-line { 0% { transform: scaleX(0); } 70% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes crt-off { to { visibility: hidden; } }
@keyframes crt-open { from { clip-path: inset(49.6% 0 49.6% 0); filter: brightness(4) saturate(0); } 60% { filter: brightness(1.6) saturate(.6); } to { clip-path: inset(0 0 0 0); filter: none; } }
@keyframes pull-back { from { transform: scale(1.35); } to { transform: scale(1); } }
@keyframes glitch { 0% { text-shadow: -6px 0 0 #ff2d8a, 6px 0 0 #3fe0ff; } 50% { text-shadow: 5px 0 0 #ff2d8a, -5px 0 0 #3fe0ff; } 100% { text-shadow: 4px 4px 0 #0f5a63, 8px 8px 0 rgba(0, 0, 0, .45), 0 0 30px rgba(120, 255, 240, .25); } }
@keyframes gundam-drift { 0% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.12) translate(-2.5%, 1.5%); } 100% { transform: scale(1.07) translate(2%, -1.2%); } }
@keyframes sweep { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
@keyframes shake { 0%, 100% { translate: 0 0; } 20% { translate: -6px 3px; } 40% { translate: 5px -4px; } 60% { translate: -4px 2px; } 80% { translate: 3px -2px; } }
@keyframes me-pop { from { opacity: 0; transform: translateY(40%) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes ball-throw { 0% { opacity: 1; transform: translate(-160px, -260px) rotate(-720deg); } 70% { opacity: 1; transform: translate(0, 0) rotate(0); } 85% { opacity: 1; transform: translate(0, -14px); } 100% { opacity: 1; transform: none; } }
@keyframes ball-open { from { opacity: 1; transform: scale(1.2); } to { opacity: 0; transform: scale(0); } }
@keyframes mon-flash { 0% { opacity: 1; transform: translate(-50%, 30%) scale(.1); } 100% { opacity: 0; transform: translate(-50%, 30%) scale(1.6); } }
@keyframes send-out { 0% { transform: scale(0); filter: brightness(0) invert(1) drop-shadow(0 0 16px #fff); } 55% { transform: scale(1.15); filter: brightness(0) invert(1) drop-shadow(0 0 16px #fff); } 100% { transform: none; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .45)); } }
@keyframes mew-float { from { translate: 0 0; } to { translate: -10px -16px; } }
@keyframes hop-once { 50% { translate: 0 -18px; } }
@keyframes heart-up { 0% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -40px); } }
@keyframes glow-pulse { from { box-shadow: 0 0 0 6px var(--purple), 0 0 26px rgba(167, 123, 255, .5); } to { box-shadow: 0 0 0 6px var(--cyan), 0 0 56px rgba(63, 224, 255, .8); } }
@keyframes ps-in { from { opacity: 0; transform: translateX(26px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes site-scroll { 0%, 8% { transform: translateY(0); } 46%, 56% { transform: translateY(calc(-100% + var(--vh, 360px))); } 94%, 100% { transform: translateY(0); } }
@keyframes still-swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes jirachi-float { from { translate: 0 0; } to { translate: -10px -14px; } }
@keyframes coin-spin { 0%, 25% { transform: rotateY(0deg) translateY(0); } 50% { transform: rotateY(180deg) translateY(-16px); } 75%, 100% { transform: rotateY(360deg) translateY(0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.4); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes hand-r { 50% { transform: translateX(6px); } }
@keyframes hand-l { 50% { transform: translateX(-6px); } }
@keyframes hand-push-r { 40% { transform: translateX(16px) scale(1.18); } }
@keyframes hand-push-l { 40% { transform: translateX(-16px) scale(1.18); } }
@keyframes ic-float { from { translate: 0 0; } to { translate: 0 -16px; } }
@keyframes flare { from { opacity: .75; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.18) translate(-3%, 2%); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 60%, transparent), 0 0 30px var(--glow); } 100% { box-shadow: 0 0 0 26px transparent, 0 0 30px var(--glow); } }
@keyframes xp { from { width: 0; } to { width: 100%; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wipe { from { opacity: 1; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 -10% 0 0); } }
@keyframes focus-in { from { opacity: 0; filter: blur(14px); transform: scale(1.06); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes deal {
  from { opacity: 0; transform: translateX(-50%) translateY(90px) rotate(0deg) scale(.6); }
  to { opacity: 1; transform: translateX(calc(-50% + var(--x))) translateY(var(--y)) rotate(var(--r)); }
}

/* ---------- print / PDF export (html.print-mode) ---------- */
.print-mode *, .print-mode *::before, .print-mode *::after { animation: none !important; transition: none !important; }
.print-mode .boot, .print-mode .hud, .print-mode .wa-float, .print-mode .stage-toast, .print-mode .lightbox, .print-mode .player-box, .print-mode .crt, .print-mode .poster__rays { display: none !important; }
.print-mode .title { min-height: 900px; }
.print-mode .poster { height: 900px; }
.print-mode .title__dust, .print-mode .roles__caret { display: none; }
.print-mode .dex span::after { display: none; }
.print-mode .mon__img, .print-mode .dex, .print-mode .party__me { opacity: 1 !important; }
.print-mode .site__shot { animation: none; }
.print-mode .pj__stage { clip-path: none !important; }
.print-mode .pj__bg { display: none; }
.print-mode .crest__face--back, .print-mode .crest__rays, .print-mode .lanyard__hint { display: none; }
.print-mode .pj__img, .print-mode .mon__img, .print-mode .party__me img { filter: none !important; }
.print-mode .pj__auto, .print-mode .pj__timer, .print-mode .pj__ctrl { visibility: hidden; }
.print-mode .poster__flare, .print-mode .poster__glow { display: none; }
.print-mode .poster__me, .print-mode .poster__word, .print-mode .ic, .print-mode .launcher::before { filter: none !important; }
.print-mode .launcher::before { display: none; }
.print-mode main > section { box-shadow: none; }
.print-mode .hud__nav { display: none; }
.print-mode .glow span { background: none; color: #ff6fd8; }

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