:root {
  --bg: #03070d;
  --panel: rgba(4, 12, 23, 0.82);
  --panel-strong: rgba(6, 18, 34, 0.94);
  --blue: #008cff;
  --blue-deep: #073e81;
  --cyan: #62d7ff;
  --cyan-soft: rgba(98, 215, 255, 0.18);
  --gold: #d9b45a;
  --gold-soft: #ffe4a3;
  --danger: #ee6175;
  --text: #f3f8ff;
  --muted: #9cb4cc;
  --line: rgba(99, 199, 255, 0.22);
  --line-strong: rgba(99, 199, 255, 0.48);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --card-w: clamp(34px, 5.2vw, 58px);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Temporary lobby cleanup: hide all player identity/wallet/avatar panels */
.player-strip,
.lobby-fixed-profile,
.old-lobby-profile-removed,
.lobby-profile-panel,
.lobby-profile-disabled,
#lobbyProfilePanel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 211, 115, 0.10), transparent 18rem),
    radial-gradient(circle at 50% 0%, rgba(0, 140, 255, 0.18), transparent 36rem),
    radial-gradient(circle at 10% 30%, rgba(0, 91, 194, 0.16), transparent 28rem),
    linear-gradient(135deg, #02050a 0%, #06111f 46%, #02050a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
}

.app-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f3f8ff;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 151, 255, 0.22), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(255, 218, 124, 0.12), transparent 28%),
    linear-gradient(135deg, #02050a 0%, #06111f 48%, #02050a 100%);
  transition: opacity 0.34s ease, visibility 0.34s ease;
}

.app-loading-overlay.app-loading-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-loading-card {
  width: min(360px, calc(100vw - 40px));
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  border: 1px solid rgba(255, 224, 150, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(255, 237, 184, 0.10), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(0, 171, 255, 0.20), transparent 62%),
    rgba(4, 12, 23, 0.92);
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.62),
    0 0 48px rgba(0, 140, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.app-loading-orbit {
  width: 94px;
  height: 94px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(126, 223, 255, 0.24);
  box-shadow: 0 0 34px rgba(0, 150, 255, 0.22);
}

.app-loading-orbit::before {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, #ffffff, #79dcff 24%, #0b72d4 54%, #052041 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.06), 0 0 22px rgba(0, 153, 255, 0.38);
}

.app-loading-orbit span {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe4a3, #168df2);
  box-shadow: 0 0 18px rgba(255, 218, 124, 0.35);
  transform: translate(-50%, -50%) translateX(var(--loading-dot-x, 0));
  animation: loadingDotPulse 1.05s ease-in-out infinite;
}

.app-loading-orbit span:first-child {
  --loading-dot-x: -18px;
}

.app-loading-orbit span:nth-child(2) {
  --loading-dot-x: 0;
  animation-delay: 0.14s;
}

.app-loading-orbit span:nth-child(3) {
  --loading-dot-x: 18px;
  animation-delay: 0.28s;
}

.app-loading-card strong {
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 0 24px rgba(0, 151, 255, 0.34);
}

.app-loading-card p {
  margin: 0;
  color: rgba(214, 238, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.app-loading-bar {
  width: min(230px, 70vw);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(126, 223, 255, 0.20);
  background: rgba(0, 8, 18, 0.70);
}

.app-loading-bar i {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #168df2, #8eeaff, #ffe4a3);
  box-shadow: 0 0 18px rgba(0, 151, 255, 0.46);
  animation: loadingBar 1.05s ease-in-out infinite;
}

@keyframes loadingDotPulse {
  0%, 100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) translateX(var(--loading-dot-x, 0)) translateY(0) scale(0.82);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) translateX(var(--loading-dot-x, 0)) translateY(-3px) scale(1.12);
  }
}

@keyframes loadingBar {
  0% {
    transform: translateX(-115%);
  }
  100% {
    transform: translateX(255%);
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
}

.brand,
.top-actions,
.player-strip,
.table-top,
.section-title,
.active-session {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  position: relative;
  border: 1px solid rgba(98, 215, 255, 0.45);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(98, 215, 255, 0.26), transparent 56%),
    linear-gradient(145deg, #102644, #040b14);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.035), 0 0 30px rgba(0, 140, 255, 0.34);
}

.brand-mark span {
  position: absolute;
  width: 15px;
  height: 22px;
  top: 11px;
  left: 13px;
  border-radius: 4px;
  background: #f6fbff;
  transform: rotate(-13deg);
  box-shadow: 6px 3px 0 #0a284b;
}

.brand-mark span + span {
  left: 17px;
  transform: rotate(11deg);
  background: #e9f6ff;
}

.top-actions {
  gap: 10px;
}

.icon-button,
.lang-button,
.ghost-button,
.danger-button,
.primary-button,
.join-button {
  border: 1px solid var(--line);
  color: var(--text);
}

.icon-button,
.lang-button {
  height: 40px;
  min-width: 42px;
  border-radius: 8px;
  background: rgba(8, 22, 40, 0.82);
  box-shadow: inset 0 0 18px rgba(0, 140, 255, 0.08);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  max-width: 1220px;
  margin: 0 auto;
}

.landing-screen {
  min-height: calc(100vh - 104px);
  display: grid;
  align-items: center;
  padding: 28px 0 46px;
}

.landing-hero-card {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 34px;
  align-items: center;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 150, 0.30);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(0, 162, 255, 0.22), transparent 34%),
    radial-gradient(circle at 82% 74%, rgba(255, 210, 104, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(7, 29, 55, 0.96), rgba(2, 8, 18, 0.98) 62%, rgba(4, 15, 31, 0.96));
  box-shadow:
    0 36px 110px rgba(0, 0, 0, 0.62),
    0 0 64px rgba(0, 142, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.landing-hero-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(139, 223, 255, 0.16);
  border-radius: 22px;
}

.landing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 610px;
}

.landing-logo {
  width: 278px;
  max-width: 82%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(0, 153, 255, 0.28));
}

.landing-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 226, 150, 0.30);
  border-radius: 999px;
  color: #ffe7aa;
  background: rgba(255, 226, 150, 0.08);
  font-size: 13px;
  font-weight: 900;
}

.landing-copy h1 {
  margin: 0;
  max-width: 680px;
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(0, 151, 255, 0.30);
}

.landing-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(220, 240, 255, 0.82);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 700;
}

.landing-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.landing-badges span {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid rgba(126, 223, 255, 0.22);
  border-radius: 16px;
  color: rgba(239, 248, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(0, 142, 255, 0.15), rgba(255, 226, 150, 0.07)),
    rgba(0, 8, 20, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 900;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.landing-actions .primary-button,
.landing-actions .ghost-button {
  min-width: 180px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.landing-play-button {
  border-color: rgba(128, 228, 255, 0.48);
  background:
    linear-gradient(180deg, #19a8ff, #075ab4);
  box-shadow: 0 18px 42px rgba(0, 143, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.landing-download-button {
  border-color: rgba(255, 226, 150, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 226, 150, 0.14), rgba(0, 151, 255, 0.08)),
    rgba(1, 10, 24, 0.68);
  color: #ffe7aa;
}

.landing-visual {
  position: relative;
  z-index: 1;
  min-height: 500px;
}

.landing-table-glow {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 420px;
  height: 252px;
  transform: translate(-50%, -50%) rotate(-8deg);
  border-radius: 46%;
  border: 12px solid rgba(255, 226, 150, 0.38);
  background:
    radial-gradient(ellipse at center, rgba(0, 130, 255, 0.36), rgba(3, 30, 59, 0.82) 58%, rgba(0, 6, 16, 0.96));
  box-shadow:
    0 34px 84px rgba(0, 0, 0, 0.52),
    0 0 54px rgba(0, 153, 255, 0.30),
    inset 0 0 28px rgba(126, 223, 255, 0.16);
}

.landing-chip {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 7px solid #f2d489;
  color: #ffffff;
  background:
    radial-gradient(circle at 38% 30%, #5ce0ff, #0867c7 48%, #03234a);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.46), 0 0 30px rgba(0, 157, 255, 0.24);
  font-weight: 1000;
}

.landing-chip-one {
  right: 13%;
  top: 16%;
  width: 112px;
  height: 112px;
  transform: rotate(14deg);
  font-size: 30px;
}

.landing-chip-two {
  left: 14%;
  bottom: 13%;
  width: 92px;
  height: 92px;
  transform: rotate(-18deg);
  font-size: 21px;
}

.landing-card {
  position: absolute;
  width: 94px;
  height: 136px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 226, 150, 0.40);
  color: #0a2850;
  background:
    linear-gradient(145deg, #ffffff, #d9efff);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.40);
  font-size: 40px;
  font-weight: 1000;
}

.landing-card-a {
  left: 26%;
  top: 19%;
  transform: rotate(-15deg);
}

.landing-card-k {
  left: 40%;
  top: 16%;
  transform: rotate(9deg);
  color: #9e2039;
}

@media (max-width: 920px) {
  .landing-screen {
    min-height: calc(100vh - 88px);
    padding: 18px 0 28px;
  }

  .landing-hero-card {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 26px;
    gap: 20px;
  }

  .landing-copy h1 {
    font-size: 34px;
  }

  .landing-visual {
    min-height: 260px;
    order: -1;
  }

  .landing-table-glow {
    width: min(360px, 86vw);
    height: 210px;
  }

  .landing-badges {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .landing-hero-card {
    padding: 18px;
    border-radius: 22px;
  }

  .landing-copy {
    gap: 14px;
  }

  .landing-logo {
    width: 230px;
  }

  .landing-copy h1 {
    font-size: 28px;
  }

  .landing-copy p {
    font-size: 14px;
    line-height: 1.72;
  }

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

  .landing-actions .primary-button,
  .landing-actions .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .landing-visual {
    min-height: 220px;
  }

  .landing-card {
    width: 70px;
    height: 102px;
    font-size: 30px;
  }

  .landing-chip-one {
    width: 86px;
    height: 86px;
    font-size: 24px;
  }

  .landing-chip-two {
    width: 72px;
    height: 72px;
    font-size: 17px;
  }
}

/* Premium public landing page */
.landing-screen {
  display: block;
  min-height: calc(100vh - 104px);
  padding: 26px 0 74px;
}

.landing-casino-hero {
  min-height: min(720px, calc(100vh - 128px));
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 42px;
  align-items: center;
  padding: clamp(28px, 4.6vw, 64px);
  border-radius: 34px;
  border: 1px solid rgba(255, 230, 158, 0.42);
  background:
    linear-gradient(120deg, rgba(255, 239, 190, 0.13), transparent 38%),
    radial-gradient(circle at 68% 45%, rgba(0, 162, 255, 0.30), transparent 29%),
    radial-gradient(circle at 86% 86%, rgba(255, 203, 84, 0.18), transparent 25%),
    linear-gradient(145deg, #071c35 0%, #030914 53%, #07111f 100%);
  box-shadow:
    0 44px 130px rgba(0, 0, 0, 0.72),
    0 0 78px rgba(0, 145, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.landing-casino-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -36% 42%;
  height: 72%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 145, 255, 0.28), transparent 64%);
  filter: blur(12px);
}

.landing-casino-copy {
  max-width: 650px;
}

.landing-casino-copy h1 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  max-width: 760px;
}

.landing-casino-copy p {
  max-width: 680px;
  color: rgba(225, 242, 255, 0.86);
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.9;
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.landing-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(126, 223, 255, 0.24);
  border-radius: 999px;
  color: rgba(233, 248, 255, 0.94);
  background: rgba(0, 12, 26, 0.54);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.landing-casino-visual {
  min-height: 560px;
  isolation: isolate;
}

.landing-table-stage {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(560px, 100%);
  aspect-ratio: 1.42;
  transform: translate(-50%, -50%) rotate(-5deg);
  display: grid;
  place-items: center;
}

.landing-table-felt {
  position: absolute;
  inset: 9% 2%;
  border-radius: 48%;
  border: 16px solid rgba(222, 181, 86, 0.82);
  background:
    radial-gradient(ellipse at center, rgba(36, 181, 255, 0.34), rgba(6, 55, 96, 0.88) 48%, rgba(2, 10, 24, 0.98) 73%),
    #041222;
  box-shadow:
    0 40px 88px rgba(0, 0, 0, 0.58),
    0 0 58px rgba(0, 151, 255, 0.30),
    inset 0 0 44px rgba(126, 223, 255, 0.16),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.landing-community-preview {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 9px;
  transform: rotate(5deg);
}

.landing-community-preview span {
  width: 54px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 232, 176, 0.52);
  color: #071527;
  background: linear-gradient(145deg, #ffffff, #dcefff);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
  font-size: 22px;
  font-weight: 1000;
}

.landing-seat {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  gap: 6px;
  color: #ffe7aa;
  font-size: 12px;
  font-weight: 950;
  transform: rotate(5deg);
}

.landing-seat i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(255, 232, 176, 0.82);
  background:
    radial-gradient(circle at 36% 28%, #ffffff, #80e4ff 22%, #0d72d3 58%, #031a36);
  box-shadow: 0 0 28px rgba(0, 151, 255, 0.34), 0 16px 30px rgba(0, 0, 0, 0.42);
}

.landing-seat-top {
  top: 0;
  left: 48%;
}

.landing-seat-left {
  left: 2%;
  bottom: 19%;
}

.landing-seat-right {
  right: 1%;
  bottom: 22%;
}

.landing-pot-preview {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%) rotate(5deg);
  padding: 8px 14px;
  border: 1px solid rgba(255, 232, 176, 0.42);
  border-radius: 999px;
  color: #ffe7aa;
  background: rgba(0, 9, 22, 0.74);
  box-shadow: 0 0 24px rgba(255, 210, 104, 0.14);
  font-size: 14px;
  font-weight: 1000;
}

.landing-feature-grid,
.landing-table-preview,
.landing-explain-section {
  margin-top: 18px;
  position: relative;
  border: 1px solid rgba(126, 223, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 142, 255, 0.10), rgba(255, 226, 150, 0.05)),
    rgba(2, 10, 22, 0.72);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.landing-feature-grid article {
  min-height: 154px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(255, 226, 150, 0.16);
  border-radius: 18px;
  background: rgba(0, 7, 18, 0.44);
}

.landing-feature-grid article span {
  width: 38px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #071527;
  background: linear-gradient(145deg, #fff1bd, #d3a84c);
  font-size: 12px;
  font-weight: 1000;
}

.landing-feature-grid article strong,
.landing-table-preview strong,
.landing-explain-section strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 1000;
}

.landing-feature-grid article p,
.landing-explain-section p {
  margin: 0;
  color: rgba(216, 236, 255, 0.78);
  line-height: 1.72;
  font-size: 14px;
  font-weight: 750;
}

.landing-table-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.landing-table-preview span,
.landing-explain-section span {
  display: block;
  margin-bottom: 7px;
  color: #8bdfff;
  font-size: 12px;
  font-weight: 950;
}

.landing-mini-tables {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  gap: 10px;
  min-width: min(540px, 58%);
}

.landing-mini-tables span {
  margin: 0;
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 226, 150, 0.30);
  border-radius: 16px;
  color: #ffe7aa;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 164, 255, 0.24), transparent 58%),
    rgba(0, 8, 18, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.landing-explain-section {
  display: grid;
  gap: 12px;
  padding: 22px;
}

@media (max-width: 920px) {
  .landing-casino-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .landing-casino-visual {
    min-height: 370px;
    order: -1;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

  .landing-table-preview {
    display: grid;
  }

  .landing-mini-tables {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .landing-screen {
    padding-top: 12px;
  }

  .landing-casino-hero {
    padding: 18px;
    border-radius: 24px;
  }

  .landing-casino-visual {
    min-height: 270px;
  }

  .landing-table-stage {
    width: min(355px, 100%);
  }

  .landing-community-preview span {
    width: 40px;
    height: 58px;
    font-size: 17px;
  }

  .landing-seat i {
    width: 44px;
    height: 44px;
  }

  .landing-seat b,
  .landing-pot-preview {
    font-size: 10px;
  }

  .landing-feature-grid,
  .landing-table-preview,
  .landing-explain-section {
    border-radius: 18px;
  }
}

.auth-screen {
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: minmax(300px, 440px);
  align-items: center;
  justify-content: center;
  gap: 0;
}

.auth-visual {
  min-height: 560px;
  display: grid;
  place-items: center;
}

.showcase-table {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.showcase-table {
  max-width: 760px;
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 0.55));
}

.table-art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.showcase-community,
.mini-cards {
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-community {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  gap: clamp(5px, 1.1vw, 12px);
}

.showcase-community img,
.showcase-hand img,
.mini-cards img {
  width: var(--card-w);
  aspect-ratio: 5 / 7;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.36));
}

.showcase-hand {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: flex;
}

.showcase-hand img:first-child {
  transform: rotate(-8deg) translateX(8px);
}

.showcase-hand img:last-child {
  transform: rotate(8deg) translateX(-8px);
}

.showcase-chip {
  position: absolute;
  right: 25%;
  top: 52%;
}

.showcase-chip span {
  display: block;
  width: clamp(34px, 4.4vw, 56px);
  height: clamp(9px, 1vw, 13px);
  margin-top: -4px;
  border-radius: 50%;
  border: 1px solid rgba(170, 222, 255, 0.84);
  background:
    linear-gradient(90deg, #0579e9 0 22%, #f4fbff 22% 32%, #0579e9 32% 66%, #f4fbff 66% 76%, #0579e9 76%),
    #0579e9;
  box-shadow: 0 0 14px rgba(0, 140, 255, 0.36);
}

.auth-panel,
.table-card,
.lobby-hero,
.active-session {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-panel {
  border-radius: 8px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -160px;
  width: 340px;
  height: 340px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.auth-logo-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 2px 0 18px;
}

.auth-logo {
  width: min(180px, 58vw);
  max-height: 118px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 22px rgba(0, 140, 255, 0.38));
}

.country-gate,
.syria-agent-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.country-gate-head,
.syria-agent-head {
  display: grid;
  gap: 6px;
  text-align: center;
}

.country-gate-head span,
.syria-agent-head span:not(.syria-agent-flag) {
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 950;
}

.country-gate-head strong,
.syria-agent-head strong {
  color: #fff;
  font-size: clamp(22px, 4.6vw, 30px);
  font-weight: 1000;
  line-height: 1.1;
  text-shadow: 0 0 26px rgba(0, 151, 255, 0.34);
}

.country-gate-head p,
.syria-agent-head p,
.agent-bot-card p {
  margin: 0;
  color: rgba(209, 235, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

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

.country-choice-card {
  min-height: 114px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(126, 223, 255, 0.24);
  border-radius: 18px;
  color: #f6fbff;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 151, 255, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(255, 230, 158, 0.08), rgba(4, 16, 31, 0.90));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 14px 30px rgba(0, 0, 0, 0.28);
}

.country-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 230, 158, 0.50);
  box-shadow:
    0 0 34px rgba(0, 151, 255, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.36);
}

.country-choice-flag {
  width: 72px;
  height: 48px;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 232, 176, 0.40);
  box-shadow: 0 0 24px rgba(0, 151, 255, 0.18);
}

.country-choice-flag svg,
.syria-agent-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.country-choice-card strong {
  font-size: 16px;
  font-weight: 950;
}

.syria-agent-panel {
  padding: 14px;
  border: 1px solid rgba(255, 224, 150, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 151, 255, 0.16), transparent 56%),
    rgba(0, 8, 18, 0.45);
}

.syria-agent-head {
  grid-template-columns: auto 1fr;
  align-items: center;
  text-align: start;
}

.syria-agent-flag {
  width: 74px;
  height: 50px;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255, 232, 176, 0.42);
  box-shadow: 0 0 24px rgba(0, 151, 255, 0.20);
}

.agent-bot-grid {
  display: grid;
  gap: 10px;
}

.agent-bot-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(126, 223, 255, 0.24);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 230, 158, 0.10), transparent 44%),
    linear-gradient(180deg, rgba(8, 42, 72, 0.78), rgba(1, 9, 20, 0.92));
}

.agent-bot-card.disabled {
  opacity: 0.58;
  pointer-events: none;
}

.agent-bot-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #03101f;
  font-weight: 1000;
  background: linear-gradient(145deg, #ffe8ad, #70dcff);
  box-shadow: 0 0 22px rgba(255, 218, 124, 0.22);
}

.agent-bot-card strong,
.agent-bot-card p {
  grid-column: 2;
}

.agent-bot-card em {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--gold-soft);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.syria-agent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-tabs.single-tab {
  grid-template-columns: 1fr;
}

.auth-panel::before,
.lobby-hero::before,
.table-card::before,
.active-session::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(98, 215, 255, 0.14), transparent 35%, rgba(217, 180, 90, 0.08));
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.auth-tabs button {
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(7, 23, 43, 0.84);
  color: var(--muted);
}

.auth-tabs button.active {
  color: var(--text);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, #087edb, #073f82);
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.24);
}

form {
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}

label span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 13px;
}

input,
select {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(98, 215, 255, 0.2);
  color: var(--text);
  background: rgba(3, 9, 17, 0.78);
  padding: 0 14px;
  outline: none;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%) calc(100% - 18px) 52% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%) calc(100% - 13px) 52% / 7px 7px no-repeat,
    rgba(3, 9, 17, 0.78);
}

html[dir="rtl"] select {
  background:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%) 18px 52% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%) 23px 52% / 7px 7px no-repeat,
    rgba(3, 9, 17, 0.78);
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(98, 215, 255, 0.14);
}

.field-hint {
  display: block;
  margin-top: 6px;
  color: rgba(156, 180, 204, 0.86);
  font-size: 12px;
  line-height: 1.5;
}

.primary-button,
.join-button {
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0aa9ff, #0756ac);
  box-shadow: 0 12px 28px rgba(0, 140, 255, 0.34);
  font-weight: 800;
}

.primary-button:disabled,
.join-button:disabled {
  opacity: 0.48;
  background: #15263b;
  box-shadow: none;
}

.status,
#lobbyStatus,
.active-session p,
.table-info p {
  color: var(--muted);
  margin: 0;
}

.status {
  min-height: 22px;
  line-height: 1.5;
}

.lobby-screen {
  padding-top: 20px;
  padding-bottom: 88px;
}

.lobby-hero {
  min-height: 110px;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

body.lobby-active .brand {
  visibility: hidden;
}

body.lobby-active .lobby-screen {
  padding-top: 14px;
}

body.lobby-active .lobby-hero {
  min-height: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  justify-content: flex-end;
}

body.lobby-active .lobby-hero::before {
  display: none;
}

body.lobby-active .player-strip {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 40;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 12, 23, 0.88);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

body.lobby-active .country-pill {
  display: none;
}

body.lobby-active .avatar-frame {
  width: 54px;
  height: 54px;
}

body.lobby-active .player-copy strong {
  font-size: 19px;
}

body.lobby-active .wallet-pill {
  min-width: 132px;
  padding: 8px 12px;
}

body.lobby-active .wallet-pill strong {
  font-size: 18px;
}

body.lobby-active .lobby-actions {
  margin-top: 0;
}

body.lobby-active .tables-section {
  margin-top: 18px;
}

.player-strip {
  gap: 14px;
  position: relative;
  z-index: 1;
}

.avatar-frame {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, var(--cyan), var(--blue-deep));
  box-shadow: 0 0 24px rgba(0, 140, 255, 0.24);
  position: relative;
  overflow: hidden;
  border: 0;
  flex: 0 0 auto;
}

.avatar-button,
.auth-avatar-button,
.avatar-choice {
  cursor: pointer;
}

.avatar-button {
  display: block;
}

.avatar-button:focus-visible,
.auth-avatar-button:focus-visible,
.avatar-choice:focus-visible {
  outline: 3px solid rgba(98, 215, 255, 0.45);
  outline-offset: 3px;
}

.avatar-frame img,
.avatar-choice img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  background: linear-gradient(145deg, #123458, #030a12);
}

.avatar-frame img.hidden + .avatar-face {
  display: grid;
}

.avatar-frame-small {
  width: 52px;
  height: 52px;
  box-shadow: 0 0 18px rgba(0, 140, 255, 0.18);
}

.avatar-face {
  width: 100%;
  height: 100%;
  display: none;
  place-items: center;
  border-radius: inherit;
  background: linear-gradient(145deg, #123458, #030a12);
  font-weight: 900;
  font-size: 24px;
  color: var(--text);
  position: absolute;
  inset: 3px;
  width: auto;
  height: auto;
}

.country-flag {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 17px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 226, 150, 0.86);
  border-radius: 999px;
  background: #06111f;
  box-shadow:
    0 0 0 2px rgba(0, 9, 22, 0.62),
    0 6px 14px rgba(0, 0, 0, 0.46),
    0 0 16px rgba(255, 218, 124, 0.22);
  z-index: 9;
  pointer-events: none;
}

.country-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}

.country-flag-code {
  display: none;
  color: #fff;
  font-size: 8px;
  font-weight: 1000;
  line-height: 1;
}

.avatar-frame-small .country-flag {
  width: 21px;
  height: 15px;
  right: -1px;
  bottom: -1px;
}

.lobby-profile-avatar .country-flag {
  width: 25px;
  height: 18px;
  right: 0;
  bottom: 0;
}

.auth-avatar-field {
  display: grid;
  gap: 8px;
}

.auth-avatar-field > span {
  color: var(--muted);
  font-size: 13px;
}

.auth-avatar-button {
  width: 100%;
  min-height: 66px;
  border: 1px solid rgba(98, 215, 255, 0.2);
  border-radius: 8px;
  background: rgba(3, 9, 17, 0.78);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  text-align: start;
}

.auth-avatar-button > span:last-child {
  color: var(--cyan);
  font-weight: 800;
}

.avatar-modal,
.buyin-modal,
.recharge-modal,
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: center;
  padding: 18px;
}

.avatar-modal-backdrop,
.buyin-modal-backdrop,
.recharge-modal-backdrop,
.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 10, 0.74);
  backdrop-filter: blur(10px);
}

.recharge-modal {
  padding: clamp(82px, 12dvh, 112px) 12px clamp(94px, 14dvh, 124px);
}

.avatar-modal-panel,
.buyin-modal-panel {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  position: relative;
  z-index: 1;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 140, 255, 0.22), transparent 18rem),
    rgba(4, 12, 23, 0.96);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
  padding: 16px;
}

.buyin-modal-panel {
  width: min(500px, 100%);
}

.avatar-modal-head,
.buyin-modal-head,
.recharge-modal-head,
.profile-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.avatar-modal-head span,
.buyin-modal-head span,
.recharge-modal-head span,
.profile-modal-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.avatar-modal-head strong,
.buyin-modal-head strong,
.recharge-modal-head strong,
.profile-modal-head strong {
  font-size: 22px;
}

.profile-modal-panel {
  width: min(620px, calc(100vw - 24px));
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 224, 156, 0.28);
  border-radius: 24px;
  padding: 16px;
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 170, 255, 0.24), transparent 34%),
    radial-gradient(circle at 92% 100%, rgba(255, 221, 144, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(8, 32, 58, 0.98), rgba(1, 7, 17, 0.98) 72%);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.70),
    0 0 54px rgba(0, 153, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.profile-modal-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 20%, rgba(255, 236, 179, 0.08) 42%, transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%);
}

.profile-modal-panel > * {
  position: relative;
  z-index: 1;
}

.profile-modal-head {
  margin-bottom: 12px;
}

.profile-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.profile-hero-row em {
  display: block;
  margin-top: 3px;
  color: rgba(218, 237, 255, 0.76);
  font-style: normal;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 270px;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.profile-summary-grid > div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(126, 223, 255, 0.20);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 159, 255, 0.14), transparent 58%),
    rgba(0, 8, 19, 0.58);
}

.profile-summary-grid span {
  color: rgba(218, 237, 255, 0.70);
  font-size: 11px;
  font-weight: 950;
}

.profile-summary-grid strong {
  color: #fff;
  font-size: clamp(17px, 3.6vw, 24px);
  font-weight: 950;
  text-shadow: 0 0 20px rgba(0, 159, 255, 0.22);
}

.profile-summary-grid strong.positive,
.history-profit.positive {
  color: #8bf6b1;
}

.profile-summary-grid strong.negative,
.history-profit.negative {
  color: #ff9eac;
}

.profile-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.profile-modal-actions .ghost-button {
  min-height: 40px;
  width: 100%;
}

.profile-history-status {
  min-height: 18px;
  margin: 8px 0;
  color: rgba(218, 237, 255, 0.78);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.profile-history-status:empty {
  display: none;
}

.profile-history-status.danger {
  color: #ffb7bf;
}

.profile-history-list {
  display: grid;
  gap: 10px;
}

.history-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(126, 223, 255, 0.18);
  border-radius: 20px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 232, 176, 0.08), transparent 46%),
    rgba(0, 8, 19, 0.62);
}

.history-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 0% 0%, rgba(0, 165, 255, 0.16), transparent 44%);
}

.history-card > * {
  position: relative;
  z-index: 1;
}

.history-card-head,
.history-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-card-head strong {
  color: #fff;
  font-size: 16px;
  font-weight: 950;
}

.history-card-head span,
.history-card-row span {
  color: rgba(218, 237, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
}

.history-status {
  min-height: 26px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 224, 156, 0.26);
  border-radius: 999px;
  color: #ffe4a3;
  background: rgba(255, 224, 156, 0.08);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

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

.history-money-grid > div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 9px;
  background: rgba(0, 6, 16, 0.46);
}

.history-money-grid span {
  display: block;
  color: rgba(218, 237, 255, 0.62);
  font-size: 10px;
  font-weight: 950;
  margin-bottom: 5px;
}

.history-money-grid strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.history-empty {
  border: 1px dashed rgba(126, 223, 255, 0.24);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: rgba(218, 237, 255, 0.72);
  background: rgba(0, 8, 19, 0.42);
}

@media (max-width: 560px) {
  .profile-modal {
    padding: 12px;
  }

  .profile-modal-panel {
    border-radius: 20px;
    padding: 12px;
  }

  .profile-summary-grid,
  .history-money-grid {
    grid-template-columns: 1fr;
  }

  .profile-modal-actions {
    grid-template-columns: 1fr;
  }
}

.recharge-modal-panel {
  width: min(520px, calc(100vw - 24px));
  max-height: min(560px, calc(100dvh - 190px));
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 224, 156, 0.30);
  border-radius: 22px;
  padding: 12px;
  overflow: auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 173, 255, 0.22), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(255, 220, 139, 0.16), transparent 40%),
    linear-gradient(145deg, rgba(9, 34, 61, 0.98), rgba(1, 7, 17, 0.98) 72%);
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.68),
    0 0 44px rgba(0, 153, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.recharge-modal-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(255, 236, 179, 0.08) 38%, transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%);
}

.recharge-modal-head {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.recharge-modal-head > div {
  display: none;
}

.recharge-modal-head strong {
  color: #ffffff;
  font-size: clamp(18px, 2.5vw, 22px);
  text-shadow: 0 0 22px rgba(0, 166, 255, 0.30);
}

.recharge-choice-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recharge-choice-card {
  min-height: 86px;
  border: 1px solid rgba(255, 224, 156, 0.28);
  border-radius: 18px;
  padding: 12px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  color: #f5fbff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, var(--recharge-aura), transparent 55%),
    linear-gradient(145deg, rgba(255, 233, 177, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(10, 54, 91, 0.72), rgba(2, 12, 26, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 16px 34px rgba(0, 0, 0, 0.36);
}

.recharge-choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 232, 174, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 20px 42px rgba(0, 0, 0, 0.44),
    0 0 28px var(--recharge-glow);
}

.recharge-choice-mark {
  width: 48px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--recharge-edge);
  color: var(--recharge-mark);
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.22), transparent 32%),
    linear-gradient(145deg, rgba(255, 234, 177, 0.16), rgba(0, 142, 255, 0.12)),
    rgba(0, 9, 22, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 22px var(--recharge-glow),
    0 10px 18px rgba(0, 0, 0, 0.34);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
}

.recharge-choice-card strong {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 950;
  line-height: 1;
}

.recharge-choice-card em {
  display: none;
}

.sham-cash-card {
  --recharge-aura: rgba(0, 176, 255, 0.22);
  --recharge-glow: rgba(0, 170, 255, 0.28);
  --recharge-edge: rgba(124, 232, 255, 0.44);
  --recharge-mark: #9cecff;
}

.usdt-card {
  --recharge-aura: rgba(255, 213, 102, 0.18);
  --recharge-glow: rgba(255, 209, 89, 0.26);
  --recharge-edge: rgba(255, 230, 158, 0.45);
  --recharge-mark: #ffe2a3;
}

.recharge-modal-status {
  position: relative;
  z-index: 1;
  min-height: 0;
  margin: 6px 0 0;
  color: rgba(218, 237, 255, 0.78);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.recharge-modal-status:empty {
  display: none;
}

.payment-detail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
}

.payment-back-button {
  display: none;
}

.payment-detail-head {
  display: none;
}

.payment-detail-head {
  border: 1px solid rgba(255, 224, 156, 0.22);
  border-radius: 16px;
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(255, 232, 176, 0.10), transparent 46%),
    rgba(0, 9, 22, 0.44);
}

.payment-detail-head span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 9px;
  border: 1px solid rgba(126, 223, 255, 0.28);
  border-radius: 999px;
  color: #9cecff;
  background: rgba(0, 159, 255, 0.08);
  font-size: 11px;
  font-weight: 950;
}

.payment-detail-head strong {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(18px, 2.7vw, 24px);
  font-weight: 950;
}

.payment-detail-head p {
  margin: 5px 0 0;
  color: rgba(218, 237, 255, 0.76);
  font-size: 12px;
  line-height: 1.35;
}

.payment-recharge-detail,
.payment-recharge-form,
.payment-withdraw-form {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(126, 223, 255, 0.18);
  border-radius: 18px;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 171, 255, 0.12), transparent 58%),
    rgba(0, 8, 19, 0.56);
}

.payment-qr-frame {
  width: min(150px, 42vw);
  aspect-ratio: 1;
  margin: 0 auto 2px;
  border: 1px solid rgba(255, 224, 156, 0.30);
  border-radius: 18px;
  padding: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 242, 194, 0.14), rgba(0, 145, 255, 0.08)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 28px rgba(0, 160, 255, 0.14);
}

.payment-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.payment-input-label {
  color: rgba(218, 237, 255, 0.78);
  font-size: 11px;
  font-weight: 950;
}

.payment-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.payment-copy-row input,
.payment-recharge-form input,
.payment-withdraw-form input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(126, 223, 255, 0.22);
  border-radius: 12px;
  padding: 0 10px;
  color: #f5fbff;
  background: rgba(0, 6, 16, 0.72);
  outline: none;
}

.payment-copy-row input:focus,
.payment-recharge-form input:focus,
.payment-withdraw-form input:focus {
  border-color: rgba(255, 224, 156, 0.46);
  box-shadow: 0 0 0 3px rgba(0, 159, 255, 0.10);
}

.payment-recharge-form .primary-button,
.payment-withdraw-form .primary-button {
  margin-top: 4px;
  min-height: 40px;
}

.payment-recharge-detail .payment-recharge-form {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.buyin-modal-panel {
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  border-color: rgba(255, 224, 156, 0.28);
  border-radius: 18px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 219, 128, 0.18), transparent 46%),
    radial-gradient(circle at 50% 10%, rgba(0, 159, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(6, 24, 43, 0.98), rgba(1, 7, 15, 0.98));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.68),
    inset 0 0 0 1px rgba(98, 215, 255, 0.08);
}

.buyin-modal-head {
  margin-bottom: 12px;
}

.buyin-modal-head > div {
  min-width: 0;
}

.buyin-modal-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buyin-modal-head strong {
  font-size: 20px;
}

.buyin-summary {
  margin: 0 0 10px;
}

.buyin-summary > div:first-child {
  display: none;
}

.buyin-summary > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  border: 1px solid rgba(98, 215, 255, 0.16);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(0, 8, 18, 0.44);
}

.buyin-summary span,
.buyin-range-text,
.buyin-modal-status {
  color: rgba(214, 237, 255, 0.70);
  font-size: 12px;
}

.buyin-summary strong {
  color: var(--gold-soft);
  font-size: 14px;
  font-weight: 900;
}

.buyin-range-text {
  margin: 0 0 10px;
  text-align: center;
}

.buyin-control {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 224, 156, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 156, 0.10), transparent 55%),
    rgba(0, 8, 18, 0.58);
}

.buyin-control::before,
.buyin-control::after {
  position: absolute;
  top: 32px;
  color: rgba(255, 224, 156, 0.72);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 16px rgba(255, 213, 99, 0.28);
}

.buyin-control::before {
  content: "‹";
  left: 16px;
}

.buyin-control::after {
  content: "›";
  right: 16px;
}

.buyin-control input[type="range"] {
  width: 100%;
  height: 28px;
  accent-color: var(--gold-soft);
  cursor: pointer;
}

.buyin-control input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 159, 255, 0.45), rgba(255, 224, 156, 0.76));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.buyin-control input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 2px solid rgba(255, 250, 224, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle, #fff1b8, #d5a22f 72%);
  box-shadow: 0 0 22px rgba(255, 213, 99, 0.46);
}

.buyin-input-row {
  order: -1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 2px 30px 0;
}

.buyin-input-row input {
  width: min(230px, 100%);
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #fff8d8;
  font-size: clamp(30px, 8vw, 48px);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 22px rgba(0, 159, 255, 0.22);
}

.buyin-input-row input::-webkit-outer-spin-button,
.buyin-input-row input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.buyin-input-row input[type="number"] {
  appearance: textfield;
}

.buyin-input-row span {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.buyin-modal-status {
  min-height: 18px;
  margin: 9px 0 0;
  text-align: center;
}

.buyin-modal-status:empty {
  display: none;
}

.buyin-modal-status.danger {
  display: block;
  color: #ff6868;
}

.buyin-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
}

.buyin-modal-actions .primary-button {
  min-height: 48px;
  border-radius: 14px;
  font-size: 16px;
}

.buyin-modal-actions .ghost-button,
.buyin-hidden-cancel {
  display: none !important;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 12px;
}

.avatar-choice {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(98, 215, 255, 0.24);
  background:
    radial-gradient(circle, rgba(98, 215, 255, 0.18), transparent 62%),
    rgba(7, 23, 43, 0.9);
  padding: 4px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.035);
  position: relative;
  overflow: hidden;
}

.avatar-choice.active {
  border-color: var(--gold-soft);
  box-shadow: 0 0 22px rgba(217, 180, 90, 0.38), inset 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.avatar-choice.active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 12px rgba(217, 180, 90, 0.55);
}

.player-copy span,
.wallet-pill span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.player-copy strong {
  font-size: 22px;
}

.wallet-pill {
  min-width: 154px;
  border: 1px solid rgba(217, 180, 90, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(217, 180, 90, 0.08);
}

.country-pill {
  min-width: 112px;
  border: 1px solid rgba(98, 215, 255, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(98, 215, 255, 0.06);
}

.wallet-pill strong,
.country-pill strong {
  color: var(--gold-soft);
  font-size: 20px;
}

.country-pill strong {
  color: var(--cyan);
}

.lobby-actions {
  position: fixed;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 70;
  width: min(500px, calc(100vw - 18px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(255, 218, 139, 0.30);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 221, 137, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(9, 28, 50, 0.96), rgba(1, 6, 13, 0.96));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(0, 132, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.lobby-actions .ghost-button {
  --chip-main: #128dff;
  --chip-edge: #89e7ff;
  --chip-accent: #ffe2a0;
  height: 62px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #f6fbff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(255, 227, 161, 0.10), transparent 42%),
    linear-gradient(180deg, rgba(10, 55, 96, 0.86), rgba(3, 16, 31, 0.94));
  border-color: rgba(255, 218, 139, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -10px 24px rgba(0, 0, 0, 0.22);
}

.lobby-actions .ghost-button::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #061221 0 27%, transparent 28%),
    radial-gradient(circle at 50% 50%, var(--chip-accent) 0 40%, transparent 41%),
    repeating-conic-gradient(from 0deg, var(--chip-edge) 0 18deg, var(--chip-main) 18deg 36deg),
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.82), transparent 16%);
  border: 2px solid rgba(255, 232, 177, 0.72);
  box-shadow:
    0 0 0 2px rgba(5, 14, 26, 0.70),
    0 0 16px rgba(98, 215, 255, 0.30),
    inset 0 0 0 2px rgba(255, 255, 255, 0.16);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.42));
}

#rechargeButton {
  --chip-main: #009cff;
  --chip-edge: #7de9ff;
  --chip-accent: #ffe8ad;
}

#withdrawButton {
  --chip-main: #d7a938;
  --chip-edge: #fff0b4;
  --chip-accent: #0da4ff;
}

#logoutButton {
  --chip-main: #a92545;
  --chip-edge: #ff8aa0;
  --chip-accent: #ffe0a3;
}

.lobby-actions .ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 229, 167, 0.52);
  background:
    linear-gradient(135deg, rgba(255, 232, 176, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(12, 88, 148, 0.92), rgba(4, 28, 55, 0.95));
}

.lobby-actions #logoutButton {
  color: #ffe5e8;
  border-color: rgba(255, 104, 126, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 214, 148, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(82, 28, 44, 0.84), rgba(32, 8, 18, 0.94));
}

.ghost-button,
.danger-button {
  height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(7, 23, 43, 0.84);
  position: relative;
  z-index: 1;
}

.danger-button {
  border-color: rgba(238, 97, 117, 0.55);
  color: #ffdce0;
  background: rgba(114, 35, 48, 0.64);
}

.finance-panel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.finance-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 140, 255, 0.22), transparent 28rem),
    linear-gradient(135deg, rgba(98, 215, 255, 0.12), transparent 45%, rgba(217, 180, 90, 0.06));
}

.finance-head,
.finance-option {
  position: relative;
  z-index: 1;
}

.finance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.finance-head span {
  color: var(--gold-soft);
  display: block;
  font-size: 13px;
}

.finance-head strong {
  display: block;
  font-size: 22px;
  margin-top: 3px;
}

.finance-close {
  font-size: 22px;
  line-height: 1;
}

.finance-note {
  position: relative;
  z-index: 1;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.finance-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finance-option {
  min-height: 132px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(98, 215, 255, 0.22);
  background: rgba(3, 10, 18, 0.72);
}

.finance-option-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  font-weight: 900;
  background: linear-gradient(145deg, #0aa9ff, #073f82);
  box-shadow: 0 0 18px rgba(0, 140, 255, 0.28);
}

.finance-option strong {
  display: block;
  font-size: 17px;
}

.finance-option p {
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.5;
  font-size: 13px;
}

.finance-option .finance-meta {
  color: rgba(98, 215, 255, 0.82);
  font-size: 12px;
}

.finance-option button,
.finance-option a.ghost-button {
  grid-column: 1 / -1;
  width: 100%;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
}

.finance-recharge-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.finance-recharge-form input {
  height: 40px;
}

.finance-submit-status {
  min-height: 18px;
  margin: 0;
  color: rgba(126, 231, 135, 0.95);
  font-size: 12px;
}

.finance-submit-status.danger {
  color: #ffb7bf;
}

.active-session {
  border-radius: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.active-session > * {
  position: relative;
  z-index: 1;
}

.tables-section {
  margin-top: 28px;
}

.section-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title span {
  color: var(--gold-soft);
  display: block;
  font-size: 13px;
}

.section-title strong {
  display: block;
  font-size: clamp(20px, 2.2vw, 24px);
  margin-top: 3px;
}

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

.table-card {
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 8px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 226, 154, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(7, 25, 45, 0.92), rgba(2, 8, 16, 0.96));
  border-color: rgba(255, 218, 139, 0.18);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(98, 215, 255, 0.08);
}

.table-card > * {
  position: relative;
  z-index: 1;
}

.table-card.locked {
  opacity: 0.66;
}

.table-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 226, 154, 0.34);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.44),
    0 0 28px rgba(0, 140, 255, 0.12),
    inset 0 0 0 1px rgba(255, 226, 154, 0.08);
}

.table-top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.table-badge {
  display: block;
  font-weight: 900;
  font-size: clamp(18px, 2vw, 30px);
  color: var(--gold-soft);
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.table-number-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(214, 237, 255, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.players-count {
  border: 1px solid rgba(98, 215, 255, 0.24);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--cyan);
  background: rgba(5, 14, 25, 0.74);
  font-weight: 800;
  font-size: 12px;
}

.lobby-table-visual {
  position: relative;
  aspect-ratio: 1.85 / 1;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(29, 168, 255, 0.36), rgba(0, 52, 88, 0.22) 42%, transparent 66%),
    linear-gradient(180deg, #041728, #02070d);
  box-shadow: inset 0 0 0 1px rgba(98, 215, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.24);
}

.lobby-table-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lobby-table-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 9px;
  background:
    linear-gradient(180deg, rgba(0, 6, 14, 0.84), rgba(0, 8, 18, 0.12) 44%, rgba(0, 6, 14, 0.78)),
    linear-gradient(135deg, rgba(255, 226, 154, 0.10), transparent 42%),
    radial-gradient(circle at 50% 30%, transparent, rgba(0, 0, 0, 0.26));
}

.lobby-table-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.lobby-table-meta > div {
  border: 1px solid rgba(98, 215, 255, 0.20);
  border-radius: 8px;
  padding: 6px;
  background: rgba(0, 8, 18, 0.68);
  backdrop-filter: blur(7px);
}

.lobby-table-meta span {
  display: block;
  color: rgba(214, 237, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.lobby-table-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 900;
}

.table-card .join-button {
  height: 40px;
  border-color: rgba(255, 225, 154, 0.30);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 231, 167, 0.22), transparent 18%, transparent 82%, rgba(255, 231, 167, 0.18)),
    linear-gradient(180deg, #14a9ff, #064d9d);
  box-shadow:
    0 10px 22px rgba(0, 140, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  letter-spacing: 0;
}

.mini-table {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(29, 168, 255, 0.36), rgba(0, 52, 88, 0.22) 42%, transparent 66%),
    linear-gradient(180deg, #041728, #02070d);
  box-shadow: inset 0 0 0 1px rgba(98, 215, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.24);
}

.mini-table::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("/assets/Table/poker-table-blue.png") center / contain no-repeat,
    radial-gradient(ellipse at center, rgba(19, 146, 229, 0.72), rgba(1, 48, 84, 0.48) 54%, transparent 56%);
  filter: saturate(1.08) brightness(1.06);
}

.seat {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(98, 215, 255, 0.12), 0 0 14px rgba(0, 140, 255, 0.38);
}

.s1 { left: 50%; top: 10%; transform: translateX(-50%); }
.s2 { right: 15%; top: 26%; }
.s3 { right: 15%; bottom: 26%; }
.s4 { left: 50%; bottom: 10%; transform: translateX(-50%); }
.s5 { left: 15%; bottom: 26%; }
.s6 { left: 15%; top: 26%; }

.mini-cards {
  position: absolute;
  inset: 0;
  gap: 3px;
}

.mini-cards img {
  width: clamp(18px, 3.1vw, 30px);
}

.mini-cards img:first-child {
  transform: rotate(-7deg);
}

.mini-cards img:last-child {
  transform: rotate(7deg);
}

.table-info {
  display: grid;
  gap: 5px;
}

.table-info .range {
  color: var(--text);
  font-weight: 800;
}

.table-screen {
  position: relative;
  height: calc(100vh - 84px);
  height: calc(100dvh - 84px);
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
}

body.table-active .brand {
  visibility: hidden;
}

body.table-active .topbar {
  display: none;
}

body.table-active {
  overflow: hidden;
}

body.table-active .app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
}

body.table-active main {
  height: 100%;
  max-width: 1400px;
}

.table-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-status-bar > div:first-child {
  min-width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 10px 14px;
  background: rgba(2, 6, 12, 0.72);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.table-status-bar span,
.pot-display span,
.hero-stack span {
  color: var(--muted);
  font-size: 12px;
}

.table-status-bar strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 15px;
}

.table-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-state {
  border: 1px solid rgba(98, 255, 146, 0.18);
  border-radius: 18px;
  padding: 8px 12px;
  color: #4cff82;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 800;
}

.poker-table-board {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  position: relative;
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(0, 140, 255, 0.10), transparent 46%),
    linear-gradient(180deg, #010306, #06101b 58%, #010306);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 30px 90px rgba(0, 0, 0, 0.54);
}

.poker-table-board::before {
  content: "";
  position: absolute;
  inset: 0.4% 1.2% 1.4%;
  z-index: 1;
  background:
    url("/assets/Table/poker-table-blue.png") center / contain no-repeat,
    radial-gradient(ellipse at center, rgba(14, 126, 210, 0.74), rgba(1, 52, 90, 0.45) 55%, transparent 57%);
  filter: saturate(1.08) brightness(1.04) drop-shadow(0 18px 46px rgba(0, 0, 0, 0.52));
  pointer-events: none;
}

.poker-table-board::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(84%, 980px);
  height: min(56%, 520px);
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(22, 176, 255, 0.18), rgba(8, 77, 128, 0.34) 50%, rgba(0, 10, 18, 0.1) 70%),
    linear-gradient(135deg, rgba(0, 168, 255, 0.16), rgba(0, 21, 46, 0.46));
  box-shadow:
    inset 0 0 0 12px rgba(13, 154, 235, 0.16),
    inset 0 0 0 28px rgba(0, 0, 0, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.poker-table-board > * {
  position: relative;
  z-index: 2;
}

.table-countdown {
  position: absolute;
  left: auto;
  right: 3.2%;
  top: 1.2%;
  transform: none;
  min-width: 72px;
  text-align: center;
  border: 1px solid rgba(217, 180, 90, 0.4);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(5, 12, 22, 0.84);
  padding: 5px 12px;
  font-weight: 900;
  z-index: 3;
}

.pot-display {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 122px;
  border: 1px solid rgba(217, 180, 90, 0.34);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(5, 12, 22, 0.84);
  z-index: 3;
}

.pot-display strong,
.hero-stack strong {
  color: var(--gold-soft);
}

.pot-chip-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}

.pot-chip {
  position: absolute;
  left: 50%;
  top: 61%;
  width: clamp(15px, 2.1vw, 26px);
  aspect-ratio: 1;
  border-radius: 50%;
  background-image:
    url("/assets/Chips/poker-chip.png"),
    radial-gradient(circle at 50% 50%, #f9fbff 0 17%, #1ba4ff 18% 31%, #f6f8ff 32% 44%, #0758c8 45% 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain, cover;
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
  transform: translate(var(--chip-x, 0px), var(--chip-y, 0px)) rotate(var(--chip-rotate, 0deg));
  transform-origin: center center;
  opacity: 0.96;
}

.pot-chip.incoming {
  animation: chipToPot 920ms cubic-bezier(0.2, 0.86, 0.18, 1) var(--chip-delay, 0ms) both;
}

.pot-chip.payout {
  animation: chipToWinner 1200ms cubic-bezier(0.18, 0.78, 0.12, 1) var(--chip-delay, 0ms) both;
}

.fold-card-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: visible;
}

.fold-card-fly {
  position: absolute;
  left: 50%;
  top: 55%;
  width: clamp(42px, 6vw, 78px);
  aspect-ratio: 5 / 7;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.48));
  transform-origin: center center;
  animation: foldedCardToTable 1050ms cubic-bezier(0.18, 0.78, 0.14, 1) var(--fold-delay, 0ms) both;
}

@keyframes foldedCardToTable {
  0% {
    opacity: 0.98;
    transform:
      translate(var(--fold-from-x, 0vw), var(--fold-from-y, 0vh))
      scale(0.92)
      rotate(var(--fold-start-rotate, -10deg));
  }

  58% {
    opacity: 1;
    transform:
      translate(calc(var(--fold-to-x, 0px) * 0.55), calc(var(--fold-to-y, 0px) - 16px))
      scale(1.04)
      rotate(12deg);
  }

  76% {
    opacity: 1;
    transform:
      translate(var(--fold-to-x, 0px), var(--fold-to-y, 0px))
      scale(0.96)
      rotate(var(--fold-end-rotate, 28deg));
  }

  100% {
    opacity: 0;
    transform:
      translate(calc(var(--fold-to-x, 0px) * 1.08), calc(var(--fold-to-y, 0px) + 12px))
      scale(0.68)
      rotate(var(--fold-end-rotate, 28deg));
  }
}

.big-win-panel {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  color: #fff7d6;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 220, 111, 0.24), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(31, 174, 255, 0.18), transparent 42%),
    rgba(0, 4, 12, 0.68);
  box-shadow:
    inset 0 0 90px rgba(28, 166, 255, 0.18),
    inset 0 0 130px rgba(255, 207, 83, 0.10);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88);
  animation:
    bigWinPop 720ms cubic-bezier(0.16, 0.9, 0.14, 1) both,
    bigWinGlow 900ms ease-in-out 720ms infinite alternate;
  backdrop-filter: blur(2px);
}

.big-win-panel:not(.show-for-hero) {
  display: none !important;
}

.big-win-panel span {
  font-size: clamp(52px, 13vw, 150px);
  line-height: 0.95;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow:
    0 0 14px rgba(35, 184, 255, 0.82),
    0 0 24px rgba(255, 219, 108, 0.62);
}

.big-win-panel strong {
  color: var(--gold-soft);
  font-size: clamp(28px, 6vw, 74px);
  font-weight: 1000;
  padding: 8px 22px;
  border: 1px solid rgba(255, 229, 146, 0.48);
  border-radius: 999px;
  background: rgba(4, 13, 27, 0.72);
  box-shadow: 0 0 24px rgba(255, 209, 82, 0.26);
}

.big-win-panel em {
  max-width: min(86vw, 760px);
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes bigWinPop {
  0% {
    opacity: 0;
    transform: scale(0.76);
  }

  62% {
    opacity: 1;
    transform: scale(1.06);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bigWinGlow {
  0% {
    filter: brightness(1);
  }

  100% {
    filter: brightness(1.24);
  }
}

@keyframes chipToPot {
  0% {
    opacity: 0;
    transform: translate(var(--chip-from-x, 0vw), var(--chip-from-y, 0vh)) scale(0.58) rotate(-28deg);
  }

  72% {
    opacity: 1;
    transform: translate(var(--chip-x, 0px), calc(var(--chip-y, 0px) - 10px)) scale(1.1) rotate(16deg);
  }

  100% {
    opacity: 0.96;
    transform: translate(var(--chip-x, 0px), var(--chip-y, 0px)) scale(1) rotate(var(--chip-rotate, 0deg));
  }
}

@keyframes chipToWinner {
  0% {
    opacity: 0.98;
    transform: translate(var(--chip-x, 0px), var(--chip-y, 0px)) scale(1) rotate(var(--chip-rotate, 0deg));
  }

  18% {
    opacity: 1;
    transform: translate(var(--chip-x, 0px), calc(var(--chip-y, 0px) - 12px)) scale(1.08) rotate(18deg);
  }

  100% {
    opacity: 0;
    transform: translate(var(--chip-win-x, 0vw), var(--chip-win-y, 0vh)) scale(0.62) rotate(220deg);
  }
}

.community-row {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 10px);
  z-index: 4;
}

.community-row img,
.hero-hand img,
.seat-cards img {
  width: clamp(44px, 6.2vw, 86px);
  aspect-ratio: 5 / 7;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42));
}

.community-row img.winning-card,
.seat-cards img.winning-card {
  position: relative;
  z-index: 24;
  outline: 2px solid rgba(255, 220, 106, 0.96);
  outline-offset: 2px;
  animation: winningCardPulse 820ms ease-in-out infinite alternate;
}

@keyframes winningCardPulse {
  0% {
    filter:
      drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42))
      drop-shadow(0 0 8px rgba(45, 188, 255, 0.42))
      drop-shadow(0 0 10px rgba(255, 213, 93, 0.52));
  }

  100% {
    filter:
      drop-shadow(0 16px 22px rgba(0, 0, 0, 0.5))
      drop-shadow(0 0 18px rgba(50, 197, 255, 0.8))
      drop-shadow(0 0 24px rgba(255, 226, 125, 0.92));
  }
}

.community-row img.community-deal-card {
  opacity: 0;
  animation: dealCommunityCardFromRight 1050ms cubic-bezier(0.18, 0.86, 0.16, 1) var(--deal-delay, 0ms) both;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

@keyframes dealCommunityCardFromRight {
  0% {
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
    transform: translate(var(--community-deal-x, 26vw), var(--community-deal-y, 0px)) scale(0.58) rotate(var(--community-deal-rotate, -12deg));
  }

  64% {
    opacity: 1;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.34));
    transform: translate(-4px, 2px) scale(1.06) rotate(3deg);
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42));
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.table-seats {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.player-seat {
  position: absolute;
  width: clamp(104px, 13.2vw, 148px);
  min-height: clamp(112px, 13.6vw, 156px);
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.player-seat.turn {
  filter: drop-shadow(0 0 20px rgba(217, 180, 90, 0.42));
}

.player-seat.winner {
  filter: drop-shadow(0 0 22px rgba(126, 231, 135, 0.5));
}

.seat-avatar {
  display: block;
  width: clamp(58px, 7.2vw, 92px);
  height: clamp(58px, 7.2vw, 92px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 228, 163, 0.82);
  background: #06111f;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
  z-index: 3;
}

.seat-name {
  color: var(--text);
  font-weight: 900;
  font-size: clamp(12px, 1.15vw, 16px);
  max-width: 136px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: -10px;
  min-width: 104px;
  text-align: center;
  padding: 9px 10px 1px;
  border-radius: 18px 18px 0 0;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.seat-balance,
.seat-stack,
.seat-bet {
  color: var(--muted);
  font-size: clamp(11px, 1.02vw, 14px);
  min-width: 104px;
  text-align: center;
  padding: 1px 10px 8px;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 0 0 18px 18px;
}

.seat-bet {
  color: var(--gold-soft);
  position: absolute;
  left: 50%;
  top: -16px;
  transform: translateX(-50%);
  min-width: 76px;
  max-width: 136px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 226, 142, 0.58);
  border-radius: 999px;
  background: rgba(2, 8, 16, 0.86);
  box-shadow: 0 0 16px rgba(255, 211, 94, 0.24), 0 10px 20px rgba(0, 0, 0, 0.4);
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  z-index: 52;
  pointer-events: none;
}

.seat-bet:empty {
  display: none;
}

.hero-stack {
  display: none !important;
}

.seat-badge {
  position: absolute;
  right: 16%;
  top: 8%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 180, 90, 0.72);
  border-radius: 50%;
  color: #101016;
  background: linear-gradient(145deg, #ffe9a9, #b98624);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
}

.seat-badge:not(:empty),
body.layout-edit-mode .seat-badge {
  opacity: 1;
}

.seat-cards {
  position: absolute;
  left: 50%;
  right: auto;
  top: 4%;
  display: flex;
  justify-content: center;
  gap: 0;
  min-width: clamp(86px, 8.8vw, 132px);
  min-height: clamp(38px, 4.4vw, 62px);
  transform: translateX(-50%);
  z-index: 2;
}

.seat-cards img {
  width: clamp(42px, 4.7vw, 68px);
  border-radius: 6px;
}

.seat-cards img:first-child {
  transform: rotate(-8deg) translateX(9px);
}

.seat-cards img:last-child {
  transform: rotate(8deg) translateX(-9px);
}

.player-seat:not(.seat-0) .seat-avatar {
  margin-top: clamp(30px, 3.6vw, 48px);
  position: relative;
  z-index: 4;
}

.seat-0 {
  left: 50%;
  bottom: 2.2%;
  width: clamp(132px, 15.5vw, 176px);
  min-height: clamp(132px, 15vw, 170px);
  transform: translateX(-50%);
}
.seat-1 { right: 3.5%; bottom: 16%; }
.seat-2 { right: 5.2%; top: 17%; }
.seat-3 { left: 50%; top: 3%; transform: translateX(-50%); }
.seat-4 { left: 5.2%; top: 17%; }
.seat-5 { left: 3.5%; bottom: 16%; }

.seat-4 .seat-cards,
.seat-5 .seat-cards {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.seat-0 .seat-cards {
  left: 50%;
  right: auto;
  top: 4%;
  transform: translateX(-50%);
  justify-content: center;
  min-width: clamp(112px, 11.6vw, 164px);
  z-index: 2;
}

.seat-0 .seat-cards img {
  width: clamp(56px, 6.1vw, 86px);
  border-radius: 6px;
}

.seat-0 .seat-cards img:first-child {
  transform: rotate(-8deg) translateX(11px);
}

.seat-0 .seat-cards img:last-child {
  transform: rotate(8deg) translateX(-11px);
}

.seat-cards img.seat-deal-card {
  opacity: 0;
  transform-origin: center center;
  animation: dealSeatCard 1050ms cubic-bezier(0.18, 0.86, 0.16, 1) var(--deal-delay, 0ms) both;
  will-change: transform, opacity, filter;
}

@keyframes dealSeatCard {
  0% {
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transform: translate(var(--deal-x, 0vw), var(--deal-y, -30vh)) scale(0.56) rotate(var(--deal-start-rotate, -18deg));
  }

  62% {
    opacity: 1;
    filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.36));
    transform: translate(0, 6px) scale(1.06) rotate(var(--deal-final-rotate, -8deg));
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42));
    transform: rotate(var(--deal-final-rotate, -8deg)) translateX(var(--deal-final-x, 9px));
  }
}

.seat-0 .seat-cards img.deal-from-deck {
  opacity: 0;
  transform-origin: center center;
  animation-duration: 560ms;
  animation-delay: var(--deal-delay, 0ms);
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.18, 1);
  animation-fill-mode: both;
  will-change: transform, opacity, filter;
}

.seat-0 .seat-cards img.deal-from-deck:first-child {
  animation-name: dealHeroCardLeft;
}

.seat-0 .seat-cards img.deal-from-deck:last-child {
  animation-name: dealHeroCardRight;
}

@keyframes dealHeroCardLeft {
  0% {
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transform: translateY(-34vh) scale(0.68) rotate(-20deg);
  }

  70% {
    opacity: 1;
    transform: translateY(4px) scale(1.04) rotate(-10deg);
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42));
    transform: rotate(-8deg) translateX(11px);
  }
}

@keyframes dealHeroCardRight {
  0% {
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transform: translateY(-34vh) scale(0.68) rotate(20deg);
  }

  70% {
    opacity: 1;
    transform: translateY(4px) scale(1.04) rotate(10deg);
  }

  100% {
    opacity: 1;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.42));
    transform: rotate(8deg) translateX(-11px);
  }
}

.seat-0 .seat-avatar {
  width: clamp(64px, 7.6vw, 96px);
  height: clamp(64px, 7.6vw, 96px);
  margin-top: clamp(38px, 4.2vw, 54px);
  border-width: 3px;
  z-index: 4;
}

.seat-0 .seat-name {
  min-width: clamp(116px, 12vw, 150px);
  max-width: clamp(116px, 12vw, 150px);
  padding-top: 10px;
}

.seat-0 .seat-balance {
  min-width: clamp(116px, 12vw, 150px);
  color: var(--gold-soft);
}

.hero-zone {
  position: absolute;
  left: 50%;
  bottom: 12.5%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 8px;
  z-index: 4;
}

.hero-zone {
  display: none;
}

.hero-hand {
  display: flex;
  gap: 0;
  z-index: 4;
}

.hero-hand img:first-child {
  transform: rotate(-4deg) translateX(5px);
}

.hero-hand img:last-child {
  transform: rotate(4deg) translateX(-5px);
}

.hero-stack {
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 180, 90, 0.32);
  border-radius: 999px;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.68);
}

.table-actions {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(2, 6, 12, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  padding: 12px 18px;
}

.action-clock {
  min-width: 112px;
  display: grid;
  gap: 4px;
}

.action-clock span {
  color: var(--cyan);
  font-weight: 900;
}

.action-clock-bar {
  width: 112px;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(98, 215, 255, 0.12);
}

.action-clock-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold-soft));
}

.bet-slider-panel {
  min-width: min(280px, 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bet-slider-panel input {
  flex: 1;
}

.bet-slider-panel strong {
  min-width: 110px;
  color: var(--gold-soft);
  text-align: center;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  align-items: center;
  gap: 16px;
  width: min(880px, 100%);
  margin-inline-start: 0;
}

.table-actions .ghost-button,
.table-actions .danger-button {
  height: 78px;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
  display: grid;
  place-items: center;
  padding: 0 12px;
}

#checkButton {
  background: linear-gradient(145deg, #0b4db4, #082454);
}

#callButton {
  background: linear-gradient(145deg, #0c7d2e, #063715);
}

#betButton {
  background: linear-gradient(145deg, #bb7507, #563100);
}

#foldButton {
  background: linear-gradient(145deg, #bd2525, #520808);
}

.table-status-actions .ghost-button,
.table-status-actions .danger-button {
  height: 34px;
  padding: 0 12px;
}

.table-bottom-dock {
  position: absolute;
  left: 10px;
  top: 46px;
  z-index: 80;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 0;
  pointer-events: none;
}

.dock-button {
  min-width: 86px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.025), 0 14px 32px rgba(0, 0, 0, 0.34);
  pointer-events: auto;
}

.dock-icon {
  font-size: 18px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
}

.dock-button strong {
  font-size: 12px;
}

html[dir="ltr"] body {
  direction: ltr;
}

.table-screen,
.poker-table-board,
.table-seats,
.player-seat,
.seat-cards,
.community-row,
.pot-chip-layer,
.pot-display,
.table-actions,
.action-buttons,
.bet-slider-panel {
  direction: ltr;
}

.layout-toolbar {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 20px);
  padding: 8px;
  border: 1px solid rgba(98, 215, 255, 0.42);
  border-radius: 8px;
  background: rgba(2, 8, 15, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 140, 255, 0.08);
  backdrop-filter: blur(14px);
}

.layout-toolbar button {
  height: 34px;
  border: 1px solid rgba(98, 215, 255, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(7, 23, 43, 0.9);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.layout-toolbar button.active {
  border-color: rgba(217, 180, 90, 0.72);
  color: var(--gold-soft);
  background: rgba(87, 61, 16, 0.92);
}

.layout-toolbar-status {
  min-width: 82px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

body.layout-grid-enabled::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background:
    linear-gradient(rgba(98, 215, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 215, 255, 0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, black 9%, black 91%, transparent);
}

body.layout-edit-mode .layout-editable {
  cursor: move;
  touch-action: none;
}

body.layout-edit-mode .layout-editable:hover {
  outline: 1px dashed rgba(98, 215, 255, 0.58);
  outline-offset: 3px;
}

body.layout-edit-mode .layout-selected {
  outline: 2px solid var(--gold-soft);
  outline-offset: 4px;
}

.layout-selection-box {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border: 1px solid rgba(255, 228, 163, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.42), 0 0 24px rgba(0, 140, 255, 0.32);
}

.layout-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(2, 8, 15, 0.9);
  background: var(--gold-soft);
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.layout-handle.nw {
  left: -8px;
  top: -8px;
  cursor: nwse-resize;
}

.layout-handle.ne {
  right: -8px;
  top: -8px;
  cursor: nesw-resize;
}

.layout-handle.sw {
  left: -8px;
  bottom: -8px;
  cursor: nesw-resize;
}

.layout-handle.se {
  right: -8px;
  bottom: -8px;
  cursor: nwse-resize;
}

@media (max-width: 980px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    height: 56px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 12px;
  }

  .auth-screen {
    min-height: auto;
    gap: 18px;
  }

  .auth-panel {
    padding: 20px;
  }

  .lobby-hero,
  .active-session,
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }

  body.lobby-active .lobby-hero {
    align-items: flex-end;
  }

  body.lobby-active .player-strip {
    left: 12px;
    right: 12px;
    top: max(10px, env(safe-area-inset-top));
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
  }

  body.lobby-active .player-copy {
    min-width: 0;
  }

  body.lobby-active .player-copy strong,
  body.lobby-active .wallet-pill strong {
    font-size: 16px;
  }

  body.lobby-active .wallet-pill {
    width: auto;
    min-width: 0;
    margin-inline-start: auto;
  }

  .player-strip {
    flex-wrap: wrap;
  }

  .wallet-pill {
    width: 100%;
  }

  .country-pill {
    width: 100%;
  }

  .lobby-actions {
    width: min(500px, calc(100vw - 14px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }

  .lobby-actions .ghost-button {
    height: 58px;
    font-size: 11px;
  }

  .lobby-actions .ghost-button::before {
    width: 25px;
    height: 25px;
  }

  .finance-head {
    align-items: stretch;
  }

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

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

  .tables-section {
    margin-top: 12px;
  }

  .section-title {
    gap: 6px;
    margin-bottom: 8px;
  }

  .section-title strong {
    font-size: 18px;
  }

  .table-card {
    padding: 6px;
    gap: 6px;
  }

  .lobby-table-visual {
    aspect-ratio: 1.75 / 1;
  }

  .lobby-table-overlay {
    padding: 7px;
    gap: 6px;
  }

  .table-number-label {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .table-badge {
    font-size: clamp(16px, 5vw, 20px);
  }

  .players-count {
    padding: 3px 6px;
    font-size: 11px;
  }

  .lobby-table-meta {
    gap: 5px;
  }

  .lobby-table-meta > div {
    padding: 5px;
  }

  .lobby-table-meta span {
    font-size: 9px;
  }

  .lobby-table-meta strong {
    font-size: 11px;
  }

  .table-card .join-button {
    height: 36px;
    font-size: 12px;
  }

  .mini-cards img {
    width: 28px;
  }

  .table-screen {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 4px;
  }

  .table-status-bar {
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  .table-status-bar > div:first-child {
    min-width: 0;
    max-width: 58vw;
    padding: 7px 10px;
    border-radius: 14px;
  }

  .table-status-bar strong {
    margin: 0;
    font-size: 12px;
  }

  .table-status-actions {
    display: flex;
    gap: 4px;
  }

  .table-status-actions .ghost-button,
  .table-status-actions .danger-button,
  .ws-state {
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    font-size: 11px;
  }

  .poker-table-board {
    min-height: 0;
    height: 100%;
    border-radius: 18px;
    overflow: visible;
  }

  .poker-table-board::before {
    inset: 0;
  }

  .player-seat {
    width: 82px;
    min-height: 94px;
  }

  .seat-name {
    min-width: 76px;
    max-width: 78px;
    margin-top: -8px;
    padding: 7px 7px 0;
    border-radius: 13px 13px 0 0;
    font-size: 10px;
  }

  .seat-avatar {
    width: 46px;
    height: 46px;
    border-width: 2px;
  }

  .player-seat:not(.seat-0) .seat-avatar {
    margin-top: 26px;
    position: relative;
    z-index: 14;
  }

  .seat-balance,
  .seat-stack {
    min-width: 76px;
    padding: 0 7px 6px;
    border-radius: 0 0 13px 13px;
    font-size: 10px;
  }

  .seat-bet {
    top: -14px;
    min-width: 62px;
    max-width: 104px;
    padding: 4px 7px;
    font-size: 9px;
  }

  .seat-cards {
    left: 50%;
    right: auto;
    top: -3%;
    min-width: 76px;
    min-height: 38px;
    transform: translateX(-50%);
    justify-content: center;
  }

  .seat-cards img {
    width: 34px;
    border-radius: 5px;
  }

  .seat-0 {
    left: 50%;
    bottom: 5.5%;
    width: 118px;
    min-height: 132px;
    z-index: 12;
    transform: translateX(-50%);
  }

  .seat-0 .seat-cards {
    top: -7%;
    min-width: 112px;
    z-index: 14;
  }

  .seat-0 .seat-cards img {
    width: 50px;
  }

  .seat-0 .seat-avatar {
    width: 62px;
    height: 62px;
    margin-top: 30px;
    z-index: 13;
  }

  .seat-0 .seat-name,
  .seat-0 .seat-balance,
  .seat-0 .seat-stack {
    min-width: 104px;
    max-width: 108px;
  }

  .seat-0 .seat-name {
    margin-top: -9px;
    padding-top: 8px;
  }

  .seat-0 .seat-balance {
    display: block;
    color: var(--gold-soft);
  }

  .seat-1,
  .seat-2 {
    right: 1%;
  }

  .seat-4,
  .seat-5 {
    left: 1%;
  }

  .seat-3 {
    top: 1.2%;
  }

  .community-row img,
  .hero-hand img {
    width: clamp(32px, 9.6vw, 50px);
  }

  .community-row {
    top: 51%;
    gap: 3px;
  }

  .hero-zone {
    bottom: 11%;
    gap: 4px;
  }

  .hero-stack {
    padding: 3px 8px;
    font-size: 10px;
  }

  .pot-display {
    top: 33%;
    min-width: 82px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .pot-chip-layer {
    z-index: 37;
  }

  .pot-chip {
    top: 60%;
    width: clamp(14px, 4.2vw, 22px);
  }

  .big-win-panel {
    inset: 0;
    min-width: 0;
    padding: max(24px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .table-countdown {
    left: auto;
    right: 2.5%;
    top: 1%;
    transform: none;
    padding: 3px 8px;
    font-size: 11px;
  }

  .bet-slider-panel {
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .bet-slider-panel strong {
    min-width: 58px;
    font-size: 11px;
  }

  .action-clock {
    min-width: 72px;
  }

  .action-clock span {
    font-size: 10px;
  }

  .action-clock-bar {
    width: 72px;
    height: 6px;
  }

  .table-actions {
    min-height: 118px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 8px 8px 10px;
    border-radius: 20px;
    overflow: visible;
  }

  .action-buttons {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
  }

  .table-actions .ghost-button,
  .table-actions .danger-button {
    height: 50px;
    padding: 0 4px;
    border-radius: 14px;
    font-size: 14px;
  }

  .table-bottom-dock {
    left: 7px;
    top: 38px;
    justify-content: flex-start;
    padding: 0;
  }

  .dock-button {
    min-width: 72px;
    height: 34px;
    border-radius: 999px;
    padding: 0 9px;
  }

  .dock-icon {
    font-size: 18px;
  }

  .dock-button strong {
    font-size: 11px;
  }

  .layout-toolbar {
    left: 10px;
    right: 10px;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }

  .layout-toolbar button {
    flex: 1 1 42%;
  }

  .layout-toolbar-status {
    width: 100%;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.table-active .app-shell {
    padding: 4px 6px;
  }

  body.table-active main {
    height: 100%;
  }

  .table-screen {
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 4px;
  }

  .table-status-bar {
    padding: 4px 6px;
  }

  .table-status-bar span:not(.ws-state) {
    display: none;
  }

  .table-status-bar strong {
    font-size: 12px;
    margin: 0;
  }

  .table-status-actions .ghost-button,
  .table-status-actions .danger-button,
  .ws-state {
    height: 26px;
    font-size: 11px;
  }

  .table-actions {
    min-height: 52px;
    padding: 5px 6px;
    display: grid;
    grid-template-columns: 76px minmax(160px, 1fr) minmax(250px, auto);
    gap: 6px;
    border-radius: 16px;
    overflow: visible;
  }

  .action-clock {
    min-width: 76px;
  }

  .action-clock span {
    font-size: 11px;
  }

  .action-clock-bar {
    width: 76px;
    height: 6px;
  }

  .bet-slider-panel {
    min-width: 0;
  }

  .bet-slider-panel strong {
    min-width: 68px;
    font-size: 11px;
  }

  .action-buttons {
    grid-column: auto;
    display: flex;
    gap: 4px;
  }

  .table-actions .ghost-button,
  .table-actions .danger-button {
    height: 36px;
    min-width: 58px;
    padding: 0 8px;
    border-radius: 12px;
    font-size: 12px;
  }

  .player-seat {
    width: 92px;
    min-height: 96px;
    gap: 2px;
  }

  .seat-0 {
    width: 124px;
    min-height: 126px;
    bottom: 4%;
    z-index: 12;
  }

  .seat-0 .seat-cards {
    top: 10px;
    min-width: 128px;
    z-index: 43;
  }

  .seat-0 .seat-cards img {
    width: 58px;
  }

  .seat-0 .seat-avatar {
    width: 62px;
    height: 62px;
    margin-top: 48px;
    z-index: 47;
  }

  .seat-0 .seat-name,
  .seat-0 .seat-balance,
  .seat-0 .seat-stack {
    min-width: 108px;
    max-width: 112px;
  }

  .seat-0 .seat-balance {
    display: block;
    color: var(--gold-soft);
  }

  .seat-avatar {
    width: 46px;
    height: 46px;
  }

  .player-seat:not(.seat-0) .seat-avatar {
    margin-top: 28px;
    position: relative;
    z-index: 43;
  }

  .seat-cards {
    left: 50%;
    right: auto;
    top: -2px;
    min-width: 82px;
    min-height: 40px;
    transform: translateX(-50%);
    justify-content: center;
  }

  .seat-cards img {
    width: 36px;
    border-radius: 5px;
  }

  .community-row img,
  .hero-hand img {
    width: clamp(32px, 5.7vw, 48px);
  }

  .hero-stack,
  .pot-display {
    font-size: 10px;
  }

  .pot-chip {
    top: 59%;
    width: clamp(14px, 3.8vw, 22px);
  }

  .big-win-panel {
    inset: 0;
    min-width: 0;
    padding: max(20px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .table-bottom-dock {
    left: 7px;
    top: 36px;
    justify-content: flex-start;
    padding: 0;
  }

  .dock-button {
    min-width: 68px;
    height: 32px;
    border-radius: 999px;
    padding: 0 9px;
  }

  .dock-icon {
    font-size: 16px;
  }

  .dock-button strong {
    font-size: 10px;
  }

  .topbar {
    height: 48px;
  }

  .auth-screen {
    min-height: auto;
    grid-template-columns: minmax(300px, 420px);
    justify-content: center;
    gap: 18px;
  }

  .auth-panel {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  body.table-active {
    overflow: hidden;
  }

  body.table-active .app-shell {
    height: 100dvh;
    min-height: 100dvh;
    padding: 4px;
    overflow: hidden;
  }

  body.table-active main {
    height: 100%;
    min-height: 0;
    max-width: none;
  }

  .table-screen {
    position: relative;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: 34px minmax(346px, 1fr) minmax(118px, auto);
    gap: 4px;
    overflow: hidden;
  }

  .table-status-bar {
    min-height: 34px;
    padding: 0;
    overflow: hidden;
  }

  .table-status-bar > div:first-child {
    max-width: 64vw;
    padding: 5px 9px;
  }

  .poker-table-board {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    overflow: hidden;
    border-radius: 18px;
  }

  .poker-table-board::before {
    inset: 0;
    background-size: contain;
    opacity: 1;
  }

  .table-countdown {
    display: block !important;
    left: auto;
    right: 8px;
    top: 3px;
    transform: none;
    z-index: 40;
    min-width: 62px;
    padding: 4px 10px;
    font-size: 12px;
  }

  .pot-display {
    display: grid !important;
    top: 27%;
    z-index: 35;
    min-width: 84px;
    padding: 4px 8px;
    font-size: 10px;
  }

  .pot-chip-layer {
    z-index: 37;
  }

  .pot-chip {
    top: 58%;
    width: clamp(14px, 4.4vw, 22px);
  }

  .big-win-panel {
    inset: 0;
    min-width: 0;
    padding: max(24px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .community-row {
    display: flex !important;
    top: 47%;
    z-index: 36;
    width: auto;
    min-height: 42px;
    gap: 3px;
  }

  .community-row img {
    display: block;
    width: clamp(32px, 9.5vw, 48px);
  }

  .table-seats {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 38;
    pointer-events: auto;
  }

  .player-seat {
    display: grid !important;
    position: absolute;
    width: 88px;
    min-height: 106px;
    z-index: 38;
  }

  .player-seat:not(.seat-0) .seat-avatar {
    margin-top: 30px;
    position: relative;
    z-index: 43;
  }

  .player-seat:not(.seat-0) .seat-cards {
    display: flex !important;
    left: 50%;
    right: auto;
    top: 2px;
    transform: translateX(-50%);
    justify-content: center;
    min-width: 88px;
    min-height: 42px;
    z-index: 40;
  }

  .player-seat:not(.seat-0) .seat-cards img {
    display: block;
    width: 38px;
    border-radius: 5px;
  }

  .seat-0 {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 8px;
    width: 124px;
    min-height: 138px;
    transform: translateX(-50%);
    z-index: 45;
  }

  .seat-0 .seat-cards {
    display: flex !important;
    left: 50%;
    right: auto;
    top: 12px;
    transform: translateX(-50%);
    min-width: 126px;
    min-height: 56px;
    z-index: 43;
  }

  .seat-0 .seat-cards img {
    display: block;
    width: 56px;
  }

  .seat-0 .seat-avatar {
    display: block !important;
    width: 64px;
    height: 64px;
    margin-top: 48px;
    z-index: 47;
  }

  .seat-0 .seat-name,
  .seat-0 .seat-balance {
    display: block !important;
    min-width: 106px;
    max-width: 110px;
    font-size: 10px;
    z-index: 47;
  }

  .seat-0 .seat-name {
    margin-top: -8px;
    padding: 7px 8px 0;
  }

  .seat-0 .seat-balance {
    color: var(--gold-soft);
    padding: 0 8px 6px;
  }

  .seat-1 {
    right: 2%;
    bottom: 17%;
  }

  .seat-2 {
    right: 2%;
    top: 17%;
  }

  .seat-3 {
    left: 50%;
    top: 4%;
    transform: translateX(-50%);
  }

  .seat-4 {
    left: 2%;
    top: 17%;
  }

  .seat-5 {
    left: 2%;
    bottom: 17%;
  }

  .table-actions {
    min-height: 118px;
    max-height: none;
    padding: 8px 7px 10px;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 6px;
    overflow: visible;
  }

  .table-bottom-dock {
    left: 7px;
    top: 38px;
    min-height: 0;
    padding: 0;
  }
}

@property --turn-deg {
  syntax: '<angle>';
  inherits: true;
  initial-value: 360deg;
}

.seat-avatar-ring {
  --turn-deg: 360deg;
  --turn-duration: 15s;
  --turn-color: #2df06c;
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 4px;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
  z-index: 4;
}

.seat-avatar-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #06111f;
  z-index: 1;
  pointer-events: none;
}

.seat-avatar-ring::after {
  content: attr(data-turn-seconds);
  position: absolute;
  right: -4px;
  bottom: -2px;
  min-width: 20px;
  height: 20px;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: var(--turn-color);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  z-index: 5;
}

.seat-avatar-ring .seat-avatar {
  position: relative;
  z-index: 2;
  margin-top: 0 !important;
}

.seat-avatar-ring .country-flag {
  left: -1px;
  right: auto;
  bottom: 0;
  width: clamp(19px, 2.2vw, 24px);
  height: clamp(14px, 1.55vw, 17px);
  z-index: 6;
}

.player-seat.turn .seat-avatar-ring {
  background:
    conic-gradient(var(--turn-color) var(--turn-deg), rgba(255, 255, 255, 0.14) 0deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  box-shadow: 0 0 18px color-mix(in srgb, var(--turn-color) 72%, transparent), 0 12px 28px rgba(0, 0, 0, 0.42);
  animation: avatarTurnDrain var(--turn-duration, 15s) linear forwards;
}

@keyframes avatarTurnDrain {
  to {
    --turn-deg: 0deg;
  }
}

.player-seat.turn .seat-avatar-ring::after {
  display: grid;
}

.player-seat:not(.seat-0) .seat-avatar-ring {
  margin-top: clamp(30px, 3.6vw, 48px);
  z-index: 43;
}

.seat-0 .seat-avatar-ring {
  margin-top: clamp(38px, 4.2vw, 54px);
  z-index: 47;
}

@media (max-width: 640px) {
  .seat-avatar-ring {
    padding: 3px;
  }

  .seat-avatar-ring::before {
    inset: 3px;
  }

  .seat-avatar-ring::after {
    right: -5px;
    bottom: -3px;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .player-seat:not(.seat-0) .seat-avatar-ring {
    margin-top: 30px;
  }

  .seat-0 .seat-avatar-ring {
    margin-top: 48px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .player-seat:not(.seat-0) .seat-avatar-ring {
    margin-top: 28px;
  }

  .seat-0 .seat-avatar-ring {
    margin-top: 48px;
  }
}

body.table-active,
body.table-active .table-screen,
body.table-active .table-status-bar,
body.table-active .poker-table-board,
body.table-active .table-seats,
body.table-active .player-seat,
body.table-active .seat-cards,
body.table-active .community-row,
body.table-active .pot-display,
body.table-active .table-actions,
body.table-active .action-clock,
body.table-active .bet-slider-panel,
body.table-active .action-buttons,
body.table-active .table-bottom-dock {
  direction: ltr !important;
}

body.table-active .seat-name,
body.table-active .seat-balance,
body.table-active .seat-bet,
body.table-active .table-countdown,
body.table-active .pot-display,
body.table-active .action-clock,
body.table-active .table-actions button {
  text-align: center;
  unicode-bidi: isolate;
}

/* Final premium fixed player bar */
body.lobby-active .player-strip {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 140 !important;
  width: min(560px, calc(100vw - 24px)) !important;
  min-height: 64px;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 226, 157, 0.28) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(90deg, rgba(255, 232, 176, 0.10), transparent 20%, transparent 80%, rgba(0, 152, 255, 0.10)),
    linear-gradient(180deg, rgba(8, 29, 51, 0.92), rgba(2, 8, 16, 0.96)) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.50),
    0 0 34px rgba(0, 140, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(255, 226, 157, 0.08) !important;
  backdrop-filter: blur(18px);
  overflow: hidden;
}

body.lobby-active .player-strip::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 232, 176, 0.18), transparent 28%),
    radial-gradient(circle at 88% 100%, rgba(0, 155, 255, 0.16), transparent 32%);
  opacity: 0.9;
}

body.lobby-active .player-strip > * {
  position: relative;
  z-index: 1;
}

body.lobby-active .avatar-frame {
  width: 50px !important;
  height: 50px !important;
  padding: 2px !important;
  border: 1px solid rgba(255, 233, 181, 0.42);
  background:
    linear-gradient(145deg, #fff3c4, #28b7ff 48%, #06192e) !important;
  box-shadow:
    0 0 0 3px rgba(255, 224, 156, 0.08),
    0 0 22px rgba(0, 140, 255, 0.26) !important;
}

body.lobby-active .player-copy {
  min-width: 0 !important;
  display: grid;
  gap: 1px;
}

body.lobby-active .player-copy span,
body.lobby-active .wallet-pill span {
  color: rgba(220, 237, 255, 0.68) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.1;
}

body.lobby-active .player-copy strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff !important;
  font-size: clamp(15px, 2.8vw, 19px) !important;
  font-weight: 950 !important;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(0, 140, 255, 0.18);
}

body.lobby-active .wallet-pill {
  width: auto !important;
  min-width: 124px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 226, 157, 0.22) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 226, 157, 0.12), rgba(0, 140, 255, 0.06)),
    rgba(0, 7, 15, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 18px rgba(255, 206, 100, 0.08);
}

body.lobby-active .wallet-pill strong {
  color: #ffe8ad !important;
  font-size: clamp(14px, 2.4vw, 18px) !important;
  font-weight: 950 !important;
  line-height: 1.1;
  text-shadow:
    0 0 16px rgba(255, 212, 117, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.55);
}

body.lobby-active .country-pill {
  display: none !important;
}

@media (max-width: 420px) {
  body.lobby-active .player-strip {
    width: calc(100vw - 14px) !important;
    min-height: 58px;
    gap: 7px !important;
    padding: 6px 7px !important;
  }

  body.lobby-active .avatar-frame {
    width: 44px !important;
    height: 44px !important;
  }

  body.lobby-active .wallet-pill {
    min-width: 102px !important;
    padding: 7px 8px !important;
  }
}

/* Premium casino lobby skin */
body:not(.table-active) {
  background:
    radial-gradient(ellipse at 50% -18%, rgba(44, 171, 255, 0.24), transparent 38rem),
    radial-gradient(circle at 92% 8%, rgba(244, 206, 132, 0.14), transparent 18rem),
    radial-gradient(circle at 8% 18%, rgba(0, 102, 255, 0.14), transparent 20rem),
    linear-gradient(135deg, #02040a 0%, #07121f 42%, #010308 100%);
}

body:not(.table-active)::before {
  opacity: 0.38;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 84px 84px;
}

body:not(.table-active)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 221, 148, 0.10), transparent 18%, transparent 82%, rgba(255, 221, 148, 0.10)),
    radial-gradient(ellipse at 50% 100%, rgba(0, 140, 255, 0.15), transparent 52%);
  mix-blend-mode: screen;
}

body.lobby-active .app-shell {
  min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

body.lobby-active main {
  max-width: 1180px;
}

body.lobby-active .topbar {
  height: 46px;
  align-items: flex-start;
}

body.lobby-active .top-actions {
  gap: 8px;
}

body.lobby-active .icon-button,
body.lobby-active .lang-button {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 222, 151, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(13, 37, 61, 0.78), rgba(4, 12, 23, 0.90));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

body.lobby-active .lobby-screen {
  min-height: calc(100dvh - 70px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding-top: 0;
  padding-bottom: 86px;
}

body.lobby-active .lobby-hero {
  margin: 0 0 10px;
}

body.lobby-active .player-strip {
  top: max(12px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 222, 151, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 222, 151, 0.13), transparent 44%),
    linear-gradient(180deg, rgba(7, 24, 42, 0.88), rgba(2, 8, 16, 0.92));
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.44),
    0 0 28px rgba(0, 140, 255, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.lobby-active .avatar-frame {
  width: 52px;
  height: 52px;
  padding: 2px;
  background:
    linear-gradient(145deg, #fff2bd, #168dff 48%, #05223e);
  box-shadow:
    0 0 0 1px rgba(255, 232, 176, 0.30),
    0 0 24px rgba(0, 140, 255, 0.22);
}

body.lobby-active .player-copy span,
body.lobby-active .wallet-pill span {
  color: rgba(217, 232, 249, 0.70);
  font-size: 11px;
  font-weight: 800;
}

body.lobby-active .player-copy strong {
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0;
}

body.lobby-active .wallet-pill {
  min-width: 126px;
  border-color: rgba(255, 222, 151, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 222, 151, 0.10), rgba(0, 140, 255, 0.05)),
    rgba(1, 8, 17, 0.54);
}

body.lobby-active .wallet-pill strong {
  color: #ffe8ad;
  font-size: 17px;
  text-shadow: 0 0 14px rgba(255, 212, 117, 0.22);
}

body.lobby-active .tables-section {
  margin-top: 8px;
  align-self: start;
}

body.lobby-active .section-title {
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 2px;
  align-items: flex-end;
}

body.lobby-active .section-title span {
  color: #ffe5a6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

body.lobby-active .section-title strong {
  margin-top: 1px;
  color: #ffffff;
  font-size: clamp(20px, 2vw, 27px);
  font-weight: 950;
  text-shadow: 0 0 26px rgba(0, 140, 255, 0.18);
}

body.lobby-active #lobbyStatus {
  color: rgba(217, 232, 249, 0.74);
  font-size: 12px;
}

body.lobby-active .tables-grid {
  width: min(620px, 100%);
  margin-inline: auto;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

body.lobby-active .table-card {
  padding: 7px;
  gap: 7px;
  border: 1px solid rgba(255, 224, 156, 0.20);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 230, 168, 0.08), transparent 24%),
    linear-gradient(145deg, rgba(9, 30, 52, 0.94), rgba(1, 7, 14, 0.96));
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.44),
    0 0 38px rgba(0, 140, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.lobby-active .table-card::before {
  background:
    linear-gradient(90deg, transparent, rgba(255, 235, 181, 0.20), transparent),
    radial-gradient(circle at 50% 0%, rgba(0, 140, 255, 0.22), transparent 48%);
  opacity: 0.8;
}

body.lobby-active .table-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 230, 168, 0.42);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.52),
    0 0 42px rgba(0, 140, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.lobby-active .table-card.locked {
  opacity: 0.52;
  filter: grayscale(0.28);
}

body.lobby-active .lobby-table-visual {
  aspect-ratio: 1.82 / 1;
  border-radius: 15px;
  border: 1px solid rgba(255, 224, 156, 0.18);
  background:
    radial-gradient(ellipse at center, rgba(0, 153, 255, 0.28), rgba(0, 45, 84, 0.24) 46%, transparent 68%),
    #020811;
  box-shadow:
    inset 0 0 0 1px rgba(98, 215, 255, 0.13),
    inset 0 -28px 44px rgba(0, 0, 0, 0.32),
    0 16px 30px rgba(0, 0, 0, 0.30);
}

body.lobby-active .lobby-table-image {
  filter: saturate(1.08) contrast(1.05) brightness(0.92);
  transform: scale(1.012);
}

body.lobby-active .lobby-table-overlay {
  padding: 10px;
  display: block;
  background:
    linear-gradient(180deg, rgba(0, 4, 12, 0.84), rgba(0, 10, 22, 0.06) 44%, rgba(0, 4, 12, 0.78)),
    radial-gradient(circle at 50% 18%, rgba(255, 232, 176, 0.10), transparent 42%);
}

body.lobby-active .table-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

body.lobby-active .table-number-label {
  margin: 0 0 3px;
  color: rgba(231, 242, 255, 0.70);
  font-size: 10px;
  font-weight: 850;
}

body.lobby-active .table-badge {
  color: #fff0b8;
  font-size: clamp(18px, 1.7vw, 28px);
  font-weight: 950;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.70),
    0 0 20px rgba(255, 210, 118, 0.22);
}

body.lobby-active .players-count {
  min-width: 48px;
  padding: 5px 8px;
  border-color: rgba(98, 215, 255, 0.26);
  border-radius: 999px;
  color: #dff7ff;
  background:
    linear-gradient(180deg, rgba(12, 89, 142, 0.58), rgba(2, 12, 24, 0.74));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
  font-size: 12px;
}

body.lobby-active .lobby-table-meta {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: min(64%, 430px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(54px, 10vw, 108px);
  direction: rtl;
}

body.lobby-active .lobby-table-meta > div {
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: block;
  text-align: center;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
}

body.lobby-active .lobby-table-meta > div::after {
  content: "";
  display: block;
  width: min(78px, 72%);
  height: 2px;
  margin: 6px auto 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 229, 163, 0.86), rgba(75, 205, 255, 0.68), transparent);
  box-shadow:
    0 0 12px rgba(255, 210, 118, 0.30),
    0 0 18px rgba(0, 140, 255, 0.18);
}

body.lobby-active .lobby-table-meta span {
  display: block;
  color: rgba(216, 236, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.92),
    0 0 16px rgba(0, 140, 255, 0.24);
}

body.lobby-active .lobby-table-meta strong {
  display: block;
  margin-top: 2px;
  color: #ffe7a6;
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 950;
  line-height: 1;
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.68);
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.96),
    0 0 22px rgba(255, 204, 103, 0.34),
    0 0 34px rgba(0, 140, 255, 0.18);
}

body.lobby-active .table-card .join-button {
  height: 42px;
  border: 1px solid rgba(255, 226, 154, 0.38);
  border-radius: 14px;
  color: #06101d;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.34), transparent 24%, transparent 76%, rgba(255, 255, 255, 0.22)),
    linear-gradient(180deg, #fff0b8, #d4a84a 54%, #9e7622);
  box-shadow:
    0 12px 28px rgba(255, 198, 92, 0.17),
    0 8px 20px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
  font-size: 13px;
  font-weight: 950;
}

body.lobby-active .table-card.locked .join-button {
  color: rgba(222, 235, 246, 0.70);
  border-color: rgba(114, 138, 160, 0.24);
  background: linear-gradient(180deg, rgba(35, 49, 64, 0.92), rgba(13, 20, 29, 0.95));
  box-shadow: none;
}

body.lobby-active .lobby-actions {
  width: min(470px, calc(100vw - 20px));
  bottom: max(10px, env(safe-area-inset-bottom));
  gap: 0;
  padding: 6px;
  border: 1px solid rgba(255, 224, 156, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 230, 168, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(7, 24, 43, 0.94), rgba(2, 8, 16, 0.96));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.54),
    0 0 44px rgba(0, 140, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.lobby-active .lobby-actions .ghost-button {
  height: 58px;
  border: 0;
  border-radius: 16px;
  color: rgba(245, 250, 255, 0.94);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 900;
}

body.lobby-active .lobby-actions .ghost-button + .ghost-button {
  border-inline-start: 1px solid rgba(255, 224, 156, 0.13);
}

body.lobby-active .lobby-actions .ghost-button::before {
  width: 32px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 230, 168, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 230, 168, 0.16), rgba(0, 140, 255, 0.08)),
    rgba(2, 10, 21, 0.66);
  box-shadow:
    0 0 16px rgba(0, 140, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #ffe8ad;
  font-size: 16px;
  line-height: 1;
  content: "$";
}

body.lobby-active .lobby-actions #withdrawButton::before {
  content: "⇩";
  color: #e9f8ff;
}

body.lobby-active .lobby-actions #logoutButton::before {
  content: "↗";
  color: #ffd7dc;
}

body.lobby-active .lobby-actions .ghost-button:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 230, 168, 0.10), rgba(0, 140, 255, 0.08));
}

body.lobby-active .lobby-actions #logoutButton {
  color: #ffdfe3;
  background: transparent;
}

body.lobby-active .finance-panel,
body.lobby-active .active-session,
body.lobby-active .buyin-modal-panel,
body.lobby-active .avatar-modal-panel {
  border-color: rgba(255, 224, 156, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 224, 156, 0.12), transparent 58%),
    linear-gradient(180deg, rgba(7, 24, 43, 0.96), rgba(2, 8, 16, 0.98));
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  body.lobby-active .tables-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.lobby-active .app-shell {
    padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  }

  body.lobby-active .topbar {
    height: 44px;
  }

  body.lobby-active .lobby-screen {
    min-height: calc(100dvh - 54px);
    padding-bottom: 82px;
  }

  body.lobby-active .player-strip {
    left: 8px;
    right: 8px;
    top: max(8px, env(safe-area-inset-top));
    padding: 7px 8px;
    border-radius: 18px;
  }

  body.lobby-active .avatar-frame {
    width: 46px;
    height: 46px;
  }

  body.lobby-active .player-copy span,
  body.lobby-active .wallet-pill span {
    font-size: 10px;
  }

  body.lobby-active .player-copy strong,
  body.lobby-active .wallet-pill strong {
    font-size: 14px;
  }

  body.lobby-active .wallet-pill {
    padding: 6px 8px;
  }

  body.lobby-active .section-title {
    min-height: 34px;
    margin-bottom: 7px;
  }

  body.lobby-active .section-title span {
    font-size: 10px;
  }

  body.lobby-active .section-title strong {
    font-size: 17px;
  }

  body.lobby-active .tables-grid {
    width: min(520px, 100%);
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.lobby-active .table-card {
    padding: 5px;
    gap: 5px;
    border-radius: 15px;
  }

  body.lobby-active .lobby-table-visual {
    aspect-ratio: 1.82 / 1;
    border-radius: 12px;
  }

  body.lobby-active .lobby-table-overlay {
    padding: 6px;
  }

  body.lobby-active .table-number-label {
    font-size: 8px;
  }

  body.lobby-active .table-badge {
    font-size: 15px;
  }

  body.lobby-active .players-count {
    min-width: 38px;
    padding: 3px 5px;
    font-size: 10px;
  }

  body.lobby-active .lobby-table-meta {
    top: 46%;
    width: min(70%, 340px);
    gap: clamp(34px, 11vw, 64px);
  }

  body.lobby-active .lobby-table-meta > div {
    padding: 0;
    border-radius: 0;
  }

  body.lobby-active .lobby-table-meta span {
    font-size: 8px;
  }

  body.lobby-active .lobby-table-meta strong {
    font-size: 15px;
  }

  body.lobby-active .table-card .join-button {
    height: 32px;
    border-radius: 11px;
    font-size: 11px;
  }

  body.lobby-active .lobby-actions {
    width: min(450px, calc(100vw - 14px));
    padding: 5px;
    border-radius: 18px;
  }

  body.lobby-active .lobby-actions .ghost-button {
    height: 54px;
    font-size: 11px;
  }

  body.lobby-active .lobby-actions .ghost-button::before {
    width: 28px;
    height: 23px;
    border-radius: 9px;
    font-size: 14px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  body.lobby-active .lobby-screen {
    padding-bottom: 72px;
  }

  body.lobby-active .tables-grid {
    width: min(560px, 100%);
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.lobby-active .lobby-table-visual {
    aspect-ratio: 1.72 / 1;
  }

  body.lobby-active .lobby-actions {
    width: min(430px, calc(100vw - 16px));
  }

  body.lobby-active .lobby-actions .ghost-button {
    height: 48px;
  }
}

/* Final lobby profile override: keep name/avatar/balance fixed and visible */
body.lobby-active .lobby-screen {
  padding-top: 76px !important;
}

body.lobby-active .player-strip {
  position: fixed !important;
  top: max(10px, env(safe-area-inset-top)) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 500 !important;
  width: min(560px, calc(100vw - 22px)) !important;
  min-height: 64px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 226, 157, 0.34) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 232, 176, 0.18), transparent 36%),
    linear-gradient(90deg, rgba(255, 232, 176, 0.10), transparent 22%, transparent 76%, rgba(0, 152, 255, 0.12)),
    linear-gradient(180deg, rgba(8, 29, 51, 0.94), rgba(2, 8, 16, 0.97)) !important;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(0, 140, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(255, 226, 157, 0.10) !important;
  backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
}

body.lobby-active .player-strip > * {
  position: relative !important;
  z-index: 1 !important;
}

body.lobby-active .avatar-frame {
  width: 50px !important;
  height: 50px !important;
  padding: 2px !important;
  border: 1px solid rgba(255, 233, 181, 0.44) !important;
  background: linear-gradient(145deg, #fff3c4, #28b7ff 48%, #06192e) !important;
  box-shadow:
    0 0 0 3px rgba(255, 224, 156, 0.08),
    0 0 22px rgba(0, 140, 255, 0.26) !important;
}

body.lobby-active .player-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 1px !important;
}

body.lobby-active .player-copy span,
body.lobby-active .wallet-pill span {
  color: rgba(220, 237, 255, 0.68) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

body.lobby-active .player-copy strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  font-size: clamp(15px, 2.8vw, 19px) !important;
  font-weight: 950 !important;
  line-height: 1.15 !important;
  text-shadow: 0 0 18px rgba(0, 140, 255, 0.18) !important;
}

body.lobby-active .wallet-pill {
  width: auto !important;
  min-width: 124px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(255, 226, 157, 0.24) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 226, 157, 0.12), rgba(0, 140, 255, 0.06)),
    rgba(0, 7, 15, 0.54) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 18px rgba(255, 206, 100, 0.08) !important;
}

body.lobby-active .wallet-pill strong {
  color: #ffe8ad !important;
  font-size: clamp(14px, 2.4vw, 18px) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-shadow:
    0 0 16px rgba(255, 212, 117, 0.24),
    0 2px 8px rgba(0, 0, 0, 0.55) !important;
}

body.lobby-active .country-pill {
  display: none !important;
}

@media (max-width: 420px) {
  body.lobby-active .lobby-screen {
    padding-top: 68px !important;
  }

  body.lobby-active .player-strip {
    width: calc(100vw - 14px) !important;
    min-height: 58px !important;
    gap: 7px !important;
    padding: 6px 7px !important;
  }

  body.lobby-active .avatar-frame {
    width: 44px !important;
    height: 44px !important;
  }

  body.lobby-active .wallet-pill {
    min-width: 102px !important;
    padding: 7px 8px !important;
  }
}

/* Locked lobby profile bar: never managed by the visual editor */
body.lobby-active .lobby-screen {
  padding-top: 84px !important;
}

body.lobby-active .lobby-fixed-profile {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 1200 !important;
  width: min(540px, calc(100vw - 32px)) !important;
  min-height: 66px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  direction: rtl !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(255, 226, 150, 0.42) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 233, 170, 0.22), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(0, 160, 255, 0.20), transparent 38%),
    linear-gradient(135deg, rgba(11, 35, 62, 0.97), rgba(1, 8, 17, 0.98) 72%) !important;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.62),
    0 0 42px rgba(0, 150, 255, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 220, 135, 0.12) !important;
  backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
}

body.lobby-active .lobby-fixed-profile::before {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, transparent, rgba(255, 234, 174, 0.16), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 45%) !important;
  opacity: 0.9 !important;
}

body.lobby-active .lobby-fixed-profile > * {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
}

body.lobby-active .lobby-fixed-profile .avatar-frame {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  padding: 2px !important;
  border: 1px solid rgba(255, 236, 184, 0.58) !important;
  border-radius: 50% !important;
  background:
    conic-gradient(from 210deg, #fff1b9, #19a8ff, #071a31, #d9a94a, #fff1b9) !important;
  box-shadow:
    0 0 0 3px rgba(255, 224, 150, 0.10),
    0 0 24px rgba(0, 155, 255, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.45) !important;
}

body.lobby-active .lobby-fixed-profile .avatar-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

body.lobby-active .lobby-fixed-profile .player-copy {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: grid !important;
  gap: 2px !important;
  text-align: right !important;
  direction: rtl !important;
}

body.lobby-active .lobby-fixed-profile .player-copy span,
body.lobby-active .lobby-fixed-profile .wallet-pill span {
  display: block !important;
  color: rgba(219, 238, 255, 0.68) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}

body.lobby-active .lobby-fixed-profile .player-copy strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  font-size: clamp(15px, 2.2vw, 20px) !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
  text-shadow: 0 0 18px rgba(0, 151, 255, 0.25) !important;
}

body.lobby-active .lobby-fixed-profile .wallet-pill {
  width: auto !important;
  min-width: 132px !important;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(255, 224, 145, 0.33) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 229, 155, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 222, 144, 0.13), rgba(0, 142, 255, 0.07)),
    rgba(0, 6, 14, 0.56) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 24px rgba(255, 205, 92, 0.10) !important;
  text-align: center !important;
}

body.lobby-active .lobby-fixed-profile .wallet-pill strong {
  display: block !important;
  color: #ffe7aa !important;
  font-size: clamp(14px, 2vw, 18px) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-shadow:
    0 0 18px rgba(255, 218, 124, 0.26),
    0 2px 8px rgba(0, 0, 0, 0.58) !important;
}

body.lobby-active .lobby-fixed-profile .country-pill {
  display: none !important;
}

@media (max-width: 520px) {
  body.lobby-active .lobby-screen {
    padding-top: 78px !important;
  }

  body.lobby-active .lobby-fixed-profile {
    top: max(8px, env(safe-area-inset-top)) !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    min-height: 60px !important;
    gap: 8px !important;
    padding: 7px 8px !important;
  }

  body.lobby-active .lobby-fixed-profile .avatar-frame {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  body.lobby-active .lobby-fixed-profile .wallet-pill {
    min-width: 104px !important;
    padding: 7px 9px !important;
  }

  body.lobby-active .lobby-fixed-profile .player-copy span,
  body.lobby-active .lobby-fixed-profile .wallet-pill span {
    font-size: 9px !important;
  }
}

/* Rebuilt lobby player profile: fixed outside page scroll */
.old-lobby-profile-removed {
  display: none !important;
}

.lobby-profile-panel {
  display: none !important;
}

body.lobby-active .lobby-screen {
  padding-top: 90px !important;
}

body.lobby-active .lobby-profile-panel {
  position: fixed !important;
  top: max(12px, env(safe-area-inset-top)) !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 2200 !important;
  width: min(545px, calc(100vw - 28px)) !important;
  min-height: 68px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-direction: row !important;
  direction: rtl !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 8px 11px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 228, 158, 0.48) !important;
  background:
    radial-gradient(circle at 92% 6%, rgba(255, 235, 174, 0.24), transparent 32%),
    radial-gradient(circle at 4% 100%, rgba(0, 158, 255, 0.22), transparent 38%),
    linear-gradient(135deg, rgba(13, 39, 68, 0.98), rgba(2, 9, 18, 0.99) 74%) !important;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.68),
    0 0 46px rgba(0, 157, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 220, 130, 0.14) !important;
  backdrop-filter: blur(18px) !important;
  overflow: hidden !important;
}

body.lobby-active .lobby-profile-panel::before {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, transparent, rgba(255, 236, 180, 0.18), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%) !important;
}

body.lobby-active .lobby-profile-panel > * {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
}

body.lobby-active .lobby-profile-avatar {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 2px !important;
  border: 1px solid rgba(255, 240, 190, 0.64) !important;
  border-radius: 50% !important;
  background:
    conic-gradient(from 210deg, #fff2bd, #18aaff, #07192f, #d9aa4c, #fff2bd) !important;
  box-shadow:
    0 0 0 3px rgba(255, 226, 150, 0.11),
    0 0 26px rgba(0, 155, 255, 0.30),
    0 8px 20px rgba(0, 0, 0, 0.46) !important;
  cursor: pointer !important;
  overflow: hidden !important;
}

body.lobby-active .lobby-profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

body.lobby-active .lobby-profile-avatar .avatar-face {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
}

body.lobby-active .lobby-profile-name {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  display: grid !important;
  gap: 2px !important;
  text-align: right !important;
}

body.lobby-active .lobby-profile-name span,
body.lobby-active .lobby-profile-balance span {
  display: block !important;
  color: rgba(219, 238, 255, 0.68) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
}

body.lobby-active .lobby-profile-name strong {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  font-size: clamp(15px, 2.2vw, 20px) !important;
  font-weight: 950 !important;
  line-height: 1.12 !important;
  text-shadow: 0 0 18px rgba(0, 151, 255, 0.25) !important;
}

body.lobby-active .lobby-profile-balance {
  width: auto !important;
  min-width: 136px !important;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 1px solid rgba(255, 224, 145, 0.36) !important;
  border-radius: 999px !important;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 229, 155, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 222, 144, 0.14), rgba(0, 142, 255, 0.07)),
    rgba(0, 6, 14, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 24px rgba(255, 205, 92, 0.11) !important;
  text-align: center !important;
}

body.lobby-active .lobby-profile-balance strong {
  display: block !important;
  color: #ffe7aa !important;
  font-size: clamp(14px, 2vw, 18px) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-shadow:
    0 0 18px rgba(255, 218, 124, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.58) !important;
}

body.lobby-active .lobby-profile-country {
  display: none !important;
}

@media (max-width: 520px) {
  body.lobby-active .lobby-screen {
    padding-top: 82px !important;
  }

  body.lobby-active .lobby-profile-panel {
    top: max(8px, env(safe-area-inset-top)) !important;
    right: 8px !important;
    width: calc(100vw - 16px) !important;
    min-height: 62px !important;
    gap: 8px !important;
    padding: 7px 8px !important;
  }

  body.lobby-active .lobby-profile-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  body.lobby-active .lobby-profile-balance {
    min-width: 108px !important;
    padding: 7px 9px !important;
  }

  body.lobby-active .lobby-profile-name span,
  body.lobby-active .lobby-profile-balance span {
    font-size: 9px !important;
  }
}

/* Final override: lobby profile is disabled for now */
body .player-strip,
body .lobby-fixed-profile,
body .old-lobby-profile-removed,
body .lobby-profile-panel,
body .lobby-profile-disabled,
body #lobbyProfilePanel,
body.lobby-active .player-strip,
body.lobby-active .lobby-fixed-profile,
body.lobby-active .old-lobby-profile-removed,
body.lobby-active .lobby-profile-panel,
body.lobby-active .lobby-profile-disabled,
body.lobby-active #lobbyProfilePanel {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Clean rebuilt top lobby profile */
body .lobby-top-profile {
  display: none;
}

body.lobby-active .lobby-top-profile {
  position: fixed !important;
  top: max(11px, env(safe-area-inset-top)) !important;
  right: max(14px, env(safe-area-inset-right)) !important;
  left: auto !important;
  z-index: 99999 !important;
  width: min(390px, calc(100vw - 118px)) !important;
  min-height: 64px !important;
  display: flex !important;
  align-items: center !important;
  flex-direction: row !important;
  direction: rtl !important;
  gap: 10px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 225, 150, 0.42) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 235, 174, 0.20), transparent 32%),
    linear-gradient(135deg, rgba(10, 35, 62, 0.96), rgba(2, 8, 17, 0.98) 74%) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(0, 150, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  backdrop-filter: blur(18px) !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.lobby-active .lobby-top-profile::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 234, 174, 0.12), transparent);
}

body.lobby-active .lobby-profile-avatar {
  position: relative !important;
  z-index: 1 !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  padding: 2px !important;
  border: 1px solid rgba(255, 240, 190, 0.64) !important;
  border-radius: 50% !important;
  background: conic-gradient(from 210deg, #fff2bd, #18aaff, #07192f, #d9aa4c, #fff2bd) !important;
  box-shadow:
    0 0 0 3px rgba(255, 226, 150, 0.11),
    0 0 26px rgba(0, 155, 255, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.42) !important;
  overflow: hidden !important;
}

body.lobby-active .lobby-profile-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

body.lobby-active .lobby-top-copy {
  position: relative !important;
  z-index: 1 !important;
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
  text-align: right !important;
  flex: 1 1 auto !important;
}

body.lobby-active .lobby-top-name {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #ffffff !important;
  font-size: clamp(15px, 2.1vw, 19px) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-shadow: 0 0 18px rgba(0, 151, 255, 0.25) !important;
}

body.lobby-active .lobby-top-balance {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: max-content !important;
  max-width: 100% !important;
  padding: 5px 10px !important;
  border: 1px solid rgba(255, 224, 145, 0.30) !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255, 222, 144, 0.13), rgba(0, 142, 255, 0.07)),
    rgba(0, 6, 14, 0.54) !important;
  color: #ffe7aa !important;
  font-size: clamp(12px, 1.75vw, 15px) !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-shadow: 0 0 15px rgba(255, 218, 124, 0.24) !important;
}

body.lobby-active .lobby-top-country {
  display: none !important;
}

@media (max-width: 520px) {
  body.lobby-active .lobby-top-profile {
    top: max(8px, env(safe-area-inset-top)) !important;
    right: 8px !important;
    width: calc(100vw - 106px) !important;
    min-height: 58px !important;
    gap: 8px !important;
    padding: 6px 8px !important;
    border-radius: 19px !important;
  }

  body.lobby-active .lobby-profile-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  body.lobby-active .lobby-top-name {
    font-size: 14px !important;
  }

  body.lobby-active .lobby-top-balance {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }
}

/* Lobby header hard lock: profile lives inside the fixed topbar, never in page scroll. */
body.lobby-active {
  scroll-padding-top: 84px !important;
}

body.lobby-active .app-shell {
  padding-top: 0 !important;
}

body.lobby-active main {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

body.lobby-active .topbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  z-index: 99990 !important;
  width: 100% !important;
  max-width: none !important;
  height: 82px !important;
  margin: 0 !important;
  padding: max(8px, env(safe-area-inset-top)) 16px 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  direction: ltr !important;
  background:
    radial-gradient(circle at 82% 0%, rgba(0, 157, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(5, 24, 43, 0.98), rgba(2, 8, 18, 0.92)) !important;
  border-bottom: 1px solid rgba(255, 225, 150, 0.16) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.42) !important;
  backdrop-filter: blur(18px) !important;
}

body.lobby-active .brand {
  display: none !important;
}

body.lobby-active .top-actions {
  order: 2 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  position: relative !important;
  z-index: 3 !important;
}

body.lobby-active .icon-button,
body.lobby-active .lang-button {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
}

body.lobby-active .lobby-top-profile {
  order: 1 !important;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  width: min(470px, calc(100vw - 118px)) !important;
  min-height: 68px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 0 1 470px !important;
  flex-direction: row !important;
  direction: ltr !important;
  transform: none !important;
  pointer-events: auto !important;
}

body.lobby-active .lobby-screen {
  padding-top: 86px !important;
  padding-bottom: 84px !important;
}

body.lobby-active .lobby-hero {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body.lobby-active .tables-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.lobby-active .lobby-top-copy {
  gap: 6px !important;
  text-align: left !important;
}

body.lobby-active .lobby-name-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
}

body.lobby-active .lobby-account-label {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding: 3px 8px !important;
  border: 1px solid rgba(255, 225, 150, 0.22) !important;
  border-radius: 999px !important;
  background: rgba(255, 222, 144, 0.08) !important;
  color: rgba(214, 238, 255, 0.76) !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

body.lobby-active .lobby-balance-shell {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-direction: row-reverse !important;
  gap: 10px !important;
  min-width: 0 !important;
  width: 100% !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(255, 225, 150, 0.40) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, rgba(255, 226, 150, 0.18), rgba(0, 142, 255, 0.09)),
    rgba(0, 7, 18, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 0 24px rgba(255, 209, 99, 0.10) !important;
}

body.lobby-active .lobby-balance-label {
  flex: 0 0 auto !important;
  color: rgba(215, 238, 255, 0.80) !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

body.lobby-active .lobby-top-balance {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #ffe7aa !important;
  font-size: clamp(15px, 2.6vw, 22px) !important;
  font-weight: 1000 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  text-align: left !important;
}

@media (max-width: 520px) {
  body.lobby-active {
    scroll-padding-top: 72px !important;
  }

  body.lobby-active .topbar {
    height: 70px !important;
    padding: max(6px, env(safe-area-inset-top)) 8px 6px !important;
    gap: 6px !important;
  }

  body.lobby-active .top-actions {
    gap: 6px !important;
  }

  body.lobby-active .icon-button,
  body.lobby-active .lang-button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
  }

  body.lobby-active .lobby-top-profile {
    width: calc(100vw - 92px) !important;
    min-height: 58px !important;
    gap: 7px !important;
    padding: 5px 7px !important;
    border-radius: 18px !important;
  }

  body.lobby-active .lobby-profile-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
  }

  body.lobby-active .lobby-top-name {
    font-size: 13px !important;
  }

  body.lobby-active .lobby-top-balance {
    max-width: 100% !important;
    font-size: 12.5px !important;
  }

  body.lobby-active .lobby-account-label,
  body.lobby-active .lobby-balance-label {
    font-size: 9px !important;
  }

  body.lobby-active .lobby-balance-shell {
    gap: 6px !important;
    padding: 5px 7px !important;
    border-radius: 14px !important;
  }

  body.lobby-active .lobby-screen {
    padding-top: 74px !important;
  }
}

/* Luxury lobby bottom dock */
.lobby-bottom-dock {
  display: none;
}

body.lobby-active .lobby-bottom-dock {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: max(10px, env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  z-index: 99980 !important;
  width: min(680px, calc(100vw - 22px)) !important;
  min-height: 78px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 8px !important;
  border: 1px solid rgba(255, 224, 150, 0.24) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(90deg, transparent, rgba(255, 235, 177, 0.08), transparent),
    radial-gradient(circle at 18% 0%, rgba(0, 170, 255, 0.18), transparent 34%),
    radial-gradient(circle at 86% 100%, rgba(255, 220, 139, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(7, 30, 55, 0.94), rgba(2, 7, 17, 0.97)) !important;
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(0, 145, 255, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(20px) !important;
}

body.lobby-active .lobby-bottom-dock.syria-player {
  width: min(420px, calc(100vw - 22px)) !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.lobby-active .lobby-dock-button.hidden,
body.lobby-active .lobby-dock-button[hidden],
body.lobby-active .lobby-dock-button.syria-finance-hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.lobby-active .lobby-dock-button {
  position: relative !important;
  min-width: 0 !important;
  height: 62px !important;
  padding: 8px 6px 6px !important;
  border: 1px solid rgba(160, 220, 255, 0.18) !important;
  border-radius: 18px !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  gap: 5px !important;
  color: #eef9ff !important;
  background:
    radial-gradient(circle at 50% -20%, var(--dock-aura), transparent 48%),
    linear-gradient(135deg, rgba(255, 232, 176, 0.08), transparent 46%),
    linear-gradient(180deg, rgba(8, 53, 89, 0.82), rgba(3, 16, 32, 0.96)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 9px 22px rgba(0, 0, 0, 0.30) !important;
  overflow: hidden !important;
}

body.lobby-active .lobby-dock-button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 179, 0.10), transparent);
  opacity: 0.78;
}

body.lobby-active .lobby-dock-button::before {
  content: none !important;
  display: none !important;
}

body.lobby-active .lobby-dock-button:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 232, 174, 0.42) !important;
}

body.lobby-active .lobby-dock-button strong {
  position: relative !important;
  z-index: 1 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: clamp(10px, 1.7vw, 13px) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-shadow: 0 2px 9px rgba(0, 0, 0, 0.56) !important;
}

body.lobby-active .lobby-dock-icon {
  position: relative !important;
  z-index: 1 !important;
  width: 34px !important;
  height: 30px !important;
  border-radius: 10px !important;
  display: grid !important;
  place-items: center !important;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(255, 234, 177, 0.14), rgba(0, 142, 255, 0.10)),
    rgba(0, 11, 24, 0.52) !important;
  border: 1px solid var(--dock-icon-edge) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -10px 20px rgba(0, 0, 0, 0.16),
    0 0 18px var(--dock-icon-glow),
    0 8px 16px rgba(0, 0, 0, 0.32) !important;
}

body.lobby-active .lobby-dock-icon svg {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: var(--dock-icon-color) !important;
  stroke-width: 2.15 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  filter: drop-shadow(0 0 7px var(--dock-icon-glow)) !important;
}

body.lobby-active .dock-recharge {
  --dock-aura: rgba(0, 159, 255, 0.22);
  --dock-icon-edge: rgba(125, 232, 255, 0.42);
  --dock-icon-color: #9cecff;
  --dock-icon-glow: rgba(0, 174, 255, 0.32);
}

body.lobby-active .dock-withdraw {
  --dock-aura: rgba(255, 206, 88, 0.18);
  --dock-icon-edge: rgba(255, 230, 158, 0.44);
  --dock-icon-color: #ffe2a3;
  --dock-icon-glow: rgba(255, 212, 91, 0.30);
}

body.lobby-active .dock-profile {
  --dock-aura: rgba(118, 205, 255, 0.18);
  --dock-icon-edge: rgba(126, 223, 255, 0.40);
  --dock-icon-color: #d8f5ff;
  --dock-icon-glow: rgba(89, 191, 255, 0.28);
}

body.lobby-active .dock-logout {
  --dock-aura: rgba(255, 92, 122, 0.16);
  --dock-icon-edge: rgba(255, 139, 161, 0.36);
  --dock-icon-color: #ffd9df;
  --dock-icon-glow: rgba(255, 92, 122, 0.26);
  color: #ffe8eb !important;
}

body.lobby-active .lobby-screen {
  padding-bottom: 118px !important;
}

@media (max-width: 520px) {
  .country-card-grid {
    gap: 8px;
  }

  .country-choice-card {
    min-height: 96px;
    border-radius: 16px;
  }

  .country-choice-flag {
    width: 60px;
    height: 40px;
    border-radius: 12px;
  }

  .syria-agent-panel {
    padding: 10px;
    border-radius: 18px;
  }

  .syria-agent-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .agent-bot-card {
    grid-template-columns: auto 1fr;
  }

  .agent-bot-card em {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .syria-agent-actions {
    grid-template-columns: 1fr;
  }

  .recharge-modal {
    padding: 84px 8px 96px;
  }

  .recharge-modal-panel {
    max-height: calc(100dvh - 180px);
    border-radius: 18px;
    padding: 9px;
  }

  .recharge-choice-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .recharge-choice-card {
    min-height: 68px;
    border-radius: 16px;
    padding: 9px;
    gap: 5px;
  }

  .recharge-choice-mark {
    width: 42px;
    height: 30px;
    border-radius: 11px;
  }

  .payment-detail {
    gap: 7px;
  }

  .payment-detail-head {
    padding: 8px;
  }

  .payment-qr-frame {
    width: min(112px, 34vw);
    padding: 6px;
    border-radius: 14px;
  }

  .payment-recharge-detail,
  .payment-recharge-form,
  .payment-withdraw-form {
    gap: 6px;
    padding: 8px;
    border-radius: 15px;
  }

  .payment-copy-row input,
  .payment-recharge-form input,
  .payment-withdraw-form input {
    min-height: 35px;
  }

  .payment-recharge-form .primary-button,
  .payment-withdraw-form .primary-button {
    min-height: 38px;
  }

  body.lobby-active .lobby-bottom-dock {
    width: calc(100vw - 14px) !important;
    min-height: 72px !important;
    gap: 5px !important;
    padding: 6px !important;
    border-radius: 22px !important;
  }

  body.lobby-active .lobby-bottom-dock.syria-player {
    width: min(360px, calc(100vw - 14px)) !important;
  }

  body.lobby-active .lobby-dock-button {
    height: 60px !important;
    padding: 6px 4px 5px !important;
    border-radius: 16px !important;
    gap: 3px !important;
  }

  body.lobby-active .lobby-dock-icon {
    width: 29px !important;
    height: 27px !important;
    border-radius: 9px !important;
  }

  body.lobby-active .lobby-dock-icon svg {
    width: 17px !important;
    height: 17px !important;
  }

  body.lobby-active .lobby-dock-button strong {
    font-size: 9.5px !important;
  }

  body.lobby-active .lobby-screen {
    padding-bottom: 100px !important;
  }
}

.lobby-actions,
body.lobby-active .lobby-actions {
  display: none !important;
}

.lobby-actions .ghost-button::before,
body.lobby-active .lobby-actions .ghost-button::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Final premium landing rebuild */
body.landing-active {
  background:
    radial-gradient(circle at 72% 14%, rgba(41, 179, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 18% 84%, rgba(255, 214, 113, 0.13), transparent 24rem),
    linear-gradient(135deg, #020409 0%, #061b35 42%, #01040a 100%);
}

body.landing-active::before {
  opacity: 0.42;
}

body.landing-active .app-shell {
  min-height: 100vh;
}

body.landing-active .topbar {
  width: min(1240px, calc(100% - 36px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(130, 220, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(120deg, rgba(255, 231, 170, 0.08), transparent 34%),
    rgba(2, 9, 20, 0.58);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

body.landing-active .brand small {
  display: none;
}

body.landing-active main {
  width: min(1240px, calc(100% - 36px));
  padding-top: 18px;
}

body.landing-active .landing-screen {
  min-height: auto;
  padding: 0 0 68px;
}

body.landing-active .landing-casino-hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 40px;
  padding: 54px;
  border-radius: 38px;
  border: 1px solid rgba(255, 226, 150, 0.42);
  background:
    linear-gradient(120deg, rgba(255, 240, 184, 0.14), transparent 30%),
    radial-gradient(circle at 71% 44%, rgba(0, 169, 255, 0.34), transparent 30%),
    radial-gradient(circle at 90% 88%, rgba(255, 218, 119, 0.14), transparent 24%),
    linear-gradient(150deg, #071c35 0%, #06101f 47%, #01050c 100%);
  box-shadow:
    0 48px 150px rgba(0, 0, 0, 0.74),
    0 0 82px rgba(0, 154, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

body.landing-active .landing-casino-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(126, 223, 255, 0.10);
  border-radius: 30px;
  pointer-events: none;
}

body.landing-active .landing-casino-hero::after {
  inset: -35% -18% auto auto;
  width: 58%;
  height: 84%;
  background: radial-gradient(ellipse at center, rgba(59, 192, 255, 0.30), transparent 64%);
  animation: landingGlowFloat 5.8s ease-in-out infinite;
}

.landing-game-title {
  margin: 14px 0 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 0 26px rgba(0, 173, 255, 0.44);
}

body.landing-active .landing-logo {
  width: 118px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(0, 171, 255, 0.32));
}

body.landing-active .landing-eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(255, 226, 150, 0.28);
  border-radius: 999px;
  color: rgba(210, 239, 255, 0.82);
  background: rgba(0, 9, 20, 0.30);
  font-size: 12px;
}

body.landing-active .landing-casino-copy h1 {
  max-width: 650px;
  margin: 18px 0 16px;
  color: #ffffff;
  font-size: 58px;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 0 36px rgba(0, 170, 255, 0.30), 0 12px 34px rgba(0, 0, 0, 0.42);
}

body.landing-active .landing-casino-copy p {
  max-width: 610px;
  color: rgba(226, 242, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

body.landing-active .landing-actions {
  gap: 14px;
  margin-top: 26px;
}

body.landing-active .landing-play-button,
body.landing-active .landing-download-button {
  position: relative;
  overflow: hidden;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 1000;
}

body.landing-active .landing-play-button {
  border: 1px solid rgba(147, 225, 255, 0.54);
  background:
    linear-gradient(135deg, #1ec2ff 0%, #096ed8 58%, #043d92 100%);
  box-shadow: 0 20px 42px rgba(0, 132, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

body.landing-active .landing-download-button {
  border-color: rgba(255, 226, 150, 0.36);
  color: #ffe7aa;
  background:
    linear-gradient(135deg, rgba(255, 226, 150, 0.14), rgba(0, 142, 255, 0.08)),
    rgba(0, 8, 20, 0.68);
}

body.landing-active .landing-play-button::after,
body.landing-active .landing-download-button::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -38%;
  width: 28%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.50), transparent);
  animation: landingButtonShine 3.4s ease-in-out infinite;
}

body.landing-active .landing-trust-row {
  margin-top: 22px;
  gap: 10px;
}

body.landing-active .landing-trust-row span {
  border-color: rgba(126, 223, 255, 0.22);
  background: rgba(0, 12, 28, 0.60);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.landing-active .landing-casino-visual {
  min-height: 570px;
}

body.landing-active .landing-table-stage {
  width: min(590px, 100%);
  filter: drop-shadow(0 38px 60px rgba(0, 0, 0, 0.48));
}

body.landing-active .landing-real-stage {
  width: min(690px, 100%);
  aspect-ratio: 1.82;
}

body.landing-active .landing-table-halo {
  position: absolute;
  inset: 4% 0 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(22, 184, 255, 0.36), rgba(0, 44, 92, 0.16) 45%, transparent 70%);
  filter: blur(8px);
}

body.landing-active .landing-table-felt {
  border-width: 18px;
  border-color: rgba(222, 181, 86, 0.90);
  background:
    radial-gradient(ellipse at center, rgba(49, 197, 255, 0.46), rgba(4, 72, 124, 0.92) 45%, rgba(2, 11, 28, 0.98) 74%),
    repeating-radial-gradient(ellipse at center, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 14px),
    #041222;
}

body.landing-active img.landing-real-table {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter:
    drop-shadow(0 34px 56px rgba(0, 0, 0, 0.56))
    drop-shadow(0 0 28px rgba(0, 160, 255, 0.18));
}

body.landing-active .landing-community-preview {
  gap: 10px;
}

body.landing-active .landing-real-cards {
  position: relative;
  z-index: 4;
  transform: rotate(2deg) translateY(-3%);
}

body.landing-active .landing-community-preview span {
  width: 58px;
  height: 84px;
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.40), 0 0 18px rgba(255, 255, 255, 0.08);
  animation: landingCardDeal 3.8s ease-in-out infinite;
}

body.landing-active .landing-real-cards img {
  width: 54px;
  height: auto;
  aspect-ratio: 0.69;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.40), 0 0 14px rgba(255, 255, 255, 0.07);
  animation: landingCardDeal 3.8s ease-in-out infinite;
}

body.landing-active .landing-real-cards img:nth-child(2) {
  animation-delay: 0.12s;
}

body.landing-active .landing-real-cards img:nth-child(3) {
  animation-delay: 0.24s;
}

body.landing-active .landing-real-cards img:nth-child(4) {
  animation-delay: 0.36s;
}

body.landing-active .landing-real-cards img:nth-child(5) {
  animation-delay: 0.48s;
}

body.landing-active .landing-community-preview span:nth-child(2) {
  animation-delay: 0.12s;
}

body.landing-active .landing-community-preview span:nth-child(3) {
  animation-delay: 0.24s;
}

body.landing-active .landing-community-preview span:nth-child(4) {
  animation-delay: 0.36s;
}

body.landing-active .landing-community-preview span:nth-child(5) {
  animation-delay: 0.48s;
}

body.landing-active .landing-seat i {
  border-width: 4px;
  box-shadow: 0 0 34px rgba(0, 174, 255, 0.42), 0 16px 34px rgba(0, 0, 0, 0.46);
}

body.landing-active .landing-chip {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42), 0 0 28px rgba(255, 218, 124, 0.20);
}

body.landing-active .landing-feature-grid,
body.landing-active .landing-table-preview,
body.landing-active .landing-explain-section {
  border-radius: 26px;
  border-color: rgba(126, 223, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(0, 142, 255, 0.12), rgba(255, 226, 150, 0.06)),
    rgba(2, 9, 22, 0.74);
  backdrop-filter: blur(18px);
}

body.landing-active .landing-feature-grid article {
  min-height: 168px;
  border-radius: 20px;
  border-color: rgba(255, 226, 150, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(42, 187, 255, 0.18), transparent 48%),
    rgba(0, 8, 20, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body.landing-active .landing-feature-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 226, 150, 0.36);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.25);
}

body.landing-active .landing-feature-grid article span {
  color: #061224;
  background: linear-gradient(145deg, #fff3bf, #c99532);
}

body.landing-active .landing-mini-tables span {
  min-height: 62px;
  border-radius: 18px;
  color: #fff0be;
  background:
    radial-gradient(circle at 50% 0%, rgba(31, 190, 255, 0.32), transparent 58%),
    linear-gradient(145deg, rgba(255, 226, 150, 0.14), rgba(0, 8, 20, 0.74));
}

body.landing-active .landing-explain-section p:last-child {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(126, 223, 255, 0.10);
  color: rgba(165, 191, 210, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

@keyframes landingGlowFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-18px, 20px, 0) scale(1.06);
  }
}

@keyframes landingButtonShine {
  0%, 52% {
    left: -38%;
  }
  78%, 100% {
    left: 118%;
  }
}

@keyframes landingCardDeal {
  0%, 74%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  84% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

@media (max-width: 920px) {
  body.landing-active .topbar,
  body.landing-active main {
    width: min(100% - 22px, 760px);
  }

  body.landing-active .landing-casino-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 28px;
  }

  body.landing-active .landing-casino-visual {
    min-height: 360px;
    order: -1;
  }

  body.landing-active .landing-casino-copy h1 {
    font-size: 40px;
  }

  body.landing-active .landing-casino-copy p {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  body.landing-active .topbar {
    margin-top: 10px;
    border-radius: 18px;
  }

  body.landing-active .brand small {
    display: none;
  }

  body.landing-active main {
    padding-top: 10px;
  }

  body.landing-active .landing-casino-hero {
    padding: 20px;
    border-radius: 26px;
  }

  body.landing-active .landing-casino-copy h1 {
    font-size: 34px;
  }

  body.landing-active .landing-casino-copy p {
    font-size: 15px;
    line-height: 1.75;
  }

  body.landing-active .landing-actions {
    display: grid;
  }

  body.landing-active .landing-play-button,
  body.landing-active .landing-download-button {
    width: 100%;
  }

  body.landing-active .landing-casino-visual {
    min-height: 260px;
  }

  body.landing-active .landing-table-stage {
    width: min(360px, 100%);
  }

  body.landing-active .landing-community-preview span {
    width: 40px;
    height: 58px;
    font-size: 17px;
  }

  body.landing-active .landing-real-cards img {
    width: 40px;
  }
}

/* New cinematic landing system - portrait game table */
body.landing-active {
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.10), rgba(2, 7, 14, 0.96) 76%),
    linear-gradient(110deg, #02050a 0%, #06152a 50%, #02050a 100%);
}

body.landing-active::before {
  opacity: 0.32;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 88px 88px;
}

body.landing-active .topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 14px auto 0;
  border-color: rgba(112, 206, 255, 0.16);
  border-radius: 18px;
  background: rgba(2, 8, 18, 0.52);
  box-shadow: 0 18px 68px rgba(0, 0, 0, 0.32);
}

body.landing-active main {
  width: min(1180px, calc(100% - 32px));
  padding-top: 14px;
}

body.landing-active .landing-cinema-screen {
  display: block;
  padding: 0 0 62px;
}

body.landing-active .landing-cinema {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(113, 207, 255, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(1, 5, 12, 0.96) 0%, rgba(3, 14, 29, 0.82) 42%, rgba(2, 7, 15, 0.38) 100%),
    linear-gradient(150deg, rgba(23, 155, 255, 0.20), rgba(255, 219, 132, 0.08) 56%, rgba(0, 0, 0, 0.10));
  box-shadow:
    0 40px 130px rgba(0, 0, 0, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

body.landing-active .landing-cinema::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 226, 150, 0.14);
  border-radius: 24px;
  pointer-events: none;
}

body.landing-active .landing-cinema::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16), transparent 44%, rgba(0, 0, 0, 0.24)),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.34) 100%);
}

body.landing-active .landing-cinema-table {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 1%;
  width: min(500px, 43%);
  aspect-ratio: 0.58;
  transform: translateY(-50%) rotate(-5deg);
  display: grid;
  place-items: center;
}

body.landing-active .landing-main-table {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 48px 58px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 32px rgba(34, 177, 255, 0.26));
}

body.landing-active .landing-card-strip {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 46%;
  display: flex;
  gap: 8px;
  transform: translate(-50%, -50%) rotate(5deg);
}

body.landing-active .landing-card-strip img {
  width: 48px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

body.landing-active .landing-cinema-copy {
  position: relative;
  z-index: 3;
  width: min(620px, 56%);
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 0 70px 62px;
  text-align: left;
}

html[dir="rtl"] body.landing-active .landing-cinema-copy {
  text-align: right;
  align-items: flex-start;
}

body.landing-active .landing-logo {
  width: 112px;
  margin-bottom: 16px;
}

body.landing-active .landing-game-title {
  margin: 12px 0 14px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

body.landing-active .landing-eyebrow {
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(139, 223, 255, 0.92);
  background: transparent;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0;
}

body.landing-active .landing-cinema-copy h1 {
  max-width: 620px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 18px 34px rgba(0, 0, 0, 0.46), 0 0 30px rgba(0, 154, 255, 0.22);
}

body.landing-active .landing-cinema-copy p {
  max-width: 540px;
  margin: 0;
  color: rgba(221, 241, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 760;
}

body.landing-active .landing-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

body.landing-active .landing-play-button,
body.landing-active .landing-download-button {
  min-height: 58px;
  padding: 0 30px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 1000;
}

body.landing-active .landing-play-button {
  color: #03101d;
  border: 1px solid rgba(160, 231, 255, 0.72);
  background: linear-gradient(180deg, #9ee9ff 0%, #23a9ff 52%, #0874e2 100%);
  box-shadow: 0 18px 42px rgba(0, 129, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

body.landing-active .landing-download-button {
  border: 1px solid rgba(255, 226, 150, 0.32);
  color: #ffe8ad;
  background: rgba(2, 12, 26, 0.72);
}

body.landing-active .landing-service-strip {
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.landing-active .landing-service-strip span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 206, 255, 0.18);
  border-radius: 16px;
  color: #dff6ff;
  background: rgba(2, 10, 24, 0.62);
  font-size: 13px;
  font-weight: 1000;
}

body.landing-active .landing-info-deck {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body.landing-active .landing-info-deck article,
body.landing-active .landing-company-footnote {
  border: 1px solid rgba(112, 206, 255, 0.16);
  border-radius: 18px;
  background: rgba(2, 10, 24, 0.70);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.26);
}

body.landing-active .landing-info-deck article {
  min-height: 150px;
  padding: 18px;
}

body.landing-active .landing-info-deck strong,
body.landing-active .landing-company-footnote strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 1000;
}

body.landing-active .landing-info-deck p,
body.landing-active .landing-company-footnote p {
  margin: 10px 0 0;
  color: rgba(213, 234, 252, 0.74);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 720;
}

body.landing-active .landing-company-footnote {
  margin-top: 14px;
  padding: 20px;
}

body.landing-active .landing-company-footnote span {
  display: block;
  margin-bottom: 8px;
  color: rgba(139, 223, 255, 0.86);
  font-size: 12px;
  font-weight: 1000;
}

body.landing-active .landing-company-footnote p:last-child {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(112, 206, 255, 0.12);
  color: rgba(167, 190, 209, 0.56);
  font-size: 12px;
}

body.landing-active .landing-hero-card,
body.landing-active .landing-casino-hero,
body.landing-active .landing-feature-grid,
body.landing-active .landing-table-preview,
body.landing-active .landing-trust-row,
body.landing-active .landing-visual,
body.landing-active .landing-casino-visual {
  all: unset;
}

@media (max-width: 920px) {
  body.landing-active .landing-cinema {
    min-height: 860px;
  }

  body.landing-active .landing-cinema-table {
    top: 44%;
    right: 50%;
    width: min(410px, 78%);
    transform: translate(50%, -50%) rotate(-4deg);
    opacity: 0.72;
  }

  body.landing-active .landing-cinema-copy {
    width: 100%;
    min-height: 860px;
    justify-content: flex-end;
    padding: 42px 28px;
  }

  body.landing-active .landing-cinema-copy h1 {
    font-size: 42px;
  }

  body.landing-active .landing-cinema-copy p {
    font-size: 16px;
  }

  body.landing-active .landing-info-deck,
  body.landing-active .landing-service-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.landing-active main,
  body.landing-active .topbar {
    width: calc(100% - 20px);
  }

  body.landing-active .landing-cinema {
    min-height: 760px;
    border-radius: 22px;
  }

  body.landing-active .landing-cinema::before {
    inset: 12px;
    border-radius: 18px;
  }

  body.landing-active .landing-cinema-table {
    top: 39%;
    width: min(330px, 86%);
  }

  body.landing-active .landing-card-strip img {
    width: 34px;
  }

  body.landing-active .landing-cinema-copy {
    min-height: 760px;
    padding: 30px 20px;
  }

  body.landing-active .landing-logo {
    width: 94px;
  }

  body.landing-active .landing-game-title {
    font-size: 23px;
  }

  body.landing-active .landing-cinema-copy h1 {
    font-size: 34px;
  }

  body.landing-active .landing-cinema-copy p {
    font-size: 15px;
  }

  body.landing-active .landing-actions {
    display: grid;
    width: 100%;
  }
}
