/* In-phone Games hub — light lobby UI */

.wondalife-phone-screen.is-app:has(.pg-app) {
  background: #f4f5f7;
}
.wondalife-phone-screen.is-app:has(.pg-app) .wondalife-phone-status {
  color: #1c2430;
  text-shadow: none;
}
.wondalife-phone-screen.is-app:has(.pg-app) .wondalife-phone-signal::before {
  background: #1c2430;
  box-shadow: 4px 0 0 #1c2430, 8px -2px 0 #1c2430, 12px -4px 0 #1c2430;
}
.wondalife-phone-screen.is-app:has(.pg-app) .wondalife-phone-battery {
  border-color: #1c2430;
}
.wondalife-phone-screen.is-app:has(.pg-app) .wondalife-phone-battery::before,
.wondalife-phone-screen.is-app:has(.pg-app) .wondalife-phone-battery::after {
  background: #1c2430;
}
.wondalife-phone-screen.is-app:has(.pg-app) .wondalife-phone-homebar {
  background: rgba(28, 36, 48, 0.45);
}
.wondalife-phone-screen.is-app .wondalife-phone-body:has(.pg-app) {
  padding: 0 0 22px;
  overflow: hidden;
  height: 100%;
}

.pg-app {
  --pg-ink: #142033;
  --pg-muted: #6b7380;
  --pg-blue: #2f6bff;
  --pg-green: #22a45a;
  --pg-card: #eceef2;
  --pg-white: #ffffff;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--pg-white);
  color: var(--pg-ink);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  z-index: 4;
  overflow: hidden;
}

.pg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 4px;
  flex-shrink: 0;
}

.pg-back {
  border: 0;
  background: transparent;
  color: var(--pg-blue);
  font-size: 28px;
  line-height: 1;
  padding: 0 4px 0 0;
  cursor: pointer;
  font-weight: 300;
}

.pg-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #0f1a2e;
}

.pg-scroll {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: 4px 14px 20px;
  -webkit-overflow-scrolling: touch;
}

.pg-lead {
  margin: 6px 0 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--pg-muted);
}

.pg-lead--foot {
  margin: 18px 0 0;
}

.pg-sub {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--pg-muted);
}

/* "All" is pinned at the left; the game tabs slide underneath it (WondaGo logo tabs in the Wonda app). */
.pg-game-tabs-wrap {
  position: relative;
  margin: -4px 0 0;
}

.pg-game-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* Room for the icons that poke out of the tabs (the scroller would clip them). */
  padding: 10px 14px 0 0;
  cursor: grab;
}

.pg-game-tabs.is-dragging {
  cursor: grabbing;
}

.pg-game-tabs.is-dragging .pg-game-tab {
  cursor: grabbing;
}

.pg-game-tabs::-webkit-scrollbar {
  display: none;
}

.pg-game-tab--ghost {
  visibility: hidden;
}

.pg-game-tabs__track {
  flex: none;
  display: flex;
  gap: 8px;
}

.pg-game-tabs__track.is-rolling {
  animation: pg-tabs-roll-out 0.42s cubic-bezier(0.33, 1, 0.68, 1) both;
}

@keyframes pg-tabs-roll-out {
  from {
    transform: translateX(18px);
    opacity: 0.55;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.pg-game-tabs__pin {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  background: var(--pg-white);
}

.pg-game-tabs__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 8px;
  background: linear-gradient(90deg, var(--pg-white), rgba(255, 255, 255, 0));
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .pg-game-tabs__track.is-rolling {
    animation: none;
  }
}

/* City tables / My Games — the Featured / Favorite headings on Wonda Food. */
.pg-sections {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 12px 0 10px;
  white-space: nowrap;
}

.pg-sections--mine {
  margin: 0;
}

.pg-section-tab {
  flex: none;
  border: 0;
  padding: 0;
  background: none;
  font-family: Fredoka, Poppins, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pg-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.pg-section-tab:hover,
.pg-section-tab.is-on {
  color: var(--pg-ink);
}

.pg-section-tab__count {
  margin-left: 3px;
  font-size: 7px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
  color: var(--pg-muted);
}

.pg-everywhere {
  position: relative;
  flex: none;
}

.pg-everywhere__btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.pg-everywhere__chev {
  transition: transform 0.2s ease;
}

.pg-everywhere.is-open .pg-everywhere__btn {
  color: var(--pg-ink);
}

.pg-everywhere.is-open .pg-everywhere__chev {
  transform: rotate(180deg);
}

.pg-city-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  width: 196px;
  padding: 8px 6px 6px;
  border-radius: 14px;
  background: var(--pg-white);
  box-shadow: 0 14px 34px rgba(20, 32, 51, 0.18), 0 2px 6px rgba(20, 32, 51, 0.08);
  white-space: normal;
  transform: translateX(-50%);
  transform-origin: top center;
  animation: pg-city-menu-in 0.18s ease-out;
}

.pg-city-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--pg-white);
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

@keyframes pg-city-menu-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.pg-city-menu__title {
  margin: 0 8px 6px;
  font-family: Fredoka, Poppins, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pg-muted);
}

.pg-city-menu__list {
  max-height: 260px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 32, 51, 0.18) transparent;
}

.pg-city-menu__list::-webkit-scrollbar {
  width: 4px;
}

.pg-city-menu__list::-webkit-scrollbar-button {
  display: none;
}

.pg-city-menu__list::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(20, 32, 51, 0.18);
}

.pg-city-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-family: Fredoka, Poppins, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--pg-ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pg-city-menu__item:hover {
  background: #f3f4f7;
}

.pg-city-menu__item.is-on {
  background: rgba(109, 40, 217, 0.1);
  color: #6d28d9;
  font-weight: 600;
}

.pg-city-menu__name {
  flex: 1;
  min-width: 0;
}

.pg-city-menu__count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--pg-card);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--pg-muted);
}

.pg-city-menu__item.is-on .pg-city-menu__count {
  background: #6d28d9;
  color: #fff;
}

.pg-city-menu__check {
  width: 10px;
  font-size: 11px;
  color: #6d28d9;
}

.pg-game-tab {
  --tab: #6d28d9;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  height: 24px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tab) 12%, transparent);
  color: var(--tab);
  font-family: Poppins, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
}

.pg-game-tab.is-on {
  border-color: color-mix(in srgb, var(--tab) 55%, transparent);
}

.pg-game-tab em {
  font-style: normal;
  font-size: 11px;
}

.pg-chess-queen {
  display: inline-block;
  width: 1.17em;
  height: 1.35em;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  -webkit-user-drag: none;
}

/* Whot!, Memory Match and Ludo: tilted card pairs and a die in three-quarter view, square like the board corner. */
.pg-whot-card,
.pg-memory-card,
.pg-ludo-die {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
  -webkit-user-drag: none;
}

.pg-ludo-die {
  width: 1.6em;
  height: 1.6em;
}

/* The hole is wider than tall: a square box that reads as big as the Whot card. */
.pg-ayo-hole {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  -webkit-user-drag: none;
}

/* The red 8-ball fills its square box, so it needs less room than the hole to read the same size. */
.pg-pool-ball {
  display: inline-block;
  width: 1.28em;
  height: 1.28em;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.3));
  -webkit-user-drag: none;
}

/* Shoot!: a fist and a V-sign squaring up. Emoji glyphs leave air in the 40×46 box, so it runs larger than the Whot card. */
.pg-shoot-hands {
  display: inline-block;
  width: 1.36em;
  height: 1.56em;
  vertical-align: middle;
  overflow: visible;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* Draughts: a board corner in perspective, wider than tall, so it gets the hole's square box and a bit more. */
.pg-draughts-board {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  -webkit-user-drag: none;
}

/* Dominoes: one tall 6|3 tile with its edge showing. Half as wide as it is tall, so it runs taller than the Whot card to read as big. */
.pg-domino-tile {
  display: inline-block;
  width: 0.9em;
  height: 1.5em;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
  -webkit-user-drag: none;
}

/* Cantas: a crown-cork player in three-quarter view with the flat ball at its feet, square like the board corner. */
.pg-cantas-cap {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
  -webkit-user-drag: none;
}

/* Bigger in list rows without making the row taller. */
.pg-row__main strong .pg-cantas-cap,
.pg-table-card strong .pg-cantas-cap {
  width: 1.8em;
  height: 1.8em;
  margin: -0.4em 0;
}
.pg-row__main strong .pg-domino-tile,
.pg-table-card strong .pg-domino-tile {
  width: 1.1em;
  height: 1.85em;
  margin: -0.42em 0.05em;
}
.pg-row__main strong .pg-draughts-board,
.pg-table-card strong .pg-draughts-board {
  width: 1.8em;
  height: 1.8em;
  margin: -0.4em 0;
}
.pg-row__main strong .pg-shoot-hands,
.pg-table-card strong .pg-shoot-hands {
  width: 1.7em;
  height: 1.95em;
  margin: -0.42em 0;
}
.pg-row__main strong .pg-whot-card,
.pg-table-card strong .pg-whot-card,
.pg-row__main strong .pg-memory-card,
.pg-table-card strong .pg-memory-card {
  width: 1.8em;
  height: 1.8em;
  margin: -0.4em 0;
}
.pg-row__main strong .pg-ludo-die,
.pg-table-card strong .pg-ludo-die {
  width: 1.9em;
  height: 1.9em;
  margin: -0.45em 0;
}
.pg-row__main strong .pg-chess-queen,
.pg-table-card strong .pg-chess-queen {
  width: 1.45em;
  height: 1.68em;
  margin: -0.3em 0;
}
.pg-row__main strong .pg-ayo-hole,
.pg-table-card strong .pg-ayo-hole {
  width: 1.7em;
  height: 1.7em;
  margin: -0.35em 0;
}
.pg-row__main strong .pg-pool-ball,
.pg-table-card strong .pg-pool-ball {
  width: 1.5em;
  height: 1.5em;
  margin: -0.3em 0;
}

/* Tab icons: 150%, poking out toward the top-right; transforms leave the tab's size alone. */
.pg-game-tab {
  position: relative;
}

.pg-game-tab em {
  display: inline-block;
  position: relative;
  z-index: 2;
  transform: translate(0.3em, -0.45em) scale(1.5);
  transform-origin: center;
}

/* The dice emoji draws smaller than the Whot card: scale it up to match and tilt it the same way. */
.pg-game-tab--ludo em {
  transform: translate(0.42em, -0.45em) rotate(-18deg) scale(1.95);
}

/* The queen sits in the Whot card's box but is slimmer: a touch larger reads the same size. Same -18° tilt. */
.pg-game-tab--chess em {
  transform: translate(0.34em, -0.6em) rotate(-18deg) scale(1.62);
}

/* Same -18° tilt; the hole's box is wider, so a little less scale matches the Whot card. */
.pg-game-tab--ayo em {
  transform: translate(0.36em, -0.5em) rotate(-18deg) scale(1.5);
}

/* The ball is round, so the -18° tilt shows on the 8; scaled to match the Whot card. */
.pg-game-tab--pool em {
  transform: translate(0.36em, -0.5em) rotate(-18deg) scale(1.55);
}

/* The two hands lean into each other; the whole pair takes the same -18° tilt, scaled up like the dice. */
.pg-game-tab--shoot em {
  transform: translate(0.4em, -0.5em) rotate(-18deg) scale(1.75);
}

/* The board corner takes the same -18° tilt, so it reads as a board lifted off the table. */
.pg-game-tab--draughts em {
  transform: translate(0.38em, -0.62em) rotate(-18deg) scale(1.6);
}

/* The tile leans back at the same -18°, like a domino tipped up from the line. */
.pg-game-tab--dominoes em {
  transform: translate(0.32em, -0.7em) rotate(-18deg) scale(1.5);
}

/* The card pair already leans like the Whot card, so only the same scale and nudge. */
.pg-game-tab--memory em {
  transform: translate(0.3em, -0.45em) scale(1.5);
}

/* The cap tips back at the same -18°, like a man flicked up off the board. */
.pg-game-tab--cantas em {
  transform: translate(0.38em, -0.6em) rotate(-18deg) scale(1.62);
}

.pg-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}

.pg-sec-head h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #8a93a3;
}

.pg-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 0;
  background: #e4e7ec;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.pg-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--pg-card);
  text-align: left;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

div.pg-row {
  cursor: default;
}

.pg-av {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: hsl(var(--h, 200) 48% 42%);
}

.pg-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pg-row__main strong {
  font-size: 13px;
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-row__main strong em,
.pg-table-card strong em {
  font-style: normal;
  font-size: 13px;
}

.pg-row__main span {
  font-size: 11px;
  color: var(--pg-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pg-muted {
  color: var(--pg-muted) !important;
}

.pg-row__side {
  font-size: 12px;
  font-weight: 700;
  color: #3a4454;
  text-align: right;
  max-width: 38%;
  flex-shrink: 0;
}

.pg-row__side.is-live {
  color: var(--pg-blue);
  font-size: 11px;
}

.pg-row__side.is-won {
  color: #15803d;
}

.pg-row__side.is-lost {
  color: #b91c1c;
}

/* A closed board still playing: live commentary, then the outcome, then Watch */
.pg-row--live {
  box-shadow: inset 0 0 0 1.5px rgba(37, 99, 235, 0.16);
}

.pg-row--live .pg-row__side {
  max-width: 46%;
}

.pg-live {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.pg-live--you {
  color: #15803d;
  font-weight: 800;
}

.pg-live--you::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 999px;
  background: #22c55e;
  vertical-align: 1px;
  animation: pg-live-dot 1.1s ease-in-out infinite;
}

.pg-live--good {
  color: #15803d;
}

.pg-live--bad {
  color: #b91c1c;
}

.pg-live--pop {
  font-size: 12.5px;
  font-weight: 800;
  animation: pg-live-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

.pg-live--won {
  color: #15803d;
}

.pg-live--lost {
  color: #b91c1c;
}

.pg-live--even,
.pg-live--ended {
  color: #3a4454;
}

.pg-live-watch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--pg-blue);
  color: #fff;
  font-size: 11.5px;
  font-weight: 750;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
  animation: pg-live-pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

.pg-section-tab.has-turn::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: #22c55e;
  vertical-align: 2px;
  animation: pg-live-dot 1.1s ease-in-out infinite;
}

@keyframes pg-live-pop {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes pg-live-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-live--pop,
  .pg-live-watch,
  .pg-live--you::before,
  .pg-section-tab.has-turn::after {
    animation: none;
  }
}

.pg-see-all {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #e1e4ea;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--pg-ink);
  cursor: pointer;
  text-align: center;
}

.pg-empty {
  margin: 0;
  font-size: 12px;
  color: var(--pg-muted);
}

.pg-spots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.pg-spot-btn {
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid #e1e4ea;
  background: #fff;
  font-size: 14px;
  font-weight: 650;
  color: var(--pg-ink);
  cursor: pointer;
  text-align: center;
}

.pg-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.pg-nav-card {
  border: 1px solid #e1e4ea;
  background: #fff;
  border-radius: 14px;
  padding: 14px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pg-ink);
  cursor: pointer;
}

.pg-table-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e8eaef;
  box-shadow: 0 1px 2px rgba(20, 32, 51, 0.04);
}

.pg-table-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-table-card__body strong {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-host {
  font-size: 12px;
  color: var(--pg-blue);
  font-weight: 600;
}

.pg-table-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--pg-muted);
  flex-wrap: wrap;
}

.pg-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--pg-muted);
}

.pg-dots i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #d5d9e0;
  display: inline-block;
}

.pg-dots i.is-on {
  background: var(--pg-green);
}

.pg-rules-link {
  border: 0;
  background: transparent;
  color: var(--pg-blue);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0 0;
  text-align: left;
  cursor: pointer;
}

.pg-rules-pop {
  margin-top: 4px;
  padding: 8px;
  border-radius: 10px;
  background: #f0f3f8;
  font-size: 11px;
  line-height: 1.35;
  color: #3a4454;
}

.pg-sit {
  flex-shrink: 0;
  align-self: center;
  border: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--pg-green);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.pg-sit--wide {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pg-watch-btn {
  flex-shrink: 0;
  align-self: center;
  border: 1px solid #cfd4dc;
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: var(--pg-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pg-location {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid #e1e4ea;
  background: #fff;
  font-size: 13px;
  font-weight: 650;
  color: var(--pg-ink);
  cursor: pointer;
  margin-bottom: 12px;
}

.pg-game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pg-game-tile {
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #f3f4f6;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  color: var(--pg-ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 110px;
}

.pg-game-tile.is-on {
  background: #152238;
  color: #fff;
  border-color: #152238;
}

.pg-game-tile__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.pg-game-tile em {
  font-style: normal;
  font-size: 18px;
}

.pg-game-tile strong {
  font-size: 14px;
  font-weight: 800;
}

.pg-game-tile > span:last-child {
  font-size: 11px;
  opacity: 0.75;
  line-height: 1.3;
}

.pg-cap {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.pg-game-tile.is-on .pg-cap {
  background: rgba(255, 255, 255, 0.15);
}

.pg-cap i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  display: inline-block;
  position: relative;
}

.pg-cap i::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  left: 3px;
  top: -1px;
  opacity: 0.7;
}

.pg-create-game {
  position: relative;
  padding: 14px;
  border-radius: 16px;
  background: var(--pg-card);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-create-game em {
  font-style: normal;
  font-size: 20px;
}

.pg-create-game strong {
  font-size: 16px;
}

.pg-create-game > span:not(.pg-cap) {
  font-size: 12px;
  color: var(--pg-muted);
}

.pg-create-game .pg-cap {
  position: absolute;
  top: 12px;
  right: 12px;
}

.pg-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--pg-muted);
  font-weight: 600;
}

.pg-stakes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pg-chip {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: #eceef2;
  color: var(--pg-ink);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.pg-chip.is-on {
  background: var(--pg-green);
  color: #fff;
}

.pg-friend {
  display: block;
  margin-bottom: 10px;
}

.pg-friend input {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #eceef2;
  font-size: 13px;
  color: var(--pg-ink);
}

.pg-fame-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.pg-fame-tab {
  flex-shrink: 0;
  border: 1px solid #e1e4ea;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: var(--pg-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pg-fame-tab.is-on {
  background: #152238;
  color: #fff;
  border-color: #152238;
}

.pg-fame-tab em {
  font-style: normal;
}

.pg-fame-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pg-fame-row,
.pg-you-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  background: #fff;
}

.pg-you-rank {
  background: #d9f5e8;
  margin-top: 10px;
}

.pg-rank {
  width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.pg-fame-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-fame-row__main strong {
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.pg-champ {
  font-weight: 700;
  font-size: 10px;
  background: #ffe08a;
  color: #3a2a00;
  padding: 2px 6px;
  border-radius: 999px;
}

.pg-fame-wins {
  font-size: 11px;
  color: var(--pg-muted);
  text-align: right;
  flex-shrink: 0;
}

.pg-fame-wins b {
  display: block;
  font-size: 16px;
  color: var(--pg-ink);
}

.pg-top20 {
  width: 100%;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: #dce8ff;
  color: var(--pg-blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pg-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 56px;
  z-index: 10;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pg-toast-in 0.25s ease both;
}

.pg-toast::before {
  content: "!";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #1c2430;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

@keyframes pg-toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared "Your Turn!" / "Time Up!" cue (Whot, Ludo) */
.turn-cue {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #f5c518;
  animation: turn-cue-blink 1.4s ease-in-out infinite;
}

.turn-cue.is-fast {
  color: #ff6b5e;
  animation-duration: 0.45s;
}

.turn-cue--time-up {
  color: #ff3b30;
  transform-origin: left center;
  animation: turn-cue-pop 0.28s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

/* Shared Skip Turn button — box metrics match the Whot table's "Go to market" button. */
.turn-skip {
  flex-shrink: 0;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: normal;
  white-space: nowrap;
  color: #fff;
  background: #7a7f86;
  cursor: not-allowed;
}

.turn-skip.is-active {
  background: #f5c518;
  cursor: pointer;
}

@keyframes turn-cue-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

@keyframes turn-cue-pop {
  0% { opacity: 0; transform: scale(0.3); }
  70% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}

/* Shared "Call off" confirm (Ludo, Whot, Ayo, Pool) — same look as the Chess call-off modal. */
.calloff-modal {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.calloff-modal__panel {
  width: min(100%, 290px);
  padding: 16px 16px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #16352a, #0b1d13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  color: #f5f7f4;
  text-align: center;
  animation: calloff-pop 0.25s ease-out both;
}
.calloff-modal__icon {
  display: block;
  margin: -2px auto 6px;
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.calloff-modal__panel h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 700;
}
.calloff-modal__panel p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(245, 247, 244, 0.72);
}
.calloff-modal__panel .calloff-modal__note {
  margin-top: -2px;
  font-size: 11px;
  color: rgba(245, 247, 244, 0.6);
}
.calloff-modal__note span {
  color: #ffd166;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.calloff-money {
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #f5f7f4;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.calloff-btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 600 12.5px/1.2 Poppins, "Segoe UI", sans-serif;
  cursor: pointer;
}
.calloff-btn--stop {
  margin-bottom: 8px;
  background: linear-gradient(90deg, #c62f3d, #e5484d);
  font-size: 13.5px;
}
@keyframes calloff-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .calloff-modal__panel { animation: none; }
}
