@import url("https://fonts.googleapis.com/css2?family=Titan+One&family=Fredoka:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght@100..700&display=swap");

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: normal;
  white-space: nowrap;
}

.games-hub {
  position: relative;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 1rem 1rem 5rem;
  overflow-x: hidden;
  color: #10234d;
  font-family: "Fredoka", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(97, 153, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(133, 101, 255, 0.13), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 32%, #f8faff 100%);
}

.games-hub__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.games-hub__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.7;
  animation: pulse-soft 6s ease-in-out infinite;
}

.games-hub__orb--left {
  top: 80px;
  left: 40px;
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.5);
}

.games-hub__orb--right {
  bottom: 140px;
  right: 40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 182, 193, 0.45);
  animation-delay: 0.7s;
}

.games-hub__spark {
  position: absolute;
  border-radius: 999px;
  opacity: 0.6;
}

.games-hub__spark--pink {
  top: 120px;
  left: 12%;
  width: 32px;
  height: 12px;
  background: #ff4081;
  transform: rotate(-35deg);
}

.games-hub__spark--blue {
  top: 260px;
  right: 15%;
  width: 14px;
  height: 14px;
  background: #2979ff;
}

.games-hub__spark--green {
  bottom: 90px;
  left: 18%;
  width: 30px;
  height: 30px;
  border: 4px solid #76ff03;
}

.games-hub__spark--purple {
  top: 40px;
  right: 30%;
  width: 36px;
  height: 12px;
  background: #8e63ff;
  transform: rotate(12deg);
}

.games-hub__nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.games-hub__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.games-hub__sun {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #4d7cff, #7357ff);
  box-shadow: 0 10px 24px rgba(71, 91, 220, 0.2);
}

.games-hub__sun span {
  font-size: 28px;
  color: #fff;
}

.games-hub__brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6f7fa6;
  text-transform: uppercase;
}

.games-hub__brand-title {
  margin-top: 0.1rem;
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 800;
  color: #10234d;
  text-shadow: none;
}

.games-hub__settings {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
}

.games-hub__settings-btn {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
}

.games-hub__settings-btn span {
  font-size: 2rem;
}

.games-hub__settings-dropdown {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 100;
  animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jelly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  border: 0;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
  box-shadow: inset 0 6px 10px rgba(255, 255, 255, 0.4), 0 6px 0 rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.jelly-btn:active {
  transform: translateY(6px);
  box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.12);
}

.jelly-btn--pink {
  background: #ff4081;
  color: #fff;
  border-bottom: 6px solid #c51162;
}

.jelly-btn--blue {
  background: #2979ff;
  color: #fff;
  border-bottom: 6px solid #2962ff;
}

.jelly-btn--green {
  background: #76ff03;
  color: #353535;
  border-bottom: 6px solid #64dd17;
}

.jelly-btn--ghost {
  background: #fff;
  color: #6b6b6b;
  border: 2px solid #e5e7eb;
  box-shadow: none;
}

.jelly-btn.is-off {
  filter: grayscale(0.4) brightness(0.95);
  opacity: 0.7;
}

.games-hub__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-bottom: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

.games-hub__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 280px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid #dce8ff;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 72% 40%, rgba(255,255,255,.96), transparent 24%),
    linear-gradient(120deg, #eff7ff 0%, #dff2ff 52%, #edf2ff 100%);
  box-shadow: 0 22px 70px rgba(36, 73, 145, 0.1);
  overflow: hidden;
}

.games-hub__hero-copy h1 {
  margin: 0;
  color: #10234d;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.games-hub__hero-copy h1 span {
  color: #654dff;
}

.games-hub__hero-copy > p {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: #4d5f85;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.games-hub__hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.games-hub__hero-points > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 0.65rem;
  min-width: 170px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(94, 120, 180, 0.14);
  border-radius: 1rem;
  background: rgba(255,255,255,.72);
  box-shadow: 0 8px 24px rgba(54, 89, 150, 0.06);
}

.games-hub__hero-points .material-symbols-outlined {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #edf2ff;
  color: #5e5cff;
}

.games-hub__hero-points strong {
  color: #17346d;
  font-size: 0.82rem;
}

.games-hub__hero-points small {
  margin-top: 0.1rem;
  color: #7180a0;
  font-size: 0.7rem;
}

.games-hub__hero-art {
  position: relative;
  min-height: 210px;
}

.games-hub__hero-controller {
  position: absolute;
  left: 12%;
  bottom: 2%;
  font-size: clamp(6rem, 11vw, 10rem);
  transform: rotate(-10deg);
  filter: drop-shadow(0 24px 28px rgba(47, 77, 135, .18));
}

.games-hub__hero-bot {
  position: absolute;
  right: 8%;
  bottom: 12%;
  display: grid;
  place-items: center;
  width: clamp(88px, 10vw, 126px);
  height: clamp(88px, 10vw, 126px);
  border: 8px solid white;
  border-radius: 999px;
  background: linear-gradient(145deg, #62a4ff, #6e57ff);
  box-shadow: 0 22px 40px rgba(72, 79, 205, .22);
}

.games-hub__hero-bot span {
  color: white;
  font-size: clamp(3rem, 5vw, 4.5rem);
}

.games-hub__hero-bubble {
  position: absolute;
  top: 0;
  right: 2%;
  padding: 0.8rem 1.1rem;
  border: 2px solid #fff;
  border-radius: 1.5rem 1.5rem 1.5rem 0.4rem;
  background: rgba(255,255,255,.82);
  color: #465dff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.05;
  transform: rotate(3deg);
  box-shadow: 0 12px 30px rgba(65, 91, 145, .12);
}

.games-hub__featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
  align-items: stretch;
  gap: 0;
  min-height: 260px;
  padding: 0;
  border: 1px solid #0a4a91;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 75% 20%, rgba(24, 200, 255, .25), transparent 28%),
    linear-gradient(120deg, #073c79 0%, #0758a9 52%, #049fc1 100%);
  box-shadow: 0 18px 48px rgba(4, 63, 126, 0.22);
  overflow: hidden;
}

.games-hub__featured-copy,
.games-hub__featured-copy h1,
.games-hub__section-heading h2 {
  position: relative;
}

.games-hub__featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 2.6rem);
}

.games-hub__section-heading h2 {
  margin: 0;
  color: #10234d;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.games-hub__featured-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: #fff;
}

.games-hub__featured-copy p {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.games-hub__eyebrow {
  margin-bottom: 0.55rem;
  color: #5870a6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.games-hub__featured-tags,
.games-hub__featured-actions,
.games-hub__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.games-hub__featured-tags {
  margin-top: 1.1rem;
}

.games-hub__featured-tags span {
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #e8f8ff;
  font-size: 0.74rem;
  font-weight: 700;
}

.games-hub__featured-actions {
  margin-top: 1.5rem;
}

.games-hub__featured-art {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(88, 221, 255, .35), transparent 36%),
    linear-gradient(145deg, rgba(0, 63, 125, .05), rgba(2, 181, 199, .38));
  box-shadow: none;
}

.games-hub__featured-art span {
  font-size: clamp(7rem, 14vw, 11rem);
  filter: drop-shadow(0 24px 24px rgba(0, 28, 78, 0.35));
}

.games-hub__browse {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.games-hub__section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.games-hub__section-heading h2 {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.games-hub__section-heading p {
  margin: 0;
  color: #7b8baa;
  font-weight: 700;
}

.games-hub__filters {
  overflow-x: auto;
  padding: 0.2rem 0 0.4rem;
  scrollbar-width: none;
}

.games-hub__filters::-webkit-scrollbar {
  display: none;
}

.games-hub__filters button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0.6rem 1rem;
  border: 1px solid #d9e2f2;
  border-radius: 999px;
  background: #fff;
  color: #334c79;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.games-hub__filters button:hover {
  transform: translateY(-1px);
}

.games-hub__filters button .material-symbols-outlined {
  font-size: 1rem;
}

.games-hub__filters button.is-active {
  border-color: #3c72ff;
  background: #3576ff;
  color: white;
  box-shadow: 0 8px 20px rgba(53, 118, 255, 0.24);
}

.games-hub__filters button:focus-visible,
.game-card a:focus-visible,
.games-hub__featured a:focus-visible,
.games-hub__settings button:focus-visible {
  outline: 3px solid #2979ff;
  outline-offset: 3px;
}

.games-hub__top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.clay-card {
  position: relative;
  background: #fff;
  border-radius: 2.5rem;
  padding: 2.5rem;
  box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.05), inset 10px 10px 20px rgba(255, 255, 255, 1), 10px 18px 30px rgba(0, 0, 0, 0.12);
}

.clay-card__badge {
  position: absolute;
  top: -24px;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12);
}

.clay-card__badge span {
  font-size: 2.4rem;
}

.clay-card__badge--blue {
  background: #e3f2fd;
  color: #2979ff;
}

.clay-card__badge--pink {
  background: #ffe0ef;
  color: #ff4081;
}

.clay-card h2 {
  font-family: "Titan One", cursive;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.clay-card__title--blue {
  color: #2979ff;
}

.clay-card__title--pink {
  color: #ff4081;
}

.clay-card p {
  color: #7c7c7c;
  font-weight: 500;
}

.clay-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.clay-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b0b0b0;
  margin-left: 0.75rem;
}

.clay-input,
.clay-select {
  width: 100%;
  border-radius: 1.5rem;
  border: none;
  background: #f8f8f8;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #5a5a5a;
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.06);
  outline: none;
}

.clay-input:focus,
.clay-select:focus {
  box-shadow: inset 4px 4px 10px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(41, 121, 255, 0.2);
}

.clay-input--code {
  text-align: center;
  font-family: "Titan One", cursive;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #ff4081;
}

.lobby-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.lobby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 1.5rem;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, border 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.lobby-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 193, 7, 0.4);
}

.lobby-item__content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lobby-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: inset 0 4px 6px rgba(0, 0, 0, 0.08);
}

.lobby-item__icon span {
  font-size: 2rem;
}

.icon-orange {
  background: #fff3e0;
  color: #fb8c00;
}

.icon-yellow {
  background: #fff9c4;
  color: #f9a825;
}

.icon-pink {
  background: #ffe0ef;
  color: #ff4081;
}

.icon-red {
  background: #ffebee;
  color: #d4341e;
}

.icon-cyan {
  background: #e0f7fa;
  color: #0891b2;
}

.lobby-item__label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5d5d5d;
}

.lobby-item__pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  background: #2979ff;
  box-shadow: 0 6px 10px rgba(41, 121, 255, 0.3);
}

.games-hub__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.25rem;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0.9rem;
  min-height: 168px;
  padding: 0.8rem;
  border: 1px solid #e1e8f5;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(42, 67, 112, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: #cfdcf1;
  box-shadow: 0 16px 34px rgba(42, 67, 112, 0.12);
}

.game-card__media {
  position: relative;
  min-width: 0;
}

.game-card__mascot {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 144px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  overflow: hidden;
}

.game-card__mascot span {
  font-size: 4rem;
}

.game-card--flashcard .game-card__mascot {
  background: linear-gradient(145deg, #dff6ff, #c8ecff);
  color: #2876d8;
}

.game-card--flashcard .game-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: #ff5d85;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(255, 93, 133, .22);
}

.game-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.game-card__title {
  margin: 0.1rem 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  color: #10234d !important;
}

.game-card--pikachu .game-card__mascot {
  background: linear-gradient(145deg, #fff4b8, #ffe372);
  color: #ad7a00;
}

.game-card--pikachu .game-card__title {
  color: #f9a825;
}

.game-card--candy .game-card__mascot {
  background: linear-gradient(145deg, #ffe6f1, #ead8ff);
  color: #b450c8;
}

.game-card--candy .game-card__title {
  color: #ff4081;
}

.game-card--loto .game-card__mascot {
  background: linear-gradient(135deg, #d4341e 0%, #ff5722 100%);
  color: #ffd700;
  box-shadow: none;
}

.game-card--loto .game-card__mascot span {
  font-size: 4rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-card--loto .game-card__title {
  color: #d4341e;
}

.game-card--fishing .game-card__mascot {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #14b8a6 100%);
  color: #fff;
  box-shadow: none;
}

.game-card--fishing .game-card__mascot span {
  font-size: 4rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-card--fishing .game-card__title {
  color: #0891b2;
}

.game-card__title {
  margin-top: 3.5rem;
  font-family: "Titan One", cursive;
  font-size: 1.8rem;
  text-align: center;
}

.game-card__desc {
  margin: 0.28rem 0 0;
  color: #667696;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 500;
  flex-grow: 1;
}

.game-card__tags {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-start;
}

.game-card__tag {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: capitalize;
}

.tag-orange {
  background: #ffe0b2;
  color: #fb8c00;
}

.tag-blue {
  background: #e3f2fd;
  color: #2979ff;
}

.tag-yellow {
  background: #fff9c4;
  color: #f9a825;
}

.tag-green {
  background: #e8f5e9;
  color: #43a047;
}

.tag-pink {
  background: #ffe0ef;
  color: #ff4081;
}

.tag-purple {
  background: #ede7f6;
  color: #7e57c2;
}

.tag-red {
  background: #ffebee;
  color: #d4341e;
}

.game-card__actions {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.game-card__actions--single {
  grid-template-columns: 1fr;
}

.game-card__actions > div,
.game-card__actions a {
  width: 100%;
}

.game-card__actions .jelly-btn {
  min-height: 36px;
  padding: 0.48rem 0.55rem;
  border-radius: 0.75rem;
  border-bottom-width: 0;
  box-shadow: none;
  font-size: 0.65rem;
  letter-spacing: 0;
  text-transform: none;
}

.game-card__actions .jelly-btn--pink {
  background: #3576ff;
}

.game-card__actions .jelly-btn--ghost {
  color: #536586;
  border: 1px solid #dce5f3;
  background: #f9fbff;
}

.games-hub__room {
  display: grid;
  grid-template-columns: auto minmax(240px, .8fr) minmax(340px, 1.2fr);
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid #e4ddff;
  border-radius: 1.5rem;
  background: linear-gradient(120deg, #f5f0ff 0%, #fbf9ff 48%, #eef3ff 100%);
  box-shadow: 0 12px 34px rgba(79, 65, 154, 0.08);
}

.games-hub__room-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 1.35rem;
  background: #ece4ff;
  color: #6d4cff;
}

.games-hub__room-icon span {
  font-size: 2.4rem;
}

.games-hub__room-copy h2 {
  margin: 0;
  color: #5d3de0;
  font-size: 1.45rem;
}

.games-hub__room-copy p {
  margin: 0.3rem 0 0;
  color: #6f7490;
  font-size: 0.85rem;
  line-height: 1.45;
}

.games-hub__room-form {
  min-width: 0;
}

.games-hub__room-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.games-hub__room-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.games-hub__room-form input {
  min-width: 0;
  height: 46px;
  padding: 0 0.9rem;
  border: 1px solid #d8ddeb;
  border-radius: 0.85rem;
  background: white;
  color: #213760;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.games-hub__room-form input:focus {
  border-color: #6c55ff;
  box-shadow: 0 0 0 4px rgba(108, 85, 255, .12);
}

.games-hub__room-form button {
  min-height: 46px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #7f5cff, #6842ed);
  color: white;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.games-hub__room-form > p {
  margin: 0.45rem 0 0;
  color: #c6375b;
  font-size: 0.76rem;
  font-weight: 700;
}

@keyframes float-soft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes bounce-slow {

  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(0);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-soft {

  0%,
  100% {
    opacity: 0.55;
  }

  50% {
    opacity: 0.85;
  }
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

.animate-shake {
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@media (max-width: 1080px) {
  .games-hub__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .games-hub__room {
    grid-template-columns: auto 1fr;
  }

  .games-hub__room-form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .games-hub__nav {
    padding-top: 1rem;
  }

  .clay-card {
    padding: 2rem;
  }

  .games-hub {
    padding: 0.75rem 0.75rem 5rem;
  }

  .games-hub__hero {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 1.5rem;
  }

  .games-hub__hero-copy h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .games-hub__hero-art {
    min-height: 160px;
  }

  .games-hub__hero-controller {
    left: 10%;
  }

  .games-hub__featured {
    grid-template-columns: 1fr;
    border-radius: 1.5rem;
  }

  .games-hub__featured-art {
    min-height: 160px;
    order: -1;
  }

  .games-hub__featured-actions .jelly-btn {
    min-height: 46px;
    flex: 1 1 150px;
  }

  .games-hub__section-heading {
    align-items: flex-start;
  }

  .games-hub__cards {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding-top: 0.25rem;
  }

  .game-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 150px;
    padding: 0.7rem;
  }

  .game-card__mascot {
    min-height: 126px;
  }

  .games-hub__room {
    grid-template-columns: 1fr;
  }

  .games-hub__room-icon {
    width: 58px;
    height: 58px;
  }

  .games-hub__room-form {
    grid-column: auto;
  }

  .games-hub__room-form > div {
    grid-template-columns: 1fr;
  }

  .games-hub__room-form button {
    width: 100%;
  }

  .game-card__actions {
    gap: 0.5rem;
  }

  .games-hub__brand-title {
    font-size: clamp(1.6rem, 8vw, 2.25rem);
  }

  .games-hub__controls {
    width: 100%;
    justify-content: center;
  }
}

.games-hub__header {
  position: relative;
  z-index: 5;
  margin: -1rem -1rem 0;
  padding: 0 1rem;
  border-bottom: 1px solid #e8eef8;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.games-hub__nav {
  min-height: 64px;
  padding: 0;
}

.games-hub__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #10234d;
  text-decoration: none;
}

.games-hub__logo .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3f75ff, #6a4eff);
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(70, 89, 220, .2);
}

.games-hub__logo strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.games-hub__nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.games-hub__nav-links a {
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  color: #42567f;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.games-hub__nav-links a:hover,
.games-hub__nav-links a[aria-current="page"] {
  background: #edf3ff;
  color: #245fe3;
}

.games-hub__nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.games-hub__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: min(220px, 24vw);
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #f4f7fb;
  color: #7180a0;
}

.games-hub__search .material-symbols-outlined {
  font-size: 1.05rem;
}

.games-hub__search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #213760;
  font: inherit;
  font-size: 0.76rem;
}

.games-hub__search input::placeholder {
  color: #8c99b2;
}

.games-hub__language {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #455b82;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .games-hub__nav-links {
    display: none;
  }

  .games-hub__search {
    width: min(260px, 42vw);
  }
}

@media (max-width: 640px) {
  .games-hub__header {
    margin: -0.75rem -0.75rem 0;
    padding: 0 0.75rem;
  }

  .games-hub__nav {
    min-height: 58px;
  }

  .games-hub__logo strong {
    font-size: 0.95rem;
  }

  .games-hub__search {
    width: min(142px, 46vw);
    padding: 0 0.65rem;
    justify-content: flex-start;
  }

  .games-hub__search input {
    position: static;
    width: 100%;
    height: auto;
    opacity: 1;
    pointer-events: auto;
  }

  .games-hub__language {
    display: none;
  }
}

/* Approved mockup alignment */
.games-hub__category-bar {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0.35rem 0.2rem;
}

.games-hub__featured-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #ffb21c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(255, 178, 28, 0.24);
}

.games-hub__featured-label .material-symbols-outlined {
  font-size: 1rem;
}

.games-hub__featured-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.games-hub__featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-top: 1rem;
}

.games-hub__featured-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.games-hub__featured-meta .material-symbols-outlined {
  font-size: 1rem;
}

.games-hub__featured-actions .jelly-btn {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border-bottom-width: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

.games-hub__featured-actions .jelly-btn--pink {
  background: #2f74ff;
  box-shadow: 0 10px 22px rgba(47, 116, 255, 0.32);
}

.games-hub__featured-actions .jelly-btn--ghost {
  border-color: rgba(255,255,255,.35);
  background: rgba(7, 45, 92, .24);
  color: #fff;
}

.games-hub__featured-art {
  position: relative;
  overflow: hidden;
}

.games-hub__featured-art::before,
.games-hub__featured-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.games-hub__featured-art::before {
  width: 72px;
  height: 72px;
  top: 18%;
  left: 16%;
}

.games-hub__featured-art::after {
  width: 28px;
  height: 28px;
  top: 58%;
  right: 18%;
}

.games-hub__featured-fish {
  position: absolute;
  left: 28%;
  bottom: 10%;
  z-index: 2;
  font-size: clamp(5.5rem, 10vw, 8.5rem);
  filter: drop-shadow(0 20px 18px rgba(0, 26, 75, .34));
}

.games-hub__featured-shark {
  position: absolute;
  left: 8%;
  top: 15%;
  z-index: 1;
  font-size: clamp(2rem, 5vw, 4rem);
  opacity: .72;
  transform: rotate(-8deg);
}

.games-hub__featured-treasure {
  position: absolute;
  right: 7%;
  bottom: 9%;
  z-index: 1;
  font-size: clamp(2.8rem, 6vw, 5rem);
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.2));
}

.games-hub__featured-slogan {
  position: absolute;
  right: 8%;
  top: 18%;
  color: rgba(255,255,255,.9);
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  line-height: 1.15;
  font-weight: 800;
  transform: rotate(-6deg);
  text-align: center;
}

.games-hub__section-heading {
  align-items: center;
}

.games-hub__section-heading > div > p {
  margin-top: 0.22rem;
  font-size: 0.78rem;
}

.games-hub__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #6a7b9c;
  font-size: 0.76rem;
  font-weight: 700;
}

.games-hub__sort select {
  min-height: 38px;
  padding: 0 2rem 0 0.75rem;
  border: 1px solid #dce5f2;
  border-radius: 0.8rem;
  background: #fff;
  color: #314a76;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  outline: none;
}

.games-hub__sort select:focus-visible {
  border-color: #4e7cff;
  box-shadow: 0 0 0 3px rgba(78, 124, 255, .12);
}

.game-card__badge {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 2;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: #ff5d85;
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(255, 93, 133, .22);
}

.game-card--fishing .game-card__badge {
  background: #ff9d2f;
}

.game-card__title {
  margin: 0.1rem 0 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  color: #10234d !important;
}

.game-card__media {
  aspect-ratio: 1 / 1;
}

.game-card__mascot {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.game-card--flashcard .game-card__mascot {
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.9), transparent 20%),
    linear-gradient(145deg, #dff6ff, #9fd6ff);
}

.game-card--pikachu .game-card__mascot {
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.8), transparent 18%),
    linear-gradient(145deg, #fff5b8, #ffd951);
}

.game-card--candy .game-card__mascot {
  background:
    radial-gradient(circle at 65% 25%, rgba(255,255,255,.72), transparent 20%),
    linear-gradient(145deg, #ffd7eb, #cdb3ff);
}

.game-card--loto .game-card__mascot {
  background:
    radial-gradient(circle at 55% 20%, rgba(255,236,171,.34), transparent 22%),
    linear-gradient(135deg, #ee4035 0%, #ff812e 100%);
}

.game-card--fishing .game-card__mascot {
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.35), transparent 20%),
    linear-gradient(145deg, #087ab9, #16c1cd);
}

.game-card__mascot span {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .games-hub__category-bar {
    margin-inline: -0.2rem;
  }

  .games-hub__featured-meta {
    gap: 0.55rem 0.85rem;
  }

  .games-hub__featured-slogan {
    display: none;
  }

  .games-hub__featured-fish {
    left: 34%;
  }

  .games-hub__section-heading {
    align-items: flex-end;
  }

  .games-hub__sort > span {
    display: none;
  }
}

/* ============================
   GAMES HUB REFERENCE FIDELITY
   Keep the shared AiFolder navbar; style only the hub content below it.
   ============================ */
.games-hub {
  padding-top: 0;
}

.games-hub__main {
  gap: 1rem;
  max-width: none;
  margin: 0;
  padding-bottom: 0;
  background: #fff;
}

.games-hub__hero {
  width: calc(100% + 2rem);
  margin-left: -1rem;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: stretch;
  min-height: 210px;
  padding: 1.35rem 0 1.25rem max(1rem, calc((100vw - 72rem) / 2));
  border: 0;
  border-radius: 0;
  background: linear-gradient(100deg, #eef8ff 0%, #dff2ff 48%, #e9f5ff 100%);
  box-shadow: none;
}

.games-hub__hero-copy h1 {
  margin: 0;
  font-size: clamp(2.65rem, 4.7vw, 3.65rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.games-hub__hero-copy > p {
  max-width: 40rem;
  margin: .55rem 0 0;
  color: #18305f;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  line-height: 1.4;
  font-weight: 700;
}

.games-hub__hero-points {
  display: flex;
  flex-wrap: nowrap;
  gap: .9rem;
  margin-top: 1.2rem;
}

.games-hub__hero-points > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: .55rem;
  min-width: 0;
  flex: 1 1 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.games-hub__hero-points .material-symbols-outlined {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  color: #6e58ff;
  box-shadow: 0 6px 18px rgba(67, 86, 142, .08);
}

.games-hub__hero-points strong {
  color: #17346d;
  font-size: .72rem;
  line-height: 1.15;
}

.games-hub__hero-points small {
  margin-top: .1rem;
  color: #7180a0;
  font-size: .61rem;
  line-height: 1.2;
}

.games-hub__hero-art {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.games-hub__hero-art img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.games-hub__hero-art-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-position: center 38% !important;
  filter: saturate(1.08) contrast(1.02);
}

.games-hub__hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #dff2ff 0%, rgba(223, 242, 255, .72) 8%, transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(44, 116, 255, .08));
}

.games-hub__hero-art-glow {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 12%;
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 16px 40px rgba(69, 98, 170, .18);
  backdrop-filter: blur(8px);
}

.games-hub__hero-art-bot {
  position: absolute;
  z-index: 3;
  right: 9.5%;
  bottom: 18%;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 5px solid rgba(255,255,255,.95);
  border-radius: 999px;
  background: linear-gradient(145deg, #63b8ff, #755cff);
  box-shadow: 0 15px 28px rgba(69, 84, 184, .22);
  font-size: 2.9rem;
}

.games-hub__hero-art-message {
  position: absolute;
  z-index: 3;
  top: 12%;
  right: 8%;
  padding: .7rem .9rem;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 1.25rem 1.25rem 1.25rem .35rem;
  background: rgba(255,255,255,.88);
  color: #315fe8;
  box-shadow: 0 10px 28px rgba(63, 83, 145, .14);
  font-size: .78rem;
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  transform: rotate(2deg);
}

.games-hub__category-bar,
.games-hub__featured,
.games-hub__browse {
  width: min(72rem, calc(100% - 1rem));
  margin-left: auto;
  margin-right: auto;
}

.games-hub__category-bar {
  min-height: 52px;
  padding: .3rem 0;
  background: #fff;
  justify-content: space-between;
  gap: .8rem;
}

.games-hub__browse-search {
  flex: 0 0 min(220px, 24vw);
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 38px;
  padding: 0 .8rem;
  border: 1px solid #dce5f2;
  border-radius: 999px;
  background: #f7f9fc;
  color: #7180a0;
}

.games-hub__browse-search .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 1rem;
}

.games-hub__browse-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #213760;
  font: inherit;
  font-size: .72rem;
}

.games-hub__browse-search input::placeholder {
  color: #8c99b2;
}

.games-hub__filters {
  display: flex;
  flex-wrap: nowrap;
  gap: .55rem;
  overflow-x: auto;
  padding: .15rem 0 .3rem;
  scrollbar-width: none;
}

.games-hub__filters button {
  min-height: 38px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border: 1px solid #dbe4f2;
  border-radius: 999px;
  background: #fff;
  color: #314a76;
  font-size: .78rem;
  font-weight: 800;
}

.games-hub__filters button.is-active {
  border-color: #3478ff;
  background: #3478ff;
  color: #fff;
  box-shadow: 0 7px 18px rgba(52, 120, 255, .22);
}

.games-hub__featured {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  min-height: 224px;
  padding: 0;
  border: 0;
  border-radius: .9rem;
  background: linear-gradient(115deg, #07366d 0%, #0754a0 52%, #0798bd 100%);
  box-shadow: 0 12px 30px rgba(4, 63, 126, .16);
  overflow: hidden;
}

.games-hub__featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 1.15rem 1.3rem;
}

.games-hub__featured-label {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .3rem;
  margin-bottom: .55rem;
  padding: .32rem .58rem;
  border-radius: 999px;
  background: #ffb21c;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(255, 178, 28, .22);
}

.games-hub__featured-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3.7vw, 2.85rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 800;
}

.games-hub__featured-copy p {
  margin: .55rem 0 0;
  max-width: 34rem;
  font-size: .92rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
}

.games-hub__featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: .75rem;
}

.games-hub__featured-meta > span {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  color: rgba(255, 255, 255, .92);
  font-size: .68rem;
  font-weight: 700;
}

.games-hub__featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .85rem;
}

.games-hub__featured-actions .jelly-btn {
  min-height: 39px;
  padding: .55rem 1rem;
  border-radius: 999px;
  border-bottom-width: 0;
  box-shadow: none;
  font-size: .76rem;
  text-transform: none;
  letter-spacing: 0;
}

.games-hub__featured-actions .jelly-btn--pink {
  background: #2f74ff;
  box-shadow: 0 10px 22px rgba(47, 116, 255, .32);
}

.games-hub__featured-actions .jelly-btn--ghost {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(7, 45, 92, .24);
  color: #fff;
}

.games-hub__featured-art {
  min-height: 224px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.games-hub__featured-art img {
  width: 100%;
  height: 100%;
  min-height: 224px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.games-hub__featured-art::before,
.games-hub__featured-art::after,
.games-hub__featured-fish,
.games-hub__featured-shark,
.games-hub__featured-treasure,
.games-hub__featured-slogan {
  display: none !important;
}

.games-hub__browse {
  gap: .6rem;
}

.games-hub__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .2rem;
}

.games-hub__section-heading h2 {
  margin: 0;
  color: #10234d;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.games-hub__section-heading > div > p {
  display: none;
}

.games-hub__sort {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 36px;
  padding: 0 .55rem;
  border: 1px solid #dce5f2;
  border-radius: .7rem;
  background: #fff;
  color: #6a7b9c;
  font-size: .7rem;
  font-weight: 700;
}

.games-hub__sort select {
  min-height: 34px;
  padding: 0 1.35rem 0 .2rem;
  border: 0;
  background: transparent;
  color: #314a76;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  outline: none;
}

.games-hub__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  padding-top: .1rem;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: .75rem;
  min-height: 154px;
  padding: .65rem;
  border: 1px solid #e1e8f5;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 7px 20px rgba(42, 67, 112, .055);
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: #cfdcf1;
  box-shadow: 0 12px 26px rgba(42, 67, 112, .09);
}

.game-card__media {
  position: relative;
  min-width: 0;
  height: 140px;
  aspect-ratio: auto;
}

.game-card__art {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: .65rem;
  object-fit: cover;
  object-position: center;
}

.game-card__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: .08rem 0;
}

.game-card__title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-size: .92rem;
  line-height: 1.15;
  font-weight: 800;
  text-align: left;
  color: #10234d !important;
}

.game-card__desc {
  margin: .25rem 0 0;
  color: #667696;
  text-align: left;
  font-size: .69rem;
  line-height: 1.32;
  font-weight: 500;
  flex-grow: 1;
}

.game-card__tags {
  margin-top: .42rem;
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
  justify-content: flex-start;
}

.game-card__tag {
  padding: .25rem .42rem;
  border-radius: 999px;
  font-size: .54rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.game-card__actions {
  margin-top: .52rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}

.game-card__actions .jelly-btn {
  min-height: 32px;
  padding: .4rem .42rem;
  border-radius: .6rem;
  border-bottom-width: 0;
  box-shadow: none;
  font-size: .61rem;
  letter-spacing: 0;
  text-transform: none;
}

.game-card__actions .jelly-btn .material-symbols-outlined {
  font-size: .78rem;
}

.game-card__actions .jelly-btn--pink {
  background: #3576ff;
}

.game-card__actions .jelly-btn--ghost {
  color: #536586;
  border: 1px solid #dce5f3;
  background: #f9fbff;
}

.game-card__badge {
  position: absolute;
  top: .38rem;
  right: .38rem;
  left: auto;
  z-index: 2;
  padding: .23rem .42rem;
  border-radius: 999px;
  background: #ff5d85;
  color: #fff;
  font-size: .54rem;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(255, 93, 133, .18);
}

.games-hub__room {
  display: grid;
  grid-template-columns: 86px minmax(150px, .75fr) minmax(260px, 1.35fr) 76px;
  align-items: center;
  gap: .85rem;
  min-height: 154px;
  padding: .85rem 1rem;
  border: 1px solid #e4ddff;
  border-radius: .9rem;
  background: linear-gradient(105deg, #f5f0ff 0%, #fbf9ff 52%, #eef1ff 100%);
  box-shadow: 0 7px 20px rgba(79, 65, 154, .055);
}

.games-hub__room--wide {
  grid-column: span 2;
}

.games-hub__room-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #ece4ff;
  color: #6d4cff;
}

.games-hub__room-copy h2 {
  margin: 0;
  color: #6b45ea;
  font-size: 1.12rem;
  line-height: 1.15;
}

.games-hub__room-copy p {
  margin: .25rem 0 0;
  color: #6f7490;
  font-size: .68rem;
  line-height: 1.35;
}

.games-hub__room-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: .5rem;
}

.games-hub__room-form input {
  min-width: 0;
  height: 40px;
  padding: 0 .75rem;
  border: 1px solid #d8ddeb;
  border-radius: .65rem;
  background: #fff;
  color: #213760;
  font: inherit;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  outline: none;
}

.games-hub__room-form button {
  min-height: 40px;
  padding: 0 .9rem;
  border: 0;
  border-radius: .65rem;
  background: linear-gradient(135deg, #7f5cff, #6842ed);
  color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}

.games-hub__room-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: #7456f5;
  text-align: center;
  font-size: .58rem;
  line-height: 1.15;
  font-weight: 700;
  transform: rotate(-5deg);
}

.games-hub__room-note .material-symbols-outlined {
  font-size: 1.35rem;
}

@media (max-width: 1080px) {
  .games-hub__hero {
    grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  }

  .games-hub__hero-points {
    gap: .55rem;
  }

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

  .games-hub__room--wide {
    grid-column: span 2;
  }

  .games-hub__room {
    grid-template-columns: 74px minmax(140px, .75fr) minmax(240px, 1.25fr);
  }

  .games-hub__room-note {
    display: none;
  }
}

@media (max-width: 768px) {
  .games-hub__hero {
    width: calc(100% + 1.5rem);
    margin-left: -.75rem;
    grid-template-columns: 1fr;
    padding: 1.2rem .85rem 0;
    min-height: auto;
    border-radius: 0;
  }

  .games-hub__hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .games-hub__hero-points {
    flex-wrap: wrap;
  }

  .games-hub__hero-points > div {
    min-width: 145px;
  }

  .games-hub__hero-art,
  .games-hub__hero-art img {
    min-height: 170px;
  }

  .games-hub__featured {
    grid-template-columns: 1fr;
  }

  .games-hub__featured-art,
  .games-hub__featured-art img {
    min-height: 170px;
  }

  .games-hub__featured-art {
    order: -1;
  }

  .games-hub__section-heading {
    align-items: center;
  }

  .games-hub__sort > span {
    display: none;
  }

  .games-hub__cards {
    grid-template-columns: 1fr;
  }

  .game-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 142px;
  }

  .game-card__media {
    height: 128px;
  }

  .games-hub__room--wide {
    grid-column: span 1;
  }

  .games-hub__room {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: .65rem;
  }

  .games-hub__room-icon {
    width: 54px;
    height: 54px;
  }

  .games-hub__room-form {
    grid-column: 1 / -1;
  }

  .games-hub__room-form > div {
    grid-template-columns: 1fr 82px;
  }

  .games-hub__room-note {
    display: none;
  }
}

/* ============================
   DARK MODE OVERRIDES
   ============================ */
.dark .games-hub {
  background-color: #1a1a2e;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(30, 30, 60, 0.6) 10%, transparent 10.2%),
    radial-gradient(circle at 90% 80%, rgba(30, 30, 60, 0.6) 15%, transparent 15.2%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 2%, transparent 2.5%),
    radial-gradient(circle at 20% 90%, rgba(255, 64, 129, 0.1) 1%, transparent 1.5%),
    radial-gradient(circle at 80% 10%, rgba(41, 121, 255, 0.1) 1%, transparent 1.5%);
  color: #e0e0e0;
}

.dark .games-hub__orb--left {
  background: rgba(99, 102, 241, 0.25);
}

.dark .games-hub__orb--right {
  background: rgba(236, 72, 153, 0.2);
}

.dark .games-hub__brand-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #f472b6;
}

.dark .games-hub__brand-title {
  color: #818cf8;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3), -1px -1px 0 rgba(255, 255, 255, 0.1);
}

.dark .games-hub__sun {
  background: rgba(255, 255, 255, 0.1);
}

.dark .game-card {
  background: #1e1e2f;
  box-shadow:
    inset -6px -6px 12px rgba(0, 0, 0, 0.3),
    inset 6px 6px 12px rgba(255, 255, 255, 0.03),
    6px 12px 24px rgba(0, 0, 0, 0.4);
}

.dark .game-card__desc {
  color: #a0a0b0;
}

.dark .game-card__title {
  filter: brightness(1.3);
}

.dark .game-card__mascot {
  box-shadow: 0 14px 20px rgba(0, 0, 0, 0.4);
}

.dark .clay-card {
  background: #1e1e2f;
  box-shadow:
    inset -6px -6px 12px rgba(0, 0, 0, 0.3),
    inset 6px 6px 12px rgba(255, 255, 255, 0.03),
    6px 12px 24px rgba(0, 0, 0, 0.4);
}

.dark .clay-card h2 {
  filter: brightness(1.2);
}

.dark .clay-card p {
  color: #a0a0b0;
}

.dark .clay-input,
.dark .clay-select {
  background: #2a2a3d;
  color: #e0e0e0;
  box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.dark .clay-input:focus,
.dark .clay-select:focus {
  box-shadow: inset 3px 3px 8px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.dark .clay-input--code {
  color: #f472b6;
}

.dark .clay-label {
  color: #8888a0;
}

.dark .jelly-btn--ghost {
  background: #2a2a3d;
  color: #c0c0d0;
  border-color: #3a3a50;
}

.dark .jelly-btn--green {
  background: #4ade80;
  color: #1a1a2e;
}

.dark .lobby-item {
  background: #1e1e2f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dark .lobby-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
}

.dark .lobby-item__label {
  color: #c0c0d0;
}

.dark .lobby-item__pill {
  box-shadow: 0 6px 10px rgba(41, 121, 255, 0.2);
}

/* Dark mode tags */
.dark .tag-orange {
  background: #4a2c10;
  color: #fdba74;
}

.dark .tag-blue {
  background: #1e2a4a;
  color: #93c5fd;
}

.dark .tag-yellow {
  background: #3d3510;
  color: #fde68a;
}

.dark .tag-green {
  background: #1a3320;
  color: #86efac;
}

.dark .tag-pink {
  background: #3d1a2e;
  color: #f9a8d4;
}

.dark .tag-purple {
  background: #2d1f4e;
  color: #c4b5fd;
}

.dark .tag-red {
  background: #3d1a1a;
  color: #fca5a5;
}

/* Dark mode icon wrappers */
.dark .icon-orange {
  background: #3d2510;
  color: #fdba74;
}

.dark .icon-yellow {
  background: #3d3510;
  color: #fde68a;
}

.dark .icon-pink {
  background: #3d1a2e;
  color: #f9a8d4;
}

.dark .icon-red {
  background: #3d1a1a;
  color: #fca5a5;
}

.dark .icon-cyan {
  background: #0a3040;
  color: #67e8f9;
}

/* Dark mode settings dropdown */
.dark .games-hub__settings-dropdown {
  background: rgba(30, 30, 47, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.dark .games-hub__settings-dropdown .jelly-btn.is-off {
  filter: grayscale(0.4) brightness(0.7);
}

@media (prefers-reduced-motion: reduce) {
  .games-hub *,
  .games-hub *::before,
  .games-hub *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


@media (max-width: 768px) {
  .games-hub {
    padding-top: 0;
  }

  .games-hub__category-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .games-hub__browse-search {
    flex-basis: auto;
    width: 100%;
  }

  .games-hub__hero-art-message {
    top: 8%;
    right: 5%;
  }

  .games-hub__hero-art-glow {
    right: 4%;
    bottom: 8%;
  }

  .games-hub__hero-art-bot {
    right: 7%;
    bottom: 14%;
  }
}

@media (max-width: 520px) {
  .games-hub__hero-art-message {
    display: none;
  }

  .games-hub__hero-art-glow {
    width: 92px;
    height: 92px;
  }

  .games-hub__hero-art-bot {
    width: 68px;
    height: 68px;
    font-size: 2.35rem;
  }
}


/* GAMES HUB APPROVED LAYOUT LOCK
   Keep these rules last so artwork can never stretch the approved layout. */
@media (min-width: 769px) {
  .games-hub__category-bar,
  .games-hub__featured,
  .games-hub__browse {
    width: min(88rem, calc(100% - 3rem));
    max-width: 88rem;
  }

  .games-hub__hero {
    height: 252px;
    min-height: 252px;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    padding-top: 1.6rem;
    padding-bottom: 1.45rem;
    overflow: hidden;
  }

  .games-hub__hero-art {
    position: relative;
    height: 252px;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
  }

  .games-hub__hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 38% !important;
  }

  .games-hub__hero-art::before {
    background:
      linear-gradient(90deg, #dff2ff 0%, rgba(223, 242, 255, .8) 7%, rgba(223, 242, 255, .18) 24%, transparent 42%),
      linear-gradient(180deg, rgba(255,255,255,.05), rgba(44,116,255,.05));
  }

  .games-hub__hero-art-glow {
    right: 8%;
    bottom: 12%;
    width: 104px;
    height: 104px;
  }

  .games-hub__hero-art-bot {
    right: 10.2%;
    bottom: 18%;
    width: 76px;
    height: 76px;
    font-size: 2.65rem;
  }

  .games-hub__hero-art-message {
    top: 9%;
    right: 8%;
  }

  .games-hub__category-bar {
    min-height: 58px;
    padding: .45rem 0;
  }

  .games-hub__featured {
    height: 260px;
    min-height: 260px;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    border-radius: 1rem;
  }

  .games-hub__featured-copy {
    height: 260px;
    min-height: 0;
    padding: 1.35rem 1.5rem;
  }

  .games-hub__featured-art {
    position: relative;
    height: 260px;
    min-height: 0;
    overflow: hidden;
  }

  .games-hub__featured-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 61%;
    transform: scale(1.03);
  }

  .games-hub__featured-art::before {
    display: block !important;
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(7, 66, 128, .35) 0%, transparent 24%),
      linear-gradient(180deg, rgba(0, 160, 210, .05), rgba(0, 54, 117, .12));
    pointer-events: none;
  }

  .games-hub__featured-art::after {
    display: block !important;
    width: 34px;
    height: 34px;
    top: 18%;
    right: 13%;
    background: rgba(255,255,255,.22);
  }

  .games-hub__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
  }

  .game-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }
}

@media (min-width: 1180px) {
  .games-hub__hero {
    padding-left: max(1.5rem, calc((100vw - 88rem) / 2));
  }

  .games-hub__hero-copy {
    width: 100%;
    max-width: 42rem;
    justify-self: end;
    padding-right: 1.4rem;
  }
}

@media (max-width: 768px) {
  .games-hub__hero {
    height: auto;
    min-height: auto;
  }

  .games-hub__hero-art {
    position: relative;
    height: 176px;
    min-height: 176px;
  }

  .games-hub__hero-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 35% !important;
  }

  .games-hub__featured {
    height: auto;
    min-height: 0;
  }

  .games-hub__featured-copy {
    height: auto;
  }

  .games-hub__featured-art {
    position: relative;
    height: 180px;
    min-height: 180px;
  }

  .games-hub__featured-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 61%;
  }
}

/* Mobile UX hardening: keep hub content inside the viewport and make dense
   controls intentionally scrollable instead of widening the page. */
@media (max-width: 768px) {
  .games-hub {
    width: 100%;
    max-width: 100%;
    padding-inline: .5rem;
    overflow-x: clip;
  }

  .games-hub__main,
  .games-hub__category-bar,
  .games-hub__featured,
  .games-hub__browse {
    min-width: 0;
    max-width: 100%;
  }

  .games-hub__hero {
    width: calc(100% + 1rem);
    margin-left: -.5rem;
    padding-inline: .75rem;
  }

  .games-hub__hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .games-hub__hero-points {
    gap: .65rem;
  }

  .games-hub__hero-points > div {
    min-width: min(145px, 46vw);
  }

  .games-hub__hero-art {
    height: 152px;
    min-height: 152px;
  }

  .games-hub__category-bar {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .games-hub__filters {
    width: 100%;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .25rem;
    overscroll-behavior-x: contain;
  }

  .games-hub__filters button {
    min-height: 44px;
    scroll-snap-align: start;
  }

  .games-hub__browse-search {
    min-height: 46px;
  }

  .games-hub__browse-search input {
    font-size: 1rem;
  }

  .games-hub__featured {
    width: 100%;
    margin-inline: 0;
  }

  .games-hub__featured-art {
    height: 152px;
    min-height: 152px;
  }

  .games-hub__featured-art img {
    object-position: center 56%;
  }

  .games-hub__featured-copy {
    padding: 1rem;
  }

  .games-hub__featured-copy h2 {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .games-hub__featured-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .games-hub__featured-actions .jelly-btn {
    width: 100%;
    min-height: 48px;
  }

  .games-hub__browse {
    width: 100%;
    margin-inline: 0;
  }

  .game-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .game-card__media {
    height: 122px;
  }

  .game-card__actions {
    grid-template-columns: 1fr;
  }

  .game-card__actions .jelly-btn {
    min-height: 42px;
  }
}

@media (max-width: 380px) {
  .games-hub__hero-points {
    display: none;
  }

  .game-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}




/* Preserve the full desktop banner composition without allowing artwork to
   widen the hub. Mobile gets a tighter crop so game artwork stays legible. */
.games-hub__hero-art img,
.games-hub__featured-art img {
  width: 100%;
  max-width: 100%;
  left: 50%;
  object-fit: contain !important;
  object-position: center !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 768px) {
  .games-hub__filters {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: .1rem;
  }

  .games-hub__filters button {
    min-height: 40px;
    max-width: 100%;
    padding: .5rem .72rem;
    scroll-snap-align: none;
  }

  .games-hub__featured-art {
    height: 145px;
    min-height: 145px;
  }

  .games-hub__featured-art img {
    object-fit: cover !important;
    object-position: center 58% !important;
  }

  .games-hub__featured-copy {
    padding: .9rem;
  }

  .games-hub__featured-label {
    margin-bottom: .4rem;
  }

  .games-hub__featured-copy p {
    margin-top: .4rem;
    font-size: .84rem;
  }

  .games-hub__featured-meta {
    gap: .4rem .7rem;
    margin-top: .6rem;
  }

  .games-hub__featured-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    margin-top: .7rem;
  }

  .games-hub__featured-actions .jelly-btn {
    min-height: 42px;
    width: 100%;
    padding-inline: .65rem;
  }
}

@media (max-width: 360px) {
  .games-hub__featured-actions {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .games-hub *, .candy-play * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* /games selected responsive banner assets */
.games-hub__hero.games-hub__hero--artwork {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0;
  gap: 0;
  border: 0;
  border-radius: 1rem;
  background: #dff2ff;
  box-shadow: 0 12px 34px rgba(36, 73, 145, 0.12);
  overflow: hidden;
}

.games-hub__hero-picture {
  display: block;
  width: 100%;
}

.games-hub__hero-banner,
.games-hub__hero.games-hub__hero--artwork .games-hub__hero-banner {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100%;
  object-fit: initial !important;
  object-position: initial !important;
  transform: none !important;
}

@media (max-width: 768px) {
  .games-hub__hero.games-hub__hero--artwork {
    width: calc(100% + 1rem);
    margin-left: -.5rem;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .games-hub__hero.games-hub__hero--artwork .games-hub__hero-banner {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
  }
}
