﻿:root {
  color-scheme: dark;
  font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  background: #12151d;
  color: #fff;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 12%, rgba(93, 158, 255, 0.22), transparent 28%),
    linear-gradient(160deg, #141924 0%, #222333 52%, #171a21 100%);
}

body.lobby-page {
  display: block;
  min-height: 100dvh;
  overflow: auto;
  touch-action: pan-y;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  background:
    radial-gradient(circle at 18% 8%, rgba(117, 191, 255, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 203, 98, 0.16), transparent 26%),
    linear-gradient(165deg, #111821 0%, #202833 54%, #14171f 100%);
}

.lobby-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 18px calc(32px + env(safe-area-inset-bottom));
}

.lobby-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 170px) minmax(170px, 210px) minmax(220px, 360px);
  gap: 18px;
  align-items: end;
  min-height: clamp(260px, 42dvh, 420px);
  padding: 28px 0 18px;
}

.lobby-kicker {
  margin: 0 0 8px;
  color: #ffd36b;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-lockup {
  display: grid;
  grid-template-columns: clamp(78px, 10vw, 116px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  width: min(100%, 690px);
}

.brand-logo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 16px rgba(62, 204, 255, 0.24));
}

.brand-copy {
  min-width: 0;
}

.lobby-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.95;
}

.brand-byline {
  margin: 8px 0 0;
  color: #ffcf63;
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 1000;
}

.lobby-subtitle {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.lobby-subtitle:empty {
  display: none;
}

.lobby-mascot {
  position: relative;
  align-self: end;
  min-height: 206px;
  pointer-events: none;
}

.lobby-mascot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 80%;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(8px);
  transform: translateX(-50%);
}

.lobby-mascot img {
  position: relative;
  z-index: 1;
  display: block;
  object-fit: contain;
}

.lobby-mascot-main {
  width: min(100%, 176px);
  max-height: 220px;
  margin: 0 auto;
  transform-origin: 50% 100%;
  animation: mascot-breathe 3.6s ease-in-out infinite;
}

.lobby-mascot-side {
  position: absolute;
  bottom: 14px;
  width: 72px;
  max-height: 96px;
  opacity: 0.98;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34));
}

.lobby-mascot-fia {
  left: -16px;
  z-index: 2;
  transform: rotate(-6deg);
}

.lobby-mascot-nori {
  right: -18px;
  z-index: 0;
  transform: rotate(5deg);
}

@keyframes mascot-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.025);
  }
}

.language-picker {
  display: grid;
  gap: 8px;
  align-self: end;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-picker span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.language-picker select {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(15, 20, 28, 0.96);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.language-picker option {
  color: #111821;
}

.lobby-wallet {
  display: grid;
  align-self: end;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(129, 221, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(95, 214, 255, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.lobby-wallet span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.lobby-wallet strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #9eeaff;
  font-size: 30px;
  line-height: 1;
}

.lobby-wallet img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(107, 220, 255, 0.52));
}

.lobby-feature {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.lobby-feature img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.lobby-feature span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.lobby-feature strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.1;
}

.lobby-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.lobby-stats div {
  min-height: 78px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.lobby-stats strong {
  display: block;
  color: #ffcf63;
  font-size: 28px;
  line-height: 1;
}

.lobby-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
}

.daily-reward {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.6fr);
  gap: 10px;
  align-items: center;
  min-height: 98px;
  margin: 0 0 10px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 107, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 207, 99, 0.22), rgba(126, 202, 255, 0.13)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.daily-reward-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.daily-reward-copy span {
  color: #ffcf63;
  font-size: 12px;
  font-weight: 1000;
}

.daily-reward-copy strong {
  overflow-wrap: anywhere;
  font-size: clamp(19px, 3vw, 28px);
  line-height: 1.05;
}

.daily-reward-copy small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.daily-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

.daily-day {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 62px;
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.48);
  color: inherit;
  font: inherit;
  text-align: center;
}

.daily-day:not(:disabled) {
  cursor: pointer;
}

.daily-day span,
.daily-day small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.daily-day b {
  color: #9eeaff;
  font-size: 16px;
  line-height: 1;
}

.daily-day.current {
  border-color: rgba(129, 221, 255, 0.94);
  background: linear-gradient(180deg, rgba(95, 214, 255, 0.3), rgba(255, 255, 255, 0.1));
  box-shadow: 0 0 0 2px rgba(95, 214, 255, 0.12) inset;
}

.daily-day.claimable {
  border-color: rgba(255, 207, 99, 0.96);
  background: linear-gradient(180deg, rgba(255, 207, 99, 0.36), rgba(95, 214, 255, 0.16));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 207, 99, 0.14) inset;
}

.daily-day.claimable:active {
  transform: translateY(2px);
}

.daily-day.claimed:not(.current) {
  opacity: 0.72;
}

.daily-day.claimed small {
  color: #7dff8a;
}

.parent-trust-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(129, 221, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(129, 221, 255, 0.13), rgba(255, 207, 99, 0.1)),
    rgba(255, 255, 255, 0.065);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.parent-trust-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.parent-trust-copy span {
  color: #9eeaff;
  font-size: 12px;
  font-weight: 1000;
}

.parent-trust-copy h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
}

.parent-trust-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.trust-report-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  margin-top: 4px;
  padding: 9px 12px;
  border: 1px solid rgba(158, 234, 255, 0.42);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.32);
  color: #ffffff;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.trust-report-link:hover,
.trust-report-link:focus-visible {
  border-color: rgba(255, 207, 99, 0.72);
  background: rgba(255, 207, 99, 0.14);
}

.parent-trust-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 8px;
}

.parent-trust-points div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(10, 15, 23, 0.34);
}

.parent-trust-points strong {
  color: #ffcf63;
  font-size: 15px;
  line-height: 1.12;
}

.parent-trust-points small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.34;
}

.lobby-search-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 4px 0 10px;
}

.kids-portal {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #102b36;
  box-shadow: 0 18px 42px rgba(4, 13, 22, 0.32);
}

.kids-portal > img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
}

.kids-portal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 34px;
  color: #f8fffd;
}

.kids-portal-copy > span {
  color: #8ff0c0;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kids-portal-copy h2,
.kids-portal-copy p {
  margin: 0;
}

.kids-portal-copy h2 {
  font-size: clamp(1.65rem, 4vw, 2.65rem);
}

.kids-portal-copy p {
  max-width: 44ch;
  color: #d9e9e8;
  line-height: 1.65;
}

.kids-portal-copy a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 7px;
  background: #ffd866;
  color: #1f2b2a;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 6px 0 #b7791f;
}

body[data-audience="general"] .general-trust-strip {
  display: none;
}

body[data-audience="kids"] .lobby-wallet,
body[data-audience="kids"] .daily-reward,
body[data-audience="kids"] .challenge-spotlight-section {
  display: none !important;
}

.kids-lobby-page {
  background: #123047;
}

.kids-lobby-hero {
  background: #17455a;
}

.kids-back-link {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  background: #f8fbff;
  color: #17455a;
  font-weight: 900;
  text-decoration: none;
}

.kids-promise {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(122, 235, 194, 0.42);
  border-radius: 8px;
  background: #0f3b43;
  color: #f6fffb;
}

.kids-promise span {
  color: #8ff0c0;
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.kids-promise h2,
.kids-promise p {
  margin: 6px 0 0;
}

.kids-promise p,
.kids-promise li {
  color: #d9efea;
  line-height: 1.6;
}

.kids-promise ul {
  display: grid;
  align-content: center;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.kids-age-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}

.kids-age-filter button {
  width: 100%;
}

@media (max-width: 720px) {
  .kids-portal {
    grid-template-columns: 1fr;
  }

  .kids-portal > img {
    min-height: 190px;
    aspect-ratio: 16 / 9;
  }

  .kids-portal-copy {
    padding: 22px;
  }

  .kids-promise {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.lobby-search {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 950;
}

.lobby-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 220, 122, 0.28);
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(9, 13, 24, 0.64);
  color: #fff;
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.16);
}

.lobby-search input::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.lobby-search input:focus {
  outline: 3px solid rgba(255, 220, 122, 0.32);
  border-color: rgba(255, 220, 122, 0.78);
}

.quick-pick-btn {
  min-width: 132px;
  min-height: 48px;
  border: 1px solid rgba(255, 220, 122, 0.56);
  border-radius: 16px;
  padding: 0 16px;
  background: #ffcf63;
  color: #24180a;
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 7px 0 #a86620, 0 14px 28px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.quick-pick-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.quick-pick-btn:active {
  transform: translateY(3px);
  box-shadow: 0 4px 0 #a86620, 0 9px 18px rgba(0, 0, 0, 0.18);
}

.age-filter {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 4px 0 10px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(10px);
}

.topic-filter {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 0 0 10px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(10px);
}

.skill-filter {
  display: flex;
  gap: 8px;
  padding: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  border: 1px solid rgba(255, 220, 122, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 220, 122, 0.12), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(10px);
}

.library-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 8px;
}

.library-tabs button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
  gap: 5px;
}

.advanced-filters {
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(7, 22, 31, 0.72);
  overflow: hidden;
}

.advanced-filters summary {
  display: flex;
  min-height: 48px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff4cf;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.advanced-filters summary::-webkit-details-marker {
  display: none;
}

.advanced-filters summary::after {
  content: "+";
  width: 24px;
  color: #ffcf63;
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.advanced-filters[open] summary::after {
  content: "-";
}

.advanced-filter-count {
  min-width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 999px;
  background: #ffbf42;
  color: #241a08;
  font-size: 13px;
  line-height: 28px;
  text-align: center;
}

.advanced-filter-count.is-empty {
  visibility: hidden;
}

.advanced-filter-groups {
  padding: 0 8px 8px;
}

.advanced-filter-groups .topic-filter,
.advanced-filter-groups .skill-filter {
  margin-bottom: 8px;
}

.advanced-filter-groups .availability-filter {
  padding-bottom: 0;
}

.filter-status:not(.results-active) {
  display: none;
}

.availability-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 14px;
}

.topic-filter button {
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.topic-filter button.active {
  transform: translateY(-1px);
}

.age-filter button,
.topic-filter button,
.skill-filter button,
.library-tabs button,
.availability-filter button {
  min-width: 64px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 -2px rgba(0, 0, 0, 0.1);
}

.age-filter button {
  flex: 0 0 84px;
  width: 84px;
  min-width: 84px;
  max-width: 84px;
  gap: 5px;
  padding-inline: 8px;
  overflow: hidden;
}

.age-filter button[data-age-filter="all"],
.age-filter button[data-age-filter="family"] {
  flex-basis: 126px;
  width: 126px;
  min-width: 126px;
  max-width: 126px;
}

.age-filter .filter-copy {
  flex: 1 1 auto;
  overflow: hidden;
}

.age-filter .filter-label {
  display: block;
  width: 100%;
}

.age-filter .filter-count {
  flex: 0 0 auto;
  min-width: 26px;
  padding-inline: 5px;
  box-sizing: border-box;
}

.filter-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-copy {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.05;
}

.filter-hint {
  max-width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18);
}

.topic-filter button {
  min-width: max-content;
  padding: 0 14px;
}

.skill-filter button {
  min-width: max-content;
  padding: 0 14px;
}

.availability-filter button {
  height: 54px;
  justify-content: space-between;
}

.age-filter button.active,
.topic-filter button.active,
.skill-filter button.active,
.library-tabs button.active,
.availability-filter button.active {
  border-color: rgba(255, 220, 122, 0.86);
  background: linear-gradient(180deg, #ffeaa0, #ffbf42);
  color: #241a08;
  box-shadow: 0 8px 18px rgba(255, 191, 66, 0.18), inset 0 -3px rgba(128, 80, 11, 0.14);
}

.age-filter button.active .filter-count,
.topic-filter button.active .filter-count,
.skill-filter button.active .filter-count,
.library-tabs button.active .filter-count,
.availability-filter button.active .filter-count {
  background: rgba(36, 26, 8, 0.16);
  color: #241a08;
}

.availability-filter button.active .filter-hint {
  color: rgba(36, 26, 8, 0.68);
}

.discovery-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.discovery-snapshot button {
  display: grid;
  min-width: 0;
  min-height: 86px;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-align: left;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.discovery-snapshot strong {
  color: #ffd36b;
  font-size: 28px;
  line-height: 1;
}

.discovery-snapshot span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-snapshot small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.discovery-snapshot button:hover,
.discovery-snapshot button:focus-visible {
  border-color: rgba(255, 211, 107, 0.52);
  background: rgba(255, 255, 255, 0.12);
}

.hero-games-section {
  display: grid;
  gap: 10px;
  padding: 8px 0 14px;
}

.continue-playing-section {
  display: grid;
  gap: 10px;
  padding: 0 0 18px;
}

.continue-playing-section.filtered-out {
  display: none;
}

.continue-playing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.continue-playing-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-width: 0;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 99, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.continue-playing-card img {
  width: 84px;
  height: 100%;
  min-height: 104px;
  object-fit: cover;
}

.continue-playing-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 10px;
}

.continue-playing-copy span,
.continue-playing-copy b {
  justify-self: start;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1.1;
}

.continue-playing-copy span {
  background: #ffcf63;
  color: #241a08;
}

.continue-playing-copy strong,
.continue-playing-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-playing-copy strong {
  color: #fff4c8;
  font-size: 14px;
  line-height: 1.2;
}

.continue-playing-copy small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.continue-playing-copy b {
  background: rgba(120, 228, 198, 0.16);
  color: #9af0d8;
}

.continue-playing-card:hover,
.continue-playing-card:focus-visible {
  border-color: rgba(255, 207, 99, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.upcoming-games-section,
.mobile-picks-section,
.character-showcase-section,
.fresh-updates-section,
.challenge-spotlight-section,
.recommendations-section,
.skill-paths-section {
  display: grid;
  gap: 10px;
  padding: 0 0 14px;
}

.filter-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  padding: 0 2px 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 900;
}

.filter-status.empty,
.filter-status.has-filters {
  color: #ffcf63;
}

.filter-status.empty,
.filter-status.has-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.filter-status.empty button,
.filter-status.has-filters button {
  min-height: 34px;
  border: 1px solid rgba(255, 220, 122, 0.72);
  border-radius: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, #ffeaa0, #ffbf42);
  color: #241a08;
  font-weight: 950;
  box-shadow: 0 8px 16px rgba(255, 191, 66, 0.18);
}

.filter-status-chips {
  display: flex;
  flex: 1 1 180px;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.filter-status-chips span {
  max-width: 100%;
  border: 1px solid rgba(255, 207, 99, 0.32);
  border-radius: 999px;
  padding: 5px 9px;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}

.section-heading span {
  color: #ffcf63;
  font-size: 13px;
  font-weight: 1000;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
}

.hero-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.upcoming-games,
.mobile-picks,
.character-showcase,
.fresh-updates,
.challenge-spotlight,
.recommendations,
.skill-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.character-showcase {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.character-showcase-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(138px, 1fr) auto;
  min-height: 248px;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(120, 228, 198, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 236, 153, 0.18), rgba(120, 228, 198, 0.06) 48%, transparent 70%),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  color: inherit;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.character-showcase-card::before {
  content: "";
  position: absolute;
  inset: 12px 18px auto;
  height: 126px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 231, 127, 0.12) 45%, transparent 72%);
  filter: blur(8px);
}

.character-showcase-card::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 138px;
  height: 12px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  filter: blur(8px);
}

.character-showcase-card img {
  display: block;
  width: min(100%, 156px);
  height: 156px;
  padding: 8px 8px 0;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.26));
}

.character-showcase-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(8, 31, 49, 0), rgba(8, 31, 49, 0.32));
}

.character-showcase-copy strong,
.character-showcase-copy small,
.character-showcase-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.character-showcase-copy strong {
  color: #fff4c8;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.15;
  white-space: nowrap;
}

.character-showcase-copy small {
  color: rgba(223, 247, 255, 0.86);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.character-showcase-copy span {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 8px;
  border: 1px solid rgba(120, 228, 198, 0.28);
  border-radius: 999px;
  background: rgba(12, 51, 63, 0.68);
  color: #dff7ff;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
}

.challenge-spotlight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-picks {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-pick-card {
  position: relative;
  display: grid;
  grid-template-rows: 116px minmax(0, 1fr);
  min-height: 262px;
  overflow: hidden;
  border: 1px solid rgba(120, 228, 198, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(120, 228, 198, 0.16), rgba(255, 207, 99, 0.08)),
    rgba(255, 255, 255, 0.075);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.mobile-pick-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #163338;
}

.mobile-pick-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) brightness(0.94);
}

.mobile-pick-art span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #e6fff8, #78e4c6);
  color: #062d29;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.mobile-pick-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 12px;
}

.mobile-pick-copy strong,
.mobile-pick-copy small,
.mobile-pick-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-pick-copy strong {
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
}

.mobile-pick-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.mobile-pick-copy em {
  display: -webkit-box;
  color: #dff7ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-pick-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.mobile-pick-skills span {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(120, 228, 198, 0.14);
  color: #dff7ff;
  font-size: 11px;
  font-weight: 950;
}

.hero-game-card {
  display: grid;
  grid-template-rows: 120px minmax(0, auto);
  gap: 0;
  min-height: 204px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.recommendation-card {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  min-height: 126px;
  padding: 10px 12px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(129, 221, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(129, 221, 255, 0.12), rgba(255, 207, 99, 0.1)),
    rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.fresh-update-card {
  position: relative;
  display: grid;
  grid-template-rows: 132px minmax(0, 1fr);
  min-height: 282px;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 99, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 207, 99, 0.11), rgba(120, 228, 198, 0.08)),
    rgba(255, 255, 255, 0.075);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.challenge-spotlight-card {
  position: relative;
  display: grid;
  grid-template-rows: 138px minmax(0, 1fr);
  min-height: 332px;
  overflow: hidden;
  border: 1px solid rgba(134, 174, 255, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(74, 110, 187, 0.18), rgba(17, 192, 145, 0.1)),
    rgba(255, 255, 255, 0.075);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.challenge-spotlight-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #172235;
}

.challenge-spotlight-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.92);
}

.challenge-spotlight-art span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #dff7ff, #78a9ff);
  color: #101b35;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.challenge-spotlight-copy {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 12px;
}

.challenge-spotlight-copy strong,
.challenge-spotlight-copy small,
.challenge-spotlight-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.challenge-spotlight-copy strong {
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
}

.challenge-spotlight-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.challenge-spotlight-copy em {
  display: -webkit-box;
  color: #dff7ff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.challenge-spotlight-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.challenge-spotlight-skills span {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(129, 221, 255, 0.14);
  color: #dff7ff;
  font-size: 11px;
  font-weight: 950;
}

.challenge-spotlight-copy b {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  border-radius: 8px;
  padding: 7px 10px;
  background: linear-gradient(180deg, #d8fff4, #10c58d);
  color: #083326;
  font-size: 12px;
  font-weight: 1000;
}

.upcoming-game-card {
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 12px;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 99, 0.28);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 207, 99, 0.15), rgba(129, 221, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.upcoming-game-art {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #202938;
}

.upcoming-game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.94);
}

.upcoming-game-art .upcoming-game-hero {
  position: absolute;
  right: 8px;
  bottom: 4px;
  width: min(42%, 118px);
  height: min(78%, 126px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 14px 18px rgba(8, 22, 32, 0.42));
  z-index: 1;
}

.upcoming-game-art span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  min-height: 26px;
  padding: 6px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff3bf, #ffbf42);
  color: #241a08;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.upcoming-game-copy {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.upcoming-game-copy strong,
.upcoming-game-copy small,
.upcoming-game-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upcoming-game-copy strong {
  font-size: 19px;
  line-height: 1.12;
  white-space: nowrap;
}

.upcoming-game-copy small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.upcoming-game-copy em {
  display: -webkit-box;
  color: #ffdf8a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.upcoming-game-copy .game-card-state {
  padding: 7px 9px;
  gap: 2px;
}

.upcoming-game-copy .game-card-state strong {
  font-size: 12px;
}

.upcoming-game-copy .game-card-state span {
  font-size: 11px;
}

.fresh-update-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #202938;
}

.fresh-update-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fresh-update-art span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 26px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8fff4, #78e4c6);
  color: #11372f;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.fresh-update-copy {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px;
}

.fresh-update-copy strong,
.fresh-update-copy small,
.fresh-update-copy em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fresh-update-copy strong {
  font-size: 18px;
  line-height: 1.15;
  white-space: nowrap;
}

.fresh-update-copy small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.fresh-update-copy em {
  display: -webkit-box;
  color: #ffdf8a;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.fresh-update-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fresh-update-skills span {
  min-height: 24px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(129, 221, 255, 0.14);
  color: #dff7ff;
  font-size: 11px;
  font-weight: 950;
}

.recommendation-card img {
  width: 96px;
  height: 106px;
  border-radius: 8px;
  object-fit: cover;
  background: #202938;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.recommendation-copy {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
}

.recommendation-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.recommendation-card .recommendation-age {
  justify-self: start;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 233, 160, 0.96), rgba(255, 185, 64, 0.92));
  color: #241a08;
  font-size: 12px;
  font-weight: 1000;
}

.recommendation-card strong,
.recommendation-card small,
.recommendation-card em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-card strong {
  font-size: 18px;
  line-height: 1.1;
}

.recommendation-card small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 850;
}

.recommendation-card em {
  color: #ffdf8a;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.recommendation-update {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #d8fff4, #78e4c6);
  color: #11372f;
  box-shadow: 0 5px 14px rgba(120, 228, 198, 0.2);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.recommendation-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.recommendation-skills span {
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(132, 211, 255, 0.16);
  color: #a9dcff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.skill-path-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  grid-template-rows: auto auto 1fr;
  gap: 6px 10px;
  min-height: 132px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 107, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 211, 107, 0.14), rgba(129, 221, 255, 0.11)),
    rgba(255, 255, 255, 0.07);
  color: #fff;
  font: inherit;
  text-align: left;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.skill-path-card span,
.skill-path-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-path-card span {
  color: #9eeaff;
  font-size: 12px;
  font-weight: 950;
}

.skill-path-card strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #ffdf8a;
  font-size: 21px;
  line-height: 1.08;
}

.skill-path-card small {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.skill-path-thumbs {
  grid-row: 1 / span 3;
  grid-column: 2;
  position: relative;
  min-height: 96px;
}

.skill-path-thumbs img {
  position: absolute;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  object-fit: cover;
  background: #202938;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
}

.skill-path-thumbs img:first-child {
  top: 0;
  right: 18px;
  z-index: 2;
}

.skill-path-thumbs img:nth-child(2) {
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-game-art {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #202938;
}

.hero-game-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-game-art img.hero-game-character {
  position: absolute;
  right: 8px;
  bottom: -4px;
  z-index: 1;
  width: 44%;
  height: 86%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.hero-game-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.02), rgba(10, 14, 20, 0.26));
  pointer-events: none;
}

.hero-game-art span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 233, 160, 0.96), rgba(255, 185, 64, 0.92));
  color: #241a08;
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.26);
}

.hero-game-copy {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.hero-game-card strong {
  overflow: hidden;
  font-size: 22px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-game-card small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-game-card em,
.game-card-plays {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  padding: 5px 9px;
  overflow: hidden;
  border: 1px solid rgba(129, 221, 255, 0.28);
  border-radius: 8px;
  background: rgba(129, 221, 255, 0.12);
  color: #9eeaff;
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 8px;
}

.site-footer {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding: 22px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer a {
  color: #ffcf63;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.legal-page {
  min-height: 100dvh;
  overflow: auto;
  touch-action: pan-y;
}

.legal-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 18px calc(42px + env(safe-area-inset-bottom));
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 28px;
}

.legal-nav a {
  color: #ffcf63;
  font-weight: 900;
  text-decoration: none;
}

.legal-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.legal-card h1 {
  margin: 0;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1;
}

.legal-card h2 {
  margin: 12px 0 0;
  color: #ffcf63;
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.65;
}

.legal-card p {
  margin: 0;
}

.legal-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.legal-card strong {
  color: #fff;
}

.game-card {
  position: relative;
  display: flex;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: left;
  text-decoration: none;
  flex-direction: column;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(9, 13, 19, 0.72);
  color: #ffffff;
  font-size: 26px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.favorite-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.favorite-icon path {
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.favorite-toggle.active {
  border-color: rgba(255, 212, 106, 0.95);
  background: #ffcf63;
  color: #4b2606;
}

.favorite-toggle.active .favorite-icon path {
  fill: currentColor;
}

.favorite-toggle:active {
  transform: scale(0.94);
}

.continue-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: calc(100% - 74px);
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(180deg, #76e1ff 0%, #228ef2 100%);
  color: #061827;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.game-card.playable {
  background: rgba(255, 255, 255, 0.11);
}

.game-card-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 196px;
  overflow: hidden;
  background: #243242;
}

.game-card-art.image-art {
  height: auto;
  max-height: 360px;
  aspect-ratio: 1 / 1;
}

.game-card-art > span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 4px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: rgba(19, 24, 32, 0.42);
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.game-card-bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  filter: blur(16px) brightness(0.42) saturate(1.12);
  transform: scale(1.16);
  z-index: 0;
}

.game-card-fg {
  position: relative;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  max-width: 220px;
  max-height: 168px;
  object-fit: contain;
  z-index: 1;
}

.game-card-art.image-art .game-card-fg {
  width: 84%;
  height: 84%;
  max-width: none;
  max-height: none;
}

.game-card-art.image-art .game-card-bg-blur {
  padding: 0;
  object-fit: cover;
  transform: scale(1.06);
}

.game-card-art .game-card-hero {
  position: absolute;
  bottom: 4px;
  left: auto;
  right: 4px;
  z-index: 2;
  width: min(48%, 132px);
  height: min(72%, 132px);
  object-fit: contain;
  object-position: bottom right;
  transform: none;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.42));
}

.game-card-art.image-art .game-card-hero {
  width: min(46%, 126px);
  height: min(74%, 126px);
}

.game-card-static-link {
  display: flex;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
  flex-direction: column;
}

.game-card-static .game-card-static-age {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffdb62;
  color: #352300;
  font-weight: 900;
}

.publisher-story {
  order: 15;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(139, 119, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(91, 67, 180, 0.16), rgba(23, 40, 54, 0.82)),
    #111b29;
  color: #eaf1ff;
}

.publisher-story-heading {
  display: grid;
  gap: 8px;
  max-width: 900px;
}

.publisher-story-heading > span {
  color: #b9a8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publisher-story-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.publisher-story :is(p, h3) {
  margin: 0;
}

.publisher-story p {
  color: #c7d4e7;
  line-height: 1.65;
}

.publisher-story-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.publisher-story-points article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(7, 14, 24, 0.54);
}

.publisher-story-points h3 {
  color: #ffffff;
  font-size: 17px;
}

@media (max-width: 720px) {
  .publisher-story {
    padding: 18px;
  }

  .publisher-story-points {
    grid-template-columns: 1fr;
  }
}

.game-card-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #07160f;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.game-card.is-previewing .game-card-preview,
.hero-game-card.is-previewing .game-card-preview {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .game-card-preview {
    display: none;
  }
}

@media (any-hover: none) and (any-pointer: coarse) {
  .game-card-preview {
    display: none;
  }
}

.game-card[data-game-id="wonder-crash"] .game-card-fg {
  width: 90%;
  height: 90%;
  filter: saturate(1.02) brightness(1);
}

.game-card[data-game-id="wonder-crash"] .game-card-hero {
  width: min(58%, 150px);
  height: min(86%, 150px);
  right: 2px;
}

.game-card-art.color-match {
  background:
    linear-gradient(135deg, rgba(255, 99, 104, 0.9), transparent 48%),
    linear-gradient(225deg, rgba(85, 196, 255, 0.9), transparent 48%),
    #f5c65e;
}

.game-card-art.memory-flip {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 18px, transparent 18px 36px),
    #6858b7;
}

.game-card-art.reflex-run {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, #38a777 0%, #2c6fb0 100%);
  background-size: 38px 100%, auto;
}

.game-card-art.snack-blocks {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, #e5526f 0%, #f5be55 55%, #65bf82 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

.game-card-art.animal-quiz {
  background:
    radial-gradient(circle at 26% 28%, rgba(255, 255, 255, 0.24), transparent 16%),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(135deg, #4aa0df 0%, #6abf6a 100%);
}

.game-card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
  flex: 1;
}

.game-card-topline,
.game-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
}

.game-card-badges {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.popular-card-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff4b7, #ffca4f);
  color: #3a2711;
  box-shadow: 0 5px 14px rgba(255, 202, 79, 0.22);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.updated-card-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8fff4, #78e4c6);
  color: #11372f;
  box-shadow: 0 5px 14px rgba(120, 228, 198, 0.2);
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
}

.age-pill {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 30px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #ffffff;
  color: #18202b;
  font-weight: 1000;
}

.game-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.game-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.45;
}

.game-card-state {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.game-card-state strong,
.game-card-state span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-state strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 1000;
}

.game-card-state span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 850;
}

.game-card-state.ready {
  border-color: rgba(120, 228, 198, 0.34);
  background: rgba(38, 183, 139, 0.14);
}

.game-card-state.ready strong {
  color: #baf8de;
}

.game-card-state.preview {
  border-color: rgba(255, 207, 99, 0.36);
  background: rgba(255, 207, 99, 0.13);
}

.game-card-state.preview strong {
  color: #ffe29a;
}

.game-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
}

.game-card-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-card-categories span {
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 207, 99, 0.16);
  color: #ffdf8a;
  font-size: 12px;
  font-weight: 900;
}

.game-card-skills span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(132, 211, 255, 0.16);
  color: #a9dcff;
  font-size: 12px;
  font-weight: 900;
}

.game-card-skill-reason {
  overflow: hidden;
  padding: 7px 9px;
  border: 1px solid rgba(111, 211, 255, 0.22);
  border-radius: 8px;
  background: rgba(99, 196, 255, 0.1);
  color: #d7f2ff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.game-card-facts span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.game-card-facts b {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.54);
  font-size: 10px;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.game-card-meta span {
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.game-card-plays {
  margin-top: 2px;
}

.game-card-actions {
  align-self: end;
  color: #ffd36b;
}

.lobby-feature,
.hero-game-card,
.upcoming-game-card,
.fresh-update-card,
.recommendation-card,
.skill-path-card,
.game-card {
  transform: translateZ(0);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lobby-feature img,
.hero-game-art img,
.upcoming-game-art img,
.fresh-update-art img,
.recommendation-card img,
.skill-path-thumbs img,
.game-card-bg-blur,
.game-card-fg,
.game-card-art .game-card-hero {
  transition: transform 0.24s ease, filter 0.24s ease;
}

.game-card-art::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 207, 99, 0.94);
  color: #241a08;
  opacity: 0;
  transform: scale(0.72);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.game-card-art::before {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 4;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #241a08;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lobby-feature:hover,
.lobby-feature:focus-visible,
.hero-game-card:hover,
.hero-game-card:focus-visible,
.upcoming-game-card:hover,
.upcoming-game-card:focus-visible,
.recommendation-card:hover,
.recommendation-card:focus-visible,
.fresh-update-card:hover,
.fresh-update-card:focus-visible,
.skill-path-card:hover,
.skill-path-card:focus-visible,
.game-card.playable:hover,
.game-card.playable:focus-visible {
  border-color: rgba(255, 211, 107, 0.58);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
  transform: translateY(-4px);
}

.lobby-feature:hover img,
.lobby-feature:focus-visible img {
  filter: drop-shadow(0 12px 18px rgba(255, 207, 99, 0.22));
  transform: scale(1.1) rotate(-2deg);
}

.hero-game-card:hover .hero-game-art img,
.hero-game-card:focus-visible .hero-game-art img {
  filter: saturate(1.1) brightness(1.08);
  transform: scale(1.06);
}

.upcoming-game-card:hover .upcoming-game-art img,
.upcoming-game-card:focus-visible .upcoming-game-art img {
  filter: saturate(1.12) brightness(1.04);
  transform: scale(1.04);
}

.upcoming-game-card:hover .upcoming-game-hero,
.upcoming-game-card:focus-visible .upcoming-game-hero {
  filter: drop-shadow(0 16px 22px rgba(126, 235, 185, 0.28));
  transform: scale(1.08);
}

.recommendation-card:hover img,
.recommendation-card:focus-visible img {
  filter: saturate(1.1) brightness(1.08);
  transform: scale(1.05);
}

.fresh-update-card:hover img,
.fresh-update-card:focus-visible img {
  filter: saturate(1.12) brightness(1.08);
  transform: scale(1.04);
}

.skill-path-card:hover .skill-path-thumbs img,
.skill-path-card:focus-visible .skill-path-thumbs img {
  filter: saturate(1.12) brightness(1.08);
  transform: translateY(-2px) scale(1.04);
}

.game-card.playable:hover .game-card-art::after,
.game-card.playable:focus-visible .game-card-art::after {
  opacity: 1;
  transform: scale(1);
}

.game-card.playable:hover .game-card-art::before,
.game-card.playable:focus-visible .game-card-art::before {
  opacity: 1;
  transform: scale(1);
}

.game-card.playable:hover .game-card-bg-blur,
.game-card.playable:focus-visible .game-card-bg-blur {
  filter: blur(14px) brightness(0.5) saturate(1.22);
  transform: scale(1.12);
}

.game-card.playable:hover .game-card-fg,
.game-card.playable:focus-visible .game-card-fg {
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.36));
  transform: scale(1.06);
}

.game-card.playable:hover .game-card-hero,
.game-card.playable:focus-visible .game-card-hero {
  filter: drop-shadow(0 16px 22px rgba(255, 207, 99, 0.28));
  transform: scale(1.12);
}

.game-card:active,
.hero-game-card:active,
.upcoming-game-card:active,
.skill-path-card:active,
.lobby-feature:active {
  transform: translateY(-1px) scale(0.99);
}

.game-card.coming-soon {
  border-color: rgba(255, 207, 99, 0.32);
  background: rgba(255, 255, 255, 0.08);
  opacity: 0.9;
  cursor: pointer;
}

.game-card.coming-soon .game-card-body {
  gap: 9px;
}

.game-card.coming-soon .game-card-art.image-art {
  height: clamp(184px, 56vw, 260px);
  aspect-ratio: auto;
}

.game-card.coming-soon .game-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.game-card.coming-soon .game-card-categories {
  margin-top: 1px;
}

.game-card.coming-soon .game-card-meta:empty {
  display: none;
}

.game-card.coming-soon .game-card-art {
  filter: saturate(0.86) brightness(0.86);
}

.game-card.coming-soon .game-card-art::after,
.game-card.coming-soon .game-card-art::before {
  display: none;
}

.coming-soon-art-badge {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(12, 17, 24, 0.78);
  color: #fff3ba;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.game-card.coming-soon .game-card-actions {
  background: rgba(255, 207, 99, 0.12);
  color: #fff3ba;
}

.game-card.coming-soon:hover,
.game-card.coming-soon:focus-visible {
  border-color: rgba(255, 211, 107, 0.52);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.game-card.coming-soon:hover .game-card-art,
.game-card.coming-soon:focus-visible .game-card-art {
  filter: saturate(0.95) brightness(0.92);
}

.game-card.coming-soon:hover .game-card-fg,
.game-card.coming-soon:focus-visible .game-card-fg {
  transform: scale(1.03);
}

.lobby-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 50%;
  min-width: 210px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.88);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
  animation: lobby-toast-up 1.5s ease-out forwards;
  pointer-events: none;
}

.sound-toggle {
  position: fixed;
  z-index: 60;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 15, 20, 0.72);
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.sound-toggle.muted {
  opacity: 0.72;
}

@keyframes lobby-toast-up {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -125%);
  }
}

@media (max-width: 920px) {
  .parent-trust-strip {
    grid-template-columns: 1fr;
  }

  .lobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .lobby-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .lobby-search-row {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .quick-pick-btn {
    min-width: 0;
    padding: 0 10px;
    font-size: 14px;
  }

  .lobby-hero {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 132px);
    min-height: 0;
    padding-top: 22px;
  }

  .lobby-hero-copy {
    grid-column: 1 / -1;
  }

  .brand-lockup {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
  }

  .lobby-mascot {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: end;
    min-height: 158px;
  }

  .lobby-mascot-main {
    width: 132px;
    max-height: 168px;
  }

  .lobby-mascot-side {
    bottom: 10px;
    width: 64px;
    max-height: 82px;
  }

  .lobby-mascot-fia {
    left: -8px;
  }

  .lobby-mascot-nori {
    right: -10px;
  }

  .language-picker {
    min-height: 0;
  }

  .lobby-wallet {
    min-height: 0;
  }

  .lobby-feature {
    grid-column: 1 / -1;
    grid-template-columns: 76px 1fr;
    min-height: 96px;
  }

  .lobby-feature img {
    width: 76px;
    height: 76px;
  }

  .lobby-grid {
    grid-template-columns: 1fr;
  }

  .lobby-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .lobby-stats div {
    min-height: 68px;
    padding: 10px 9px;
  }

  .lobby-stats strong {
    font-size: 24px;
  }

  .lobby-stats span {
    font-size: 12px;
  }

  .daily-reward {
    grid-template-columns: 1fr;
  }

  .daily-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .daily-day {
    min-height: 58px;
  }

  .parent-trust-points {
    grid-template-columns: 1fr;
  }

  .parent-trust-points div {
    min-height: 0;
  }

  .discovery-snapshot {
    gap: 6px;
    margin-bottom: 16px;
  }

  .discovery-snapshot button {
    min-height: 78px;
    padding: 9px 8px;
    border-radius: 10px;
  }

  .discovery-snapshot strong {
    font-size: 23px;
  }

  .discovery-snapshot span {
    font-size: 12px;
  }

  .discovery-snapshot small {
    display: -webkit-box;
    overflow: hidden;
    min-height: 30px;
    font-size: 10px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .game-card {
    min-height: 332px;
  }

  .game-card-topline {
    align-items: flex-start;
  }

  .game-card-badges {
    max-width: 70%;
  }

  .game-card-art.image-art {
    max-height: 420px;
  }

  .hero-games {
    grid-auto-columns: minmax(210px, 72vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .continue-playing {
    grid-auto-columns: minmax(250px, 82vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .continue-playing-card {
    min-height: 100px;
    scroll-snap-align: start;
  }

  .upcoming-games,
  .mobile-picks,
  .character-showcase,
  .fresh-updates,
  .challenge-spotlight,
  .recommendations,
  .skill-paths {
    grid-auto-columns: minmax(230px, 76vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .hero-game-card {
    min-height: 190px;
    scroll-snap-align: start;
  }

  .upcoming-game-card,
  .mobile-pick-card,
  .character-showcase-card,
  .fresh-update-card,
  .challenge-spotlight-card,
  .recommendation-card,
  .skill-path-card {
    scroll-snap-align: start;
  }

  .upcoming-game-card {
    grid-template-columns: none;
    grid-template-rows: 126px minmax(0, 1fr);
    min-height: 270px;
  }
}

/* Kids lobby: image-first, low-reading-load discovery for younger players. */
body.kids-lobby-page {
  color-scheme: light;
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 223, 104, 0.42), transparent 24rem),
    radial-gradient(circle at 92% 14%, rgba(135, 216, 255, 0.52), transparent 28rem),
    linear-gradient(180deg, #eefaff 0%, #fffaf0 48%, #f4fbef 100%);
  color: #17324a;
}

.upcoming-game-art .review-pass-art-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: auto;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(220, 255, 237, 0.92);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(154, 255, 204, 0.96), rgba(54, 205, 140, 0.96));
  color: #073325;
  font-size: 10px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  box-shadow: 0 10px 24px rgba(0, 60, 39, 0.35);
  backdrop-filter: blur(10px);
}

.kids-lobby-page .lobby-shell {
  display: flex;
  width: min(calc(100% - 20px), 1180px);
  padding-top: max(10px, env(safe-area-inset-top));
  flex-direction: column;
  gap: 0;
}

.kids-lobby-page .desktop-filter-rail {
  display: none;
}

.kids-lobby-page .kids-lobby-hero {
  position: relative;
  order: 0;
  display: block;
  height: clamp(240px, 27vw, 286px);
  min-height: 0;
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 14px;
  background: #55bce9;
  box-shadow: 0 9px 0 #9fd26f, 0 18px 34px rgba(54, 119, 145, 0.18);
  isolation: isolate;
}

.kids-lobby-page .kids-hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.kids-lobby-page .kids-lobby-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(13, 76, 94, 0.68) 0%, rgba(13, 76, 94, 0.34) 48%, rgba(13, 76, 94, 0.08) 100%);
  pointer-events: none;
}

.kids-lobby-page .lobby-hero-copy {
  position: absolute;
  top: 62px;
  left: clamp(18px, 4vw, 46px);
  width: min(50%, 500px);
  color: #ffffff;
  text-shadow: 0 3px 10px rgba(9, 45, 61, 0.72);
}

.kids-lobby-page .lobby-kicker {
  width: fit-content;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #ffdc63;
  color: #513708;
  font-size: 14px;
  text-shadow: none;
}

.kids-lobby-page .brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kids-lobby-page .brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 0 rgba(19, 82, 102, 0.52);
}

.kids-lobby-page .brand-byline,
.kids-lobby-page .lobby-mascot {
  display: none;
}

.kids-lobby-page .lobby-hero h1 {
  max-width: 440px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.kids-lobby-page .lobby-subtitle {
  max-width: 430px;
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 800;
  line-height: 1.4;
}

.kids-lobby-page .kids-back-link {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-height: 48px;
  padding: 0 14px;
  border: 3px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
  color: #16658d;
  box-shadow: 0 5px 0 #7cc4e3;
}

.kids-lobby-page .kids-back-link::before {
  content: "\2190";
  margin-right: 7px;
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.kids-lobby-page .language-picker {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 104px;
  min-height: 40px;
  padding: 3px 8px;
  border: 3px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
  color: #174c67;
  box-shadow: 0 5px 0 #7cc4e3;
}

.kids-lobby-page .language-picker span {
  display: none;
}

.kids-lobby-page .language-picker select {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17324a;
  font-size: 14px;
}

.kids-lobby-page .lobby-feature {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: 18px;
  z-index: 2;
  display: grid;
  width: min(320px, 48%);
  min-height: 68px;
  padding: 8px 12px 8px 8px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: #ff765f;
  color: #ffffff;
  box-shadow: 0 6px 0 #b84438;
}

.kids-lobby-page .lobby-feature img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
}

.kids-lobby-page .lobby-feature span {
  color: #fff5c7;
  font-size: 11px;
}

.kids-lobby-page .lobby-feature strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kids-lobby-page .kids-play-heading {
  order: 1;
  margin: 14px 0 8px;
  text-align: center;
}

.kids-lobby-page .kids-play-heading span {
  color: #ef5d4a;
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.kids-lobby-page .kids-play-heading h2 {
  margin: 3px 0 0;
  color: #17324a;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
}

.kids-lobby-page .kids-skill-strip {
  order: 3;
  display: grid;
  gap: 7px;
  margin: 4px 0 9px;
}

.kids-lobby-page .kids-skill-strip h3 {
  margin: 0;
  color: #39718b;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kids-lobby-page .kids-skill-strip .vibe-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.kids-lobby-page .kids-skill-strip button {
  min-width: 0;
  min-height: 48px;
  padding: 7px 8px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: #ffffff;
  color: #244c63;
  box-shadow: 0 4px 0 #a7ccda;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.1;
  cursor: pointer;
}

.kids-lobby-page .kids-skill-strip button:hover,
.kids-lobby-page .kids-skill-strip button:focus-visible {
  border-color: #54a9ca;
  background: #f5fcff;
  transform: translateY(-1px);
}

.kids-lobby-page .kids-skill-strip button.active {
  border-color: #195f7e;
  background: #247fa4;
  color: #ffffff;
  box-shadow: 0 4px 0 #174c67;
}

.kids-lobby-page .kids-age-filter {
  order: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.kids-lobby-page .kids-age-filter .filter-hint {
  color: currentColor;
  font-size: 9px;
  font-weight: 800;
}

.kids-lobby-page .weightplay-version-badge {
  left: 10px !important;
  bottom: 12px !important;
}

.kids-lobby-page .kids-age-filter button {
  width: 100%;
  height: 64px;
  flex: none;
  min-width: 0;
  max-width: none;
  padding: 7px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  color: #17324a;
  font-size: 18px;
  box-shadow: 0 6px 0 #9ec8d8;
}

.kids-lobby-page .kids-age-filter button:nth-child(2) {
  background: #ffdf68;
  box-shadow: 0 6px 0 #d6a728;
}

.kids-lobby-page .kids-age-filter button:nth-child(3) {
  background: #9ee68e;
  box-shadow: 0 6px 0 #56a950;
}

.kids-lobby-page .kids-age-filter button:nth-child(4) {
  background: #87d8ff;
  box-shadow: 0 6px 0 #3799c7;
}

.kids-lobby-page .kids-age-filter button.active {
  border-color: #17324a;
  background: #ff765f;
  color: #ffffff;
  box-shadow: 0 6px 0 #8f382f;
}

.kids-lobby-page .kids-age-filter .filter-copy {
  align-items: center;
}

.kids-lobby-page .kids-age-filter .filter-count {
  display: none;
}

.kids-lobby-page .lobby-search-row {
  order: 4;
  margin: 8px 0 10px;
}

.kids-lobby-page .lobby-search {
  color: #254a63;
}

.kids-lobby-page .lobby-search input {
  min-height: 54px;
  border: 3px solid #80bed6;
  border-radius: 8px;
  background: #ffffff;
  color: #17324a;
  box-shadow: 0 5px 0 #9ec8d8;
}

.kids-lobby-page .lobby-search input::placeholder {
  color: #698597;
}

.kids-lobby-page .quick-pick-btn {
  min-height: 54px;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: #ffbd4a;
  color: #4d3405;
  box-shadow: 0 5px 0 #c78218;
}

.kids-lobby-page .library-tabs {
  order: 5;
  gap: 8px;
  padding-bottom: 12px;
}

.kids-lobby-page .library-tabs button {
  height: 52px;
  border: 2px solid #85b7ca;
  border-radius: 8px;
  background: #ffffff;
  color: #284d64;
  box-shadow: 0 4px 0 #a7ccda;
}

.kids-lobby-page .library-tabs button.active {
  border-color: #195f7e;
  background: #247fa4;
  color: #ffffff;
  box-shadow: 0 4px 0 #174c67;
}

.kids-lobby-page .library-tabs .filter-count {
  display: none;
}

.kids-lobby-page #continuePlayingSection {
  order: 8;
}

.kids-lobby-page .continue-playing-section > h2 {
  color: #17324a;
  text-shadow: 0 1px 0 #ffffff;
}

.kids-lobby-page .continue-playing-card {
  border: 2px solid #83bad2;
  background: #fffdf7;
  box-shadow: 0 5px 0 #a5d0df;
}

.kids-lobby-page .continue-playing-copy strong {
  color: #17324a;
}

.kids-lobby-page .continue-playing-copy small {
  color: #48687a;
}

.kids-lobby-page .continue-playing-copy b {
  background: #d9f7ed;
  color: #126a5d;
}

.kids-lobby-page .continue-playing-card:hover,
.kids-lobby-page .continue-playing-card:focus-visible {
  border-color: #267e9e;
  background: #ffffff;
  box-shadow: 0 7px 0 #79b7ce;
}

.kids-lobby-page #filterStatus {
  order: 7;
  color: #17324a;
}

.kids-lobby-page #gameGrid {
  order: 10;
}

.kids-lobby-page .kids-promise {
  order: 13;
}

.kids-lobby-page .parent-trust-strip {
  order: 14;
}

.kids-lobby-page .site-footer {
  order: 15;
}

.kids-lobby-page #advancedFilters {
  order: 6;
}

.kids-lobby-page #heroGamesSection {
  order: 9;
}

.kids-lobby-page #upcomingGamesSection {
  order: 11;
}

.kids-lobby-page #freshUpdatesSection {
  order: 12;
}

.kids-lobby-page #lobbyStats,
.kids-lobby-page #dailyReward,
.kids-lobby-page #discoverySnapshot,
.kids-lobby-page #mobilePicksSection,
.kids-lobby-page #characterShowcaseSection,
.kids-lobby-page #challengeSpotlightSection,
.kids-lobby-page #recommendationsSection,
.kids-lobby-page #skillPathsSection {
  display: none !important;
}

.kids-lobby-page .lobby-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  padding-top: 10px;
}

.kids-lobby-page .hero-games {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.kids-lobby-page .game-card {
  min-height: 0;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  color: #17324a;
  box-shadow: 0 7px 0 #9fc8d8;
}

.kids-lobby-page .game-card-art.image-art {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
}

.kids-lobby-page .game-card-bg-blur {
  display: none;
}

.kids-lobby-page .game-card-art.image-art .game-card-fg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kids-lobby-page .game-card-art.image-art .game-card-hero {
  width: 45%;
  height: 58%;
}

.kids-lobby-page .game-card-body {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: grid;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 7px 52px;
  place-items: center;
  background: transparent;
  pointer-events: none;
}

.kids-lobby-page .game-card h2 {
  display: -webkit-box;
  min-height: 0;
  max-height: 42px;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.16;
  text-align: center;
  text-shadow:
    0 2px 3px rgba(5, 24, 34, 0.98),
    0 0 8px rgba(5, 24, 34, 0.92);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kids-lobby-page .game-card-body > :not(h2),
.kids-lobby-page .game-card p,
.kids-lobby-page .game-card-state,
.kids-lobby-page .game-card-categories,
.kids-lobby-page .game-card-skills,
.kids-lobby-page .game-card-skill-reason,
.kids-lobby-page .game-card-facts,
.kids-lobby-page .game-card-meta,
.kids-lobby-page .game-card-plays,
.kids-lobby-page .game-card-actions span:last-child,
.kids-lobby-page .popular-card-badge,
.kids-lobby-page .updated-card-badge {
  display: none;
}

.kids-lobby-page .game-card-body > p {
  display: none;
}

.kids-lobby-page .game-card.coming-soon .game-card-body > p {
  display: none;
}

.kids-lobby-page .game-card-topline {
  display: none;
}

.kids-lobby-page .game-card-age-overlay {
  position: absolute;
  top: 68px;
  left: 10px;
  z-index: 3;
  display: grid;
  min-width: 46px;
  min-height: 34px;
  padding: 6px 10px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: #ffdf68;
  color: #4d3405;
  font-size: 14px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 4px 0 rgba(142, 94, 10, 0.32);
}

.kids-lobby-page .game-card-age-note {
  position: absolute;
  top: 108px;
  left: 10px;
  z-index: 3;
  display: block;
  width: min(190px, calc(100% - 20px));
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 9px;
  background: rgba(26, 54, 76, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
}

.kids-lobby-page .game-card-actions {
  display: none;
}

.kids-lobby-page .favorite-toggle,
.kids-lobby-page .continue-badge {
  top: 66px;
}

.kids-lobby-page .favorite-toggle {
  background: #ffffff;
  color: #e74f5f;
}

.kids-lobby-page .kids-promise {
  margin-top: 28px;
  border: 0;
  background: #267e77;
  color: #ffffff;
}

.kids-lobby-page .kids-promise span {
  color: #ffea8a;
}

.kids-lobby-page .kids-promise p,
.kids-lobby-page .kids-promise li {
  color: #ffffff;
}

.kids-lobby-page .parent-trust-strip {
  margin-top: 14px;
  border: 0;
  background: #fff4ca;
  color: #17324a;
}

.kids-lobby-page .parent-trust-copy span,
.kids-lobby-page .parent-trust-copy p,
.kids-lobby-page .parent-trust-points small {
  color: #526d78;
}

.kids-lobby-page .parent-trust-points div {
  border-color: #c9dfb0;
  background: #ffffff;
}

.kids-lobby-page .parent-trust-points strong {
  color: #267e77;
}

.kids-lobby-page .trust-report-link,
.kids-lobby-page .site-footer a {
  color: #146c82;
}

.kids-lobby-page .site-footer {
  border-color: #9fc8d8;
  color: #526d78;
}

.kids-lobby-page #advancedFilters {
  border: 2px solid #b7dbe8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 0 #c7e1e9;
}

.kids-lobby-page #advancedFilters summary {
  color: #244c63;
}

.kids-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button {
  border: 2px solid #c4e0ea;
  background: #ffffff;
  color: #244c63;
  box-shadow: 0 3px 0 #c7e1e9;
}

.kids-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button.active {
  border-color: #195f7e;
  background: #247fa4;
  color: #ffffff;
  box-shadow: 0 3px 0 #174c67;
}

.kids-lobby-page .section-heading span {
  color: #ef5d4a;
}

.kids-lobby-page .section-heading h2,
.kids-lobby-page .hero-game-card strong,
.kids-lobby-page .upcoming-game-copy strong,
.kids-lobby-page .fresh-update-copy strong {
  color: #17324a;
}

.kids-lobby-page .hero-game-card,
.kids-lobby-page .upcoming-game-card,
.kids-lobby-page .fresh-update-card {
  border: 3px solid #ffffff;
  border-radius: 12px;
  background: #ffffff;
  color: #17324a;
  box-shadow: 0 6px 0 #a9cedb;
}

.kids-lobby-page .hero-game-card {
  grid-template-rows: 108px minmax(0, auto);
  min-height: 172px;
}

.kids-lobby-page .hero-game-copy {
  gap: 3px;
  padding: 9px 10px 10px;
}

.kids-lobby-page .hero-game-card small {
  display: none;
}

.kids-lobby-page .hero-game-card em,
.kids-lobby-page .fresh-update-skills span {
  border-color: #b8e7d7;
  background: #e8f9f3;
  color: #1b6856;
}

.kids-lobby-page .upcoming-games {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kids-lobby-page .upcoming-game-card {
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 146px;
}

.kids-lobby-page .upcoming-game-copy small,
.kids-lobby-page .fresh-update-copy small {
  color: #48687a;
}

.kids-lobby-page .upcoming-game-copy em,
.kids-lobby-page .fresh-update-copy em,
.kids-lobby-page .upcoming-game-copy .game-card-state,
.kids-lobby-page .upcoming-game-copy .game-card-state strong,
.kids-lobby-page .upcoming-game-copy .game-card-state span {
  color: #6c4b13;
}

.kids-lobby-page .upcoming-game-copy .game-card-state {
  display: none;
}

@media (min-width: 1120px) {
  .kids-lobby-page .lobby-shell {
    width: calc(100% - 24px);
    max-width: none;
    padding-left: 264px;
    box-sizing: border-box;
  }

  .kids-lobby-page .desktop-filter-rail {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    width: 244px;
    padding: 16px 12px;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    border: 3px solid #ffffff;
    border-radius: 16px;
    background:
      radial-gradient(circle at 18% 0%, rgba(255, 223, 104, 0.42), transparent 13rem),
      linear-gradient(180deg, #f8fdff, #eef9ef);
    box-shadow: 0 10px 0 #9fd26f, 0 22px 48px rgba(58, 115, 134, 0.2);
    scrollbar-width: thin;
    scrollbar-color: #7eb9cf transparent;
  }

  .kids-lobby-page .desktop-filter-rail > * {
    order: 0;
  }

  .kids-lobby-page .desktop-filter-rail-heading span {
    color: #ef5d4a;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .kids-lobby-page .desktop-filter-rail-heading h2 {
    margin: 5px 0 0;
    color: #17324a;
    font-size: 20px;
    line-height: 1.08;
  }

  .kids-lobby-page .desktop-filter-group {
    display: grid;
    gap: 7px;
  }

  .kids-lobby-page .desktop-filter-group h3 {
    margin: 0;
    color: #4f788c;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .kids-lobby-page .desktop-filter-rail .library-tabs,
  .kids-lobby-page .desktop-filter-grid {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 6px;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .kids-lobby-page .desktop-filter-rail .library-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .kids-lobby-page .desktop-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kids-lobby-page .desktop-filter-rail :is(.library-tabs, .age-filter, .topic-filter, .availability-filter) button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    height: auto;
    padding: 7px 8px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    overflow: hidden;
    border: 2px solid #c6e2eb;
    border-radius: 9px;
    background: #ffffff;
    color: #244c63;
    box-shadow: 0 3px 0 #c7e1e9;
    font-size: 11px;
    font-weight: 900;
  }

  .kids-lobby-page .desktop-filter-rail .library-tabs button {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .kids-lobby-page .desktop-filter-rail button:hover,
  .kids-lobby-page .desktop-filter-rail button:focus-visible {
    border-color: #54a9ca;
    background: #f4fcff;
  }

  .kids-lobby-page .desktop-filter-rail :is(.library-tabs, .age-filter, .topic-filter, .availability-filter) button.active {
    border-color: #195f7e;
    background: #247fa4;
    color: #ffffff;
    box-shadow: 0 3px 0 #174c67;
  }

  .kids-lobby-page .desktop-filter-rail .filter-copy {
    min-width: 0;
    align-items: flex-start;
  }

  .kids-lobby-page .desktop-filter-rail .filter-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .kids-lobby-page .desktop-filter-rail .filter-hint {
    display: none;
  }

  .kids-lobby-page .desktop-filter-rail .filter-count {
    display: grid;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    flex: 0 0 auto;
    place-items: center;
  }

  .kids-lobby-page .desktop-filter-reset {
    min-height: 44px;
    flex: 0 0 auto;
    border: 2px solid #ef9d8e;
    border-radius: 10px;
    background: #fff7f4;
    color: #a33f31;
    font-weight: 1000;
    cursor: pointer;
  }

  .kids-lobby-page > .lobby-shell > .kids-play-heading,
  .kids-lobby-page > .lobby-shell > .kids-age-filter,
  .kids-lobby-page > .lobby-shell > .kids-skill-strip,
  .kids-lobby-page > .lobby-shell > .library-tabs,
  .kids-lobby-page > .lobby-shell > #advancedFilters {
    display: none;
  }
}

@media (max-width: 720px) {
  .kids-lobby-page .kids-lobby-hero {
    height: 260px;
  }

  .kids-lobby-page .kids-hero-scene {
    object-position: 58% 44%;
  }

  .kids-lobby-page .lobby-hero-copy {
    top: 68px;
    left: 16px;
    width: 58%;
  }

  .kids-lobby-page .lobby-hero h1 {
    font-size: 31px;
  }

  .kids-lobby-page .lobby-subtitle {
    display: none;
  }

  .kids-lobby-page .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .kids-lobby-page .kids-back-link {
    width: 50px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .kids-lobby-page .kids-back-link::before {
    margin: 0;
    color: #16658d;
    font-size: 30px;
  }

  .kids-lobby-page .lobby-feature {
    right: 12px;
    bottom: 12px;
    width: min(245px, calc(100% - 108px));
    min-height: 58px;
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .kids-lobby-page .lobby-feature img {
    width: 42px;
    height: 42px;
  }

  .kids-lobby-page .lobby-feature strong {
    font-size: 15px;
  }

  .kids-lobby-page .kids-play-heading {
    margin-top: 15px;
  }

  .kids-lobby-page .kids-age-filter {
    gap: 6px;
  }

  .kids-lobby-page .kids-age-filter button {
    height: 60px;
    font-size: 16px;
  }

  .kids-lobby-page .kids-age-filter button[data-age-filter="all"] {
    padding-inline: 4px;
    font-size: 14px;
  }

  .kids-lobby-page .kids-age-filter .filter-copy {
    flex: 1 1 auto;
  }

  .kids-lobby-page .kids-skill-strip .vibe-options {
    grid-auto-columns: minmax(118px, 34vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 5px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .kids-lobby-page .kids-skill-strip .vibe-options::-webkit-scrollbar {
    display: none;
  }

  .kids-lobby-page .kids-skill-strip button {
    scroll-snap-align: start;
  }

  .kids-lobby-page .hero-games {
    grid-auto-columns: minmax(180px, 60vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .kids-lobby-page .upcoming-games {
    grid-auto-columns: minmax(250px, 78vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .kids-lobby-page .upcoming-game-card {
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 150px;
    scroll-snap-align: start;
  }

  .kids-lobby-page .lobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 10px;
  }

  .kids-lobby-page .game-card {
    height: 100%;
  }

  .kids-lobby-page .game-card-body {
    height: 44px;
    min-height: 44px;
    padding: 5px 44px;
    background: transparent;
  }

  .kids-lobby-page .game-card h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    max-height: 36px;
    font-size: 16px;
    line-height: 1.12;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .kids-lobby-page .game-card-age-overlay {
    top: 50px;
    left: 7px;
    min-width: 40px;
    min-height: 30px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .kids-lobby-page .favorite-toggle {
    top: 49px;
    right: 7px;
    width: 40px;
    height: 40px;
  }

  .kids-lobby-page .continue-badge {
    top: 49px;
  }

  .kids-lobby-page .parent-trust-strip,
  .kids-lobby-page .kids-promise {
    padding: 18px;
  }
}

@media (max-width: 370px) {
  .kids-lobby-page .lobby-kicker {
    display: none;
  }

  .kids-lobby-page .lobby-search-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .kids-lobby-page .quick-pick-btn {
    font-size: 12px;
  }

  .kids-lobby-page .kids-age-filter button {
    padding: 4px;
    font-size: 13px;
  }

  .kids-lobby-page .kids-age-filter button[data-age-filter="all"] {
    font-size: 11px;
  }

  .kids-lobby-page .kids-age-filter .filter-label,
  .kids-lobby-page .library-tabs .filter-label {
    overflow: visible;
    overflow-wrap: anywhere;
    line-height: 1.05;
    text-overflow: clip;
    white-space: normal;
  }

  .kids-lobby-page .kids-age-filter .filter-copy,
  .kids-lobby-page .library-tabs .filter-copy {
    overflow: visible;
  }

  .kids-lobby-page > .lobby-shell > .library-tabs button {
    height: 58px;
    padding-inline: 5px;
    font-size: 13px;
  }
}

/* General lobby: mature, image-led discovery with the playable catalog first. */
body.general-lobby-page {
  color-scheme: light;
  background: #eaf0ed;
  color: #172d2a;
}

.general-lobby-page .lobby-shell {
  display: flex;
  width: min(100%, 1180px);
  padding-top: max(10px, env(safe-area-inset-top));
  flex-direction: column;
}

.general-lobby-page .lobby-hero {
  position: relative;
  order: 0;
  display: block;
  height: clamp(240px, 27vw, 280px);
  min-height: 0;
  margin-bottom: 14px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #426159;
  border-radius: 8px;
  background: #1b302c;
  box-shadow: 0 10px 0 #b8c7bd;
  isolation: isolate;
}

.general-lobby-page .general-hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.general-lobby-page .lobby-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 23, 21, 0.38);
  pointer-events: none;
}

.general-lobby-page .lobby-hero-copy {
  position: absolute;
  top: 38px;
  left: clamp(20px, 4vw, 48px);
  width: min(47%, 500px);
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(4, 13, 12, 0.82);
}

.general-lobby-page .lobby-kicker {
  width: fit-content;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 5px;
  background: #f2bd4e;
  color: #352506;
  text-shadow: none;
}

.general-lobby-page .brand-lockup {
  display: block;
}

.general-lobby-page .brand-logo,
.general-lobby-page .brand-byline,
.general-lobby-page .lobby-mascot {
  display: none;
}

.general-lobby-page .lobby-hero h1 {
  max-width: 460px;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 0.94;
}

.general-lobby-page .lobby-subtitle {
  max-width: 440px;
  margin-top: 12px;
  color: #ffffff;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 750;
  line-height: 1.45;
}

.general-lobby-page .language-picker {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 96px;
  min-height: 36px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  background: rgba(18, 34, 31, 0.88);
  color: #f4e9cc;
  box-shadow: 0 5px 0 rgba(5, 15, 13, 0.7);
}

.general-lobby-page .language-picker span {
  display: none;
}

.general-lobby-page .language-picker select {
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 11px;
}

.general-lobby-page .lobby-account-strip {
  order: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  margin: 28px 0 0;
  padding: 10px 14px;
  border: 1px solid #b7c8c1;
  border-radius: 7px;
  background: #fffdf5;
  color: #17342e;
  box-shadow: 0 6px 0 #c1cec8;
}

.general-lobby-page .lobby-player-summary > span {
  display: block;
  color: #6d7f79;
  font-size: 10px;
  font-weight: 900;
}

.general-lobby-page .lobby-player-summary > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.general-lobby-page .lobby-player-summary strong {
  font-size: 17px;
}

.general-lobby-page .lobby-player-summary b {
  color: #a35b18;
  font-size: 12px;
}

.general-lobby-page .lobby-account-strip .lobby-wallet {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: 106px;
  min-height: 42px;
  padding: 6px 10px;
  border: 1px solid #b7c8c1;
  border-radius: 7px;
  background: #eef7f3;
  box-shadow: none;
}

.general-lobby-page .lobby-account-strip .lobby-wallet span {
  color: #587169;
  font-size: 10px;
}

.general-lobby-page .lobby-account-strip .lobby-wallet strong {
  gap: 4px;
  color: #176885;
  font-size: 15px;
}

.general-lobby-page .lobby-account-strip .lobby-wallet img {
  width: 18px;
  height: 18px;
}

.general-lobby-page .lobby-feature {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: 18px;
  z-index: 2;
  display: grid;
  width: min(330px, 48%);
  min-height: 70px;
  padding: 8px 12px 8px 8px;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid #f6d990;
  border-radius: 7px;
  background: #d8654c;
  color: #ffffff;
  box-shadow: 0 6px 0 #78372b;
}

.general-lobby-page .lobby-feature img {
  width: 52px;
  height: 52px;
  border-radius: 5px;
}

.general-lobby-page .lobby-feature span {
  color: #ffe5ad;
  font-size: 11px;
}

.general-lobby-page .lobby-feature strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.general-lobby-page .general-play-heading {
  order: 1;
  margin: 8px 0 6px;
  text-align: center;
}

.general-lobby-page .general-play-heading span {
  color: #8e3a2b;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.general-lobby-page .general-play-heading h2 {
  margin: 3px 0 0;
  color: #172d2a;
  font-size: clamp(27px, 4vw, 36px);
  line-height: 1.05;
}

.general-lobby-page .lobby-search-row {
  order: 3;
  margin: 4px 0 8px;
}

.general-lobby-page .vibe-strip {
  order: 2;
  display: grid;
  gap: 7px;
  margin: 2px 0 8px;
}

.general-lobby-page .vibe-strip h3 {
  margin: 0;
  color: #60756f;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.general-lobby-page .vibe-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.general-lobby-page .vibe-options button {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #a8bbb5;
  border-radius: 7px;
  background: #fffdf5;
  color: #29453f;
  box-shadow: 0 4px 0 #c2d0ca;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.1;
  cursor: pointer;
}

.general-lobby-page .vibe-options button::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d8654c;
  box-shadow: 0 0 0 4px rgba(216, 101, 76, 0.14);
}

.general-lobby-page .vibe-options button:nth-child(2)::before { background: #e6a527; box-shadow: 0 0 0 4px rgba(230, 165, 39, 0.14); }
.general-lobby-page .vibe-options button:nth-child(3)::before { background: #3c9d87; box-shadow: 0 0 0 4px rgba(60, 157, 135, 0.14); }
.general-lobby-page .vibe-options button:nth-child(4)::before { background: #567cc1; box-shadow: 0 0 0 4px rgba(86, 124, 193, 0.14); }
.general-lobby-page .vibe-options button:nth-child(5)::before { background: #8d62b7; box-shadow: 0 0 0 4px rgba(141, 98, 183, 0.14); }

.general-lobby-page .vibe-options button:hover,
.general-lobby-page .vibe-options button:focus-visible {
  border-color: #6e9b90;
  background: #f3faf7;
  transform: translateY(-1px);
}

.general-lobby-page .vibe-options button.active {
  border-color: #274d45;
  background: #315f56;
  color: #ffffff;
  box-shadow: 0 4px 0 #193a33;
}

.general-lobby-page .lobby-search {
  position: relative;
  color: #35544e;
}

.general-lobby-page .lobby-search > span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.general-lobby-page .lobby-search input {
  min-height: 54px;
  border: 1px solid #8ba69e;
  border-radius: 7px;
  background: #ffffff;
  color: #172d2a;
  box-shadow: 0 5px 0 #c2d0ca;
}

.general-lobby-page .lobby-search input::placeholder {
  color: #6c817c;
}

.general-lobby-page .quick-pick-btn {
  min-height: 54px;
  border: 1px solid #e0a430;
  border-radius: 7px;
  background: #f2bd4e;
  color: #352506;
  box-shadow: 0 5px 0 #a66b17;
}

.general-lobby-page .library-tabs {
  order: 4;
  gap: 8px;
  padding-bottom: 10px;
}

.general-lobby-page .library-tabs button {
  min-height: 56px;
  height: auto;
  padding: 8px 12px;
  border: 1px solid #9bb0a9;
  border-radius: 7px;
  background: #ffffff;
  color: #29453f;
  font-size: 16px;
  line-height: 1.15;
  box-shadow: 0 4px 0 #c2d0ca;
}

.general-lobby-page .library-tabs button.active {
  border-color: #274d45;
  background: #315f56;
  color: #ffffff;
  box-shadow: 0 4px 0 #193a33;
}

.general-lobby-page .library-tabs .filter-count {
  display: none;
}

.general-lobby-page .game-hall-switch {
  order: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
}

.general-lobby-page .game-hall-switch button {
  display: grid;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  align-content: center;
  gap: 3px;
  border: 1px solid #354154;
  border-radius: 10px;
  background: linear-gradient(180deg, #182230, #111821);
  color: #dbe3ee;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.general-lobby-page .game-hall-switch button:hover,
.general-lobby-page .game-hall-switch button:focus-visible {
  border-color: #8d7cff;
  background: #202a3a;
}

.general-lobby-page .game-hall-switch button:focus-visible {
  outline: 3px solid #b7aaff;
  outline-offset: 3px;
}

.general-lobby-page .game-hall-switch button.active {
  border-color: #a997ff;
  background: linear-gradient(135deg, #715ce0, #3e6ecf);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(154, 137, 255, 0.18), 0 8px 22px rgba(76, 65, 176, 0.36);
}

.general-lobby-page[data-game-hall="tabletop"] .game-hall-switch button.active {
  border-color: #ffd776;
  background: linear-gradient(135deg, #9a5a22, #c2832f);
  box-shadow: 0 0 0 1px rgba(255, 215, 118, 0.2), 0 8px 22px rgba(151, 91, 26, 0.34);
}

.general-lobby-page .game-hall-switch span {
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
}

.general-lobby-page .game-hall-switch small {
  overflow-wrap: anywhere;
  color: #9facbd;
  font-size: 11px;
  line-height: 1.25;
}

.general-lobby-page .game-hall-switch button.active small {
  color: rgba(255, 255, 255, 0.86);
}

.general-lobby-page [data-hall-only][hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .general-lobby-page .game-hall-switch {
    gap: 8px;
    margin-block: 7px 5px;
  }

  .general-lobby-page .game-hall-switch button {
    min-height: 48px;
    padding: 8px 9px;
    text-align: center;
  }

  .general-lobby-page .game-hall-switch span {
    font-size: 15px;
  }

  .general-lobby-page .game-hall-switch small {
    display: none;
  }
}

.general-lobby-page #advancedFilters {
  order: 5;
  border-color: #aebdb8;
  border-radius: 7px;
  background: #ffffff;
}

.general-lobby-page #advancedFilters summary {
  color: #29453f;
}

.general-lobby-page #filterStatus {
  order: 6;
  color: #172d2a;
}

.general-lobby-page #continuePlayingSection {
  order: 7;
}

.general-lobby-page #heroGamesSection {
  order: 8;
}

@media (min-width: 760px) {
  .general-lobby-page #continuePlayingSection .section-heading,
  .general-lobby-page #heroGamesSection .section-heading {
    justify-content: flex-start;
  }

  .general-lobby-page #continuePlayingSection .section-heading h2,
  .general-lobby-page #heroGamesSection .section-heading h2 {
    display: none;
  }
}

@media (max-width: 759px) {
  .lobby-page #continuePlayingSection .section-heading,
  .lobby-page #heroGamesSection .section-heading {
    display: none;
  }
}

.general-lobby-page #gameGrid {
  order: 9;
}

.general-lobby-page #dailyReward {
  order: 11;
}

.general-lobby-page #upcomingGamesSection {
  order: 12;
  gap: 14px;
  padding-bottom: 2px;
}

.general-lobby-page #upcomingGamesSection .section-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.general-lobby-page #upcomingGamesSection .section-heading span {
  color: #a64a35;
}

.general-lobby-page #upcomingGamesSection .section-heading h2 {
  color: #172d2a;
}

.general-lobby-page .upcoming-games {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.general-lobby-page .upcoming-game-card {
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 154px;
  border-color: #b7c5c0;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 6px 0 #c2d0ca;
  color: #172d2a;
}

.general-lobby-page .upcoming-game-art {
  border: 1px solid #d3ddd9;
  background: #1c3640;
}

.general-lobby-page .upcoming-game-copy {
  gap: 7px;
}

.general-lobby-page .upcoming-game-copy strong {
  color: #172d2a;
  font-size: 18px;
}

.general-lobby-page .upcoming-game-copy small {
  color: #45635c;
}

.general-lobby-page .upcoming-game-copy em {
  color: #5d4530;
  -webkit-line-clamp: 2;
}

.general-lobby-page .upcoming-game-copy .game-card-state,
.general-lobby-page .upcoming-game-copy .game-card-state strong,
.general-lobby-page .upcoming-game-copy .game-card-state span {
  color: #5d4530;
}

.general-lobby-page .upcoming-game-copy .game-card-state {
  display: none;
}

.general-lobby-page .fresh-update-card {
  border-color: #b7c5c0;
  border-radius: 7px;
  background: #ffffff;
  color: #172d2a;
  box-shadow: 0 6px 0 #c2d0ca;
}

.general-lobby-page .fresh-update-copy strong {
  color: #172d2a;
}

.general-lobby-page .fresh-update-copy small {
  color: #45635c;
}

.general-lobby-page .fresh-update-copy em {
  color: #5d4530;
}

.general-lobby-page .fresh-update-skills span {
  background: #e5f5f1;
  color: #24534a;
}

.general-lobby-page .kids-portal {
  order: 13;
}

.general-lobby-page #freshUpdatesSection {
  order: 14;
}

.general-lobby-page .general-trust-strip {
  order: 15;
}

.general-lobby-page .site-footer {
  order: 16;
}

.general-lobby-page #lobbyStats,
.general-lobby-page #discoverySnapshot,
.general-lobby-page #mobilePicksSection,
.general-lobby-page #characterShowcaseSection,
.general-lobby-page #challengeSpotlightSection,
.general-lobby-page #recommendationsSection,
.general-lobby-page #skillPathsSection {
  display: none !important;
}

.general-lobby-page .section-heading span {
  color: #8e3a2b;
}

.general-lobby-page .section-heading h2 {
  color: #172d2a;
}

.general-lobby-page .hero-game-card {
  grid-template-rows: 108px minmax(0, auto);
  min-height: 170px;
  border-color: #b7c5c0;
  border-radius: 7px;
  background: #ffffff;
  color: #172d2a;
  box-shadow: 0 6px 0 #c2d0ca;
}

.general-lobby-page .hero-game-card small {
  display: none;
}

.general-lobby-page .hero-game-card em {
  border-color: #a8d2ca;
  background: #e5f5f1;
  color: #24534a;
}

.general-lobby-page .hero-game-copy {
  gap: 3px;
  padding: 9px 10px 10px;
}

.general-lobby-page .hero-game-card strong {
  font-size: 17px;
}

.general-lobby-page .hero-game-card em {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

.general-lobby-page .continue-playing-card {
  border-color: #b7c5c0;
  background: #ffffff;
  color: #172d2a;
  box-shadow: 0 6px 0 #c2d0ca;
}

.general-lobby-page .continue-playing-copy strong {
  color: #172d2a;
}

.general-lobby-page .continue-playing-copy small {
  color: #45635c;
}

.general-lobby-page .continue-playing-copy b {
  background: #dff3ed;
  color: #1f6758;
}

.general-lobby-page .continue-playing-card:hover,
.general-lobby-page .continue-playing-card:focus-visible {
  border-color: #6e9b90;
  background: #f5faf8;
}

.general-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button {
  border-color: #b7c5c0;
  background: #f4f8f6;
  color: #29453f;
  box-shadow: inset 0 -2px rgba(41, 69, 63, 0.08);
}

.general-lobby-page .advanced-filter-groups .filter-hint {
  color: #60756f;
}

.general-lobby-page .advanced-filter-groups .filter-count {
  background: #dce8e3;
  color: #29453f;
  box-shadow: none;
}

.general-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button.active {
  border-color: #d69a2e;
  background: #f2bd4e;
  color: #352506;
  box-shadow: 0 4px 0 #a66b17;
}

.general-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button.active .filter-count {
  background: rgba(53, 37, 6, 0.14);
  color: #352506;
}

.general-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}

.general-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button {
  width: 100%;
  min-width: 0;
  padding-inline: 8px;
  font-size: 13px;
}

.general-lobby-page .advanced-filter-groups .availability-filter button {
  height: 62px;
}

.general-lobby-page .advanced-filter-groups .filter-label {
  overflow: visible;
  line-height: 1.15;
  text-align: center;
  text-overflow: clip;
  white-space: normal;
}

.general-lobby-page .advanced-filter-groups .filter-copy {
  width: 100%;
  align-items: center;
}

.general-lobby-page .advanced-filter-groups .filter-count {
  display: none;
}

.lobby-page .weightplay-version-badge {
  display: block;
}

.general-lobby-page .daily-reward {
  border-color: #d5c487;
  background: #fffdf4;
  color: #172d2a;
  box-shadow: 0 6px 0 #d6c993;
}

.general-lobby-page .daily-reward-copy span {
  color: #a96118;
}

.general-lobby-page .daily-reward-copy small {
  color: #556962;
}

.general-lobby-page .daily-day {
  border-color: #c8d6d0;
  background: #f0f6f3;
  color: #284940;
}

.general-lobby-page .daily-day span,
.general-lobby-page .daily-day small {
  color: #4c625a;
}

.general-lobby-page .daily-day b {
  color: #1e6255;
}

.general-lobby-page .daily-day.current {
  border-color: #4aa898;
  background: #dff3ed;
  box-shadow: 0 0 0 2px rgba(74, 168, 152, 0.18) inset;
}

.general-lobby-page .daily-day.claimable {
  border-color: #d69a2e;
  background: #fff0bf;
  box-shadow: 0 0 0 2px rgba(214, 154, 46, 0.16) inset;
}

.general-lobby-page .daily-day.claimed small {
  color: #2b7a4d;
}

.general-lobby-page .lobby-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 12px;
  align-items: stretch;
}

.general-lobby-page .game-card {
  height: 100%;
  min-height: 0;
  border: 1px solid #b7c5c0;
  border-radius: 7px;
  background: #ffffff;
  color: #172d2a;
  box-shadow: 0 6px 0 #c2d0ca;
}

.general-lobby-page .game-card-art.image-art,
.general-lobby-page .game-card.coming-soon .game-card-art.image-art {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  border-top: 1px solid #d4ddd9;
  border-bottom: 0;
}

.general-lobby-page .game-card-bg-blur {
  display: none;
}

.general-lobby-page .game-card-art.image-art .game-card-fg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.general-lobby-page .game-card-art.image-art .game-card-hero {
  width: 44%;
  height: 58%;
}

.general-lobby-page .game-card-body {
  display: grid;
  order: -1;
  height: 58px;
  min-height: 58px;
  padding: 7px 10px;
  flex: 0 0 58px;
  place-items: center;
}

.general-lobby-page .game-card h2 {
  display: -webkit-box;
  min-height: 0;
  max-height: 42px;
  overflow: hidden;
  color: #172d2a;
  font-size: 18px;
  line-height: 1.16;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.general-lobby-page .game-card-body > :not(h2),
.general-lobby-page .game-card p,
.general-lobby-page .game-card-state,
.general-lobby-page .game-card-categories,
.general-lobby-page .game-card-skills,
.general-lobby-page .game-card-skill-reason,
.general-lobby-page .game-card-facts,
.general-lobby-page .game-card-meta,
.general-lobby-page .game-card-plays,
.general-lobby-page .game-card-actions span:last-child,
.general-lobby-page .popular-card-badge,
.general-lobby-page .updated-card-badge {
  display: none;
}

.general-lobby-page .game-card.coming-soon .game-card-body > p {
  display: none;
}

.general-lobby-page .game-card-topline {
  display: none;
}

.general-lobby-page .game-card-actions {
  display: none;
}

.general-lobby-page .favorite-toggle,
.general-lobby-page .continue-badge {
  top: 66px;
}

.general-lobby-page .favorite-toggle {
  background: rgba(255, 255, 255, 0.94);
  color: #b64b36;
}

.general-lobby-page .daily-reward,
.general-lobby-page .kids-portal,
.general-lobby-page .general-trust-strip {
  margin-top: 28px;
}

.general-lobby-page .kids-portal {
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  min-height: 350px;
  border: 1px solid #2f7275;
  border-radius: 7px;
  background: linear-gradient(135deg, #0b3d46, #135864);
  color: #ffffff;
  box-shadow: 0 7px 0 #0a3038;
}

.general-lobby-page .kids-portal > img {
  min-height: 350px;
  object-position: center;
}

.general-lobby-page .kids-portal-copy {
  gap: 14px;
  padding: clamp(28px, 5vw, 56px);
}

.general-lobby-page .kids-portal-copy h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
}

.general-lobby-page .kids-portal-copy > span,
.general-lobby-page .kids-portal-copy p {
  color: #d7eeeb;
}

.general-lobby-page .kids-portal-copy > span {
  color: #8fe0c5;
}

.general-lobby-page .kids-portal-copy p {
  max-width: 38ch;
  font-size: 16px;
}

.general-lobby-page .kids-portal-copy a {
  border: 1px solid #ffd972;
  background: #ffd866;
  color: #21312d;
  box-shadow: 0 5px 0 #aa711c;
}

.general-lobby-page .general-trust-strip {
  border: 0;
  background: #e6e0cc;
  color: #293f3a;
}

.general-lobby-page .parent-trust-copy span,
.general-lobby-page .parent-trust-copy p,
.general-lobby-page .parent-trust-points small {
  color: #40544e;
}

.general-lobby-page .parent-trust-points div {
  border-color: #c6c5b5;
  background: #ffffff;
}

.general-lobby-page .parent-trust-points strong {
  color: #244b42;
}

.general-lobby-page .trust-report-link,
.general-lobby-page .site-footer a {
  color: #7c3123;
}

.general-lobby-page .site-footer {
  border-color: #b7c5c0;
  color: #405c55;
}

@media (max-width: 720px) {
  .general-lobby-page .lobby-hero {
    height: 220px;
  }

  .general-lobby-page .general-hero-scene {
    object-position: 52% 45%;
  }

  .general-lobby-page .lobby-hero-copy {
    top: 36px;
    left: 16px;
    width: 70%;
  }

  .general-lobby-page .lobby-hero h1 {
    font-size: 34px;
  }

  .general-lobby-page .lobby-subtitle {
    display: -webkit-box;
    overflow: hidden;
    max-width: 230px;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .general-lobby-page .language-picker {
    width: 92px;
  }

  .general-lobby-page .lobby-account-strip {
    min-height: 58px;
    margin: 24px 0 0;
    padding: 8px 10px;
  }

  .general-lobby-page .lobby-feature {
    right: 8px;
    bottom: 8px;
    width: min(210px, 64%);
    min-height: 50px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 8px 6px 6px;
  }

  .general-lobby-page .lobby-feature img {
    width: 36px;
    height: 36px;
  }

  .general-lobby-page .lobby-feature strong {
    font-size: 14px;
  }

  .general-lobby-page .general-play-heading {
    margin: 8px 0 4px;
    text-align: left;
  }

  .general-lobby-page .general-play-heading span {
    display: none;
  }

  .general-lobby-page .general-play-heading h2 {
    font-size: 25px;
  }

  .general-lobby-page .vibe-strip {
    margin-bottom: 7px;
  }

  .general-lobby-page .vibe-strip h3 {
    display: none;
  }

  .general-lobby-page .vibe-options {
    display: flex;
    padding: 2px 0 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .general-lobby-page .vibe-options::-webkit-scrollbar {
    display: none;
  }

  .general-lobby-page .vibe-options button {
    min-width: 108px;
    min-height: 44px;
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: 12px;
  }

  .general-lobby-page .hero-games {
    grid-auto-columns: minmax(180px, 60vw);
  }

  .general-lobby-page .upcoming-games {
    grid-auto-columns: auto;
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .general-lobby-page .upcoming-game-card {
    grid-template-columns: 100px minmax(0, 1fr);
    min-height: 154px;
    width: 100%;
    scroll-snap-align: none;
  }

  .general-lobby-page .upcoming-game-copy strong {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    font-size: 17px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .general-lobby-page .kids-portal {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .general-lobby-page .kids-portal > img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .general-lobby-page .kids-portal-copy {
    padding: 28px 24px 30px;
  }

  .general-lobby-page .kids-portal-copy h2 {
    font-size: 34px;
  }

  .general-lobby-page .lobby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .general-lobby-page .game-card-body {
    height: 48px;
    min-height: 48px;
    padding: 6px 8px;
    flex-basis: 48px;
  }

  .general-lobby-page .game-card h2 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    max-height: 36px;
    font-size: 16px;
    line-height: 1.12;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .general-lobby-page .game-card-art.image-art .game-card-fg {
    position: absolute;
    inset: 0;
    display: block;
  }

  .general-lobby-page .favorite-toggle,
  .general-lobby-page .continue-badge {
    top: 55px;
  }

  .general-lobby-page .favorite-toggle {
    right: 7px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 370px) {
  .general-lobby-page .lobby-search-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .general-lobby-page .quick-pick-btn {
    font-size: 12px;
  }

  .general-lobby-page .lobby-hero-copy {
    width: 72%;
  }
}

/* General lobby discovery rail and graphite theme. Kids routes are intentionally excluded. */
body.general-lobby-page {
  color-scheme: dark;
  background:
    radial-gradient(circle at 12% 8%, rgba(87, 65, 173, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(35, 143, 148, 0.12), transparent 28rem),
    #090d13;
  color: #e8edf5;
}

.general-lobby-page .lobby-shell {
  width: calc(100% - 24px);
  max-width: none;
}

.general-lobby-page .desktop-filter-rail {
  display: none;
}

.general-lobby-page .lobby-hero {
  border-color: #303b4c;
  background: #111925;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.46);
}

.general-lobby-page .general-play-heading h2,
.general-lobby-page .section-heading h2,
.general-lobby-page #filterStatus,
.general-lobby-page .game-card h2,
.general-lobby-page .continue-playing-copy strong,
.general-lobby-page .upcoming-game-copy strong,
.general-lobby-page .fresh-update-copy strong {
  color: #f1f4fa;
}

.general-lobby-page .general-play-heading span,
.general-lobby-page .section-heading span {
  color: #9f8cff;
}

.general-lobby-page .vibe-strip h3,
.general-lobby-page .upcoming-game-copy small,
.general-lobby-page .fresh-update-copy small {
  color: #8d99aa;
}

.general-lobby-page .vibe-options button,
.general-lobby-page .library-tabs button,
.general-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button {
  border-color: #2c3849;
  background: linear-gradient(180deg, #182230, #111821);
  color: #dbe3ee;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
}

.general-lobby-page .vibe-options button:hover,
.general-lobby-page .vibe-options button:focus-visible,
.general-lobby-page .library-tabs button:hover,
.general-lobby-page .library-tabs button:focus-visible {
  border-color: #6e5ee8;
  background: #202a3a;
}

.general-lobby-page .vibe-options button.active,
.general-lobby-page .library-tabs button.active,
.general-lobby-page .advanced-filter-groups :is(.topic-filter, .skill-filter, .availability-filter) button.active {
  border-color: #9a89ff;
  background: linear-gradient(135deg, #715ce0, #3e6ecf);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(154, 137, 255, 0.18), 0 8px 22px rgba(76, 65, 176, 0.36);
}

.general-lobby-page .lobby-search {
  color: #cbd5e3;
}

.general-lobby-page .lobby-search input {
  border-color: #354154;
  background: #111923;
  color: #f3f6fb;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.3);
}

.general-lobby-page .lobby-search input::placeholder {
  color: #7f8a9a;
}

.general-lobby-page .quick-pick-btn {
  border-color: #a98738;
  background: linear-gradient(180deg, #f2c565, #d9a43d);
  color: #211a0b;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.34);
}

.general-lobby-page #advancedFilters,
.general-lobby-page .lobby-account-strip,
.general-lobby-page .daily-reward,
.general-lobby-page .game-card,
.general-lobby-page .hero-game-card,
.general-lobby-page .continue-playing-card,
.general-lobby-page .upcoming-game-card,
.general-lobby-page .fresh-update-card {
  border-color: #2c3849;
  background: linear-gradient(180deg, #151e2a, #101720);
  color: #e8edf5;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.34);
}

.general-lobby-page .continue-playing-card:hover,
.general-lobby-page .continue-playing-card:focus,
.general-lobby-page .continue-playing-card:focus-visible {
  border-color: #7768d8;
  background: linear-gradient(135deg, #1c2635, #151d2a);
  color: #f4f6fb;
  box-shadow: 0 0 0 1px rgba(151, 133, 255, 0.16), 0 10px 26px rgba(0, 0, 0, 0.38);
  outline: none;
}

.general-lobby-page .continue-playing-card:active {
  border-color: #9a89ff;
  background: linear-gradient(135deg, #242d40, #182033);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(154, 137, 255, 0.18), 0 5px 14px rgba(0, 0, 0, 0.4);
}

.general-lobby-page .continue-playing-card:is(:hover, :focus, :focus-visible, :active) .continue-playing-copy strong {
  color: #ffffff;
}

.general-lobby-page .continue-playing-card:is(:hover, :focus, :focus-visible, :active) .continue-playing-copy small {
  color: #aeb9c8;
}

.general-lobby-page #advancedFilters summary,
.general-lobby-page .lobby-player-summary strong,
.general-lobby-page .lobby-account-strip {
  color: #e8edf5;
}

.general-lobby-page .lobby-player-summary > span,
.general-lobby-page .lobby-account-strip .lobby-wallet span,
.general-lobby-page .daily-reward-copy small,
.general-lobby-page .daily-day span,
.general-lobby-page .daily-day small,
.general-lobby-page .continue-playing-copy small,
.general-lobby-page .game-card.coming-soon .game-card-body > p,
.general-lobby-page .game-card-topline,
.general-lobby-page .upcoming-game-copy em,
.general-lobby-page .fresh-update-copy em {
  color: #9aa6b6;
}

.general-lobby-page .lobby-account-strip .lobby-wallet,
.general-lobby-page .daily-day {
  border-color: #334154;
  background: #0e1620;
}

.general-lobby-page .daily-day.current {
  border-color: #4fd1c5;
  background: rgba(79, 209, 197, 0.12);
}

.general-lobby-page .daily-day.claimable {
  border-color: #d9a94f;
  background: rgba(217, 169, 79, 0.14);
}

.general-lobby-page .game-card-art.image-art {
  border-bottom-color: #2c3849;
}

.general-lobby-page .favorite-toggle {
  background: rgba(12, 18, 27, 0.9);
  color: #ff8d78;
}

.general-lobby-page .general-trust-strip {
  background: #101720;
  color: #d6dfeb;
}

.general-lobby-page .parent-trust-copy span,
.general-lobby-page .parent-trust-copy p,
.general-lobby-page .parent-trust-points small,
.general-lobby-page .site-footer {
  color: #96a3b3;
}

.general-lobby-page .parent-trust-points div {
  border-color: #2c3849;
  background: #151e2a;
}

.general-lobby-page .parent-trust-points strong {
  color: #e8edf5;
}

.general-lobby-page .trust-report-link,
.general-lobby-page .site-footer a {
  color: #b4a5ff;
}

.general-lobby-page .site-footer {
  border-color: #2b3544;
}

@media (min-width: 1120px) {
  .general-lobby-page .lobby-shell {
    width: calc(100% - 24px);
    max-width: none;
    padding-left: 264px;
    box-sizing: border-box;
  }

  .general-lobby-page .desktop-filter-rail {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    width: 244px;
    padding: 16px 12px;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    border: 1px solid #2f3b4e;
    border-radius: 14px;
    background:
      linear-gradient(180deg, rgba(22, 30, 43, 0.98), rgba(9, 14, 22, 0.98)),
      #0c1119;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.52), inset 0 1px rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
    scrollbar-color: #536077 transparent;
  }

  .general-lobby-page .desktop-filter-rail > * {
    order: 0;
  }

  .general-lobby-page .desktop-filter-rail-heading span {
    color: #8f7fff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .general-lobby-page .desktop-filter-rail-heading h2 {
    margin: 5px 0 0;
    color: #f4f6fb;
    font-size: 20px;
    line-height: 1.08;
  }

  .general-lobby-page .desktop-filter-group {
    display: grid;
    gap: 7px;
  }

  .general-lobby-page .desktop-filter-group h3 {
    margin: 0;
    color: #7f8da1;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .general-lobby-page .desktop-filter-rail .library-tabs,
  .general-lobby-page .desktop-filter-grid {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 6px;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .general-lobby-page .desktop-filter-rail .library-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .general-lobby-page .desktop-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .general-lobby-page .desktop-filter-rail :is(.library-tabs, .topic-filter, .skill-filter, .availability-filter) button {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 38px;
    height: auto;
    padding: 6px 7px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    overflow: hidden;
    border: 1px solid #2d394b;
    border-radius: 8px;
    background: #121a25;
    color: #cbd5e2;
    box-shadow: none;
    font-size: 11px;
    font-weight: 800;
  }

  .general-lobby-page .desktop-filter-rail .library-tabs button {
    min-height: 44px;
    padding: 8px 10px;
    justify-content: space-between;
    font-size: 12px;
  }

  .general-lobby-page .desktop-filter-rail .library-tabs .filter-copy {
    flex: 1 1 auto;
  }

  .general-lobby-page .desktop-filter-rail .library-tabs .filter-label {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .general-lobby-page .desktop-filter-rail .library-tabs .filter-count {
    min-width: 28px;
    height: 24px;
    padding-inline: 6px;
  }

  .general-lobby-page .desktop-filter-rail button:hover,
  .general-lobby-page .desktop-filter-rail button:focus-visible {
    border-color: #6d5de2;
    background: #1c2533;
  }

  .general-lobby-page .desktop-filter-rail :is(.library-tabs, .topic-filter, .skill-filter, .availability-filter) button.active {
    border-color: #9685ff;
    background: linear-gradient(135deg, #6c57d5, #345cb9);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(69, 55, 169, 0.3);
  }

  .general-lobby-page .desktop-filter-rail .filter-copy {
    min-width: 0;
    align-items: flex-start;
  }

  .general-lobby-page .desktop-filter-rail .filter-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .general-lobby-page .desktop-filter-rail .filter-hint {
    display: none;
  }

  .general-lobby-page .desktop-filter-rail .filter-count {
    display: grid;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 6px;
    background: #283345;
    color: #d9e2ed;
    font-size: 10px;
  }

  .general-lobby-page .desktop-filter-rail button.active .filter-count {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .general-lobby-page .desktop-filter-reset {
    min-height: 42px;
    flex: 0 0 auto;
    border: 1px solid #4b596d;
    border-radius: 9px;
    background: transparent;
    color: #b9c4d2;
    font-weight: 900;
    cursor: pointer;
  }

  .general-lobby-page > .lobby-shell > .general-play-heading,
  .general-lobby-page > .lobby-shell > .vibe-strip,
  .general-lobby-page > .lobby-shell > .library-tabs,
  .general-lobby-page > .lobby-shell > #advancedFilters {
    display: none;
  }
}

@media (min-width: 721px) {
  .general-lobby-page .continue-playing {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    justify-content: start;
  }

  .general-lobby-page .continue-playing-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .general-lobby-page .continue-playing-card img {
    width: 104px;
    height: 104px;
    min-height: 104px;
    align-self: center;
    background: #0c121b;
    object-fit: contain;
  }

  .general-lobby-page .hero-game-card {
    grid-template-rows: auto minmax(0, auto);
  }

  .general-lobby-page .hero-games {
    grid-template-columns: repeat(5, minmax(180px, 220px));
    justify-content: start;
  }

  .general-lobby-page .hero-game-art {
    aspect-ratio: 1 / 1;
  }

  .general-lobby-page .hero-game-art > img:not(.hero-game-character) {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
  }

  .general-lobby-page .lobby-grid {
    grid-template-columns: repeat(auto-fill, minmax(164px, 204px));
    justify-content: start;
    gap: 12px;
  }

  .general-lobby-page .game-card {
    display: block;
    height: auto;
    aspect-ratio: auto;
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.34);
  }

  .general-lobby-page .game-card-static-link {
    display: block;
    height: auto;
  }

  .general-lobby-page .game-card-art.image-art,
  .general-lobby-page .game-card.coming-soon .game-card-art.image-art {
    /* Keep the poster in normal flow so Safari has real content from which to
       size each auto-row. An aspect-ratio-only parent whose children are all
       absolutely positioned can otherwise collapse to a thin line. */
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
    background: #0c121b;
  }

  .general-lobby-page .game-card-art.image-art .game-card-fg {
    object-fit: cover;
  }

  .general-lobby-page .game-card-body {
    /* Keep the caption below the square poster, including the lower card rows. */
    position: relative;
    inset: auto;
    z-index: 3;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 46px;
    padding: 18px 10px 8px;
    place-items: end center;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 11, 18, 0.88) 58%, rgba(5, 11, 18, 0.96) 100%);
    transition: opacity 300ms ease 100ms, transform 300ms ease 100ms;
  }

  .general-lobby-page .game-card h2 {
    display: -webkit-box;
    max-height: 36px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    -webkit-line-clamp: 2;
  }

  .general-lobby-page .game-card.is-previewing .game-card-body {
    opacity: 0;
    transform: translateY(8px);
  }

  .general-lobby-page .favorite-toggle,
  .general-lobby-page .continue-badge {
    top: 8px;
  }

  .general-lobby-page .favorite-toggle {
    right: 8px;
    width: 38px;
    height: 38px;
  }

  .general-lobby-page .continue-badge {
    left: 8px;
  }

}

@media (min-width: 1505px) {
  .general-lobby-page .lobby-grid {
    grid-template-columns: repeat(auto-fill, minmax(164px, 204px));
  }
}

@media (min-width: 721px) and (max-height: 520px) {
  .general-lobby-page .lobby-hero {
    height: 160px;
  }

  .general-lobby-page .lobby-hero-copy {
    top: 20px;
  }

  .general-lobby-page .lobby-hero h1 {
    font-size: 38px;
  }

  .general-lobby-page .lobby-subtitle {
    display: -webkit-box;
    max-width: 440px;
    margin-top: 6px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .general-lobby-page .lobby-feature {
    bottom: 9px;
    min-height: 54px;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 7px;
  }

  .general-lobby-page .lobby-feature img {
    width: 38px;
    height: 38px;
  }

  .general-lobby-page .general-play-heading {
    margin-top: 4px;
  }

  .general-lobby-page .general-play-heading h2 {
    font-size: 23px;
  }
}

/* Keep the compact desktop card composition on phones as well. The title is
   part of the card's normal flow below the poster, so it cannot leave an
   empty title band above the artwork on narrow screens. */
@media (max-width: 720px) {
  .general-lobby-page .lobby-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 8px;
  }

  .general-lobby-page .game-card {
    display: flex;
    height: auto;
    aspect-ratio: auto;
    min-height: 0;
    border-radius: 10px;
  }

  .general-lobby-page .game-card-static-link {
    height: auto;
  }

  .general-lobby-page .game-card-art.image-art,
  .general-lobby-page .game-card.coming-soon .game-card-art.image-art {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 0;
  }

  .general-lobby-page .game-card-art.image-art .game-card-fg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .general-lobby-page .game-card-body {
    position: relative;
    inset: auto;
    z-index: 3;
    order: 0;
    width: 100%;
    height: auto;
    height: 40px;
    min-height: 40px;
    padding: 6px 5px;
    flex: 0 0 40px;
    place-items: center;
    background: #111a25;
    pointer-events: none;
  }

  .general-lobby-page .game-card h2 {
    max-height: 28px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.16;
    text-shadow: none;
  }

  .general-lobby-page .favorite-toggle,
  .general-lobby-page .continue-badge {
    top: 7px;
  }

  .general-lobby-page .favorite-toggle {
    right: 7px;
    width: 34px;
    height: 34px;
  }

  .general-lobby-page .continue-badge {
    left: 7px;
    box-sizing: border-box;
    max-width: calc(100% - 14px);
    padding-inline: 9px;
    font-size: 11px;
  }
}

.game-shell {
  position: relative;
  width: min(100vw, 56.28dvh);
  height: min(100dvh, 177.68vw);
  max-width: 950px;
  max-height: 1688px;
  overflow: hidden;
  background: #202938;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.hud {
  position: absolute;
  z-index: 3;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.68);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.top-right {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  min-width: 118px;
  line-height: 1.5;
  text-align: right;
}

.coin-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.coin-line img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.menu-coin-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.62);
  font-size: 20px;
  font-weight: 900;
}

.menu-wallet-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.diamond-wallet {
  color: #9eeaff;
}

.diamond-wallet img,
.cost-diamond {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(107, 220, 255, 0.48));
}

.menu-coin-line img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.wonder-language-picker {
  min-height: 0;
  width: min(100%, 360px);
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 8px 10px;
  background: rgba(12, 15, 20, 0.62);
}

.wonder-language-picker select {
  height: 36px;
}

.pause-language-picker {
  width: min(100%, 320px);
  display: grid;
  gap: 6px;
  text-align: left;
  color: #e5edf7;
  font-weight: 900;
}

.pause-language-picker span {
  font-size: 0.78rem;
  color: rgba(229, 237, 247, 0.72);
}

.settings-btn {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.68);
  color: #fff;
  font-size: 24px;
  backdrop-filter: blur(8px);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 24px calc(96px + env(safe-area-inset-bottom));
  text-align: center;
  background: rgba(8, 11, 18, 0.58);
  animation: wonder-fade-in 0.22s ease;
}

.overlay.equipment-screen {
  align-content: start;
  gap: 4px;
  padding: max(10px, env(safe-area-inset-top)) 24px calc(100px + env(safe-area-inset-bottom));
}

.overlay.equipment-screen #overlayText {
  display: none;
}

.overlay.settlement-screen {
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 10px;
  overflow-y: auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(5, 10, 18, 0.84);
  backdrop-filter: blur(6px);
}

.overlay.settlement-screen h1,
.overlay.settlement-screen .menu-coin-line,
.overlay.settlement-screen .wonder-language-picker,
.overlay.settlement-screen .menu-tabs,
.overlay.settlement-screen #startBtn {
  display: none !important;
}

.overlay.settlement-screen #overlayText {
  width: min(358px, 100%);
  max-width: none;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 18, 28, 0.78);
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.overlay.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.overlay h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
}

.overlay p {
  max-width: 300px;
  margin: 0 auto 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.45;
}

.overlay button {
  justify-self: center;
  align-self: center;
  min-width: 128px;
  min-height: 46px;
  max-height: 58px;
  border: 0;
  border-radius: 8px;
  background: #ffcb3f;
  color: #202020;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(105, 68, 10, 0.72);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.overlay button:active,
.settlement-actions button:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 1px 0 rgba(105, 68, 10, 0.72);
  filter: brightness(1.06);
}

.menu-content {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  width: min(380px, calc(100vw - 48px));
  max-height: min(760px, calc(100dvh - 245px));
  overflow-y: auto;
  padding: 2px;
  animation: wonder-panel-pop 0.34s cubic-bezier(0.17, 0.9, 0.28, 1.2);
}

.menu-content.equipment-mode {
  align-self: stretch;
  align-content: start;
  height: 100%;
  max-height: none;
  overflow: hidden;
}

.overlay.settlement-screen .menu-content {
  width: min(358px, 100%);
  max-height: calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  padding: 0;
  animation: wonder-panel-pop 0.28s cubic-bezier(0.17, 0.9, 0.28, 1.2);
}

.menu-tabs {
  position: absolute;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 10, 14, 0.74);
  backdrop-filter: blur(8px);
}

.menu-tabs button {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 11px;
  line-height: 1.05;
  overflow: hidden;
}

.menu-tabs button.active {
  background: #ffcb3f;
  color: #202020;
}

.menu-tabs img,
.tab-gear {
  width: 46px;
  height: 46px;
  object-fit: contain;
  font-size: 26px;
  line-height: 28px;
}

.menu-tabs span {
  display: block;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equipment-panel,
.character-panel {
  display: grid;
  gap: 10px;
  width: 100%;
}

.equipment-panel {
  gap: 8px;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.equipment-slots,
.backpack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 64px;
  gap: 8px;
}

.equipment-slots {
  flex: none;
}

.backpack-grid {
  align-content: start;
  height: min(352px, 42dvh);
  min-height: 210px;
  max-height: 352px;
  overflow-y: auto;
  padding-right: 4px;
  touch-action: pan-y;
}

.equip-slot,
.backpack-item,
.backpack-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 64px;
  max-height: none;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.62);
  position: relative;
}

.equipment-slots .equip-slot,
.backpack-grid .backpack-item {
  min-width: 0;
  padding: 0;
}

.equip-slot img,
.backpack-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 54px;
  max-height: 54px;
  aspect-ratio: auto;
  object-fit: contain;
}

.equip-slot.empty::after {
  content: "+";
  color: rgba(255, 255, 255, 0.45);
  font-size: 28px;
  font-weight: 900;
}

.equipment-slots .equip-slot.empty {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(12, 15, 20, 0.62);
}

.equip-slot.selected,
.backpack-item.selected {
  outline: 3px solid rgba(255, 255, 255, 0.82);
  outline-offset: -3px;
}

.equip-slot.drag-over {
  border-color: #ffcb3f;
  background: rgba(255, 203, 63, 0.18);
}

.backpack-item.drag-over {
  outline: 3px solid rgba(255, 203, 63, 0.85);
  outline-offset: -3px;
}

.backpack-item,
.backpack-empty {
  height: 64px;
  min-height: 0;
}

.backpack-item {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.equip-slot {
  touch-action: none;
  user-select: none;
}

.equipment-slots .equip-slot.tier-1,
.backpack-grid .backpack-item.tier-1 {
  border-color: rgba(188, 195, 207, 0.72);
  background: rgba(105, 111, 124, 0.32);
}

.equipment-slots .equip-slot.tier-2,
.backpack-grid .backpack-item.tier-2 {
  border-color: rgba(102, 230, 137, 0.82);
  background: rgba(71, 171, 99, 0.34);
}

.equipment-slots .equip-slot.tier-3,
.backpack-grid .backpack-item.tier-3 {
  border-color: rgba(95, 170, 255, 0.84);
  background: rgba(59, 126, 218, 0.34);
}

.equipment-slots .equip-slot.tier-4,
.backpack-grid .backpack-item.tier-4 {
  border-color: rgba(205, 139, 255, 0.86);
  background: rgba(155, 91, 220, 0.36);
}

.equipment-slots .equip-slot.tier-5,
.backpack-grid .backpack-item.tier-5 {
  border-color: rgba(255, 222, 91, 0.92);
  background: rgba(234, 177, 45, 0.38);
}

.equipment-slots .equip-slot.tier-6,
.backpack-grid .backpack-item.tier-6 {
  border-color: rgba(255, 103, 103, 0.9);
  background: rgba(222, 62, 62, 0.38);
}

.backpack-empty {
  cursor: default;
  opacity: 0.65;
}

.backpack-empty::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
}

.equip-level {
  position: absolute;
  right: 6px;
  bottom: 5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 203, 63, 0.95);
  color: #202020;
  font-size: 12px;
  font-weight: 900;
}

.weapon-info-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  min-height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.68);
}

.weapon-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.52);
}

.weapon-modal.hidden {
  display: none;
}

.weapon-modal-card {
  position: relative;
  width: min(360px, calc(100vw - 48px));
}

.weapon-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  min-width: 0;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #202020;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.weapon-info-head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
}

.weapon-info-icon {
  width: auto;
  height: auto;
  max-width: 58px;
  max-height: 58px;
  padding: 4px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(105, 111, 124, 0.32);
  border: 1px solid rgba(188, 195, 207, 0.72);
}

.weapon-info-icon.tier-2 {
  background: rgba(71, 171, 99, 0.34);
  border-color: rgba(102, 230, 137, 0.82);
}

.weapon-info-icon.tier-3 {
  background: rgba(59, 126, 218, 0.34);
  border-color: rgba(95, 170, 255, 0.84);
}

.weapon-info-icon.tier-4 {
  background: rgba(155, 91, 220, 0.36);
  border-color: rgba(205, 139, 255, 0.86);
}

.weapon-info-icon.tier-5 {
  background: rgba(234, 177, 45, 0.38);
  border-color: rgba(255, 222, 91, 0.92);
}

.weapon-info-icon.tier-6 {
  background: rgba(222, 62, 62, 0.38);
  border-color: rgba(255, 103, 103, 0.9);
}

.weapon-info-head strong {
  display: block;
  font-size: 15px;
}

.weapon-info-head span,
.weapon-info-next,
.weapon-info-empty {
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.weapon-info-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.weapon-info-stats span {
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.weapon-info-empty {
  display: grid;
  min-height: 72px;
  place-items: center;
  text-align: center;
}

.section-title {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 900;
  text-align: left;
}

.settlement-panel {
  display: grid;
  gap: 10px;
  width: 100%;
}

.overlay.settlement-screen .profile-panel {
  box-sizing: border-box;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 39, 42, 0.95), rgba(12, 20, 30, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.settlement-row {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  animation: wonder-row-slide 0.28s ease both;
}

.settlement-row strong {
  color: #fff4cf;
  font-size: 16px;
}

.settlement-row span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.35;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.reward-item,
.reward-empty {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 6px;
  border: 1px solid rgba(188, 195, 207, 0.72);
  border-radius: 8px;
  background: rgba(105, 111, 124, 0.32);
  text-align: center;
  animation: wonder-reward-pop 0.36s cubic-bezier(0.17, 0.9, 0.28, 1.2) both;
}

.reward-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.reward-item span,
.reward-empty {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.reward-empty {
  grid-column: 1 / -1;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.74);
}

.reward-item.tier-2 {
  border-color: rgba(102, 230, 137, 0.82);
  background: rgba(71, 171, 99, 0.34);
}

.reward-item.tier-3 {
  border-color: rgba(95, 170, 255, 0.84);
  background: rgba(59, 126, 218, 0.34);
}

.reward-item.tier-4 {
  border-color: rgba(205, 139, 255, 0.86);
  background: rgba(155, 91, 220, 0.36);
}

.reward-item.tier-5,
.reward-item.coin-reward {
  border-color: rgba(255, 222, 91, 0.92);
  background: rgba(234, 177, 45, 0.38);
}

.reward-item.diamond-reward {
  border-color: rgba(91, 221, 255, 0.92);
  background: linear-gradient(145deg, rgba(67, 186, 255, 0.34), rgba(51, 119, 236, 0.24));
  box-shadow: inset 0 0 18px rgba(122, 236, 255, 0.18);
}

.reward-item.progress-reward {
  grid-column: 1 / -1;
  min-height: 44px;
  padding-inline: 12px;
  border-color: rgba(132, 237, 165, 0.8);
  background: linear-gradient(135deg, rgba(42, 183, 108, 0.34), rgba(39, 125, 99, 0.24));
}

.skill-report {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 234, 166, 0.28);
  border-radius: 8px;
  background: rgba(20, 47, 52, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-report > strong {
  color: #ffe8a3;
  font-size: 14px;
}

.skill-report-list {
  display: grid;
  gap: 4px;
}

.skill-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  gap: 8px;
  align-items: center;
  min-height: 20px;
}

.skill-report-row span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.skill-report-row b {
  color: #ffd861;
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
}

.skill-report-row small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.skill-report p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.reward-item.tier-6 {
  border-color: rgba(255, 103, 103, 0.9);
  background: rgba(222, 62, 62, 0.38);
}

.settlement-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 102px);
  justify-content: center;
  gap: 8px;
  padding-top: 4px;
  background: linear-gradient(180deg, rgba(12, 20, 30, 0), rgba(12, 20, 30, 0.96) 26%);
}

.settlement-actions button {
  width: 102px;
  min-width: 102px;
  max-width: 102px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: #202020;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(105, 68, 10, 0.72);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.settlement-actions button.is-primary {
  background: #ffcb3f;
}

.settlement-actions button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.7);
  opacity: 0.48;
  box-shadow: 0 2px 0 rgba(105, 68, 10, 0.48);
}

@keyframes wonder-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes wonder-panel-pop {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wonder-row-slide {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wonder-reward-pop {
  0% {
    opacity: 0;
    transform: scale(0.76);
    filter: brightness(1.35);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .overlay,
  .menu-content,
  .settlement-row,
  .reward-item,
  .reward-empty {
    animation: none;
  }
}

.character-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.62);
  text-align: left;
}

.character-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.character-card strong {
  display: block;
  font-size: 18px;
}

.character-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 8px;
  justify-content: center;
  width: min(100%, 340px);
  max-height: min(54vh, 430px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 4px 10px;
  margin-top: 4px;
}

.level-beast-row {
  display: flex;
  justify-content: center;
  gap: 3px;
  min-height: 28px;
  margin: 2px 0 1px;
}

.level-beast-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 5px 8px rgba(0, 0, 0, 0.28);
}

.campaign-summary {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 226, 126, 0.34);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(52, 35, 20, 0.92), rgba(15, 22, 34, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.18);
}

.campaign-summary-head {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.campaign-summary-head strong {
  overflow: hidden;
  color: #ffe282;
  font-size: 15px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-summary-head span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.2;
}

.campaign-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.campaign-summary-stats span {
  min-width: 0;
  padding: 7px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.level-grid .campaign-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff08a, #ffbd37);
  color: #241806;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.beast-guide {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 218, 118, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(45, 30, 18, 0.82), rgba(16, 20, 28, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.beast-guide-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  min-width: 0;
}

.beast-guide-head strong {
  color: #ffdc75;
  font-size: 14px;
  line-height: 1.1;
}

.beast-guide-head span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beast-guide-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 1px 0 5px;
}

.beast-card {
  display: grid;
  flex: 0 0 148px;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 62px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.beast-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}

.beast-card strong,
.beast-card span,
.beast-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beast-card strong {
  color: #fff;
  font-size: 12px;
  line-height: 1.05;
}

.beast-card span {
  margin-top: 2px;
  color: #ffdc75;
  font-size: 11px;
  font-weight: 900;
}

.beast-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.profile-panel {
  display: grid;
  gap: 8px;
  width: 100%;
}

.profile-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.62);
  text-align: left;
}

.profile-row.full {
  grid-template-columns: 1fr;
}

.profile-row.setting-row {
  grid-template-columns: 64px minmax(0, 1fr);
}

.setting-control {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  width: 100%;
}

.profile-row-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.settings-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.settings-actions button {
  width: 100%;
}

.profile-row strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.profile-row span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.profile-row button,
.pause-panel button {
  min-width: 104px;
  min-height: 42px;
  font-size: 15px;
}

.profile-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cost-coin {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.cost-diamond {
  width: 25px;
  height: 25px;
}

.profile-row button:disabled {
  background: rgba(255, 255, 255, 0.28);
  color: rgba(0, 0, 0, 0.45);
}

.pause-panel {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.level-grid button {
  position: relative;
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-width: 0;
  height: 78px;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 220, 96, 0.98), rgba(255, 174, 52, 0.96));
  color: #202020;
  font-size: 14px;
  line-height: 1.05;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.level-grid button strong {
  font-size: 22px;
  line-height: 1;
}

.level-grid button span,
.level-grid button small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: rgba(30, 21, 8, 0.78);
  font-size: 11px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-grid button em {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(196, 31, 31, 0.95);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.level-grid button.locked {
  background: rgba(26, 29, 36, 0.88);
  color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.level-grid button.locked span,
.level-grid button.locked small {
  color: rgba(255, 255, 255, 0.32);
}

.level-grid button.completed {
  background: linear-gradient(180deg, #74edaa, #35bf74);
  color: #102217;
}

.level-grid button.challenge {
  background: linear-gradient(180deg, #ffe987, #ffbd3d);
  color: #202020;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.floating-message {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.82);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.72);
  pointer-events: none;
  animation: float-message-up 1.5s ease-out forwards;
}

@keyframes float-message-up {
  0% {
    opacity: 0;
    transform: translate(-50%, -35%);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -135%);
  }
}

.upgrade-grid {
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 56px));
}

.upgrade-grid button {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 88px;
  max-height: none;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 203, 63, 0.95);
  color: #202020;
  text-align: left;
}

.upgrade-grid img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.upgrade-copy {
  display: grid;
  gap: 4px;
}

.upgrade-grid strong {
  font-size: 18px;
}

.upgrade-grid span {
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .hud {
    font-size: 14px;
    padding: 8px 10px;
  }

  .overlay {
    gap: 8px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .overlay button {
    min-height: 46px;
    font-size: 16px;
  }

  .overlay.settlement-screen {
    gap: 8px;
    padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom));
  }

  .overlay.settlement-screen #overlayText,
  .overlay.settlement-screen .menu-content {
    width: 100%;
  }

  .overlay.settlement-screen #overlayText {
    padding: 10px 14px;
    font-size: 16px;
    line-height: 1.35;
  }

  .overlay.settlement-screen .menu-content {
    max-height: calc(100dvh - 82px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }

  .overlay.settlement-screen .profile-panel {
    padding: 14px;
  }

  .settlement-panel {
    gap: 10px;
  }

  .settlement-row {
    padding: 11px 12px;
  }

  .settlement-row strong {
    font-size: 16px;
  }

  .settlement-row span {
    font-size: 12px;
  }

  .reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .reward-item,
  .reward-empty {
    min-height: 64px;
  }

  .reward-item img {
    max-width: 44px;
    max-height: 44px;
  }

  .reward-item span,
  .reward-empty {
    font-size: 12px;
  }

  .skill-report {
    gap: 8px;
    padding: 11px 12px;
  }

  .skill-report-row {
    min-height: 20px;
  }

  .skill-report-row span {
    font-size: 12px;
  }

  .skill-report p {
    font-size: 11px;
  }

  .skill-report-row b {
    font-size: 13px;
  }

  .settlement-actions {
    gap: 10px;
  }

  .settlement-actions button {
    min-height: 48px;
    font-size: 16px;
  }

  .menu-tabs button {
    min-height: 72px;
    padding: 3px 2px;
  }

  .menu-tabs img,
  .tab-gear {
    width: 46px;
    height: 46px;
  }

  .menu-tabs span {
    font-size: 10px;
  }
}

@supports not (height: 100dvh) {
  html,
  body {
    height: 100vh;
  }

  .game-shell {
    width: min(100vw, 56.28vh);
    height: min(100vh, 177.68vw);
  }

  .menu-content {
    max-height: min(760px, calc(100vh - 245px));
  }

  .backpack-grid {
    height: min(322px, 40vh);
  }
}

.drag-ghost {
  position: fixed;
  z-index: 20;
  width: 58px;
  height: 58px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.settings-select {
  display: block;
  width: 100%;
  min-height: 46px;
  background: #1e293b;
  border: 2px solid #475569;
  color: #f8fafc;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.settings-select option {
  background-color: #1e293b;
  color: #f8fafc;
}

/* Shared WeightPlay active-play chrome for Wonder Crash's portrait battle canvas. */
body.wonder-playing {
  display: block;
  overflow: hidden;
}

body.wonder-playing .game-shell[data-battle-shell] {
  position: fixed;
  top: calc((100dvh - var(--wp-ad-reserve-height, 0px) - (788px * var(--wonder-battle-scale, 1))) / 2);
  left: 50%;
  width: 390px;
  min-width: 390px;
  max-width: 390px;
  height: 788px;
  min-height: 788px;
  max-height: 788px;
  transform: translateX(-50%) scale(var(--wonder-battle-scale, 1));
  transform-origin: top center;
  border-radius: 0;
  overflow: hidden;
}

.battle-ad-reserve {
  display: none;
}

.battle-ad-reserve[data-active] {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: block;
  width: 100%;
  height: var(--wp-ad-reserve-height, 0px);
  pointer-events: none;
  background: #12151d;
}

body.wonder-playing .game-page-info,
body.wonder-playing .tutorial-toggle,
body.wonder-playing .sound-toggle,
body.wonder-playing .version-badge,
body.wonder-playing .wonder-language-picker,
body.wonder-playing .menu-coin-line,
body.wonder-playing .menu-tabs {
  display: none !important;
}

body.wonder-playing .play-return,
body.wonder-playing .settings-btn {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 14, 24, 0.78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

body.wonder-playing .play-return {
  left: max(10px, env(safe-area-inset-left));
}

body.wonder-playing .settings-btn {
  right: max(10px, env(safe-area-inset-right));
  left: auto;
}

body.wonder-playing .play-return span {
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

body.wonder-playing .settings-btn img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

body.wonder-playing .battle-hud {
  top: max(8px, env(safe-area-inset-top));
  right: 56px;
  left: 56px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 8px;
  line-height: 1.05;
  text-align: center;
}

body.wonder-playing .battle-primary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffe38a;
  font-size: 16px;
  font-weight: 900;
}

body.wonder-playing .battle-primary img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

body.wonder-playing .battle-status {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body.wonder-playing .coin-line {
  display: none;
}

body.wonder-playing .play-return:focus-visible,
body.wonder-playing .settings-btn:focus-visible {
  outline: 3px solid #ffe066;
  outline-offset: 2px;
}
html,
body,
button,
a,
canvas,
[role="button"] {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* General lobby hierarchy: one clear Kids gateway and separated update sections. */
.general-lobby-page .lobby-kids-gateway {
  grid-template-columns: 68px minmax(0, 1fr);
  width: min(292px, 72%);
  min-height: 70px;
  gap: 11px;
  padding: 7px 12px 7px 7px;
  border-color: rgba(124, 237, 209, 0.88);
  background: linear-gradient(135deg, rgba(7, 69, 74, 0.96), rgba(24, 46, 81, 0.96));
  box-shadow: 0 0 0 1px rgba(123, 237, 210, 0.2), 0 10px 24px rgba(0, 0, 0, 0.34);
}

.general-lobby-page .lobby-kids-gateway img {
  width: 68px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.general-lobby-page .lobby-kids-gateway span {
  color: #9ff2d4;
}

.general-lobby-page .lobby-kids-gateway strong {
  color: #ffffff;
  font-size: 17px;
}

.general-lobby-page #upcomingGamesSection {
  padding: 18px;
  border: 1px solid #3c4960;
  border-radius: 10px;
  background: linear-gradient(135deg, #182131, #101824);
}

.general-lobby-page #upcomingGamesSection .section-heading,
.general-lobby-page #freshUpdatesSection .section-heading {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.general-lobby-page #upcomingGamesSection .section-heading span {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 9px;
  border: 1px solid rgba(255, 207, 101, 0.44);
  border-radius: 999px;
  background: #3b2f17;
  color: #ffd774;
  font-weight: 900;
}

.general-lobby-page #upcomingGamesSection .section-heading h2,
.general-lobby-page #upcomingGamesSection .upcoming-game-copy strong {
  color: #ffffff;
}

.general-lobby-page #upcomingGamesSection .upcoming-game-copy small {
  color: #cbd5e4;
}

.general-lobby-page #upcomingGamesSection .upcoming-game-copy em {
  color: #e4eaf3;
}

.general-lobby-page #freshUpdatesSection {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #354157;
}

@media (max-width: 720px) {
  .general-lobby-page .lobby-kids-gateway {
    right: 8px;
    bottom: 8px;
    grid-template-columns: 52px minmax(0, 1fr);
    width: min(236px, 72%);
    min-height: 60px;
    gap: 9px;
    padding: 6px 9px 6px 6px;
  }

  .general-lobby-page .lobby-kids-gateway img {
    width: 52px;
    height: 46px;
  }

  .general-lobby-page .lobby-kids-gateway strong {
    font-size: 14px;
  }

  .general-lobby-page #upcomingGamesSection {
    padding: 14px;
  }
}

/* General lobby mobile polish: preserve complete posters and keep discovery compact. */
.general-lobby-page .continue-playing,
.general-lobby-page .hero-games {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.general-lobby-page .continue-playing::-webkit-scrollbar,
.general-lobby-page .hero-games::-webkit-scrollbar {
  display: none;
}

@media (max-width: 720px) {
  .general-lobby-page .continue-playing-section {
    gap: 8px;
    padding-bottom: 12px;
  }

  .general-lobby-page .continue-playing {
    grid-auto-columns: minmax(272px, 82vw);
    gap: 8px;
    padding-bottom: 0;
  }

  .general-lobby-page .continue-playing-card {
    grid-template-columns: 104px minmax(0, 1fr);
    min-height: 106px;
  }

  .general-lobby-page .continue-playing-card img {
    width: 104px;
    height: 104px;
    min-height: 104px;
    align-self: center;
    background: #0c121b;
    object-fit: contain;
  }

  .general-lobby-page .continue-playing-copy strong {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .general-lobby-page .hero-games-section {
    gap: 8px;
    padding: 4px 0 12px;
  }

  .general-lobby-page .hero-games {
    grid-auto-columns: minmax(252px, 78vw);
    gap: 8px;
    padding-bottom: 0;
  }

  .general-lobby-page .hero-game-card {
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-rows: 110px;
    min-height: 112px;
    height: 112px;
  }

  .general-lobby-page .hero-game-art {
    width: 110px;
    height: 110px;
    aspect-ratio: 1 / 1;
    background: #0c121b;
  }

  .general-lobby-page .hero-game-art > img:not(.hero-game-character) {
    object-fit: contain;
  }

  .general-lobby-page .hero-game-art span {
    top: 6px;
    left: 6px;
    min-width: 58px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
  }

  .general-lobby-page .hero-game-copy {
    align-content: center;
    gap: 4px;
    padding: 9px 10px;
  }

  .general-lobby-page .hero-game-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .general-lobby-page .hero-game-card small {
    font-size: 11px;
  }

  .general-lobby-page .hero-game-card em {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .general-lobby-page .game-card-art.image-art,
  .general-lobby-page .game-card.coming-soon .game-card-art.image-art {
    aspect-ratio: 1 / 1;
    background: #0c121b;
  }

  .general-lobby-page .game-card-art.image-art .game-card-fg {
    object-fit: cover;
    object-position: center;
  }

  .general-lobby-page .favorite-toggle {
    top: 51px;
    right: 3px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .general-lobby-page .favorite-toggle::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(12, 18, 27, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  }

  .general-lobby-page .favorite-toggle.active {
    color: #4b2606;
  }

  .general-lobby-page .favorite-toggle.active::before {
    border-color: rgba(255, 212, 106, 0.95);
    background: #ffcf63;
  }

  .general-lobby-page .favorite-icon {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 721px) {
  .general-lobby-page .hero-game-card strong {
    display: -webkit-box;
    font-size: 16px;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 721px) and (max-width: 1119px) {
  .general-lobby-page .hero-games {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Discovery posters keep their whole composition. Portrait/landscape assets
   may have gutters inside the square frame; never crop them to fill it. */
@media (min-width: 721px) {
  .general-lobby-page :is(#heroGames, #latestGames) {
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .general-lobby-page :is(#heroGames, #latestGames) .hero-game-card {
    width: 100%;
    min-width: 0;
  }

  .general-lobby-page :is(#heroGames, #latestGames) .hero-game-art {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
  }

  .general-lobby-page :is(#heroGames, #latestGames) .hero-game-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
}

/* General lobby 9.5 pass: one clear discovery path and readable fixed-size
   catalog cards. */
.general-lobby-page .game-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (min-width: 721px) {
  .general-lobby-page .lobby-grid {
    grid-template-columns: repeat(auto-fill, minmax(164px, 182px));
  }
}

@media (hover: hover) and (pointer: fine) {
  .general-lobby-page .game-card:hover,
  .general-lobby-page .game-card:focus-visible {
    z-index: 2;
    border-color: rgba(137, 164, 201, 0.72);
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(137, 164, 201, 0.42);
    transform: translateY(-3px);
  }

  .general-lobby-page .game-card .favorite-toggle {
    opacity: 0.76;
    transform: scale(0.94);
  }

  .general-lobby-page .game-card:hover .favorite-toggle,
  .general-lobby-page .game-card:focus-within .favorite-toggle,
  .general-lobby-page .game-card .favorite-toggle.active {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .general-lobby-page .lobby-hero {
    height: 196px;
  }

  .general-lobby-page .lobby-hero-copy {
    top: 27px;
  }

  .general-lobby-page .lobby-hero h1 {
    font-size: 32px;
  }

  .general-lobby-page .lobby-subtitle {
    max-width: 214px;
    margin-top: 5px;
    font-size: 11px;
  }

  .general-lobby-page .general-play-heading {
    margin: 5px 0 2px;
  }

  .general-lobby-page .general-play-heading h2 {
    font-size: 22px;
  }

  .general-lobby-page .vibe-strip {
    margin-bottom: 4px;
  }

  .general-lobby-page .vibe-options {
    gap: 7px;
    padding: 1px 0 4px;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1px;
  }

  .general-lobby-page .vibe-options button {
    min-width: 96px;
    min-height: 44px;
    padding-inline: 9px;
  }

  .general-lobby-page .lobby-search-row {
    grid-template-columns: minmax(0, 1fr) 100px;
    margin: 2px 0 6px;
  }

  .general-lobby-page .lobby-search input,
  .general-lobby-page .quick-pick-btn {
    min-height: 48px;
  }

  .general-lobby-page .quick-pick-btn {
    padding-inline: 8px;
    font-size: 12px;
  }

  .general-lobby-page .library-tabs {
    gap: 6px;
    padding-bottom: 6px;
  }

  .general-lobby-page .library-tabs button {
    min-height: 48px;
    padding: 7px 8px;
    font-size: 14px;
  }

  /* Recent play must not remove Popular; only active discovery filters hide
     the section via .hidden. Keep a compact, localized, identifiable heading. */
  .general-lobby-page #heroGamesSection .section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .general-lobby-page #heroGamesSection .section-heading h2 {
    display: block;
    order: -1;
    font-size: 20px;
    line-height: 1.3;
  }

  .general-lobby-page .continue-playing-section {
    padding-bottom: 7px;
  }

  .general-lobby-page .continue-playing {
    grid-auto-columns: minmax(250px, 296px);
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
  }

  .general-lobby-page .continue-playing-card {
    scroll-snap-align: start;
  }

  .general-lobby-page .lobby-grid {
    width: min(100%, 356px);
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 8px;
  }

  .general-lobby-page .game-card-body {
    height: 48px;
    min-height: 48px;
    padding: 6px 7px;
    flex-basis: 48px;
  }

  .general-lobby-page .game-card h2 {
    max-height: 34px;
    font-size: 14px;
    line-height: 1.15;
  }

  .general-lobby-page .favorite-toggle {
    top: 3px;
    right: 1px;
    width: 44px;
    height: 44px;
  }

  .general-lobby-page .favorite-toggle::before {
    inset: 6px;
  }

  .general-lobby-page .favorite-icon {
    width: 18px;
    height: 18px;
  }

  .general-lobby-page .continue-badge {
    top: 7px;
    left: 7px;
    min-height: 30px;
    max-width: calc(100% - 58px);
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .general-lobby-page .game-card:active {
    transform: scale(0.985);
  }
}

@media (min-width: 431px) and (max-width: 720px) {
  .general-lobby-page .lobby-grid {
    width: min(100%, 524px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .general-lobby-page .game-card,
  .general-lobby-page .favorite-toggle {
    transition: none;
  }
}

/* Kids lobby card refinement: preserve age guidance on the poster while the
   localized title sits in a clean row below the artwork. */
.kids-lobby-page .game-card {
  border: 1px solid rgba(91, 133, 146, 0.32);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(62, 111, 124, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.kids-lobby-page .game-card-art.image-art {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid rgba(91, 133, 146, 0.2);
  border-radius: 15px 15px 0 0;
}

.kids-lobby-page .game-card-art.image-art .game-card-fg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-position: center;
  object-fit: cover;
}

.kids-lobby-page .game-card-body {
  position: static;
  order: 1;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 8px 10px;
  flex: 0 0 56px;
  border: 0;
  border-radius: 0 0 15px 15px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.kids-lobby-page .game-card h2 {
  max-height: 38px;
  color: #17324a;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-shadow: none;
}

.kids-lobby-page .game-card-age-overlay {
  top: 9px;
  left: 9px;
  min-width: 42px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 222, 103, 0.95);
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(98, 68, 9, 0.2);
}

.kids-lobby-page .favorite-toggle {
  top: 2px;
  right: 3px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.kids-lobby-page .favorite-toggle::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 14px rgba(35, 70, 78, 0.2);
  backdrop-filter: blur(6px);
}

.kids-lobby-page .favorite-toggle.active::before {
  border-color: rgba(255, 210, 77, 0.96);
  background: #ffdd66;
}

.kids-lobby-page .favorite-icon {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
}

.kids-lobby-page .continue-badge {
  top: auto;
  bottom: 64px;
  left: 9px;
  min-height: 28px;
  max-width: calc(100% - 108px);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
}

@media (hover: hover) and (pointer: fine) {
  .kids-lobby-page .game-card.playable:hover,
  .kids-lobby-page .game-card.playable:focus-visible {
    border-color: rgba(64, 143, 157, 0.62);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(62, 111, 124, 0.24);
    transform: translateY(-3px);
  }
}

@media (max-width: 720px) {
  .kids-lobby-page .lobby-grid {
    width: min(100%, 374px);
    margin-inline: auto;
    gap: 10px;
  }

  .kids-lobby-page .game-card-body {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 6px 8px;
    flex-basis: 48px;
    border-radius: 0 0 15px 15px;
  }

  .kids-lobby-page .game-card h2 {
    max-height: 34px;
    font-size: 14px;
    line-height: 1.15;
  }

  .kids-lobby-page .game-card-age-overlay {
    top: 7px;
    left: 7px;
    min-width: 38px;
    min-height: 26px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .kids-lobby-page .game-card-age-note {
    top: 41px;
    left: 7px;
    width: min(190px, calc(100% - 14px));
    padding: 5px 7px;
    font-size: 9px;
  }

  .kids-lobby-page .favorite-toggle {
    top: 1px;
    right: 1px;
  }

  .kids-lobby-page .favorite-toggle::before {
    inset: 6px;
  }

  .kids-lobby-page .favorite-icon {
    width: 18px;
    height: 18px;
  }

  .kids-lobby-page .continue-badge {
    top: auto;
    bottom: 55px;
    left: 7px;
    max-width: calc(100% - 14px);
  }

  .kids-lobby-page .game-card:active {
    transform: scale(0.985);
  }
}

@media (max-width: 340px) {
  .kids-lobby-page .lobby-grid {
    gap: 8px;
  }

  .kids-lobby-page .game-card-body {
    padding-inline: 6px;
  }

  .kids-lobby-page .game-card h2 {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kids-lobby-page .game-card,
  .kids-lobby-page .favorite-toggle {
    transition: none;
  }
}
/* Incremental catalog: real hidden controls, no reserved empty button row. */
.catalog-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 12px;
  text-align: center;
  color: inherit;
}
.general-lobby-page #catalogPagination { order: 9; }
.kids-lobby-page #catalogPagination { order: 11; }
.catalog-pagination[hidden], .catalog-pagination button[hidden] { display: none; }
.catalog-pagination p { margin: 0; overflow-wrap: anywhere; }
.catalog-pagination button {
  min-height: 44px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid #d9a940;
  border-radius: 12px;
  background: #ffd36b;
  color: #251b0b;
  font: inherit;
  font-weight: 700;
  white-space: normal;
  cursor: pointer;
}
.catalog-pagination button:focus-visible { outline: 3px solid #4ba5f5; outline-offset: 3px; }
#catalogDirectory { padding: 12px; color: inherit; }
.general-lobby-page #catalogDirectory { order: 10; }
.kids-lobby-page #catalogDirectory { order: 12; }
#catalogDirectory summary { min-height: 44px; cursor: pointer; }
#catalogDirectory nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
#catalogDirectory a { color: inherit; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }

/* Canonical General lobby poster geometry, after legacy compact-card rules.
   Keep the frame in normal flow (Safari); contain preserves the whole asset.
   Preview video behavior and Kids geometry are intentionally unchanged. */
.general-lobby-page .game-card .game-card-art.image-art,
.general-lobby-page .game-card.coming-soon .game-card-art.image-art {
  position: relative;
  height: auto;
  aspect-ratio: 1 / 1;
}
.general-lobby-page .game-card .game-card-art.image-art .game-card-fg,
.general-lobby-page :is(#heroGames, #latestGames) .hero-game-art .hero-game-image {
  object-fit: contain;
  object-position: center;
}
.general-lobby-page .game-card:hover .game-card-art.image-art .game-card-fg,
.general-lobby-page .game-card:focus-visible .game-card-art.image-art .game-card-fg {
  transform: none;
}

/* Hover, touch-sticky hover and keyboard focus must preserve all poster edges. */
.general-lobby-page :is(#heroGames, #latestGames) .hero-game-image {
  transform: none;
}
.general-lobby-page .hero-game-rank {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 6px;
  background: #ffdb7a;
  color: #241a08;
  font-size: 12px;
  line-height: 16px;
  font-weight: 800;
}
.general-lobby-page #latestGamesSection { order: 8; }
.general-lobby-page :is(#latestGamesSection, #heroGamesSection) .section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.general-lobby-page :is(#latestGamesSection, #heroGamesSection) .section-heading h2 {
  display: block;
  order: -1;
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

/* Square entrance art also applies to owner-preview cards. Text height must
   not stretch the image track; hover/focus must not crop the composition. */
.general-lobby-page .upcoming-game-art,
.kids-lobby-page .upcoming-game-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  align-self: start;
}
.general-lobby-page .upcoming-game-art img,
.general-lobby-page .upcoming-game-card:hover .upcoming-game-art img,
.general-lobby-page .upcoming-game-card:focus-visible .upcoming-game-art img,
.kids-lobby-page .upcoming-game-art img,
.kids-lobby-page .upcoming-game-card:hover .upcoming-game-art img,
.kids-lobby-page .upcoming-game-card:focus-visible .upcoming-game-art img {
  object-fit: contain;
  object-position: center;
  transform: none;
}
#spotlightGameSection { margin:26px 0; }
#spotlightGameSection > h2 { margin:0 0 14px; font-size:clamp(22px,3vw,30px); }
.spotlight-game { display:grid; grid-template-columns:minmax(280px,420px) 1fr; gap:clamp(20px,4vw,54px); align-items:center; padding:18px; border:1px solid #5a859b; border-radius:22px; background:linear-gradient(125deg,#173445,#0d202f); color:#f3f6f8; text-decoration:none; overflow:hidden; }
.spotlight-game > img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; border-radius:12px; transform:none!important; }
.spotlight-game > div { padding:14px; }
.spotlight-game small { color:#98d2df; letter-spacing:.15em; font-size:12px; }
.spotlight-game h3 { font-size:clamp(26px,4vw,44px); line-height:1.25; margin:12px 0; }
.spotlight-game p { color:#c2d7df; font-size:16px; }
.spotlight-game span { display:inline-block; margin-top:18px; padding:13px 24px; border-radius:8px; background:#e8c785; color:#152735; font-weight:800; }
.spotlight-game:focus-visible { outline:4px solid #e8c785; outline-offset:4px; }
@media(max-width:650px) { .spotlight-game { grid-template-columns:1fr; gap:6px; padding:12px; } .spotlight-game > div {padding:10px;} .spotlight-game span {margin-top:5px;} }


/* Kids Block Playground: keep every presentation rule inside the Kids page. */
.kids-lobby-page .lobby-shell {
  width: min(100%, 1180px);
  padding: max(8px, env(safe-area-inset-top)) 0 calc(28px + env(safe-area-inset-bottom));
}

.kids-lobby-page .kids-lobby-hero {
  height: 176px;
  min-height: 0;
  margin: 0 0 12px;
  border: 3px solid #fffef2;
  border-radius: 18px;
  background: #83d7ee;
  box-shadow: 0 6px 0 #a8d98a, 0 12px 24px rgba(67, 119, 135, .14);
}

.kids-lobby-page .kids-hero-scene { object-position: 58% 45%; }
.kids-lobby-page.lobby-page .kids-lobby-hero .sound-toggle { left: auto !important; right: 12px !important; }
.kids-lobby-page .kids-lobby-hero::after {
  background: linear-gradient(90deg, rgba(20, 87, 111, .86), rgba(20, 87, 111, .58) 42%, rgba(20, 87, 111, .04) 78%);
}

.kids-lobby-page .lobby-hero-copy {
  top: 47px;
  left: clamp(14px, 3vw, 28px);
  width: min(55%, 470px);
}

.kids-lobby-page .lobby-kicker {
  margin-bottom: 5px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
}

.kids-lobby-page .brand-lockup { gap: 8px; }
.kids-lobby-page .brand-logo {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 3px 0 rgba(19, 82, 102, .42);
}

.kids-lobby-page .brand-byline { display: none; }
.kids-lobby-page .lobby-hero h1 { font-size: clamp(23px, 3.1vw, 34px); }
.kids-lobby-page .lobby-subtitle { max-width: 350px; margin-top: 6px; font-size: 12px; line-height: 1.25; }

.kids-lobby-page .lobby-mascot {
  position: absolute;
  right: clamp(78px, 13vw, 180px);
  bottom: -4px;
  display: block;
  width: 134px;
  min-height: 128px;
  z-index: 0;
}

.kids-lobby-page .lobby-mascot::before { background: rgba(21, 88, 96, .2); filter: blur(5px); }
.kids-lobby-page .lobby-mascot-main { width: 104px; max-height: 124px; }
.kids-lobby-page .lobby-mascot-side { bottom: 8px; width: 47px; max-height: 65px; filter: drop-shadow(0 5px 6px rgba(29, 73, 80, .2)); }
.kids-lobby-page .lobby-mascot-fia { left: -5px; }
.kids-lobby-page .lobby-mascot-nori { right: -5px; }

.kids-lobby-page .kids-back-link,
.kids-lobby-page .language-picker {
  top: 9px;
  min-height: 40px;
  border: 2px solid #fffef2;
  border-radius: 11px;
  box-shadow: 0 3px 0 #67b2ca;
}

.kids-lobby-page .kids-back-link { left: 9px; padding-inline: 10px; font-size: 12px; }
.kids-lobby-page .kids-back-link::before { margin-inline-end: 5px; font-size: 18px; }
.kids-lobby-page .language-picker { right: 9px; width: 96px; }
.kids-lobby-page .language-picker select { font-size: 12px; }
.kids-lobby-page .lobby-feature { display: none; }
.kids-lobby-page .weightplay-version-badge { display: none !important; }
.kids-lobby-page .lobby-hero .sound-toggle { position: absolute; inset: auto 12px 9px auto; width: 42px; height: 42px; min-height: 42px; }

.kids-lobby-page .kids-play-heading { display: none; }
.kids-lobby-page .kids-age-filter {
  order: 1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 9px;
}

.kids-lobby-page .kids-age-filter button {
  display: flex;
  min-height: 56px;
  height: auto;
  padding: 5px 4px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 2px solid #fffef2;
  border-radius: 14px;
  box-shadow: 0 4px 0 #c7d9c5;
  font-size: 16px;
  touch-action: manipulation;
}

.kids-lobby-page .kids-age-filter button:nth-child(2) { background: #ffe690; box-shadow: 0 4px 0 #d9b957; }
.kids-lobby-page .kids-age-filter button:nth-child(3) { background: #b3e99e; box-shadow: 0 4px 0 #77b765; }
.kids-lobby-page .kids-age-filter button:nth-child(4) { background: #a0e3f5; box-shadow: 0 4px 0 #68b6cc; }
.kids-lobby-page .kids-age-filter button.active { border-color: #397e75; background: #fff2bb; color: #235e58; box-shadow: 0 4px 0 #8abb88; }
.kids-lobby-page .kids-age-filter .filter-count { display: none; }

.kids-lobby-page .kids-topic-shortcuts {
  order: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.kids-lobby-page .kids-topic-shortcuts button {
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 5px 2px;
  align-content: center;
  justify-items: center;
  gap: 2px;
  border: 2px solid #fffef2;
  border-radius: 13px;
  background: #fffef8;
  color: #315e62;
  box-shadow: 0 4px 0 #b9d7cf;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.05;
  text-align: center;
  touch-action: manipulation;
}

.kids-lobby-page .kids-topic-shortcuts button:nth-child(2) { background: #fff5cf; box-shadow: 0 4px 0 #e4cb76; }
.kids-lobby-page .kids-topic-shortcuts button:nth-child(3) { background: #e3f5d6; box-shadow: 0 4px 0 #acd092; }
.kids-lobby-page .kids-topic-shortcuts button:nth-child(4) { background: #e0f4fa; box-shadow: 0 4px 0 #9bcbd7; }
.kids-lobby-page .kids-topic-shortcuts button:nth-child(5) { background: #f2eaf8; box-shadow: 0 4px 0 #d1b7df; }
.kids-lobby-page .kids-topic-shortcuts button > span:first-child { font-size: 17px; line-height: 1; }
.kids-lobby-page .kids-topic-shortcuts button.active { border-color: #3b8479; color: #205d55; box-shadow: 0 4px 0 #64a994; transform: translateY(-1px); }

.kids-lobby-page .lobby-search-row { order: 3; gap: 8px; margin: 0 0 9px; }
.kids-lobby-page .lobby-search { min-width: 0; padding: 5px 10px; border: 2px solid #fffef2; border-radius: 13px; background: #fffefb; box-shadow: 0 4px 0 #bdd8d7; }
.kids-lobby-page .lobby-search > span { display: none; }
.kids-lobby-page .lobby-search input { min-height: 38px; font-size: 13px; }
.kids-lobby-page .quick-pick-btn { min-height: 48px; padding-inline: 11px; border: 2px solid #fff8d8; border-radius: 13px; background: #f6c95f; color: #604319; box-shadow: 0 4px 0 #d49e35; font-size: 12px; }
.kids-lobby-page > .lobby-shell > .library-tabs { order: 4; margin: 0 0 9px; padding: 4px; gap: 5px; border: 2px solid #fffef2; border-radius: 13px; background: #e4f4e8; box-shadow: 0 4px 0 #bdd8bf; }
.kids-lobby-page > .lobby-shell > .library-tabs button { min-height: 42px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #42686a; box-shadow: none; font-size: 12px; }
.kids-lobby-page > .lobby-shell > .library-tabs button.active { background: #fffef7; color: #285d5b; box-shadow: 0 2px 0 #c8dfc4; }
.kids-lobby-page #advancedFilters { order: 13; margin: 0 0 8px; border: 2px solid #fffef2; border-radius: 13px; background: #f8fff6; box-shadow: 0 3px 0 #c6dfc8; }
.kids-lobby-page #filterStatus { order: 5; }

.kids-lobby-page #gameGrid { order: 6; gap: 14px; margin-top: 2px; }
.kids-lobby-page .game-card {
  border: 3px solid #fffef2;
  border-radius: 15px;
  background: #fffef8;
  box-shadow: 0 5px 0 #b7d6be, 0 10px 20px rgba(54, 106, 102, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}

.kids-lobby-page .game-card:hover,
.kids-lobby-page .game-card:focus-within { transform: translateY(-2px); box-shadow: 0 7px 0 #9cc9a6, 0 14px 24px rgba(54, 106, 102, .15); }
.kids-lobby-page .game-card:active { transform: translateY(2px) scale(.99); box-shadow: 0 2px 0 #b7d6be; }
.kids-lobby-page .game-card-art.image-art { border-radius: 11px 11px 7px 7px; }
.kids-lobby-page .game-card-age-overlay { border: 2px solid #fffef2; border-radius: 10px; box-shadow: 0 3px 0 rgba(39, 93, 80, .22); }
.kids-lobby-page .game-card-body { background: #fffef8; }
.kids-lobby-page .game-card-body {
  display: grid;
  height: auto;
  min-height: 72px;
  padding: 7px 10px 8px;
  flex: 0 0 auto;
  align-content: center;
  justify-items: center;
  gap: 3px;
}
.kids-lobby-page .game-card h2 { color: #285b59; }
.kids-lobby-page .game-card-play-tag {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e3f3de;
  color: #47725f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.kids-lobby-page #heroGamesSection,
.kids-lobby-page #mobilePicksSection,
.kids-lobby-page #characterShowcaseSection,
.kids-lobby-page #freshUpdatesSection,
.kids-lobby-page #challengeSpotlightSection,
.kids-lobby-page #recommendationsSection,
.kids-lobby-page #skillPathsSection,
.kids-lobby-page #continuePlayingSection,
.kids-lobby-page #upcomingGamesSection { order: 12; }

.kids-lobby-page #lobbyStats,
.kids-lobby-page #weightplayCastle,
.kids-lobby-page .kids-skill-strip { order: 13; }

.kids-lobby-page .kids-featured-strip { order: 11; margin: 14px 0 0; }
.kids-lobby-page .kids-featured-strip #featuredGame {
  position: static;
  display: grid;
  width: min(100%, 420px);
  min-height: 76px;
  margin-inline-start: auto;
  grid-template-columns: 60px minmax(0, 1fr);
  border: 3px solid #fff9dc;
  border-radius: 14px;
  background: #f3c85f;
  color: #59441d;
  box-shadow: 0 5px 0 #d3a644;
}

.kids-lobby-page .kids-featured-strip #featuredGame img { width: 60px; height: 60px; border-radius: 9px; }
.kids-lobby-page .kids-featured-strip #featuredGame span { color: #745a27; }
.kids-lobby-page .kids-featured-strip #featuredGame strong { color: #56451f; font-size: 15px; }

.kids-lobby-page .kids-parent-details {
  order: 14;
  margin: 18px 0 12px;
  padding: 0 16px 14px;
  border: 2px solid #d8e9d3;
  border-radius: 16px;
  background: rgba(255, 255, 249, .76);
  color: #456567;
}

.kids-lobby-page .kids-parent-details > summary {
  min-height: 50px;
  padding: 14px 2px 10px;
  color: #527579;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.kids-lobby-page .kids-parent-details-content { display: grid; gap: 12px; }
.kids-lobby-page .kids-parent-details .kids-promise,
.kids-lobby-page .kids-parent-details .parent-trust-strip { margin: 0; border-radius: 12px; box-shadow: none; }
.kids-lobby-page .kids-parent-details .kids-promise { border: 1px solid #d8e9d3; background: #f4faec; color: #456567; }
.kids-lobby-page .kids-parent-details .kids-promise :is(h2,p,li) { color: #456567; }
.kids-lobby-page .kids-parent-details .kids-promise span { color: #71906f; }
.kids-lobby-page .kids-parent-details .parent-trust-strip { border: 1px solid #dce9d8; background: #f8fbf3; color: #456567; }
.kids-lobby-page .kids-parent-details .parent-trust-copy :is(span,p),
.kids-lobby-page .kids-parent-details .parent-trust-points small { color: #678080; }
.kids-lobby-page .kids-parent-details .parent-trust-points div { border-color: #e0e9d8; background: #fffefb; }
.kids-lobby-page .kids-parent-details .parent-trust-points strong { color: #426a63; }

.kids-lobby-page .kids-rail-toggle { display: none; }
.kids-lobby-page :is(button, summary, a, input, select):focus-visible { outline: 3px solid #e08d36; outline-offset: 3px; }

@media (min-width: 1120px) {
  .kids-lobby-page .lobby-shell { width: calc(100% - 24px); padding: max(10px, env(safe-area-inset-top)) 12px 32px 264px; }
  .kids-lobby-page .kids-lobby-hero { height: 178px; }
  .kids-lobby-page > .lobby-shell > .kids-age-filter { display: grid; }
  .kids-lobby-page .kids-rail-toggle {
    position: fixed; bottom: 18px; left: 24px; z-index: 23; display: flex;
    width: 216px; min-height: 44px; padding: 0 13px; align-items: center; gap: 8px;
    border: 2px solid #fffef2; border-radius: 12px; background: #f4d577;
    color: #56471d; box-shadow: 0 4px 0 #d1b458; font-size: 12px;
    font-weight: 850; cursor: pointer; transition: left .22s ease, transform .14s ease;
  }
  .kids-lobby-page .kids-rail-toggle > span:first-child { font-size: 16px; }
  .kids-lobby-page.kids-rail-collapsed .lobby-shell { padding-left: 12px; }
  .kids-lobby-page.kids-rail-collapsed .desktop-filter-rail { transform: translateX(calc(-100% - 28px)); }
  .kids-lobby-page.kids-rail-collapsed .kids-rail-toggle {
    position: static;
    order: -1;
    width: fit-content;
    margin: 0 0 8px;
    left: auto;
    bottom: auto;
  }
  .kids-lobby-page .desktop-filter-rail { transition: transform .22s ease; }
}

@media (max-width: 720px) {
  .kids-lobby-page .kids-lobby-hero { height: 164px; margin-bottom: 10px; }
  .kids-lobby-page .lobby-hero-copy { top: 50px; width: 62%; }
  .kids-lobby-page .brand-lockup { gap: 7px; }
  .kids-lobby-page .lobby-hero h1 { font-size: clamp(18px, 4.7vw, 22px); line-height: 1.1; white-space: nowrap; }
  .kids-lobby-page .lobby-subtitle { display: none; }
  .kids-lobby-page .lobby-mascot { right: 4%; width: 88px; min-height: 102px; }
  .kids-lobby-page .lobby-mascot-main { width: 90px; max-height: 106px; }
  .kids-lobby-page .lobby-mascot-side { width: 38px; max-height: 55px; }
  .kids-lobby-page .kids-back-link { max-width: calc(100% - 116px); padding-inline: 8px; font-size: 11px; white-space: nowrap; }
  .kids-lobby-page .kids-back-link { width: fit-content; min-width: 0; justify-content: flex-start; overflow: visible; color: #16658d; }
  .kids-lobby-page .kids-back-link::before { margin-inline-end: 5px; color: #16658d; font-size: 16px; }
  .kids-lobby-page .language-picker { width: 92px; }
  .kids-lobby-page .kids-topic-shortcuts { gap: 5px; }
  .kids-lobby-page .kids-topic-shortcuts button { min-height: 58px; font-size: 9px; }
  .kids-lobby-page .kids-topic-shortcuts button > span:first-child { font-size: 16px; }
}

@media (max-width: 360px) {
  .kids-lobby-page .kids-lobby-hero { height: 152px; }
  .kids-lobby-page .kids-age-filter { gap: 5px; }
  .kids-lobby-page .kids-age-filter button { min-height: 52px; }
  .kids-lobby-page .kids-topic-shortcuts button { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .kids-lobby-page *,
  .kids-lobby-page *::before,
  .kids-lobby-page *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (min-width: 560px) and (max-width: 720px) {
  .kids-lobby-page #gameGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .kids-lobby-page .kids-lobby-hero { height: 104px; margin-bottom: 6px; }
  .kids-lobby-page .kids-hero-scene { object-position: 58% 43%; }
  .kids-lobby-page .lobby-hero-copy { top: 34px; width: 55%; }
  .kids-lobby-page .lobby-kicker { display: none; }
  .kids-lobby-page .brand-logo { width: 28px; height: 28px; }
  .kids-lobby-page .lobby-hero h1 { font-size: 19px; }
  .kids-lobby-page .lobby-subtitle,
  .kids-lobby-page .lobby-mascot { display: none; }
  .kids-lobby-page .kids-back-link,
  .kids-lobby-page .language-picker { top: 6px; min-height: 34px; }
  .kids-lobby-page .kids-age-filter { gap: 5px; margin-bottom: 5px; }
  .kids-lobby-page .kids-age-filter button { min-height: 44px; padding-block: 3px; font-size: 14px; }
  .kids-lobby-page .kids-topic-shortcuts { gap: 4px; margin-bottom: 5px; }
  .kids-lobby-page .kids-topic-shortcuts button { min-height: 44px; padding-block: 3px; gap: 0; font-size: 8px; }
  .kids-lobby-page .kids-topic-shortcuts button > span:first-child { font-size: 13px; }
  .kids-lobby-page .lobby-search-row { margin-bottom: 5px; }
  .kids-lobby-page .lobby-search input { min-height: 36px; }
  .kids-lobby-page .quick-pick-btn { min-height: 42px; }
  .kids-lobby-page > .lobby-shell > .library-tabs { margin-bottom: 5px; }
  .kids-lobby-page > .lobby-shell > .library-tabs button { min-height: 40px; }
}

/* Keep category counts and labels readable over every Kids pastel tile. */
.kids-lobby-page .kids-topic-shortcuts button { color: #244f47; font-size: 12px; }
.kids-lobby-page .kids-topic-shortcuts .filter-copy { display: block; min-width: 0; max-width: 100%; }
.kids-lobby-page .kids-topic-shortcuts .filter-label { display: block; overflow-wrap: anywhere; color: #244f47; font-size: 12px; font-weight: 850; line-height: 1.1; }
.kids-lobby-page .kids-topic-shortcuts .filter-count {
  min-width: 25px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #334b39;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(54, 99, 70, .22);
}
.kids-lobby-page .kids-topic-shortcuts button:is(:hover, :focus-visible, .active),
.kids-lobby-page .kids-topic-shortcuts button:is(:hover, :focus-visible, .active) .filter-label,
.kids-lobby-page .kids-topic-shortcuts button:is(:hover, :focus-visible, .active) .filter-count { color: #244f47; }
.kids-lobby-page .kids-topic-shortcuts button:is(:hover, :focus-visible, .active) .filter-count { background: #fffef8; }

.kids-lobby-page .kids-advanced-filter-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  margin: 10px 0;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  border: 2px solid #fffef2;
  border-radius: 12px;
  background: #e3f5d6;
  color: #285b4f;
  box-shadow: 0 3px 0 #a9cb91;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.kids-lobby-page .kids-advanced-filter-toggle:hover { background: #d8efc9; }
.kids-lobby-page .kids-advanced-filter-toggle:active { transform: translateY(2px); box-shadow: 0 1px 0 #a9cb91; }
.kids-lobby-page .kids-advanced-filter-panel[hidden],
.kids-lobby-page [data-topic-filter][hidden] { display: none !important; }
.kids-lobby-page .kids-advanced-filter-panel:not([hidden]) { display: grid; gap: 12px; }

@media (max-width: 720px) {
  .kids-lobby-page .kids-topic-shortcuts button { font-size: 10px; }
  .kids-lobby-page .kids-topic-shortcuts .filter-label { font-size: 10px; }
  .kids-lobby-page .kids-topic-shortcuts .filter-count { min-width: 22px; height: 20px; font-size: 12px; }
}
@media (max-width: 359px) {
  .kids-lobby-page .kids-topic-shortcuts button { font-size: 9px; }
  .kids-lobby-page .kids-topic-shortcuts .filter-label { font-size: 9px; }
}
