/* Layout: one centred column over a dark studded backdrop with slow colour glows. The hero
   puts the name left and the avatar on a studded baseplate right, with the live scoreboard
   under both; then the games as equal cards, the communities, a footer.
   Dark only, on purpose: the game art and the glows read best on it. */
:root {
  color-scheme: dark;
  --bg: #07090f;
  --card: #0d1119;
  --glass: rgba(255, 255, 255, 0.04);
  --ink: #f1f3f8;
  --ink-2: #c4cad7;
  --muted: #8a93a6;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff6a1f;
  --live: #33d17a;
  --stud: rgba(255, 255, 255, 0.06);

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }

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

.num { font-variant-numeric: tabular-nums; }

.page {
  position: relative;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.inner {
  max-width: 1160px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .inner { padding-inline: 16px; }
}

/* ---------- Backdrop: baseplate studs and drifting glows ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
}

.glow-1 {
  top: -38vmax;
  left: -22vmax;
  background: radial-gradient(closest-side, rgba(255, 106, 31, 0.26), transparent);
  animation: drift-1 28s ease-in-out infinite alternate;
}

.glow-2 {
  top: 18vh;
  right: -34vmax;
  background: radial-gradient(closest-side, rgba(31, 191, 92, 0.16), transparent);
  animation: drift-2 34s ease-in-out infinite alternate;
}

.glow-3 {
  bottom: -42vmax;
  left: 10vw;
  background: radial-gradient(closest-side, rgba(84, 110, 255, 0.2), transparent);
  animation: drift-3 40s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(14vw, 10vh) scale(1.1); } }
@keyframes drift-2 { to { transform: translate(-16vw, 14vh) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(18vw, -12vh) scale(1.15); } }

.studs {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--stud) 0 2px, transparent 2.6px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

/* ---------- Name bar ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.me {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.me-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  object-fit: cover;
}

.me-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.verified {
  width: 20px;
  height: 20px;
  margin-left: -5px;
  flex: none;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: none;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

@media (min-width: 820px) {
  .nav-links { display: flex; }
}

.socials { display: flex; gap: 8px; }

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.social:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.08); }
.social svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

@media (max-width: 560px) {
  .social { width: 40px; padding: 0; justify-content: center; }
  .social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

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

.hero {
  display: grid;
  gap: 8px;
  padding-top: 24px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding-top: 40px;
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* A tilted square, like the Roblox mark. */
.tag-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(15deg);
  box-shadow: 0 0 12px rgba(255, 106, 31, 0.7);
}

h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.84;
}

.hi {
  display: block;
  font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* A game-logo title: white fading to warm orange, with a two-step orange edge under it.
   The edge is drop-shadow, not text-shadow, which would paint over a clipped gradient. */
.name {
  display: block;
  margin-top: 6px;
  padding-block: 0.04em 0.05em;
  font-size: clamp(88px, 12vw, 164px);
  letter-spacing: 0.005em;
  background: linear-gradient(180deg, #ffffff 18%, #ffe6d6 52%, #ffb27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 4px 0 #e8590f)
    drop-shadow(0 3px 0 #a33a08)
    drop-shadow(0 22px 34px rgba(255, 90, 20, 0.32));
}

.lede {
  margin-top: 22px;
  max-width: 38ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ---------- Chunky game buttons ---------- */

.btn3d {
  --c: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding-inline: 22px 26px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 72%, #ffffff) 0%, var(--c) 52%);
  box-shadow:
    0 5px 0 color-mix(in srgb, var(--c) 58%, #000000),
    0 16px 30px -12px color-mix(in srgb, var(--c) 75%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 2px 0 color-mix(in srgb, var(--c) 50%, #000000);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn3d:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 color-mix(in srgb, var(--c) 58%, #000000),
    0 22px 36px -12px color-mix(in srgb, var(--c) 85%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn3d:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--c) 58%, #000000),
    0 8px 16px -10px color-mix(in srgb, var(--c) 75%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* A light sweep across the button on hover. */
.btn3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.42) 50%, transparent 70%);
  transform: translateX(-110%);
}

.btn3d:hover::after {
  transform: translateX(110%);
  transition: transform 0.7s ease;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 45%, #000000);
  flex: none;
}

.btn-icon svg { width: 16px; height: 16px; fill: var(--c); margin-left: 2px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding-inline: 22px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--glass);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Avatar on a baseplate ---------- */

.scene {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 0.9;
  justify-self: center;
}

.scene-glow {
  position: absolute;
  inset: 4% 8% 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 31, 0.42), rgba(255, 106, 31, 0.08) 60%, transparent);
}

.floor {
  position: absolute;
  left: -35%;
  right: -35%;
  bottom: -2%;
  height: 50%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 3px, transparent 3.8px);
  background-size: 34px 34px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 46% 80% at 50% 70%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 46% 80% at 50% 70%, #000 20%, transparent 75%);
}

.float {
  position: absolute;
  width: 42%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.85);
}

.float-1 { top: 14%; left: -8%; rotate: -9deg; animation: bob 7s ease-in-out infinite; }
.float-2 { top: 30%; right: -9%; rotate: 8deg; animation: bob 8s ease-in-out -3s infinite; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* The avatar hovers over the floor; its shadow shrinks and fades as it rises. */
.avatar-shadow {
  position: absolute;
  left: 28%;
  right: 28%;
  bottom: 3%;
  height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  animation: shadow-float 5s ease-in-out infinite;
}

.avatar {
  position: absolute;
  left: 50%;
  bottom: 6%;
  height: 84%;
  width: auto;
  max-width: none;
  translate: -50% 0;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
  animation: avatar-float 5s ease-in-out infinite;
}

@keyframes avatar-float {
  0%, 100% { translate: -50% 0; }
  50% { translate: -50% -16px; }
}

@keyframes shadow-float {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.6; }
}

/* ---------- Live scoreboard ---------- */

.board {
  position: relative;
  display: grid;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

@media (min-width: 900px) {
  .board { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
}

.board-live {
  min-width: 0;
  padding: 24px clamp(20px, 3vw, 32px) 26px;
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding-inline: 9px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--live) 38%, transparent);
  background: color-mix(in srgb, var(--live) 12%, transparent);
  color: var(--live);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
}

/* Letter-spacing also pads after the last letter; take it back so the text sits centred. */
.live-pill [data-pill] { margin-right: -0.14em; }

.board-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.board-status {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.dot { box-shadow: 0 0 8px currentColor; }

/* A soft ping every few seconds, then a rest. */
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: ping 3.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  45%, 100% { transform: scale(3.2); opacity: 0; }
}

.game:nth-child(2) .dot::after { animation-delay: 1.1s; }

/* Saved numbers get no badge; the date beside them says how old they are. */
.is-snapshot .live-pill { display: none; }

/* Rolling counter: each digit is a 0-9 strip that slides to its value. */
.odo {
  display: flex;
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(88px, 11vw, 140px);
  line-height: 1;
  letter-spacing: -0.01em;
}

/* Clipped above and below only: a wide digit spinning through a narrow "1" window shows whole.
   The hidden sizer is the final digit and gives the window its width; the strip rolls over it. */
.odo-digit { position: relative; display: inline-block; height: 1em; clip-path: inset(0 -0.35em); }
.odo-sizer { display: block; height: 1em; visibility: hidden; }
.odo-strip { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.odo-strip span { display: block; height: 1em; text-align: center; }

.share {
  display: flex;
  gap: 4px;
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.share i {
  min-width: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--game) 70%, #ffffff), var(--game));
  transition: flex-grow 1s ease;
}

.share-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
}

.share-legend span { display: inline-flex; align-items: center; gap: 8px; }
.share-legend b { color: var(--ink); font-weight: 600; }

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--game);
}

/* Three even rows beside the counter: icon and label left, the number right. */
.board-stats {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .board-stats { border-top: 0; border-left: 1px solid var(--line); }
}

.board-stats div {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 16px clamp(18px, 2.4vw, 28px);
}

/* Each row is washed in its colour from the left. */
.board-stats div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 16%, transparent), transparent 60%);
  opacity: 0.7;
  transition: opacity 0.25s;
  pointer-events: none;
}

.board-stats div:hover::before { opacity: 1; }

.board-stats div + div { border-top: 1px solid var(--line); }

.board-stats dt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Same white-to-colour fade as the name, in each row's colour. */
.board-stats dd {
  position: relative;
  padding-block: 0.04em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 3.8vw, 50px);
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 35%, color-mix(in srgb, var(--tint) 45%, #ffffff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* A small chunky tile, like the Play buttons. */
.stat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 70%, #ffffff), var(--tint));
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--tint) 55%, #000000),
    0 12px 24px -10px color-mix(in srgb, var(--tint) 80%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #ffffff;
  flex: none;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

svg.line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */

.section { padding-top: 88px; scroll-margin-top: 16px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.count {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding-inline: 8px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink-2);
}

/* ---------- Game cards ---------- */

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 26px;
}

.game {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Each card glows in its game's colour from below. */
.game::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--game) 20%, transparent), transparent);
  pointer-events: none;
}

.game:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--game) 55%, transparent);
  box-shadow: 0 34px 80px -34px color-mix(in srgb, var(--game) 70%, transparent);
}

.shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  overflow: hidden;
}

/* The bottom fades into the card on the image itself (a mask, not an overlay on top).
   The image never animates on its own: zooming it while the card lifts drew it on a separate
   layer that landed a fraction of a pixel off the card, which flickered as a gap at its edge. */
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 52%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 52%, transparent 96%);
}

.chip {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.72);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.chip .dot { color: var(--live); }

.badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--game);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -6px var(--game);
}

.game-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  padding: 0 26px 26px;
}

/* The icon sits half over the thumbnail, like an app page. */
.title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  margin-top: -38px;
}

.game-icon {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 4px solid var(--card);
  background: #161b25;
  object-fit: cover;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.7);
  flex: none;
}

/* The name starts just under the thumbnail, clear of the game art's own text. */
.title-row > div { min-width: 0; padding-top: 50px; }

h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.by {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.tagline {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.stats div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
}

.stats div + div { border-left: 1px solid var(--line); }

.stats dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}

.liked { display: flex; flex-direction: column; gap: 7px; }
.liked-value { display: flex; align-items: center; gap: 7px; }
.liked-value svg { width: 22px; height: 22px; color: var(--live); stroke-width: 2.3; flex: none; }

.votes {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta span {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.game .btn3d {
  --c: var(--game);
  width: 100%;
  margin-top: auto;
  height: 60px;
  font-size: 25px;
}

/* ---------- Communities ---------- */

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 18px;
}

/* Each community card fades in from its game's colour behind the icon. */
.group {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 20px 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.group:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--game) 50%, transparent);
  box-shadow: 0 26px 60px -30px color-mix(in srgb, var(--game) 70%, transparent);
}

.group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 150% at 0% 50%, color-mix(in srgb, var(--game) 24%, transparent), transparent 75%);
  opacity: 0.8;
  transition: opacity 0.25s;
}

.group:hover::before { opacity: 1; }

.group-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: #161b25;
  object-fit: cover;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.8);
  flex: none;
}

.group-text { flex: 1 1 0; min-width: 0; }

.group-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.group-members {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.group-members svg { width: 16px; height: 16px; color: var(--game); }

.group-home {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}

.btn3d.join {
  --c: var(--game);
  height: 46px;
  padding-inline: 22px;
  border-radius: 14px;
  font-size: 20px;
  flex: none;
}

@media (max-width: 480px) {
  .group { flex-wrap: wrap; }
  .btn3d.join { width: 100%; }
}

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

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 96px;
  padding-block: 28px 44px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Copied message ---------- */

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #151a24;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  animation: toast-in 0.25s ease-out;
}

.toast[hidden] { display: none; }
.toast svg { width: 20px; height: 20px; fill: #5865f2; flex: none; }
.toast-value { color: var(--ink); font-weight: 700; user-select: all; }

@keyframes toast-in {
  from { opacity: 0; translate: -50% 10px; }
}

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