/* devzero.cc. Dark only, no build step. */

:root {
  --bg: #000;
  --s1: #0a0a0c;
  --s2: #131316;
  --s3: #1d1d21;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #6e6e73;
  --green: #30d158;
  --yellow: #ffd60a;
  --red: #ff453a;
  --link: #2997ff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1760px;
  --top-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--fg); color: #000; font-weight: 500;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.dim { color: var(--fg-3); }

/* ------------------------------------------------------------ primitives */

.dot {
  display: inline-block; flex: 0 0 auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-3);
}
.dot.live { background: var(--green); animation: pulse 2.6s ease-out infinite; }
.dot.idle { background: var(--yellow); }
.dot.dnd { background: var(--red); }
.dot.off { background: var(--fg-3); }
.dot.sync { background: var(--fg-2); animation: blink 1.1s ease-in-out infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
}
@keyframes blink { 50% { opacity: 0.25; } }

.skel {
  display: inline-block; width: 3em; height: 0.78em; vertical-align: -0.04em;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.icon {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  overflow: hidden; background: var(--s3);
}
.icon > img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.icon > img.ok { opacity: 1; }
.icon-initial { grid-area: 1 / 1; font-weight: 600; color: var(--fg-2); transition: opacity 0.3s; }
.icon > img.ok + .icon-initial { opacity: 0; }

.badge { flex: 0 0 auto; width: 16px; height: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-light { background: var(--fg); color: #000; }
.btn-light:hover { background: #fff; }
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn-dark { background: var(--s3); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-dark:hover { background: #26262b; }

.text-link { color: var(--link); font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ top bar */

.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--top-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.top.scrolled {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.top-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.me-name { font-weight: 600; letter-spacing: -0.01em; }
.me-role { color: var(--fg-3); font-size: 14px; white-space: nowrap; }

.top-nav { display: flex; gap: 2px; margin-left: auto; }
.top-nav a {
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; color: var(--fg-2);
  transition: color 0.2s, background-color 0.2s;
}
.top-nav a:hover { color: var(--fg); }
.top-nav a[aria-current] { color: var(--fg); background: rgba(255, 255, 255, 0.09); }
.top-cta { margin-left: 8px; }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: min(88svh, 980px);
  padding-top: var(--top-h);
  overflow: hidden;
}

/* the active game's screenshot, blurred into the page behind everything */
.ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient img {
  position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none;
  object-fit: cover;
  filter: blur(90px) saturate(1.5);
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.ambient img.on { opacity: 0.42; }
.ambient::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 62%, #000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 5vw, 104px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 104px);
}

.hero-title {
  font-size: clamp(46px, 5.5vw, 100px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero-lead {
  margin-top: clamp(20px, 2vw, 32px);
  max-width: 34em;
  color: var(--fg-2);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.55;
  text-wrap: pretty;
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: clamp(28px, 3vw, 44px); }


/* featured game */

.feature { position: relative; min-width: 0; }

.feature-card {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background: var(--s2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 50px 120px -30px rgba(0, 0, 0, 0.9);
  transform: translateZ(0);
}
.feature-media { position: absolute; inset: 0; }

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.slide.on { opacity: 1; z-index: 1; }
.slide-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: clamp(96px, 14vw, 240px); font-weight: 700; letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.05);
  background: radial-gradient(120% 120% at 20% 0%, #222228 0%, #0d0d10 60%);
}
.slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s, transform 9s linear;
}
.slide img.ok { opacity: 1; }
.slide.on img.ok { transform: scale(1.05); }
.feature.is-loading .slide-ph { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.6; } }

.feature-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.85) 100%);
}

.playing {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 13px; font-weight: 500;
}

.feature-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; align-items: flex-end; gap: 18px;
  padding: clamp(16px, 2.2vw, 32px);
}
.feature-info.swap .feature-text, .feature-info.swap .icon { animation: swap-in 0.7s var(--ease) both; }
.feature-info.swap .feature-text { animation-delay: 0.05s; }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } }

.icon-lg { width: 68px; height: 68px; border-radius: 17px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.icon-lg .icon-initial { font-size: 28px; }
.feature-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feature-kicker { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.feature-name {
  font-size: clamp(22px, 2.1vw, 36px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1;
  text-wrap: balance;
}
.feature-meta { font-size: 14px; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.feature-go {
  flex: 0 0 auto; margin-left: auto;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 18px;
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease);
}
.feature-card:hover .feature-go { background: var(--fg); color: #000; transform: translate(2px, -2px); }

.feature-bar { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.thumbs {
  position: relative;
  display: flex; gap: 10px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  padding: 4px 4px 14px; margin: -4px -4px -14px;
}
.thumbs::-webkit-scrollbar { display: none; }
.thumb {
  position: relative; flex: 0 0 auto;
  width: 54px; height: 54px; padding: 0; border: 0; border-radius: 15px;
  background: none; cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.thumb:hover { opacity: 0.8; }
.thumb.on { opacity: 1; }
.thumb .icon { width: 100%; height: 100%; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.thumb .icon-initial { font-size: 20px; }
.thumb-bar {
  position: absolute; left: 8px; right: 8px; bottom: -9px; height: 3px;
  border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  opacity: 0; transition: opacity 0.3s;
}
.thumb.on .thumb-bar { opacity: 1; }
.thumb-bar i { display: block; height: 100%; background: var(--fg); transform: scaleX(0); transform-origin: left; }
/* 6.5s per game: the end of this animation advances the carousel (app.js) */
.thumb.on .thumb-bar i { animation: thumb-fill 6.5s linear forwards; }
@keyframes thumb-fill { to { transform: scaleX(1); } }
.feature:hover .thumb-bar i,
.feature:has(:focus-visible) .thumb-bar i,
.feature.is-paused .thumb-bar i,
.feature.is-off .thumb-bar i { animation-play-state: paused; }

.feature-toggle {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--fg-2); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.feature-toggle:hover { background: rgba(255, 255, 255, 0.14); color: var(--fg); }
.feature-toggle svg { fill: currentColor; }
.feature-toggle .i-play, .feature.is-paused .feature-toggle .i-pause { display: none; }
.feature.is-paused .feature-toggle .i-play { display: block; }
.feature.no-auto .thumb-bar, .feature.no-auto .feature-toggle { display: none; }

/* entrance */
.js [data-rise] { animation: rise 1s var(--ease) both; }
.js .hero-copy [data-rise]:nth-child(2) { animation-delay: 0.07s; }
.js .hero-copy [data-rise]:nth-child(3) { animation-delay: 0.14s; }
.js .hero-copy [data-rise]:nth-child(4) { animation-delay: 0.2s; }
.js .feature[data-rise] { animation-name: rise-feature; animation-duration: 1.2s; animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes rise-feature { from { opacity: 0; transform: translateY(28px) scale(0.98); } }


/* ------------------------------------------------------------ skeletons and avatars */

/* any picture box shimmers until its image has arrived (app.js removes .sk) */
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.075) 50%, rgba(255, 255, 255, 0) 70%) var(--s2);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}
.sk .icon-initial, .sk .tile-ph, .sk .slide-ph { opacity: 0; }

.av { position: relative; display: block; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: var(--s3); }
.av img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.av img.ok { opacity: 1; }
.av-28 { width: 28px; height: 28px; }
.av-84 { width: 84px; height: 84px; }

/* ------------------------------------------------------------ sections */

.section { padding-top: clamp(96px, 11vw, 176px); }

.h2 {
  font-size: clamp(38px, 4.4vw, 76px); font-weight: 600; line-height: 1;
  letter-spacing: -0.042em; text-wrap: balance;
}
.sec-lead {
  margin-top: 20px; max-width: 34em;
  color: var(--fg-2); font-size: clamp(16px, 1.2vw, 19px); text-wrap: pretty;
}
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 64px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head .sec-lead { justify-self: end; margin-top: 0; max-width: 30em; }

.figure-num {
  font-size: clamp(40px, 4.4vw, 76px); font-weight: 600; line-height: 1;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.figure-label { margin-top: 12px; font-size: 15px; font-weight: 500; }

/* ------------------------------------------------------------ games: the mosaic */

.games { position: relative; isolation: isolate; padding-top: clamp(16px, 2.5vw, 40px); }
.ambient-soft img.on { opacity: 0.3; }
.ambient-soft::after {
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 22%, rgba(0, 0, 0, 0.2) 70%, #000 100%);
}

.games-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 80px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.figures { display: flex; gap: clamp(32px, 4.5vw, 80px); }

.mosaic { position: relative; aspect-ratio: 16 / 9.4; margin: -5px; }
.tile {
  position: absolute;
  left: var(--x, 0); top: var(--y, 0); width: var(--w, 0); height: var(--h, 0);
  padding: 5px;
}
.tile:hover, .tile:focus-within { z-index: 2; }
.tile-card {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: 18px; overflow: hidden;
  background: var(--s2);
  container-type: size;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.tile-card:hover {
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.015);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24), 0 40px 90px -30px rgba(0, 0, 0, 0.95);
  transition: transform 0.15s linear, box-shadow 0.4s;
}
.tile-card:focus-visible { outline-offset: 2px; border-radius: 18px; }

.tile-media { position: absolute; inset: 0; }
.tile-ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 46cqmin; font-weight: 700; letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.05);
  background: radial-gradient(120% 120% at 20% 0%, #222228 0%, #0d0d10 60%);
}
.tile-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s, transform 1s var(--ease);
}
.tile-media img.ok { opacity: 1; }
.tile-card:hover .tile-media img { transform: scale(1.06); }

.tile-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.86) 100%);
}
.tile-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity 0.35s;
}
.tile-card:hover .tile-glare { opacity: 1; }

.tile-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: clamp(10px, 4cqmin, 18px);
}
.tile-rank {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.tile-peak {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
}
.tile-peak b { color: #fff; font-weight: 600; }

.tile-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: clamp(10px, 3.5cqmin, 18px);
  padding: clamp(12px, 5cqmin, 30px);
}
.tile-icon {
  width: clamp(36px, 15cqmin, 72px); height: clamp(36px, 15cqmin, 72px);
  border-radius: 24%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}
.tile-icon .icon-initial { font-size: clamp(15px, 6cqmin, 30px); }
.tile-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile-name {
  font-size: clamp(15px, 7cqmin, 40px); font-weight: 600; line-height: 1.08; letter-spacing: -0.028em;
  text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-stats {
  display: flex; flex-wrap: wrap; gap: 2px 14px;
  font-size: clamp(12px, 3.4cqmin, 15px); color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}
.tile-stats b { color: #fff; font-weight: 600; }

@container (max-width: 420px) { .ts-favs { display: none; } }
@container (max-width: 300px) { .tile-icon, .ts-visits { display: none; } }
@container (max-height: 150px) { .tile-stats, .tile-peak { display: none; } .tile-icon { display: none; } }

/* ------------------------------------------------------------ communities: the leaderboard */

.board { margin: 0 -20px; }
.board > li { border-top: 1px solid var(--line); }
.board > li:last-child { border-bottom: 1px solid var(--line); }

.row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  grid-template-columns: 40px 64px minmax(0, 1.15fr) minmax(0, 1fr) minmax(170px, auto) 28px;
  gap: 28px;
  margin: 6px 0; padding: 20px;
  border-radius: 22px;
  transition: background-color 0.35s;
}
.row:hover, .row:focus-visible { background: rgba(255, 255, 255, 0.035); }

/* a blurred copy of the group icon lights the row from the left on hover */
.row-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.row-glow img {
  position: absolute; top: 50%; left: -6%; width: 46%; height: auto; aspect-ratio: 1; max-width: none;
  object-fit: cover; transform: translateY(-50%);
  filter: blur(60px) saturate(1.8);
  opacity: 0; transition: opacity 0.6s;
}
.row:hover .row-glow img.ok, .row:focus-visible .row-glow img.ok { opacity: 0.42; }

.row-rank {
  font-size: 15px; font-weight: 500; color: var(--fg-3);
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
  transition: color 0.3s;
}
.row:hover .row-rank { color: var(--fg); }

.row-icon {
  width: 64px; height: 64px; border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 30px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease);
}
.row-icon .icon-initial { font-size: 24px; }
.row:hover .row-icon { transform: scale(1.06) rotate(-2deg); }

.row-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-name {
  display: flex; align-items: center; gap: 8px;
  font-size: clamp(19px, 1.6vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -0.022em;
}
.row-name .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-name .badge { width: 18px; height: 18px; }
.row-role { font-size: 14px; color: var(--fg-2); }

.row-bar {
  position: relative; height: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.row-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), #fff);
  transition: width 1.6s var(--ease) var(--rd, 0ms), box-shadow 0.4s;
}
.board.is-shown .row-fill { width: var(--w, 0px); }
.row:hover .row-fill { box-shadow: 0 0 18px rgba(255, 255, 255, 0.55); }

.row-count { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.row-count .num {
  font-size: clamp(24px, 2.3vw, 34px); font-weight: 600; line-height: 1;
  letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.row-unit { font-size: 13px; color: var(--fg-3); }

.row-go {
  display: grid; place-items: center; width: 28px; height: 28px;
  color: var(--fg-3);
  transition: color 0.3s, transform 0.4s var(--ease);
}
.row:hover .row-go { color: var(--fg); transform: translate(2px, -2px); }

/* ------------------------------------------------------------ about: the poster */

.about-top {
  display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.25fr);
  gap: clamp(40px, 6vw, 112px); align-items: center;
}

.poster {
  position: relative; margin: 0;
  border-radius: 32px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 120px -60px rgba(0, 0, 0, 0.9);
}
.poster-stage {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(46% 62% at 50% -6%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0) 80%),
    radial-gradient(80% 60% at 50% 100%, #17171c 0%, #08080a 75%),
    #08080a;
}
/* the name, huge, behind the figure */
.poster-word {
  position: absolute; left: 50%; top: 9%; transform: translateX(-50%);
  font-size: 44cqw; font-weight: 800; line-height: 0.8; letter-spacing: -0.07em;
  white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.1) 55%, rgba(255, 255, 255, 0) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.poster-floor {
  position: absolute; left: 14%; right: 14%; bottom: 13%; height: 9%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
}
.me-glow {
  position: absolute; left: 18%; top: 22%; width: 64%; height: 64%;
  object-fit: contain; filter: blur(70px) saturate(2);
  opacity: 0; transition: opacity 1s;
}
.me-glow.ok { opacity: 0.6; }
.me-body {
  position: absolute; left: 4%; bottom: 10%; width: 92%; height: 82%;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  opacity: 0; transition: opacity 0.6s, transform 1.2s var(--ease);
}
.me-body.ok { opacity: 1; }
.poster:hover .me-body.ok { transform: translateY(-6px) scale(1.015); }
.me-body.is-fallback { left: 30%; bottom: auto; top: 30%; width: 40%; height: 40%; border-radius: 50%; object-fit: cover; filter: none; }

.poster-cap {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  padding: 14px 16px 14px 20px; border-radius: 20px;
  background: rgba(20, 20, 24, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.me-cap-id { display: flex; flex-direction: column; min-width: 0; }
.me-cap-name { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.me-cap-user { color: var(--fg-2); font-size: 14px; }
.poster-link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--fg); color: #000; font-size: 14px; font-weight: 600;
  transition: transform 0.3s var(--ease);
}
.poster-link:hover { transform: scale(1.04); }

.about-lede {
  margin-top: clamp(24px, 3vw, 36px); max-width: 24em;
  font-size: clamp(24px, 2.3vw, 40px); font-weight: 500; line-height: 1.22;
  letter-spacing: -0.028em; text-wrap: pretty;
}
.about-lede [data-bind="peakSentence"] { color: var(--fg-2); }
.about-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px;
  max-width: 900px; margin-top: clamp(24px, 2.6vw, 36px);
  color: var(--fg-2); font-size: 17px; text-wrap: pretty;
}

.facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin: clamp(36px, 4vw, 56px) 0 0;
}
.facts > div { padding: 0 clamp(24px, 3vw, 48px); border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: 13px; color: var(--fg-3); }
.facts dd {
  margin-top: 10px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 600; line-height: 1.1;
  letter-spacing: -0.035em;
}
.facts .facts-sub { margin-top: 6px; font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: var(--fg-2); }

/* skills: a label, then a row of chips */
.skills { margin-top: clamp(64px, 7vw, 112px); border-top: 1px solid var(--line); }
.skill-row {
  display: grid; grid-template-columns: minmax(160px, 0.9fr) minmax(0, 4fr); gap: 16px 40px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.skill-row h3 { font-size: 15px; font-weight: 500; color: var(--fg-2); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.chip:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip-note { font-size: 13px; font-weight: 400; color: var(--fg-3); }
.chip-fav { background: var(--fg); color: #000; box-shadow: none; }
.chip-fav:hover { background: #fff; box-shadow: none; }
.chip-fav .tag {
  padding: 2px 8px; border-radius: 999px;
  background: #000; color: #fff; font-size: 11px; font-weight: 600;
}

.studio {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 32px; align-items: center;
  margin-top: clamp(40px, 4vw, 64px); padding: clamp(24px, 2.6vw, 40px);
  border-radius: 28px; overflow: hidden;
  background: var(--s1); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.3s;
}
.studio:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.studio-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.studio-bg img {
  position: absolute; top: -90%; left: -8%; width: 40%; aspect-ratio: 1; height: auto; max-width: none;
  filter: blur(70px) saturate(1.6); opacity: 0; transition: opacity 0.8s;
}
.studio-bg img.ok { opacity: 0.35; }
.studio-logo { width: 104px; height: 104px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.studio-logo .icon-initial { font-size: 40px; }
.studio-text { display: flex; flex-direction: column; min-width: 0; }
.studio-kicker { font-size: 13px; color: var(--fg-3); }
.studio-name { margin-top: 4px; font-size: clamp(28px, 2.6vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.studio-desc { margin-top: 10px; max-width: 36em; color: var(--fg-2); font-size: 16px; }
.studio-side { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.studio-members { font-size: clamp(30px, 2.8vw, 44px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.studio-members-label { margin-top: 6px; font-size: 13px; color: var(--fg-3); }
.studio-link { margin-top: 16px; color: var(--link); font-size: 14px; font-weight: 500; }
.studio:hover .studio-link { text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ contact */

.contact { position: relative; isolation: isolate; padding-bottom: clamp(96px, 11vw, 176px); overflow: hidden; }
.contact-glow {
  position: absolute; left: 50%; top: 42%; z-index: -1;
  width: min(1200px, 140vw); height: 760px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(88, 101, 242, 0.26), rgba(88, 101, 242, 0.08) 55%, rgba(88, 101, 242, 0));
  pointer-events: none;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-title {
  max-width: 12em;
  font-size: clamp(42px, 6.4vw, 112px); font-weight: 600; line-height: 0.98;
  letter-spacing: -0.048em; text-wrap: balance;
}
.contact-lead { margin-top: 26px; max-width: 34em; color: var(--fg-2); font-size: clamp(17px, 1.3vw, 21px); text-wrap: pretty; }
.cta-center { justify-content: center; }

.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden;
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}
.dc { width: min(100%, 460px); margin-top: clamp(48px, 5vw, 72px); text-align: left; }
.card-id { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card-name { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card-sub { margin-top: 2px; color: var(--fg-2); font-size: 14px; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px;
  margin-top: auto; padding-top: 22px; font-size: 13px;
}

.dc-banner {
  height: 110px; flex: 0 0 auto;
  background: linear-gradient(135deg, #2a2a31 0%, #17171a 100%);
  background-size: cover; background-position: center;
  box-shadow: inset 0 -1px 0 var(--line);
}
.dc-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 0 22px 22px; }
.dc-av { position: relative; width: 94px; height: 94px; margin-top: -47px; padding: 5px; border-radius: 50%; background: var(--s2); }
.dc-presence {
  position: absolute; right: 4px; bottom: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 4px solid var(--s2); background: var(--fg-3);
}
.dc-presence.online { background: var(--green); }
.dc-presence.idle { background: var(--yellow); }
.dc-presence.dnd { background: var(--red); }
.clan {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px; font-weight: 600;
}
.clan img { width: 14px; height: 14px; }
.dc-badges { display: flex; gap: 4px; }
.dc-badges img { width: 18px; height: 18px; }
.dc-status { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.dc-activity {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); font-size: 14px;
}
.dc-activity-label { font-size: 12px; color: var(--fg-3); }
.dc-activity-text { overflow-wrap: anywhere; }

/* ------------------------------------------------------------ footer */

.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--fg-3); font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

/* ------------------------------------------------------------ reveal */

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms);
}
.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ------------------------------------------------------------ responsive */

@media (min-width: 1600px) {
  .mosaic { aspect-ratio: 2 / 1; }
}

@media (max-width: 1099px) {
  .games-head { grid-template-columns: minmax(0, 1fr); }
  .mosaic { aspect-ratio: 4 / 3.2; }
  .about-top { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 40px; }
  .about-cols { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 32px 56px minmax(0, 1fr) minmax(0, 0.8fr) auto; gap: 22px; }
  .row-icon { width: 56px; height: 56px; border-radius: 16px; }
  .row-go { display: none; }
}

@media (max-width: 959px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 40px 64px; gap: 48px; }
  .hero-title { font-size: clamp(42px, 9vw, 76px); }
  .ambient::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.1) 70%, #000 100%);
  }
  .ambient-soft::after {
    background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.3) 20%, rgba(0, 0, 0, 0.3) 75%, #000 100%);
  }
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
  .sec-head .sec-lead { justify-self: start; }
  .about-top { grid-template-columns: minmax(0, 1fr); }
  .poster { max-width: 560px; }
  .skill-row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .studio { grid-template-columns: auto minmax(0, 1fr); }
  .studio-side { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; text-align: left; }
  .studio-link { margin: 0 0 0 auto; }
}

@media (max-width: 679px) {
  :root { --top-h: 58px; }
  body { font-size: 16px; }
  .me-role { display: none; }

  /* the mosaic becomes a plain grid: the top three full width, the rest in pairs */
  .mosaic { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
  .tile { position: relative; left: auto; top: auto; width: auto; height: auto; padding: 0; aspect-ratio: 1; }
  .tile:nth-child(-n + 3) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .tile-card { border-radius: 16px; }

  .figures { gap: 28px; flex-wrap: wrap; }
  .board { margin: 0 -12px; }
  .row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "icon id count" "icon bar bar";
    gap: 12px 14px; margin: 4px 0; padding: 14px 12px; border-radius: 18px;
  }
  .row-rank, .row-go { display: none; }
  .row-icon { grid-area: icon; align-self: start; width: 48px; height: 48px; border-radius: 14px; }
  .row-icon .icon-initial { font-size: 19px; }
  .row-id { grid-area: id; }
  .row-name { font-size: 16px; }
  .row-name .badge { width: 15px; height: 15px; }
  .row-role { font-size: 13px; }
  .row-bar { grid-area: bar; height: 6px; }
  .row-count { grid-area: count; gap: 2px; }
  .row-count .num { font-size: 18px; letter-spacing: -0.02em; }
  .row-unit { font-size: 12px; }
  .poster { border-radius: 24px; }
  .poster-cap { left: 10px; right: 10px; bottom: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; }
  .me-cap-name { font-size: 17px; }
  .poster-link { height: 34px; padding: 0 13px; font-size: 13px; }
  .facts { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
  .facts > div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts > div:last-child { border-bottom: 0; }
  .facts dd { font-size: 24px; }
  .skill-row { padding: 22px 0; }
  .chips { gap: 8px; }
  .chip { height: 36px; padding: 0 14px; font-size: 14px; }
  .studio { padding: 22px; }
  .studio-logo { width: 64px; height: 64px; border-radius: 17px; }
  .studio-name { font-size: 26px; }

  .feature-card { border-radius: 16px; }
  .feature-go { display: none; }
  .feature-info { gap: 12px; }
  .icon-lg { width: 48px; height: 48px; border-radius: 12px; }
  .icon-lg .icon-initial { font-size: 20px; }
  .feature-kicker, .feature-meta { font-size: 12px; }
  .feature-name { font-size: 18px; }
  .playing { top: 10px; left: 10px; font-size: 12px; padding: 4px 10px 4px 8px; }
  .thumb { width: 46px; height: 46px; border-radius: 13px; }
  .btn:not(.btn-sm) { height: 48px; padding: 0 20px; font-size: 15px; }
  .cta-row .btn { flex: 1 1 100%; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide.on img.ok { transform: none; }
  .sk::after { animation: none; }
}
