/* WPAS Glass · purpose-built screens on the shared client, framework material v14.
   Panels are siblings. Controls may sit on panels. No game rules live here. */
:root:root:is(#wpas-glass-scope, :root.glass-game) {
  --accent: #35e3f0;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --wg-control-radius: 24px;
  --wg-panel-radius: 16px;
  color-scheme: dark;
}
.glass-game,
:root:root:is(#wpas-glass-scope, :root.glass-game) body {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #edf7fc;
  font:
    15px/1.45 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #031321;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body {
  height: var(--wpas-window-height, 100dvh);
  display: flex;
  flex-direction: column;
  padding: 0;
  background:
    radial-gradient(ellipse at 15% 0%, #123e57 0%, transparent 58%),
    linear-gradient(145deg, #071c2c 0%, #041321 55%, #020b16 100%);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) * {
  box-sizing: border-box;
  font-family: inherit;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) [hidden],
:root:root:is(#wpas-glass-scope, :root.glass-game) dialog:not([open]) {
  display: none !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) h1,
:root:root:is(#wpas-glass-scope, :root.glass-game) h2,
:root:root:is(#wpas-glass-scope, :root.glass-game) h3 {
  font-family: inherit;
  text-transform: none;
  letter-spacing: -0.025em;
  text-shadow: none;
  line-height: 1.16;
  margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) p {
  line-height: 1.5;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) small,
:root:root:is(#wpas-glass-scope, :root.glass-game) .eyebrow,
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-kicker {
  color: #9cb9ca;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) button {
  transform: none !important;
  clip-path: none !important;
  text-shadow: none !important;
  letter-spacing: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) button svg {
  color: inherit;
  fill: none;
  stroke: currentColor;
  filter: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-frame {
  isolation: isolate;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-panel {
  padding: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button {
  height: auto;
  min-height: 46px;
  white-space: normal;
  font-size: 14px;
  padding: 10px 18px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-input {
  height: 48px;
  border-radius: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) button::after {
  transform: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button::before {
  transform: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) :focus-visible {
  outline: 2px solid #affaff;
  outline-offset: 3px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header {
  flex: none;
  height: calc(62px + var(--safe-t));
  padding: var(--safe-t) max(20px, var(--safe-r)) 0 max(20px, var(--safe-l));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid #98d5ec33;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .brand {
  display: block;
  width: 180px;
  height: 42px;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) header .status {
  display: flex;
  align-items: center;
  gap: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #network,
:root:root:is(#wpas-glass-scope, :root.glass-game) header .status > small {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
  min-width: 145px;
  padding: 7px 16px;
  color: #edf7fc;
  font-size: 23px;
  font-weight: 650;
  border-radius: 14px;
  background: var(--wg-surface);
  border: 1px solid #b7d7ea55;
  box-shadow: var(--wg-shadow);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::before {
  content: "◉";
  display: inline-block;
  margin-right: 10px;
  color: #50ddf0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > footer {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav {
  order: 3;
  flex: none;
  position: relative;
  inset: auto;
  z-index: 20;
  margin: 10px max(20px, var(--safe-r)) calc(14px + var(--safe-b)) max(20px, var(--safe-l));
  padding: 7px;
  min-height: 68px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  border-radius: 18px;
  width: auto;
  max-width: none;
  /* Legacy mobile navigation used overflow:auto. A glass rim can extend by a
     pixel, which otherwise creates a scrollable bar even when its tabs fit. */
  overflow: hidden;
  overflow: clip;
  overscroll-behavior: none;
  touch-action: manipulation;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav > button {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  max-width: none;

  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 550;
  height: 52px;

  padding: 8px;
}

:root:root:is(#wpas-glass-scope, :root.glass-game)
  .main-nav:has(.screen-dock:not([hidden]))
  > button {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock > button {
  flex: 0 1 auto;
  width: auto;
  min-width: 100px;
  max-width: 290px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock > .join {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 360px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock .join-heading {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock input {
  min-width: 0;
  width: 150px;
}
/* Lobby: profile, live circuit and annual aspiration occupy distinct areas. */

/* Tournament: cinematic identity at left, useful live data at right, actions in dock. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  grid-template-rows: 60px auto minmax(0, 1fr);
  gap: 0 28px;
  padding: 0 28px 0 0;
  background: #031321;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero {
  grid-row: 1/4;
  grid-column: 1;
  position: relative;
  inset: auto;
  padding: 32px 24px;
  min-height: 0;
  background-image: var(--glass-region-image) !important;
  background-size: cover !important;
  background-position: center top !important;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  clip-path: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#00132744, transparent, #031321 95%);
  z-index: 0;
  pointer-events: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero > * {
  position: relative;
  z-index: 1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-event-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #d2e7f1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero h1 {
  font-size: 36px;
  margin-top: 8px;
  text-transform: uppercase;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-art-metrics {
  margin-top: auto;
  width: 100%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 16px 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics > span {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #c0d6e1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics b {
  font-size: 28px;
  color: #eefbff;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-tabs {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #9bbed333;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-tabs button {
  min-width: 90px;
  min-height: 44px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-search {
  grid-column: 2;
  grid-row: 2;
  margin: 12px 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-search input {
  max-width: 320px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-content {
  grid-column: 2;
  grid-row: 3;
  overflow: auto;
  padding: 24px 0;
  min-width: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-content h2 {
  font-size: 22px;
  margin: 0 0 18px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-registration {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  margin-bottom: 28px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-registration small {
  display: block;
  margin-top: 16px;
  font-size: 13px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-live-badge {
  color: #56ecee;
  font-size: 12px;
  letter-spacing: 0.1em;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-start-progress {
  height: 4px;
  background: #325066;
  margin: 20px 0 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-start-progress i {
  height: 100%;
  display: block;
  background: #5ceef1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-grid > div {
  padding: 18px;
  border-bottom: 1px solid #b4d6e344;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-grid b {
  display: block;
  font-size: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-grid svg {
  width: 22px;
  height: 22px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row,
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result {
  display: grid;
  grid-template-columns: 32px 44px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid #8ebbd42e;
  box-shadow: none;
  border-radius: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row small,
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result small {
  display: block;
  color: #8eafc2;
  font-size: 11px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-row-avatar,
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row button {
  min-height: 44px;
  padding: 8px 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-watch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-watch-grid button {
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: start;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-watch-grid span {
  font-size: 12px;
  color: #aac6d4;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-empty {
  padding: 32px 8px;
  color: #a4c2d3;
  text-align: center;
  background: none;
  border: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-empty b {
  display: block;
  font-size: 20px;
  color: #eef7fc;
}
/* Rooms: owned tables first; creation/join are focused alternatives. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .play-room {
  min-height: 100%;
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  gap: 32px;
  padding: 32px max(28px, var(--safe-r));
  background: none;
  max-width: 1280px;
  margin: auto;
  align-content: start;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .mode-heading h1 {
  font-size: 38px;
  margin-top: 10px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-art {
  position: relative;
  min-height: 160px;
  height: auto;
  max-height: none;
  display: grid;
  place-items: center;
  overflow: visible;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-table-art {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .scene-cards {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-rivals {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-benefits {
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #9abccd;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-benefits svg {
  width: 15px;
  height: 15px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-setup {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-pages {
  display: flex;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #8fbbd233;
  grid-column: 1/-1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-pages button {
  min-height: 44px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-pages button[aria-pressed="true"] {
  color: #79f1f3;
  border-color: #78e4ef88;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-tables {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-tables > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-tables h2 {
  font-size: 22px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-list > article {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #99c5d233;
  box-shadow: none;
  background: none;
  border-radius: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-visual {
  width: 68px;
  height: 42px;
  flex: none;
  border-radius: 999px;
  background: radial-gradient(#207588, #0b3345);
  border: 4px solid #6d94a3;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-code {
  font-size: 18px;
  font-weight: 650;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-meta,
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-state {
  font-size: 12px;
  color: #a4c1d1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-actions {
  display: flex;
  gap: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-actions button {
  min-height: 44px;
  padding: 8px 14px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .new-table-console {
  border: 0;
  background: none;
  padding: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .new-table-console > summary {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .entry {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #8ebbd333;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-player > div {
  flex: 1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-player-name {
  font-size: 19px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-label {
  font-size: 10px;
  color: #aac4d4;
  display: block;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-profile {
  width: 44px;
  padding: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .opponents-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .opponent-counter {
  display: flex;
  align-items: center;
  gap: 18px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .opponent-counter button {
  width: 48px;
  padding: 8px;
  font-size: 22px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .opponent-counter > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #opponent-count {
  font-size: 32px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .opponent-counter small {
  font-size: 10px;
  letter-spacing: 0.08em;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ring-creation {
  padding: 16px 0;
  border: 0;
  border-top: 1px solid #8fb7cb33;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ring-creation[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ring-creation summary,
:root:root:is(#wpas-glass-scope, :root.glass-game) .ring-creation p {
  grid-column: 1/-1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) label {
  font-size: 12px;
  color: #b2cddb;
  display: block;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) label input,
:root:root:is(#wpas-glass-scope, :root.glass-game) label select {
  margin-top: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .join {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .join-heading {
  grid-column: 1/-1;
  font-size: 11px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .spectator {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .spectator input {
  margin: 0;
  width: 22px;
  height: 22px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .play-room[data-glass-room="tables"]
  .new-table-console,
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .play-room:not([data-glass-room="tables"])
  .owned-tables {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .play-room[data-glass-room="new"] .join,
:root:root:is(#wpas-glass-scope, :root.glass-game) .play-room[data-glass-room="new"] .spectator,
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .play-room[data-glass-room="join"]
  :is(.opponents-control, .ring-creation) {
  display: none;
}
/* Player HQ: one task at a time, larger identity and quiet statistics. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .feature-view {
  padding: 28px max(28px, var(--safe-r));
  max-width: 1100px;
  margin: auto;
  min-height: 100%;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .account-heading h1,
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-heading h1 {
  font-size: 36px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .account-heading {
  display: block;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-settings > details {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-settings summary {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-identity label {
  margin: 14px 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #avatars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #avatars button {
  padding: 3px;
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #avatars .avatar-art {
  height: 100%;
  width: 100%;
  border-radius: 50%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #avatars button.selected {
  border: 2px solid #55edf3;
  box-shadow: 0 0 0 3px #30c9dc33;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-card {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-license {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 28px;
  align-items: center;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-license-top {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  color: #9fbfce;
  font-size: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-license > .portrait {
  grid-row: span 3;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  overflow: hidden;
  background: linear-gradient(140deg, #c8eff8, #14556b);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-license h2 {
  font-size: 36px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-country {
  margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-xp-track {
  height: 6px;
  background: #152f42;
  border-radius: 6px;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-xp-track i {
  display: block;
  height: 100%;
  background: #48dfe8;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-xp > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .stat-grid {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .stat-grid > div {
  border-top: 1px solid #a6c7d63d;
  padding: 16px 0;
  background: none;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .stat-grid b {
  display: block;
  font-size: 34px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .stat-grid span {
  color: #a9c7d7;
  font-size: 13px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-achievements,
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-unranked {
  grid-column: 1/-1;
  font-size: 12px;
  color: #a2c6d4;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-achievements {
  display: flex;
  gap: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-achievements span {
  background: none;
  border: 0;
  padding: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-recent {
  border: 0;
  border-top: 1px solid #8bb7cc44;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 20px 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .history-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #8eb9cc22;
  font-size: 13px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ai-settings {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ai-console-heading {
  display: flex;
  gap: 16px;
  align-items: center;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ai-emblem {
  font-size: 30px;
  color: #8beef4;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ai-settings label {
  max-width: 280px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ai-settings p {
  margin: 0;
  color: #b1cbd9;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ai-settings button {
  align-self: start;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #ai-status {
  color: #6ce7ec;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .ai-settings small {
  font-size: 12px;
  line-height: 1.7;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-logout {
  align-self: start;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  #profile[data-glass-page="overview"]
  :is(#profile-settings, .ai-settings),
:root:root:is(#wpas-glass-scope, :root.glass-game)
  #profile[data-glass-page="edit"]
  :is(#profile-summary, .ai-settings, .profile-recent, .profile-logout),
:root:root:is(#wpas-glass-scope, :root.glass-game)
  #profile[data-glass-page="ai"]
  :is(#profile-summary, #profile-settings, .profile-recent, .profile-logout) {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-emblem {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-filters {
  display: flex;
  gap: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-results-heading {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #9fbfd0;
  padding: 10px 4px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result {
  grid-template-columns: 32px 48px minmax(0, 1fr) auto;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result > strong {
  font-size: 22px;
  color: #7feef2;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-empty {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  max-width: 620px;
  margin: auto;
  background: none;
  border: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-empty svg {
  width: 100px;
  height: 100px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-empty-copy h2 {
  font-size: 26px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .rank-footnote {
  font-size: 12px;
  color: #94b7c9;
  max-width: 65ch;
  margin-top: auto;
}
/* Table: retain shared seat geometry and cards; replace material and action hierarchy. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing > header,
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .main-nav {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing main {
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game {
  height: 100%;
  position: relative;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .game-header {
  background: none;
  box-shadow: none;
  border: 0;
  top: var(--safe-t);
  left: var(--safe-l);
  right: var(--safe-r);
  padding: 10px 18px;
  height: 54px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .game-brand {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game-room-title {
  font-size: 17px;
  font-weight: 600;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game-room-meta {
  font-size: 11px;
  color: #96bece;
  letter-spacing: 0.04em;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game-connection {
  color: #7ae4cf;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #table-menu {
  height: 44px;
  width: 48px;
  padding: 0;
  border-radius: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .arena {
  top: calc(52px + var(--safe-t));
  bottom: calc(88px + var(--safe-b));
  left: var(--safe-l);
  right: var(--safe-r);
  overflow: hidden;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .controls {
  position: absolute;
  bottom: var(--safe-b);
  left: 0;
  right: 0;
  width: calc(100% - 32px) !important;
  min-height: 78px;
  height: auto;
  margin: 0 auto !important;
  padding: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  box-shadow: var(--wg-shadow);
  background: var(--wg-surface);
  border: 1px solid #a9cce344;
  backdrop-filter: var(--wg-blur);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .controls > button {
  flex: 1;
  max-width: none;
  min-width: 0;
  min-height: 50px;
  height: auto;
  border-radius: 12px;
  font-size: 17px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .turn-status {
  flex: 0 0 210px;
  width: auto;
  color: #a7cfdb;
  display: flex;
  gap: 12px;
  align-items: center;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #turnlabel {
  font-size: 13px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #countdown {
  font-size: 11px;
  color: #9dbcca;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .clock {
  border: 1px solid #61cfdc88;
  background: #0e2c3a;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: #8df0f1;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .identity {
  background: #081c2be8 !important;
  border-color: #8ebdcc44 !important;
  box-shadow: 0 3px 10px #0004 !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .portrait {
  background: linear-gradient(150deg, #c7edf0, #2a6277 55%, #8ddce9) !important;
  box-shadow: 0 5px 15px #0005 !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.active .portrait {
  box-shadow:
    0 0 0 2px #73f5f0,
    0 0 18px #26d1df55 !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.empty {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  min-height: 0 !important;
  padding: 0 !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.empty .identity {
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.empty .portrait {
  background: #0b233855 !important;
  border: 1px dashed #8bb8c366;
  box-shadow: none !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.empty .identity strong {
  font-size: 11px;
  color: #96bccb;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.empty .identity .name {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.folded {
  opacity: 0.68;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat .stack {
  color: #eef9fc;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.self .name {
  color: #7eeef4;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .table-surface stop {
  stop-color: #0b4f60;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #wpLeather stop {
  stop-color: #1b3547;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #wpTrim stop {
  stop-color: #8fb8c7;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #wpEdge stop {
  stop-color: #152e40;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .felt-brand {
  opacity: 0.14;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .felt-brand span {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .card.blank {
  background: #06334333;
  border: 1px solid #aadbe32b;
  box-shadow: none;
  opacity: 1;
  border-radius: 5px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #phase {
  font-size: 10px;
  color: #a3c4d3;
  letter-spacing: 0.1em;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #pot {
  background: #092b3aeb;
  border: 1px solid #91d2de33;
  box-shadow: 0 3px 9px #0004;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .wager b {
  background: #092b3aeb;
  color: #ddf7fa;
  border: 1px solid #91d2de33;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 250px;
  height: 270px;
  transform: none;
  padding: 16px;
  grid-template-columns: minmax(0, 1fr) 56px;
  grid-template-rows: 80px 1fr;
  gap: 12px;
  border: 1px solid #afcfe066;
  border-radius: 16px;
  background: #0b2435ef;
  box-shadow: 0 12px 32px #0005;
  backdrop-filter: blur(20px);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-editor {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-editor > span {
  font-size: 10px;
  color: #a6c5d5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-editor input {
  width: 100%;
  font-size: 28px;
  line-height: 1;
  padding: 2px 6px;
  height: 42px;
  background: none;
  border: 0;
  color: #e9faff;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-editor small {
  font-size: 10px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-presets {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-presets button {
  min-height: 38px;
  height: 38px;
  padding: 5px;
  font-size: 12px;
  border-radius: 9px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #allin {
  grid-column: 1/-1;
  background: var(--wg-secondary);
  color: #e5f5fb;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-rail {
  grid-column: 2;
  grid-row: 1/3;
  background: none;
  border: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: 26px 6px;
  width: 44px;
  height: calc(100% - 52px);
  padding: 0;
  cursor: ns-resize;
  background: none;
  touch-action: none;
  transform: none;
  border: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.playing
  #raise-slider::-webkit-slider-runnable-track {
  width: 5px;
  border: 0;
  background: linear-gradient(to top, #54dfeb var(--rail-fill), #54788b var(--rail-fill));
  border-radius: 10px;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.playing
  #raise-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 24px;
  margin-left: -16px;
  border-radius: 8px;
  border: 1px solid #c2eff6;
  background: linear-gradient(#c8f4fa, #5ccbdc);
  box-shadow: 0 2px 8px #0005;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-slider::-moz-range-track {
  width: 5px;
  background: #54788b;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-slider::-moz-range-thumb {
  width: 38px;
  height: 24px;
  border-radius: 8px;
  background: #89e8f3;
  border: 1px solid #dbfaff;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-rail span {
  font-size: 10px;
  color: #a9c6d4;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-readout {
  display: none;
}
/* Menus are full-screen task surfaces, never another panel over a panel. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing :is(#table-tools, #player-profile) {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: #041523f7;
  backdrop-filter: blur(22px);
  box-shadow: none;
  z-index: 90;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) dialog::backdrop {
  background: #00111bbb;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome {
  padding: 22px max(28px, var(--safe-r)) 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  background: none;
  border: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading > div,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome > div {
  flex: 1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading h2,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome h2 {
  font-size: 30px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading small,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome small {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9fbfce;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading-icon,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome-icon {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #close-table-menu,
:root:root:is(#wpas-glass-scope, :root.glass-game) #close-player-profile {
  height: 46px;
  width: 46px;
  min-width: 46px;
  padding: 0;
  font-size: 26px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar {
  display: flex;
  gap: 8px;
  padding: 0 28px 16px;
  background: none;
  border: 0;
  flex: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar button {
  flex: 0 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar svg {
  width: 20px;
  height: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar [aria-selected="true"],
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-section-tabs [aria-selected="true"] {
  border-color: #7cecf0;
  color: #8af5f5;
  background: var(--wg-surface);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .table-menu-content {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 24px max(28px, var(--safe-r));
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #table-switcher,
:root:root:is(#wpas-glass-scope, :root.glass-game) #menu-seat,
:root:root:is(#wpas-glass-scope, :root.glass-game) #menu-settings,
:root:root:is(#wpas-glass-scope, :root.glass-game) #menu-tables {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #9ec1d0;
  margin-bottom: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #table-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #table-tabs > button {
  width: auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 90px;
  text-align: left;
  padding: 16px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .table-tab-icon {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .table-tab-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .table-tab-info small {
  color: #9abdcf;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-table-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-table-actions button {
  min-width: 180px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid #9cc9dc33;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting > div {
  flex: 1;
  min-width: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting strong {
  font-size: 17px;
  display: block;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting small {
  font-size: 12px;
  display: block;
  margin-top: 4px;
  color: #8fb2c6;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting-icon {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-toggle {
  min-width: 90px;
  max-width: 160px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-permission-note {
  font-size: 12px;
  color: #8eb5c9;
  margin-top: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-seat-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #menu-seat-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-seat-card > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #menu-seat-name {
  font-size: 28px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #menu-seat-stack {
  font-size: 22px;
  color: #75ebf1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #practice-menu {
  background: none;
  border: 0;
  padding: 24px 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #practice-menu h3 {
  font-size: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #practice-menu small {
  font-size: 10px;
  display: block;
  margin-top: 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .recent-hands {
  background: none;
  border: 0;
  border-top: 1px solid #8eb8cc33;
  padding: 20px 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-footer {
  padding: 12px 28px calc(12px + var(--safe-b));
  border: 0;
  border-top: 1px solid #9abfd233;
  background: none;
  flex: none;
  display: flex;
  align-items: center;
  gap: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer > span,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-footer > span {
  flex: 1;
  font-size: 12px;
  color: #a3c4d4;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer > div {
  display: flex;
  gap: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer button {
  min-width: 150px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) [data-menu-resume],
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-resume {
  background: var(--wg-primary);
  color: #002432;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-roster {
  padding: 0 28px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  border: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-players {
  display: flex;
  overflow: auto;
  gap: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-players button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  min-width: 74px;
  background: none;
  border-color: transparent;
  box-shadow: none;
  border-radius: 12px;
  font-size: 11px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-players button[aria-current="true"] {
  border-color: #65dce6;
  background: var(--wg-surface);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-players .avatar-art {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px 28px;
  max-width: 1100px;
  width: 100%;
  margin: auto;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-player-card,
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-record {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-hero-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-hero h3 {
  font-size: 30px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-hero {
  display: block;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-section-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat {
  padding: 12px 0;
  border: 0;
  border-top: 1px solid #8bb9cb44;
  background: none;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat strong {
  font-size: 32px;
  display: block;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat span {
  font-size: 12px;
  color: #a0c3d1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-trend-card {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 24px 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-results > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #8eb9cb33;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-status {
  display: grid;
  place-content: center;
  min-height: 200px;
  text-align: center;
  color: #a5c6d7;
}
/* Sign-in, loading and confirmation use the same quiet hierarchy. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body.player-entry {
  overflow: auto;
  min-height: 100dvh;
  height: auto;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) max(20px, var(--safe-r)) calc(24px + var(--safe-b))
    max(20px, var(--safe-l));
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.player-entry main {
  flex: none;
  width: min(440px, 100%);
  overflow: visible;
  margin: 0;
  padding: 30px;
  max-width: 440px;
  border-radius: 20px;
  min-height: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry .logo img {
  width: 210px;
  max-width: 100%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry h1 {
  font-size: 32px;
  margin: 32px 0 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry p {
  font-size: 14px;
  color: #aec9d8;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry label {
  margin: 24px 0 8px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry button {
  width: 100%;
  margin-top: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry small {
  font-size: 12px;
  line-height: 1.7;
  margin-top: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry #message:empty {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #route-loading {
  background: #031321;
  color: #c8e5f0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #route-loading .loading-brand {
  font-size: 36px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #route-loading a {
  color: #6ce5ed;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #delete-owned-table {
  padding: 28px;
  max-width: min(480px, calc(100% - 32px));
  border-radius: 18px;
  background: #0a2638f5;
  color: #e7f6fa;
  border: 1px solid #a3c8dc55;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #delete-owned-table h2 {
  font-size: 26px;
  margin: 10px 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #delete-owned-table > div {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #toast {
  border-radius: 12px;
  background: #0b2d3ced;
  color: #e4f7fa;
}
/* Human portraits retain the original account's avatar index. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url("/assets/mobile/classic-sheet-v1.webp") !important;
  background-size: 300% auto !important;
  background-position: var(--glass-avatar, 0% 12.5%) !important;
  background-repeat: no-repeat;
  border-radius: inherit;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="0"] {
  --glass-avatar: 0% 12.5%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="1"] {
  --glass-avatar: 50% 12.5%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="2"] {
  --glass-avatar: 100% 12.5%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="3"] {
  --glass-avatar: 0% 87.5%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="4"] {
  --glass-avatar: 50% 87.5%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="5"] {
  --glass-avatar: 100% 87.5%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="6"] {
  background-image: url("/assets/mobile/legacy-identities-v1.webp") !important;
  background-size: 300% auto !important;
  --glass-avatar: 0% 50%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art[data-avatar="7"] {
  background-image: url("/assets/mobile/legacy-identities-v1.webp") !important;
  background-size: 300% auto !important;
  --glass-avatar: 50% 50%;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body > header {
    height: calc(54px + var(--safe-t));
    padding-inline: 14px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .brand {
    width: 135px;
    height: 34px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
    font-size: 20px;
    min-width: 126px;
    padding: 6px 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav {
    margin: 10px 10px calc(10px + var(--safe-b));
    padding: 5px;
    min-height: 62px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav > button {
    font-size: 12px;
    gap: 6px;
    padding: 5px 3px;
    height: 48px;
  }

  :root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock > button {
    min-width: 72px;
    max-width: 220px;
    font-size: 13px;
    padding: 9px 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock > .join {
    max-width: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock input {
    width: 100px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail {
    grid-template-columns: 1fr;
    grid-template-rows: 130px 60px auto minmax(0, 1fr);
    padding: 0;
    gap: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero {
    grid-row: 1;
    grid-column: 1;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    background-size: cover !important;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero h1 {
    font-size: 25px;
    grid-column: 1;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-art-metrics {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics {
    gap: 12px;
    padding: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics > span {
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics b {
    font-size: 23px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-event-label {
    font-size: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-tabs {
    grid-column: 1;
    grid-row: 2;
    padding: 8px 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-tabs button {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-search {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    padding: 10px 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-content {
    grid-column: 1;
    grid-row: 4;
    padding: 20px 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-grid {
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-grid > div {
    padding: 12px 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-watch-grid {
    grid-template-columns: 1fr 1fr;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row {
    grid-template-columns: 22px 36px minmax(0, 1fr) auto;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row > strong {
    grid-column: 3;
    font-size: 13px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row button {
    grid-column: 4;
    grid-row: 1/3;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-row-avatar {
    width: 36px;
    height: 36px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-player-row small {
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .play-room {
    display: flex;
    flex-direction: column;
    padding: 22px 18px;
    gap: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .mode-heading h1 {
    font-size: 30px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .room-art {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .room-benefits {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .room-intro {
    gap: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-visual {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-list > article {
    gap: 8px;
    padding: 16px 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-actions {
    flex-direction: column;
    gap: 6px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .owned-table-actions button {
    font-size: 12px;
    padding: 6px 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-pages button {
    font-size: 13px;
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .feature-view {
    padding: 22px 18px;
    gap: 20px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .account-heading h1,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .rank-heading h1 {
    font-size: 30px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-license {
    grid-template-columns: 96px 1fr;
    gap: 10px 18px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-license > .portrait {
    width: 96px;
    height: 96px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-license h2 {
    font-size: 29px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #avatars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result {
    grid-template-columns: 22px 40px minmax(0, 1fr) auto;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result > strong {
    font-size: 20px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .rank-result-avatar {
    width: 40px;
    height: 40px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .rank-empty {
    gap: 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .rank-empty svg {
    width: 70px;
    height: 70px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .history-row {
    flex-wrap: wrap;
    font-size: 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .arena {
    top: 0;
    bottom: calc(102px + var(--safe-b));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .game-header {
    padding: 6px 12px;
    height: 50px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #game-room-title {
    font-size: 15px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #game-room-meta {
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .controls {
    width: calc(100% - 16px) !important;
    min-height: 92px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .turn-status {
    grid-column: 1/-1;
    min-width: 0;
    display: flex;
    width: 100%;
    gap: 8px;
    height: 22px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .clock {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .turn-status > div:last-child {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #turnlabel {
    font-size: 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #countdown {
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .controls > button {
    min-height: 44px;
    font-size: 14px;
    padding: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-panel {
    width: 212px;
    height: 252px;
    padding: 12px;
    gap: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-editor input {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-readout {
    display: block;
    font-size: 30px;
    line-height: 1.2;
    color: #e8faff;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-presets button {
    font-size: 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    > .local-hand {
    left: calc(50% + 46px);
    top: 82%;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    .seat.self[data-slot="0"] {
    left: 50%;
    top: 89%;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    #seats
    .seat.self
    .portrait {
    width: 78px;
    height: 78px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome {
    padding: calc(14px + var(--safe-t)) 16px 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading h2,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome h2 {
    font-size: 26px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar {
    padding: 0 16px 14px;
    gap: 6px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar button {
    font-size: 13px;
    gap: 6px;
    padding: 8px;
    flex: 1;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .table-menu-content {
    padding: 18px 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #table-tabs {
    grid-template-columns: 1fr;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #table-tabs > button {
    min-height: 76px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-table-actions button {
    min-width: 0;
    flex: 1;
    padding: 10px;
    font-size: 13px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-settings-grid {
    grid-template-columns: 1fr;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting {
    padding: 18px 0;
    gap: 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting strong {
    font-size: 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting small {
    font-size: 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-toggle {
    font-size: 12px;
    max-width: 130px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-footer {
    padding: 10px 16px calc(10px + var(--safe-b));
    flex-wrap: wrap;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer > span,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-footer > span {
    flex: 1 1 100%;
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer > div {
    width: 100%;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer button {
    flex: 1;
    min-width: 0;
    font-size: 14px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-roster {
    padding: 0 12px 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #profile-content {
    padding: 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-player-card {
    display: flex;
    gap: 16px;
    align-items: center;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-hero-avatar {
    width: 88px;
    height: 88px;
    flex: none;
    margin: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-hero h3 {
    font-size: 25px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat-grid {
    gap: 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat strong {
    font-size: 28px;
  }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body > header {
    height: calc(42px + var(--safe-t));
    padding-inline: max(14px, var(--safe-l));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .brand {
    width: 132px;
    height: 32px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
    font-size: 18px;
    min-width: 125px;
    padding: 4px 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav {
    margin: 6px max(12px, var(--safe-r)) calc(6px + var(--safe-b)) max(12px, var(--safe-l));
    min-height: 54px;
    padding: 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav > button {
    height: 44px;
    font-size: 13px;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .play-room {
    padding: 18px 22px;
    gap: 24px;
    grid-template-columns: 28% 1fr;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .mode-heading h1 {
    font-size: 28px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .room-art {
    min-height: 80px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .room-benefits {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .feature-view {
    padding: 18px 24px;
    gap: 16px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .account-heading h1,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .rank-heading h1 {
    font-size: 28px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail {
    gap: 0 20px;
    padding-right: 20px;
    grid-template-rows: 56px auto minmax(0, 1fr);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero {
    padding: 18px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero h1 {
    font-size: 28px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics b {
    font-size: 23px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-metrics span {
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-content {
    padding: 18px 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-grid > div {
    padding: 10px 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .game-header {
    height: 38px;
    padding: 4px 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #game-room-title {
    font-size: 13px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #game-room-meta {
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #table-menu {
    height: 36px;
    min-height: 36px;
    width: 42px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .arena {
    top: calc(34px + var(--safe-t));
    bottom: calc(60px + var(--safe-b));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .controls {
    width: calc(100% - 16px) !important;
    padding: 6px;
    gap: 8px;
    min-height: 54px;
    border-radius: 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .turn-status {
    flex-basis: 180px;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #turnlabel {
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #countdown {
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .clock {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .controls > button {
    min-height: 40px;
    font-size: 14px;
    padding: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-panel {
    position: fixed;
    right: calc(8px + var(--safe-r));
    bottom: calc(62px + var(--safe-b));
    height: min(238px, calc(100dvh - 110px));
    width: 208px;
    padding: 10px;
    gap: 8px;
    grid-template-columns: 1fr 52px;
    grid-template-rows: 62px 1fr;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-editor input {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-readout {
    display: block;
    font-size: 28px;
    color: #e4faff;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-presets {
    gap: 5px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .raise-presets button {
    min-height: 30px;
    height: 30px;
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="landscape"]
    > .local-hand {
    left: calc(50% + 42px);
    top: 75%;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome {
    padding: calc(8px + var(--safe-t)) 20px 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading h2,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome h2 {
    font-size: 23px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar {
    padding: 0 20px 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-tab-bar button {
    min-height: 40px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .table-menu-content {
    padding: 14px 20px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-footer {
    padding: 8px 20px calc(8px + var(--safe-b));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer button,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-footer button {
    min-height: 40px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-setting {
    padding: 14px 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-roster {
    padding: 0 20px 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #profile-players .avatar-art {
    width: 34px;
    height: 34px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #profile-players button {
    min-width: 64px;
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #profile-content {
    padding: 14px 20px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-layout {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-hero-avatar {
    width: 90px;
    height: 90px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-hero h3 {
    font-size: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.player-entry main {
    max-width: 760px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 28px;
    padding: 20px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry .logo,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry h1,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry main > p:not(#message),
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry small {
    grid-column: 1;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry h1 {
    margin: 8px 0;
    font-size: 28px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry form {
    grid-column: 2;
    grid-row: 1/4;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry label {
    margin: 0 0 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry main > button {
    grid-column: 2;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry small {
    margin: 8px 0;
    font-size: 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry #message {
    grid-column: 1/-1;
    margin: 0;
  }
}
@media (orientation: landscape) and (max-height: 350px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading small,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-chrome small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) * {
    scroll-behavior: auto !important;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) [data-sheen="play"]::after {
    animation: none !important;
  }
}
/* Neutralize legacy decorative layers; the approved material owns these surfaces. */

:root:root:is(#wpas-glass-scope, :root.glass-game)
  .screen-dock[data-glass-flow="tables"]
  :is(#practice, #create, #join),
:root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock[data-glass-flow="new"] #join,
:root:root:is(#wpas-glass-scope, :root.glass-game) .screen-dock[data-glass-flow="join"] #create {
  display: none !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .screen-dock[data-glass-flow="overview"]
  :is(#save-profile, #ai-enable, #ai-stop, #ai-watch),
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .screen-dock[data-glass-flow="edit"]
  :is(#ai-enable, #ai-stop, #ai-watch),
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .screen-dock[data-glass-flow="ai"]
  #save-profile {
  display: none !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .owned-tables > header {
  padding: 0;
}
.glass-game .owned-table-visual img,
.glass-game .owned-table-visual span {
  display: none;
}

:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game {
  display: block;
  padding: 0;
  min-height: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .arena {
  position: absolute;
  min-height: 0;
  margin: 0;
  padding: 0;
  max-width: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #next-move {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
  margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #next-move button {
  flex: 1;
  min-height: 46px;
  height: auto;
  padding: 8px 12px;
  font-size: 14px;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #next-move {
    grid-column: 1/-1;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #next-move button {
    min-height: 44px;
    font-size: 12px;
    padding: 6px;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing {
  background:
    radial-gradient(ellipse at 50% 45%, #0b354a 0%, transparent 75%),
    linear-gradient(145deg, #071c2c, #020b16) !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .dealer-marker {
  position: absolute;
  left: var(--dealer-x);
  top: var(--dealer-y);
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d7eff3;
  color: #173543;
  box-shadow: 0 3px 7px #0005;
  z-index: 5;
  font-size: 13px;
  font-weight: 700;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #actions {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 10px;
  align-items: center;
  margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #actions > button {
  flex: 1;
  min-height: 50px;
  font-size: 17px;
  padding: 10px;
  border-radius: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .menu-heading {
  height: auto;
  min-height: 92px;
}
.glass-game .menu-heading > div {
  width: auto;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #table-tabs > button {
  flex-direction: row;
  justify-content: flex-start;
  letter-spacing: 0;
  background: var(--wg-surface);
  border: 1px solid #94c9dd55;
  border-radius: 14px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #table-tabs > button .table-tab-name {
  font-size: 17px;
  letter-spacing: 0;
  display: block;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #actions {
    grid-column: 1/-1;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #actions > button {
    min-height: 44px;
    font-size: 14px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .dealer-marker {
    left: var(--dealer-mobile-x);
    top: var(--dealer-mobile-y);
  }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #actions > button {
    min-height: 40px;
    font-size: 14px;
  }
  .glass-game .menu-heading {
    min-height: 60px;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) button.wg-button {
  background: var(--wg-secondary);
  color: var(--wg-text);
  border: 1px solid #a8cae152;
  box-shadow: var(--wg-shadow);
  backdrop-filter: var(--wg-blur);
  -webkit-backdrop-filter: var(--wg-blur);
  font-weight: 550;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) button.wg-button--primary {
  background: var(--wg-primary);
  color: #002434;
  font-weight: 650;
}

:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .arena {
  height: auto !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .game-header {
  min-height: 0;
  max-height: 54px;
  height: 54px;
  display: flex;
  margin: 0;
  position: absolute;
  top: var(--safe-t);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .controls #actions {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .controls #actions > button {
  flex: 1;
  min-width: 0;
  max-width: none;
  width: auto;
  min-height: 50px;
  height: 50px;
  padding: 10px;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .game-header {
    height: 50px;
    max-height: 50px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .controls #actions {
    grid-column: 1/-1 !important;
    grid-row: 2 !important;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .controls #actions > button {
    min-height: 44px;
    height: 44px;
    font-size: 14px;
    padding: 8px;
  }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .game-header {
    height: 38px;
    max-height: 38px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .controls #actions > button {
    min-height: 40px;
    height: 40px;
    font-size: 14px;
    padding: 8px;
  }
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    .rail
    > .table-surface {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    .rail {
    border-radius: 999px;
    background: linear-gradient(120deg, #91b9c7, #213e50 18%, #142e40 80%, #6a99ab);
    box-shadow:
      0 8px 20px #0008,
      inset 0 0 0 3px #071b29;
    overflow: hidden;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    .felt {
    inset: 14px;
    border-radius: 999px;
    background: radial-gradient(ellipse at 48% 44%, #155366, #0a3446);
    box-shadow:
      inset 0 0 0 2px #081e2e,
      inset 0 12px 26px #001b2d66;
    overflow: hidden;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    .felt::after {
    content: "";
    position: absolute;
    inset: 14% 10%;
    border-radius: 999px;
    border: 1px solid #88c7cd55;
    pointer-events: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    .seat.self {
    flex-direction: column;
    width: 120px;
    height: 120px;
    align-items: center;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    .seat.self
    .identity {
    width: 114px;
    min-height: 38px;
    height: auto;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin: 4px 0 0;
    padding: 2px 4px;
    border: 0;
    border-radius: 7px;
    background: #061e2bba !important;
    box-shadow: none !important;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.self .identity .stack {
    font-size: 19px;
    line-height: 1.15;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.folded {
  opacity: 0.8;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .seat.folded .portrait {
  opacity: 0.72;
  filter: grayscale(0.4);
}
/* Player record: identity and record are separate unframed columns, with scrollable results. */
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-content {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-content: start;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-player-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  height: auto;
  overflow: visible;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  padding: 4px;
  background: linear-gradient(140deg, #b8e6f0, #1b556d);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-player-kind {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #96c1d2;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-player-name {
  font-size: 30px;
  overflow-wrap: anywhere;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-player-card p {
  margin: 0;
  color: #9fc1d1;
  font-size: 13px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-level-chip {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #6de8ed;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  margin-top: 12px;
}
.glass-game .profile-milestones small {
  width: 100%;
  font-size: 10px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-record-scope {
  font-size: 11px;
  line-height: 1.6;
  color: #86aabd;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-data {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: auto;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-data-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid #a6cada33;
}
.glass-game .profile-data-tabs button {
  min-width: 120px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-data-scroll {
  overflow: visible;
  height: auto;
  padding: 20px 0 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat {
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #8ebed033;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stat b {
  font-size: 32px;
  font-weight: 600;
}
.glass-game .profile-stat span {
  font-size: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-trend-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.glass-game .profile-trend-heading h4 {
  font-size: 16px;
  margin: 0;
}
.glass-game .profile-trend-heading > span {
  font-size: 10px;
  color: #8eb1c6;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-trend {
  display: block;
  width: 100%;
  height: 110px;
}
.glass-game .profile-trend-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .profile-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.glass-game .profile-results-heading select {
  max-width: 160px;
}
.glass-game .profile-results-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #91b8ca;
  padding: 16px 0;
}
.glass-game .profile-results small {
  font-size: 11px;
  display: block;
}
.glass-game .profile-record-note {
  font-size: 10px;
  color: #8db6c7;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-player-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 6px 16px;
    align-items: center;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-avatar {
    grid-column: 1;
    grid-row: 1/5;
    width: 84px;
    height: 84px;
  }
  .glass-game .profile-player-kind,
  .glass-game #profile-player-name,
  .glass-game .profile-player-card > p,
  .glass-game .profile-level-chip {
    grid-column: 2;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #profile-player-name {
    font-size: 24px;
  }
  .glass-game .profile-milestones,
  .glass-game .profile-record-scope {
    grid-column: 1/-1;
  }
  .glass-game .profile-milestones {
    margin-top: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .profile-stats {
    gap: 12px;
  }
  .glass-game .profile-stat b {
    font-size: 27px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    #seats
    .seat.self
    .portrait {
    position: relative;
    inset: auto;
    margin: 0;
    width: 78px;
    height: 78px;
    flex: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    #seats
    .seat.self
    .identity {
    position: static;
    inset: auto;
    transform: none;
    flex: none;
    margin: 4px 0 0;
    padding: 2px 4px;
    min-width: 0;
  }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #profile-content {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }
  .glass-game .profile-avatar {
    width: 96px;
    height: 96px;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header .status {
  display: flex !important;
  min-width: 0;
  flex: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
  display: flex !important;
  align-items: center;
  gap: 0;
}

@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
    min-width: 126px;
  }
}

:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero {
  background-size: cover !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .tournament-spec-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 4px;
}
.glass-game .tournament-spec-heading > span {
  font-size: 11px;
  color: #8fb5c9;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .tournament-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .tournament-spec-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid #9fc6d333;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .tournament-spec-grid > div > span {
  display: none;
}
.glass-game .tournament-spec-grid small {
  font-size: 12px;
  color: #9ebed0;
}
.glass-game .tournament-spec-grid strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}
.glass-game .tournament-spec-grid em {
  display: block;
  font-size: 11px;
  font-weight: 400;
  font-style: normal;
  color: #91b2c4;
  margin-top: 4px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .tournament-cycle,
:root:root:is(#wpas-glass-scope, :root.glass-game) .tournament-champion {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #92bfd02b;
}
.glass-game .tournament-cycle > span,
.glass-game .tournament-champion > span {
  display: none;
}
.glass-game .tournament-cycle p {
  font-size: 12px;
  margin: 5px 0 0;
  color: #9bbdd0;
}
.glass-game .tournament-cycle strong {
  font-size: 15px;
  font-weight: 550;
}
.glass-game .tournament-champion small {
  display: block;
  font-size: 10px;
  margin-bottom: 6px;
}
.glass-game .tournament-champion strong {
  font-size: 16px;
  font-weight: 550;
}
.glass-game .region-detail-note {
  font-size: 11px;
  color: #83a9c0;
  line-height: 1.7;
  margin-top: 22px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #store {
  max-width: 1100px;
}
.glass-game .store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.glass-game .store-grid article {
  background: none;
  border: 0;
  border-top: 1px solid #9ac5d233;
  padding: 22px 0;
  box-shadow: none;
}
.glass-game .store-grid h2 {
  font-size: 22px;
}
.glass-game .store-grid p {
  font-size: 13px;
  color: #9ebed0;
}
@media (orientation: portrait) {
  .glass-game .store-grid {
    grid-template-columns: 1fr;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #avatars > button {
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1;
  padding: 3px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #avatars > button > .avatar-art {
  width: 100%;
  height: 100%;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .play-room[data-glass-room="join"]
  .console-player {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-player > span.console-label {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .console-player > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #global-ranks,
:root:root:is(#wpas-glass-scope, :root.glass-game) #country-ranks {
  background: var(--wg-secondary);
  color: #d9edf4;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #global-ranks[aria-pressed="true"],
:root:root:is(#wpas-glass-scope, :root.glass-game) #country-ranks[aria-pressed="true"] {
  background: var(--wg-primary);
  color: #002432;
}
@media (orientation: landscape) and (max-height: 430px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .play-room .room-art {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .console-player {
    padding-bottom: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .entry {
    gap: 14px;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #fold,
:root:root:is(#wpas-glass-scope, :root.glass-game) #call {
  background: var(--wg-secondary);
  border: 1px solid #a4cde352;
  color: #edf7fc;
  box-shadow: var(--wg-shadow);
  border-radius: 12px;
  text-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #bet {
  background: var(--wg-primary);
  border: 1px solid #b2faff80;
  color: #002432;
  box-shadow: var(--wg-shadow);
  border-radius: 12px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #allin {
  background: var(--wg-secondary);
  color: #e9f7fb;
}
@media (orientation: portrait), (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #raise-panel #raise {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #raise-panel #raise-readout {
    display: block;
    font-size: 28px;
    color: #e6faff;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #raise-panel #raise-readout {
  position: static;
  inset: auto;
  transform: none;
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  min-height: 34px;
  color: #e9faff;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #raise-panel .raise-editor {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  gap: 2px;
  height: auto;
  min-height: 0;
  padding: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #raise-panel .raise-editor small {
  position: static;
  inset: auto;
  order: 3;
  line-height: 1.2;
  margin: 0;
  font-size: 9px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #close-raise {
  position: absolute;
  left: -38px;
  right: auto;
  top: 6px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: var(--wg-shadow);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .seat.empty::before,
:root:root:is(#wpas-glass-scope, :root.glass-game) .seat.empty::after {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game #actions > button {
  border-radius: 12px;
  background: var(--wg-secondary);
  border: 1px solid #a4cde352;
  color: #edf7fc;
  box-shadow: var(--wg-shadow);
  font-size: 17px;
  font-weight: 550;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game #actions > button#bet {
  background: var(--wg-primary), var(--wg-refraction, linear-gradient(transparent, transparent)) !important;
  border: 1px solid #99b8ee4d !important;
  border-color: var(--wg-primary-border) !important;
  color: var(--wg-primary-ink) !important;
  font-size: 17px;
  font-weight: 650;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #countdown {
  display: block;
}
@media (orientation: portrait), (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #game #actions > button,
  :root:root:is(#wpas-glass-scope, :root.glass-game) #game #actions > button#bet {
    font-size: 14px;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-entry .logo .wpas-mark {
  filter: invert(1);
  mix-blend-mode: screen;
  width: 210px;
  height: auto;
}

:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing .table-stage > .rail {
  width: auto !important;
  height: auto !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .table-stage[data-mode="landscape"]
  .rail
  > .table-surface {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .table-stage[data-mode="landscape"]
  .rail
  > .table-surface-landscape {
  display: block;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #route-loading .loading-brand {
  display: block;
  width: min(60vw, 280px);
  height: auto;
  line-height: 0;
  margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #route-loading .wpas-mark {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #route-status {
  margin: 22px 16px 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #route-loading a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 13px;
  text-decoration: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .seat.self {
  opacity: 1;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    #seats
    .seat.self
    .identity {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 114px;
    min-width: 0;
    opacity: 1;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    #seats
    .identity
    .name {
    font-size: calc(11px / var(--stage-scale, 1));
    line-height: 1.2;
    color: #d3e9f0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.playing
    .table-stage[data-mode="phone"]
    #seats
    .identity
    .stack {
    font-size: calc(15px / var(--stage-scale, 1));
    line-height: 1.2;
  }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #seats .identity .name {
    font-size: calc(10px / var(--stage-scale, 1));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #seats .identity .stack {
    font-size: calc(13px / var(--stage-scale, 1));
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .win-celebration {
  background: var(--wg-secondary);
  border: 1px solid #a4d2e377;
  backdrop-filter: var(--wg-blur);
  -webkit-backdrop-filter: var(--wg-blur);
  box-shadow: var(--wg-shadow);
  color: #e9faff;
  border-radius: 14px;
  text-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .win-celebration > span {
  background: #61e4ef18;
  color: #8ceff3;
  border-color: #90dbe455;
  box-shadow: none;
  text-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .win-celebration b {
  color: #eefbff;
  text-shadow: none;
}
.glass-game .win-celebration small {
  color: #aacbd8;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .seat.winner .portrait {
  box-shadow:
    0 0 0 2px #9fe9f0,
    0 0 18px #64d6e455 !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .card-winning {
  outline-color: #a8f1f5;
  box-shadow:
    0 0 0 1px #c0fbff55,
    0 5px 13px #001b2e80;
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer > div {
    flex: 1;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .menu-footer button {
    min-width: 0;
    flex: 1 1 100px;
    font-size: 12px;
    padding: 8px 12px;
  }
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    #game
    .table-stage[data-mode="phone"]
    #seats
    .seat.self {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    width: 120px;
    height: 120px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    #game
    .table-stage[data-mode="phone"]
    #seats
    .seat.self
    .portrait {
    order: 0;
    flex: none;
    inset: auto;
    margin: 0;
    width: 78px;
    height: 78px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    #game
    .table-stage[data-mode="phone"]
    #seats
    .seat.self
    .identity {
    position: static !important;
    inset: auto;
    transform: none !important;
    order: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin: 4px 0 0 !important;
    padding: 2px 4px !important;
    width: 114px;
    min-width: 0;
    height: auto;
    min-height: 38px;
    border-radius: 7px;
    border: 0;
    background: #061e2bba !important;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    #game
    .table-stage[data-mode="phone"]
    > .local-hand {
    left: calc(50% + 60px);
    top: 82%;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game .win-celebration {
  background: var(--wg-secondary);
  border: 1px solid #a4d2e377;
  box-shadow: var(--wg-shadow);
  color: #e9faff;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #game .win-celebration b {
  color: #edfaff;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    #game
    .table-stage[data-mode="phone"]
    #seats
    .seat.self
    .portrait {
    transform: none !important;
  }
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .player-entry
  .logo
  .wpas-mark[data-glass-logo-src] {
  filter: none;
  mix-blend-mode: normal;
}

/* Lobby composition: poster cards in landscape, compact rows only in portrait.
   One frame per card. Facts are unframed; buttons use the approved glass material. */
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby {
  height: 100%;
  min-height: 0;
  padding: 0 16px 0;
  overflow: hidden;
  background: none;
  clip-path: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .regional-stage {
  --profile-width: clamp(190px, 20.5vw, 270px);
  height: 100%;
  display: grid;
  grid-template-columns: var(--profile-width) minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  min-height: 0;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: calc(100% - 42px);
  margin-top: 42px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  clip-path: none;
  overflow: hidden;
  border-radius: 14px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player::after {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  box-shadow: none;
  clip-path: none;
  color: inherit;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-avatar {
  width: clamp(130px, 13.4vw, 178px);
  height: clamp(130px, 13.4vw, 178px);
  flex: none;
  display: block;
  padding: 5px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #edfbff, #82c9df 30%, #153f57 65%, #c1f5ff);
  box-shadow: 0 5px 16px #0008;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player strong,
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-name {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #f0f9ff;
  max-width: 100%;
  overflow-wrap: anywhere;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-level {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: 0.1em;
  color: #59eff3;
  border: 1px solid #49c9da66;
  border-radius: 5px;
  padding: 5px 10px;
  text-transform: uppercase;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player-progress {
  display: block;
  width: 100%;
  max-width: 184px;
  height: 8px;
  border-radius: 8px;
  margin: 0;
  background: #00101c;
  box-shadow: inset 0 0 0 1px #86bed459;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0bc3d9, #5ffbff);
  box-shadow: 0 0 12px #27e8f2;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .player-profile-cta {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 10px 6px;
  border-radius: 10px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-season {
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #9ec8dd55;
  text-align: center;
  color: #cadce6;
  font-size: 13px;
  line-height: 1.5;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-season strong {
  display: block;
  margin-bottom: 8px;
  color: #d9edf7;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .regional-carousel {
  position: relative;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-navigation {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots {
  grid-column: 1;
  grid-row: 1;
  position: static;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0;
  padding: 0 3px 5px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button {
  position: relative;
  flex: 1 0 auto;
  min-width: 44px;
  max-width: none;
  width: auto;
  height: 37px;
  min-height: 0;
  padding: 8px 9px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #d4e3ec;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  clip-path: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button::before {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button::after {
  content: "";
  position: absolute;
  inset: auto 8px 0;
  height: 3px;
  border-radius: 3px;
  background: transparent;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button[aria-current="true"] {
  color: #3fecf2;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button[aria-current="true"]::after {
  background: #31e0ef;
  box-shadow: 0 0 9px #22d7ec77;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #regional-tournaments {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  background: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-card,
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final {
  position: relative;
  isolation: isolate;
  flex: 0 0 calc((100% - 24px) / 3);
  min-width: 240px;
  height: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 14px 14px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(96px, 1fr) 52px 26px 52px;
  gap: 0;
  clip-path: none;
  transform: none;
  overflow: hidden;
  border-radius: 14px;
  background: var(--wg-surface);
  scroll-snap-align: start;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-card::after {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-art,
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  border-radius: 0;
  clip-path: none;
  transform: none;
  filter: none;
  background: none;
}

:root:root:is(#wpas-glass-scope, :root.glass-game) .region-art::after,
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #00101f77,
    transparent 25%,
    transparent 58%,
    #00101fed 77%,
    #00101ff5
  );
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-art img {
  display: none;
}

:root:root:is(#wpas-glass-scope, :root.glass-game) .region-top {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-body {
  display: contents;
  padding: 0 !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-series {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  color: #e5eff5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-align: center;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-series svg {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-body h2,
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final h2 {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 31px;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.02;
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 750;
  letter-spacing: -0.025em;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-open {
  display: block !important;
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: none !important;
  color: #fff !important;
  font: inherit !important;
  line-height: 1.02 !important;
  text-align: center;
  white-space: normal;
  text-transform: uppercase;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-open > span:not(.glass-event-suffix) {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-suffix {
  display: inline;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts {
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 100%;
  color: #eefaff;
  font-variant-numeric: tabular-nums;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 7px;
  align-items: center;
  padding: 0 9px;
  min-width: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts > span + span {
  border-left: 1px solid #aecbd966;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-chip {
  width: 28px;
  height: 28px;
  display: block;
  grid-row: 1/4;
  color: #8bdef0;
  flex: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts small {
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #e0ecf4;
  white-space: nowrap;
  text-transform: uppercase;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts strong {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats {
  grid-row: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0 2px;
  font-size: 10px;
  color: #bbd4e1;
  line-height: 1.15;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats > span {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats b {
  color: #58eced;
  font-size: 11px;
  font-weight: 600;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats [data-region-timer]::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #30e1dc;
  box-shadow: 0 0 7px #28e7e755;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats [data-region-clock-label] {
  font-size: 9px;
  line-height: 1.2;
  color: #a8cadb;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-capacity,
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-winner {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions {
  position: static;
  grid-row: 4;
  display: flex;
  gap: 6px;
  width: 100%;
  min-height: 0;
  padding: 0;
  margin: 0 !important;
  overflow: visible;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  height: 100%;
  font-size: 18px;
  font-weight: 650;
  padding: 8px;
  border-radius: 10px;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions button.withdraw {
  flex: 1;
  font-size: 12px;
  padding: 6px 3px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .region-actions
  button[data-region-enter]:disabled {
  font-size: 12px;
  padding: 6px 4px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final-art {
  background-image: url("/assets/mobile/all-star-v1.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #00101f;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final p {
  grid-row: 2;
  align-self: center;
  margin: 0;
  color: #e5f1f7;
  font-size: 13px;
  text-align: center;
  line-height: 1.3;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final p br {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final small {
  grid-row: 3;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #79ebed;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final button {
  grid-row: 4;
  min-height: 44px;
  font-size: 18px;
  font-weight: 650;
  border-radius: 10px;
  color: #001827;
  --wg-secondary: linear-gradient(165deg, #c8eaffbd, #66b0d9c7);
}
/* Match the reference shell without applying its geometry to game menus. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header {
  height: calc(66px + var(--safe-t));
  padding-left: max(24px, var(--safe-l));
  padding-right: max(24px, var(--safe-r));
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .brand {
  width: 180px;
  height: 48px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen header .status {
  position: relative;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
  position: relative;
  min-width: 180px;
  height: 54px;
  padding: 6px 17px 18px 56px;
  font-size: 24px;
  line-height: 1.1;
  text-align: right;
  border-radius: 12px;
  letter-spacing: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 11px;
  width: 31px;
  height: 31px;
  margin: 0;
  background: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%231588b0' stroke='%23c7f4ff' stroke-width='1.5'/%3E%3Ccircle cx='16' cy='16' r='10' fill='none' stroke='%23e1faff' stroke-width='5' stroke-dasharray='5 5.5'/%3E%3Ccircle cx='16' cy='16' r='6' fill='%239be4ed'/%3E%3C/svg%3E");
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::after {
  content: "CHIPS";
  position: absolute;
  right: 17px;
  bottom: 6px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #d2e5ee;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen header .status > i {
  display: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav {
  height: 76px;
  min-height: 0;
  margin: 10px max(28px, var(--safe-r)) calc(28px + var(--safe-b)) max(28px, var(--safe-l));
  padding: 8px 11px;
  border-radius: 15px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav > button {
  position: relative;
  height: 58px;

  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  gap: 14px;
}

:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-play-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
  border-left: 1px solid #aecddd55;
  font-size: 9px;
  color: #97c3da;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-play-note::before {
  content: "ⓘ";
  font-size: 20px;
  line-height: 1;
  color: #a0e8f2;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body:not(.lobby-screen) .glass-play-note,
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.lobby-screen
  .main-nav:has(.screen-dock:not([hidden]))
  .glass-play-note {
  display: none;
}
/* A short landscape is a scaled poster composition, never a split row. */
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby {
    padding: 0 max(12px, var(--safe-r)) 0 max(12px, var(--safe-l));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-stage {
    --profile-width: clamp(128px, 20vw, 240px);
    gap: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-carousel {
    grid-template-rows: 32px minmax(0, 1fr);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
    height: calc(100% - 32px);
    margin-top: 32px;
    padding: 12px;
    justify-content: center;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
    gap: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-avatar {
    width: clamp(72px, 22vh, 132px);
    height: clamp(72px, 22vh, 132px);
    padding: 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player strong,
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-name {
    font-size: clamp(22px, 5.2vh, 30px);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-level {
    font-size: 10px;
    padding: 3px 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player-progress {
    height: 6px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-profile-cta {
    min-height: 38px;
    font-size: 10px;
    padding: 8px 5px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-season {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-season strong {
    font-size: 11px;
    margin-bottom: 5px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots {
    padding-bottom: 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button {
    font-size: 8px;
    height: 28px;
    padding: 5px 6px;
    min-width: 36px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-card,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final {
    min-width: 180px;
    padding: 10px 9px 9px;
    grid-template-rows: minmax(74px, 1fr) 40px 23px 42px;
    border-radius: 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-art::after,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final-art::after {
    background: linear-gradient(
      180deg,
      #00101f55,
      transparent 25%,
      transparent 40%,
      #00101fd9 56%,
      #00101ff5 78%
    );
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-series {
    top: 9px;
    font-size: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-body h2,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final h2 {
    top: 23px;
    left: 6px;
    right: 6px;
    font-size: clamp(17px, 2.3vw, 29px);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts > span {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0 4px;
    padding: 0 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-chip {
    width: 20px;
    height: 20px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts small {
    font-size: 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts strong {
    font-size: 17px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats {
    font-size: 8px;
    gap: 3px;
    padding: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats b {
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats [data-region-clock-label] {
    font-size: 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats [data-region-timer]::before {
    width: 4px;
    height: 4px;
    margin-right: 3px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions button,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final button {
    font-size: 14px;
    min-height: 42px;
    padding: 6px;
    border-radius: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions button.withdraw {
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final p {
    font-size: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final small {
    font-size: 8px;
    letter-spacing: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header {
    height: calc(46px + var(--safe-t));
    padding-left: max(16px, var(--safe-l));
    padding-right: max(16px, var(--safe-r));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .brand {
    width: 148px;
    height: 38px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
    min-width: 142px;
    height: 38px;
    font-size: 19px;
    padding: 3px 12px 13px 43px;
    border-radius: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::before {
    left: 10px;
    top: 7px;
    width: 24px;
    height: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::after {
    right: 12px;
    bottom: 4px;
    font-size: 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav {
    height: 56px;
    margin: 8px max(16px, var(--safe-r)) calc(10px + var(--safe-b)) max(16px, var(--safe-l));
    padding: 5px 7px;
    border-radius: 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav > button {
    height: 44px;
    font-size: 11px;
    gap: 8px;
  }

  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-play-note {
    font-size: 7px;
    gap: 6px;
    padding: 0 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-play-note::before {
    font-size: 15px;
  }
}
@media (orientation: landscape) and (max-height: 450px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-season {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
    gap: 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
    padding: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-avatar {
    width: 82px;
    height: 82px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-level {
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-profile-cta {
    min-height: 36px;
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-card,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final {
    grid-template-rows: minmax(60px, 1fr) 35px 22px 42px;
  }
}
@media (orientation: landscape) and (max-width: 700px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-stage {
    --profile-width: 112px;
    gap: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-card,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final {
    flex-basis: calc((100% - 10px) / 2);
    min-width: 170px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #regional-tournaments {
    gap: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button {
    font-size: 8px;
    padding: 5px 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-play-note {
    display: none;
  }
}
@media (orientation: landscape) and (max-height: 340px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-stage {
    --profile-width: 104px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
    padding: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-avatar {
    width: 64px;
    height: 64px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
    gap: 5px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player strong,
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-name {
    font-size: 20px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player-progress {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-profile-cta {
    min-height: 32px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header {
    height: calc(38px + var(--safe-t));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .brand {
    width: 125px;
    height: 32px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav {
    height: 52px;
    margin-top: 6px;
    margin-bottom: calc(6px + var(--safe-b));
    padding: 3px 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-card,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final {
    padding: 8px;
    grid-template-rows: minmax(48px, 1fr) 32px 19px 40px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-series {
    font-size: 7px;
    top: 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-body h2,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final h2 {
    top: 19px;
    font-size: 17px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions button,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final button {
    min-height: 40px;
    font-size: 13px;
  }
}
/* Portrait uses the previously requested image-left, action-right rows. */
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby {
    overflow: auto;
    padding: 12px max(12px, var(--safe-r)) 0 max(12px, var(--safe-l));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-stage {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 14px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
    margin: 0;
    padding: 14px;
    height: auto;
    min-height: 126px;
    flex: none;
    overflow: visible;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-rows: auto auto 7px auto;
    gap: 6px 16px;
    align-items: center;
    text-align: left;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-avatar {
    grid-column: 1;
    grid-row: 1/5;
    width: 94px;
    height: 94px;
    padding: 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player strong,
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-name {
    font-size: 28px;
    grid-column: 2;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-level {
    grid-column: 2;
    justify-self: start;
    font-size: 10px;
    padding: 3px 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player-progress {
    display: block;
    grid-column: 2;
    height: 6px;
    max-width: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .player-profile-cta {
    grid-column: 2;
    min-height: 36px;
    font-size: 10px;
    padding: 8px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-season {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-carousel {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots {
    order: -1;
    flex: none;
    min-height: 36px;
    padding: 0;
    gap: 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots button {
    flex: 0 0 auto;
    height: 36px;
    font-size: 9px;
    padding: 7px 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #regional-tournaments {
    display: flex;
    flex-direction: column;
    height: auto;
    overflow: visible;
    gap: 14px;
    padding: 0 0 4px;
    scroll-snap-type: none;
    flex: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-card,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final {
    height: 222px;
    min-width: 0;
    flex: none;
    width: 100%;
    grid-template-columns: 46% minmax(0, 1fr);
    grid-template-rows: 66px minmax(0, 1fr) 46px;
    gap: 6px;
    padding: 12px 12px 12px 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-art,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final-art {
    inset: 0 51% 0 0;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    background-size: cover;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-art::after,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final-art::after {
    background: linear-gradient(180deg, #00101f44, transparent 35%, #00101fdd);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-series {
    top: 12px;
    left: 10px;
    right: 55%;
    font-size: 8px;
    text-align: left;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-body h2,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final h2 {
    top: auto;
    bottom: 18px;
    left: 12px;
    right: 54%;
    text-align: left;
    font-size: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-open {
    text-align: left;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-suffix {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts {
    grid-column: 2;
    grid-row: 1;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts > span {
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 0 3px;
    padding: 0 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-chip {
    width: 18px;
    height: 18px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts small {
    font-size: 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts strong {
    font-size: 17px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    font-size: 11px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats b {
    font-size: 14px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-stats [data-region-clock-label] {
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions {
    grid-column: 2;
    grid-row: 3;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-actions button,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final button {
    min-height: 44px;
    font-size: 14px;
    padding: 7px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final p {
    grid-column: 2;
    grid-row: 1;
    font-size: 13px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final small {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    font-size: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final button {
    grid-column: 2;
    grid-row: 3;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header {
    height: calc(60px + var(--safe-t));
    padding-left: max(14px, var(--safe-l));
    padding-right: max(14px, var(--safe-r));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .brand {
    width: 150px;
    height: 40px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
    min-width: 132px;
    height: 42px;
    padding: 4px 10px 14px 39px;
    font-size: 19px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::before {
    left: 9px;
    top: 9px;
    width: 23px;
    height: 23px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::after {
    font-size: 7px;
    right: 10px;
    bottom: 5px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav {
    height: 62px;
    padding: 6px;
    margin: 8px max(10px, var(--safe-r)) calc(10px + var(--safe-b)) max(10px, var(--safe-l));
    border-radius: 13px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav > button {
    height: 48px;
    font-size: 10px;
    gap: 5px;
    padding: 5px 3px;
    letter-spacing: 0;
  }

  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-play-note {
    display: none;
  }
}
@media (orientation: portrait) and (max-width: 350px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby {
    padding: 10px 9px 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
    padding: 11px;
    min-height: 112px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 6px 12px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-avatar {
    width: 80px;
    height: 80px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player strong,
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-name {
    font-size: 24px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-card,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final {
    height: 216px;
    padding-right: 9px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-body h2,
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-final h2 {
    font-size: 21px;
    left: 10px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts > span {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 3px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-chip {
    display: none;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts strong {
    font-size: 17px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .brand {
    width: 127px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
    min-width: 124px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav > button {
    font-size: 9px;
    gap: 4px;
  }
}

/* Native proportions: cover crops images; it never stretches their pixels. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-art {
  background-image: var(--glass-region-image);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #00101f;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-art::before {
  content: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  :is(.portrait, .profile-avatar, #lobby-player-avatar)
  :is(img, video) {
  object-fit: cover;
  object-position: center;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .avatar-art {
  flex-shrink: 0;
}

/* One framework glass container per bar; tabs remain controls on that panel. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header,
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs {
  background: var(--wg-surface);
  border: 1px solid #99b8ee4d;
  border-color: #c9d9ff4d #8ca7d926 #a6c2f038 #a9c1ec40;
  box-shadow: var(--wg-shadow);
  backdrop-filter: var(--wg-blur);
  -webkit-backdrop-filter: var(--wg-blur);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header {
  border-radius: 0;
  border-top: 0;
  border-inline: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
  background: transparent;
  border: 0;
  box-shadow: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs {
  --wg-control-radius: 24px;
  border-radius: 30px !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs > .wg-tab {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 12px;
  gap: 9px;
  height: 56px;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: var(--wg-control-radius) !important;
  filter: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .main-nav.wg-tabs
  > .wg-tab[aria-selected="true"] {
  color: #83f4fa;
  /* Original selected-tab fills are !important; contain that legacy rule here.
     Values match Framework13's panel + icon-left divided tab variant exactly. */
  background:
    radial-gradient(ellipse 100% 90% at 50% 130%, #00ddf04d, transparent 85%),
    var(--wg-secondary) !important;
  border-color: #87f5ff80 #65dbea40 #69ddeb66 #a6f6ff66 !important;
  box-shadow: var(--wg-shadow), 0 0 14px #08c7e91a;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .main-nav.wg-tabs
  > .wg-tab:not([aria-selected="true"]) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #b4ccd9;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs > .wg-tab > span {
  display: contents;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs .wg-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  .main-nav.wg-tabs:has(.screen-dock:not([hidden]))
  > .wg-tab-divider {
  display: none;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav.wg-tabs {
    height: 64px;
    padding: 4px 6px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs > .wg-tab {
    height: 52px;
    font-size: 11px;
    padding: 6px 3px;
    gap: 4px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs .wg-icon {
    width: 16px;
    height: 16px;
  }
}
@media (orientation: portrait) and (max-width: 350px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs > .wg-tab {
    font-size: 10px;
    padding: 6px 2px;
    gap: 2px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs .wg-icon {
    width: 14px;
    height: 14px;
  }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs > .wg-tab {
    height: 44px;
    font-size: 12px;
    padding: 6px;
    gap: 6px;
  }
}

/* Framework button material boundary. Legacy gold/selected rules use !important;
   keep their fills out of Glass without changing hit areas or action behavior. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button:not(.wg-tab) {
  --wg-secondary: radial-gradient(ellipse 75% 90% at 30% -55%, #e3efff40, transparent 88%),
    linear-gradient(165deg, #98aed926, #33456838 60%, #667eac33);
  background: var(--wg-secondary), var(--wg-refraction, linear-gradient(transparent, transparent)) !important;
  border: 1px solid #99b8ee4d !important;
  border-color: #c9d9ff4d #8ca7d926 #a6c2f038 #a9c1ec40 !important;
  border-radius: var(--wg-control-radius) !important;
  box-shadow: var(--wg-shadow) !important;
  backdrop-filter: var(--wg-blur);
  -webkit-backdrop-filter: var(--wg-blur);
  color: var(--wg-text) !important;
  font-weight: 550;
  filter: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button.wg-button--rect:not(.wg-tab) {
  border-radius: 12px !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button:is(.wg-button--primary,.wg-button--warning,.wg-button--success):not(.wg-tab) {
  background: var(--wg-primary), var(--wg-refraction, linear-gradient(transparent, transparent)) !important;
  border-color: var(--wg-primary-border) !important;
  box-shadow: var(--wg-primary-shadow) !important;
  color: var(--wg-primary-ink) !important;
  font-weight: 650;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button:not(.wg-tab)[aria-pressed="true"] {
  background: linear-gradient(150deg, #2ba3b840, #12637a52) !important;
  color: #8cf5fa !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button:not(.wg-tab):active:not(:disabled) {
  filter: brightness(.94);
  box-shadow: inset 0 1px 5px #00223b33, 0 2px 6px #0002 !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button:not(.wg-tab):disabled {
  opacity: .4;
  box-shadow: inset 0 1px #d0edfa15 !important;
}
/* Existing menu tabs expose aria-selected; share the framework selected material. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-button:not(.wg-tab)[aria-selected="true"] {
  background: radial-gradient(ellipse 100% 100% at 50% 140%, #00d9ed40, transparent 80%), var(--wg-secondary) !important;
  border-color: #87f5ff80 #65dbea40 #69ddeb66 #a6f6ff66 !important;
  color: #83f4fa !important;
  box-shadow: var(--wg-shadow), 0 3px 14px #00d7ed14 !important;
}

/* Framework paired curves: the 6px inset relates the 30px panel to its 24px tab. */
@media (orientation: landscape) and (min-height: 621px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav.wg-tabs {
    height: 70px;
    padding: 6px;
  }
}

/* Screen spacing: framework 4px grid. Optical tab inset remains 6px by design. */
:root:root:is(#wpas-glass-scope, :root.glass-game) {
  --glass-gutter: var(--wg-space-6);
  --glass-gap: var(--wg-space-4);
  --glass-inset: var(--wg-space-4);
  --glass-card-gap: var(--wg-space-2);
  --glass-region-rail: 40px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header {
  padding-inline: max(var(--glass-gutter), var(--safe-l)) max(var(--glass-gutter), var(--safe-r));
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header {
  height: calc(64px + var(--safe-t));
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby {
  padding-inline: max(var(--glass-gutter), var(--safe-l)) max(var(--glass-gutter), var(--safe-r));
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .main-nav.wg-tabs,
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen .main-nav.wg-tabs {
  margin: var(--glass-gap) max(var(--glass-gutter), var(--safe-r))
    calc(var(--glass-gap) + var(--safe-b)) max(var(--glass-gutter), var(--safe-l));
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .regional-stage {
  gap: var(--glass-gap);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .regional-carousel {
  grid-template-rows: var(--glass-region-rail) minmax(0, 1fr);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
  height: calc(100% - var(--glass-region-rail));
  margin-top: var(--glass-region-rail);
  padding: var(--glass-inset);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
  gap: var(--glass-gap);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-season {
  margin-top: var(--wg-space-6);
  padding-top: var(--wg-space-4);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #regional-tournaments {
  gap: var(--glass-gap);
  padding-bottom: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-card, .glass-final) {
  flex-basis: calc((100% - 2 * var(--glass-gap)) / 3);
  padding: var(--glass-inset);
  grid-template-rows: minmax(0, 1fr) 48px 24px 48px;
  gap: var(--glass-card-gap);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-series {
  top: var(--glass-inset);
  left: var(--glass-inset);
  right: var(--glass-inset);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-body h2, .glass-final h2) {
  top: calc(var(--glass-inset) + 24px);
  left: var(--glass-inset);
  right: var(--glass-inset);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-event-facts > span {
  column-gap: var(--wg-space-2);
  padding-inline: var(--wg-space-2);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-actions, .screen-dock, .glass-pages) {
  gap: var(--wg-space-2);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .glass-pages {
  padding-bottom: var(--glass-gap);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) :is(.play-room, .feature-view) {
  padding: var(--glass-gutter);
  gap: var(--wg-space-6);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) :is(.room-intro, .room-setup) {
  gap: var(--glass-gap);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .room-identity label {
  margin-block: var(--glass-gap);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #avatars {
  gap: var(--wg-space-2);
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) {
    --glass-gutter: var(--wg-space-4);
    --glass-gap: var(--wg-space-2);
    --glass-inset: var(--wg-space-2);
    --glass-card-gap: var(--wg-space-1);
    --glass-region-rail: 32px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header {
    height: calc(48px + var(--safe-t));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-card, .glass-final) {
    grid-template-rows: minmax(0, 1fr) 40px 20px 40px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-body h2, .glass-final h2) {
    top: calc(var(--glass-inset) + 16px);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) :is(.play-room, .feature-view) {
    gap: var(--glass-gap);
  }
}
@media (orientation: landscape) and (max-height: 350px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header {
    height: calc(40px + var(--safe-t));
  }
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) {
    --glass-gutter: var(--wg-space-3);
    --glass-gap: var(--wg-space-3);
    --glass-inset: var(--wg-space-3);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby {
    padding-top: var(--glass-gap);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
    height: auto;
    margin: 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-player-profile {
    gap: var(--wg-space-2) var(--wg-space-4);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-carousel {
    gap: var(--glass-gap);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-card, .glass-final) {
    flex-basis: auto;
    grid-template-rows: 64px minmax(0, 1fr) 48px;
    gap: var(--wg-space-2);
    padding: var(--glass-inset) var(--glass-inset) var(--glass-inset) 0;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-body h2, .glass-final h2) {
    top: auto;
    left: var(--glass-inset);
    right: 55%;
    bottom: var(--glass-inset);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .region-series {
    right: 55%;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) :is(.play-room, .feature-view) {
    gap: var(--glass-gap);
  }
}
/* One panel geometry. Controls use their inset radius; panels never nest. */
:root:root:is(#wpas-glass-scope, :root.glass-game) {
  --wg-panel-radius: 30px;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .wg-panel,
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header.wg-frame {
  border-radius: var(--wg-panel-radius) !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header.wg-frame {
  margin: var(--wg-space-2) max(var(--glass-gutter), var(--safe-r)) 0 max(var(--glass-gutter), var(--safe-l));
  padding-inline: var(--glass-inset);
  border: 1px solid #99b8ee4d;
  border-color: #c9d9ff4d #8ca7d926 #a6c2f038 #a9c1ec40;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #raise-panel {
  border-radius: var(--wg-panel-radius) !important;
}

/* Quiet header: one vertically centred balance row and a proportionate mark. */
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet {
  min-width: 0;
  height: 40px;
  padding: 0;
  gap: var(--wg-space-2);
  align-items: center;
  justify-content: flex-end;
  line-height: 1;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::after {
  content: none;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::before {
  position: static;
  inset: auto;
  width: 28px;
  height: 28px;
  flex: none;
  margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header .brand,
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header .brand {
  width: 160px;
  height: 40px;
}
@media (orientation: portrait), (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body > header .brand,
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header .brand {
    width: 132px;
    height: 32px;
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #lobby-wallet::before {
    width: 24px;
    height: 24px;
  }
}
@media (orientation: landscape) and (max-height: 350px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body > header .brand,
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > header .brand {
    width: 112px;
    height: 28px;
  }
}
/* Lobby chrome floats above the native scroll viewport. Safe areas sit outside
   the glass shapes. Fades and backdrop blur stay entirely in the compositor. */
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.lobby-screen:not(:has(.region-detail:not([hidden]))) {
  --glass-header-height: 64px;
  --glass-nav-height: 70px;
  --glass-chrome-offset: 8px;
  --glass-bottom-clearance: clamp(8px, var(--safe-b), 24px);
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.lobby-screen:not(:has(.region-detail:not([hidden]))) > header {
  position: absolute;
  z-index: 40;
  top: calc(var(--safe-t) + var(--glass-chrome-offset));
  left: max(var(--glass-gutter), var(--safe-l));
  right: max(var(--glass-gutter), var(--safe-r));
  height: var(--glass-header-height);
  width: auto;
  margin: 0;
  padding: 0 var(--glass-inset);
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.lobby-screen:not(:has(.region-detail:not([hidden]))) > main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.lobby-screen:not(:has(.region-detail:not([hidden]))) #lobby {
  padding-top: calc(var(--safe-t) + var(--glass-chrome-offset) + var(--glass-header-height) + var(--glass-gap));
  padding-bottom: calc(var(--glass-bottom-clearance) + var(--glass-nav-height) + var(--glass-gap));
  --glass-scroll-fade: linear-gradient(to bottom, transparent 0,
    #000 calc(var(--safe-t) + var(--glass-chrome-offset) + var(--glass-header-height) + var(--glass-gap)),
    #000 calc(100% - var(--glass-bottom-clearance) - var(--glass-nav-height) - var(--glass-gap)),
    transparent 100%);
  -webkit-mask-image: var(--glass-scroll-fade);
  mask-image: var(--glass-scroll-fade);
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.lobby-screen:not(:has(.region-detail:not([hidden]))) > .main-nav.wg-tabs {
  position: absolute;
  z-index: 40;
  left: max(var(--glass-gutter), var(--safe-l));
  right: max(var(--glass-gutter), var(--safe-r));
  bottom: calc(var(--glass-bottom-clearance));
  height: var(--glass-nav-height);
  width: auto;
  margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game)
  body.lobby-screen:not(:has(.region-detail:not([hidden])))
  > :is(header, .main-nav.wg-tabs) {
  background: rgb(220 235 255 / 3%);
  backdrop-filter: blur(20px) saturate(1.15);
  -webkit-backdrop-filter: blur(20px) saturate(1.15);
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.lobby-screen:not(:has(.region-detail:not([hidden]))) {
    --glass-header-height: 56px;
    --glass-nav-height: 64px;
  }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.lobby-screen:not(:has(.region-detail:not([hidden]))) {
    --glass-header-height: 48px;
    --glass-nav-height: 56px;
  }
}
@media (orientation: landscape) and (max-height: 350px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game)
    body.lobby-screen:not(:has(.region-detail:not([hidden]))) {
    --glass-header-height: 40px;
    --glass-nav-height: 52px;
  }
}

/* Liquid navigation: native captured surfaces, a small uniform lens settle,
   and a soft handoff. No animated backdrop filters or game-layout resizing. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  :root.glass-game:not([data-motion="reduced"]) body:not(.playing) main > section:not([hidden]):not(.region-detail) {
    view-transition-name: wpas-glass-screen;
  }
  :root.glass-game:not([data-motion="reduced"]) dialog[open] {
    view-transition-name: wpas-glass-overlay;
  }
  :root.glass-game {
    --glass-motion-in: 10px;
    --glass-motion-out: -6px;
  }
  :root.glass-game[data-glass-navigation="back"] {
    --glass-motion-in: -8px;
    --glass-motion-out: 6px;
  }
  ::view-transition-group(wpas-glass-screen),
  ::view-transition-group(wpas-glass-overlay) {
    animation-duration: 320ms;
    animation-timing-function: cubic-bezier(.22,1,.36,1);
  }
  ::view-transition-old(wpas-glass-screen),
  ::view-transition-old(wpas-glass-overlay) {
    animation: wpas-glass-recede 320ms cubic-bezier(.22,1,.36,1) both;
    mix-blend-mode: normal;
  }
  ::view-transition-new(wpas-glass-screen),
  ::view-transition-new(wpas-glass-overlay) {
    animation: wpas-glass-arrive 320ms cubic-bezier(.22,1,.36,1) both;
    mix-blend-mode: normal;
  }
  ::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 180ms;
    mix-blend-mode: normal;
  }
  ::view-transition { pointer-events: none; }
}
@keyframes wpas-glass-recede {
  0% { opacity: 1; transform: none; }
  44%, 100% { opacity: 0; transform: translateY(var(--glass-motion-out, -6px)) scale(.985); }
}
@keyframes wpas-glass-arrive {
  0%, 44% { opacity: 0; transform: translateY(var(--glass-motion-in, 10px)) scale(.985); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
    animation: none !important;
  }
}
:root[data-motion="reduced"]::view-transition-group(*),
:root[data-motion="reduced"]::view-transition-old(*),
:root[data-motion="reduced"]::view-transition-new(*) {
  animation: none !important;
}

/* The main navigation stays visible across its four destinations. The shared
   client keeps each original task control in its screen, with its listener. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen:not(:has(.region-detail:not([hidden]))) {
  --glass-scroll-fade: linear-gradient(to bottom, transparent 0,
    #000 calc(var(--safe-t) + var(--glass-chrome-offset) + var(--glass-header-height) + var(--glass-gap)),
    #000 calc(100% - var(--glass-bottom-clearance) - var(--glass-nav-height) - var(--glass-gap)),
    transparent 100%);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen:not(:has(.region-detail:not([hidden]))) main > :is(.play-room,.feature-view):not([hidden]) {
  height: 100%; min-height: 0; max-height: 100%; overflow-y: auto;
  padding-top: calc(var(--safe-t) + var(--glass-chrome-offset) + var(--glass-header-height) + var(--glass-gap));
  padding-bottom: calc(var(--glass-bottom-clearance) + var(--glass-nav-height) + var(--glass-gap));
  -webkit-mask-image: var(--glass-scroll-fade); mask-image: var(--glass-scroll-fade);
  scroll-padding-block: calc(var(--safe-t) + var(--glass-header-height) + 24px) calc(var(--safe-b) + var(--glass-nav-height) + 24px);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .entry > :is(#practice,#create),
:root:root:is(#wpas-glass-scope, :root.glass-game) #profile-settings #save-profile { width: 100%; }
:root:root:is(#wpas-glass-scope, :root.glass-game) .play-room[data-glass-room="join"] .entry > :is(#practice,#create) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  :root.glass-game:not([data-motion="reduced"]) .main-nav > .wg-tab[aria-selected="true"] { view-transition-name: wpas-glass-tab-highlight; }
  ::view-transition-group(wpas-glass-tab-highlight) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.22,1,.36,1); }
  ::view-transition-old(wpas-glass-tab-highlight), ::view-transition-new(wpas-glass-tab-highlight) { animation-duration: 160ms; mix-blend-mode: normal; }
}

:root:root:is(#wpas-glass-scope, :root.glass-game) body.lobby-screen > .main-nav.wg-tabs {
  position: absolute; z-index: 40;
  left: max(var(--glass-gutter), var(--safe-l)); right: max(var(--glass-gutter), var(--safe-r));
  bottom: clamp(8px, var(--safe-b), 24px); width: auto; margin: 0;
  background: rgb(220 235 255 / 3%);
  backdrop-filter: blur(20px) saturate(1.15); -webkit-backdrop-filter: blur(20px) saturate(1.15);
}
@media (orientation: landscape) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-stage { position: relative; isolation: isolate; }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .lobby-player {
    grid-column: 1; grid-row: 1; z-index: 20;
    background: rgb(220 235 255 / 3%);
    backdrop-filter: var(--wg-blur); -webkit-backdrop-filter: var(--wg-blur);
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) .regional-carousel { grid-column: 1 / -1; grid-row: 1; z-index: 1; }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #region-dots { margin-left: calc(var(--profile-width) + var(--glass-gap)); }
  :root:root:is(#wpas-glass-scope, :root.glass-game) #regional-tournaments {
    --glass-profile-clearance: calc(var(--profile-width) + var(--glass-gap));
    padding-left: var(--glass-profile-clearance); scroll-padding-left: var(--glass-profile-clearance);
    -webkit-mask-image: linear-gradient(to right, transparent, #0002 calc(var(--profile-width) - 32px), #000 var(--glass-profile-clearance));
    mask-image: linear-gradient(to right, transparent, #0002 calc(var(--profile-width) - 32px), #000 var(--glass-profile-clearance));
  }
  :root:root:is(#wpas-glass-scope, :root.glass-game) :is(.region-card,.glass-final) {
    flex-basis: calc((100% - 2 * var(--glass-gap)) / 3);
  }
}
@media (prefers-reduced-motion: no-preference) {
  :root.glass-game:not([data-motion="reduced"]) .main-nav { view-transition-name: wpas-glass-bottom-bar; }
  ::view-transition-group(wpas-glass-bottom-bar) { animation-duration: 320ms; animation-timing-function: cubic-bezier(.22,1,.36,1); }
  ::view-transition-old(wpas-glass-bottom-bar) { animation: wpas-glass-bar-out 260ms ease both; }
  ::view-transition-new(wpas-glass-bottom-bar) { animation: wpas-glass-bar-in 320ms cubic-bezier(.22,1,.36,1) both; }
}
@keyframes wpas-glass-bar-out { to { opacity: 0; } }
@keyframes wpas-glass-bar-in { from { opacity: 0; } to { opacity: 1; } }

/* Detail content retains its own scroll layer, below its tabs and shared bar. */
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-content {
  padding-bottom: calc(80px + clamp(8px, var(--safe-b), 24px));
  scroll-padding-bottom: calc(80px + clamp(8px, var(--safe-b), 24px));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 64px), transparent);
}
:root:root:is(#wpas-glass-scope, :root.glass-game) .region-detail-hero {
  padding-bottom: calc(64px + clamp(8px, var(--safe-b), 24px));
}

/* Edge-to-edge canvas. Insets belong to readable chrome and touch controls,
   never to the game/scroll viewport as a whole. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing main {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; padding: 0; margin: 0;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .arena {
  left: 0; right: 0;
  bottom: calc(78px + clamp(8px, var(--safe-b), 24px));
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .controls {
  bottom: clamp(8px, var(--safe-b), 24px);
  left: max(8px, var(--safe-l)); right: max(8px, var(--safe-r)); width: auto !important;
}
@media (orientation: portrait) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .arena { bottom: calc(92px + clamp(8px, var(--safe-b), 24px)); }
}
@media (orientation: landscape) and (max-height: 620px) {
  :root:root:is(#wpas-glass-scope, :root.glass-game) body.playing #game > .arena { bottom: calc(54px + clamp(8px, var(--safe-b), 24px)); }
}
/* Empty seats are positioned controls: preserve their centre anchor. The
   general no-skew button rule must not push right-hand seats off the canvas. */
:root:root:is(#wpas-glass-scope, :root.glass-game) #game .seat.empty {
  transform: translate(-50%, -50%) !important;
}

/* Owner comparison: frameless top bar. Keep its geometry and readable controls. */
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header.wg-frame {
  background: transparent !important; border-color: transparent !important;
  box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header.wg-frame::before,
:root:root:is(#wpas-glass-scope, :root.glass-game) body > header.wg-frame::after { content: none !important; }

/* The table menu shares the existing glass material and native tab geometry. */
:root:root.glass-game body.playing #game #table-tools.wpas-native-menu {
 --menu-inset:24px; --menu-tab-surface:var(--wg-surface); --menu-tab-lens:var(--wg-primary);
 --menu-tab-rim:var(--wg-primary-border); --menu-tab-shadow:var(--wg-primary-shadow);
}
:root:root.glass-game body.playing #game #table-tools.wpas-native-menu .toolbar-pane {
 backdrop-filter:var(--wg-blur);-webkit-backdrop-filter:var(--wg-blur);
}
:root:root.glass-game body.playing #game #table-tools.wpas-native-menu .menu-tab-bar a.tab-link {background:none!important;}
:root:root.glass-game body.playing #game #table-tools.wpas-native-menu .tab-link-highlight::before,
:root:root.glass-game body.playing #game #table-tools.wpas-native-menu .tab-link-highlight::after {
 backdrop-filter:var(--wg-blur);-webkit-backdrop-filter:var(--wg-blur);
}
@media (max-width:700px), (orientation:landscape) and (max-height:620px) {
 :root:root.glass-game body.playing #game #table-tools.wpas-native-menu {--menu-inset:12px;}
}
