/* ==========================================================================
   JIGGLE games — base stylesheet
   Pure white background, six brand colours, bordered white cards.
   No fixed widths. Mobile → tablet → desktop.
   ========================================================================== */

:root {
  /* brand six */
  --c-yellow: #ffc61e;
  --c-orange: #ff8a1f;
  --c-coral: #ff6a5c;
  --c-berry: #e82e80;
  --c-grape: #a87be6;
  --c-aqua: #29c4b4;

  /* neutrals */
  --c-bg: #ffffff;
  --c-text: #2b1b4a;
  --c-muted: #6b5b8a;
  --c-border: #ede8f5;
  --c-border-strong: #ded5ee;
  --c-surface-soft: #faf8fd;

  /* active theme (overridden by [data-theme]) */
  --accent: var(--c-yellow);
  --accent-soft: #fff3d0;
  --accent-text: #2b1b4a;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow-card: 0 1px 2px rgba(43, 27, 74, 0.04), 0 6px 18px rgba(43, 27, 74, 0.05);
  --shadow-card-hover: 0 2px 4px rgba(43, 27, 74, 0.06), 0 14px 30px rgba(43, 27, 74, 0.1);

  --header-h: 60px;
  --rail-w: 72px;
  --rail-open-w: 224px;
  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- themes */

[data-theme="CREAM"] {
  --accent: #ffc61e;
  --accent-soft: #fff6dc;
  --accent-text: #2b1b4a;
}
[data-theme="YELLOW"] {
  --accent: #ffc61e;
  --accent-soft: #fff3d0;
  --accent-text: #2b1b4a;
}
[data-theme="ORANGE"] {
  --accent: #ff8a1f;
  --accent-soft: #ffeddd;
  --accent-text: #2b1b4a;
}
[data-theme="CORAL"] {
  --accent: #ff6a5c;
  --accent-soft: #ffe7e4;
  --accent-text: #2b1b4a;
}
[data-theme="BERRY"] {
  --accent: #e82e80;
  --accent-soft: #fde3ee;
  --accent-text: #fff8f2;
}
[data-theme="GRAPE"] {
  --accent: #a87be6;
  --accent-soft: #f0e8fb;
  --accent-text: #2b1b4a;
}
[data-theme="AQUA"] {
  --accent: #29c4b4;
  --accent-soft: #dff7f4;
  --accent-text: #2b1b4a;
}

/* ---------------------------------------------------------------- reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg,
canvas,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 800;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -120px;
  background: var(--c-text);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(36px, 6vw, 68px);
}

/* the top bar is fixed, so anchored section headings need breathing room */
[id] {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.section--tight {
  padding-block: clamp(24px, 4vw, 40px);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.section-head h2 {
  font-size: clamp(22px, 3.2vw, 32px);
}

.section-head .meta {
  color: var(--c-muted);
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--c-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.icon-btn:hover {
  background: var(--c-surface-soft);
  border-color: var(--c-border);
}

.ico {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.topbar__menu .ico--close {
  display: none;
}
.nav-open .topbar__menu .ico--close {
  display: block;
}
.nav-open .topbar__menu .ico--menu {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-lockup .mark {
  flex: 0 0 auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .mark {
  transform: rotate(-10deg) scale(1.06);
}

.brand-text {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1;
}

.brand-sub {
  color: var(--c-muted);
  font-weight: 700;
  font-size: 13.5px;
  margin-left: 5px;
  letter-spacing: 0;
}

.footer-wordmark {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- search */

.search {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 520px;
  margin-inline: auto;
}

.search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 13px;
  border-radius: 999px;
  background: var(--c-surface-soft);
  border: 1.5px solid var(--c-border);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.search__field:focus-within {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search__ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--c-muted);
}

.search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--c-text);
  padding: 0;
  outline: none;
}

.search__input::placeholder {
  color: var(--c-muted);
}

.search__input::-webkit-search-cancel-button,
.search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  display: none;
}

.search__panel {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 8px);
  z-index: 120;
  max-height: min(62vh, 420px);
  overflow-y: auto;
  /* the panel is only as wide as the field it hangs from; long game names or
     subtitles must clip inside it instead of pushing a horizontal scrollbar
     onto a phone screen */
  overflow-x: hidden;
  padding: 8px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(43, 27, 74, 0.16);
}

.search__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

/* On phones the header search field is only ~200px wide, so a panel hanging
   off it cannot show a title plus subtitle. Detach it and let it span the
   viewport instead — same as the big players do. */
@media (max-width: 720px) {
  .search__panel {
    position: fixed;
    inset-inline: 12px;
    top: calc(var(--header-h) + 6px);
    max-height: min(60vh, 380px);
    border-radius: 14px;
  }
}

.search__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
}

.search__item:hover,
.search__item:focus-visible {
  background: var(--accent-soft);
}

.search__thumb {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--thumb, var(--accent));
}

.search__meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.search__name {
  display: block;
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.25;
}

.search__sub {
  display: block;
  font-size: 12.5px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search__empty {
  padding: 14px 10px;
  font-size: 14px;
  color: var(--c-muted);
}

/* ---------------------------------------------------------------- language */

.lang-picker {
  position: relative;
  flex: 0 0 auto;
  margin-inline-start: 2px;
}

.lang-picker > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--c-border-strong);
  background: #fff;
  color: var(--c-text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 700;
  min-height: 42px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-picker > summary::-webkit-details-marker {
  display: none;
}

.lang-picker > summary:hover,
.lang-picker[open] > summary {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lang-picker__globe {
  width: 17px;
  height: 17px;
  color: var(--c-muted);
}

.lang-picker__caret {
  font-size: 10px;
  line-height: 1;
  color: var(--c-muted);
}

.lang-picker__menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 130;
  display: grid;
  gap: 2px;
  min-width: 200px;
  max-height: min(68vh, 520px);
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(43, 27, 74, 0.14);
}

.lang-picker__menu a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--c-text);
  white-space: nowrap;
}

.lang-picker__menu a:hover {
  background: var(--accent-soft);
}

.lang-picker__menu a.is-current {
  background: var(--accent-soft);
  font-weight: 800;
}

.footer-langs {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
}

.footer-langs a {
  color: var(--c-muted);
}

.footer-langs a.is-current {
  color: var(--c-text);
  font-weight: 800;
}

/* ---------------------------------------------------------------- sidebar */

.sidebar {
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  inset-inline-start: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-inline-end: 1px solid var(--c-border);
  transition: width 0.16s ease-in-out, transform 0.22s ease, box-shadow 0.16s ease;
}

.sidebar__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 8px 14px;
  display: flex;
  flex-direction: column;
}

.sidebar__foot {
  flex: 0 0 auto;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--c-border);
}

.sidebar__ver {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-muted);
}

.sidebar__title {
  margin: 12px 12px 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.sidebar__sep {
  height: 1px;
  background: var(--c-border);
  margin: 8px 12px 6px;
}

.snav-list {
  display: grid;
  gap: 3px;
}

.snav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--c-text);
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 42px;
  transition: background 0.14s ease;
}

.snav:hover {
  background: var(--c-surface-soft);
}

.snav--active {
  background: var(--accent-soft);
}

.snav--active .snav__label {
  font-weight: 900;
}

.snav__ico {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--c-muted);
}

.snav--active .snav__ico {
  color: var(--c-text);
}

.snav__ico .ico {
  width: 21px;
  height: 21px;
}

.snav__ico--dot::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--dot, var(--accent));
}

.snav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 80;
  background: rgba(43, 27, 74, 0.34);
  backdrop-filter: blur(1px);
}

/* ---------------------------------------------------------------- shell widths */

body {
  padding-top: var(--header-h);
}

/* the running-game page is its own full-viewport shell, no top bar or rail */
body.play-body {
  padding-top: 0;
  padding-inline-start: 0;
}

@media (min-width: 1024px) {
  body {
    padding-inline-start: var(--rail-w);
  }

  .sidebar {
    width: var(--rail-w);
  }

  /* collapsed rail: icons centred in the 72px column */
  .snav {
    justify-content: center;
  }

  .sidebar:hover .snav,
  .sidebar:focus-within .snav,
  .nav-open .sidebar .snav {
    justify-content: flex-start;
  }

  .sidebar:hover,
  .sidebar:focus-within,
  .nav-open .sidebar {
    width: var(--rail-open-w);
    box-shadow: 14px 0 40px rgba(43, 27, 74, 0.09);
  }

  /* collapsed rail: icons only */
  .snav__label,
  .sidebar__title,
  .sidebar__ver {
    display: none;
  }

  .sidebar:hover .snav__label,
  .sidebar:focus-within .snav__label,
  .nav-open .sidebar .snav__label {
    display: block;
  }

  .sidebar:hover .sidebar__title,
  .sidebar:focus-within .sidebar__title,
  .nav-open .sidebar .sidebar__title {
    display: block;
  }

  .sidebar:hover .sidebar__ver,
  .sidebar:focus-within .sidebar__ver,
  .nav-open .sidebar .sidebar__ver {
    display: inline;
  }
}

@media (max-width: 1023.98px) {
  .sidebar {
    width: min(86vw, 320px);
    transform: translateX(-102%);
    box-shadow: 0 0 60px rgba(43, 27, 74, 0.2);
  }

  .nav-open .sidebar {
    transform: none;
  }

  [dir="rtl"] .sidebar {
    transform: translateX(102%);
  }

  [dir="rtl"].nav-open .sidebar {
    transform: none;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-height: 48px;
  background: #2b1b4a;
  color: #fff;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
  box-shadow: 0 6px 16px rgba(43, 27, 74, 0.12);
}

.btn:hover {
  transform: translateY(-1px);
  background: #3b2860;
  box-shadow: 0 10px 22px rgba(43, 27, 74, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: #fff;
  color: var(--c-text);
  border: 1.5px solid var(--c-border-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--c-text);
  background: var(--c-surface-soft);
  box-shadow: none;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 14px;
  min-height: 40px;
}

.arw {
  flex: 0 0 auto;
  display: block;
  transition: transform 0.18s ease;
}

.arw--btn {
  margin-left: 8px;
}

.btn:hover .arw--btn {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- hero */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* ---------------------------------------------------------------- chips */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--c-border-strong);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-muted);
  min-height: 42px;
  transition: all 0.15s ease;
}

.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, var(--accent));
  flex: 0 0 auto;
}

.chip:hover {
  border-color: var(--chip-color, var(--accent));
  color: var(--c-text);
}

.chip[aria-pressed="true"] {
  background: var(--c-text);
  border-color: var(--c-text);
  color: #fff;
}

.chip[aria-pressed="true"]::after {
  content: "×";
  font-size: 15px;
  opacity: 0.7;
  margin-left: 2px;
}

/* ---------------------------------------------------------------- grid + cards */

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
}

.grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  will-change: transform;
}

.card:hover,
.card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--c-border-strong);
}

.card[hidden] {
  display: none;
}

.card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--card-color, var(--accent));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__glyph {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-text);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.card__tag--new {
  left: auto;
  right: 12px;
  background: var(--c-text);
  color: #fff;
}

.card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__title {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card__desc {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.card__foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__play {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__play .arw {
  transition: transform 0.18s ease;
}

.card:hover .card__play .arw {
  transform: translateX(4px);
}

.card__dur {
  font-size: 12.5px;
  color: var(--c-muted);
  font-weight: 600;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card--retired .card__cover {
  filter: grayscale(1);
  opacity: 0.6;
}

/* ---------------------------------------------------------------- submit banner */

.submit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 40px);
  flex-wrap: wrap;
  background: var(--accent-soft);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 36px);
}

.submit-banner h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 8px;
}

.submit-banner p {
  color: var(--c-muted);
  max-width: 56ch;
  font-size: 15px;
}

/* ---------------------------------------------------------------- inline ad */

.ad-inline {
  display: block;
  position: relative;
  border: 1.5px dashed var(--c-border-strong);
  border-radius: var(--radius);
  background: var(--c-surface-soft);
  padding: 18px;
  min-height: 96px;
}

.ad-label {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  border: 1px solid var(--c-border-strong);
  border-radius: 4px;
  padding: 1px 5px;
  background: #fff;
}

/* ---------------------------------------------------------------- game detail */

.game-hero {
  border-bottom: 1px solid var(--c-border);
  padding-block: clamp(26px, 4vw, 48px);
}

.game-hero__inner {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 860px) {
  .game-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
  }
}

.game-hero__cover {
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--c-border);
  aspect-ratio: 16 / 10;
  background: var(--card-color);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.game-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.game-hero__tagline {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--c-muted);
  margin-top: 12px;
  max-width: 46ch;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--c-muted);
}

.game-meta strong {
  color: var(--c-text);
  font-weight: 800;
}

.game-hero__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.best-score {
  font-size: 14px;
  color: var(--c-muted);
}

.best-score strong {
  font-size: 20px;
  color: var(--c-text);
  font-weight: 900;
  margin-left: 6px;
}

.detail-grid {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

.prose h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-bottom: 12px;
}

.prose h3 {
  font-size: 17px;
  margin-top: 26px;
  margin-bottom: 8px;
}

.prose p {
  color: var(--c-muted);
  margin-bottom: 12px;
}

.prose ol {
  counter-reset: step;
  display: grid;
  gap: 10px;
}

.prose ol li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: var(--c-muted);
  min-height: 30px;
}

.prose ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.side-card {
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.side-card + .side-card {
  margin-top: 16px;
}

.side-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 10px;
}

.side-card p {
  font-size: 14.5px;
  color: var(--c-text);
}

.facts {
  display: grid;
  gap: 13px;
}

.fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--c-border);
  padding-top: 13px;
}

.fact:first-child {
  border-top: none;
  padding-top: 0;
}

.fact-k {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.fact-v {
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.ad-sidebar {
  min-height: 250px;
}

/* the hero already repeats category / duration / best score on narrow screens */
@media (max-width: 600px) {
  .detail-side {
    display: none;
  }
}

/* ---------------------------------------------------------------- play page */

.play-body {
  margin: 0;
  background: #0e0a18;
  overflow: hidden;
}

.play-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.play-stage {
  position: relative;
  flex: 1;
  min-height: 0;
}

.play-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  z-index: 2;
  padding: 24px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.play-overlay[hidden] {
  display: none;
}

.play-overlay .spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--c-border-strong);
  border-top-color: var(--c-coral);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.play-overlay p {
  color: var(--c-muted);
  font-size: 15px;
}

.play-overlay .btn {
  margin-top: 16px;
}

.play-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  z-index: 5;
  pointer-events: none;
}

.play-bar a,
.play-bar button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-text);
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.play-bar .title {
  margin-left: auto;
  pointer-events: none;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--c-text);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(43, 27, 74, 0.1);
}

/* ---------------------------------------------------------------- legal pages */

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(32px, 5vw, 60px);
}

.legal h1 {
  font-size: clamp(30px, 5vw, 46px);
  margin-bottom: 10px;
}

.legal .updated {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.legal section {
  padding-block: 22px;
  border-top: 1px solid var(--c-border);
}

.legal section:first-of-type {
  border-top: none;
}

.legal h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  margin-bottom: 12px;
}

.legal p {
  color: var(--c-muted);
  margin-bottom: 12px;
  font-size: 15.5px;
  line-height: 1.75;
}

.legal p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- 404 */

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 60px;
}

.notfound h1 {
  font-size: clamp(30px, 6vw, 52px);
  margin-bottom: 14px;
}

.notfound p {
  color: var(--c-muted);
  max-width: 46ch;
  margin: 0 auto 26px;
}

.notfound .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--c-border);
  padding-block: clamp(32px, 5vw, 56px) 28px;
  margin-top: clamp(30px, 6vw, 60px);
}

.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  }
}

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--c-muted);
  font-size: 14px;
  max-width: 34ch;
}

.footer-col h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--c-text);
}

.footer-col a:hover {
  color: var(--c-muted);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--c-muted);
}

.age-badge {
  border: 1px solid var(--c-border-strong);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 12px;
}

/* ---------------------------------------------------------------- cookie bar */

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(660px, calc(100% - 32px));
  background: #fff;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(43, 27, 74, 0.16);
  padding: 16px 18px;
  z-index: 90;
  display: none;
}

.cookie-bar[data-open="true"] {
  display: block;
}

.cookie-bar h2 {
  font-size: 15px;
  margin-bottom: 6px;
}

.cookie-bar p {
  font-size: 13.5px;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-actions .btn {
  padding: 9px 18px;
  font-size: 14px;
  min-height: 40px;
}

.cookie-actions a {
  font-size: 13px;
  color: var(--c-muted);
  text-decoration: underline;
}

/* ---------------------------------------------------------------- interstitial ad */

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 12, 36, 0.62);
}

.ad-modal[data-open="true"] {
  display: flex;
}

.ad-modal__card {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 22px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.ad-modal__label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  border: 1px solid var(--c-border-strong);
  border-radius: 4px;
  padding: 1px 6px;
}

.ad-modal__media {
  background: var(--c-surface-soft);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--c-muted);
  font-size: 14px;
}

.ad-modal__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 62vh;
  object-fit: contain;
}

.ad-modal__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.ad-close {
  border: none;
  border-radius: 999px;
  background: var(--c-text);
  color: #fff;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 14px;
  min-height: 44px;
  min-width: 120px;
}

.ad-close[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- responsive */

/* phones: header must fit on one line */
@media (max-width: 719px) {
  :root {
    --header-h: 58px;
  }

  .brand-lockup {
    gap: 7px;
  }

  .brand-lockup .mark {
    width: 26px;
    height: 26px;
  }

  .brand-text {
    font-size: 18px;
  }

  .brand-sub {
    font-size: 12px;
    margin-left: 4px;
  }

  /* phones: keep the mark, drop the wordmark so the search box keeps room */
  .brand-text {
    display: none;
  }

  .lang-picker__label {
    display: none;
  }

  .lang-picker > summary {
    padding: 7px 10px;
    font-size: 13px;
    min-height: 40px;
  }

  .lang-picker__menu {
    min-width: 180px;
  }

  .topbar {
    gap: 4px;
    padding-inline: 6px;
  }

  .search {
    max-width: none;
  }

  .search__field {
    height: 40px;
    padding-inline: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

/* very narrow phones (iPhone SE, 320px) */
@media (max-width: 359px) {
  .brand-lockup .mark {
    width: 22px;
    height: 22px;
  }
  .brand-text {
    font-size: 16px;
  }
  .brand-sub {
    display: none;
  }
  .lang-picker > summary {
    padding: 6px 10px;
    font-size: 12px;
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* tablets: two columns */
@media (min-width: 600px) and (max-width: 899px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* desktop: three or more */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------- rtl (ar) */

[dir="rtl"] .lang-picker__menu {
  text-align: right;
}

[dir="rtl"] .sidebar {
  border-inline-end: none;
  border-inline-start: 1px solid var(--c-border);
}

[dir="rtl"] .card__tag {
  left: auto;
  right: 12px;
}

[dir="rtl"] .card__tag--new {
  right: auto;
  left: 12px;
}

[dir="rtl"] .arw {
  transform: scaleX(-1);
}

[dir="rtl"] .fact-v {
  text-align: left;
}

@media (max-width: 899px) {
  [dir="rtl"] .lang-picker {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }
}

/* v1.2.1: the play bar heading is a real h1 (page outline) */
.play-bar h1.title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* v1.3.0: FAQ, operator line, 404 language row, related games */
.footer-operator {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--c-muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}
.faq__item {
  border: 1px solid var(--c-line, #ECE6F5);
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
}
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 30px 14px 0;
  font-weight: 800;
  font-size: 15.5px;
  color: var(--c-text);
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  color: var(--c-muted);
  font-size: 18px;
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2013"; }
.faq__item summary:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 4px;
  border-radius: 10px;
}
.faq__body { padding: 0 0 14px; }
.faq__body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 70ch;
}

.nf-langs__title {
  margin-top: 44px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.nf-langs {
  margin-top: 10px;
  justify-content: flex-start;
}

/* ==========================================================================
   v1.4.0 — sidebar legibility + house ad
   ========================================================================== */

/* Every entry owns a colour now: the icon sits in a tinted tile, so a visitor
   can tell "hot" from "new" before reading anything. */
.snav {
  padding: 6px 10px;
  gap: 11px;
  border-radius: 12px;
  min-height: 38px;
}
.snav__ico {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #F4F0FA;
  background: color-mix(in srgb, var(--nav-c, #A87BE6) 16%, #fff);
  color: var(--nav-c, #2B1B4A);
  transition: background .15s ease, color .15s ease;
}
.snav__ico .ico {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}
.snav:hover .snav__ico {
  background: var(--nav-c, #2B1B4A);
  color: #fff;
}
.snav--active {
  background: #F7F3FD;
}
.snav--active .snav__ico {
  background: var(--nav-c, #2B1B4A);
  color: #fff;
}
.snav--active .snav__ico .ico {
  stroke-width: 2.4;
}

/* Categories: one per row, same anatomy as the main entries. Two labels on one
   line read as a single confusing block — a portal rail is a vertical list. */
.snav-list--cats {
  gap: 2px;
}
.snav--cat {
  padding: 5px 10px;
  gap: 11px;
  border-radius: 11px;
  min-height: 36px;
}
.snav--cat .snav__ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #F4F0FA;
  background: color-mix(in srgb, var(--nav-c, #A87BE6) 16%, #fff);
}
.snav--cat .snav__ico .ico {
  width: 17px;
  height: 17px;
  stroke-width: 2.1;
}
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico {
  background: var(--nav-c, #2B1B4A);
  color: #fff;
}
.snav--cat .snav__label {
  font-size: 13.5px;
  font-weight: 600;
}

/* "more categories" — same summary shape as Legal, with a chevron that turns */
.snav-more--cats > summary {
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  color: #8B7BA8;
}
.snav__chev {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  background: #F7F4FD;
  position: relative;
}
.snav__chev::before,
.snav__chev::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  background: #8B7BA8;
  border-radius: 2px;
  translate: -50% -50%;
}
.snav__chev::before { width: 9px; height: 2px; }
.snav__chev::after { width: 2px; height: 9px; transition: opacity .15s ease; }
.snav-more--cats[open] .snav__chev::after { opacity: 0; }
.snav-more--cats[open] > summary { background: var(--c-surface-soft); }
.snav-more--cats > ul { margin-top: 2px; }
/* the three legal pages fold away — they are still in the footer for crawlers */
.snav-more {
  margin-top: 2px;
}
.snav-more > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 10px;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
  color: var(--c-muted);
  font-weight: 700;
  font-size: 14px;
}
.snav-more > summary::-webkit-details-marker { display: none; }
.snav-more > summary .snav__ico {
  width: 30px;
  height: 30px;
  background: #F4F0FA;
  color: #6B5B8A;
}
.snav-more[open] > summary { background: var(--c-surface-soft); }
.snav-more > ul {
  margin-top: 2px;
  padding-inline-start: 10px;
}
.snav-more > summary:focus-visible {
  outline: 2px solid var(--c-text);
  outline-offset: 2px;
}

/* ---- house ad: the creative carries the picture, the page carries the words */
.ad-modal__card {
  width: min(720px, 100%);
}
.ad-modal__media {
  background: #fff;
  position: relative;
}
.ad-modal__link {
  position: relative;
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.ad-modal__cap {
  position: absolute;
  inset-inline-start: 5%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 54%;
  display: grid;
  gap: 6px;
  text-align: start;
}
.ad-modal__cap strong {
  font-size: clamp(17px, 3.2vw, 29px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.ad-modal__cap span {
  font-size: clamp(11.5px, 1.8vw, 15px);
  line-height: 1.5;
  color: var(--c-muted);
}
.ad-modal__cap em {
  justify-self: start;
  margin-top: 4px;
  font-style: normal;
  background: #29C4B4;
  color: #06302C;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 6px 0 #1E9E92;
}

/* the picture itself moves: a slow float plus a light sweep, no video needed */
.ad-modal__card.is-animated .ad-modal__link img {
  animation: adFloat 4s ease-in-out infinite alternate;
}
.ad-modal__card.is-animated .ad-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .6) 50%, transparent 58%);
  background-size: 260% 100%;
  animation: adShine 4.5s ease-in-out infinite;
}
.ad-modal__card.is-animated .ad-modal__cap em {
  animation: adPulse 2.6s ease-in-out infinite;
}
@keyframes adFloat {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(-7px) rotate(-0.4deg); }
}
@keyframes adShine {
  0%, 55% { background-position: 140% 0; }
  100% { background-position: -40% 0; }
}
@keyframes adPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .ad-modal__card.is-animated .ad-modal__link img,
  .ad-modal__card.is-animated .ad-modal__media::after,
  .ad-modal__card.is-animated .ad-modal__cap em { animation: none; }
}
@media (max-width: 560px) {
  .ad-modal__cap {
    position: static;
    max-width: none;
    transform: none;
    padding: 14px 4px 0;
  }
  .ad-modal__card { padding: 34px 16px 16px; }
}

}

/* RTL: the creative is drawn with the art on the right and room for copy on the
   left. Mirroring the picture keeps that relationship in Arabic instead of
   dumping right-aligned text onto the left half. */
[dir="rtl"] .ad-modal__link img { scale: -1 1; } /* scale, not transform: the float animation owns transform */
[dir="rtl"] .ad-modal__cap { text-align: start; }

/* ==========================================================================
   v1.4.3 — /developers/ : the submission page
   ========================================================================== */

.dev-hero {
  padding: 56px 0 34px;
  background:
    radial-gradient(800px 320px at 12% -10%, #FFF4DA 0%, transparent 62%),
    radial-gradient(700px 300px at 88% 0%, #EAFBF8 0%, transparent 60%),
    #fff;
  border-bottom: 1px solid var(--c-border);
}
.dev-eyebrow {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #E82E80;
}
.dev-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 18ch;
}
.dev-lede {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--c-muted);
}
.dev-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.dev-value {
  padding: 16px 18px;
  border-radius: 16px;
  background: #FBF8FE;
  border: 1px solid #EFE8FA;
}
.dev-value b { display: block; font-size: 15.5px; margin-bottom: 5px; }
.dev-value span { font-size: 13.5px; line-height: 1.55; color: var(--c-muted); }

.dev-lead {
  margin: 0 0 18px;
  max-width: 66ch;
  color: var(--c-muted);
  line-height: 1.6;
}
.dev-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.dev-rule {
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-top: 3px solid #FFC61E;
}
.dev-rule:nth-child(2) { border-top-color: #FF6A5C; }
.dev-rule:nth-child(3) { border-top-color: #29C4B4; }
.dev-rule:nth-child(4) { border-top-color: #A87BE6; }
.dev-rule h3 { margin: 0 0 7px; font-size: 15.5px; letter-spacing: -.01em; }
.dev-rule p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--c-muted); }

.dev-spec {
  padding: 24px 26px;
  border-radius: 18px;
  background: #2B1B4A;
  color: #fff;
}
.dev-spec h2 { margin: 0 0 10px; font-size: 19px; color: #fff; }
.dev-spec p { margin: 0; font-size: 13.8px; line-height: 1.7; color: rgba(255,255,255,.8); max-width: 84ch; }
.dev-spec__note {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #FFD977 !important;
  font-weight: 600;
}

.dev-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dev-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 18px 14px 52px;
  border-radius: 14px;
  background: #FBF8FE;
  border: 1px solid #EFE8FA;
  font-size: 14px;
  line-height: 1.6;
}
.dev-steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  translate: 0 -50%;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #29C4B4;
  color: #06302C;
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.dev-form {
  max-width: 760px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 10px 30px rgba(43, 27, 74, .05);
}
.dev-modes {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: #F5F1FB;
  margin-bottom: 18px;
}
.dev-mode {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  font-size: 13.5px;
  color: #6B5B8A;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.dev-mode.is-on {
  background: #fff;
  color: var(--c-text);
  box-shadow: 0 1px 3px rgba(43, 27, 74, .12);
}
.dev-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dev-form .field { display: grid; gap: 6px; margin-bottom: 12px; }
.dev-form .field > span { font-size: 12.5px; font-weight: 800; color: #6B5B8A; }
.dev-form .field small { font-size: 11.5px; line-height: 1.5; color: #8B7BA8; }
.dev-form input[type="text"],
.dev-form input[type="url"],
.dev-form input[type="email"],
.dev-form input:not([type]),
.dev-form select {
  font: inherit;
  font-size: 14px;
  padding: 11px 13px;
  border-radius: 11px;
  border: 1px solid var(--c-border-strong);
  background: #fff;
  color: var(--c-text);
  width: 100%;
}
.dev-form input:focus,
.dev-form select:focus {
  outline: none;
  border-color: #29C4B4;
  box-shadow: 0 0 0 3px rgba(41, 196, 180, .18);
}
.dev-form input[type="file"] {
  font-size: 13px;
  padding: 9px 0;
}
.dev-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 6px;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--c-muted);
}
.dev-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: #29C4B4; flex: none; }
.dev-err {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #FFF2F7;
  border: 1px solid #F7D3E3;
  color: #B3165A;
  font-size: 13px;
  font-weight: 700;
}
.dev-submit {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.dev-legal { font-size: 11.5px; color: #8B7BA8; max-width: 40ch; line-height: 1.5; }
.dev-done {
  max-width: 760px;
  padding: 26px;
  border-radius: 20px;
  background: #EAFBF8;
  border: 1px solid #BFEEE7;
}
.dev-done b { display: block; font-size: 20px; margin-bottom: 8px; }
.dev-done p { margin: 0 0 16px; font-size: 14px; line-height: 1.65; color: #2F6B64; }
.dev-foot { margin: 18px 0 0; font-size: 13px; color: var(--c-muted); }

@media (max-width: 560px) {
  .dev-row { grid-template-columns: 1fr; }
  .dev-form { padding: 16px; }
  .dev-spec { padding: 18px; }
  .dev-hero { padding: 34px 0 26px; }
}

/* ============================================================ v1.5.0 — game-portal polish */

/* --- cards: screenshots behave like a game portal tile --- */
.card__cover img { transition: transform 0.38s cubic-bezier(0.2, 0.7, 0.3, 1); }
.card:hover .card__cover img,
.card:focus-within .card__cover img { transform: scale(1.045); }

.card__playbtn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(20, 8, 40, 0) 42%, rgba(20, 8, 40, 0.46));
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.card__playbtn::before {
  content: "";
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 27, 74, 0.3);
  transform: scale(0.84);
  transition: transform 0.18s ease;
}
.card__playbtn svg {
  position: relative;
  color: var(--c-text);
  transform: translateX(2px) scale(0.84);
  transition: transform 0.18s ease;
}
.card:hover .card__playbtn,
.card:focus-within .card__playbtn { opacity: 1; }
.card:hover .card__playbtn::before,
.card:focus-within .card__playbtn::before { transform: scale(1); }
.card:hover .card__playbtn svg,
.card:focus-within .card__playbtn svg { transform: translateX(2px) scale(1); }

.card__tag--cat { top: auto; bottom: 10px; left: 10px; }

/* --- denser catalogue grid --- */
.grid { gap: clamp(12px, 1.6vw, 18px); }
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- genre tiles --- */
.cat-tiles {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 152px), 1fr));
}
.cat-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.cat-tile__ic {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tile) 16%, #fff);
  color: var(--tile);
}
.cat-tile__ic svg { width: 17px; height: 17px; }
.cat-tile__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-tile__n { font-size: 12px; font-weight: 800; color: var(--c-muted); }
.cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--tile);
  box-shadow: 0 12px 26px rgba(43, 27, 74, 0.09);
}
.cat-tile.is-soon { opacity: 0.42; cursor: default; }

/* --- recently played rail --- */
.section--rail { padding-block: clamp(18px, 2.6vw, 28px); }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 232px);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail .card { scroll-snap-align: start; }

/* --- inline ad: a strip, not a billboard --- */
.ad-inline img { max-height: 190px; object-fit: cover; width: 100%; }
#promo .ad-inline { max-width: 860px; margin-inline: auto; }

/* --- FAQ tighter --- */
#faq .section-head h2 { font-size: clamp(19px, 2.4vw, 25px); }
.faq__item summary { padding-block: 12px; }

/* --- mobile bottom tab bar --- */
.bottombar { display: none; }
@media (max-width: 900px) {
  .bottombar {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--c-border);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  }
  .bottombar__item {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: var(--c-muted);
    font: inherit;
    font-size: 10.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
  }
  .bottombar__item svg { width: 21px; height: 21px; }
  .bottombar__item[aria-current="page"],
  .bottombar__item:active { color: var(--accent-ink, #0F7A6C); background: #EAF8F5; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .site-footer { margin-bottom: 0; }
}

/* --- catalogue rows --- */
.rows { display: grid; gap: 10px; }
.grow {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 9px 16px 9px 9px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: 14px;
  color: var(--c-text);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.grow:hover,
.grow:focus-visible {
  transform: translateY(-2px);
  border-color: var(--card-color, var(--c-border-strong));
  box-shadow: 0 12px 26px rgba(43, 27, 74, 0.09);
}
.grow__thumb { display: block; border-radius: 10px; overflow: hidden; background: var(--card-color); }
.grow__thumb img { display: block; width: 132px; height: 76px; object-fit: cover; }
.grow__main { display: grid; gap: 3px; min-width: 0; }
.grow__name { font-weight: 800; font-size: 15.5px; letter-spacing: -0.01em; }
.grow__sub {
  font-size: 13px;
  color: var(--c-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.grow__dur { font-size: 12.5px; font-weight: 700; color: var(--c-muted); white-space: nowrap; }
.grow__play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--card-color, var(--accent));
  padding: 8px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .grow { grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 8px 10px 8px 8px; }
  .grow__thumb img { width: 96px; height: 60px; }
  .grow__dur { display: none; }
  .grow__play { padding: 7px 11px; }
  .grow__sub { display: none; }
}

/* ad slot placeholder keeps the strip from reading as an empty grey box */
.ad-inline {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--c-border);
  background: #FBF9FE;
  min-height: 120px;
  display: grid;
  place-items: center;
}
.ad-inline a { display: block; width: 100%; }
.ad-inline .ad-label { position: absolute; top: 10px; left: 12px; z-index: 2; }

/* --- detail hero: cover doubles as the play button --- */
.game-hero__cover { position: relative; display: block; overflow: hidden; border-radius: 20px; }
.game-hero__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
a.game-hero__cover:hover img { transform: scale(1.03); }
.game-hero__cover img { transition: transform 0.35s ease; }
.game-hero__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(20, 10, 40, 0.06), rgba(20, 10, 40, 0.2));
  opacity: 0;
  transition: opacity 0.2s ease;
}
a.game-hero__cover:hover .game-hero__shade { opacity: 1; }
.game-hero__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.game-hero__play .game-hero__tri {
  width: 0;
  height: 0;
  border-left: 26px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 8px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.game-hero__play {
  background: transparent;
}
.game-hero__play::before {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(43, 27, 74, 0.28);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.game-hero__cover:hover .game-hero__play::before,
a.game-hero__cover:focus-visible .game-hero__play::before { opacity: 1; transform: scale(1); }
a.game-hero__cover:hover .game-hero__tri,
a.game-hero__cover:focus-visible .game-hero__tri { opacity: 1; transform: scale(1); }
@media (max-width: 700px) {
  .game-hero__play::before { width: 70px; height: 70px; opacity: 1; transform: scale(1); }
  .game-hero__play .game-hero__tri { opacity: 1; transform: scale(1); border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; margin-left: 6px; }
  .game-hero__shade { opacity: 0.5; }
}

/* keep the fixed tab bar from covering the last row of the footer */
@media (max-width: 900px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ==========================================================================
   v1.6.0 — floating rail + 3D icon tiles
   The rail used to be a full-height white column pasted to the edge: it read
   like a browser sidebar and stole 72px of the page forever. Now it is a
   floating card, so the page breathes and the rail travels with the scroll.
   ========================================================================== */

:root { --rail-w: 88px; }

.sidebar {
  top: calc(var(--header-h) + 12px);
  bottom: 12px;
  inset-inline-start: 12px;
  width: 66px;
  border: 1px solid rgba(43, 27, 74, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 46px -20px rgba(43, 27, 74, 0.34), 0 4px 12px rgba(43, 27, 74, 0.06);
  border-inline-end: 1px solid rgba(43, 27, 74, 0.06);
  overflow: hidden;
  overscroll-behavior: contain;
}

.sidebar__scroll { padding: 12px 7px 10px; }
.sidebar__foot { border-top: 1px solid rgba(43, 27, 74, 0.06); padding: 8px 10px 10px; }
.sidebar__title { margin: 10px 10px 4px; }
.sidebar__sep { margin: 7px 8px 5px; }

/* every entry is a little 3D pill: gradient face, top highlight, bottom shade */
.snav__ico,
.snav:hover .snav__ico,
.snav--active .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--nav-c, #a87be6) 68%, #fff) 0%,
      var(--nav-c, #a87be6) 52%,
      color-mix(in srgb, var(--nav-c, #a87be6) 82%, #000) 100%
    );
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -3px 5px rgba(0, 0, 0, 0.22),
    0 4px 9px -2px color-mix(in srgb, var(--nav-c, #a87be6) 55%, transparent);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

/* the glossy cap that sells the 3D look */
.snav__ico::after {
  content: "";
  position: absolute;
  inset: 2px 4px auto 4px;
  height: 11px;
  border-radius: 999px 999px 46% 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.snav__ico .ico,
.snav--active .snav__ico .ico {
  width: 20px;
  height: 20px;
  stroke: #fff;
  stroke-width: 2.3;
  position: relative;
  z-index: 1;
}

.snav:hover .snav__ico {
  transform: translateY(-1px) scale(1.05);
  filter: saturate(1.12) brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 5px rgba(0, 0, 0, 0.2),
    0 8px 16px -4px color-mix(in srgb, var(--nav-c, #a87be6) 62%, transparent);
}

.snav--cat .snav__ico {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}
.snav--cat .snav__ico .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.snav--cat .snav__ico::after { inset: 1px 3px auto 3px; height: 9px; }

@media (min-width: 1024px) {
  .sidebar {
    width: 66px;
  }
  /* opens to the right, never pushes the grid around */
  .sidebar:hover,
  .sidebar:focus-within,
  .nav-open .sidebar {
    width: 226px;
    box-shadow: 0 30px 60px -22px rgba(43, 27, 74, 0.44), 0 6px 16px rgba(43, 27, 74, 0.08);
  }
  .snav { justify-content: center; }
  .sidebar:hover .snav,
  .sidebar:focus-within .snav,
  .nav-open .sidebar .snav { justify-content: flex-start; }
}

@media (max-width: 1023.98px) {
  .sidebar {
    top: calc(var(--header-h) + 10px);
    bottom: 10px;
    inset-inline-start: 10px;
    width: min(86vw, 320px);
    border-radius: 20px;
    transform: translateX(calc(-100% - 18px));
    box-shadow: 0 30px 70px rgba(43, 27, 74, 0.28);
  }
  .nav-open .sidebar { transform: none; }
  [dir="rtl"] .sidebar { transform: translateX(calc(100% + 18px)); }
  [dir="rtl"].nav-open .sidebar { transform: none; }
}

/* v1.6.0 refinements: keep the card as tall as its content, give the icons real
   thickness, and stop the translucent panel from bleeding page text through. */
.sidebar {
  bottom: auto;
  height: auto;
  max-height: calc(100vh - var(--header-h) - 24px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
}

.snav-list { gap: 5px; }
.snav-list--cats { gap: 3px; }

.snav__ico,
.snav:hover .snav__ico,
.snav--active .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--nav-c, #a87be6) 84%, #fff) 0%,
      var(--nav-c, #a87be6) 46%,
      color-mix(in srgb, var(--nav-c, #a87be6) 74%, #000) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.16),
    0 3px 0 color-mix(in srgb, var(--nav-c, #a87be6) 62%, #241536),
    0 7px 12px -3px color-mix(in srgb, var(--nav-c, #a87be6) 45%, transparent);
}

.snav:hover .snav__ico {
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -2px 3px rgba(0, 0, 0, 0.14),
    0 4px 0 color-mix(in srgb, var(--nav-c, #a87be6) 58%, #241536),
    0 10px 16px -4px color-mix(in srgb, var(--nav-c, #a87be6) 55%, transparent);
}

.snav:active .snav__ico {
  transform: translateY(2px) scale(0.99);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 2px 5px rgba(0, 0, 0, 0.25),
    0 1px 0 color-mix(in srgb, var(--nav-c, #a87be6) 62%, #241536);
}

@media (min-width: 1024px) {
  .sidebar:hover,
  .sidebar:focus-within,
  .nav-open .sidebar { width: 214px; }
}

@media (max-width: 1023.98px) {
  .sidebar {
    height: auto;
    max-height: none;
    bottom: 10px;
  }
}

/* category tiles need their own selector: .snav--cat .snav__ico outranks .snav__ico */
.snav--cat .snav__ico {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--nav-c, #a87be6) 84%, #fff) 0%,
      var(--nav-c, #a87be6) 46%,
      color-mix(in srgb, var(--nav-c, #a87be6) 74%, #000) 100%
    );
  color: #fff;
}

/* collapsed rail: no footer strip, so the card ends where the last icon ends */
@media (min-width: 1024px) {
  .sidebar:not(:hover):not(:focus-within) .sidebar__foot { display: none; }
  .sidebar:not(:hover):not(:focus-within) .sidebar__scroll { padding-bottom: 10px; }
}
@media (max-width: 1023.98px) {
  .sidebar {
    bottom: auto;
    height: auto;
    max-height: calc(100vh - var(--header-h) - 20px);
  }
}

/* ==========================================================================
   v1.6.4 — one icon size, one lighting model, a palette that holds together
   Three different tile sizes (36 / 30 / 30) and a near-white Legal tile made
   the rail look assembled from spare parts. Every entry is now 34×34 with the
   same gradient face, the same 3px thickness and the same drop shadow.
   ========================================================================== */

.snav__ico,
.snav--cat .snav__ico,
.snav-more > summary .snav__ico,
.snav-more--cats > summary .snav__ico {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--nav-c, #6e5c94) 82%, #fff) 0%,
      var(--nav-c, #6e5c94) 46%,
      color-mix(in srgb, var(--nav-c, #6e5c94) 72%, #000) 100%
    );
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 3px rgba(0, 0, 0, 0.16),
    0 3px 0 color-mix(in srgb, var(--nav-c, #6e5c94) 62%, #241536),
    0 8px 14px -4px color-mix(in srgb, var(--nav-c, #6e5c94) 44%, transparent);
}

.snav__ico .ico,
.snav--cat .snav__ico .ico,
.snav-more > summary .snav__ico .ico,
.snav-more--cats > summary .snav__ico .ico {
  width: 19px;
  height: 19px;
  stroke: #fff;
  stroke-width: 2.3;
}

.snav__ico::after,
.snav--cat .snav__ico::after,
.snav-more > summary .snav__ico::after {
  inset: 2px 4px auto 4px;
  height: 11px;
}

/* categories stay a touch deeper so they read as a second tier, not as five
   more top-level tabs competing with Home / New / Hot */
.snav--cat .snav__ico {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--nav-c, #a87be6) 74%, #fff) 0%,
      color-mix(in srgb, var(--nav-c, #a87be6) 94%, #000) 52%,
      color-mix(in srgb, var(--nav-c, #a87be6) 66%, #000) 100%
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -2px 3px rgba(0, 0, 0, 0.18),
    0 3px 0 color-mix(in srgb, var(--nav-c, #a87be6) 52%, #241536),
    0 7px 12px -4px color-mix(in srgb, var(--nav-c, #a87be6) 38%, transparent);
}

/* room between the tiles so each one reads as a separate physical button */
.snav-list { gap: 7px; }
.snav-list--cats { gap: 4px; }
.snav--cat { min-height: 44px; }
.snav-more > summary { padding: 5px 10px; }

/* a hair darker card, so the coloured tiles pop off it */
.sidebar {
  background: #fdfcff;
  box-shadow: 0 26px 50px -22px rgba(43, 27, 74, 0.4), 0 8px 18px rgba(43, 27, 74, 0.07);
}

/* v1.6.5 — more air, deeper lift: the tiles now sit on a soft lavender card
   instead of near-white, so the shadow under each one is actually visible. */
.snav-list { gap: 9px; }
.snav-list--cats { gap: 5px; }

.snav__ico,
.snav--cat .snav__ico {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -2px 3px rgba(0, 0, 0, 0.16),
    0 4px 0 color-mix(in srgb, var(--nav-c, #6e5c94) 58%, #241536),
    0 10px 18px -4px color-mix(in srgb, var(--nav-c, #6e5c94) 40%, rgba(43, 27, 74, 0.25));
}

.sidebar {
  background: linear-gradient(180deg, #fdfcff 0%, #f7f3fd 100%);
  box-shadow:
    0 30px 60px -22px rgba(43, 27, 74, 0.45),
    0 10px 22px rgba(43, 27, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* v1.6.6 — one colour family for the category shelf.
   Ten different hues in a 66px rail read as confetti. Categories keep their
   own colour on cards and chips, but in the rail they are one calm violet so
   the four top-level tabs stay the only coloured things. */
.snav--cat .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico {
  background: linear-gradient(165deg, #bda6f2 0%, #9b7be8 48%, #7b5bd0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -2px 3px rgba(0, 0, 0, 0.16),
    0 4px 0 #6b4cbc,
    0 10px 18px -4px rgba(123, 91, 208, 0.45);
}
.snav--cat:hover .snav__ico {
  background: linear-gradient(165deg, #c8b4f5 0%, #a98ceb 48%, #8565d6 100%);
}

/* categories one step lighter than "All games", so the rail reads as
   primary tabs first, shelf second — same family, different weight */
.snav--cat .snav__ico,
.snav--cat.snav--active .snav__ico {
  background: linear-gradient(165deg, #d9cdf7 0%, #bca8ee 48%, #a189e2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px rgba(0, 0, 0, 0.12),
    0 4px 0 #9078cc,
    0 10px 18px -4px rgba(144, 120, 204, 0.4);
}
.snav--cat:hover .snav__ico {
  background: linear-gradient(165deg, #e4dbfa 0%, #c9b8f2 48%, #ab95e6 100%);
}


/* ==========================================================================
   v1.9.0 — dark rail
   The tiles were the problem: ten coloured blocks with their own lighting read
   as a toy shelf, and at this size nobody could scan them. CrazyGames solves it
   the opposite way — a dark column, one small glyph per row, one colour for all
   of them, white label to the right. Identity comes from the shape, not the hue.
   ========================================================================== */

.sidebar {
  background: linear-gradient(180deg, #1e1729 0%, #151020 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 26px 54px -24px rgba(16, 7, 34, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar__scroll { padding: 10px 8px 10px; }
.sidebar__title {
  color: rgba(255, 255, 255, 0.4);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  margin: 15px 12px 6px;
}
.sidebar__sep { background: rgba(255, 255, 255, 0.09); margin: 9px 12px 7px; }
.sidebar__foot { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sidebar__ver { color: rgba(255, 255, 255, 0.32); }

.snav-list { gap: 2px; }
.snav-list--cats { gap: 1px; }

.snav {
  gap: 11px;
  padding: 7px 10px;
  min-height: 38px;
  border-radius: 9px;
  color: #f3effc;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.13s ease;
}
.snav:hover { background: rgba(255, 255, 255, 0.07); }
.snav--active {
  background: rgba(76, 141, 255, 0.16);
  box-shadow: inset 3px 0 0 #4c8dff;
}
.snav--active .snav__label { color: #fff; font-weight: 800; }
.snav--cat { min-height: 37px; }

/* one colour for every glyph — the shape carries the meaning */
.snav__ico,
.snav:hover .snav__ico,
.snav:active .snav__ico,
.snav--active .snav__ico,
.snav--cat .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico,
.snav-more > summary .snav__ico,
.snav-more--cats > summary .snav__ico {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #6fa8ff;
  transform: none;
}

.snav:hover .snav__ico,
.snav-more > summary:hover .snav__ico { color: #9cc4ff; }
.snav--active .snav__ico,
.snav--cat.snav--active .snav__ico { color: #c2daff; }

.snav__ico::after,
.snav--cat .snav__ico::after,
.snav-more > summary .snav__ico::after { display: none; }

.snav__ico .ico,
.snav--cat .snav__ico .ico,
.snav-more > summary .snav__ico .ico,
.snav-more--cats > summary .snav__ico .ico {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
}

/* the fold-out rows sit on the same dark ground, not on a white summary bar */
.snav-more > summary,
.snav-more--cats > summary { color: #cfc7e2; border-radius: 9px; }
.snav-more[open] > summary,
.snav-more--cats[open] > summary { background: rgba(255, 255, 255, 0.06); }
.snav-more > summary:hover,
.snav-more--cats > summary:hover { background: rgba(255, 255, 255, 0.07); }

@media (max-width: 1023.98px) {
  .sidebar-backdrop { background: rgba(12, 6, 24, 0.55); }
}

/* ==========================================================================
   v1.9.1 — rail back on the page colour
   The dark column came from CrazyGames, but this site is built on white and a
   black slab beside it reads as a different product. Same slim row structure,
   same single icon colour — just white ground, ink labels, and a blue that is
   deep enough to survive on white.
   ========================================================================== */

.sidebar {
  background: #ffffff;
  border: 1px solid #f0ebfa;
  box-shadow:
    0 22px 44px -26px rgba(43, 27, 74, 0.34),
    0 6px 16px -8px rgba(43, 27, 74, 0.12);
}

.sidebar__title { color: #8b7fa8; }
.sidebar__sep { background: #f0ebfa; }
.sidebar__foot { border-top: 1px solid #f0ebfa; }
.sidebar__ver { color: #a79fbc; }

.snav { color: #2b1b4a; }
.snav:hover { background: #f7f3ff; }
.snav--active {
  background: #eaf2fe;
  box-shadow: inset 3px 0 0 #2f7be8;
}
.snav--active .snav__label { color: #17457f; }

.snav__ico,
.snav:hover .snav__ico,
.snav:active .snav__ico,
.snav--active .snav__ico,
.snav--cat .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico,
.snav-more > summary .snav__ico,
.snav-more--cats > summary .snav__ico {
  color: #2f7be8;
}

.snav:hover .snav__ico,
.snav-more > summary:hover .snav__ico { color: #1b62c9; }
.snav--active .snav__ico,
.snav--cat.snav--active .snav__ico { color: #17457f; }

.snav-more > summary,
.snav-more--cats > summary { color: #6b5b8a; }
.snav-more[open] > summary,
.snav-more--cats[open] > summary { background: #f7f3ff; }
.snav-more > summary:hover,
.snav-more--cats > summary:hover { background: #f7f3ff; }

@media (max-width: 1023.98px) {
  .sidebar-backdrop { background: rgba(43, 27, 74, 0.34); }
}

/* v1.9.2 — the page now opens on games, not on a slogan */
#hot { padding-top: clamp(20px, 3vw, 32px); }
.section-head__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 800;
  color: #7a5fd0;
  white-space: nowrap;
}
.section-head__more .arw { width: 15px; height: 15px; }
.section-head__more:hover { color: #2b1b4a; }

/* the new-games rail gets bigger cards than the compact recently-played one */
#new .rail { grid-auto-columns: minmax(220px, 268px); gap: 16px; }

/* v1.9.3 — rail cards stretch to fill on desktop; menu glyphs take their row
   colour (an older rule was still forcing white strokes, which is why the
   icons looked washed out on white). */
#new .rail { grid-auto-columns: minmax(220px, 1fr); }

.snav__ico .ico,
.snav--cat .snav__ico .ico,
.snav-more > summary .snav__ico .ico,
.snav-more--cats > summary .snav__ico .ico {
  stroke: currentColor !important;
  stroke-width: 1.95;
}

/* v1.9.4 — the current row is marked by colour, not by a box.
   Two problems were showing on the first item: the active background and the
   inset bar drew a second frame inside the card, and hovering the row swapped
   the blue for the purple hover tint. */
.snav--active,
.snav--active:hover,
.snav--active:focus-visible,
.snav--active:active {
  background: transparent;
  box-shadow: none;
  color: #17457f;
}
.snav--active:hover { background: rgba(47, 123, 232, 0.07); }
.snav--active .snav__label { color: #17457f; font-weight: 800; }

/* ==========================================================================
   v2.0.0 — rail colours follow the logo, horizontal shelves that say there is
   more to the right, and a sidebar that reacts while you scroll.
   ========================================================================== */

.snav__ico,
.snav:hover .snav__ico,
.snav:active .snav__ico,
.snav--active .snav__ico,
.snav--cat .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico,
.snav-more > summary .snav__ico,
.snav-more--cats > summary .snav__ico {
  color: var(--nav-c, #8b5ce0);
}
.snav:hover .snav__ico,
.snav-more > summary:hover .snav__ico { filter: brightness(1.06); }
.snav--active .snav__ico,
.snav--cat.snav--active .snav__ico { filter: brightness(0.8) saturate(1.12); }
.snav--active .snav__label,
.snav--active:hover .snav__label { color: #2b1b4a; }

/* the card lifts a hair while the page moves, so it reads as floating rather
   than pinned */
.sidebar { will-change: transform, box-shadow; }
.sidebar.is-scrolling {
  transform: translateY(-3px);
  box-shadow:
    0 30px 54px -24px rgba(43, 27, 74, 0.42),
    0 10px 20px -10px rgba(43, 27, 74, 0.16);
}

/* --- horizontal shelf with an edge that hints at more --- */
.shelf { position: relative; }
.shelf::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 82%);
  border-radius: 0 10px 10px 0;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.shelf[data-more="1"]::after { opacity: 1; }
.shelf[data-more="1"] .rail { padding-right: 52px; }

.shelf__next {
  position: absolute;
  top: 50%;
  right: -6px;
  translate: 0 -50%;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #2b1b4a;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(43, 27, 74, 0.35), 0 0 0 1px #eee8f8;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.shelf__next .ico { width: 18px; height: 18px; }
.shelf[data-more="1"] .shelf__next { display: grid; }
.shelf__next:hover { transform: scale(1.06); box-shadow: 0 10px 22px -8px rgba(43, 27, 74, 0.45), 0 0 0 1px #e3dbf6; }
.shelf__next:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 900px) {
  .shelf::after { display: none; }
  .shelf__next { display: none !important; }
  .shelf[data-more="1"] .rail { padding-right: 0; }
}

/* v2.0.1 — category landing page */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #8b7fa8; margin-bottom: 14px; }
.crumbs a { color: #6b5b8a; }
.crumbs a:hover { color: #2b1b4a; }
.crumbs__sep { color: #cdc3e2; }
.cat-head { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.035em; margin-bottom: 8px; }
.cat-head .dot { color: #29c4b4; }
.cat-lead { color: #6b5b8a; max-width: 620px; margin-bottom: clamp(20px, 3vw, 30px); }
.cat-tile.is-current { box-shadow: inset 0 0 0 2px var(--tile); }

/* ==========================================================================
   v2.1.0 — the play page becomes a room, not a takeover
   Instead of a black full-bleed iframe, the game sits in a fixed window on the
   page with the rest of the site still around it: how to play and your best
   score underneath, more games in a column on the right.
   ========================================================================== */

.play-body {
  background: #ffffff;
  overflow: auto;
  min-height: 100vh;
}

.play-shell {
  position: static;
  inset: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(18px, 2.2vw, 30px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px clamp(14px, 2.4vw, 28px) 56px;
  align-items: start;
}

.play-main { min-width: 0; }

.play-bar {
  position: static;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #2b1b4a;
  padding: 4px 2px 12px;
}
.play-bar a,
.play-bar button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ece6f8;
  border-radius: 11px;
  background: #fff;
  color: #2b1b4a;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.play-bar a:hover,
.play-bar button:hover { background: #f7f3ff; border-color: #ddd2f2; }
.play-bar .title {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-bar__cat {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--pc, #8b5ce0);
}
.play-bar button[data-fullscreen] { margin-inline-start: auto; }

.play-stage { position: relative; }

.play-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: calc(100vh - 210px);
  margin: 0 auto;
  background: #0e0a18;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(43, 27, 74, 0.45), 0 0 0 1px #efe9f9;
}
.play-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

.play-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: clamp(14px, 2vw, 24px);
  margin-top: 18px;
}
.play-how h2,
.play-stats h2,
.play-side h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b7fa8;
  margin-bottom: 8px;
}
.play-how p { color: #4a3b66; font-size: 15px; line-height: 1.55; max-width: 62ch; }
.play-facts { display: flex; gap: 26px; margin-top: 12px; }
.play-facts dt { font-size: 11.5px; font-weight: 700; color: #9b8fb6; margin-bottom: 2px; }
.play-facts dd { font-size: 14px; font-weight: 800; color: #2b1b4a; }

.play-stats {
  background: #fbf8ff;
  border: 1px solid #f0e9fb;
  border-radius: 14px;
  padding: 14px 16px;
}
.play-stats strong { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; color: #2b1b4a; }
.play-stats strong[data-empty] { font-size: 14px; font-weight: 700; color: #a292c0; letter-spacing: 0; }

.play-side { position: sticky; top: 16px; }
.play-side__rows { display: grid; gap: 8px; margin-bottom: 14px; }
.play-side .grow { background: #fbf8ff; border-radius: 12px; padding: 6px; }
.play-side .grow__thumb img { width: 96px; height: 56px; }
.play-side .grow__name { font-size: 14px; }
.play-side .grow__sub { font-size: 11.5px; -webkit-line-clamp: 1; }
.play-side .grow__dur,
.play-side .grow__play { display: none; }
.play-side__all { width: 100%; justify-content: center; }

@media (max-width: 1080px) {
  .play-shell { grid-template-columns: minmax(0, 1fr); }
  .play-side { position: static; }
  .play-side__rows { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .play-side .grow__thumb img { width: 110px; height: 64px; }
}
@media (max-width: 720px) {
  .play-info { grid-template-columns: minmax(0, 1fr); }
  .play-frame { aspect-ratio: 4 / 3; max-height: none; border-radius: 12px; }
  .play-bar .title { font-size: 16px; }
}

.play-stats { display: grid; gap: 14px; }
.play-stats .play-stat + .play-stat { border-top: 1px solid #f0e9fb; padding-top: 12px; }
.play-stats h2 { margin-bottom: 4px; }
@media (max-width: 720px) {
  .play-frame { aspect-ratio: 16 / 10; }
}

.play-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #2b1b4a;
  text-decoration: none;
  margin-inline-end: 4px;
  flex: 0 0 auto;
}
.play-logo i {
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #8b7fa8;
  text-transform: lowercase;
}
.play-logo:hover { color: #e2453a; }
@media (max-width: 720px) {
  .play-logo { display: none; }
  .play-bar__cat { display: none; }
}

.play-bar .play-logo { white-space: nowrap; flex-wrap: nowrap; }

/* v2.1.4 — .play-bar a forced 38x38 grid onto the wordmark; give the logo its own box back */
.play-bar a.play-logo {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: nowrap;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.play-bar a.play-logo:hover { background: transparent; color: #e2453a; }

/* v2.1.5 — phones: hide the wordmark (it lost the specificity fight) and give the
   stage a taller box so the in-game title screen is not clipped */
@media (max-width: 720px) {
  .play-bar a.play-logo { display: none; }
  .play-frame { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   v2.2.0 — play page, second pass
   One clean bar (back / wordmark / breadcrumb / fullscreen), a real fullscreen
   that grows the game to the whole screen, full instructions, credits and a
   rail that lists every other game.
   ========================================================================== */

.play-bar {
  gap: 10px;
  padding: 4px 0 14px;
  flex-wrap: nowrap;
}

.play-bar .play-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #ece6f8;
  border-radius: 10px;
  background: #fff;
  color: #2b1b4a;
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}
.play-bar .play-back:hover { background: #f7f3ff; border-color: #ddd2f2; }

.play-crumbs {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  font-size: 13px;
  color: #9b8fb6;
}
.play-crumbs li { display: flex; align-items: center; min-width: 0; }
.play-crumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: #d9cfee;
}
.play-crumbs a {
  width: auto;
  height: auto;
  display: inline;
  border: 0;
  background: none;
  padding: 0;
  color: #7a6a99;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.play-crumbs a:hover { color: #2b1b4a; }
.play-crumbs [aria-current] span {
  color: #2b1b4a;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-bar .play-fs {
  margin-inline-start: auto;
  width: auto;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: #2b1b4a;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  flex: 0 0 auto;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.14s ease;
}
.play-bar .play-fs em { font-style: normal; }
.play-bar .play-fs span { font-size: 15px; line-height: 1; }
.play-bar .play-fs:hover { background: #3d2a63; }
.play-bar .play-fs:active { transform: translateY(1px); }

/* --- what the game is, how it is played, who made it --- */

.play-about__name {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #2b1b4a;
  margin: 0 0 6px;
}
.play-about__tag {
  font-size: 15px;
  line-height: 1.5;
  color: #6b5b8a;
  max-width: 58ch;
  margin-bottom: 18px;
}

.play-steps h2 { margin-bottom: 10px; }
.play-steps ol {
  list-style: none;
  counter-reset: playstep;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
}
.play-steps li {
  counter-increment: playstep;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.45;
  color: #4a3b66;
}
.play-steps li::before {
  content: counter(playstep);
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f3edfe;
  color: #8b5ce0;
  font-size: 12px;
  font-weight: 800;
}

.play-about .play-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f2ecfb;
}
.play-about .play-facts dd { font-size: 13.5px; font-weight: 700; }

.play-info { grid-template-columns: minmax(0, 1fr) 220px; }

.play-side__rows {
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding-inline-end: 2px;
  scrollbar-width: thin;
}

/* --- fullscreen: the game fills the screen, nothing else does --- */

.play-fs-exit {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 14, 32, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.play-fs-exit[hidden] { display: none; }

.play-body.is-fs { overflow: hidden; }
.play-body.is-fs .play-shell {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}
.play-body.is-fs .play-bar,
.play-body.is-fs .play-info,
.play-body.is-fs .play-side { display: none; }
.play-body.is-fs .play-frame {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 720px) {
  .play-bar .play-fs { padding: 0 10px; }
  .play-bar .play-fs em { display: none; }
  .play-crumbs li:first-child,
  .play-crumbs li:first-child + li { display: none; }
  .play-crumbs li + li::before { margin: 0 6px 0 0; }
  .play-info { grid-template-columns: minmax(0, 1fr); }
  .play-side__rows { max-height: none; }
}

/* v2.2.1 — stat card stops stretching, facts breathe, crumbs read darker */
.play-info { align-items: start; }
.play-about .play-facts { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.play-crumbs a { color: #6b5a8c; }
.play-crumbs { font-size: 13.5px; }

/* v2.2.2 — the old 3D-button shadow was still attached to every <a> in the bar,
   which is what made the breadcrumb links look like stray white pills */
.play-crumbs a,
.play-bar .play-logo { box-shadow: none; }

/* v2.2.3 — phones dropped the first two crumbs but kept their slash */
@media (max-width: 720px) {
  .play-crumbs li[aria-current]::before { display: none; }
}

/* v2.2.4 — phones keep the category crumb (that is how you got here) and lay
   the facts out two-up instead of one long column */
@media (max-width: 720px) {
  .play-crumbs li:first-child { display: none; }
  .play-crumbs li[aria-current]::before { display: flex; }
  .play-about .play-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
}

/* v2.2.5 — v2.2.0 hid the second crumb too; bring the category back on phones */
@media (max-width: 720px) {
  .play-crumbs li:nth-child(2) { display: flex; }
}

/* v2.2.6 — match the exact selector of the rule being undone (it carries an
   extra element, so a nth-child(2) override loses on specificity) */
@media (max-width: 720px) {
  .play-crumbs li:first-child + li { display: flex; }
}

/* ==========================================================================
   v2.3.0 — the play page gets a cover, not a caption row
   The flat breadcrumb strip is gone. Each game opens on its own artwork with
   the title sitting on it, the way a game shelf does it, and the window starts
   straight underneath.
   ========================================================================== */

.play-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(126px, 17vh, 186px);
  margin-bottom: 14px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--pc, #2b1b4a);
  isolation: isolate;
}
.play-hero__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.play-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 12, 30, 0.86) 0%, rgba(18, 12, 30, 0.5) 52%, rgba(18, 12, 30, 0.12) 100%),
    linear-gradient(0deg, rgba(18, 12, 30, 0.5) 0%, rgba(18, 12, 30, 0) 55%);
}
.play-hero__back {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.14s ease;
}
.play-hero__back:hover { background: rgba(255, 255, 255, 0.3); }

.play-hero__fs {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: auto;
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #2b1b4a;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.14s ease, transform 0.14s ease;
}
.play-hero__fs em { font-style: normal; }
.play-hero__fs span { font-size: 14px; line-height: 1; }
.play-hero__fs:hover { background: #fff; }
.play-hero__fs:active { transform: translateY(1px); }

.play-hero__meta {
  position: relative;
  z-index: 2;
  padding: 0 22px 20px;
  color: #fff;
  min-width: 0;
}
.play-hero__name {
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 8px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(18, 12, 30, 0.45);
}
.play-hero__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}
.play-hero__sub a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.45); padding-bottom: 1px; }
.play-hero__sub a:hover { border-bottom-color: #fff; }
.play-hero__sub span { color: rgba(255, 255, 255, 0.4); }

.play-about__tag { margin-bottom: 16px; }
.play-about .play-facts { margin-top: 16px; }

/* the frame now sits directly under the cover */
.play-stage { margin-top: 0; }

/* fullscreen hides the cover along with everything else */
.play-body.is-fs .play-hero { display: none; }

@media (max-width: 720px) {
  .play-hero { min-height: 112px; border-radius: 14px; }
  .play-hero__meta { padding: 0 16px 14px; }
  .play-hero__name { font-size: 26px; margin-bottom: 6px; }
  .play-hero__sub { font-size: 12px; gap: 6px; }
  .play-hero__fs { padding: 0 10px; top: 10px; right: 10px; }
  .play-hero__fs em { display: none; }
  .play-hero__back { top: 10px; left: 10px; width: 34px; height: 34px; }
}

/* ==========================================================================
   v2.4.0 — cover banner out, controls up
   The play page opens on the game itself: one compact bar (back, name, tag,
   fullscreen), the window, then how-to plus the control scheme. Only the
   add-date and the studio stay as a footnote at the very bottom.
   ========================================================================== */

.play-hero { display: none; }

.play-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0 14px;
  background: transparent;
  flex-wrap: nowrap;
}
.play-bar__name {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #2b1b4a;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-bar__cat {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  border: 0;
  background: var(--pc, #8b5ce0);
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}
.play-bar__cat:hover { filter: brightness(1.05); color: #fff; }
.play-bar .play-fs { margin-inline-start: auto; }

/* headings read as normal sentence case, not grey all-caps labels */
.play-about h2,
.play-side h2 {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #2b1b4a;
  margin: 0 0 10px;
}

.play-info {
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: 20px;
  align-items: start;
}

.play-about .play-steps { margin-bottom: 14px; }
.play-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 11px;
  background: #f9f6ff;
  border: 1px solid #f0e9fb;
  font-size: 14px;
  font-weight: 600;
  color: #4a3b66;
}
.play-controls span {
  font-size: 12px;
  font-weight: 800;
  color: #8b5ce0;
  text-transform: none;
}

.play-stats {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: #fbf8ff;
  border: 1px solid #f0e9fb;
  border-radius: 14px;
}
.play-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.play-stat + .play-stat { border-top: 1px solid #f0e9fb; padding-top: 12px; }
.play-stat__k { font-size: 13px; font-weight: 700; color: #6b5b8a; }
.play-stats strong { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: #2b1b4a; }
.play-stats strong[data-empty] { font-size: 13px; font-weight: 600; color: #a292c0; letter-spacing: 0; }

.play-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid #f2ecfb;
  font-size: 12.5px;
  font-weight: 600;
  color: #7a6a99;
}
.play-meta span + span::before {
  content: "·";
  margin-inline-end: 10px;
  color: #ded3f2;
}
.play-meta a {
  margin-inline-start: auto;
  color: #8b5ce0;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.play-meta a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .play-bar__name { font-size: 19px; }
  .play-info { grid-template-columns: minmax(0, 1fr); }
  .play-stats { grid-auto-flow: column; justify-content: start; gap: 26px; }
  .play-stat { flex-direction: column; gap: 2px; align-items: flex-start; }
  .play-stat + .play-stat { border-top: 0; padding-top: 0; }
  .play-meta a { margin-inline-start: 0; }
}

/* v2.4.1 — .play-bar a is more specific than .play-bar__cat, so the tag was
   still wearing the old white button skin and sat on top of the title */
.play-bar a.play-bar__cat {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: var(--pc, #8b5ce0);
  color: #fff;
  box-shadow: none;
  flex: 0 0 auto;
}
.play-bar a.play-bar__cat:hover { background: var(--pc, #8b5ce0); filter: brightness(1.06); color: #fff; }
.play-bar__name { margin-inline-end: 2px; }

/* v2.4.2 — the meta footnote wraps on phones, where a leading "·" looks stray */
@media (max-width: 720px) {
  .play-meta span + span::before { content: ""; margin: 0; }
  .play-meta { gap: 4px 12px; }
}

/* ==========================================================================
   v2.5.0 — the play page keeps the site around it
   Top bar and the floating rail stay on while you play, so leaving is one
   click from anywhere. Both disappear only in fullscreen.
   ========================================================================== */

body.play-body {
  padding-top: var(--header-h);
  padding-inline-start: 0;
}
@media (min-width: 1024px) {
  body.play-body { padding-inline-start: var(--rail-w); }
}

.play-shell {
  padding-top: 16px;
}

/* the rail hovers over the page, so the game column just needs breathing room */
body.play-body .sidebar { z-index: 90; }

/* fullscreen is the one place the chrome goes away */
.play-body.is-fs { padding: 0 !important; }
.play-body.is-fs .topbar,
.play-body.is-fs .sidebar,
.play-body.is-fs .sidebar-backdrop { display: none !important; }

@media (max-width: 1023px) {
  .play-shell { padding-top: 12px; }
}

/* v2.5.1 — a little more air under the bar, and the About link stops looking like raw HTML */
body.play-body .play-shell { padding-top: 26px; }
body.play-body .play-meta a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid rgba(43, 27, 74, 0.25);
  padding-bottom: 1px;
}
body.play-body .play-meta a:hover { border-bottom-color: currentColor; }
@media (max-width: 1023px) {
  body.play-body .play-shell { padding-top: 16px; }
}

/* ==========================================================================
   v2.6.0 — the rail becomes a controller, the bar gets out of the way
   ========================================================================== */

/* --- the rail: one colour, floating, sitting a touch low --------------- */
.sidebar {
  background: #2b1b4a;
  border-inline-end: 0;
  border-radius: 30px;
  box-shadow:
    0 24px 48px -18px rgba(43, 27, 74, 0.5),
    0 6px 14px -6px rgba(43, 27, 74, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  padding: 8px 6px;
}

@media (min-width: 1024px) {
  .sidebar {
    top: 50%;
    bottom: auto;
    inset-inline-start: 8px;
    width: 58px;
    max-height: calc(100vh - 40px);
    transform: translateY(-44%);
  }
  .sidebar.is-scrolling { transform: translateY(calc(-44% - 3px)); }
  .sidebar:hover { width: 58px; }
}

.sidebar__scroll { padding: 8px 4px; }
.sidebar__title {
  color: rgba(255, 255, 255, 0.34);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-align: center;
  margin: 12px 0 4px;
}
.sidebar__sep { background: rgba(255, 255, 255, 0.1); margin: 8px 10px; }
.sidebar__foot { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 8px 4px 6px; text-align: center; }
.sidebar__ver { color: rgba(255, 255, 255, 0.28); font-size: 9px; }

/* one colour for the whole control pad: white keys, a lit key when active */
.snav,
.snav--cat,
.snav-more > summary,
.snav-more--cats > summary {
  --nav-c: #ffffff !important;
  color: rgba(255, 255, 255, 0.66) !important;
  background: transparent;
  border-radius: 999px;
  padding: 8px 4px;
  justify-content: center;
  gap: 0;
  min-height: 40px;
}
.snav__label { display: none; }

.snav__ico,
.snav:hover .snav__ico,
.snav--active .snav__ico,
.snav--cat .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico,
.snav-more > summary .snav__ico,
.snav-more--cats > summary .snav__ico {
  width: 38px;
  height: 38px;
  background: transparent !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  display: grid;
  place-items: center;
}
.snav__ico::after,
.snav--cat .snav__ico::after,
.snav-more > summary .snav__ico::after { display: none !important; }
.snav__ico .ico,
.snav--cat .snav__ico .ico,
.snav-more > summary .snav__ico .ico { width: 21px; height: 21px; stroke-width: 2.1; }

.snav:hover,
.snav--cat:hover,
.snav-more > summary:hover,
.snav-more--cats > summary:hover { background: rgba(255, 255, 255, 0.1) !important; color: #fff !important; }
.snav:hover .snav__ico,
.snav--cat:hover .snav__ico { color: #fff !important; }

.snav--active,
.snav--cat.snav--active {
  background: #fff !important;
  color: #2b1b4a !important;
}
.snav--active .snav__ico,
.snav--cat.snav--active .snav__ico { color: #2b1b4a !important; }

/* phones: the drawer keeps its own behaviour, only the skin changes */
@media (max-width: 1023px) {
  .sidebar { border-radius: 0; padding: 10px 10px; }
  .snav__label { display: inline; }
  .snav { justify-content: flex-start; gap: 12px; padding: 9px 12px; }
}

/* --- playing: the top bar steps aside, the rail stays ------------------ */
body.play-body .topbar,
body.play-body .skip-link { display: none !important; }
body.play-body { padding-top: 0; }
body.play-body .play-shell { padding-top: 20px; }

/* --- title row: name, category, then details + fullscreen on the right - */
.play-bar__actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.play-bar .play-fs,
.play-bar .play-details {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid #e7dff5;
  background: #fff;
  color: #2b1b4a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(43, 27, 74, 0.05);
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.play-bar .play-fs em,
.play-bar .play-details em { font-style: normal; }
.play-bar .play-fs span,
.play-bar .play-details span { font-size: 14px; line-height: 1; opacity: 0.7; }
.play-bar .play-fs:hover,
.play-bar .play-details:hover {
  background: #2b1b4a;
  border-color: #2b1b4a;
  color: #fff;
}
.play-bar .play-fs:hover span,
.play-bar .play-details:hover span { opacity: 1; }

/* --- the two cards under the window ----------------------------------- */
.play-info { gap: 18px; margin-top: 18px; }
.play-about,
.play-stats {
  background: #fff;
  border: 1px solid #f0e9fb;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(43, 27, 74, 0.04);
}
.play-about .play-steps { margin-bottom: 16px; }
.play-controls {
  border: 0;
  background: #f7f3ff;
  border-radius: 12px;
  padding: 11px 14px;
}
.play-stats { gap: 0; }
.play-stat { padding: 4px 0; }
.play-stat + .play-stat { border-top: 1px solid #f3eefb; margin-top: 10px; padding-top: 14px; }

.play-meta { margin-top: 18px; padding-top: 16px; }

@media (max-width: 720px) {
  body.play-body .play-shell { padding-top: 14px; }
  .play-bar { gap: 8px; padding-bottom: 12px; }
  .play-bar .play-details em,
  .play-bar .play-fs em { display: none; }
  .play-bar .play-fs,
  .play-bar .play-details { width: 38px; padding: 0; justify-content: center; }
  .play-about, .play-stats { padding: 16px; border-radius: 16px; }
}

/* ==========================================================================
   v2.6.0 — player reviews
   ========================================================================== */

.play-rev {
  margin-top: 18px;
  padding: 22px clamp(16px, 2vw, 24px) 8px;
  background: #fff;
  border: 1px solid #f0e9fb;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(43, 27, 74, 0.04);
}
.play-rev h2 {
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: #2b1b4a;
  margin: 0 0 16px;
}

.play-rev__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #f4eefc;
}
.play-rev__sum { display: flex; align-items: center; gap: 14px; }
.play-rev__avg {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #2b1b4a;
}
.play-rev__count { display: block; font-size: 12.5px; font-weight: 700; color: #8b7fa8; margin-top: 3px; }

.play-rev__stars { display: inline-flex; gap: 2px; }
.play-rev__stars i { font-style: normal; font-size: 17px; line-height: 1; color: #e6ddf5; }
.play-rev__stars i::before { content: "★"; }
.play-rev__stars i.on { color: #ffc61e; }
.play-rev__stars--sm { margin-inline-start: 6px; }
.play-rev__stars--sm i { font-size: 12px; }

.play-rev__votes { display: flex; gap: 8px; }
.play-rev__vote {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid #ece4f8;
  background: #fff;
  color: #4a3b66;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}
.play-rev__vote em { font-style: normal; }
.play-rev__vote b { font-size: 12px; font-weight: 800; color: #9b8fb4; }
.play-rev__vote span { font-size: 15px; line-height: 1; filter: grayscale(0.55); }
.play-rev__vote:hover { border-color: #d9cdf0; background: #fbf8ff; }
.play-rev__vote[aria-pressed="true"] { border-color: transparent; }
.play-rev__vote[data-rv-like][aria-pressed="true"] { background: #e6f7f4; color: #0d7c70; }
.play-rev__vote[data-rv-like][aria-pressed="true"] b { color: #0d7c70; }
.play-rev__vote[data-rv-dislike][aria-pressed="true"] { background: #ffece9; color: #c23a2c; }
.play-rev__vote[data-rv-dislike][aria-pressed="true"] b { color: #c23a2c; }
.play-rev__vote[aria-pressed="true"] span { filter: none; }

.play-rev__form { padding: 18px 0 16px; border-bottom: 1px solid #f4eefc; }
.play-rev__rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.play-rev__ratelabel { font-size: 13px; font-weight: 700; color: #6b5b8a; }
.play-rev__picks { display: inline-flex; gap: 4px; }
.play-rev__pick {
  border: 0;
  background: transparent;
  padding: 2px 3px;
  font-size: 26px;
  line-height: 1;
  color: #e2d8f2;
  cursor: pointer;
  transition: transform 0.1s ease, color 0.1s ease;
}
.play-rev__pick:hover { transform: scale(1.1); }
.play-rev__pick.is-on { color: #ffc61e; }

.play-rev__name,
.play-rev__text {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: #2b1b4a;
  background: #fbf9ff;
  border: 1.5px solid #eee6fa;
  border-radius: 12px;
  padding: 11px 14px;
  margin-top: 12px;
  resize: vertical;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.play-rev__name { max-width: 300px; }
.play-rev__name:focus,
.play-rev__text:focus { outline: 0; border-color: #b79ceb; background: #fff; }
.play-rev__name::placeholder,
.play-rev__text::placeholder { color: #a79fbc; }

.play-rev__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.play-rev__msg { margin: 0; font-size: 13px; font-weight: 700; color: #0d7c70; min-height: 1em; }
.play-rev__submit {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #2b1b4a;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s ease, transform 0.1s ease;
}
.play-rev__submit:hover { background: #4a2f78; }
.play-rev__submit:active { transform: translateY(1px); }

.play-rev__list { list-style: none; margin: 0; padding: 0; }
.play-rev__item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f6f1fd;
}
.play-rev__item:last-child { border-bottom: 0; }
.play-rev__ava {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1eaff;
  color: #6d45c9;
  font-size: 15px;
  font-weight: 900;
}
.play-rev__body { min-width: 0; flex: 1 1 auto; }
.play-rev__line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.play-rev__line b { font-size: 13.5px; font-weight: 800; color: #2b1b4a; }
.play-rev__line time { margin-inline-start: auto; font-size: 11.5px; font-weight: 600; color: #a79fbc; }
.play-rev__text { margin: 5px 0 0; font-size: 14px; line-height: 1.6; color: #4a3b66; }
.play-rev__blank {
  padding: 22px 0 26px;
  font-size: 14px;
  color: #8b7fa8;
  text-align: center;
}

@media (max-width: 720px) {
  .play-rev { padding: 18px 16px 6px; border-radius: 16px; }
  .play-rev__avg { font-size: 34px; }
  .play-rev__head { gap: 12px; }
  .play-rev__votes { width: 100%; }
  .play-rev__vote { flex: 1 1 0; justify-content: center; height: 36px; padding: 0 10px; font-size: 12.5px; }
  .play-rev__name { max-width: none; }
  .play-rev__pick { font-size: 24px; }
  .play-rev__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .play-rev__submit { width: 100%; }
  .play-rev__msg { order: 2; text-align: center; }
}

/* v2.6.1 — tightening the first pass: labels must not wrap, the rail needs
   grouping so it reads as a pad instead of a column of dots */
.play-bar .play-fs,
.play-bar .play-details { white-space: nowrap; }
.play-bar .play-details { padding: 0 13px; font-size: 12.5px; }

@media (min-width: 1024px) {
  .sidebar {
    transform: translateY(-50%);
    top: 50%;
    max-height: min(calc(100vh - 32px), 720px);
  }
  .sidebar.is-scrolling { transform: translateY(calc(-50% - 2px)); }
  .snav-list { gap: 2px; }
  .sidebar__sep { margin: 9px 12px; }
}

body.play-body .play-shell { padding-top: 26px; }

/* --- reviews: line the summary up, calm the empty state ----------------- */
.play-rev__avg { min-width: 62px; }
.play-rev__avg[data-empty] { color: #d9cff0; }
.play-rev__sum > div { display: flex; flex-direction: column; justify-content: center; }
.play-rev__stars { margin-bottom: 2px; }
.play-rev__text { min-height: 84px; }
.play-rev__blank { padding: 18px 0 22px; }

/* v2.6.2 — .play-bar a/button still carries width:38px from an older pass, which
   squeezed "Game details" into "Game det". Pills need their own width. */
.play-bar a.play-details,
.play-bar button.play-fs {
  width: auto;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  place-items: initial;
  overflow: visible;
  border-radius: 999px;
  flex: 0 0 auto;
}

/* the two info cards share a height so the row reads as one band */
.play-info { align-items: stretch; }
.play-stats { align-content: start; }
.play-info > .play-about,
.play-info > .play-stats { height: 100%; }

/* stars sit level with the number */
.play-rev__sum { align-items: center; }
.play-rev__sum > div { row-gap: 1px; }
.play-rev__stars { line-height: 1; }

/* a slightly roomier pad: group gaps do the work, icons stay 38px */
@media (min-width: 1024px) {
  .sidebar { padding: 10px 7px; }
  .sidebar__sep { margin: 10px 11px; height: 1px; }
}

/* v2.6.3 — phones get their own menu handle (the top bar is hidden on the play
   page), and the narrow rail no longer prints a clipped CATEGORIES label */
.play-nav { display: none; }

@media (max-width: 1023px) {
  .play-nav {
    position: fixed;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 96;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #ece4f8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px -4px rgba(43, 27, 74, 0.2);
    cursor: pointer;
  }
  .play-nav__bars::before {
    content: "\2630";
    font-size: 17px;
    line-height: 1;
    color: #2b1b4a;
  }
  html.nav-open .play-nav__bars::before { content: "\2715"; }
  html.nav-open .play-nav { background: #2b1b4a; border-color: #2b1b4a; }
  html.nav-open .play-nav__bars::before { color: #fff; }
}

@media (min-width: 1024px) {
  .sidebar__title { display: none; }
}

/* v2.6.4 — the phone handle sits in the title row instead of floating over the
   game name */
@media (max-width: 1023px) {
  .play-nav {
    position: static;
    inset: auto;
    z-index: auto;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    margin-inline-end: 2px;
    box-shadow: none;
    border: 1.5px solid #ece4f8;
  }
}

/* v2.6.5 — .play-bar button (0,1,1) was overriding display:none on the phone
   handle, so a blank pill showed up on desktop. Same-target selector wins. */
.play-bar .play-nav { display: none; }
@media (max-width: 1023px) {
  .play-bar .play-nav {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1.5px solid #ece4f8;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
  }
}

/* v2.6.6 — the list paragraph was picking up the textarea skin because both
   carried .play-rev__text. Split the names, and warm up the unrated stars. */
.play-rev__copy {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4a3b66;
  background: none;
  border: 0;
  padding: 0;
  min-height: 0;
}
.play-rev__pick { color: #ffe0a8; }
.play-rev__pick:hover { color: #ffc61e; }

/* v2.6.7 — on a phone the title row overflowed and cut the fullscreen button:
   the name takes the slack, the pills keep their width */
@media (max-width: 720px) {
  .play-bar__name { flex: 1 1 auto; font-size: 18px; }
  .play-bar__actions { margin-inline-start: 0; }
  .play-bar .play-fs,
  .play-bar .play-details { width: 36px; height: 36px; }
  .play-bar .play-nav { width: 36px; height: 36px; }
}

/* v2.6.8 — the pad sat a little high against the page; drop it a touch */
@media (min-width: 1024px) {
  .sidebar { top: calc(50% + 14px); }
}

/* ==========================================================================
   v2.7.0
   1. rail back to the light panel from 2.5 — one colour, bigger tiles
   2. details / fullscreen are plain words, not pills
   3. how-to and the score line lose their boxes
   4. reviews become a dense, borderless block of small text
   ========================================================================== */

/* --- 1. the rail ------------------------------------------------------- */
.sidebar {
  top: var(--header-h);
  bottom: 0;
  inset-inline-start: 0;
  width: var(--rail-w);
  max-height: none;
  transform: none;
  background: #fff;
  border-inline-end: 1px solid var(--c-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.sidebar.is-scrolling {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(43, 27, 74, 0.3);
}
.sidebar__scroll { padding: 12px 8px 10px; }
.sidebar__title {
  display: block;
  color: var(--c-muted);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-align: start;
  margin: 12px 12px 5px;
}
.sidebar__sep { background: #f0ebfa; margin: 8px 10px; height: 1px; }
.sidebar__foot { border-top: 1px solid #f0ebfa; padding: 10px 12px 12px; text-align: start; }
.sidebar__ver { color: #a79fbc; font-size: 10.5px; }

.snav,
.snav--cat,
.snav-more > summary,
.snav-more--cats > summary {
  --nav-c: #7b5be0 !important;
  color: var(--c-text) !important;
  background: transparent;
  border-radius: 12px;
  padding: 6px 6px;
  justify-content: flex-start;
  gap: 11px;
  min-height: 0;
}
.snav__label { display: inline; font-size: 13.5px; font-weight: 700; }

/* one family of tiles: the same violet, only bigger than last time */
.snav__ico,
.snav:hover .snav__ico,
.snav--active .snav__ico,
.snav--cat .snav__ico,
.snav--cat:hover .snav__ico,
.snav--cat.snav--active .snav__ico,
.snav-more > summary .snav__ico,
.snav-more--cats > summary .snav__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff !important;
  background: linear-gradient(180deg, #a48cf0 0%, #7b5be0 52%, #6849cf 100%) !important;
  box-shadow:
    0 3px 0 #563bb4,
    0 7px 14px -4px rgba(123, 91, 224, 0.5) !important;
  filter: none !important;
  transform: none !important;
}
.snav__ico .ico,
.snav--cat .snav__ico .ico,
.snav-more > summary .snav__ico .ico,
.snav-more--cats > summary .snav__ico .ico {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}
/* the little top highlight that made the tiles read as physical keys */
.snav__ico::after,
.snav--cat .snav__ico::after,
.snav-more > summary .snav__ico::after {
  display: block !important;
  content: "";
  position: absolute;
  inset: 3px 5px auto 5px;
  height: 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.snav__ico { position: relative; }
.snav:hover,
.snav--cat:hover,
.snav-more > summary:hover,
.snav-more--cats > summary:hover { background: #f7f3ff !important; color: #2b1b4a !important; }
.snav--active,
.snav--cat.snav--active { background: #f4eeff !important; color: #5b3fb8 !important; }
.snav:hover .snav__ico,
.snav--cat:hover .snav__ico { transform: translateY(-1px) !important; }
.snav--active .snav__ico,
.snav--cat.snav--active .snav__ico {
  background: linear-gradient(180deg, #6f4ed8 0%, #5b3fb8 52%, #4a31a0 100%) !important;
  box-shadow: 0 2px 0 #3a2580, 0 5px 10px -3px rgba(74, 49, 160, 0.5) !important;
}
.snav--active .snav__label,
.snav--cat.snav--active .snav__label { color: #5b3fb8 !important; font-weight: 800; }

@media (min-width: 1024px) {
  .sidebar:hover { width: var(--rail-open-w); }
}

/* --- 2. plain words instead of pills ----------------------------------- */
.play-bar__actions { gap: 16px; }
.play-bar a.play-details,
.play-bar button.play-fs {
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #2b1b4a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.play-bar a.play-details:hover,
.play-bar button.play-fs:hover { background: none; color: #7b5be0; }
.play-bar a.play-details:focus-visible,
.play-bar button.play-fs:focus-visible { outline: 2px solid #b79ceb; outline-offset: 3px; border-radius: 4px; }

/* --- 3. no boxes around the how-to or the scores ----------------------- */
.play-info { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 16px; }
.play-about,
.play-stats {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  height: auto;
}
.play-about .play-steps { margin-bottom: 12px; }
.play-stats {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-top: 14px;
}
.play-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 0;
}
.play-stat + .play-stat { border: 0; margin: 0; padding: 0; }
.play-stat__k { font-size: 12px; font-weight: 700; color: #8b7fa8; }
.play-stats strong { font-size: 17px; font-weight: 900; }
.play-stats strong[data-empty] { font-size: 12.5px; }

/* --- 4. reviews: dense, quiet, borderless ------------------------------ */
.play-rev {
  margin-top: 16px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.play-rev h2 { font-size: 14px; margin: 0 0 8px; }
.play-rev__head {
  padding: 0 0 8px;
  border-bottom: 0;
  gap: 12px;
}
.play-rev__sum { gap: 9px; }
.play-rev__avg { font-size: 24px; min-width: 0; letter-spacing: -0.03em; }
.play-rev__stars i { font-size: 12.5px; }
.play-rev__count { font-size: 11px; margin-top: 1px; }
.play-rev__votes { gap: 6px; }
.play-rev__vote {
  height: 28px;
  padding: 0 10px;
  border: 0;
  background: #f6f2fd;
  font-size: 11.5px;
  gap: 5px;
}
.play-rev__vote b { font-size: 11px; }
.play-rev__vote span { font-size: 12px; }
.play-rev__vote:hover { background: #efe7fb; }
.play-rev__vote[data-rv-like][aria-pressed="true"] { background: #e4f6f2; }
.play-rev__vote[data-rv-dislike][aria-pressed="true"] { background: #ffe9e6; }

.play-rev__form { padding: 10px 0 4px; border-bottom: 0; }
.play-rev__rate { gap: 8px; }
.play-rev__ratelabel { font-size: 12px; }
.play-rev__picks { gap: 2px; }
.play-rev__pick { font-size: 19px; padding: 0 1px; }

.play-rev__row { display: flex; gap: 8px; margin-top: 8px; }
.play-rev__name,
.play-rev__entry {
  font-size: 12.5px;
  padding: 7px 11px;
  margin: 0;
  border-radius: 9px;
  border: 1px solid #eee6fa;
  background: #fbf9ff;
}
.play-rev__name { width: 132px; flex: 0 0 auto; }
.play-rev__entry { flex: 1 1 auto; min-width: 0; }
.play-rev__submit {
  flex: 0 0 auto;
  height: 33px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 9px;
  background: #2b1b4a;
}
.play-rev__msg { font-size: 11.5px; margin: 6px 0 0; min-height: 0; }

.play-rev__list { margin-top: 6px; }
.play-rev__item { padding: 7px 0; border-bottom: 0; gap: 9px; }
.play-rev__ava { width: 24px; height: 24px; font-size: 11px; background: #f1eaff; }
.play-rev__line b { font-size: 12px; }
.play-rev__line time { font-size: 10.5px; }
.play-rev__copy { font-size: 12.5px; line-height: 1.5; margin-top: 2px; }
.play-rev__blank { padding: 8px 0 10px; font-size: 12.5px; text-align: start; }

@media (max-width: 720px) {
  .play-rev__row { flex-wrap: wrap; }
  .play-rev__name { width: 100%; }
  .play-rev__entry { width: 100%; }
  .play-rev__submit { width: 100%; height: 34px; }
  .play-stats { gap: 18px; }
  .play-bar__actions { gap: 12px; }
  .play-bar a.play-details,
  .play-bar button.play-fs { font-size: 12px; }
}

/* v2.7.1 — labels were spilling out of the 88px rail into the page. The rail
   shows tiles only; hovering widens it and the labels appear, like before. */
.sidebar { overflow: hidden; }

@media (min-width: 1024px) {
  .snav__label { display: none; }
  .sidebar__title { display: none; }
  .snav { justify-content: center; padding: 6px 0; gap: 0; }
  .snav-more > summary,
  .snav-more--cats > summary { justify-content: center; padding: 6px 0; }

  .sidebar:hover .snav__label { display: inline; }
  .sidebar:hover .sidebar__title { display: block; }
  .sidebar:hover .snav { justify-content: flex-start; padding: 6px 8px; gap: 11px; }
}

/* the play page has no top bar, so the rail starts at the top edge */
@media (min-width: 1024px) {
  body.play-body .sidebar { top: 12px; }
}

/* --- reviews: shorter placeholder, tighter rhythm ---------------------- */
.play-rev__avg { font-size: 22px; }
.play-rev__name { width: 112px; }
.play-rev__item { padding: 6px 0; }
.play-rev__form { padding-top: 8px; }
.play-rev__pick { font-size: 18px; }

/* v2.7.2 — the Legal disclosure is a <summary>, not a .snav, so it kept the
   centred icon when the rail widened */
@media (min-width: 1024px) {
  .sidebar:hover .snav-more > summary,
  .sidebar:hover .snav-more--cats > summary {
    justify-content: flex-start;
    padding: 6px 8px;
    gap: 11px;
  }
}

/* v2.7.4 — the desktop rail rule above is not media-scoped, so it flattened the
   phone drawer. Restore the narrow-screen drawer, and keep the play title row
   from pushing its two word-actions off the edge. */
@media (max-width: 1023px) {
  .sidebar {
    width: min(276px, 82vw);
    transform: translateX(-105%);
    border-inline-end: 1px solid var(--c-border);
    box-shadow: 0 18px 45px -22px rgba(43, 27, 74, 0.4);
  }
  [dir="rtl"] .sidebar { transform: translateX(105%); }
  html.nav-open .sidebar { transform: none; }
  [dir="rtl"] html.nav-open .sidebar { transform: none; }
  .sidebar__scroll { padding: 14px 12px; }
  .snav { justify-content: flex-start; }
  .play-bar__actions a,
  .play-bar__actions button { font-size: 12.5px; letter-spacing: 0; }
}
@media (max-width: 430px) {
  .play-bar { flex-wrap: wrap; row-gap: 6px; }
  .play-bar__actions { margin-inline-start: 0; width: 100%; gap: 14px; }
}

/* v2.7.5 — phone title row: keep name + chip + the two words on one line */
@media (max-width: 430px) {
  .play-bar { flex-wrap: nowrap; gap: 8px; align-items: center; }
  .play-bar__name { font-size: 21px; }
  .play-bar__cat { font-size: 11px; padding: 2px 8px; }
  .play-bar__actions { width: auto; margin-inline-start: auto; gap: 10px; flex-wrap: nowrap; }
  .play-bar__actions a,
  .play-bar__actions button { font-size: 11px; white-space: nowrap; }
  .play-rev__form { flex-wrap: wrap; }
  .play-rev__name { width: 100%; flex: 1 1 100%; }
  .play-rev__entry { flex: 1 1 100%; }
  .play-rev__post { width: 100%; }
}

/* v2.7.6 — two rows on phones: name + chip, then the two words flush right */
@media (max-width: 430px) {
  .play-bar { flex-wrap: wrap; gap: 6px 8px; }
  .play-bar__name { font-size: 22px; }
  .play-bar__cat { font-size: 11.5px; padding: 2px 9px; }
  .play-bar__actions {
    width: 100%;
    margin-inline-start: 0;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 0;
  }
  .play-bar__actions a,
  .play-bar__actions button { font-size: 11.5px; }
}

/* v2.7.7 — pin the phone rows left/right instead of letting space-between stretch them */
@media (max-width: 430px) {
  .play-bar { justify-content: flex-start !important; }
  .play-bar__actions { justify-content: flex-end !important; }
}

/* v2.7.8 — the name box was flex-growing and pushing the chip away; the two
   word-actions carried their own auto margins, so flex-end never applied */
@media (max-width: 430px) {
  .play-bar__name { flex: 0 1 auto !important; }
  .play-bar__actions > * { margin-inline: 0 !important; }
  .play-bar__actions { justify-content: flex-end !important; }
}

/* v2.8.0 — details moves under the play area, Like/Not-for-me sits next to the
   star picker, best score returns to the right of how-to-play */
.play-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 236px;
  gap: 10px 44px;
  align-items: start;
}
.play-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 2px;
}
.play-aside .play-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
}
.play-aside .play-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.play-aside .play-stat__k { font-size: 12.5px; }
.play-aside .play-stat strong { font-size: 20px; }
.play-details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-muted);
  text-decoration: none;
  border-bottom: 0;
}
.play-details span { transition: transform 0.15s ease; }
.play-details:hover { color: var(--c-ink); }
.play-details:hover span { transform: translateX(3px); }

.play-fs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--c-ink);
  background: none;
  border: 0;
  border-bottom: 0;
  padding: 2px 0;
}
.play-fs__ico { font-size: 15px; line-height: 1; }
.play-fs:hover { color: #7b5be0; }

.play-rev__rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.play-rev__rate .play-rev__votes { margin-inline-start: auto; }

@media (max-width: 900px) {
  .play-info { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .play-aside { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .play-aside .play-stats { flex-direction: row; gap: 18px; }
  .play-rev__rate .play-rev__votes { margin-inline-start: 0; width: 100%; }
}

/* v2.8.1 — the rail stops shouting: line icons on white, one violet highlight.
   The block under the frame becomes an editorial two-column with a hairline. */
@media (min-width: 1024px) {
  :root { --rail-w: 76px; }
  .sidebar { background: #fff; border-inline-end: 1px solid #F0EBFA; box-shadow: none; }
  .sidebar__scroll { padding: 10px 0 14px; }
  .snav-list { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
  .snav {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 14px;
    gap: 0;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
  }
  .snav .snav__ico {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
  }
  .snav .snav__ico::after { content: none !important; display: none !important; }
  .snav__ico svg { width: 23px; height: 23px; color: #6B5B8A; stroke: currentColor; fill: none; stroke-width: 1.7; }
  .snav:hover { background: #F5F1FF !important; }
  .snav:hover .snav__ico svg { color: #5B3FB8; }
  .snav--active { background: #7B5BE0 !important; }
  .snav--active .snav__ico svg { color: #fff; }
  .sidebar:hover .snav,
  .sidebar:hover .snav-more > summary {
    width: auto;
    justify-content: flex-start;
    padding-inline: 10px;
    gap: 12px;
  }
  .sidebar:hover .snav-list { align-items: stretch; }
}

.play-info {
  grid-template-columns: minmax(0, 1fr) 216px;
  gap: 0 48px;
  align-items: start;
}
.play-about__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
}
.play-about__top h2 { margin: 0; }
.play-about .play-steps { margin-top: 6px; }
.play-about .play-steps li { padding-block: 4px; line-height: 1.5; }
.play-aside {
  border-inline-start: 1px solid #F1ECFA;
  padding-inline-start: 26px;
  padding-top: 4px;
  gap: 20px;
  align-self: stretch;
}
.play-aside .play-stats { gap: 14px; }
.play-aside .play-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--c-muted);
}
.play-rev {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #F1ECFA;
}

/* v2.8.2 — tighter aside, calmer review block */
.play-aside { gap: 16px; padding-top: 6px; }
.play-aside .play-stats { gap: 12px; }
.play-aside .play-stat__k { font-size: 12px; }
.play-aside .play-stat strong { font-size: 19px; }
.play-rev__form { margin-top: 8px; }
.play-rev__head { margin-bottom: 4px; }

/* v2.8.3 — the wide rail must stretch its rows, and the Legal summary icon
   (not inside .snav) has to lose the old gradient block too */
@media (min-width: 1024px) {
  .sidebar .snav__ico {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
  }
  .sidebar .snav__ico::after { content: none !important; display: none !important; }
  .sidebar .snav__ico svg { width: 23px; height: 23px; color: #6B5B8A; stroke: currentColor; fill: none; stroke-width: 1.7; }
  .snav--active .snav__ico svg { color: #fff; }
  .snav-more > summary {
    width: 48px;
    height: 48px;
    margin-inline: auto;
    padding: 0;
    border-radius: 14px;
    justify-content: center;
    gap: 0;
  }
  .snav-more > summary:hover { background: #F5F1FF; }
  .sidebar:hover .snav-more > summary { width: auto; margin-inline: 0; }
  .sidebar:hover .snav-list li { width: 100%; }
  .sidebar:hover .snav { width: 100%; }
  .sidebar:hover .snav-more { width: 100%; }
}

/* v2.8.4 — the old tile rules carry !important at higher specificity, so the
   plain-icon rail needs .sidebar in front of every selector to win */
@media (min-width: 1024px) {
  .sidebar .snav,
  .sidebar .snav--cat,
  .sidebar .snav--active,
  .sidebar .snav--cat.snav--active,
  .sidebar .snav-more > summary { background: transparent !important; box-shadow: none !important; }
  .sidebar .snav--active,
  .sidebar .snav--cat.snav--active { background: #7B5BE0 !important; }
  .sidebar .snav:hover { background: #F5F1FF !important; }
  .sidebar .snav--active:hover,
  .sidebar .snav--cat.snav--active:hover { background: #6B4CD2 !important; }

  .sidebar .snav .snav__ico,
  .sidebar .snav--cat .snav__ico,
  .sidebar .snav--active .snav__ico,
  .sidebar .snav--cat.snav--active .snav__ico,
  .sidebar .snav-more > summary .snav__ico {
    width: 24px !important;
    height: 24px !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .sidebar .snav__ico::after,
  .sidebar .snav--cat .snav__ico::after,
  .sidebar .snav-more > summary .snav__ico::after {
    display: none !important;
    content: none !important;
  }
  .sidebar .snav .snav__ico .ico,
  .sidebar .snav--cat .snav__ico .ico,
  .sidebar .snav--active .snav__ico .ico,
  .sidebar .snav-more > summary .snav__ico .ico {
    width: 23px !important;
    height: 23px !important;
    color: #6B5B8A !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 1.7 !important;
  }
  .sidebar .snav:hover .snav__ico .ico { color: #5B3FB8 !important; }
  .sidebar .snav--active .snav__ico .ico,
  .sidebar .snav--cat.snav--active .snav__ico .ico { color: #fff !important; }
  .sidebar .snav--active .snav__label,
  .sidebar .snav--cat.snav--active .snav__label { color: #fff !important; }
}

/* v2.8.5 — let the rail breathe to the bottom and pin its version stamp;
   pull the two stray meta lines up under the scores */
@media (min-width: 1024px) {
  .sidebar { display: flex; flex-direction: column; }
  .sidebar__scroll { flex: 1 1 auto; overflow-y: auto; }
  .sidebar__foot {
    margin-top: auto;
    padding: 10px 0 14px;
    text-align: center;
    border-top: 1px solid #F4EFFC;
  }
  .sidebar__ver { display: inline-block; font-size: 10.5px; color: #A99BC4; letter-spacing: 0.02em; }
}
.play-aside .play-meta { margin-top: -4px; }
.play-aside .play-meta span + span { margin-top: 2px; }

/* v2.9.0 — the score widgets are gone. Below the frame is now what the big
   portals show: a one-paragraph intro, how-to-play, controls on the left and a
   factual "Game info" rail on the right (developer / released / length / platforms) */
.play-lede {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: #4c3b70;
  max-width: 62ch;
}
.play-aside {
  border-inline-start: 1px solid #F1ECFA;
  padding-inline-start: 26px;
  padding-top: 2px;
  align-self: stretch;
}
.play-aside__title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b7aa8;
}
.play-facts { margin: 0; display: grid; gap: 12px; }
.play-facts > div { display: grid; gap: 2px; }
.play-facts dt {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a294bd;
  font-weight: 700;
}
.play-facts dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #2b1b4a;
  line-height: 1.4;
}

/* v2.9.1 — no stray "Game details" link inside the how-to block: on a play page
   there is nothing to jump to, the player is already where they want to be */
.play-about__top { display: block; margin-bottom: 6px; }
.play-about__top h2 { margin: 0; }

/* v3.0.0 — the detail page is no longer an orphan: its content sits under the
   frame as "About this game", and the game title links to the full page */
.play-bar h1.play-bar__name a {
  display: inline;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-decoration: none;
}
.play-bar h1.play-bar__name a:hover { color: #7B5BE0; }

.play-detail-block { margin-bottom: 24px; }
.play-detail-block__t {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b7aa8;
}
.play-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.play-chips li {
  padding: 4px 10px;
  border-radius: 999px;
  background: #F7F4FE;
  color: #6B5B8A;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
}
.play-chips li:first-child {
  background: color-mix(in srgb, var(--pc) 12%, #fff);
  color: var(--pc);
}

/* v3.0.2 — the two-column rule above was written without a media query, so it
   squeezed the phone layout into a 140px text column */
@media (max-width: 899px) {
  .play-info { display: block; }
  .play-aside {
    display: block;
    border-inline-start: 0;
    border-top: 1px solid #F1ECFA;
    padding-inline-start: 0;
    padding-top: 18px;
    margin-top: 22px;
  }
  .play-aside__title { margin-bottom: 10px; }
  .play-facts { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .play-lede { font-size: 14.5px; }
}

/* v3.1.0 — one clean reading column: name / how to play / controls, then a single
   quiet "full details" link. Game info moves to the detail page. Reviews get a
   score-first header and coloured player avatars. */
.play-doc { margin-top: 24px; max-width: 940px; }
.play-doc__row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px 26px;
  padding: 20px 0;
  border-top: 1px solid #F2EDFB;
}
.play-doc__row:first-child { border-top: 0; padding-top: 0; }
.play-doc__t {
  margin: 0;
  padding-top: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a8bb8;
}
.play-doc__t--name {
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #2b1b4a;
  line-height: 1.25;
}
.play-doc__b p { margin: 0; font-size: 15px; line-height: 1.7; color: #4c3b70; max-width: 68ch; }
.play-doc .play-steps { margin: 0; }
.play-doc .play-steps li { font-size: 14.5px; }
.play-ctrls { font-weight: 600; }
.play-doc__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: 174px;
  font-size: 13.5px;
  font-weight: 700;
  color: #7b5be0;
  text-decoration: none;
}
.play-doc__more span { transition: transform 0.15s ease; }
.play-doc__more:hover { color: #5b3fb8; }
.play-doc__more:hover span { transform: translateX(3px); }

/* --- reviews: score first, players as people ---------------------------- */
.play-rev { margin-top: 28px; padding-top: 24px; border-top: 1px solid #F2EDFB; }
.play-rev h2 { font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: #9a8bb8; }
.play-rev__head { margin-bottom: 2px; }
.play-rev__sum { align-items: center; gap: 12px; }
.play-rev__avg { font-size: 34px; line-height: 1; letter-spacing: -0.02em; color: #2b1b4a; }
.play-rev__stars i { color: #FFB020; }
.play-rev__count { font-size: 12px; color: #8b7aa8; }
.play-rev__vote {
  background: #fff;
  border: 1px solid #EDE6FA;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 700;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.play-rev__vote:hover { border-color: #C9B6F5; transform: translateY(-1px); }
.play-rev__vote[aria-pressed="true"] { background: #F3EEFF; border-color: #B79DF2; }
.play-rev__item {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-top: 1px solid #F6F1FD;
}
.play-rev__item:first-child { border-top: 0; }
.play-rev__ava {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  background: color-mix(in srgb, var(--av, #A87BE6) 16%, #fff);
  color: var(--av, #7B5BE0);
}
.play-rev__body { flex: 1 1 auto; min-width: 0; }
.play-rev__line b { font-size: 13px; color: #2b1b4a; }
.play-rev__copy { margin: 3px 0 0; font-size: 13.5px; line-height: 1.6; color: #5a4977; }

@media (max-width: 899px) {
  .play-doc__row { display: block; padding: 16px 0; }
  .play-doc__t { margin-bottom: 8px; }
  .play-doc__t--name { font-size: 18px; }
  .play-doc__more { margin-inline-start: 0; }
  .play-rev__avg { font-size: 30px; }
}

/* --- v3.2.0 — the reading block under the game is now stacked, one column,
   one type scale: label above, text below, everything left-aligned. */
.play-doc { margin-top: 26px; max-width: 940px; }
.play-doc__row {
  display: block;
  padding: 22px 0;
  border-top: 1px solid #F2EDFB;
}
.play-doc__row:first-child { padding-top: 0; border-top: 0; }
.play-doc__t {
  margin: 0 0 10px;
  padding: 0;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8bb8;
}
.play-doc__t--name {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #2b1b4a;
}
.play-doc__b p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: #4c3b70;
  max-width: none;
}
.play-doc__b .play-ctrls { font-weight: 600; color: #2b1b4a; }
.play-doc .play-steps { margin: 0; gap: 10px; }
.play-doc .play-steps li { font-size: 15px; line-height: 1.7; color: #4c3b70; gap: 11px; }
.play-doc .play-steps li::before {
  flex: 0 0 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 8px;
  background: #F3EEFF;
  color: #7b5be0;
  font-size: 12.5px;
}
.play-doc__more { margin: 16px 0 0; margin-inline-start: 0; }

@media (max-width: 899px) {
  .play-doc__row { padding: 18px 0; }
  .play-doc__t--name { font-size: 19px; }
  .play-doc__b p,
  .play-doc .play-steps li { font-size: 14.5px; }
}

/* v3.2.1 — cap the reading column so lines do not run the full 940px. */
.play-doc { max-width: 800px; }
.play-doc__b p { font-size: 15px; line-height: 1.8; }
.play-rev { max-width: 800px; }
@media (max-width: 899px) {
  .play-doc, .play-rev { max-width: none; }
}

/* v3.2.2 — block width follows the game frame so the rules line up; text keeps a
   comfortable measure. Everything sits on one type scale: 12px label / 15px body. */
.play-doc, .play-rev { max-width: none; }
.play-doc__b p { max-width: 76ch; }
.play-doc__t {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #6b5b8a;
  margin: 0 0 8px;
}
.play-doc__t--name { font-size: 21px; letter-spacing: -0.01em; color: #2b1b4a; margin: 0 0 6px; }
.play-doc .play-steps { gap: 8px; }
.play-doc .play-steps li { font-size: 15px; line-height: 1.6; }
.play-doc__more { margin-top: 10px; }

/* rating reads as one line: 5.0 ★★★★★ 1 rating */
.play-rev__sum { display: flex; align-items: flex-end; gap: 10px; }
.play-rev__sum > div { display: flex; flex-direction: row; align-items: center; gap: 9px; padding-bottom: 3px; }
.play-rev__avg { font-size: 32px; line-height: 0.95; }
.play-rev__count { font-size: 12.5px; }
@media (max-width: 899px) {
  .play-doc__t { font-size: 11.5px; }
}

/* v3.2.3 — no rules between the three rows: without a horizontal line there is
   nothing to look "misaligned". Spacing alone separates them, as CrazyGames does. */
.play-doc__row { border-top: 0; padding: 26px 0 0; }
.play-doc__row:first-child { padding-top: 0; }
.play-doc__b p { max-width: 70ch; }

/* --- v3.3.0 — details row behaves like plain text; reviews read like a game site:
   score + write button on one line, boxed form only when asked, or a plain list. */
.play-doc .play-steps { counter-reset: playstep; }
.play-doc .play-steps li::before {
  content: counter(playstep);
  flex: 0 0 14px;
  width: 14px;
  height: auto;
  margin: 0;
  display: inline;
  border-radius: 0;
  background: none;
  color: #a99bc4;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-align: right;
}
.play-doc .play-steps li { gap: 10px; }
.play-doc__b .play-ctrls { font-weight: 400; color: #4c3b70; font-size: 15px; }
.play-doc__more { font-size: 16px; font-weight: 700; }

/* reviews */
.play-rev__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.play-rev__open {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #7b5be0;
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.play-rev__open:hover { background: #6748cc; transform: translateY(-1px); }
.play-rev.is-open .play-rev__open { background: #F1EBFE; color: #5b3fb8; }
.play-rev__form { display: none; margin-top: 18px; }
.play-rev.is-open .play-rev__form { display: block; }
.play-rev__rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.play-rev__ratelabel { font-size: 13px; color: #8b7aa8; }
.play-rev__pick { background: none; border: 0; padding: 0 2px; font-size: 20px; line-height: 1; color: #E2D8F4; cursor: pointer; }
.play-rev__pick.is-on { color: #FFB020; }
.play-rev__votes { margin-inline-start: auto; display: flex; gap: 8px; }
.play-rev__row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; }
.play-rev__name, .play-rev__entry {
  font: inherit;
  font-size: 14px;
  color: #2b1b4a;
  background: #fff;
  border: 1px solid #E7DFF6;
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 0;
}
.play-rev__name::placeholder, .play-rev__entry::placeholder { color: #A99BC4; }
.play-rev__name:focus, .play-rev__entry:focus { outline: 2px solid #C9B6F5; outline-offset: 1px; border-color: transparent; }
.play-rev__submit {
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: #2b1b4a;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
}
.play-rev__submit:hover { background: #3b2764; }
.play-rev__msg { margin: 8px 0 0; font-size: 12.5px; color: #7b5be0; min-height: 0; }
.play-rev__list { list-style: none; margin: 16px 0 0; padding: 0; }
.play-rev__item { padding: 14px 0; }
.play-rev__ava { width: 34px; height: 34px; flex: 0 0 34px; font-size: 13.5px; }
.play-rev__line { display: flex; align-items: center; gap: 8px; }
.play-rev__line time { margin-inline-start: auto; font-size: 12px; color: #A99BC4; }
.play-rev__stars--sm { margin: 0; }
.play-rev__copy { margin: 4px 0 0; font-size: 14px; line-height: 1.65; color: #5a4977; }
.play-rev__blank { padding: 18px 0; font-size: 14px; color: #8b7aa8; }

@media (max-width: 640px) {
  .play-rev__head { flex-wrap: wrap; align-items: center; }
  .play-rev__row { grid-template-columns: 1fr; }
  .play-rev__submit { padding: 11px 18px; }
  .play-rev__votes { margin-inline-start: 0; }
}

/* v3.3.1 */
.play-rev__row { grid-template-columns: 170px minmax(0, 1fr) auto; }
@media (max-width: 640px) { .play-rev__row { grid-template-columns: 1fr; } }

/* v3.3.2 */
.play-rev__head { align-items: center; }

/* v3.3.3 — the name field is sized by the grid, not by an old fixed width. */
.play-rev__name { width: 100%; max-width: none; flex: 1 1 auto; }

/* --- v3.4.0 — the rail becomes a floating card, and the current item is marked
   by colour only: no filled pill, no deep block behind the icon. */
.sidebar {
  position: fixed;
  inset-inline-start: 10px;
  top: calc(var(--header-h) + 10px);
  bottom: 10px;
  width: 64px;
  max-height: none;
  transform: none;
  background: #fff;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 14px 34px -16px rgba(43, 27, 74, 0.3), 0 2px 6px rgba(43, 27, 74, 0.05);
  overflow: hidden;
  transition: width 0.18s ease, box-shadow 0.18s ease;
}
.sidebar:hover {
  width: var(--rail-open-w);
  box-shadow: 0 22px 48px -18px rgba(43, 27, 74, 0.34), 0 2px 8px rgba(43, 27, 74, 0.06);
}
.sidebar.is-scrolling { transform: none; box-shadow: 0 14px 34px -16px rgba(43, 27, 74, 0.3); }
body.play-body .sidebar { top: 10px; bottom: 10px; }

@media (min-width: 1024px) {
  body,
  body.play-body { padding-inline-start: calc(var(--rail-w) + 8px); }
}

/* current item: colour, not a slab */
.snav--active,
.snav--cat.snav--active,
.snav--active:hover,
.snav--cat.snav--active:hover {
  background: transparent !important;
  box-shadow: none !important;
  color: #7b5be0 !important;
}
.snav--active .snav__label,
.snav--cat.snav--active .snav__label,
.snav--active:hover .snav__label {
  color: #7b5be0 !important;
  font-weight: 800;
}
.snav--active .snav__ico,
.snav--cat.snav--active .snav__ico,
.snav--active:hover .snav__ico {
  background: none !important;
  box-shadow: none !important;
  color: #7b5be0 !important;
  filter: none !important;
  transform: none !important;
}
.snav--active .snav__ico .ico,
.snav--cat.snav--active .snav__ico .ico {
  stroke: #7b5be0 !important;
  stroke-width: 2.1;
  color: #7b5be0 !important;
  fill: none !important;
}
.snav--active .snav__ico::after,
.snav--cat.snav--active .snav__ico::after { display: none !important; }

/* v3.4.1 — beat the old filled-pill rule (it carried a higher specificity). */
.sidebar .snav.snav--active,
.sidebar .snav.snav--cat.snav--active,
.sidebar .snav.snav--active:hover,
.sidebar .snav.snav--cat.snav--active:hover {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 14px;
}
.sidebar .snav.snav--active .snav__label,
.sidebar .snav.snav--cat.snav--active .snav__label { color: #7b5be0 !important; }
.sidebar .snav.snav--active .snav__ico,
.sidebar .snav.snav--cat.snav--active .snav__ico {
  background: none !important;
  box-shadow: none !important;
  color: #7b5be0 !important;
}

/* v3.4.2 — the floating card is a desktop idea only; phones keep the drawer. */
@media (max-width: 1023px) {
  .sidebar {
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(276px, 82vw);
    border-radius: 0 22px 22px 0;
    transform: translateX(-105%);
    box-shadow: 0 18px 45px -22px rgba(43, 27, 74, 0.4);
    transition: transform 0.22s ease;
  }
  [dir="rtl"] .sidebar { transform: translateX(105%); border-radius: 22px 0 0 22px; }
  html.nav-open .sidebar { transform: none; }
  [dir="rtl"] html.nav-open .sidebar { transform: none; }
  .sidebar:hover { width: min(276px, 82vw); }
}

/* --- v3.5.0 — a compact floating rail: it is only as tall as its icons,
   sits level in the viewport, and never shows a scrollbar that shifts the
   icons around. */
@media (min-width: 1024px) {
  .sidebar {
    top: 12px;
    bottom: 12px;
    height: fit-content;
    margin-block: auto;
    max-height: calc(100vh - 24px);
    width: 60px;
    padding: 8px 0;
    border-radius: 20px;
    overflow: hidden;
    transform: none !important;
  }
  .sidebar.is-scrolling { transform: none !important; }
  .sidebar:hover { width: 204px; }
  .sidebar__scroll {
    padding: 0 6px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .sidebar__scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .sidebar__title { margin: 9px 8px 3px; font-size: 9.5px; }
  .sidebar__sep { margin: 6px 8px; }
  .sidebar__foot { margin-top: 2px; padding: 6px 8px 0; }
  .sidebar__ver { font-size: 9px; }
  .snav-list { gap: 2px; }
  .snav-list--cats { gap: 2px; }
  .snav,
  .snav--cat,
  .snav-more > summary,
  .snav-more--cats > summary {
    height: 42px;
    min-height: 42px;
    border-radius: 12px;
  }
  .snav__ico .ico { width: 22px; height: 22px; }
  body,
  body.play-body { padding-inline-start: calc(var(--rail-w) + 2px); }
}

/* v3.5.1 — the icon stroke follows the item colour, so the current item is a
   purple icon on white instead of a white icon on white. */
.sidebar svg.ico,
.sidebar .snav--active svg.ico,
.sidebar .snav--cat svg.ico,
.sidebar .snav-more > summary svg.ico {
  stroke: currentColor !important;
  fill: none !important;
}
.sidebar .snav--active,
.sidebar .snav--active:hover { color: #7b5be0 !important; }

/* v3.5.2 — the SVG had its own white colour, so currentColor was still white.
   Let every rail icon inherit the row colour instead. */
.sidebar .snav__ico svg.ico,
.sidebar .snav-more > summary svg.ico {
  color: inherit !important;
  stroke: currentColor !important;
  fill: none !important;
}

/* v3.5.3 — stop relying on currentColor for the rail; paint the strokes explicitly. */
.sidebar .snav__ico svg.ico,
.sidebar .snav-more > summary svg.ico,
.sidebar .snav-more--cats > summary svg.ico {
  stroke: #6b5b8a !important;
  fill: none !important;
  color: #6b5b8a !important;
}
.sidebar .snav:hover .snav__ico svg.ico,
.sidebar .snav-more > summary:hover svg.ico {
  stroke: #2b1b4a !important;
  color: #2b1b4a !important;
}
.sidebar .snav--active .snav__ico svg.ico,
.sidebar .snav--cat.snav--active .snav__ico svg.ico {
  stroke: #7b5be0 !important;
  color: #7b5be0 !important;
  stroke-width: 2.1;
}

/* v3.5.4 — one notch tighter: 38px rows, narrower expanded panel. */
@media (min-width: 1024px) {
  .sidebar { width: 58px; padding: 6px 0; }
  .sidebar:hover { width: 178px; }
  .snav, .snav--cat, .snav-more > summary, .snav-more--cats > summary {
    height: 38px;
    min-height: 38px;
    border-radius: 11px;
  }
  .snav__ico .ico { width: 21px; height: 21px; }
  .sidebar__title { margin: 7px 8px 2px; font-size: 9px; }
  .sidebar__sep { margin: 5px 8px; }
  .sidebar__foot { padding: 4px 8px 0; }
}

/* v3.5.5 — brand lockup back on the play page (top-left), so players know whose site they're on. */
.play-bar a.play-brand {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
  text-decoration: none;
  color: #2b1b4a;
  flex: 0 0 auto;
}
.play-brand .brand-lockup { gap: 9px; }
.play-brand:hover .mark { transform: rotate(-10deg) scale(1.06); }
.play-bar__div {
  flex: 0 0 auto;
  width: 1px;
  height: 22px;
  background: #e7dcf5;
  border-radius: 1px;
}
@media (max-width: 640px) {
  .play-brand .brand-text { display: inline; font-size: 18px; }
  .play-brand .brand-sub { display: inline; font-size: 12px; margin-left: 4px; }
  .play-brand .mark { width: 26px; height: 26px; }
  .play-bar__div { display: none; }
}

/* v3.5.8 — reviews: the form is always visible, a touch roomier; the toggle goes away. */
.play-rev .play-rev__open { display: none !important; }
.play-rev .play-rev__form { display: block !important; margin-top: 18px; }
.play-rev { padding: 26px clamp(18px, 2.4vw, 30px) 20px; }
.play-rev .play-rev__rate { gap: 12px 18px; }
.play-rev .play-rev__pick { font-size: 24px; padding: 0 3px; }
.play-rev .play-rev__name,
.play-rev .play-rev__entry { font-size: 15px; padding: 12px 14px; border-radius: 12px; }
.play-rev .play-rev__submit { padding: 12px 22px; border-radius: 12px; font-size: 14.5px; }
.play-rev__row { margin-top: 14px; }
@media (max-width: 640px) {
  .play-rev .play-rev__pick { font-size: 22px; }
  .play-rev .play-rev__name,
  .play-rev .play-rev__entry { padding: 11px 13px; }
}

/* v3.5.9 — reviews follow the big sites: score block on the left, thumbs on
   the right of the header, and the form below stays a clean two-row band. */
.play-rev .play-rev__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 20px;
  flex-wrap: wrap;
}
.play-rev .play-rev__votes { margin-inline-start: auto; display: flex; gap: 10px; }
.play-rev .play-rev__vote {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid #E7DFF6;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #4c3b70;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.play-rev .play-rev__vote span[aria-hidden] { font-size: 15px; line-height: 1; }
.play-rev .play-rev__vote em { font-style: normal; font-weight: 600; color: #6b5b8a; }
.play-rev .play-rev__vote b { font-weight: 800; color: #7b5be0; }
.play-rev .play-rev__vote:hover { border-color: #c9b6f5; background: #fbf8ff; transform: translateY(-1px); }
.play-rev .play-rev__vote[aria-pressed="true"] { border-color: #7b5be0; background: #F1EBFE; }
.play-rev .play-rev__rate { justify-content: flex-start; }
@media (max-width: 640px) {
  .play-rev .play-rev__head { gap: 14px; }
  .play-rev .play-rev__votes { margin-inline-start: 0; width: 100%; }
  .play-rev .play-rev__vote { flex: 1 1 0; justify-content: center; }
}

/* the play page now carries the same footer as everywhere else */
body.play-body .site-footer { margin-top: 40px; }

/* v3.5.10 — with no ratings yet the big em dash reads like a stray rule; drop it
   and let the grey stars plus the count carry the state. */
.play-rev .play-rev__avg[data-empty] { display: none; }

/* v3.5.13 — a hovered rail row grows: icon scales up, label steps up a notch.
   Nothing else moves, and the row still does not get a filled background. */
@media (min-width: 1024px) {
  .sidebar .snav__ico { transition: transform .18s cubic-bezier(.34,1.4,.64,1); }
  .sidebar .snav:hover .snav__ico { transform: scale(1.18); }
  .sidebar .snav { transition: color .15s ease; }
  .sidebar:hover .snav:hover > span:not(.snav__ico),
  .sidebar:hover .snav--cat:hover > span:not(.snav__ico) { font-size: 14.8px; font-weight: 800; }
  .sidebar .snav-more > summary { transition: transform .18s cubic-bezier(.34,1.4,.64,1); }
  .sidebar .snav-more > summary:hover svg.ico { transform: scale(1.18); }
}

/* v3.5.14 — the scale has to sit on the glyph itself: an older
   .snav--cat:hover rule pins the wrapper's transform with !important. */
@media (min-width: 1024px) {
  .sidebar .snav svg.ico { transition: transform .18s cubic-bezier(.34,1.4,.64,1); }
  .sidebar .snav:hover svg.ico { transform: scale(1.2) !important; }
  .sidebar .snav-more > summary:hover svg.ico { transform: scale(1.16) !important; }
}

/* v3.5.17 — the contact page: one email, nothing else. */
.contact-page .contact-page__lead { margin-top: 18px; font-size: 16px; color: #4c3b70; max-width: 62ch; }
.contact-page .contact-page__mail { margin: 30px 0 12px; }
.contact-page .contact-page__mail a {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #7b5be0;
  text-decoration: none;
  word-break: break-all;
}
.contact-page .contact-page__mail a:hover { text-decoration: underline; text-underline-offset: 7px; }
.contact-page .contact-page__note { color: #6b5b8a; font-size: 14.5px; }

/* ==========================================================================
   v3.7.0 — page wash.
   The site used to sit on plain white, which made every card edge disappear.
   A very pale tint gives the white cards something to float on without
   touching text contrast (all washes stay above 0.96 luminance).
   Only the page background moves; cards, header and footer stay white.
   ========================================================================== */
:root { --c-bg: #ffffff; }

body {
  background: var(--c-bg);
  transition: background-color .4s ease;
}

body.theme-white { --c-bg: #ffffff; }
body.theme-soda  { --c-bg: #eff9f7; }
body.theme-lime  { --c-bg: #f5fae6; }
body.theme-lemon { --c-bg: #fff8e0; }
body.theme-peach { --c-bg: #fff2ea; }
body.theme-blush { --c-bg: #fff0f5; }
body.theme-taro  { --c-bg: #f5f0fc; }
body.theme-sky   { --c-bg: #eef5fd; }

/* the sticky header keeps its own white, but a hairline tint at the very top
   stops it from looking pasted onto the wash */
body[class*="theme-"]:not(.theme-white) .topbar { border-bottom-color: rgba(43, 27, 74, .06); }

/* ---------------------------------------------------------- v3.8.0 accounts */
.dev-idbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1px solid var(--c-border);border-radius:14px;padding:12px 14px;margin:0 0 14px;font-size:14px;color:var(--c-muted);background:#fff}
.dev-idbar.is-out{border-style:dashed}
.dev-idbar.is-in{border-color:var(--c-border-strong);background:var(--c-surface-soft);color:var(--c-text)}
.dev-idbar__acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dev-idbar__link{font-weight:700;color:var(--c-text);text-decoration:underline;text-underline-offset:3px}

.authpage{padding-top:clamp(26px,5vw,54px);padding-bottom:68px}
.authpage__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,318px);gap:clamp(20px,4vw,44px);align-items:start}
@media (max-width:880px){.authpage__grid{grid-template-columns:minmax(0,1fr)}}
.authcard{background:#fff;border:1px solid var(--c-border);border-radius:20px;padding:clamp(20px,3vw,34px)}
.authcard h1{font-size:clamp(25px,3.4vw,33px);margin:8px 0 10px;letter-spacing:-.01em}
.authcard__sub{color:var(--c-muted);margin:0 0 18px;max-width:46ch;line-height:1.6}
.authcard__forgot{font-size:14px;margin:-2px 0 6px}
.authcard__forgot a,.authcard__alt a{color:var(--c-text);font-weight:700}
.authcard__who{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:var(--c-surface-soft);border:1px solid var(--c-border-strong);border-radius:12px;padding:10px 12px;font-size:13px;margin:0 0 16px}
.authcard__alt{margin:16px 0 0;font-size:14px;color:var(--c-muted)}
.field__row{display:flex;gap:8px;align-items:stretch}
.field__row input{flex:1 1 auto;min-width:0}
.btn--sm{padding:8px 13px;font-size:13px}
.authside{display:grid;gap:20px;padding-top:6px}
.authside__item b{display:block;font-size:15px;margin-bottom:5px}
.authside__item span{color:var(--c-muted);font-size:14px;line-height:1.6}
.authside__note{font-size:13px;color:var(--c-muted);border-top:1px solid var(--c-border);padding-top:14px;margin:0}
.authpage__back{margin-top:24px;font-size:14px}
.authpage__back a{color:var(--c-muted);font-weight:700}
.dev-ok{color:#1d7a52;font-weight:700;margin:10px 0 0;font-size:14px}
@media (max-width:560px){
  .dev-idbar{font-size:13px;padding:11px 12px}
  .field__row{flex-direction:column}
  .field__row .btn{width:100%}
}

/* account form fields (self-contained; does not inherit .dev-form) */
.authform{display:block;max-width:none;padding:0;background:transparent;border:0;box-shadow:none}
.authform .field{display:grid;gap:6px;margin:0 0 14px}
.authform .field>span{font-size:12.5px;font-weight:800;color:var(--c-muted)}
.authform .field small{font-size:11.5px;line-height:1.5;color:#8b7ba8}
.authform input,.authform select{width:100%;font:inherit;font-size:15px;color:var(--c-text);background:#fff;border:1px solid var(--c-border-strong);border-radius:12px;padding:12px 13px}
.authform input:focus,.authform select:focus{outline:2px solid var(--c-grape);outline-offset:1px;border-color:var(--c-grape)}
.authform input[readonly]{background:var(--c-surface-soft);color:var(--c-muted)}
.authform .field__row{display:flex;gap:8px;align-items:stretch}
.authform .field__row input{flex:1 1 auto;min-width:0}
@media (max-width:560px){.authform .field__row{flex-direction:column}.authform .field__row .btn{width:100%}}

/* hidden must win over the flex/grid display of the new components */
.dev-idbar[hidden],.authcard__who[hidden],#authErr[hidden],#authOk[hidden]{display:none!important}
.authform .field__row .btn{white-space:nowrap;flex:0 0 auto}


/* -------------------------------------------------- v3.9.0 developer program */
.dev-crumb{margin:0 0 12px;font-size:13.5px}
.dev-crumb a{color:var(--c-muted);font-weight:700}
.plan-hero .dev-lede{max-width:60ch}
.plan-steps{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:780px){.plan-steps{grid-template-columns:minmax(0,1fr)}}
.plan-step{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--c-border);border-radius:18px;padding:18px}
.plan-step__n{flex:0 0 40px;height:40px;border-radius:12px;display:grid;place-items:center;font-weight:900;background:var(--c-surface-soft);color:var(--c-text);font-size:15px}
.plan-step h3{margin:3px 0 6px;font-size:16px}
.plan-step p{margin:0;color:var(--c-muted);font-size:14px;line-height:1.6}
.plan-split{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:clamp(18px,3vw,36px);align-items:center}
@media (max-width:780px){.plan-split{grid-template-columns:minmax(0,1fr)}}
.plan-list{margin:0;padding-left:20px;color:var(--c-muted);line-height:1.8;font-size:15px}
.plan-split__card{background:#fff;border:1px solid var(--c-border);border-radius:20px;padding:24px;text-align:center}
.plan-split__card b{display:block;font-size:44px;line-height:1;letter-spacing:-.02em}
.plan-split__card span{display:block;margin-top:8px;color:var(--c-muted);font-size:13px}
.plan-faq{margin:12px 0 0;display:grid;gap:12px}
.plan-faq>div{background:#fff;border:1px solid var(--c-border);border-radius:16px;padding:16px 18px}
.plan-faq dt{font-weight:800;margin-bottom:6px}
.plan-faq dd{margin:0;color:var(--c-muted);font-size:14.5px;line-height:1.65}
.plan-end__box{background:#fff;border:1px solid var(--c-border);border-radius:22px;padding:clamp(22px,4vw,40px);text-align:center}
.plan-end__box h2{margin:0 0 10px}
.plan-end__box p{color:var(--c-muted);margin:0 auto 18px;max-width:52ch}
.plan-end__box .hero-actions{justify-content:center}
.plan-end__mail{margin:16px 0 0;font-size:13px}
.plan-end__mail a{color:var(--c-muted);font-weight:700}

/* -------------------------------------------------- v3.9.2 header dev pill */
.dev-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 15px;
  margin-inline-start: 8px;
  border: 1.5px solid var(--c-text);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text);
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.dev-pill:hover { background: var(--c-text); color: #fff; }
.dev-pill__ico { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .dev-pill { padding: 0 11px; margin-inline-start: 6px; }
  .dev-pill__t { display: none; }
}
@media (max-width: 380px) {
  .dev-pill { display: none; }
}

/* -------------------------------------------------- v3.9.3 header: plain text */
.lang-picker > summary {
  border: 0;
  background: transparent;
  padding: 6px 4px;
  min-height: 0;
  border-radius: 8px;
  font-weight: 700;
  gap: 7px;
}
.lang-picker > summary:hover,
.lang-picker[open] > summary {
  border-color: transparent;
  background: transparent;
  color: var(--accent);
}
.dev-pill {
  border: 0;
  background: transparent;
  height: auto;
  min-height: 0;
  padding: 6px 4px;
  margin-inline-start: 10px;
  border-radius: 8px;
  gap: 7px;
  font-weight: 700;
  font-size: 13.5px;
}
.dev-pill:hover { background: transparent; color: var(--accent); }
.dev-pill__ico { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .dev-pill { padding: 6px 2px; margin-inline-start: 8px; }
  .dev-pill__t { display: none; }
}

.sidebar__sep--tight { margin: 4px 10px 6px; }

/* -------------------------------------------------- v3.9.3 dev program, bigger */
.plan-hero { padding-block: clamp(40px, 7vw, 84px) clamp(26px, 4vw, 44px); }
.plan-hero h1 {
  font-size: clamp(31px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 12px 0 16px;
  max-width: 18ch;
}
.plan-hero .dev-lede { font-size: clamp(15px, 1.5vw, 18px); max-width: 56ch; }
.plan-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: clamp(18px, 2.4vw, 26px);
  border-top: 1px solid var(--c-border);
  max-width: 640px;
}
.plan-stats div { display: flex; flex-direction: column; gap: 3px; }
.plan-stats b { font-size: clamp(20px, 2.6vw, 30px); line-height: 1; letter-spacing: -0.02em; }
.plan-stats span { font-size: 12px; color: var(--c-muted); font-weight: 600; }

.money-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 620px) { .money-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.money-cell {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.money-cell small { font-size: 13px; color: var(--c-muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.money-cell b { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; }
.money-note { margin: 14px 0 0; font-size: 13px; color: var(--c-muted); }
.money-note a { color: var(--c-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* the agreement checkbox on the sign-up form */
.agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-text);
  cursor: pointer;
}
.agree input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--accent); flex: 0 0 auto; }
.agree a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* the agreement page */
.legalpage { padding-block: clamp(28px, 5vw, 56px) 64px; max-width: 1080px; }
.legalpage__head { max-width: 68ch; }
.legalpage__head h1 { font-size: clamp(26px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 10px 0 8px; }
.legalpage__updated { font-size: 12.5px; color: var(--c-muted); margin: 0 0 14px; }
.legalpage__intro { font-size: 15.5px; line-height: 1.7; color: var(--c-text); margin: 0; }
.legalpage__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: clamp(20px, 3vw, 34px); align-items: start; }
@media (max-width: 860px) { .legalpage__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
.legal-toc { position: sticky; top: calc(var(--header-h) + 16px); border-inline-start: 2px solid var(--c-border); padding-inline-start: 14px; }
@media (max-width: 860px) { .legal-toc { position: static; border: 0; padding: 0; border-bottom: 1px solid var(--c-border); padding-bottom: 12px; } }
.legal-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.legal-toc a { font-size: 13px; color: var(--c-muted); font-weight: 600; }
.legal-toc a:hover { color: var(--c-text); }
.legal-body { max-width: 72ch; }
.legal-sec { padding-block: 0 22px; }
.legal-sec h2 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.legal-sec p { margin: 0 0 10px; font-size: 15px; line-height: 1.75; color: var(--c-text); }
.legal-note { font-size: 13px; color: var(--c-muted); border-top: 1px solid var(--c-border); padding-top: 14px; }
.legal-back { margin-top: 8px; }
.legal-back a { font-weight: 700; color: var(--c-muted); }

.plan-promo {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--c-text);
  background: var(--c-surface-soft);
  border-radius: 0 10px 10px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-text);
}

/* v3.9.6 — sign-up consent screen: a written document, not a card list */
html.gate-open,
html.gate-open body { overflow: hidden; }
.gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.4vw, 40px);
  background: rgba(26, 16, 42, 0.52);
  overflow: auto;
}
.gate__doc {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 2 * clamp(10px, 2.4vw, 40px));
  background: #fff;
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(26, 16, 42, 0.3);
  overflow: hidden;
}
.gate__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px clamp(18px, 2.6vw, 34px);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.gate__brand { color: var(--c-text); letter-spacing: 0.1em; }
.gate__titlebar {
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.6vw, 34px) 10px;
  border-bottom: 1px solid var(--c-border);
}
.gate__titlebar h2 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.gate__lead {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--c-muted);
}
.gate__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: clamp(14px, 2vw, 20px) clamp(18px, 2.6vw, 34px) 18px;
  font-size: 13.4px;
  line-height: 1.82;
  color: var(--c-text);
}
.gate__body p {
  margin: 0 0 9px;
  text-align: justify;
  word-break: break-word;
}
.gate__body p:first-child { text-indent: 0; }
.gate__cl { margin: 15px 0 0; }
.gate__cl h3 {
  margin: 0 0 5px;
  font-size: 13.6px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.gate__fine {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-muted);
}
.gate__end {
  flex: 0 0 auto;
  padding: 13px clamp(18px, 2.6vw, 34px) 15px;
  border-top: 1px solid var(--c-border-strong);
  background: #fff;
}
.gate__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  cursor: pointer;
}
.gate__check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--c-berry);
}
.gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}
.gate .btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.agree--done {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  color: var(--c-muted);
}
.agree--done svg { flex: 0 0 auto; color: var(--c-aqua); }
@media (max-width: 560px) {
  .gate { padding: 0; }
  .gate__doc {
    max-width: none;
    max-height: 100vh;
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .gate__body { font-size: 13.6px; line-height: 1.85; }
  .gate__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* v3.9.6 — spacing between the preamble paragraphs on the terms page */
.legalpage__intro + .legalpage__intro { margin-top: 8px; }
.gate__cl h3 { font-size: 14.2px; letter-spacing: 0.005em; }

/* v3.9.6 — the document column: narrower measure, indented Chinese paragraphs */
.gate__body > p,
.gate__cl { max-width: 620px; margin-left: auto; margin-right: auto; }
html[lang="zh"] .gate__body p,
html[lang="zh-hant"] .gate__body p { text-indent: 2em; }
.gate__fine { max-width: 620px; margin-left: auto; margin-right: auto; }

/* v3.9.7 — one primary button everywhere: ink on white, no rotating accent */
.gate .btn[disabled] {
  background: var(--c-surface-soft);
  color: #9A8CB5;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
.gate .btn[disabled]:hover { background: var(--c-surface-soft); transform: none; box-shadow: none; }

/* v3.9.8 — sign-up that fits on one screen: terms in a small scroll box,
   the tick above the fields, two columns for the short fields */
.authpage { padding-top: clamp(16px, 2.6vw, 30px); }
.authpage__grid {
  grid-template-columns: minmax(0, 620px) minmax(0, 290px);
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
}
.authcard { padding: clamp(18px, 2.2vw, 26px); }
.authcard h1 { font-size: clamp(23px, 2.6vw, 29px); margin: 6px 0 8px; }
.authcard__sub { margin: 0 0 12px; font-size: 14px; }
.authform--join .field { margin: 0 0 10px; gap: 5px; }
.authform--join .field > span { font-size: 12px; }
.authform--join input { padding: 10px 12px; font-size: 14.5px; }
.authform--join .field small { font-size: 11px; }
.authrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 14px;
}
.termsbox {
  margin: 0 0 10px;
  border: 1px solid var(--c-border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-surface-soft);
}
.termsbox__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
}
.termsbox__head b { font-size: 12.5px; letter-spacing: 0.02em; }
.termsbox__head span { font-size: 11px; color: var(--c-muted); }
.termsbox__scroll {
  height: 128px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 12.2px;
  line-height: 1.72;
  color: var(--c-text);
  background: #fff;
}
.termsbox__scroll p { margin: 0 0 6px; text-align: justify; }
.termsbox__scroll h4 { margin: 8px 0 3px; font-size: 12.4px; font-weight: 800; }
.termsbox__fine {
  margin: 8px 0 0 !important;
  padding-top: 6px;
  border-top: 1px solid var(--c-border);
  font-size: 11.4px;
  color: var(--c-muted);
}
html[lang="zh"] .termsbox__scroll p,
html[lang="zh-hant"] .termsbox__scroll p { text-indent: 2em; }
.agree {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.agree input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; accent-color: var(--c-berry); }
.agree a { color: var(--c-text); font-weight: 700; }
.dev-submit .btn { width: 100%; }
.authform--join + .authcard__alt { margin-top: 10px; }
@media (max-width: 780px) {
  .authpage__grid { grid-template-columns: minmax(0, 1fr); }
  .authrow { grid-template-columns: minmax(0, 1fr); }
}

/* v3.9.8b — locked button stays legible, code button lines up with its field */
.dev-submit .btn[disabled],
.dev-submit .btn[disabled]:hover {
  background: #F3EFFB;
  border-color: #E2D9F2;
  color: #7E6D9E;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.authform--join .field__row { gap: 8px; align-items: stretch; }
.authform--join .field__row .btn {
  flex: 0 0 auto;
  padding: 0 16px;
  font-size: 13.5px;
  white-space: nowrap;
}
.termsbox__scroll {
  height: 120px;
  box-shadow: inset 0 -16px 12px -12px rgba(43, 27, 74, .16);
}


/* v3.9.9 — /developers/join/ as a portal page: pitch on the left, one short
   card on the right. No terms wall; one tick above the button, text linked. */
.devhub { padding-top: clamp(22px, 4vw, 58px); padding-bottom: clamp(40px, 5vw, 72px); }
.devhub__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 452px);
  gap: clamp(26px, 5vw, 84px);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.devhub__intro { max-width: 470px; }
.devhub__tag {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #E82E80;
}
.devhub__pitch {
  margin: 0 0 14px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--c-text);
}
.devhub__lead {
  margin: 0 0 26px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--c-muted);
}
.devhub__list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 15px; }
.devhub__list li { position: relative; padding-left: 27px; }
.devhub__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--c-yellow);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--c-yellow);
}
.devhub__list li:nth-child(2)::before { background: var(--c-berry); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--c-berry); }
.devhub__list li:nth-child(3)::before { background: var(--c-aqua); box-shadow: inset 0 0 0 3px #fff, 0 0 0 1.5px var(--c-aqua); }
.devhub__list b { display: block; font-size: 14.5px; font-weight: 750; margin-bottom: 2px; }
.devhub__list span { display: block; font-size: 13.5px; line-height: 1.55; color: var(--c-muted); }
.devhub__note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-muted);
}
.devhub__back { margin: 18px 0 0; font-size: 13.5px; }
.devhub__back a { color: var(--c-muted); font-weight: 700; }
.devhub__card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 1px 2px rgba(43, 27, 74, .05), 0 12px 32px -28px rgba(43, 27, 74, .5);
}
.devhub__card h1 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -.015em;
}
.devhub__card .authcard__who { margin: 0 0 14px; }
.devhub__card .authcard__alt { margin: 14px 0 0; font-size: 13.5px; }
.devhub__card .dev-eyebrow { display: none; }
.authform--join .field { margin: 0 0 12px; gap: 5px; }
.authform--join .field > span { font-size: 12.5px; font-weight: 650; }
.authform--join input { padding: 11px 13px; font-size: 14.5px; border-radius: 10px; }
.authform--join .field small { font-size: 11.5px; }
.authform--join .field__row { gap: 8px; }
.authform--join .field__row .btn {
  flex: 0 0 auto;
  padding: 0 15px;
  font-size: 13.5px;
  border-radius: 10px;
  white-space: nowrap;
}
.passwrap { position: relative; display: block; }
.passwrap input { padding-right: 44px; width: 100%; }
.pass-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9A8CB5;
  cursor: pointer;
}
.pass-eye:hover { color: var(--c-text); background: var(--c-surface-soft); }
.pass-eye.is-on { color: var(--c-text); }
.devhub__card .agree { margin: 14px 0 16px; font-size: 13px; }
.devhub__card .dev-submit .btn { width: 100%; }
@media (max-width: 900px) {
  .devhub__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; }
  .devhub__intro { max-width: none; }
  .devhub__pitch { font-size: clamp(25px, 6.4vw, 32px); }
  .devhub__lead { margin-bottom: 18px; }
  .devhub__list { gap: 12px; margin-bottom: 18px; }
  .devhub__note { display: none; }
}



