/* christopherstuff — 2026 redesign, in the studio's dark palette. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* christopherstuff palette: dark base, white ink, greys. */
  --bg: #101010;
  --band: #161616;
  --panel: #1b1b1b;
  --fg: #f6f6f6;
  --muted: #aaaaaa;
  --line: #303030;
  --accent: #ededed;
  --focus: var(--fg);

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 10vw, 144px);

  --text: 1.0625rem;      /* 17px */
  --text-s: 0.9375rem;    /* 15px */
  --text-xs: 0.8125rem;   /* 13px */
  --lead: 1.375rem;       /* 22px */
  --h3: 1.875rem;         /* 30px */
  --h2: clamp(2.375rem, 7.4vw, 6.25rem);
  --h1: clamp(2.75rem, 7.4vw, 7.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
sup { font-size: .5em; vertical-align: super; margin-left: 1px; font-weight: 500; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }


.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 50;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-weight: 650; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Shared type ---------- */
.display, .hero-title, .section-head h2, .webgame h2, .studio h2, .footer-cta h2, .page-hero h1, .breakdown h2 {
  font-stretch: 125%;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 0.94;
}
.lead { font-size: var(--lead); line-height: 1.4; font-weight: 450; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 650; font-stretch: 108%; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-small { min-height: 42px; padding: 0 18px; font-size: var(--text-s); }
.btn-white { background: var(--accent); color: var(--bg); }
.btn-white:hover { background: #ffffff; color: var(--bg); }
.btn-line-white { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-line-white:hover { background: var(--fg); color: var(--bg); }
.btn-black { background: var(--accent); color: var(--bg); }
.btn-black:hover { background: #ffffff; }
.btn-line { border-color: var(--fg); color: var(--fg); background: transparent; }
.btn-line:hover { background: var(--fg); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }

.text-link {
  display: inline-block; font-weight: 650; font-stretch: 108%;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: var(--muted); color: var(--fg); }
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ---------- Header ---------- */
.blue { background: var(--bg); color: var(--fg); }
.hero-wrap { overflow-x: clip; } /* the mascot scales past the edge while it stamps in */
.site-header {
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; z-index: 5;
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; white-space: nowrap; }
.wordmark img { width: 44px; height: 44px; }
.wm { font-size: 1.375rem; font-stretch: 112%; letter-spacing: -0.02em; }
.wm-a { font-weight: 780; }
.wm-b { font-weight: 380; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: var(--text-s); font-weight: 560; }
.site-nav > a:not(.nav-cta) { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav > a:not(.nav-cta):hover, .site-nav > a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-cta { text-decoration: none; padding: 10px 18px; border: 2px solid var(--fg); border-radius: 999px; font-weight: 650; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--fg); color: var(--bg); }
.lang { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { text-decoration: none; font-size: var(--text-xs); font-weight: 700; padding: 5px 10px; border-radius: 999px; line-height: 1.2; }
.lang a[aria-current="true"] { background: var(--fg); color: var(--bg); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto;
  padding: clamp(16px, 3vw, 40px) var(--gutter) clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px);
}
.hero-title { font-size: clamp(2.75rem, 5.2vw, 5rem); font-stretch: 112%; }
@media (min-width: 901px) { html[lang="en"] .hero-title, html[lang="en"] .hero-title-2 { white-space: nowrap; } }
html[lang="id"] .hero-title { font-size: clamp(2.5rem, 4.6vw, 4.5rem); }
.hero-title-2 { display: block; color: var(--muted); }
.hero-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-sub { margin-top: 24px; font-size: var(--lead); line-height: 1.4; max-width: 34ch; }
.hero-sub strong { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-live { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: clamp(16px, 3vw, 40px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line); }
.live-value { font-size: clamp(3rem, 6.6vw, 6.25rem); font-stretch: 125%; font-weight: 850; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-label { margin-top: 12px; display: flex; align-items: center; gap: 10px; font-size: var(--lead); font-weight: 600; }
.live-stat-right { text-align: right; }
.live-stat-right .live-label { justify-content: flex-end; }
.live-line { grid-column: 1 / -1; font-size: var(--text-s); color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.live-line .link-button { color: var(--fg); }
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); align-self: center; flex: none; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.live-line[data-state="stale"] .live-dot, .live-line[data-state="unavailable"] .live-dot { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.hero-mascot { justify-self: end; width: 100%; max-width: 440px; }
.hero-mascot img { width: 100%; transform: rotate(-5deg); }

@media (prefers-reduced-motion: no-preference) {
  .hero-mascot img { animation: stamp .75s cubic-bezier(.2, .9, .25, 1.15) .1s both; }
  @keyframes stamp {
    0% { opacity: 0; transform: scale(1.35) rotate(-14deg); }
    55% { opacity: 1; transform: scale(.96) rotate(-3deg); }
    100% { opacity: 1; transform: scale(1) rotate(-5deg); }
  }
}

/* ---------- Breakdown ---------- */
.breakdown {
  background: var(--panel);
  padding: clamp(40px, 5vw, 64px) max(var(--gutter), (100% - var(--wrap)) / 2);
}
.breakdown-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breakdown h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.breakdown-note { margin-top: 16px; font-size: var(--text-s); max-width: 72ch; opacity: .9; }
.breakdown-list {
  margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px;
  max-height: 520px; overflow: auto; padding-right: 8px; counter-reset: rank;
  scrollbar-color: rgba(255,255,255,.5) transparent;
}
.breakdown-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.22); }
.breakdown-art { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.14); display: grid; place-items: center; font-weight: 800; font-size: var(--text-s); }
.breakdown-art img { width: 100%; height: 100%; object-fit: cover; }
.breakdown-name { font-weight: 650; font-stretch: 108%; line-height: 1.25; overflow-wrap: anywhere; }
.breakdown-name a { text-decoration: none; }
.breakdown-name a:hover { text-decoration: underline; }
.breakdown-by { display: block; font-size: var(--text-xs); font-weight: 450; opacity: .8; margin-top: 2px; }
.breakdown-visits { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }

/* ---------- Sections ---------- */
.section { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: var(--h2); }
.section-head p { margin-top: 20px; font-size: var(--lead); line-height: 1.4; color: var(--muted); max-width: 40ch; }
.section-head .text-link { margin-top: 20px; }

/* ---------- Games ---------- */
.games-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); }
.games-more { margin-top: clamp(56px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px); }
.game { display: flex; flex-direction: column; }
.game-media { position: relative; }
.ccu-pill { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: rgba(16,16,16,.88); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: var(--text-s); line-height: 1.2; pointer-events: none; }
.ccu-pill[hidden] { display: none; }
.ccu-pill .live-dot { width: 8px; height: 8px; }
.ccu-pill strong { font-weight: 750; font-variant-numeric: tabular-nums; }
.game-thumb { display: block; border-radius: 16px; overflow: hidden; background: var(--panel); aspect-ratio: 16 / 9; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-body { margin-top: 22px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.game h3 { font-size: 1.625rem; font-stretch: 118%; font-weight: 820; letter-spacing: -0.02em; line-height: 1.02; }
.game-large h3 { font-size: clamp(1.875rem, 3vw, 2.5rem); }
.game-genre { margin-top: 6px; font-size: var(--text-s); color: var(--muted); font-weight: 500; }
.game-desc { margin-top: 14px; max-width: 46ch; }
/* Played … times, big, with live players on the right */
.game-body { container-type: inline-size; }
.game-stats { margin-top: 20px; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 16px; }
.game-plays { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .45em; font-size: var(--text-s); color: var(--muted); }
.plays-word:first-child { flex-basis: 100%; margin-bottom: 6px; }
.plays-num { font-size: min(clamp(2rem, 3vw, 2.75rem), 9.5cqi); font-stretch: 125%; font-weight: 850; letter-spacing: -0.03em; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.game-large .plays-num { font-size: min(clamp(2.25rem, 3.8vw, 3.5rem), 9.5cqi); }
.game-spotlight .plays-num { font-size: min(clamp(2.5rem, 4.4vw, 4.25rem), 10cqi); }
.game-ccu { justify-self: end; display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.game-ccu[hidden] { display: none; }
.ccu-icon { width: 22px; height: 22px; fill: var(--fg); flex: none; }
.game-ccu strong { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-weight: 800; font-stretch: 115%; line-height: 1; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.game-body .btn, .game-body .text-link { margin-top: 20px; }
.game-large .game-body .btn { margin-top: auto; }
.game-large .game-stats { margin-bottom: 24px; }
.games-more .game-stats { margin-top: auto; padding-top: 18px; }

/* Ant Wars spotlight with its NEW sticker */
.game-spotlight { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(64px, 7vw, 104px); }
.game-spotlight .game-thumb { position: relative; overflow: visible; }
.game-spotlight .game-media { align-self: center; }
.game-spotlight .game-thumb img { border-radius: 16px; }
.game-spotlight .game-body { margin-top: 0; }
.game-spotlight h3 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-stretch: 125%; font-weight: 850; letter-spacing: -0.025em; line-height: .95; margin-top: 14px; }
.game-spotlight .game-genre { margin-top: 10px; }
.game-spotlight .game-stats { margin-bottom: 26px; }
.game-spotlight .game-body .btn { margin-top: 0; }
.new-sticker {
  position: absolute; top: -18px; right: -14px;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--fg); color: var(--bg); border: 3px solid var(--bg);
  font-size: 1.1875rem; font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em;
  transform: rotate(12deg);
}
.new-line { display: flex; align-items: center; gap: 10px; font-size: var(--text-s); font-weight: 600; }
.new-pill { background: var(--fg); color: var(--bg); border: 2px solid var(--fg); border-radius: 999px; padding: 2px 10px; font-size: var(--text-xs); font-weight: 850; font-stretch: 118%; }
@media (max-width: 900px) {
  .game-spotlight { grid-template-columns: 1fr; }
  .new-sticker { width: 76px; height: 76px; font-size: 1rem; top: -14px; right: -6px; }
}

/* ---------- Pawn Panic ---------- */
.webgame { background: var(--band); }
.webgame-inner {
  max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: var(--section-y) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.webgame-media video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.webgame-kicker { font-size: var(--text-s); font-weight: 600; }
.webgame h2 { margin-top: 12px; font-size: clamp(3rem, 6vw, 5.5rem); }
.webgame-copy > p:not(.webgame-kicker) { margin-top: 20px; font-size: 1.1875rem; max-width: 36ch; }
.webgame .btn { margin-top: 28px; }
.webgame .btn-black:hover { background: #ffffff; color: var(--bg); }

/* ---------- Communities ---------- */
.community-list { border-bottom: 2px solid var(--line); }
.community {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-rows: auto auto; column-gap: 28px; align-items: center;
  padding: 28px 0; border-top: 2px solid var(--line); text-decoration: none;
}
.community:hover { background: linear-gradient(var(--panel), var(--panel)) no-repeat center / calc(100% + 32px) 100%; }
.community img { grid-row: 1 / 3; width: 96px; height: 96px; border-radius: 20px; }
.community-name { font-size: clamp(1.75rem, 3vw, 2.5rem); font-stretch: 118%; font-weight: 820; letter-spacing: -0.02em; line-height: 1.05; align-self: end; }
.community-home { grid-column: 2; color: var(--muted); font-size: var(--text-s); align-self: start; margin-top: 4px; }
.community-count { grid-row: 1 / 3; grid-column: 3; text-align: right; font-size: var(--text-s); color: var(--muted); line-height: 1.2; }
.community-count strong { display: block; color: var(--fg); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.community-join { grid-row: 1 / 3; grid-column: 4; display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 2px solid var(--fg); border-radius: 999px; font-weight: 650; font-size: var(--text-s); font-stretch: 108%; white-space: nowrap; }
.community:hover .community-join { background: var(--fg); color: var(--bg); }

/* ---------- On stage ---------- */
.onstage { position: relative; }
.onstage::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: var(--band); z-index: -1; }
/* Six columns: group 4 + stage 2 share one height because 3:2 at 4/6 equals 3:4 at 2/6. */
.photo-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
.photo img { width: 100%; object-fit: cover; }
.photo-group { grid-column: span 4; }
.photo-group img { aspect-ratio: 3 / 2; }
.photo-stage { grid-column: span 2; }
.photo-stage img { aspect-ratio: 3 / 4; height: auto; }
.photo-panel, .photo-audience { grid-column: span 3; }
.photo-panel img, .photo-audience img { aspect-ratio: 3 / 2; }
.photo figcaption { margin-top: 10px; font-size: var(--text-s); color: var(--muted); }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }

.studio h2 { font-size: clamp(2.375rem, 5.4vw, 5.75rem); }
.studio .lead { margin-top: 28px; max-width: 30ch; }
.studio-copy > p:not(.lead) { margin-top: 28px; font-size: var(--lead); line-height: 1.45; max-width: 52ch; color: var(--muted); }
.contact-links { margin-top: 40px; border-bottom: 1px solid var(--line); max-width: 560px; }
.contact-links li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-label { color: var(--muted); font-size: var(--text-s); }
.contact-links a, .copy-button { font-weight: 650; text-decoration: none; overflow-wrap: anywhere; text-align: right; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy-button { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 10px; align-items: baseline; }
.copy-hint { font-size: var(--text-xs); font-weight: 600; color: var(--fg); border: 1.5px solid currentColor; border-radius: 999px; padding: 1px 8px; }
.copy-button[data-copied] .copy-hint { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--section-y) max(var(--gutter), (100% - var(--wrap)) / 2) 40px; }
.footer-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; }
.footer-cta h2 { font-size: clamp(2.5rem, 5.6vw, 5.25rem); max-width: 14ch; }
.footer-bottom { margin-top: clamp(72px, 9vw, 128px); padding-top: 28px; border-top: 2px solid var(--line); display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.tagline { font-stretch: 125%; font-weight: 850; font-size: 1.25rem; letter-spacing: -0.01em; }
.copyright { margin-left: auto; font-size: var(--text-s); }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--bg); color: var(--fg); border-bottom: 1px solid var(--line); }
.page-hero-inner { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: clamp(32px, 6vw, 88px) var(--gutter) clamp(56px, 7vw, 104px); }
.page-hero h1 { font-size: clamp(3rem, 8vw, 7.5rem); }
.page-hero p { margin-top: 24px; font-size: var(--lead); line-height: 1.4; max-width: 40ch; }

/* Careers */
.roles { display: grid; gap: clamp(64px, 8vw, 112px); }
.role { border-top: 3px solid var(--line); padding-top: 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); }
.role-team { font-size: var(--text-s); color: var(--muted); font-weight: 600; }
.role h2 { margin-top: 8px; font-size: clamp(2rem, 3.6vw, 3rem); font-stretch: 118%; font-weight: 830; letter-spacing: -0.02em; line-height: 1; }
.role-summary { margin-top: 18px; font-size: 1.1875rem; line-height: 1.45; max-width: 40ch; }
.role-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.role h3 { font-size: var(--text); font-weight: 750; font-stretch: 110%; }
.role-details ul { margin-top: 12px; display: grid; gap: 10px; }
.role-details li { padding-left: 20px; position: relative; }
.role-details li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--fg); border-radius: 2px; }
.role-note { margin-top: 18px; font-size: var(--text-s); color: var(--muted); }
.role-apply { grid-column: 2; display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 22px 24px; background: var(--panel); border-radius: 16px; }
.role-apply p { flex: 1 1 260px; font-size: var(--text-s); }
.careers-email { margin-top: clamp(56px, 7vw, 96px); font-size: var(--lead); overflow-wrap: anywhere; }
.careers-email a { font-weight: 700; text-underline-offset: 5px; }

.ttt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: center; }
.ttt::before { content: ''; position: absolute; inset: 0 calc(50% - 50vw); background: var(--band); z-index: -1; }
.ttt-copy h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-stretch: 125%; font-weight: 850; letter-spacing: -0.025em; line-height: .95; }
.ttt-copy p { margin-top: 16px; font-size: var(--lead); color: var(--muted); max-width: 30ch; }
.ttt-status { margin-top: 24px; font-weight: 700; font-size: var(--lead); min-height: 1.4em; }
.ttt-copy .btn { margin-top: 20px; }
.ttt-board { display: grid; grid-template-columns: repeat(3, clamp(80px, 9vw, 112px)); grid-template-rows: repeat(3, clamp(80px, 9vw, 112px)); gap: 8px; }
.ttt-cell {
  border: 3px solid #444; border-radius: 16px; background: var(--panel); cursor: pointer;
  font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--fg);
}
.ttt-cell.is-bot { color: var(--muted); }
.ttt-cell[aria-disabled="true"] { cursor: default; }
.ttt-cell:not([aria-disabled="true"]):hover { background: #242424; }
.ttt-cell.is-winning { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Inquiry */
.inquiry-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.inquiry-form h2, .contact-aside h2 { font-size: var(--h3); font-stretch: 118%; font-weight: 820; letter-spacing: -0.02em; line-height: 1.05; }
.form-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: var(--text-s); }
.field label span { font-weight: 450; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--band);
  border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px; min-height: 52px;
}
.field textarea { resize: vertical; min-height: 168px; line-height: 1.5; }
.field select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--band) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23f6f6f6' stroke-width='2.2'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #555; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
.field input::placeholder, .field textarea::placeholder { color: #777; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.form-foot { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { font-size: var(--text-s); color: var(--muted); flex: 1 1 280px; }
.form-note a { color: var(--fg); text-underline-offset: 3px; }
.contact-aside { background: var(--panel); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.contact-aside .contact-email { display: inline-block; margin-top: 12px; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: 5px; }
.contact-person { margin-top: 32px; display: flex; align-items: center; gap: 14px; }
.contact-person img { width: 60px; height: 60px; border-radius: 50%; }
.contact-person strong { display: block; font-stretch: 112%; font-weight: 780; font-size: 1.125rem; }
.contact-person span { font-size: var(--text-s); color: var(--muted); }
.contact-aside .contact-links { margin-top: 20px; border-color: var(--line); }
.contact-aside .contact-links li { border-color: var(--line); }
.contact-aside .copy-hint { background: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 20px; }
  .games-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role { grid-template-columns: 1fr; }
  .role-apply { grid-column: 1; }
}

@media (max-width: 900px) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 2px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg);
    font-weight: 650; cursor: pointer;
  }
  .js .menu-toggle[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
  .site-header { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 12px 20px; }

  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; gap: 8px; }
  .hero-mascot { order: -1; justify-self: end; width: 56vw; max-width: 340px; margin-bottom: -12px; margin-right: -8px; }
  .hero-title { max-width: 11ch; }
  .breakdown-list { grid-template-columns: 1fr; max-height: 60vh; }

  .games-featured { grid-template-columns: 1fr; }
  .game-large .game-body .btn { margin-top: 0; }
  .webgame-inner { grid-template-columns: 1fr; }

  .community { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 18px; row-gap: 4px; }
  .community img { width: 72px; height: 72px; border-radius: 16px; grid-row: 1 / 3; }
  .community-count { grid-row: 3; grid-column: 2; text-align: left; margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
  .community-count strong { display: inline; }
  .community-join { grid-row: 4; grid-column: 2; justify-self: start; margin-top: 14px; }

  .studio { grid-template-columns: 1fr; }
  .studio-photo { max-width: 420px; }

  .inquiry-layout { grid-template-columns: 1fr; }
  .ttt { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-live { grid-template-columns: 1fr; }
  .live-stat-right { text-align: left; }
  .live-stat-right .live-label { justify-content: flex-start; }
  .live-value { font-size: clamp(2.75rem, 13vw, 4rem); }
  :root { --lead: 1.1875rem; --h2: clamp(2.25rem, 10.4vw, 3rem); }
  .webgame h2 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
  .page-hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .community-name { font-size: 1.625rem; }
  .wm { font-size: 1.1875rem; }
  .wordmark img { width: 38px; height: 38px; }
  .games-more { grid-template-columns: 1fr; }
  .photo-grid { gap: 20px; }
  .photo-grid > .photo { grid-column: 1 / -1; }
  .role-details { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .copyright { margin-left: 0; width: 100%; }
  .breakdown-head { align-items: flex-start; flex-direction: column; }
  .contact-links li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .contact-links a, .copy-button { text-align: left; }
  .contact-aside .contact-email { font-size: 1.0625rem; }
}

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

.footer-compact { padding-top: 0; }
.footer-compact .footer-bottom { margin-top: 0; border-top: 0; padding-top: 40px; }
.breakdown-playing { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--muted); margin-top: 2px; }

/* ---------- Photo showreel (moves left to right, pauses on hover) ---------- */
.reel { margin-inline: calc(50% - 50vw); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.reel:focus-visible { outline-offset: -3px; }
.reel-track { display: flex; width: max-content; animation: reel 75s linear infinite; }
.reel:hover .reel-track, .reel:focus-within .reel-track { animation-play-state: paused; }
.reel-set { display: flex; }
.reel-item { flex: none; width: min-content; margin-right: 20px; }
.reel-item img { height: clamp(240px, 30vw, 430px); width: auto; max-width: none; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .6s; }
.reel-item:hover img { transform: scale(1.03); }
.reel-item figcaption { margin-top: 12px; font-size: var(--text-s); color: var(--muted); }
@keyframes reel { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- Tagline band above the footer ---------- */
.tagline-band { overflow: hidden; border-top: 1px solid var(--line); padding: clamp(20px, 3vw, 36px) 0; }
.tagline-track { display: flex; align-items: center; width: max-content; animation: band 38s linear infinite; }
.tagline-track > * { margin-right: clamp(24px, 3vw, 44px); flex: none; }
.tagline-track span { font-size: clamp(2.25rem, 5.6vw, 5rem); font-stretch: 125%; font-weight: 850; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.tagline-track span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
.tagline-track img { width: clamp(40px, 5vw, 64px); height: auto; animation: spin-slow 12s linear infinite; }
@keyframes band { to { transform: translateX(-50%); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.motion [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms), transform .95s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms); }
  html.motion [data-reveal].is-in { opacity: 1; transform: none; }

  /* hero entrance */
  .hero-title, .hero-sub, .hero-actions, .hero-live { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-title-2 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .12s both; }
  .hero-sub { animation-delay: .2s; }
  .hero-actions { animation-delay: .3s; }
  .hero-live { animation-delay: .42s; }
  .page-hero h1, .page-hero p { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .page-hero p { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

  /* mascot: stamps in, then floats and leans toward the pointer */
  .hero-mascot { transform: translate3d(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 16px), 0) rotate(calc(var(--px, 0) * 5deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .hero-mascot img { animation: stamp .75s cubic-bezier(.2, .9, .25, 1.15) .1s both, bob 6s ease-in-out .9s infinite; }
  @keyframes bob { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-14px); } }

  /* game art: tilt + zoom */
  .game-media { perspective: 1100px; }
  .game-thumb { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
  .game-thumb img { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
  .game-media:hover .game-thumb { box-shadow: 0 28px 60px rgba(0,0,0,.55); }
  .game:not(.game-spotlight) .game-media:hover .game-thumb img { transform: scale(1.06); }
  .new-sticker { animation: wobble 3.4s ease-in-out infinite; }
  @keyframes wobble { 0%, 100% { transform: rotate(12deg) scale(1); } 50% { transform: rotate(4deg) scale(1.07); } }

  /* small hovers */
  .btn { transition: background-color .15s, color .15s, border-color .15s, transform .2s cubic-bezier(.2,.7,.2,1); }
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(0) scale(.97); }
  .community img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .community:hover img { transform: rotate(-7deg) scale(1.07); }
  .community-join { transition: background-color .2s, color .2s, transform .2s; }
  .community:hover .community-join { transform: translateX(-4px); }
  .contact-links a, .copy-button { transition: opacity .2s, transform .2s; }
  .contact-links a:hover { transform: translateX(-3px); }
  .ccu-icon { animation: breathe 2.4s ease-in-out infinite; }
  @keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
  .cutout-bg { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
  .studio-photo:hover .cutout-bg { transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; }
  .reel-set[aria-hidden="true"] { display: none; }
}

/* Section bands: small label bar across the top (Ant Wars, Browser games) */
.band-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-bottom: clamp(-8px, -1vw, 0px); font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.band-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.band-label .new-pill { letter-spacing: .06em; }
.webgame-ants .game-thumb { position: relative; overflow: visible; }
.webgame-ants .game-thumb img { border-radius: 16px; }
.webgame-ants .game-body { margin-top: 0; }
.webgame-ants .webgame-copy > .game-genre { margin-top: 10px; font-size: var(--text-s); }
.webgame-ants .webgame-copy > .game-desc { margin-top: 18px; }
.webgame-ants .plays-num { font-size: min(clamp(2.5rem, 4.4vw, 4.25rem), 10cqi); }
.webgame-ants .game-stats { margin-bottom: 26px; }
.webgame-ants .game-body .btn { margin-top: 0; }
.webgame-ants h2 { margin-top: 0; }

/* Founder photo: zoomed shot inside an abstract blob, head breaking out of the top */
.cutout { position: relative; aspect-ratio: 800 / 1000; }
.cutout img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cutout-bg { clip-path: url(#founder-blob); }
.cutout-fg { transform-origin: 60% 30%; -webkit-mask-image: linear-gradient(#000 0 34%, transparent 40%); mask-image: linear-gradient(#000 0 34%, transparent 40%); }
.clip-defs { position: absolute; width: 0; height: 0; }

/* ---------- Played worldwide: half globe ---------- */
.worldwide { position: relative; overflow: hidden; padding-top: clamp(56px, 8vw, 112px); text-align: center; }
.worldwide-head { padding: 0 var(--gutter); }
.worldwide-head h2 { font-size: var(--h2); font-stretch: 125%; font-weight: 850; letter-spacing: -0.025em; line-height: .94; }
.worldwide-head p { margin: 18px auto 0; font-size: var(--lead); color: var(--muted); max-width: 34ch; }
.globe { position: relative; height: clamp(190px, 26vw, 380px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; margin-top: clamp(16px, 3vw, 40px); }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe.is-grabbing { cursor: grabbing; }
.globe::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* ---------- Phone menu: white sidebar that slides over the page ---------- */
.nav-backdrop { display: none; }
@media (max-width: 900px) {
  .js .site-nav, .js .site-nav.is-open {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 60;
    flex-direction: column; align-items: stretch; gap: 0; padding: 96px 28px 32px; overflow-y: auto;
    background: #f6f6f6; color: #101010; font-size: 1.375rem; --focus: #101010;
    box-shadow: -24px 0 60px rgba(0,0,0,.45);
    transform: translateX(105%); visibility: hidden;
    transition: transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s;
  }
  .js .site-nav.is-open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .js .site-nav > a:not(.nav-cta), .js .site-nav.is-open > a:not(.nav-cta) { padding: 16px 0; border-bottom: 1px solid #d9d9d9; color: #101010; }
  .js .site-nav > a:not(.nav-cta):hover, .js .site-nav > a[aria-current="page"] { border-bottom-color: #101010; }
  .js .site-nav .nav-cta, .js .site-nav.is-open .nav-cta { margin-top: 24px; text-align: center; padding: 14px 18px; border-color: #101010; color: #101010; }
  .js .site-nav .nav-cta:hover, .js .site-nav .nav-cta[aria-current="page"] { background: #101010; color: #f6f6f6; }
  .js .site-nav .lang, .js .site-nav.is-open .lang { margin-top: 20px; align-self: flex-start; border-color: #cfcfcf; }
  .js .site-nav .lang a { color: #101010; }
  .js .site-nav .lang a[aria-current="true"] { background: #101010; color: #f6f6f6; }
  .js .menu-toggle { position: relative; z-index: 70; transition: background-color .2s, color .2s, border-color .2s; }
  .js .menu-toggle[aria-expanded="true"] { background: #101010; color: #f6f6f6; border-color: #101010; }
  .js .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; }
  html.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .35s; }
  html.nav-open { overflow: hidden; }
  @media (prefers-reduced-motion: no-preference) {
    .js .site-nav.is-open > * { animation: nav-in .5s cubic-bezier(.2,.7,.2,1) both; }
    .js .site-nav.is-open > *:nth-child(2) { animation-delay: .05s; }
    .js .site-nav.is-open > *:nth-child(3) { animation-delay: .1s; }
    .js .site-nav.is-open > *:nth-child(4) { animation-delay: .15s; }
    .js .site-nav.is-open > *:nth-child(5) { animation-delay: .2s; }
    @keyframes nav-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
  }
}

.worldwide-live { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); text-align: left; }
.worldwide-live .hero-live { margin-top: 0; }
.worldwide-head p { max-width: none; white-space: nowrap; font-size: min(var(--lead), 3.7vw); }

/* "Played worldwide." letters ride a slow wave */
.wave-word { display: inline-block; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .wave-letter { display: inline-block; animation: wave 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -0.12s); }
  @keyframes wave { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-0.09em) rotate(-3deg); } 50% { transform: translateY(0) rotate(0deg); } 75% { transform: translateY(0.05em) rotate(2deg); } }
}

/* Slot-machine counters */
.odo { display: inline-flex; align-items: flex-start; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo-strip { display: flex; flex-direction: column; transition-property: transform; transition-timing-function: cubic-bezier(.12, .9, .2, 1.04); will-change: transform; }
.odo-strip > span { display: block; height: 1em; line-height: 1; text-align: center; }
.odo-sep { display: inline-block; line-height: 1; }
.odo-pop { animation: odo-pop .7s cubic-bezier(.2,.8,.2,1); }
@keyframes odo-pop { 0% { transform: none; } 30% { transform: scale(1.05); filter: drop-shadow(0 0 16px rgba(255,255,255,.45)); } 100% { transform: none; } }

/* Community counter under "Played worldwide." */
.world-community { margin-top: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; align-items: center; }
.worldwide-head .world-community .live-value { margin: 0; max-width: none; font-size: clamp(3rem, 7.4vw, 7rem); color: var(--fg); white-space: nowrap; }
.worldwide-head .world-community .live-label { margin: 12px 0 0; justify-content: center; font-size: var(--lead); color: var(--fg); white-space: nowrap; }

/* ---------- Liquid-glass top bar, pinned while you scroll ---------- */
html { scroll-padding-top: 110px; }
.site-header {
  position: sticky; top: 14px; z-index: 50;
  width: min(calc(var(--wrap) + 56px), calc(100% - 32px)); max-width: none;
  margin: 14px auto 0; padding: 10px 12px 10px 20px; border-radius: 999px;
  isolation: isolate;
}
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(160px 70px at var(--glint, 50%) 0%, rgba(255,255,255,var(--glint-a, 0)), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04) 45%, rgba(255,255,255,.08));
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06), 0 12px 32px rgba(0,0,0,.28);
  transition: background-color .3s, box-shadow .3s;
}
.site-header:hover { --glint-a: .16; }
.site-header.is-scrolled::before { background-color: rgba(30,30,30,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(255,255,255,.06), 0 16px 40px rgba(0,0,0,.45); }
.site-header .nav-cta { background: rgba(255,255,255,.08); }
.site-header .lang { border-color: rgba(255,255,255,.22); }
@media (max-width: 900px) {
  .site-header { flex-wrap: nowrap; padding: 8px 8px 8px 16px; top: 10px; margin-top: 10px; width: calc(100% - 20px); }
  .site-header .nav-cta { background: transparent; }
}

/* ---------- Games heading + NEW band (Ant Wars, Destruction Crew) ---------- */
.games-new-head { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: var(--section-y) var(--gutter) 0; }
.games-new-head .section-head { margin-bottom: clamp(28px, 3vw, 40px); }
.webgame-ants .webgame-inner { display: block; padding-top: clamp(40px, 5vw, 64px); }
.webgame-ants .band-label { margin-bottom: clamp(32px, 4vw, 56px); }
.new-game { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.new-game + .new-game { margin-top: clamp(72px, 9vw, 128px); }
.new-game-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.new-game-flip .webgame-media { order: 2; }
.new-game h3 { margin-top: 14px; font-size: min(clamp(2.5rem, 4.8vw, 4.75rem), 12.5cqi); font-stretch: 125%; font-weight: 850; letter-spacing: -0.025em; line-height: .95; }
.new-tag { display: flex; align-items: center; gap: 10px; font-size: var(--text-s); font-weight: 600; color: var(--muted); }
.new-tag .new-pill { color: var(--bg); }
.games-rest { padding-top: clamp(64px, 8vw, 112px); }
@media (max-width: 900px) {
  .new-game, .new-game-flip { grid-template-columns: 1fr; }
  .new-game-flip .webgame-media { order: 0; }
}

/* ---------- Globe drag hint ---------- */
.globe-hint {
  position: absolute; left: 50%; top: 62%; z-index: 2; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(16,16,16,.6); border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--text-s); font-weight: 600; pointer-events: none; white-space: nowrap;
  transition: opacity .5s, transform .5s;
}
.globe-hand { width: 24px; height: 24px; fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.globe.was-spun .globe-hint { opacity: 0; transform: translateX(-50%) translateY(10px); }
@media (prefers-reduced-motion: no-preference) {
  .globe-hand { animation: hand-swipe 2.2s ease-in-out infinite; }
  @keyframes hand-swipe { 0%, 100% { transform: translateX(-6px) rotate(-8deg); } 50% { transform: translateX(8px) rotate(6deg); } }
}

/* ---------- Communities: two pill cards side by side ---------- */
.community-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border-bottom: 0; }
.community-list > li { min-width: 0; }
.community {
  display: flex; align-items: center; gap: 20px; height: 100%;
  padding: 14px 16px 14px 14px; border: 1px solid var(--line); border-top: 1px solid var(--line);
  border-radius: 999px; background: var(--panel); text-decoration: none;
  transition: border-color .25s, background-color .25s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.community:hover { background: #222; border-color: #4a4a4a; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.community img { flex: none; width: 96px; height: 96px; border-radius: 50%; }
.community-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.community-name { align-self: auto; font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-stretch: 118%; font-weight: 820; letter-spacing: -0.02em; line-height: 1.1; }
.community-home { align-self: auto; margin: 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.35; }
.community-count { align-self: auto; margin-top: 6px; text-align: left; font-size: var(--text-s); color: var(--muted); display: flex; align-items: baseline; gap: 7px; }
.community-count strong { display: inline; color: var(--fg); font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 800; }
.community-join {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 20px;
  border: 2px solid var(--fg); border-radius: 999px; font-weight: 650; font-size: var(--text-s); white-space: nowrap;
}
.join-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.community:hover .community-join { background: var(--fg); color: var(--bg); transform: none; }
.community:hover .join-arrow { transform: translate(2px, -2px); }
@media (max-width: 1180px) { .community-join .join-text { display: none; } .community-join { width: 52px; height: 52px; min-height: 0; padding: 0; justify-content: center; } }
@media (max-width: 860px) { .community-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .community { gap: 14px; border-radius: 48px; padding: 12px 14px 12px 12px; }
  .community img { width: 68px; height: 68px; }
  .community-join { width: 44px; height: 44px; }
}

/* Community cards: rounded squares rather than pills, a little taller */
.community { border-radius: 28px; padding: 28px 28px 28px 24px; gap: 24px; min-height: 168px; }
.community img { width: 112px; height: 112px; }
.community-text { gap: 6px; }
.community-count { margin-top: 10px; }
@media (max-width: 480px) {
  .community { border-radius: 22px; padding: 20px 18px 20px 16px; gap: 16px; min-height: 0; }
  .community img { width: 76px; height: 76px; }
}

/* Top bar: softer corners instead of a full pill */
.site-header { border-radius: 18px; }
@media (max-width: 900px) { .site-header { border-radius: 16px; } }

/* ---------- Live numbers are links: hover and click effects ---------- */
.live-link { position: relative; display: block; color: inherit; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.live-link .live-value { display: inline-block; transform-origin: left center; transition: transform .45s cubic-bezier(.2,1.4,.4,1), filter .4s; }
.live-stat-right.live-link .live-value { transform-origin: right center; }
.world-community.live-link .live-value { transform-origin: center; }
.live-link:hover .live-value, .live-link:focus-visible .live-value { transform: translateY(-4px) scale(1.035); filter: drop-shadow(0 0 18px rgba(255,255,255,.38)); }
.live-link:active .live-value { transform: scale(.96); transition-duration: .12s; }
.live-arrow { width: .9em; height: .9em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: translate(-6px, 4px); transition: opacity .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.live-link:hover .live-arrow, .live-link:focus-visible .live-arrow { opacity: 1; transform: none; }
.live-link .live-label { transition: color .3s; }
.live-link::after { content: ''; position: absolute; left: 50%; top: 40%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .live-link:hover .odo-col { animation: digit-hop .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d, 0) * 45ms); }
  @keyframes digit-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-.09em); } }
  .live-link.is-pulse::after { animation: live-ring .65s cubic-bezier(.2,.7,.2,1); }
  @keyframes live-ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(9); } }
}

/* ---------- Roblox toys you can drag and throw ---------- */
.toy-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.toy {
  position: absolute; left: 0; top: 0; pointer-events: auto; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none; will-change: transform; opacity: .9;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); transition: opacity .25s;
}
.toy:hover, .toy.is-held { opacity: 1; }
.toy.is-held { cursor: grabbing; z-index: 2; }
.toy img, .toy svg { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.toy-legs { transform-origin: 50% 55%; animation: legs .5s ease-in-out infinite alternate; }
@keyframes legs { from { transform: scaleX(.94) rotate(-2deg); } to { transform: scaleX(1.05) rotate(2deg); } }

/* The mascot: pull him and he springs back */
.mascot-spring { display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transform-origin: 50% 55%; will-change: transform; }
.mascot-spring.is-held { cursor: grabbing; }
.mascot-spring img { pointer-events: none; }

/* Toys live behind the page: greyscale, under all content, grabbable in the empty space */
.toy-layer { z-index: 0; }
.toy { filter: grayscale(1) drop-shadow(0 12px 18px rgba(0,0,0,.5)); opacity: .55; }
.toy:hover, .toy.is-held { opacity: .85; }
.blue, .page-hero, .hero-wrap { background: transparent; }
.hero-wrap, main, .site-footer, .tagline-band, .breakdown { position: relative; z-index: 1; }
/* layout boxes let the pointer through to the toys behind them… */
:is(.hero-wrap, main, .site-footer, .tagline-band, .page-hero) :is(div, section, article, ul, ol, li, figure, aside, form),
:is(.hero-wrap, main, .site-footer, .tagline-band, .page-hero) { pointer-events: none; }
/* …while real content and anything with its own background still catches it */
:is(.hero-wrap, main, .site-footer, .tagline-band, .page-hero) :is(a, button, input, select, textarea, label, video, canvas, img, svg, p, h1, h2, h3, h4, span, strong, figcaption),
main .webgame, main .onstage, .hero-wrap .breakdown, main .reel, main .globe, main .game-media, main .community,
main .contact-aside, main .role-apply, main .ttt-board, main .field, main .form-grid, main .studio-photo, .hero-wrap .hero-mascot { pointer-events: auto; }
main .globe-hint, main .globe-hint * { pointer-events: none; }

/* ---------- Contact links: 2 × 3 grid of logos ---------- */
.contact-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 600px; }
.contact-grid > li { min-width: 0; }
.contact-tile {
  width: 100%; height: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--fg);
  font-size: var(--text-s); font-weight: 650; text-decoration: none; text-align: left; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .3s cubic-bezier(.2,1.4,.4,1);
}
.contact-tile span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-tile:hover { background: #222; border-color: #4a4a4a; transform: translateY(-3px); }
.brand-ico { width: 22px; height: 22px; flex: none; fill: currentColor; transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.contact-tile:hover .brand-ico { transform: scale(1.15) rotate(-6deg); }
.contact-tile.copy-button { display: flex; gap: 10px; }
.contact-tile .copy-hint { margin-left: auto; flex: none; }
.contact-aside .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
@media (max-width: 600px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Discord join card ---------- */
.discord-join {
  margin-top: 20px; display: flex; align-items: center; gap: 22px; padding: 22px 28px 22px 24px;
  border: 1px solid var(--line); border-radius: 28px; background: var(--panel); text-decoration: none; color: var(--fg);
  transition: background-color .25s, border-color .25s, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.discord-join:hover { background: #222; border-color: #4a4a4a; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.discord-logo { width: 56px; height: 56px; flex: none; fill: var(--fg); transition: transform .5s cubic-bezier(.2,1.6,.4,1); }
.discord-join:hover .discord-logo { transform: rotate(-10deg) scale(1.12); }
.discord-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.discord-text strong { font-size: clamp(1.25rem, 1.9vw, 1.625rem); font-stretch: 118%; font-weight: 820; letter-spacing: -0.02em; line-height: 1.1; }
.discord-text span { color: var(--muted); font-size: var(--text-s); }
.discord-join:hover .community-join { background: var(--fg); color: var(--bg); }
.discord-join:hover .join-arrow { transform: translate(2px, -2px); }
@media (max-width: 480px) { .discord-join { gap: 14px; padding: 18px; border-radius: 22px; } .discord-logo { width: 42px; height: 42px; } }
main .discord-join, main .park { pointer-events: auto; }

/* ---------- Community park ---------- */
.park { position: relative; height: clamp(170px, 19vw, 250px); margin-top: clamp(28px, 4vw, 48px); }
.park canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* ---------- Glass highlight that follows the pointer along the top bar ---------- */
.site-nav { position: relative; }
.nav-glass {
  position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: -1; pointer-events: none; opacity: 0;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.05) 55%, rgba(255,255,255,.1));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%);
  transition: left .5s cubic-bezier(.3,1.35,.4,1), top .5s cubic-bezier(.3,1.35,.4,1), width .5s cubic-bezier(.3,1.35,.4,1), height .5s cubic-bezier(.3,1.35,.4,1), opacity .25s, border-radius .3s;
}
.nav-glass.is-on { opacity: 1; }
.nav-glass.is-pill { border-radius: 999px; }
.site-nav > a:not(.nav-cta) { position: relative; padding: 8px 12px; margin: 0 -12px; border-bottom: 0; }
.site-nav > a:not(.nav-cta):hover, .site-nav > a[aria-current="page"] { border-bottom: 0; }
.site-nav > a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: currentColor; border-radius: 2px; }
@media (max-width: 900px) { .nav-glass { display: none; } .js .site-nav > a:not(.nav-cta) { margin: 0; padding: 16px 0; } .site-nav > a[aria-current="page"]::after { display: none; } }

.copy-hint-ico { border: 0; padding: 0; background: none !important; color: var(--muted); display: inline-flex; }
.copy-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-tile[data-copied] { border-color: var(--fg); }
@media (max-width: 600px) { .contact-tile { padding: 12px; gap: 10px; font-size: var(--text-xs); } .brand-ico { width: 20px; height: 20px; } }
.contact-aside .contact-tile { font-size: var(--text-xs); padding: 12px; gap: 10px; } .contact-aside .brand-ico { width: 19px; height: 19px; }

/* ---------- Community cards: rounded-square icon, hover reveals the Roblox cover ---------- */
.community { position: relative; overflow: hidden; isolation: isolate; min-height: 184px; padding-left: calc(24px + 112px + 24px); }
.community-icon {
  position: absolute; left: 24px; top: 50%; width: 112px; height: 112px; z-index: 2;
  border-radius: 26px; object-fit: cover; transform: translate(0, -50%);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: left .7s cubic-bezier(.65,0,.2,1), transform .7s cubic-bezier(.34,1.4,.4,1), border-radius .7s, opacity .45s .5s, box-shadow .5s;
}
.community img.community-icon { width: 112px; height: 112px; border-radius: 26px; }
.community:hover img.community-icon { transform: translate(0, -50%); }
.community-cover {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  clip-path: inset(calc(50% - 56px) calc(100% - 136px) calc(50% - 56px) 24px round 26px);
  transition: clip-path .75s cubic-bezier(.65,0,.2,1) .12s;
}
.community .community-cover img { width: 100%; height: 100%; max-width: none; border-radius: 0; flex: none; object-fit: cover; transform: scale(1.18); filter: saturate(.9); transition: transform 1.1s cubic-bezier(.2,.7,.2,1) .1s; }
.community-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.15), transparent 40%, transparent 60%, rgba(0,0,0,.45)); }
.community-text, .community-join { position: relative; z-index: 3; }
.community-text { transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1), filter .35s; }
.community-count strong { font-size: clamp(1.75rem, 2.6vw, 2.375rem); font-stretch: 112%; letter-spacing: -0.02em; }
.community-join { transition: background-color .25s, color .25s, border-color .25s, transform .35s; }

@media (hover: hover) {
  /* 1) icon glides to the centre  2) the cover grows out from behind it  3) icon melts into the cover art */
  .community:hover { transform: translateY(-3px); }
  .community:hover .community-icon { left: calc(50% - 56px); transform: translate(0, -50%) scale(1.15) rotate(-4deg); border-radius: 50%; opacity: 0; box-shadow: 0 0 0 rgba(0,0,0,0); }
  .community:hover .community-cover { clip-path: inset(0 0 0 0 round 28px); }
  .community:hover .community-cover img { transform: scale(1.02); }
  .community:hover .community-cover img, .community .community-cover img { rotate: none; }
  .community:hover .community-text { opacity: 0; transform: translateX(28px); filter: blur(4px); }
  .community:hover .community-join { background: rgba(16,16,16,.55); color: var(--fg); border-color: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@media (max-width: 480px) {
  .community { padding-left: calc(16px + 76px + 16px); min-height: 0; }
  .community-icon, .community img.community-icon { left: 16px; width: 76px; height: 76px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .community:hover .community-icon { left: 24px; opacity: 1; } }

/* ---------- Park: shorter, fading up under the Discord card ---------- */
.discord-join { position: relative; z-index: 2; }
.park { height: clamp(120px, 12vw, 170px); margin-top: clamp(-56px, -3.5vw, -28px); z-index: 1;
  -webkit-mask-image: linear-gradient(transparent 0, #000 45%); mask-image: linear-gradient(transparent 0, #000 45%); }

/* Choreography (hover): icon glides to the centre → cover bursts out from behind it → icon melts into the cover art */
.community-cover { opacity: 0; clip-path: inset(calc(50% - 56px) calc(50% - 56px) round 26px);
  transition: clip-path .45s cubic-bezier(.65,0,.35,1), opacity .2s .25s; }
.community-cover img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.community-icon { transition: left .55s cubic-bezier(.65,0,.2,1), transform .55s cubic-bezier(.34,1.4,.4,1), border-radius .5s, opacity .25s, box-shadow .5s; }
.community-text { transition: opacity .3s .15s, transform .45s cubic-bezier(.2,.7,.2,1) .1s, filter .3s .15s; }
@media (hover: hover) {
  .community:hover .community-text { transition: opacity .2s, transform .4s cubic-bezier(.2,.7,.2,1), filter .2s; }
  .community:hover .community-icon { transform: translate(0, -50%) scale(1.12) rotate(-4deg); border-radius: 28px; opacity: 0;
    transition: left .5s cubic-bezier(.65,0,.2,1), transform .5s cubic-bezier(.34,1.4,.4,1), border-radius .5s, opacity .3s .8s, box-shadow .5s; }
  .community:hover .community-cover { opacity: 1; clip-path: inset(0 0 0 0 round 28px);
    transition: opacity .1s .42s, clip-path .7s cubic-bezier(.7,0,.2,1) .42s; }
  .community:hover .community-cover img { transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .42s; }
}

/* Rolling first word of "Played worldwide." */
.word-roll { display: inline-block; height: 1.12em; overflow: hidden; vertical-align: bottom; margin-bottom: -.06em; transition: width .7s cubic-bezier(.65,0,.2,1); }
.word-roll-track { display: flex; flex-direction: column; align-items: center; transition: transform .7s cubic-bezier(.7,-0.35,.25,1.35); }
.word-roll-track > span { display: block; height: 1.12em; line-height: 1.12em; white-space: nowrap; width: max-content; margin: 0 auto; }
.world-word { display: inline-block; }
@media (prefers-reduced-motion: reduce) { .word-roll-track { transition: none; } .word-roll { transition: none; } }
.word-roll { -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 91%, transparent); }
.word-roll { height: 1.24em; margin-bottom: -.12em; } .word-roll-track > span { height: 1.24em; line-height: 1.24em; } .word-roll { -webkit-mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(transparent, #000 7%, #000 93%, transparent); }

/* ---------- Live numbers as glass stat cards ---------- */
:root { --live: #3ddc84; }
.hero-live { border-top: 0; padding-top: 0; gap: 18px; }
.stat-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 34px);
  border-radius: 26px; border: 1px solid rgba(255,255,255,.1); overflow: hidden; isolation: isolate; text-align: left;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.07), transparent 55%), linear-gradient(180deg, #191919, #131313);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 60px rgba(0,0,0,.35);
  transition: border-color .3s, transform .45s cubic-bezier(.2,1.4,.4,1), box-shadow .4s;
}
.stat-card::before { /* light sweep that follows the card on hover */
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px 160px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.1), transparent 70%);
}
.stat-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 70px rgba(0,0,0,.5); }
.stat-card:hover::before { opacity: 1; }
.live-stat-right.stat-card { text-align: left; }
.stat-top { display: flex; align-items: center; gap: 10px; font-size: var(--text-s); font-weight: 600; color: var(--muted); }
.stat-ico { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.live-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 999px;
  font-size: var(--text-xs); font-weight: 750; color: var(--live); background: rgba(61,220,132,.1); border: 1px solid rgba(61,220,132,.28); }
.live-pill .live-dot { width: 7px; height: 7px; background: var(--live); box-shadow: 0 0 10px var(--live); }
.stat-card .live-value { font-size: clamp(2.75rem, 5.6vw, 5.5rem); }
/* silver digits: bright on top, cooling to grey */
.stat-card .odo-strip > span, .stat-card .odo-sep, .stat-card .live-value:not(:has(.odo)) {
  background: linear-gradient(180deg, #ffffff 15%, #d8d8d8 55%, #8e8e8e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-sub { display: flex; align-items: center; gap: 8px; font-size: var(--text-s); color: var(--muted); }
.stat-sub .live-arrow { margin-left: auto; width: 20px; height: 20px; opacity: .5; transform: none; }
.stat-card:hover .live-arrow { opacity: 1; transform: translate(2px, -2px); }
.live-stat-right.live-link .live-value, .world-community.live-link .live-value { transform-origin: left center; }
.world-community.stat-card { width: min(100%, 640px); margin: clamp(24px, 3vw, 40px) auto 0; }
.worldwide-head .world-community .live-value { font-size: clamp(2.75rem, 5.6vw, 5.5rem); }
@media (max-width: 600px) { .hero-live { grid-template-columns: 1fr; } .stat-card { border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .live-pill .live-dot::after { display: none; } }
.worldwide-head .world-community { text-align: left; align-items: stretch; }
.worldwide-head .world-community p { margin: 0; max-width: none; white-space: normal; }
.worldwide-head .world-community .stat-top, .worldwide-head .world-community .stat-sub { font-size: var(--text-s); color: var(--muted); }
.worldwide-head .world-community .stat-top { justify-content: flex-start; }
.worldwide-head .world-community .live-value { color: inherit; }

/* Stat cards, compact: big label on top, number underneath, nothing else */
.stat-card { gap: 6px; padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 30px) clamp(20px, 2.2vw, 28px); container-type: inline-size; }
.stat-top { gap: 12px; font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 780; font-stretch: 115%; letter-spacing: -0.01em; color: var(--fg); }
.worldwide-head .world-community .stat-top { font-size: clamp(1.125rem, 1.6vw, 1.5rem); color: var(--fg); }
.stat-ico { width: 1.15em; height: 1.15em; stroke-width: 1.8; }
.stat-top .live-arrow { margin-left: auto; width: .9em; height: .9em; opacity: .45; transform: none; }
.stat-card:hover .stat-top .live-arrow { opacity: 1; transform: translate(2px, -2px); }
.stat-card .live-value, .worldwide-head .world-community .live-value { font-size: min(clamp(2.5rem, 5.2vw, 5rem), 15cqi); }
.world-community.stat-card { width: min(100%, 560px); }

/* Desktop: narrower "Playing right now", wider "Total plays"; everything centred */
@media (min-width: 601px) { .hero-live { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.stat-card, .live-stat-right.stat-card, .worldwide-head .world-community { align-items: center; text-align: center; }
.stat-top, .worldwide-head .world-community .stat-top { justify-content: center; }
.stat-top .live-arrow { position: absolute; top: clamp(18px, 2vw, 26px); right: clamp(18px, 2.2vw, 28px); margin: 0; }
.stat-card .live-value, .live-stat-right.live-link .live-value, .world-community.live-link .live-value { transform-origin: center; }
.hero-live .live-line { justify-content: center; text-align: center; }

/* Hero stat cards: shared, fitted number size (set by site.js) and a 3D tilt toward the pointer */
.hero-live .stat-card .live-value { font-size: var(--stat-fs, min(clamp(2.5rem, 5.2vw, 5rem), 15cqi)); }
@media (min-width: 601px) { .hero-live { grid-template-columns: var(--stat-cols, minmax(0, 2fr) minmax(0, 3fr)); } }
.stat-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.stat-card:hover { transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.012); }
.stat-card.is-tilting { transition: border-color .3s, transform .18s ease-out, box-shadow .4s; }
.stat-card .stat-top > :not(.live-arrow) { translate: calc(var(--px, 0) * 8px) calc(var(--py, 0) * 5px); transition: translate .3s ease-out; }
.stat-card .live-value { translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 9px); transition: transform .45s cubic-bezier(.2,1.4,.4,1), filter .4s, translate .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .stat-card, .stat-card:hover { transform: none; } }

/* Trailer: the button under the new games' thumbnails, and the player that grows out of it */
.webgame-ants .game-media { position: relative; }
.trailer-btn {
  display: flex; align-items: center; gap: 12px; width: fit-content; margin: 16px auto 0; padding: 7px 20px 7px 7px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: var(--fg);
  font: inherit; font-size: var(--text-s, 1rem); font-weight: 760; font-stretch: 112%; letter-spacing: -0.005em; cursor: pointer;
  transition: background .25s, border-color .25s, transform .35s cubic-bezier(.2,1.4,.4,1);
}
.trailer-btn:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.trailer-btn:active { transform: scale(.96); transition-duration: .1s; }
.trailer-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.trailer-btn:disabled { opacity: .5; cursor: default; transform: none; }
.trailer-btn-ico { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fg); color: #101010; transition: transform .45s cubic-bezier(.2,1.4,.4,1); }
.trailer-btn-ico svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; transition: opacity .2s, transform .35s; }
.trailer-btn-ico::before, .trailer-btn-ico::after { content: ''; position: absolute; width: 14px; height: 2.4px; border-radius: 2px; background: currentColor; opacity: 0; transform: rotate(0deg) scale(.4); transition: opacity .2s, transform .4s cubic-bezier(.2,1.4,.4,1); }
.trailer-btn:hover .trailer-btn-ico { transform: scale(1.08) rotate(-8deg); }
.trailer-btn.is-open .trailer-btn-ico svg { opacity: 0; transform: scale(.3) rotate(90deg); }
.trailer-btn.is-open .trailer-btn-ico::before { opacity: 1; transform: rotate(45deg); }
.trailer-btn.is-open .trailer-btn-ico::after { opacity: 1; transform: rotate(-45deg); }
.trailer-btn:not(.is-open) .trailer-btn-ico { animation: trailer-ping 2.6s ease-out infinite; }
@keyframes trailer-ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }

.trailer-stage { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: 16px; background: #000; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.webgame-media .trailer-stage video { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; background: #000; border: 0; border-radius: 0; }
.trailer-close {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(16,16,16,.55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: #fff; cursor: pointer; opacity: 0; transform: scale(.5) rotate(-90deg);
  transition: opacity .25s, transform .45s cubic-bezier(.2,1.4,.4,1), background .2s;
}
.trailer-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.trailer-stage.is-ready .trailer-close { opacity: 1; transform: none; }
.trailer-close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg) scale(1.06); }
.trailer-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.game-media.is-playing .game-thumb { transform: none; }
.game-media .game-thumb img { transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s; }
.game-media.is-playing .game-thumb img { transform: scale(.96); filter: blur(6px) brightness(.5); }
.game-media .new-sticker { transition: scale .35s cubic-bezier(.2,1.4,.4,1), opacity .25s; }
.game-media.is-playing .new-sticker { scale: 0; opacity: 0; }

/* Careers: DM on Discord next to Apply by email */
.role-apply { gap: 12px 12px; }
.role-apply p { flex-basis: 100%; }
.discord-dm { display: inline-flex; align-items: center; gap: 10px; text-align: center; font-weight: 700; }
.discord-dm .brand-ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.discord-dm .copy-hint { display: none; }
.discord-dm[data-copied] { background: var(--fg); color: var(--bg); }
.btn.discord-dm { padding: 0 24px; border: 1.5px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); min-width: 12.5em; justify-content: center; align-items: center; }
.btn.discord-dm:hover { background: var(--fg); color: var(--bg); }
.btn.discord-dm[data-copied] { background: var(--fg); color: var(--bg); }
