@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/hub/fonts/chakra-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/hub/fonts/chakra-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/hub/fonts/chakra-700-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/hub/fonts/chakra-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0d14;
  --bg-2: #0e131d;
  --surface: #131a27;
  --surface-2: #1a2333;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #e9edf4;
  --muted: #95a1b7;
  --faint: #66728a;
  --brand-a: #ffc24d;
  --brand-b: #ff6a3d;
  --radius: 16px;
  --display: "Chakra Petch", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 106, 61, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 194, 77, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface-2);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
}
.brand-name span {
  margin-left: 0.35em;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name.small {
  font-size: 15px;
}
.topnav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.topnav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.topnav a:hover {
  color: var(--text);
  background: var(--surface);
}
.topnav a[aria-current="page"],
.topnav a.on {
  color: var(--text);
  background: var(--surface-2);
}

/* Language menu: a <details> dropdown, so it works without JavaScript */
.lang-menu {
  position: relative;
}
.lang-menu summary {
  display: block;
  list-style: none;
  cursor: pointer;
  font: 700 13px/1 var(--body);
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 8px 8px 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary::marker {
  content: "";
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-menu summary:hover,
.lang-menu[open] summary {
  border-color: var(--line-2);
}
.lang-menu img {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.lang-menu summary svg {
  width: 18px;
  height: 18px;
  fill: var(--muted);
  transition: transform 0.15s;
}
.lang-menu[open] summary svg {
  transform: rotate(180deg);
}
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.lang-menu li a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.lang-menu li a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.1);
}
/* Hero: the featured game */
.hero {
  position: relative;
  min-height: clamp(440px, 68vh, 640px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-link {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
}
.hero-link .hero-body {
  position: relative;
}
.hero-play {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 7vh, 72px);
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  color: #120c05;
  background: var(--accent, var(--brand-a));
  box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--accent, var(--brand-a)) 80%, transparent);
  transition: transform 0.2s;
}
.hero-play svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  margin-left: 4px;
}
.hero-link:hover .hero-play {
  transform: scale(1.08);
}
.hero-link:hover .hero-media img {
  filter: brightness(1.06);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
  animation: drift 24s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 13, 20, 0.94) 0%, rgba(10, 13, 20, 0.72) 38%, rgba(10, 13, 20, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 20, 0) 40%);
}
.hero-body {
  padding-top: 96px;
  padding-bottom: clamp(40px, 7vh, 72px);
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  width: 100%;
  margin: 0 auto;
}
.hero-copy {
  max-width: 560px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--brand-a));
  background: color-mix(in srgb, var(--accent, var(--brand-a)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--brand-a)) 35%, transparent);
  padding: 7px 10px;
  border-radius: 999px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.hero .hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 18px 0 8px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.hero .tagline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--accent, var(--brand-a));
  margin: 0 0 14px;
}
.hero .desc {
  color: #c9d1de;
  font-size: 16.5px;
  margin: 0 0 22px;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.btn-play {
  --a: var(--accent, var(--brand-a));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 17px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #120c05;
  background: linear-gradient(180deg, color-mix(in srgb, var(--a) 82%, #fff), var(--a));
  padding: 16px 26px 16px 22px;
  border-radius: 12px;
  box-shadow:
    0 10px 30px -8px color-mix(in srgb, var(--a) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-play:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 16px 36px -8px color-mix(in srgb, var(--a) 80%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-play:active {
  transform: translateY(0);
}
.hero-note {
  color: var(--muted);
  font-size: 14px;
}

/* Tags and platform icons */
.tag {
  font-size: 12.5px;
  font-weight: 600;
  color: #cfd6e2;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.platforms {
  display: inline-flex;
  gap: 6px;
  color: var(--muted);
}
.platforms svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Perks strip */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.perk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.perk svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: var(--brand-a);
  margin-top: 2px;
}
.perk strong {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.perk span {
  color: var(--muted);
  font-size: 14px;
}

/* Game catalogue */
.games {
  padding-top: 56px;
  padding-bottom: 72px;
  scroll-margin-top: 72px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h1,
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: 0.02em;
  margin: 0;
}
.category .lead {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 70ch;
  margin: -4px 0 26px;
}
.category {
  padding-top: 24px;
}
.count {
  color: var(--faint);
  font-weight: 600;
  font-size: 14px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.filters button {
  font: 600 13.5px/1 var(--body);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.filters button:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.filters button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.grid {
  display: grid;
  /* auto-fit: with only a couple of games the cards share the row instead of leaving an empty column */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 22px;
}
.card {
  --a: var(--accent, var(--brand-a));
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--a) 55%, transparent);
  box-shadow: 0 22px 44px -18px color-mix(in srgb, var(--a) 45%, transparent);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 13, 20, 0.9) 0%, rgba(10, 13, 20, 0.35) 38%, transparent 62%);
}
.card-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.card .card-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.card-overlay .platforms {
  color: #dfe5ee;
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font: 700 11px/1 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #120c05;
  background: var(--a);
  padding: 6px 8px;
  border-radius: 6px;
}
.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.card .tagline {
  color: var(--a);
  font-weight: 600;
  font-size: 14.5px;
  margin: 0;
}
.card .desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card h3 a,
.card h2 a {
  text-decoration: none;
}
.card h3 a:hover,
.card h2 a:hover {
  color: var(--a);
}
.card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.empty,
.noscript-list {
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 26px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  color: var(--faint);
  font-size: 14px;
}
.footer p {
  margin: 0;
}
.footer .copy {
  margin-left: auto;
}

@keyframes drift {
  from {
    transform: scale(1.03) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-1.2%, -1%);
  }
}

@media (max-width: 860px) {
  .perks {
    grid-template-columns: 1fr;
  }
  .hero::before {
    background:
      linear-gradient(0deg, var(--bg) 8%, rgba(10, 13, 20, 0.82) 48%, rgba(10, 13, 20, 0.15) 100%);
  }
  .hero {
    min-height: clamp(520px, 86vh, 680px);
  }
}

@media (max-width: 520px) {
  .topbar-in {
    gap: 4px 12px;
    min-height: 58px;
    flex-wrap: wrap;
  }
  .brand-name {
    font-size: 16px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .topnav {
    order: 3;
    width: 100%;
    margin: 0 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar {
    display: none;
  }
  .topnav a {
    white-space: nowrap;
  }
  .hero-body {
    padding-top: 72px;
  }
  .btn-play {
    width: 100%;
    justify-content: center;
  }
  .footer .copy {
    margin-left: 0;
  }
}

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

/* ---------------------------------------------------------------- buttons shared by cards and game pages */
.btn-play.small {
  font-size: 14px;
  padding: 10px 16px 10px 13px;
  border-radius: 10px;
}
.btn-play.small svg {
  width: 14px;
  height: 14px;
}
.btn-play.wide {
  width: 100%;
  justify-content: center;
}
/* ---------------------------------------------------------------- footer game links */
.footer-games {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-games a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.footer-games a:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- game pages */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 14px;
  color: var(--faint);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--text);
}
.crumbs [aria-current] {
  color: var(--text);
  font-weight: 600;
}
/* The game itself, in an iframe; as large as the window allows at 16:9 */
.player-wrap {
  padding-top: 4px;
}
.player {
  position: relative;
  width: min(100%, calc((100vh - 200px) * 16 / 9));
  min-width: min(100%, 640px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.player-start {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}
.player-start img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.player-start-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 18px/1 var(--display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #120c05;
  background: var(--accent, var(--brand-a));
  padding: 16px 26px 16px 22px;
  border-radius: 12px;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.6);
}
.player-start-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.player.is-live .player-start {
  display: none;
}
.player:fullscreen {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.player:-webkit-full-screen {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
/* Browsers without element fullscreen (iPhone): cover the window instead */
.player.is-max {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  min-width: 0;
  height: 100%;
  height: 100dvh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}
html.player-max {
  overflow: hidden;
}
.player-close {
  position: absolute;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  z-index: 2;
  font: 700 13px/1 var(--body);
  color: #fff;
  background: rgba(10, 13, 20, 0.8);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  width: min(100%, calc((100vh - 200px) * 16 / 9));
  min-width: min(100%, 640px);
  margin: 0 auto;
  padding: 14px 2px 0;
}
.player-title h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}
.player-title .tagline {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--accent, var(--brand-a));
}
.player-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-fs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 14px/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
}
.btn-fs svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.btn-fs:hover {
  border-color: var(--accent, var(--brand-a));
}

.game-text > .lead {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}
.game-text > .meta {
  margin-bottom: 8px;
}

/* Screenshots: one large picture with its caption; the strip below picks which */
.shots {
  margin-top: 32px;
}
.shot-main {
  margin: 0;
}
.shot-main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.shot-main figcaption {
  color: var(--muted);
  font-size: 15px;
  margin: 10px 0 14px;
  min-height: 1.5em;
}
.shot-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.shot-thumb {
  display: block;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.shot-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.shot-thumb:hover {
  opacity: 1;
}
.shot-thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--accent, var(--brand-a));
}
.shots h2,
.game-text h2,
.facts h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.game-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-top: 48px;
}
.game-text {
  max-width: 72ch;
}
.game-text h2 {
  margin-top: 40px;
}
.game-text h2:first-child {
  margin-top: 0;
}
.game-text h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  margin: 22px 0 10px;
  color: var(--muted);
}
.game-text p {
  color: #c9d1de;
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #c9d1de;
  line-height: 1.55;
}
.features svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  fill: var(--accent, var(--brand-a));
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  color: #c9d1de;
  line-height: 1.55;
  min-height: 30px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 700 14px/1 var(--display);
  color: #120c05;
  background: var(--accent, var(--brand-a));
}
.controls {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.controls th,
.controls td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.controls thead th {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--bg-2);
}
.controls tbody th {
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
  width: 34%;
}
.controls td {
  color: #c9d1de;
}
.controls tr:last-child th,
.controls tr:last-child td {
  border-bottom: 0;
}

.facts {
  position: sticky;
  top: 84px;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.facts h2 {
  font-size: 20px;
}
.facts dl {
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}
.facts dl div {
  display: grid;
  gap: 2px;
}
.facts dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}
.more {
  padding-top: 64px;
}

@media (max-width: 960px) {
  .game-main {
    grid-template-columns: 1fr;
  }
  .facts {
    position: static;
  }
}

@media (max-width: 520px) {
  .shot-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .hero-play {
    width: 60px;
    height: 60px;
    bottom: auto;
    top: 76px;
  }
  .hero-play svg {
    width: 24px;
    height: 24px;
  }
  .player,
  .player-bar {
    min-width: 0;
    width: 100%;
  }
}

/* ---------------------------------------------------------------- accounts (hub/account.js) */
.account-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 200px;
  font: 700 14px/1 var(--body);
  color: #120c05;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-a) 82%, #fff), var(--brand-a));
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.account-btn.signed-in {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 12px 4px 4px;
}
.account-btn.signed-in:hover {
  border-color: var(--line-2);
}
.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  font: 700 13px/1 var(--display);
  color: #120c05;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}
.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

.auth-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 26px 24px 22px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
}
.auth-dialog::backdrop {
  background: rgba(5, 7, 12, 0.75);
  backdrop-filter: blur(3px);
}
.dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.auth {
  display: grid;
  gap: 14px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.auth-tabs button {
  font: 700 14px/1 var(--body);
  color: var(--muted);
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
}
.auth-tabs button[aria-selected="true"] {
  color: var(--text);
  background: var(--surface-2);
}
.auth-msg:empty {
  display: none;
}
.google-slot {
  min-height: 44px;
  display: flex;
  justify-content: center;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--faint);
  font-size: 13px;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form h2,
.account-card h2 {
  font-family: var(--display);
  font-size: 20px;
  margin: 0;
}
.auth-form label,
.inline-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.auth-form small {
  font-weight: 500;
  color: var(--faint);
}
.auth-form input,
.inline-form input {
  font: 500 15px/1.2 var(--body);
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
}
.auth-form input:focus,
.inline-form input:focus {
  outline: 2px solid var(--brand-a);
  outline-offset: 1px;
  border-color: transparent;
}
.btn-primary,
.btn-secondary,
.btn-danger {
  font: 700 15px/1 var(--display);
  letter-spacing: 0.04em;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  color: #120c05;
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-a) 82%, #fff), var(--brand-a));
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.btn-secondary {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--line-2);
}
.btn-danger {
  color: #fff;
  background: #b4322a;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-a);
  font: 600 14px/1.4 var(--body);
  cursor: pointer;
  justify-self: start;
}
.alert {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.alert.ok {
  background: rgba(70, 184, 106, 0.12);
  border: 1px solid rgba(70, 184, 106, 0.4);
  color: #bfeccc;
}
.alert.error {
  background: rgba(226, 87, 76, 0.12);
  border: 1px solid rgba(226, 87, 76, 0.45);
  color: #ffd2cd;
}
.muted {
  color: var(--muted);
}

.account-main {
  max-width: 640px;
  padding-top: 32px;
  padding-bottom: 64px;
}
.account-main h1 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 20px;
}
#account-app {
  display: grid;
  gap: 18px;
}
#account-app > .auth {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.account-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.account-card.danger {
  border-color: rgba(226, 87, 76, 0.35);
}
.account-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-head strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
}
.badge-ok {
  color: #7fdc9b;
  font-weight: 700;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.inline-form label {
  flex: 1;
  min-width: 200px;
}
.account-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}
.account-facts dt {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.account-facts dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.account-card > .btn-secondary {
  justify-self: start;
}
@media (max-width: 520px) {
  .account-btn .account-name {
    display: none;
  }
  .account-btn.signed-in {
    padding: 3px;
  }
}
