/* ==========================================================================
   Waged · portfolio
   ========================================================================== */

:root {
  --bg: #09090d;
  --surface: #121219;
  --surface-2: #191922;
  --surface-3: #22222d;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .14);

  --text: #efeff6;
  --muted: #9d9db2;
  --faint: #7f7f95;

  --accent: #8b5cf6;
  --accent-hi: #a78bfa;
  --accent-soft: #c4b5fd;
  --accent-strong: #7c3aed;
  --accent-glow: rgba(139, 92, 246, .42);
  --live: #22c55e;

  --radius: 18px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 10px;
}

.wrap {
  width: min(1040px, 100%);
  margin-inline: auto;
  padding-inline: 24px;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -12%, rgba(139, 92, 246, .17), transparent 62%),
    radial-gradient(640px 420px at -10% 35%, rgba(59, 130, 246, .06), transparent 60%);
}

.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Top bar ---------- */

/* Paint the phone's status-bar band so content never scrolls under it */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(9, 9, 13, .62);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
}

/* The "W" from the name, same gradient, no tile behind it */
.mark {
  display: block;
  flex: none;
  padding: 2px 2px .1em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
  background: linear-gradient(180deg, #ffffff 35%, var(--accent-soft) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .3s var(--ease);
}
.mark:hover { transform: translateY(-2px) skewX(-10deg); }

.tabs {
  position: relative;
  display: flex;
  gap: 2px;
  min-width: 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;           /* only scrolls on very narrow phones */
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .25s;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: #0c0c12; }

.tabs__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: #f2f2f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease), width .4s var(--ease);
}
.tabs__pill.no-anim { transition: none; }

/* ---------- Panels ---------- */

.panel { padding: 40px 0 16px; }
.panel[hidden] { display: none; }

/* With JS, only the current tab's panel is shown (set before first paint) */
.js .panel { display: none; }
.js[data-tab="about"] #about,
.js[data-tab="games"] #games,
.js[data-tab="highlights"] #highlights,
.js[data-tab="socials"] #socials,
.js[data-tab="stats"] #stats { display: block; }
/* Tab switch: the panel's pieces rise in one after another (script adds .st and --d) */
.panel .st {
  animation: rise .55s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 70ms);
}

@keyframes rise {
  from { opacity: 0; translate: 0 16px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Without JS every panel is shown in a long page */
html:not(.js) .panel + .panel { border-top: 1px solid var(--line); margin-top: 32px; }

.panel__head { margin-bottom: 28px; }
.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -.035em;
}
.panel__sub { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

.block { margin-top: 52px; }

.label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Bits ---------- */

.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 10px 26px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
/* Shine that sweeps across on hover */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate .7s var(--ease);
}
.btn--primary:hover::after { translate: 120% 0; }
.btn .ico { transition: translate .25s var(--ease); }
.btn:hover .ico { translate: 2px 0; }
.btn--primary:hover { background: #6d28d9; box-shadow: 0 12px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn--ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); border-color: var(--line-strong); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  white-space: nowrap;
}
.chip b { font-weight: 800; }
.chip .dot { width: 6px; height: 6px; }
.chip--accent { background: rgba(139, 92, 246, .16); color: var(--accent-soft); }
.chip--new {
  background-color: rgba(34, 197, 94, .14);
  background-image: linear-gradient(100deg, transparent 35%, rgba(134, 239, 172, .38) 50%, transparent 65%);
  background-size: 300% 100%;
  background-position: 100% 0;
  color: #86efac;
  animation: shimmer 3.6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 55% { background-position: 100% 0; }
  100%    { background-position: 0 0; }
}

/* Image tile with initials fallback underneath */
.thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-3), #2c2640);
}
.thumb::before {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-soft);
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb img:not([src]), .thumb img.is-broken { display: none; }
.thumb { transition: rotate .35s var(--ease), scale .35s var(--ease); }
.game:hover .thumb, .studio:hover .thumb, .showcase:hover .showcase__top .thumb { rotate: -5deg; scale: 1.07; }
.thumb--md { width: 52px; height: 52px; border-radius: 14px; }
.thumb--sm { width: 44px; height: 44px; border-radius: 12px; }
.thumb--xs { width: 34px; height: 34px; border-radius: 10px; }
.thumb--sm::before, .thumb--md::before { font-size: 12px; }
.thumb--xs::before { font-size: 10px; }

.verified { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; }

.bump { animation: bump .6s var(--ease); }
@keyframes bump {
  0%   { color: var(--accent-soft); }
  100% { color: inherit; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 24px;
  min-height: min(540px, 68vh);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(68px, 12.5vw, 136px);
  line-height: .9;
  letter-spacing: -.05em;
}
.hero__letters { display: inline-block; white-space: nowrap; }
.hero__name .l {
  display: inline-block;
  padding-bottom: .1em;
  margin-bottom: -.1em;
  background: linear-gradient(180deg, #ffffff 35%, var(--accent-soft) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .35s var(--ease);
}
.hero__name .l:hover { transform: translateY(-8px) skewX(-10deg); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero__handle { margin: 16px 0 0; font-size: 15px; font-weight: 700; color: var(--accent-hi); }
.hero__lead { margin: 8px 0 0; max-width: 32ch; font-size: 18px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  isolation: isolate;
  perspective: 900px;
}
/* Mouse parallax: script sets --px / --py between -1 and 1 */
.hero__avatar, .hero__glow, .hero__dots { transition: translate .5s var(--ease), rotate .5s var(--ease); }
.hero__avatar { translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 10px); rotate: y calc(var(--px, 0) * 12deg); }
.hero__glow { translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -16px); }
.hero__dots { translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -6px); }
.hero__dots {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 68%);
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 68%);
}
.hero__glow {
  position: absolute;
  inset: 6%;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, rgba(196, 181, 253, .30), transparent 42%),
    radial-gradient(circle, rgba(139, 92, 246, .55), transparent 66%);
  filter: blur(26px);
  animation: glow 7s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.08); }
}
.hero__avatar {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero__fallback {
  grid-area: 1 / 1;
  display: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 22vw, 220px);
  color: rgba(196, 181, 253, .16);
}
.hero__art.is-missing .hero__avatar { display: none; }
.hero__art.is-missing .hero__fallback { display: block; }

/* ---------- Highlights strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.strip__item {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.strip__num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.strip__label { font-size: 13px; color: var(--muted); }

/* ---------- Social link rows ---------- */

.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.link, .game, .studio {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.link:hover, .game:hover, .studio:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-3);
  transition: background-color .2s, color .2s;
}
.link__icon svg { width: 20px; height: 20px; }
.link:hover .link__icon--roblox { background: #f2f2f8; color: #0c0c12; }
.link:hover .link__icon--discord { background: #5865f2; color: #fff; }
.link:hover .link__icon--x { background: #f2f2f8; color: #0c0c12; }

.link__text { display: flex; flex-direction: column; min-width: 0; }
.link__name { font-weight: 700; font-size: 15px; }
.link__handle { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.link__go {
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--faint);
  transition: color .2s, transform .25s var(--ease);
}
.link:hover .link__go, .game:hover .link__go { color: var(--text); transform: translate(2px, -2px); }

/* ---------- Game rows (About) ---------- */

.game-list { display: grid; gap: 12px; }
.game { padding: 14px; gap: 16px; }
.game__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.game__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}
.game__desc { margin: 3px 0 10px; font-size: 14px; color: var(--muted); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-hi);
}
.more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.more:hover svg { transform: translate(2px, -2px); }

/* ---------- Studios ---------- */

.studios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.studio__text { display: flex; flex-direction: column; min-width: 0; }
.studio__name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 5px; }
.studio__role { font-size: 13px; color: var(--muted); }
.studio__count { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; text-align: right; }
.studio__count b { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.studio__count small { font-size: 12px; color: var(--muted); }

/* ---------- Games panel ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.showcase + .showcase { margin-top: 16px; }
.showcase--flip .showcase__media { order: 2; }

.showcase__media {
  position: relative;
  min-height: 300px;
  background: var(--surface-3);
  overflow: hidden;
}
.slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 5s ease-out;
}
.slides img.is-active { opacity: 1; transform: scale(1); }
.showcase__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent);
  pointer-events: none;
}

.dots {
  position: absolute;
  left: 12px;
  bottom: 8px;
  z-index: 2;
  display: flex;
}
.dots[hidden] { display: none; }
.dots button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  transition: width .3s var(--ease), background-color .3s;
}
.dots button.is-active::before { width: 22px; background: #fff; }

.showcase__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}
.showcase__top { display: flex; align-items: center; gap: 14px; }
.showcase__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
}
.showcase__name .chip { font-family: var(--font-body); letter-spacing: 0; }
.showcase__studio { display: flex; align-items: center; gap: 5px; margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.showcase__desc { margin: 0; color: var(--muted); font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.facts div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }

.showcase__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

/* ---------- Socials panel ---------- */

.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .25s, transform .3s var(--ease);
}
.scard::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand), transparent 68%);
  opacity: .16;
  transition: opacity .3s, transform .5s var(--ease);
}
.scard:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.scard:hover::before { opacity: .32; transform: scale(1.15); }

.scard__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface-3);
}
.scard__icon svg { width: 26px; height: 26px; }
.scard__icon--discord { color: #8b95ff; }
.scard__text { display: flex; flex-direction: column; }
.scard__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.scard__handle { margin-top: 2px; color: var(--muted); font-size: 15px; }
.scard__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
}
.scard__cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.scard:hover .scard__cta svg { transform: translate(2px, -2px); }

/* ---------- Highlights panel ---------- */

.panel__head + .block { margin-top: 0; }

.events { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.events > li { display: flex; }

.event {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.event--games { --tone: #f5c542; }
.event--hatch { --tone: #f472b6; }
.event::before {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tone), transparent 68%);
  opacity: .16;
  transition: opacity .3s;
}
.event:hover::before { opacity: .28; }

.event__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.event__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--surface-3);
  background: color-mix(in srgb, var(--tone) 15%, var(--surface-3));
  color: var(--tone);
  transition: rotate .4s var(--ease), scale .4s var(--ease);
}
.event:hover .event__icon { rotate: -8deg; scale: 1.08; }
.event__icon svg { width: 26px; height: 26px; }
.event__when {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.event__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.event__desc { margin: 0; max-width: 46ch; font-size: 15px; color: var(--muted); }
.event__with { display: flex; flex-direction: column; gap: 8px; }
.event__with .label { margin: 0; font-size: 11px; }
.chip--more { background: none; border: 1px dashed var(--line-strong); color: var(--muted); }

.event__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}
.event__foot small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.event__foot:hover .link__go { color: var(--text); transform: translate(2px, -2px); }

/* RDC attendee badges, hung from lanyards */
.passes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 30px 0 0;
  list-style: none;
}
.pass {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 38px 16px 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
  transform-origin: 50% -30px;
  transition: rotate .5s var(--ease), translate .5s var(--ease);
}
/* Middle badge hangs straight; the outer two tilt by the same amount in
   opposite directions so the row stays visually centred. */
.passes > li:nth-child(1) .pass { rotate: -2.5deg; }
.passes > li:nth-child(2) .pass { rotate: 0deg; }
.passes > li:nth-child(3) .pass { rotate: 2.5deg; }
.passes > li .pass:hover { rotate: 0deg; translate: 0 -4px; }

.pass::before {   /* punched slot */
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 36px;
  height: 8px;
  margin-left: -18px;
  border-radius: 999px;
  background: var(--bg);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7);
}
.pass::after {    /* lanyard */
  content: "";
  position: absolute;
  bottom: calc(100% - 18px);
  left: 50%;
  width: 3px;
  height: 46px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--faint), transparent);
}

.pass__org { font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--muted); }
.pass__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.pass__type {
  align-self: stretch;
  margin: 16px -16px 0;
  padding: 11px 8px;
  border-radius: 0 0 19px 19px;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pass--live {
  border-color: rgba(167, 139, 250, .5);
  background:
    radial-gradient(180px 130px at 50% 0%, rgba(139, 92, 246, .28), transparent 72%),
    var(--surface);
  box-shadow: 0 18px 40px -22px var(--accent-glow);
}
.pass--live .pass__type { background: linear-gradient(90deg, var(--accent-strong), var(--accent)); color: #fff; }

/* ---------- Stats panel ---------- */

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.card__label { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card__title { flex: 1; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }

.total {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 24px;
  padding: 26px;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(124, 58, 237, .22), transparent 70%),
    var(--surface);
}

.big {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 8.5vw, 88px);
  line-height: 1;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.big--sm { font-size: clamp(42px, 6vw, 60px); }
.full { margin: 0 0 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.total .full { margin-bottom: 0; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.tile__label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.tile__value {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.meter {
  display: block;
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.meter__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transition: width 1s var(--ease);
}

.stats__side { grid-column: 1 / -1; margin-top: 18px; }

.stamp { margin: 22px 0 0; font-size: 13px; color: var(--faint); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 56px;
  padding-bottom: 40px;
  font-size: 13px;
  color: var(--faint);
}
.footer__links { display: flex; gap: 6px; }
.footer__links a, .footer__links button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.footer__links a:hover, .footer__links button:hover { color: var(--text); background: var(--surface-2); }
.footer__links svg { width: 17px; height: 17px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 11px 18px;
  border-radius: 999px;
  background: #f2f2f8;
  color: #0c0c12;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */

/* Cursor spotlight on cards: script sets --mx / --my */
:is(.link, .game, .studio, .scard, .card, .event) { position: relative; isolation: isolate; }
:is(.link, .game, .studio, .scard, .card, .event)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(167, 139, 250, .14), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
}
:is(.link, .game, .studio, .scard, .card, .event):hover::after { opacity: 1; }

/* First load of the home page: the name drifts in letter by letter */
html.intro .hero .badge   { animation: rise .6s var(--ease) .05s both; }
html.intro .hero__name .l { animation: drift-in .85s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(.15s + var(--i) * 75ms); }
html.intro .hero__handle  { animation: rise .6s var(--ease) .6s both; }
html.intro .hero__lead    { animation: rise .6s var(--ease) .7s both; }
html.intro .hero__cta     { animation: rise .6s var(--ease) .8s both; }
html.intro .hero__art     { animation: pop-in 1s var(--ease) .25s both; }
html.intro .strip__item:nth-child(1) { animation: rise .6s var(--ease) .9s both; }
html.intro .strip__item:nth-child(2) { animation: rise .6s var(--ease) .98s both; }
html.intro .strip__item:nth-child(3) { animation: rise .6s var(--ease) 1.06s both; }

@keyframes drift-in {
  0%   { opacity: 0; transform: translateX(-70px) skewX(-20deg); filter: blur(8px); }
  55%  { opacity: 1; transform: translateX(6px) skewX(5deg); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes pop-in {
  0%   { opacity: 0; scale: .82; rotate: -6deg; }
  60%  { opacity: 1; scale: 1.03; rotate: 1deg; }
  100% { opacity: 1; scale: 1; rotate: 0deg; }
}

/* Sections slide up into place as they scroll in; they stay readable before that */
@keyframes reveal {
  from { opacity: .4; translate: 0 36px; scale: .97; }
  to   { opacity: 1; translate: 0 0; scale: 1; }
}
@supports (animation-timeline: view()) {
  :is(.strip__item, .links > li, .game-list > li, .studios > li, .more, .showcase, .scards > li, .stats > *, .events > li, .passes > li) {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__art { order: -1; width: min(340px, 78%); margin: -8px auto 4px; }
  .strip { margin-top: 36px; }
  .links, .scards { grid-template-columns: 1fr; }
  .scard { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
  .scard__cta { margin-top: 0; margin-left: auto; }
  .showcase { grid-template-columns: 1fr; }
  .showcase__media { min-height: 0; aspect-ratio: 16 / 9; }
  .showcase--flip .showcase__media { order: 0; }
  .stats, .total, .studios, .events { grid-template-columns: 1fr; }
  .total { align-items: start; }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .topbar__inner { height: 64px; gap: 10px; }
  .mark { font-size: 24px; }
  .tabs a { padding: 7px 9px; font-size: 12.5px; }
  .event { padding: 20px; }
  .passes { gap: 10px; }
  .pass { padding: 34px 10px 0; }
  .pass__type { margin-inline: -10px; font-size: 10px; letter-spacing: .1em; }
  .panel { padding-top: 28px; }
  .hero__lead { font-size: 17px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip__item:first-child { grid-column: 1 / -1; }
  .strip__num { font-size: 24px; }
  .game { align-items: flex-start; }
  .game .thumb { width: 60px; height: 60px; border-radius: 14px; }
  .game .link__go { display: none; }
  .showcase__body { padding: 20px; }
  .facts dd { font-size: 13px; }
  .card, .total { padding: 18px; }
  .tiles { gap: 8px; }
  .tile { padding: 10px 11px; }
  .tile__value { font-size: 17px; }
  .scard { padding: 18px; }
  .scard__cta { flex-basis: 100%; margin-left: 0; }
}

@media (max-width: 380px) {
  .mark { font-size: 22px; }
  .tabs a { padding: 7px 7px; font-size: 12px; }
  .facts div { padding: 9px 10px; }
  .facts dt { letter-spacing: .05em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
