/* =============================================================================
   1kZenny — Roblox QA
   -----------------------------------------------------------------------------
   Blueprint theme. The page is drawn on graph paper — a blue field with a
   white rule grid, the same paper the avatar art and the wordmark were drawn
   on — and everything else is a white card laid on top of it.

   The cards read as stickers: white fill, a soft white ring around the edge,
   and a blue shadow pooling underneath. That ring is the whole trick — it is
   how the artwork separates itself from its background, so the UI does it too.

   Light is directional: it comes from above, so top edges catch white and
   shadows fall down and slightly forward.

   1 tokens · 2 base · 3 type · 4 bits · 5 texture · 6 load screen
   7 top bar · 8 profile · 9 game tiles · 10 studios · 11 about
   12 contact · 13 footer · 14 motion · 15 responsive
   ============================================================================ */

/* ─────────────────────────────────────────────────────────────── 1 TOKENS ─ */
:root {
  /* the paper — sampled straight off the artwork */
  --paper: #719eee;   /* the blue field */
  --rule:  #9ac2f8;   /* the grid line, and the brand blue */
  --grid:  68px;      /* one square */

  /* surfaces laid on the paper */
  --card:   #ffffff;
  --card-2: #f5f9ff;
  --sunken: #eaf2fe;
  --ring:   rgba(255,255,255,.62);   /* the sticker outline */

  /* edges */
  --line:        rgba(16,48,92,.11);
  --line-bright: rgba(75,134,232,.40);
  --top-light:   rgba(255,255,255,.9);

  /* ink */
  --text:  #10305c;
  --dim:   #4c6e9e;
  --faint: #8099bd;
  --onblue:#ffffff;

  /* the one accent, as a ramp out of --rule */
  --b-100: #eaf2fe;
  --b-200: #cfe2fc;
  --b-300: #9ac2f8;
  --b-400: #6fa4f2;
  --b-500: #4b86e8;
  --b-600: #2e68cd;
  --b-700: #1e4c9e;
  --b-900: #12356e;

  /* state only */
  --live: #17a862;
  --warn: #e08b1f;
  --stop: #e0525f;

  /* shadow, not glow — this theme is lit, not emissive */
  --glow-sm: 0 4px 14px -6px rgba(18,53,110,.34);
  --glow:    0 14px 32px -16px rgba(18,53,110,.42);
  --glow-lg: 0 30px 64px -28px rgba(18,53,110,.48);

  /* Roblox builds on an 8px corner. 12 keeps that feel with a little air. */
  --banner: clamp(118px, 16vw, 186px);
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --wrap:   1120px;
  --gutter: clamp(18px, 5vw, 48px);
  --gap:    clamp(64px, 8vw, 124px);

  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease:   cubic-bezier(.22,.61,.36,1);
  --out:    cubic-bezier(.16,1,.3,1);
  --bounce: cubic-bezier(.34,1.4,.64,1);
}

/* ───────────────────────────────────────────────────────────────── 2 BASE ─ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(15px, .38vw + 14.2px, 16.5px);
  font-weight: 500;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the graph paper itself — a ruled grid, fixed so the page slides over it */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rule) 2px, transparent 2px),
    linear-gradient(90deg, var(--rule) 2px, transparent 2px);
  background-size: var(--grid) var(--grid);
  background-position: -1px -1px;
}
/* A soft wash of light down the page, plus the paint grain off the original
   artwork. Both live down here at z-index -1, behind every card, so the
   texture only ever touches the blue — a card painted on top stays clean. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.07'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(90% 55% at 50% -12%, rgba(255,255,255,.34), transparent 64%),
    radial-gradient(70% 50% at 50% 112%, rgba(18,53,110,.20), transparent 62%);
  background-size: 160px 160px, 100% 100%, 100% 100%;
}

img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(75,134,232,.26); color: var(--b-900); }
:focus-visible { outline: 2.5px solid var(--b-700); outline-offset: 3px; border-radius: var(--r); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip-to-content {
  position: fixed; top: 10px; left: 10px; z-index: 2000;
  padding: 10px 16px; background: var(--b-700); color: #fff;
  border-radius: var(--r); font-weight: 700; transform: translateY(-220%);
}
.skip-to-content:focus { transform: none; }

/* ───────────────────────────────────────────────────────────────── 3 TYPE ─ */
.display {
  font-family: var(--display); font-weight: 800;
  line-height: 1.02; letter-spacing: -.032em;
}
.h-hero { font-size: clamp(2.1rem, 5.6vw, 4.1rem); }
.h-xl   { font-size: clamp(1.75rem, 3.8vw, 2.7rem); }

.mono {
  font-family: var(--mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}

/* section headings sit straight on the paper, so they're white with a soft
   shadow to hold them off the blue */
.head h2, .games .head h2, .studios .head h2 {
  color: #fff; text-shadow: 0 2px 0 rgba(18,53,110,.18), 0 14px 30px rgba(18,53,110,.22);
}
.head__note { color: rgba(255,255,255,.88); max-width: 48ch; font-size: .95rem; }

/* A word wrapped in *asterisks*. On the blue paper it becomes a white
   sticker, the same move the artwork makes; on a white card it gets a
   highlighter swipe instead. */
mark {
  background: #fff; color: var(--b-600);
  padding: 0 .16em .04em; border-radius: 8px;
  box-shadow: 0 4px 0 rgba(18,53,110,.14);
  /* without this, a highlight that wraps onto a second line loses its
     padding and corners on the break — clone gives every line its own box */
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.head { margin-bottom: clamp(24px, 3.2vw, 40px); display: grid; gap: 9px; }
/* section rule — a hairline that fades out to the right */
.head::after {
  content: ""; height: 2px; margin-top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.85), rgba(255,255,255,0) 58%);
}

/* ───────────────────────────────────────────────────────────────── 4 BITS ─ */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px;
  border-radius: var(--r);
  background: linear-gradient(180deg, #fff, var(--card-2));
  border: 1px solid rgba(75,134,232,.30);
  box-shadow: inset 0 1px 0 var(--top-light), 0 3px 0 rgba(18,53,110,.10), var(--glow-sm);
  font-family: var(--display); font-weight: 700; font-size: .93rem;
  letter-spacing: -.005em; color: var(--b-700);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              border-color .25s, background-color .25s;
}
.btn::after { content: "→"; transition: transform .28s var(--out); opacity: .8; }
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--b-400);
  box-shadow: inset 0 1px 0 var(--top-light), 0 5px 0 rgba(18,53,110,.10), var(--glow);
}
.btn:hover::after { transform: translateX(3px); opacity: 1; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 var(--top-light), 0 1px 0 rgba(18,53,110,.10); }

/* the one solid button on the page */
.btn--solid {
  background: linear-gradient(180deg, var(--b-400), var(--b-600));
  border-color: var(--b-700); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 3px 0 var(--b-700), var(--glow-sm);
}
.btn--solid:hover {
  background: linear-gradient(180deg, #7fb0f5, var(--b-500));
  border-color: var(--b-700);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46), 0 5px 0 var(--b-700), var(--glow);
}
.btn--solid:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 var(--b-700); }
.btn--lg { padding: 15px 26px; font-size: 1rem; }

.btn.is-placeholder {
  pointer-events: none; cursor: not-allowed;
  background: var(--sunken); color: var(--faint);
  border: 1px dashed rgba(75,134,232,.34); box-shadow: none;
}
.btn.is-placeholder::after { content: "·"; }

.btn.is-copied, .foot__links button.is-copied {
  border-color: rgba(23,168,98,.6); color: var(--live);
  background: #fff;
  box-shadow: inset 0 1px 0 var(--top-light), 0 3px 0 rgba(23,168,98,.22);
}
.btn.is-copied::after { content: "✓"; }

/* footer copy buttons match the footer links exactly */
.foot__links button {
  padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--dim);
  font-family: inherit; font-size: .84rem; font-weight: 600;
  transition: color .25s, border-color .25s, box-shadow .3s, transform .25s var(--out);
}
.foot__links button:hover { color: var(--b-600); border-color: var(--b-400); box-shadow: var(--glow-sm); transform: translateY(-2px); }

/* live dot — the only thing on the page that isn't blue */
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--live);
  flex: none; box-shadow: 0 0 0 3px rgba(23,168,98,.18);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(23,168,98,.18); }
  50%      { opacity: .6; box-shadow: 0 0 0 5px rgba(23,168,98,.08); }
}

/* ─────────────────────────────────────────────────────────────  5 TEXTURE ─ */
/* The grain used to be a full-screen overlay sitting ON TOP of everything in
   multiply mode, which greyed out the white cards. It now rides along with
   the paper in body::after instead, so this element does nothing. */
.grain { display: none; }

/* ───────────────────────────────────────────────────────── 6 LOAD SCREEN ─ */
.intro {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--paper); overflow: hidden;
}
.intro__bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--rule) 2px, transparent 2px),
    linear-gradient(90deg, var(--rule) 2px, transparent 2px),
    radial-gradient(60% 46% at 50% 44%, rgba(255,255,255,.38), transparent 68%);
  background-size: var(--grid) var(--grid), var(--grid) var(--grid), 100% 100%;
}
.intro__inner { position: relative; width: min(380px, 82vw); text-align: center; }

.intro__avatar {
  width: 112px; height: 112px; margin: 0 auto 20px;
  background: #fff;
  border: 4px solid #fff; border-radius: var(--r-lg);
  box-shadow: 0 0 0 5px rgba(255,255,255,.4), var(--glow-lg);
  display: grid; place-items: center; overflow: hidden;
  transform: scale(.86); opacity: 0;
}
.intro.go .intro__avatar {
  transform: scale(1); opacity: 1;
  transition: transform .7s var(--bounce), opacity .4s var(--out);
}
.intro__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.intro__name {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 6vw, 2.5rem);
  letter-spacing: -.035em; line-height: 1; color: #fff;
  text-shadow: 0 3px 0 rgba(18,53,110,.20), 0 16px 34px rgba(18,53,110,.28);
  opacity: 0; transform: translateY(10px);
}
.intro.go .intro__name {
  opacity: 1; transform: none;
  transition: opacity .45s var(--out) .16s, transform .55s var(--out) .16s;
}

.intro__bar {
  margin-top: 26px; height: 5px; border-radius: 99px;
  background: rgba(255,255,255,.35); overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(18,53,110,.18);
}
.intro__bar i {
  display: block; height: 100%; width: 0; border-radius: 99px;
  background: #fff;
}
.intro.go .intro__bar i { width: 100%; transition: width 1.5s var(--ease); }

.intro__meta { display: flex; justify-content: space-between; margin-top: 12px; color: rgba(255,255,255,.85); }

.intro__skip {
  position: absolute; right: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vw, 36px);
  padding: 10px 18px; border-radius: var(--r);
  background: #fff; border: 1px solid rgba(255,255,255,.7); color: var(--b-600);
  box-shadow: var(--glow-sm);
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  transition: color .25s, transform .25s var(--out), box-shadow .25s;
}
.intro__skip:hover { color: var(--b-700); transform: translateY(-2px); box-shadow: var(--glow); }

.intro.out { opacity: 0; transform: scale(1.04); transition: opacity .5s var(--ease), transform .7s var(--out); pointer-events: none; }

/* ──────────────────────────────────────────────────────────────  7 TOPBAR ─ */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 12px var(--gutter);
  transform: translateY(-150%); transition: transform .45s var(--out);
}
.bar.show { transform: none; }
.bar__inner {
  max-width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 8px 8px 8px 10px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 #fff, var(--glow);
}
.bar__me { display: flex; align-items: center; gap: 10px; }
.bar__pic {
  width: 32px; height: 32px; border-radius: 9px; overflow: hidden;
  background: var(--b-200);
  border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(75,134,232,.3);
  display: grid; place-items: center;
}
.bar__pic img { width: 100%; height: 100%; object-fit: cover; }
.bar__me b { font-family: var(--display); font-weight: 800; font-size: .96rem; letter-spacing: -.02em; }

.bar__links { display: flex; gap: 2px; }
.bar__links a {
  position: relative; padding: 8px 14px; border-radius: 9px;
  font-size: .88rem; font-weight: 600; color: var(--dim);
  transition: color .22s, background-color .22s;
}
.bar__links a:hover { color: var(--b-700); background: var(--b-100); }
.bar__links a.on { color: var(--b-700); background: var(--b-100); }
.bar__links a.on::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px;
  border-radius: 2px; background: var(--b-400);
}

.bar__toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(75,134,232,.3); background: #fff;
  place-items: center; gap: 5px;
}
.bar__toggle span { display: block; width: 15px; height: 2px; border-radius: 2px; background: var(--b-700); transition: transform .3s var(--out); }
.bar__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.bar__toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.bar__sheet {
  max-width: var(--wrap); margin: 8px auto 0; padding: 10px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--r-lg);
  box-shadow: var(--glow-lg);
}
.bar__sheetLinks { display: grid; gap: 2px; }
.bar__sheetLinks a {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  padding: 11px 14px; border-radius: 10px; color: var(--dim);
}
.bar__sheetLinks a:hover { color: var(--b-700); background: var(--b-100); }

/* ────────────────────────────────────────────────────────────── 8 PROFILE ─ */
.profile { padding-top: clamp(40px, 7vw, 86px); padding-bottom: var(--gap); }

/* the sticker: white card, white ring, blue shadow pooling under it */
.pro {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.9);
  outline: 5px solid var(--ring); outline-offset: 0;
  border-radius: var(--r-xl);
  box-shadow: 0 34px 70px -34px rgba(18,53,110,.6);
  padding: clamp(20px, 3vw, 32px);
  padding-top: calc(var(--banner) + clamp(16px, 2.4vw, 30px));
}
/* banner: the same graph paper, with the hand-drawn wordmark sitting on it */
.pro::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: var(--banner);
  background-color: var(--paper);
  background-image:
    url("../images/banner.png"),
    linear-gradient(var(--rule) 2px, transparent 2px),
    linear-gradient(90deg, var(--rule) 2px, transparent 2px),
    radial-gradient(80% 120% at 50% -20%, rgba(255,255,255,.3), transparent 70%);
  background-repeat: no-repeat, repeat, repeat, no-repeat;
  background-position: center 36%, 0 0, 0 0, 0 0;
  background-size: auto 66%, var(--grid) var(--grid), var(--grid) var(--grid), 100% 100%;
  border-bottom: 2px solid rgba(255,255,255,.75);
}
/* the faintest paper texture over the banner only */
.pro::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: var(--banner); pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(18,53,110,.10));
}

.pro__top {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; gap: clamp(16px, 2.6vw, 26px); flex-wrap: wrap;
  margin-top: calc(-1 * clamp(52px, 6.4vw, 78px));
}

.pro__pic {
  width: clamp(104px, 14vw, 148px); aspect-ratio: 1; flex: none;
  background: #fff;
  border: 5px solid #fff; border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(75,134,232,.22), var(--glow-lg);
  display: grid; place-items: center; overflow: hidden;
}
.pro__pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; }

.pro__id { flex: 1 1 260px; }
.pro__tag {
  position: absolute; top: clamp(14px, 2.2vw, 20px); right: clamp(14px, 2.2vw, 20px); z-index: 2;
  padding: 7px 12px; border-radius: 9px;
  background: #fff; border: 1px solid rgba(255,255,255,.9); color: var(--b-600);
  font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .16em;
  box-shadow: var(--glow-sm);
}
.pro__name {
  font-size: clamp(2.2rem, 6.4vw, 3.9rem); letter-spacing: -.042em;
  color: var(--b-900);
}
.pro__bio { color: var(--dim); font-size: clamp(.98rem, 1.3vw, 1.12rem); margin-top: 7px; max-width: 38ch; }
/* On a white card the sticker has nothing to separate itself from, so the
   highlight becomes a swipe under the word instead. It is a background
   image, not an inset shadow — a shadow is positioned against the whole
   inline box, which is why it slid off the text as soon as the line wrapped.
   Sized in em so it tracks the font at every breakpoint. */
.pro__bio mark, .cta h2 mark {
  background-color: transparent;
  background-image: linear-gradient(var(--b-200), var(--b-200));
  background-repeat: no-repeat;
  background-size: 100% .22em;
  background-position: 0 calc(100% - .05em);
  color: var(--b-600);
  padding: 0 .04em; border-radius: 0; box-shadow: none;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
}

.pro__flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pro__status, .pro__open {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  font-family: var(--mono); font-size: .58rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--sunken); color: var(--dim);
}
.pro__status { color: var(--text); background: #fff; border-color: rgba(23,168,98,.3); }
.pro__open {
  color: var(--b-700); border-color: rgba(75,134,232,.38);
  background: var(--b-100);
}

.pro__about {
  position: relative; z-index: 1;
  margin-top: clamp(22px, 3vw, 30px); padding-top: clamp(20px, 2.6vw, 26px);
  border-top: 2px dashed rgba(75,134,232,.22);
  color: var(--dim); max-width: 64ch; font-size: clamp(15px, 1.15vw, 16.5px);
}

.pro__counters { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pro__counters li {
  flex: 1 1 170px;
  display: flex; align-items: baseline; gap: 9px;
  padding: 12px 16px; border-radius: var(--r);
  background: var(--b-100); border: 1px solid rgba(75,134,232,.18);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--out);
}
.pro__counters li:hover { border-color: var(--b-400); box-shadow: var(--glow-sm); transform: translateY(-2px); }
.pro__counters b {
  font-family: var(--display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em;
  color: var(--b-600);
}
.pro__counters span { font-family: var(--mono); font-size: .56rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }

/* ──────────────────────────────────────────────────────────── 9 GAME TILES */
.games { padding-bottom: var(--gap); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 16px; }

.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.9);
  outline: 4px solid var(--ring); outline-offset: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 14px 30px -18px rgba(18,53,110,.55);
  transition: transform .3s var(--out), box-shadow .35s var(--ease), outline-color .3s;
}
.tile:hover {
  transform: translateY(-5px);
  outline-color: #fff;
  box-shadow: 0 26px 46px -22px rgba(18,53,110,.6);
}
.tile.is-past { opacity: .9; }
.tile.is-past:hover { opacity: 1; }

.tile__thumb { position: relative; aspect-ratio: 1/.76; overflow: hidden; border-bottom: 1px solid var(--line); }
.tile__thumb img, .tile__art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--out);
}
.tile:hover .tile__thumb img, .tile:hover .tile__art { transform: scale(1.06); }

/* the real thumbnail covers the generated art; remove it and the art shows */
.tile__shot { z-index: 1; }
/* seats the art on the card instead of letting it float */
.tile__thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,53,110,.10) 0 18%, transparent 46%, rgba(18,53,110,.16));
}

/* the fallback cover, if a thumbnail ever fails to load. Every hue is inside
   the blue family so nothing can land off-palette. */
.tile__art {
  display: grid; place-items: center;
  background:
    radial-gradient(92% 92% at 28% 10%, color-mix(in oklab, var(--fill, #4b86e8) 62%, #ffffff), transparent 72%),
    linear-gradient(160deg, color-mix(in oklab, var(--fill, #4b86e8) 84%, #ffffff), var(--b-700));
}
.tile__art::before {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.4) 2px, transparent 2px);
  background-size: 34px 34px, 34px 34px;
}
.tile__initials {
  position: relative;
  font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 2.9rem);
  letter-spacing: -.05em; color: #fff;
  text-shadow: 0 3px 0 rgba(18,53,110,.22);
}
.tile.is-past .tile__art, .tile.is-past .tile__shot { filter: saturate(.7) brightness(.98); }

.tile__state {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 9px;
  background: #fff; border: 1px solid rgba(255,255,255,.9); color: var(--faint);
  box-shadow: var(--glow-sm);
  font-family: var(--mono); font-size: .52rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
}
.tile:not(.is-past) .tile__state { color: var(--live); }
.tile:not(.is-past) .tile__state::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live);
  box-shadow: 0 0 0 3px rgba(23,168,98,.16);
}

/* live player count — only exists once the CCU worker answers, so the tile
   looks finished with or without it */
.tile__live {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 9px;
  background: #fff; border: 1px solid rgba(255,255,255,.9); color: var(--b-700);
  box-shadow: var(--glow-sm);
  font-family: var(--mono); font-size: .52rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  animation: liveIn .45s var(--out) both;
}
.tile__live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--live); flex: none;
  box-shadow: 0 0 0 3px rgba(23,168,98,.16);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes liveIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

.tile__body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile__title { font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.026em; line-height: 1.18; color: var(--b-900); }
.tile__meta { font-family: var(--mono); font-size: .54rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.tile__role {
  align-self: flex-start; margin-top: 4px; padding: 5px 10px; border-radius: 7px;
  background: var(--b-100); border: 1px solid rgba(75,134,232,.26); color: var(--b-600);
  font-family: var(--mono); font-size: .53rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.tile__note { color: var(--dim); font-size: .86rem; line-height: 1.55; margin-top: 4px; margin-bottom: 14px; }

/* the play button — the one solid control on a tile */
.tile__play {
  margin-top: auto; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--b-400), var(--b-600));
  border: 1px solid var(--b-700); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 3px 0 var(--b-700);
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  transition: transform .16s var(--ease), box-shadow .28s var(--ease), background-color .25s;
}
.tile__play svg { flex: none; translate: 1px 0; }
.tile__play:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #7fb0f5, var(--b-500));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46), 0 5px 0 var(--b-700), var(--glow);
}
.tile__play:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 0 var(--b-700); }

/* no link yet */
.tile__play.is-placeholder {
  background: var(--sunken); color: var(--faint);
  border: 1px dashed rgba(75,134,232,.34); box-shadow: none;
  cursor: not-allowed;
}
.tile__play.is-placeholder:hover { transform: none; box-shadow: none; background: var(--sunken); }

/* ───────────────────────────────────────────────────────────── 10 STUDIOS ─ */
.studios { padding-bottom: var(--gap); }
.studioRow { display: grid; gap: 12px; }
.studio {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: clamp(15px, 2vw, 21px) clamp(16px, 2.2vw, 24px);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.9);
  outline: 4px solid var(--ring);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 30px -18px rgba(18,53,110,.5);
  transition: box-shadow .35s var(--ease), transform .3s var(--out), outline-color .3s;
}
/* a wash of blue sweeps in from the left edge on hover */
.studio::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, var(--b-100), transparent 58%);
  transition: opacity .4s var(--ease);
}
.studio:hover { transform: translateX(4px); outline-color: #fff; box-shadow: 0 22px 40px -20px rgba(18,53,110,.55); }
.studio:hover::before { opacity: 1; }
.studio > * { position: relative; }
.studio__id { display: grid; gap: 4px; }
.studio__name { font-family: var(--display); font-weight: 800; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -.03em; line-height: 1.1; color: var(--b-900); }
.studio__role { font-family: var(--mono); font-size: .55rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.studio__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 17px; border-radius: var(--r);
  background: #fff; border: 1px solid rgba(75,134,232,.3); color: var(--b-600);
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(18,53,110,.09);
  font-weight: 700; font-size: .86rem;
  transition: border-color .25s, box-shadow .3s, color .25s, transform .2s var(--out);
}
.studio__link:hover { border-color: var(--b-400); color: var(--b-700); transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 5px 0 rgba(18,53,110,.09); }

/* ─────────────────────────────────────────────────────────────── 11 ABOUT ─ */
.about { padding-bottom: var(--gap); }
.about__grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.88fr); gap: clamp(26px, 4vw, 52px); align-items: start; }
.about__text { display: grid; gap: 15px; margin-top: 20px; }
.about__text p {
  color: var(--text); max-width: 56ch; font-size: clamp(15px, 1.15vw, 16.5px);
  background: rgba(255,255,255,.72); border-radius: var(--r);
  padding: 14px 16px; border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 8px 20px -16px rgba(18,53,110,.5);
}
.about h2 { color: #fff; text-shadow: 0 2px 0 rgba(18,53,110,.18), 0 14px 30px rgba(18,53,110,.22); }

.about__panel { display: grid; gap: 12px; }
.panel {
  position: relative; padding: 24px 18px 18px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.9);
  outline: 4px solid var(--ring);
  border-radius: var(--r-lg);
  box-shadow: 0 14px 30px -18px rgba(18,53,110,.5);
}
.panel__tab {
  position: absolute; top: 14px; left: 18px;
  font-family: var(--mono); font-size: .55rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint);
}
.panel__tab::before {
  content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: var(--b-400);
  margin-right: 8px; vertical-align: middle;
}
.badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.badges li {
  padding: 7px 12px; border-radius: 8px;
  background: var(--b-100); border: 1px solid rgba(75,134,232,.2); color: var(--b-700);
  font-size: .82rem; font-weight: 600;
  transition: border-color .25s, color .25s, box-shadow .3s, transform .25s var(--out);
}
.badges li:hover {
  border-color: var(--b-400);
  box-shadow: var(--glow-sm); transform: translateY(-2px);
}
.badges--plain li { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; background: #fff; color: var(--dim); }

/* ───────────────────────────────────────────────────────────── 12 CONTACT ─ */
.contact { padding-bottom: var(--gap); }
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 82px) clamp(22px, 4vw, 48px);
  background: var(--card);
  border: 1px solid rgba(255,255,255,.9);
  outline: 5px solid var(--ring);
  border-radius: var(--r-xl);
  box-shadow: 0 34px 70px -34px rgba(18,53,110,.6);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(62% 90% at 50% 122%, var(--b-100), transparent 68%),
    radial-gradient(44% 70% at 10% -12%, var(--b-100), transparent 66%);
}
.cta > * { position: relative; }
.cta h2 { color: var(--b-900); text-shadow: none; }
.cta__line { color: var(--dim); margin-top: 14px; font-size: clamp(.98rem, 1.4vw, 1.1rem); }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin-top: 30px; }

/* ────────────────────────────────────────────────────────────── 13 FOOTER ─ */
.foot {
  margin-top: clamp(20px, 4vw, 40px);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid rgba(255,255,255,.9);
  padding-block: clamp(26px, 4vw, 42px);
}
.foot__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot__name { font-size: clamp(1.2rem, 2.6vw, 1.7rem); letter-spacing: -.035em; color: var(--b-900); }
.foot__links { display: flex; flex-wrap: wrap; gap: 7px; }
.foot__links a {
  padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--dim);
  font-size: .84rem; font-weight: 600;
  transition: color .25s, border-color .25s, box-shadow .3s, transform .25s var(--out);
}
.foot__links a:hover { color: var(--b-600); border-color: var(--b-400); box-shadow: var(--glow-sm); transform: translateY(-2px); }
.foot__note { color: var(--faint); font-size: .55rem; }

/* ────────────────────────────────────────────────────────────── 14 MOTION ─ */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--out) var(--d, 0ms), transform .65s var(--out) var(--d, 0ms);
}
[data-reveal].in { opacity: 1; transform: none; }

.splitLine { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.splitLine > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--out); }
.in .splitLine > span { transform: none; }

/* the profile card resolves as the load screen clears */
.pro { opacity: 0; transform: translateY(20px) scale(.99); }
body.ready .pro {
  opacity: 1; transform: none;
  transition: opacity .6s var(--out) .05s, transform .8s var(--out) .05s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .splitLine > span { transform: none !important; }
  .pro { opacity: 1 !important; transform: none !important; }
  .intro { display: none !important; }
}

/* ────────────────────────────────────────────────────────── 15 RESPONSIVE ─ */
@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .bar__links { display: none; }
  .bar__toggle { display: grid; }
  .bar { transform: none; }
  .profile { padding-top: 92px; }   /* the bar is always visible here */
  .about__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --grid: 52px; --banner: clamp(104px, 30vw, 150px); }
  /* the avatar rides up into the banner here, so the wordmark moves clear */
  .pro::before { background-position: center 32%, 0 0, 0 0, 0 0; background-size: auto 46%, var(--grid) var(--grid), var(--grid) var(--grid), 100% 100%; }
  .pro__top { margin-top: -42px; }
  .pro__counters li { flex: 1 1 100%; }
  .tiles { grid-template-columns: 1fr; }
  .studio__link { width: 100%; justify-content: center; }
  .cta__actions .btn { flex: 1 1 100%; justify-content: center; }
  .foot__inner { flex-direction: column; align-items: flex-start; }
}

@media (hover: none) {
  .tile:hover, .studio:hover, .btn:hover, .badges li:hover { transform: none; }
}