/* xcud Games — the studio front page (template overrides/home.html). An experiment on branch `studio`, 9/28. */
.xg {
  --xg-sea: #3fb7b6;
  --xg-sea-deep: #1f8a8c;
  --xg-grass: #7cb342;
  --xg-ink: var(--md-default-fg-color);
  --xg-ink-2: var(--md-default-fg-color--light);
  --xg-line: var(--md-default-fg-color--lightest);
  --xg-card: color-mix(in srgb, var(--md-default-bg-color) 88%, #fff 4%);
  display: grid;
  gap: 3.2rem;
  max-width: 60rem;
  margin: 0 auto;
  padding-block: 1.2rem 3rem;
}
.md-typeset .xg h2 { font: 600 1.6rem/1.15 Fredoka, "Baloo 2", system-ui, sans-serif; margin: 0 0 .5rem; color: var(--xg-ink); letter-spacing: 0; }
.md-typeset .xg p { margin: 0; }

/* the hero: the cow and the name */
.xg-hero { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 2rem; align-items: center; }
.xg-cow { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .35)); transform-origin: 50% 80%; animation: xg-chew 2.6s ease-in-out infinite; }
@keyframes xg-chew { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.4deg) translateY(1px); } 75% { transform: rotate(1.4deg) translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .xg-cow { animation: none; } }
.md-typeset .xg-word { padding-bottom: .12em; font: 700 clamp(3rem, 9vw, 5.2rem)/1.05 Fredoka, "Baloo 2", system-ui, sans-serif; letter-spacing: -.01em; color: var(--xg-ink); }
.xg-games { font-weight: 500; color: var(--xg-sea); }
.md-typeset .xg-say { margin-top: 1rem; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--xg-ink-2); }
.xg-say em { font-style: normal; color: var(--xg-grass); font-weight: 700; }
.md-typeset .xg-lede { margin-top: 1rem; font-size: 1.05rem; line-height: 1.5; max-width: 30rem; color: var(--xg-ink); }
@media screen and (max-width: 44.9375em) { .xg-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .xg-cow { width: 55%; } .md-typeset .xg-lede { margin-inline: auto; } }

/* the games */
.xg-games-list { display: grid; gap: 1.6rem; }
.xg-game { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.6rem; align-items: center; padding: 1.2rem; border-radius: 14px; background: var(--xg-card); border: 1px solid var(--xg-line); }
.xg-shot { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b1216; }
.xg-shot img, .xg-shot svg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
a.xg-shot:not(.xg-phone):hover img { transform: scale(1.03); }
.xg-phone { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, #2a1f3d, #10202a); }
.xg-shot.xg-phone img { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); width: auto; height: 92%; object-fit: contain; border-radius: 10px; box-shadow: 0 8px 22px rgba(0, 0, 0, .5); }
.md-typeset .xg-kicker { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--xg-sea); margin-bottom: .3rem; }
.md-typeset .xg-about p { color: var(--xg-ink-2); line-height: 1.55; }
.md-typeset .xg .xg-actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.md-typeset a.xg-btn { display: inline-block; padding: .55rem 1.1rem; border-radius: 999px; background: var(--xg-sea-deep); color: #fff; font-weight: 700; }
.md-typeset a.xg-btn:hover { background: var(--xg-sea); color: #062022; }
.md-typeset a.xg-btn:focus-visible { outline: 3px solid var(--xg-grass); outline-offset: 3px; }
.xg-fine { font-size: .72rem; color: var(--xg-ink-2); }
/* live counts (home.html's script fills them from each game's /net/stats/public) */
.md-typeset .xg-live { margin-top: 1rem; display: grid; gap: .55rem; font-size: .74rem; font-variant-numeric: tabular-nums; }
.xg-tiles { display: flex; flex-wrap: wrap; gap: .4rem; }
.xg-tile { display: grid; min-width: 4.6rem; padding: .35rem .6rem; border-radius: 8px; background: color-mix(in srgb, var(--xg-sea) 9%, transparent); border: 1px solid color-mix(in srgb, var(--xg-sea) 22%, transparent); }
.xg-tile b { font: 600 1.05rem/1.1 Fredoka, "Baloo 2", system-ui, sans-serif; color: var(--xg-ink); }
.xg-tile small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--xg-ink-2); }
.md-typeset .xg-live .xg-more { color: var(--xg-ink-2); line-height: 1.5; }
.xg-now { display: inline-flex; align-items: center; gap: .45em; color: var(--xg-grass); font-weight: 700; }
.xg-now i { width: .55em; height: .55em; border-radius: 50%; background: var(--xg-grass); box-shadow: 0 0 0 0 color-mix(in srgb, var(--xg-grass) 60%, transparent); animation: xg-pulse 1.8s ease-out infinite; }
.xg-now.is-quiet { color: var(--xg-ink-2); font-weight: 600; }
@keyframes xg-pulse { 70% { box-shadow: 0 0 0 .5em transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .xg-now i { animation: none; } }
.md-typeset .xg-total { margin-top: .6rem; font-size: .78rem; color: var(--xg-ink-2); font-variant-numeric: tabular-nums; }
@media screen and (max-width: 44.9375em) { .xg-game { grid-template-columns: 1fr; } }

/* artists */
.xg-creators { padding: 1.4rem 1.4rem 1.2rem; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--xg-grass) 60%, transparent); }
.md-typeset .xg-creators p { color: var(--xg-ink-2); max-width: 40rem; line-height: 1.55; }
.md-typeset .xg-contact { margin-top: .8rem; font-size: .8rem; color: var(--xg-ink); user-select: all; }
.md-typeset .xg-foot p { font-size: .75rem; color: var(--xg-ink-2); }
