:root {
  --bg-top: #260a44;
  --bg-mid: #160529;
  --bg-deep: #0b0216;
  --accent-royal: #f3c463;
  --accent-teal: #f3c463;
  --gold-light: #fff1be;
  --gold-main: #e8b853;
  --gold-dark: #8c5c12;
  --text-light: #fcf6ff;
  --text-muted: #cfb8e3;
  --card-white: #fdfaf2;
  --red-suit: #cc142b;
  --black-suit: #181c24;
  --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #06010c;
  color: var(--text-light);
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 450px;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1100px;
  background:
    radial-gradient(ellipse at 50% 24%, rgba(162, 72, 240, 0.32), transparent 54%),
    radial-gradient(ellipse at 85% 60%, rgba(232, 184, 83, 0.14), transparent 46%),
    radial-gradient(ellipse at 12% 72%, rgba(124, 34, 198, 0.28), transparent 52%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%, rgba(185, 92, 255, 0.06) 68%, transparent 100%),
    linear-gradient(180deg, #21083b 0%, #140425 56%, #090213 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.92), inset 0 0 80px rgba(0, 0, 0, 0.45);
}

.app-shell.theme-crimson {
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 166, 62, 0.22), transparent 52%),
    radial-gradient(circle at 85% 75%, rgba(168, 22, 86, 0.35), transparent 52%),
    linear-gradient(180deg, #620b28 0%, #370517 55%, #160209 100%);
}

.app-shell.theme-emerald {
  background:
    radial-gradient(ellipse at 50% 16%, rgba(72, 224, 142, 0.26), transparent 55%),
    radial-gradient(circle at 80% 78%, rgba(234, 179, 69, 0.18), transparent 48%),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #105536 0%, #082e1d 56%, #03150d 100%);
}

.app-shell.theme-sapphire {
  background:
    radial-gradient(ellipse at 50% 16%, rgba(102, 148, 255, 0.3), transparent 55%),
    radial-gradient(circle at 20% 80%, rgba(255, 190, 90, 0.16), transparent 48%),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, #1b2d6d 0%, #0e183f 56%, #060a1d 100%);
}

/* 3D Floating Warm Gold Motes */
.ambient-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-particles span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 232, 160, 0.95), rgba(255, 140, 66, 0.3) 65%, transparent 100%);
  animation: floatMote 8s ease-in-out infinite;
  opacity: 0.48;
}

.ambient-particles span:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; }
.ambient-particles span:nth-child(2) { left: 82%; top: 18%; animation-delay: 1.5s; }
.ambient-particles span:nth-child(3) { left: 26%; top: 68%; animation-delay: 3s; }
.ambient-particles span:nth-child(4) { left: 74%; top: 58%; animation-delay: 4.5s; }
.ambient-particles span:nth-child(5) { left: 48%; top: 38%; animation-delay: 2.2s; }
.ambient-particles span:nth-child(6) { left: 60%; top: 82%; animation-delay: 5.5s; }

@keyframes floatMote {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) translateX(10px) scale(1.35); opacity: 0.78; }
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  z-index: 1;
}

.screen.active { display: flex; }

/* ==================== SPLASH ==================== */
.screen-splash {
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.splash-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.emblem-halo {
  width: 240px;
  height: 165px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 72, 0.32), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.splash-cards {
  position: relative;
  width: 210px;
  height: 135px;
  transform-style: preserve-3d;
  animation: splashFloat3D 3.4s ease-in-out infinite;
}

@keyframes splashFloat3D {
  0%, 100% { transform: rotateX(10deg) rotateY(-8deg) translateY(0); }
  50% { transform: rotateX(4deg) rotateY(8deg) translateY(-8px); }
}

.mini-ace {
  position: absolute;
  width: 78px;
  height: 112px;
  background: linear-gradient(145deg, #ffffff 0%, #f1ead6 100%);
  color: var(--black-suit);
  border-radius: 11px;
  border: 2px solid #dfce9e;
  box-shadow: 0 3px 0 #b8a373, 0 12px 22px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding: 6px 8px;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.05;
}

.mini-ace.red { color: var(--red-suit); }
.mini-ace.ace-1 { left: 10px; top: 14px; transform: rotate(-16deg); }
.mini-ace.ace-2 { left: 45px; top: 6px; transform: rotate(-6deg); }
.mini-ace.ace-3 { left: 82px; top: 6px; transform: rotate(5deg); }
.mini-ace.ace-4 { left: 118px; top: 14px; transform: rotate(15deg); }

.brand-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  margin: 0;
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(180deg, #fffbe2 0%, #ffd059 48%, #c77b09 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.85));
}

.brand-title.sm { font-size: 32px; }

.splash-tagline {
  margin-top: 6px;
  font-size: 12px;
  color: var(--gold-light);
}

.crown-winged-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 240px;
  margin-bottom: -4px;
}

.wing-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.subtitle-chip {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(44, 15, 72, 0.9), rgba(20, 6, 36, 0.95));
  border: 1.5px solid var(--gold-main);
  padding: 3px 16px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.loading-box {
  width: 85%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loading-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--gold-main);
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d4650c, #ffc843, #fff3b8);
  transition: width 0.12s linear;
}

.loading-hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==================== LOBBY ==================== */
.screen-lobby {
  justify-content: space-between;
  padding: 12px 12px 10px;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.player-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(44, 15, 72, 0.9), rgba(18, 6, 33, 0.96));
  border: 1.5px solid var(--gold-main);
  border-radius: 14px;
  padding: 6px 9px;
  cursor: pointer;
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4b187a, #1d0736);
  border: 2px solid var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}

.player-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
}

.streak-chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(232, 184, 83, 0.18);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
}

.xp-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}

.lvl-star {
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b0, #d4820a);
  border: 1.5px solid #fff7d1;
  color: #3b1900;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xp-track {
  position: relative;
  width: 80px;
  height: 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  border: 1.5px solid var(--gold-main);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #b87312, #ffd966);
}

.xp-text {
  position: absolute;
  inset: 0;
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 0 1px 2px #000;
}

.currencies {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.currency-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 110px;
  background: linear-gradient(180deg, rgba(44, 15, 72, 0.92), rgba(18, 6, 33, 0.96));
  border: 1.5px solid var(--gold-main);
  border-radius: 999px;
  padding: 3px 6px 3px 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.plus-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe285, #c98617);
  border: 1px solid #fff5cb;
  color: #2b1500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.lobby-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 8px;
  padding: 4px 0;
}

/* Hero Play Card (Satin Royal Violet & Gold) */
.hero-play-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  border: 1.8px solid var(--gold-main);
  background:
    radial-gradient(circle at 82% 30%, rgba(188, 92, 255, 0.25), transparent 55%),
    radial-gradient(circle at 18% 60%, rgba(232, 184, 83, 0.14), transparent 52%),
    linear-gradient(135deg, #4b187a 0%, #2a0a49 56%, #18052c 100%);
  padding: 14px 16px;
  color: #fff;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: right;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 0 #130324, 0 14px 28px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 240, 190, 0.42);
  transition: transform 0.14s ease;
}

.hero-play-card:active { transform: translateY(2px); }

.hero-play-card::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -60%;
  width: 40%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 180, 0.16), transparent);
  transform: rotate(22deg);
  animation: shineSweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 70% { left: -60%; }
  100% { left: 140%; }
}

.hero-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  color: #2c1500;
  background: linear-gradient(90deg, #fff1b8, #eab13b);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 5px;
}

.hero-text h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-text p {
  margin: 0;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-card-stack {
  position: relative;
  width: 68px;
  height: 68px;
  animation: stackBob3D 3s ease-in-out infinite;
}

@keyframes stackBob3D {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.hc {
  position: absolute;
  width: 44px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.hc-back {
  left: 2px;
  top: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 210, 100, 0.2) 0 2px, transparent 2px 6px),
    linear-gradient(145deg, #4b187a, #210738);
  border: 1.5px solid var(--gold-main);
  box-shadow: inset 0 0 0 2px rgba(255, 236, 173, 0.25), 0 6px 14px rgba(0, 0, 0, 0.55);
  transform: rotate(-12deg);
}

.hc-front {
  right: 2px;
  top: 2px;
  background: var(--card-white);
  border: 2px solid #dfce9e;
  color: var(--black-suit);
  font-size: 16px;
  transform: rotate(8deg);
  box-shadow: 0 3px 0 #b8a373, 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* Dual Mode Tiles */
.dual-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tile-btn {
  border-radius: 16px;
  padding: 12px 10px;
  border: 1.8px solid var(--gold-main);
  color: #fff;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.55), 0 10px 18px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 240, 190, 0.35);
  transition: transform 0.12s;
}

.tile-btn:active { transform: translateY(2px); }

.tile-ruby {
  background: linear-gradient(145deg, #4a1978, #240740);
}

.tile-amber {
  background: linear-gradient(145deg, #b3741d, #6a3e07);
}

.tile-copy b { display: block; font-size: 13px; color: var(--gold-light); }
.tile-copy small { display: block; font-size: 10px; color: #ead8f7; }

/* Missions Strip */
.missions-strip {
  width: 100%;
  border-radius: 14px;
  background: linear-gradient(135deg, #3e1466, #1f0638);
  border: 1.8px solid var(--gold-main);
  padding: 10px 12px;
  color: var(--text-light);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.missions-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
}

.missions-strip-left b { display: block; font-size: 13px; color: var(--gold-light); }
.missions-strip-left small { display: block; font-size: 11px; color: var(--text-muted); }
.missions-arrow { font-size: 11px; color: var(--gold-main); font-weight: 800; }

/* Quick Row */
.quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mini-action {
  background: linear-gradient(180deg, rgba(44, 15, 72, 0.92), rgba(18, 6, 33, 0.96));
  border: 1.5px solid var(--gold-main);
  border-radius: 12px;
  padding: 7px 9px;
  color: var(--text-light);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  min-width: 58px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 240, 190, 0.28);
}

.mini-action small { font-size: 10px; font-weight: 700; color: var(--gold-light); }

.daily-pill {
  flex: 1;
  background: linear-gradient(135deg, #8c5612, #4d2a04);
  border: 1.8px solid var(--gold-main);
  border-radius: 12px;
  padding: 10px 10px;
  color: var(--gold-light);
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 3px 0 #321802;
}

.daily-pill.ready { animation: pulseGold 1.8s infinite; }

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 8px rgba(240, 182, 58, 0.4); }
  50% { box-shadow: 0 0 20px rgba(255, 224, 115, 0.9); }
}

/* Curved Gold-Arch Bottom Nav Dock */
.lobby-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0 -12px -10px;
  background: linear-gradient(180deg, #2b0c4a 0%, #140424 100%);
  border-top: 2.5px solid var(--gold-main);
  border-radius: 50% 50% 0 0 / 22px 22px 0 0;
  padding: 14px 12px 10px;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.65), inset 0 2px 0 rgba(255, 240, 190, 0.35);
}

.nav-item {
  background: none;
  border: none;
  color: var(--gold-light);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-circle {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: radial-gradient(circle at 35% 25%, #4b187a, #19052e);
  border: 1.5px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 240, 190, 0.3);
}

/* ==================== GAME TABLE ==================== */
.screen-game {
  justify-content: space-between;
  padding: 8px 8px 4px;
}

.table-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.hud-actions-left {
  display: flex;
  gap: 4px;
}

.hud-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3e1466, #1c0533);
  border: 1.5px solid var(--gold-main);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}

.scoreboard {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: linear-gradient(180deg, rgba(44, 15, 72, 0.94), rgba(18, 6, 33, 0.97));
  border: 1.8px solid var(--gold-main);
  border-radius: 14px;
  padding: 4px 6px;
  gap: 4px;
}

.score-team {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-name { font-size: 10px; color: var(--text-muted); }

.score-nums { display: flex; align-items: center; gap: 5px; }

.set-score { font-size: 17px; font-weight: 900; color: var(--gold-light); }

.trick-pill {
  font-size: 9.5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 999px;
}

/* Winged Hokm Crest Plaque */
.hokm-winged-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hokm-wing {
  width: 22px;
  height: 16px;
  display: inline-flex;
  pointer-events: none;
}

.hokm-wing.right { transform: scaleX(-1); }

.hokm-plaque {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #7a0d20, #3a030c);
  border: 2px solid #f0be4a;
  border-radius: 11px;
  padding: 2px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 224, 150, 0.3), 0 3px 10px rgba(0, 0, 0, 0.7);
}

.hokm-label { font-size: 8.5px; font-weight: 800; color: var(--gold-light); }
.hokm-suit { font-size: 18px; line-height: 1.05; }
.hokm-suit.red { color: #ff556d; }
.hokm-suit.black { color: #ffffff; }

/* 3D Open Baroque Oval Luxury Casino Table */
.screen-game {
  background:
    radial-gradient(circle at 50% 48%, rgba(128, 20, 46, 0.45) 0%, rgba(44, 8, 22, 0.72) 48%, #15030b 100%);
}

.table-stage-3d {
  position: relative;
  flex: 1;
  margin: 2px 0;
  padding: 38px 14px 44px;
  perspective: 960px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-backdrop-mandala {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(168, 32, 62, 0.24) 0%, rgba(110, 14, 38, 0.14) 55%, transparent 72%),
    repeating-conic-gradient(from 0deg, rgba(212, 161, 56, 0.04) 0deg 10deg, transparent 10deg 20deg);
  border: 1px dashed rgba(212, 161, 56, 0.14);
  pointer-events: none;
  z-index: 0;
}

.table-arena {
  position: relative;
  width: 84%;
  max-width: 344px;
  height: 100%;
  max-height: 430px;
  border-radius: 50% / 38%;
  transform: rotateX(3deg);
  transform-style: preserve-3d;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(56, 178, 102, 0.24) 0%, rgba(11, 74, 38, 0.56) 52%, rgba(4, 32, 16, 0.94) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 4C24 10 30 16 36 20C30 24 24 30 20 36C16 30 10 24 4 20C10 16 16 10 20 4Z' fill='none' stroke='%234ade80' stroke-opacity='0.075' stroke-width='1'/%3E%3Ccircle cx='20' cy='20' r='3' fill='%234ade80' fill-opacity='0.06'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #105e33 0%, #093b1f 58%, #042111 100%);
  border: 5px solid #d4a138;
  box-shadow:
    inset 0 0 0 5px #0b331b,
    inset 0 0 0 7px #f3c962,
    inset 0 16px 36px rgba(0, 0, 0, 0.78),
    0 0 0 3px #2c1604,
    0 12px 32px rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  overflow: visible;
  z-index: 2;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.table-arena::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50% / 38%;
  border: 1px solid rgba(255, 224, 130, 0.25);
  pointer-events: none;
  z-index: 0;
}

.table-ornament {
  position: absolute;
  width: 82px;
  height: 26px;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}
.table-ornament.orn-top { top: -16px; left: 50%; transform: translateX(-50%); }
.table-ornament.orn-bottom { bottom: -16px; left: 50%; transform: translateX(-50%) rotate(180deg); }
.table-ornament.orn-left { left: -43px; top: 50%; transform: translateY(-50%) rotate(-90deg); width: 68px; height: 22px; }
.table-ornament.orn-right { right: -43px; top: 50%; transform: translateY(-50%) rotate(90deg); width: 68px; height: 22px; }

.seat-crest {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 15px;
  pointer-events: none;
  z-index: 2;
}

/* All tables share the exact Baroque Gold-Framed Oval shape, with subtle prestige aura per tier */
.table-tier-rookie .table-arena {
  filter: brightness(0.97);
}

.table-tier-challenger .table-arena {
  box-shadow:
    inset 0 0 0 5px #0b331b,
    inset 0 0 0 7px #f3c962,
    inset 0 16px 36px rgba(0, 0, 0, 0.78),
    0 0 0 3px #2c1604,
    0 0 22px rgba(234, 177, 59, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.88);
}

.table-tier-pro .table-arena {
  box-shadow:
    inset 0 0 0 5px #0b331b,
    inset 0 0 0 7px #ffd875,
    inset 0 16px 36px rgba(0, 0, 0, 0.78),
    0 0 0 3px #2c1604,
    0 0 28px rgba(250, 204, 21, 0.35),
    0 12px 34px rgba(0, 0, 0, 0.9);
}

.table-tier-royal .table-arena {
  box-shadow:
    inset 0 0 0 5px #0b331b,
    inset 0 0 0 7px #ffe599,
    inset 0 16px 40px rgba(0, 0, 0, 0.8),
    0 0 0 3px #3b1904,
    0 0 36px rgba(255, 215, 90, 0.5),
    0 14px 38px rgba(0, 0, 0, 0.92);
}

.table-arena.cut-impact {
  animation: tableCutImpact 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tableCutImpact {
  0% { transform: rotateX(4deg) translate(0, 0); }
  20% { transform: rotateX(6deg) translate(-4px, 4px) scale(0.99); }
  45% { transform: rotateX(4deg) translate(4px, -3px); }
  70% { transform: rotateX(4deg) translate(-2px, 2px); }
  100% { transform: rotateX(4deg) translate(0, 0); }
}

.table-socket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #3a322b 0%, #0f0b09 75%);
  border: 2px solid #d9a73b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.65), inset 0 1px 2px rgba(255, 232, 156, 0.35);
  pointer-events: none;
  z-index: 1;
}
.table-socket.sock-top { top: 4px; left: 50%; transform: translateX(-50%); }
.table-socket.sock-bottom { bottom: 4px; left: 50%; transform: translateX(-50%); }
.table-socket.sock-right { right: 4px; top: 50%; transform: translateY(-50%); }
.table-socket.sock-left { left: 4px; top: 50%; transform: translateY(-50%); }

.seat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(13, 62, 34, 0.96), rgba(5, 28, 15, 0.98));
  border: 2px solid #e6b64c;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 180, 0.22), 0 4px 12px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s, box-shadow 0.2s;
  z-index: 7;
}

.seat.active-turn {
  border-color: #fff3b0;
  box-shadow: 0 0 18px rgba(255, 214, 92, 0.85);
}

.seat-top {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

.seat-shoulder-right {
  position: absolute;
  right: 6px;
  bottom: 42px;
  z-index: 9;
}

.seat-shoulder-left {
  position: absolute;
  left: 6px;
  bottom: 42px;
  z-index: 9;
}

.seat-side {
  flex-direction: column;
  text-align: center;
  min-width: 74px;
  padding: 5px 6px;
}

.seat-bottom {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  padding: 0;
  z-index: 9;
}

.bottom-player-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(180deg, rgba(13, 62, 34, 0.96), rgba(5, 28, 15, 0.98));
  border: 2px solid #e6b64c;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 180, 0.22), 0 4px 12px rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  padding: 3px 10px;
}

.chat-pack-lock-box {
  grid-column: span 2;
  background: rgba(15, 5, 28, 0.75);
  border: 1.5px solid var(--gold-main);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.chat-pack-lock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.seat-bottom.active-turn .bottom-player-bar {
  border-color: #fff3b0;
  box-shadow: 0 0 16px rgba(255, 214, 92, 0.85);
}

.seat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.seat-name { font-size: 11px; font-weight: 800; }
.seat-cards-count { font-size: 9.5px; color: var(--gold-light); }

.hakem-crown {
  font-size: 10px;
  background: rgba(240, 182, 58, 0.24);
  border: 1px solid var(--gold-main);
  color: var(--gold-light);
  border-radius: 999px;
  padding: 1px 6px;
}

.turn-tag {
  font-size: 10px;
  font-weight: 900;
  color: #2b1300;
  background: linear-gradient(90deg, #fff1b8, #eab13b);
  border-radius: 999px;
  padding: 1px 8px;
}

.opp-mini-fan {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  margin-top: 2px;
}

.opp-mini-card {
  width: 11px;
  height: 16px;
  border-radius: 2.5px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 224, 150, 0.2) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #1c4478, #0d213d);
  border: 1px solid rgba(255, 231, 163, 0.85);
  margin-left: -6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.opp-mini-card:first-child { margin-left: 0; }

.emote-bubble {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff9ec;
  color: #360516;
  border: 1.5px solid var(--gold-main);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
  z-index: 20;
  animation: popIn 0.18s ease-out;
}

.seat-top .emote-bubble { top: auto; bottom: -28px; }

.table-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.trick-zone {
  position: relative;
  flex: 1;
  height: 100%;
  min-height: 165px;
}

.trick-slot {
  position: absolute;
  width: 58px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-top { top: 8px; left: 50%; transform: translateX(-50%); }
.slot-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.slot-right { right: 6px; top: 50%; transform: translateY(-50%); }
.slot-left { left: 6px; top: 50%; transform: translateY(-50%); }

.table-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 24px;
  font-weight: 900;
  color: rgba(255, 240, 190, 0.14);
  pointer-events: none;
}

.watermark-crown {
  width: 42px;
  height: 30px;
  opacity: 0.2;
}

.table-status-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34, 4, 15, 0.94);
  border: 2px solid var(--gold-main);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  z-index: 8;
  white-space: nowrap;
}

/* ==================== PLAYING CARDS (CRISP CLASSIC BIG-CORNER) ==================== */
.playing-card {
  width: 62px;
  aspect-ratio: 5 / 7;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.36), 0 3px 8px rgba(0, 0, 0, 0.28);
  color: #111111;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3px 4px;
  direction: ltr;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  overflow: hidden;
}

.playing-card.card-enter-anim {
  animation: cardPlay3D 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cardPlay3D {
  from { transform: scale(0.76) translateY(-14px); opacity: 0.35; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.playing-card.card-cut-slam {
  animation: cardCutSlam 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 22px rgba(255, 205, 65, 0.95), 0 0 40px rgba(239, 68, 68, 0.65);
  border: 2px solid #ffd24d;
}

@keyframes cardCutSlam {
  0% { transform: scale(1.65) translateY(-48px) rotate(-10deg); opacity: 0.4; }
  45% { transform: scale(0.92) translateY(4px) rotate(3deg); opacity: 1; }
  70% { transform: scale(1.08) translateY(-2px) rotate(-1deg); }
  100% { transform: scale(1) translateY(0) rotate(0deg); }
}

.cut-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #dc2626, #f59e0b);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid #fff3c4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  z-index: 12;
  animation: popIn 0.25s ease;
}

.hand-tray.shuffling .hand-card {
  animation: cardRiffle 0.32s ease-in-out;
}

@keyframes cardRiffle {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-18px) scale(0.92) rotate(0deg); opacity: 0.7; }
  100% { transform: translateY(var(--fan-y, 0px)) rotate(var(--fan-rot, 0deg)) scale(1); opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.75); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

.playing-card.red { color: #d10f1f; }

.playing-card.winner-glow {
  border: 2px solid var(--gold-light);
  box-shadow: 0 0 20px rgba(255, 224, 115, 0.98);
  transform: translateY(-4px) scale(1.06);
}

/* 6 Deck Skins (subtle finish while preserving exact classic card readability) */
.playing-card.deck-french {
  background: #fffdf7;
  border: 1.5px solid #d7a645;
}
.playing-card.deck-wizard {
  background: radial-gradient(circle at 50% 45%, #f7e4b6, #e2c27f 90%);
  border: 1.5px solid #966619;
  color: #241300;
}
.playing-card.deck-wizard.red { color: #9c0e1e; }
.playing-card.deck-swiss {
  background: linear-gradient(160deg, #ffffff 0%, #edf3fa 100%);
  border: 1.5px solid #7aa3cc;
}
.playing-card.deck-western {
  background: linear-gradient(155deg, #f6e7cc 0%, #e1c69c 100%);
  border: 1.5px solid #6e421e;
  color: #2d1806;
}
.playing-card.deck-western.red { color: #a31818; }
.playing-card.deck-epic {
  background: linear-gradient(155deg, #1b2232 0%, #0d121d 100%);
  border: 1.5px solid #f0b63a;
  color: #fff6dc;
}
.playing-card.deck-epic.red { color: #ff5b7e; }

.card-corner {
  position: absolute;
  top: 4%;
  left: 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: system-ui, 'Roboto Condensed', 'Segoe UI', sans-serif;
  font-weight: 900;
  line-height: 0.9;
  z-index: 2;
}

.rank-text {
  font-size: clamp(19px, 5.2vw, 25px);
  letter-spacing: -0.05em;
}

.suit-pip {
  font-size: clamp(14px, 3.8vw, 18px);
  margin-top: 2px;
}

.card-center-wrap {
  position: absolute;
  left: 24%;
  right: 8%;
  top: 12%;
  bottom: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.pip-field {
  position: relative;
  width: 100%;
  height: 100%;
}

.pip-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 12px;
  line-height: 1;
}

.pip-dot.flip {
  transform: translate(-50%, -50%) rotate(180deg);
}

.card-center-ace {
  font-size: 36px;
  line-height: 1;
}

.card-art-svg { width: 100%; height: 100%; display: block; }

/* Curved Arc Hand Tray */
.hand-tray {
  height: 112px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 4px 10px 0;
  overflow: visible;
}

.player-hand {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  direction: ltr;
  width: 100%;
  max-width: 100%;
}

.hand-card {
  width: clamp(62px, 18vw, 84px);
  height: auto;
  aspect-ratio: 5 / 7;
  cursor: pointer;
  transform: translateY(var(--fan-y, 0px)) rotate(var(--fan-rot, 0deg));
  transform-origin: 50% 165%;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), filter 0.16s ease;
  flex-shrink: 0;
  animation: none;
}

.hand-card.legal:hover,
.hand-card.legal:active {
  transform: translateY(-16px) rotate(0deg) scale(1.06);
  z-index: 30 !important;
}

.hand-card.disabled {
  filter: brightness(0.6) saturate(0.75);
  cursor: not-allowed;
}

.hand-card.shake { animation: shakeCard 0.25s ease-in-out; }

@keyframes shakeCard {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ==================== EMOTE SIDEBAR (شکلک) ==================== */
.emote-sidebar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 175px;
  background: linear-gradient(180deg, #320c57, #140424);
  border-right: 2px solid var(--gold-main);
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.8);
  z-index: 35;
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  gap: 8px;
}

.emote-side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-light);
  border-bottom: 1.5px solid rgba(234, 177, 59, 0.45);
  padding-bottom: 6px;
}

.emote-side-close {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--gold-main);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
}

.emote-side-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  align-content: start;
}

.emote-side-btn {
  background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.28));
  border: 1.5px solid rgba(234, 177, 59, 0.45);
  border-radius: 14px;
  padding: 8px 4px;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s;
}

.emote-side-btn:active { transform: scale(0.92); }

/* ==================== CHAT PACK MODAL (بسته چت) ==================== */
.chat-pack-card {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 18%, rgba(139, 92, 246, 0.28) 0%, rgba(59, 7, 100, 0.6) 55%, #160329 100%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 12px, rgba(0, 0, 0, 0.06) 12px 24px),
    linear-gradient(180deg, #32085c, #140226);
  border: 3px solid #f0be4a;
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 236, 179, 0.32),
    inset 0 0 28px rgba(0, 0, 0, 0.65),
    0 18px 46px rgba(0, 0, 0, 0.9);
  padding-top: 14px;
  padding-bottom: 12px;
}

.chat-crown-top {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 46px;
  pointer-events: none;
  z-index: 12;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.85));
}

.chat-bottom-crest {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  width: 90px;
  height: 26px;
  pointer-events: none;
  z-index: 12;
}

.chat-ribbon-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 14px 4px;
}

.gold-ribbon-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(180deg, #4b2306 0%, #1c0b01 100%);
  color: #ffe485;
  font-size: 18px;
  font-weight: 900;
  padding: 6px 26px;
  border-radius: 999px;
  border: 2.5px solid #f4c652;
  box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.45), 0 4px 12px rgba(0, 0, 0, 0.7);
}
.banner-pip {
  font-size: 15px;
  color: #111;
  background: linear-gradient(180deg, #ffe799, #d6931e);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff7cf;
}

.chat-close-btn {
  position: absolute;
  left: 10px;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6d28d9, #3b0764);
  border: 2px solid #f4c652;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.65);
}

.chat-pack-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.35);
}

.chat-pack-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 2px;
  border-radius: 8px;
  cursor: pointer;
}

.chat-pack-tab.active {
  background: linear-gradient(180deg, #5b189a, #29074c);
  border-color: var(--gold-main);
  color: var(--gold-light);
}

.chat-pack-grid {
  padding: 10px 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 54dvh;
  overflow-y: auto;
}

.chat-phrase-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, #5b189a 0%, #370b63 55%, #230442 100%);
  border: 1.8px solid #efc050;
  border-radius: 999px;
  color: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 8px 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 240, 180, 0.35), 0 3px 6px rgba(0, 0, 0, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.chat-phrase-btn .cp-text {
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-phrase-btn .cp-icon {
  font-size: 17px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65));
}
.chat-phrase-btn.hero-phrase {
  grid-column: span 2;
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 48%),
    linear-gradient(180deg, #6d21b3 0%, #3d0c6e 60%, #240445 100%);
  border: 2px solid #ffe07d;
}

.chat-phrase-btn:active { transform: translateY(2px); }

/* ==================== PARTY (ROOM CODE) SCREEN ==================== */
.party-entry-view {
  align-items: center;
  justify-content: space-evenly;
  padding: 10px 8px 18px;
}

.party-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.party-emblem {
  width: 58px;
  height: 52px;
}

.party-code-input {
  width: 82%;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  padding: 11px 14px;
  background: rgba(18, 6, 33, 0.88);
  border: 2px solid var(--gold-main);
}

.royal-crimson-btn {
  min-width: 190px;
  background: linear-gradient(180deg, #561d8c, #290a47);
  border: 2px solid var(--gold-main);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 17px;
  font-weight: 900;
  padding: 11px 24px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 0 #140424, 0 10px 20px rgba(0, 0, 0, 0.5);
}

.royal-crimson-btn:active { transform: translateY(2px); }

.party-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.party-free-count {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-main);
}

.royal-divider {
  width: 92%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-main), transparent);
}

.party-waiting-view {
  gap: 14px;
  padding: 8px 4px 16px;
}

.party-code-card {
  background: linear-gradient(180deg, #41156e, #1a062e);
  border: 2px solid var(--gold-main);
  border-radius: 18px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.party-code-card b {
  font-size: 32px;
  letter-spacing: 5px;
  color: var(--gold-light);
}

.party-code-card small { font-size: 11px; color: var(--text-muted); }

.party-seats-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(234, 177, 59, 0.45);
  border-radius: 16px;
  padding: 12px;
}

.party-seats-card h4 { margin: 0 0 8px; color: var(--gold-light); }

.party-seats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ==================== HOKM PICKER, CURTAIN, TOAST, MODALS ==================== */
.hokm-picker {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(180deg, #36105c, #170529);
  border: 2.5px solid var(--gold-main);
  border-radius: 18px;
  padding: 14px 12px;
  z-index: 25;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.85);
}

.hokm-picker-title {
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hokm-picker-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.suit-pick-btn {
  background: var(--card-white);
  border: 2px solid #d4cab2;
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 3px 0 #b8a373;
}

.suit-pick-btn span { font-size: 26px; line-height: 1; }
.suit-pick-btn b { font-size: 12px; }
.suit-pick-btn.black { color: var(--black-suit); }
.suit-pick-btn.red { color: var(--red-suit); }

.reshuffle-action {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(180deg, #4b187a, #210738);
  border: 1.5px solid var(--gold-main);
  color: var(--gold-light);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.privacy-curtain {
  position: absolute;
  inset: 0;
  background: rgba(14, 4, 24, 0.95);
  backdrop-filter: blur(6px);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.curtain-card {
  background: linear-gradient(180deg, #3a1163, #170529);
  border: 2px solid var(--gold-main);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  max-width: 300px;
}

.curtain-icon { font-size: 42px; margin-bottom: 8px; }
.curtain-card h3 { margin: 0 0 8px; color: var(--gold-light); }
.curtain-card p { margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }

.game-toast {
  position: fixed;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 5, 42, 0.96);
  border: 1.5px solid var(--gold-main);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  z-index: 9999;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(3px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  max-height: 82dvh;
  background: linear-gradient(180deg, #2d0b4e, #120422);
  border: 2px solid var(--gold-main);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1.5px solid rgba(234, 177, 59, 0.35);
}

.modal-header h3 { margin: 0; font-size: 16px; color: var(--gold-light); }

.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
}

.modal-body {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card { padding: 20px 16px; text-align: center; align-items: center; gap: 10px; }
.result-emoji { font-size: 46px; }
.result-card h3 { margin: 0; font-size: 20px; color: var(--gold-light); }
.result-sub { margin: 0; font-size: 13px; color: var(--text-muted); }

.result-stats {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-actions { display: flex; gap: 8px; width: 100%; margin-top: 6px; }
.result-actions > button { flex: 1; }

.gold-btn {
  background: linear-gradient(180deg, #ffe58f, #d79112);
  border: 1.5px solid #fff4c7;
  color: #2f1800;
  font-family: inherit;
  font-weight: 900;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 #8a5607, 0 8px 16px rgba(0, 0, 0, 0.45);
}

.gold-btn:active { transform: translateY(2px); }

.outline-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--gold-main);
  color: var(--gold-light);
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.danger-btn {
  background: rgba(200, 30, 45, 0.3);
  border: 1.5px solid #ff5c72;
  color: #ffd5da;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.full-width { width: 100%; }
.small-btn { padding: 7px 12px; font-size: 12px; }
.field-label { font-size: 12px; color: var(--text-muted); }
.segmented { display: flex; gap: 6px; }

.seg-btn {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  color: var(--text-light);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 10px;
  cursor: pointer;
}

.seg-btn.active {
  background: rgba(234, 177, 59, 0.24);
  border-color: var(--gold-main);
  color: var(--gold-light);
}

.inline-row, .toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.text-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid var(--gold-main);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(234, 177, 59, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(234, 177, 59, 0.3);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}
.stat-box b { display: block; font-size: 18px; color: var(--gold-light); }
.stat-box span { font-size: 11px; color: var(--text-muted); }
.info-note { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-light); }

/* ==================== SUB SCREENS, ARENAS, CUSTOM, SHOP, VIP ==================== */
.screen-sub { justify-content: space-between; padding: 10px 12px 0; gap: 10px; }
.sub-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sub-title-box { flex: 1; text-align: center; }
.sub-title-box h2 { margin: 0; font-size: 17px; color: var(--gold-light); }
.sub-title-box small { display: block; font-size: 10px; color: var(--text-muted); }
.sub-balance {
  background: rgba(24, 5, 42, 0.88);
  border: 1.5px solid var(--gold-main);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-light);
  white-space: nowrap;
}
.sub-balance-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11px; font-weight: 800; color: var(--gold-light); }
.sub-balance-stack span { background: rgba(24, 5, 42, 0.88); border: 1px solid var(--gold-main); border-radius: 999px; padding: 2px 8px; }
.sub-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; }

.arenas-list { display: flex; flex-direction: column; gap: 10px; }
.arena-card {
  position: relative;
  width: 100%;
  border-radius: 18px;
  padding: 12px 14px;
  border: 2px solid var(--gold-main);
  color: #fff;
  font-family: inherit;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.5), 0 12px 22px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 240, 190, 0.35);
}
.arena-card:active { transform: translateY(2px); }
.arena-card.tier-rookie { background: linear-gradient(135deg, #1b7829, #0c3d13); }
.arena-card.tier-challenger { background: linear-gradient(135deg, #a8102d, #560717); }
.arena-card.tier-pro { background: linear-gradient(135deg, #1a4b8f, #0d264d); }
.arena-card.tier-royal { background: linear-gradient(135deg, #64218f, #330c4d); }

.arena-left { display: flex; align-items: center; gap: 10px; }
.arena-ribbon {
  min-width: 44px;
  padding: 6px 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--gold-main);
  text-align: center;
  line-height: 1.15;
}
.arena-ribbon b { display: block; font-size: 16px; color: var(--gold-light); }
.arena-ribbon span { font-size: 10px; }
.arena-info h3 { margin: 0 0 3px; font-size: 16px; font-weight: 900; }
.arena-economy { font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.arena-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.arena-badge-icon { font-size: 26px; }
.arena-rewards { display: flex; gap: 5px; font-size: 10px; font-weight: 800; }
.reward-chip { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 231, 163, 0.4); border-radius: 999px; padding: 2px 7px; color: var(--gold-light); }
.arena-tip-box { display: flex; align-items: center; gap: 8px; background: rgba(24, 5, 42, 0.78); border: 1px dashed var(--gold-main); border-radius: 14px; padding: 10px 12px; }
.arena-tip-box p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.custom-tabs, .shop-tabs {
  display: grid;
  gap: 6px;
  background: rgba(16, 4, 30, 0.85);
  border: 1.5px solid var(--gold-main);
  border-radius: 14px;
  padding: 4px;
}
.custom-tabs { grid-template-columns: 1fr 1fr; }
.shop-tabs { grid-template-columns: repeat(4, 1fr); }
.custom-tab, .shop-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
}
.custom-tab.active, .shop-tab.active {
  background: linear-gradient(135deg, #561d8c, #290a47);
  color: var(--gold-light);
  border: 1px solid rgba(232, 184, 83, 0.6);
}

.custom-panel { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.search-bar-row { display: flex; gap: 6px; align-items: center; }

.room-card {
  background: linear-gradient(180deg, rgba(48, 16, 80, 0.94), rgba(18, 5, 34, 0.98));
  border: 1.8px solid var(--gold-main);
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.room-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-host { display: flex; align-items: center; gap: 8px; }
.room-host-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1.5px solid var(--gold-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.room-seats-badge { background: linear-gradient(135deg, #25b864, #14773e); border: 1.5px solid #a2f5c3; color: #fff; border-radius: 10px; padding: 3px 9px; font-size: 11px; font-weight: 800; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; font-size: 12px; background: rgba(0, 0, 0, 0.28); border-radius: 12px; padding: 8px 10px; }
.room-grid div { display: flex; justify-content: space-between; gap: 4px; }
.room-grid span { color: var(--text-muted); }
.room-grid b { color: var(--gold-light); }
.room-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reshuffle-pill { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); }
.reshuffle-pill.on { color: #6df59d; border: 1px solid rgba(109, 245, 157, 0.45); }
.reshuffle-pill.off { color: #ff8e9c; border: 1px solid rgba(255, 92, 114, 0.4); }

.create-room-card { background: rgba(24, 5, 42, 0.9); border: 1.8px solid var(--gold-main); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.room-id-banner { display: flex; align-items: center; justify-content: space-between; background: rgba(234, 177, 59, 0.14); border: 1px solid var(--gold-main); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.room-id-banner b { font-size: 16px; letter-spacing: 1px; color: var(--gold-light); }
.reshuffle-row { background: rgba(0, 0, 0, 0.28); border-radius: 12px; padding: 8px 10px; }

.chat-drawer { margin: 0 -12px; background: rgba(14, 3, 26, 0.98); border-top: 2px solid var(--gold-main); border-radius: 18px 18px 0 0; padding: 6px 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.chat-drawer-handle { background: none; border: none; color: var(--gold-light); font-family: inherit; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.chat-toggle-arrow { transition: transform 0.2s; }
.chat-drawer.open .chat-toggle-arrow { transform: rotate(180deg); }
.chat-preview-line { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-drawer.open .chat-preview-line { display: none; }
.chat-expanded-body { display: none; flex-direction: column; gap: 8px; }
.chat-drawer.open .chat-expanded-body { display: flex; }
.chat-messages { max-height: 135px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { font-size: 12px; background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 6px 9px; }
.chat-msg b { color: var(--gold-main); margin-left: 6px; }
.chat-input-row { display: flex; gap: 6px; }
.chat-input { font-size: 12px; padding: 6px 10px; }

/* VIP & Shop */
.vip-shield-btn {
  background: linear-gradient(155deg, #4b1272, #220636);
  border: 2px solid #d49b2b;
  border-radius: 14px;
  padding: 4px 8px;
  color: #ffe699;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(98, 22, 150, 0.45), inset 0 1px 0 rgba(255, 232, 160, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.vip-shield-btn:active { transform: scale(0.95); }
.vip-shield-btn.active-vip {
  background: linear-gradient(155deg, #fff0a8, #d99416);
  border-color: #fffbe0;
  color: #311a00;
  box-shadow: 0 0 18px rgba(255, 219, 107, 0.78);
}

/* Profile Account & Auth */
.profile-section-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(234, 177, 59, 0.35);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-inline-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.profile-inline-row .text-input {
  flex: 1;
  min-width: 0;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.auth-tab-btn {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.auth-tab-btn.active {
  border-color: var(--gold-main);
  background: rgba(234, 177, 59, 0.2);
  color: var(--gold-light);
}
.account-id-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.24);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #f3e8ff;
  font-size: 11px;
  font-weight: 800;
  direction: ltr;
}
.vip-shield-txt { font-size: 9px; font-weight: 900; }
.xp-boost-chip { font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 999px; background: linear-gradient(90deg, #8b5cf6, #ec4899); color: #fff; }

.shop-banner-msg { background: rgba(234, 177, 59, 0.14); border: 1.5px solid var(--gold-main); border-radius: 12px; padding: 8px 12px; font-size: 12px; text-align: center; color: var(--gold-light); }
.shop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-content: start; padding-bottom: 14px; }
.shop-item-card {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, #3c1263, #170529);
  border: 1.8px solid var(--gold-main);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: center;
  overflow: hidden;
}
.shop-item-title { font-size: 12px; font-weight: 800; color: var(--gold-light); }
.shop-ribbon { position: absolute; top: 8px; left: -22px; background: linear-gradient(90deg, #ff3e6c, #ff8b4d); color: #fff; font-size: 10px; font-weight: 900; padding: 2px 24px; transform: rotate(-38deg); }
.shop-preview-stage { width: 100%; height: 92px; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; perspective: 500px; }
.shop-preview-stage.stage-cards { background: radial-gradient(circle, rgba(234, 177, 59, 0.2), rgba(20, 2, 8, 0.85)); }
.shop-preview-stage.stage-coins { background: radial-gradient(circle, rgba(42, 204, 108, 0.28), rgba(6, 30, 18, 0.9)); }
.shop-preview-stage.stage-tickets { background: radial-gradient(circle, rgba(164, 72, 232, 0.3), rgba(26, 8, 42, 0.9)); }
.shop-preview-stage.stage-gear { background: radial-gradient(circle, rgba(72, 132, 255, 0.28), rgba(8, 16, 44, 0.9)); }

.mini-deck-fan { position: relative; width: 96px; height: 70px; transform: rotateX(10deg); }
.mini-fan-card { position: absolute; width: 40px; height: 58px; border-radius: 6px; padding: 3px 4px; font-size: 11px; font-weight: 900; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55); }
.mini-fan-card.f1 { left: 8px; top: 8px; transform: rotate(-18deg); }
.mini-fan-card.f2 { left: 28px; top: 4px; transform: rotate(-2deg); }
.mini-fan-card.f3 { left: 48px; top: 8px; transform: rotate(15deg); }

.emblem-3d { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.emblem-3d-icon { font-size: 36px; }
.emblem-3d-amt { font-size: 14px; font-weight: 900; color: #fff; }
.emblem-3d-sub { font-size: 10px; font-weight: 800; color: var(--gold-light); background: rgba(0, 0, 0, 0.45); border: 1px solid var(--gold-main); border-radius: 999px; padding: 1px 7px; }

.shop-action-btn { width: 100%; padding: 7px 6px; border-radius: 10px; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.shop-action-btn.buy { background: linear-gradient(180deg, #43da6a, #1d8f3c); border: 1.5px solid #afffc4; color: #fff; box-shadow: 0 3px 0 #115824; }
.shop-action-btn.select { background: linear-gradient(180deg, #ffe285, #cf8a13); border: 1.5px solid #fff3c7; color: #2f1a00; box-shadow: 0 3px 0 #8a5a07; }
.shop-action-btn.active { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); color: var(--text-muted); cursor: default; }

.vip-hero-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(0, 0, 0, 0.35); border: 1.5px solid var(--gold-main); border-radius: 16px; padding: 12px; }
.vip-crest-3d { width: 62px; height: 62px; border-radius: 16px; background: linear-gradient(155deg, #ffe48a, #b7770d); border: 2px solid #fff5cf; display: flex; align-items: center; justify-content: center; }
.vip-perk-item { display: flex; align-items: center; gap: 8px; font-size: 12px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 7px 10px; }
.vip-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vip-plan-btn { background: linear-gradient(180deg, #4b187a, #210738); border: 1.5px solid var(--gold-main); border-radius: 14px; padding: 10px 4px; color: #fff; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.vip-plan-badge { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, #3ee076, #178a3d); border: 2px solid #ffe48a; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 900; }

/* Vector sizing */
.lux-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55)); }
.lux-icon-sm { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lux-icon-md { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lux-icon-lg { width: 56px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }

/* ==================== OPPONENT EDGE FANS & 5-SEC TURN TIMER ==================== */
.edge-fan {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edge-fan-top {
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  direction: ltr;
}

.edge-fan-right {
  right: -14px;
  top: 44%;
  transform: translateY(-50%);
  flex-direction: column;
}

.edge-fan-left {
  left: -14px;
  top: 44%;
  transform: translateY(-50%);
  flex-direction: column;
}

.edge-card-back {
  width: 30px;
  height: 44px;
  border-radius: 6px;
  background-color: #1a398a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' fill='%23173582'/%3E%3Cpath d='M10 1L19 10L10 19L1 10Z' fill='none' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1'/%3E%3Ccircle cx='10' cy='10' r='3' fill='none' stroke='%23ffffff' stroke-opacity='0.35' stroke-width='0.9'/%3E%3Ccircle cx='10' cy='10' r='1' fill='%23ffffff' fill-opacity='0.45'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  border: 2px solid #ffffff;
  box-shadow: inset 0 0 0 1.2px #10245e, 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.edge-fan-top .edge-card-back {
  margin-left: -18px;
  transform: rotate(var(--ef-rot, 0deg));
}
.edge-fan-top .edge-card-back:first-child { margin-left: 0; }

.edge-fan-right .edge-card-back {
  width: 40px;
  height: 26px;
  margin-top: -19px;
  transform: rotate(var(--ef-rot, 0deg));
}
.edge-fan-right .edge-card-back:first-child { margin-top: 0; }

.edge-fan-left .edge-card-back {
  width: 40px;
  height: 26px;
  margin-top: -19px;
  transform: rotate(var(--ef-rot, 0deg));
}
.edge-fan-left .edge-card-back:first-child { margin-top: 0; }

/* 5-Second Turn Timer */
.seat-timer-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.15s;
}

.seat.active-turn .seat-timer-bar {
  opacity: 1;
}

.seat-timer-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #42e87a, #ffd659);
  transition: width 0.09s linear;
}

.seat-timer-bar.urgent span {
  background: linear-gradient(90deg, #ff3e5e, #ff9945);
}

.seat-timer-bar.bottom-timer {
  bottom: -5px;
  left: 16px;
  right: 16px;
}

.turn-timer-pill {
  font-size: 11px;
  font-weight: 900;
  color: #2c1400;
  background: linear-gradient(90deg, #fff1b8, #ffba42);
  border-radius: 999px;
  padding: 1px 8px;
}

.turn-timer-pill.urgent {
  background: linear-gradient(90deg, #ff4764, #ff8b42);
  color: #fff;
  animation: pulseGold 0.6s infinite;
}

/* ==================== DAILY LUCKY WHEEL ==================== */
.wheel-stage {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 6px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 22px solid #ffd859;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
  z-index: 5;
}
.wheel-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid #f0be4a;
  box-shadow: 0 0 24px rgba(234, 177, 59, 0.45), inset 0 0 18px rgba(0, 0, 0, 0.65);
  background: conic-gradient(
    #6d28d9 0deg 60deg,
    #b91c1c 60deg 120deg,
    #0f766e 120deg 180deg,
    #b45309 180deg 240deg,
    #4c1d95 240deg 300deg,
    #be185d 300deg 360deg
  );
  transition: transform 3.8s cubic-bezier(0.14, 0.85, 0.22, 1);
  position: relative;
}
.wheel-center-cap {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b0, #d4931b);
  border: 3px solid #2b1300;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  z-index: 4;
}

/* New Persian court table and crisp, gently fanned cards */
.screen-game { background: radial-gradient(ellipse at 50% 42%, #123d2a 0%, #061b16 48%, #100712 100%); }
.table-stage-3d { background: radial-gradient(ellipse at 50% 45%,#174b32 0%,#0b261c 58%,#07140f 100%); }
.table-arena { background: radial-gradient(ellipse at 50% 38%, rgba(45,133,78,.28), rgba(4,38,25,.86) 76%), repeating-linear-gradient(32deg, rgba(255,255,255,.012) 0 1px, transparent 1px 5px), linear-gradient(160deg,#145232,#062b1d 68%,#041a13); border-color:#d6b568; box-shadow: inset 0 0 0 3px #082a1b, inset 0 0 0 5px #f0d48a, inset 0 14px 32px rgba(0,0,0,.4), 0 0 0 2px #321b0b, 0 12px 30px rgba(0,0,0,.72), 0 0 22px rgba(215,178,91,.15); }
.playing-card { background: linear-gradient(135deg,#fffefa 0%,#f8f4e9 74%,#eee6d4 100%); border: 1px solid #d5c9ad; border-radius: 7px; box-shadow: 0 1px 0 #fff, 0 3px 7px rgba(0,0,0,.36), 0 10px 18px rgba(0,0,0,.18); }
.playing-card::after { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(147,119,67,.12); border-radius: 4px; pointer-events: none; }
.hand-card { transform-origin: 50% 185%; transition: transform .18s cubic-bezier(.2,.8,.2,1), filter .18s ease, box-shadow .18s ease; }
.hand-card.legal:hover, .hand-card.legal:active { transform: translateY(-17px) rotate(0) scale(1.09); filter: drop-shadow(0 8px 8px rgba(0,0,0,.35)); }
@media (max-width: 390px) { .hand-tray { padding-left: 5px; padding-right: 5px; } .playing-card { border-radius: 6px; } }

.language-toggle{position:fixed;z-index:100;top:max(10px,env(safe-area-inset-top));right:12px;min-width:42px;padding:8px 11px;border:1px solid #d9b85f;border-radius:999px;background:rgba(9,24,20,.94);color:#ffe59b;font:800 12px system-ui;box-shadow:0 4px 16px #0008}.season-path-entry{border-color:#cfaa52!important;background:linear-gradient(100deg,rgba(13,73,48,.94),rgba(92,56,16,.72))!important}.season-modal{max-height:88dvh;overflow:auto;background:linear-gradient(155deg,#111b1b,#10111a 70%);border:1px solid #c8a956}.season-overview{display:grid;grid-template-columns:74px 1fr;gap:14px;align-items:center;padding:16px;background:linear-gradient(120deg,#075536,#18251e);border:1px solid #c8a956;border-radius:16px}.season-medallion{width:66px;height:66px;display:grid;place-items:center;border:2px solid #e8c86d;border-radius:50%;font-size:38px;color:#ffe29a;background:radial-gradient(circle,#956c24,#172b20 68%)}.season-overview strong,.season-overview small{display:block}.season-overview strong{font-size:18px;color:#ffe39a}.season-overview small{margin-top:5px;color:#d7d1bc}.season-progress{height:9px;margin-top:10px;border-radius:99px;background:#07170f;overflow:hidden}.season-progress i{display:block;width:12%;height:100%;background:linear-gradient(90deg,#35ad60,#f0cd6b);border-radius:inherit}.season-rank-list{position:relative;margin:15px 0;padding:4px 0 4px 12px;border-left:2px solid #aa8740}.season-rank{display:flex;align-items:center;gap:12px;min-height:48px;color:#d9d4c6}.season-rank em{width:34px;height:34px;display:grid;place-items:center;border:1px solid #8e7541;border-radius:50%;font-style:normal;background:#11181c}.season-rank.current{color:#ffe18a;font-weight:900}.season-rank.current em{background:#a87922;color:#130d03}

.english-ui{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}.english-ui .brand-title,.english-ui button,.english-ui input,.english-ui select{font-family:inherit}.english-ui .season-overview small{direction:ltr;text-align:left}

.seat-avatar img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}.seat-avatar:has(img){overflow:hidden;padding:0;background:#14291c;border:1.5px solid #e6ca7a;box-shadow:0 0 0 2px #30200d,0 2px 9px #0009}

.avatar-circle .player-avatar-art,.seat-avatar .player-avatar-art{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}.avatar-shop-art{display:block;width:82px;height:82px;border-radius:50%;object-fit:cover;border:2px solid #d7b76c;box-shadow:0 4px 14px #0008}.stage-gear:has(.avatar-shop-art){background:radial-gradient(circle,#304432,#101612 68%)}.avatar-circle:has(img){overflow:hidden;padding:0}

/* Achaemenid court visual system across lobby, shop and profile */
:root{--bg-top:#102b20;--bg-mid:#091b16;--bg-deep:#050d0b;--accent-royal:#d9bd70;--accent-teal:#2e7950;--gold-light:#f5e5ad;--gold-main:#cba653;--gold-dark:#765727;--text-light:#f5f0df;--text-muted:#c4c6b8}
html,body{background:#050b09}.app-shell{background:radial-gradient(ellipse at 50% 12%,rgba(54,113,75,.22),transparent 52%),radial-gradient(ellipse at 86% 70%,rgba(195,153,67,.09),transparent 44%),repeating-linear-gradient(135deg,rgba(239,215,154,.012) 0 1px,transparent 1px 18px),linear-gradient(180deg,#10281e 0%,#091712 58%,#050b09 100%)}.player-pill{background:linear-gradient(145deg,rgba(24,64,43,.96),rgba(8,24,17,.98))}.avatar-circle{background:linear-gradient(145deg,#244b35,#101b15)}.lobby-nav{background:linear-gradient(180deg,#153a29,#081610)}.nav-circle{background:radial-gradient(circle at 35% 25%,#315d3e,#0c1c13)}.modal-card{background:linear-gradient(155deg,#173527,#0b1712 72%,#09100e);border-color:#b99a50;box-shadow:0 18px 40px #000b,inset 0 0 0 1px #e4d09422}.modal-header{background:linear-gradient(90deg,rgba(28,78,50,.44),rgba(0,0,0,.2));border-bottom-color:#b99a5055}.shop-item-card{background:linear-gradient(150deg,#1b3a2a,#101b15 70%,#0b110e);border-color:#a88c4c;box-shadow:inset 0 1px 0 #f6e5ad22,0 8px 18px #0005}.shop-preview-stage.stage-cards{background:radial-gradient(circle,#445638,#121a13 72%)}.shop-preview-stage.stage-tickets{background:radial-gradient(circle,#354332,#101712 72%)}.shop-preview-stage.stage-gear{background:radial-gradient(circle,#354a39,#101612 72%)}.profile-section-card{background:linear-gradient(145deg,rgba(38,70,48,.5),rgba(7,18,13,.75));border-color:#b99a505c}.account-id-badge{background:rgba(42,95,58,.28);border-color:rgba(192,163,91,.58);color:#f5e5ad}.xp-boost-chip{background:linear-gradient(90deg,#477345,#a8752b)}.shop-action-btn.select{background:linear-gradient(180deg,#f3df9e,#b38a3e);border-color:#fff1c4;color:#241a0b}.shop-action-btn.buy{background:linear-gradient(180deg,#58a76a,#27643d);border-color:#a6d4a0;box-shadow:0 3px 0 #17452b}.sub-header{background:linear-gradient(90deg,rgba(22,59,39,.88),rgba(7,18,13,.8));border-bottom:1px solid #b99a504a}.screen-lobby .missions-strip{background:linear-gradient(110deg,rgba(20,59,39,.94),rgba(15,26,19,.92));border-color:#8a7443}.screen-lobby .quick-row .mini-action{color:#e8d69c}

/* Royal court finishing across dialogs and sub-screens */
.emote-sidebar{background:linear-gradient(180deg,#173b29,#07140f);border-right-color:#b99a50}.hokm-picker{background:linear-gradient(155deg,rgba(18,54,35,.98),rgba(7,17,12,.98));border-color:#b99a50}.hokm-plaque{background:linear-gradient(180deg,#365d3a,#172c1c);border-color:#d8b962}.hokm-suit.red{color:#ed7373}.result-card,.arena-card,.room-card,.custom-room-card{background:linear-gradient(150deg,#193a29,#0a1711);border-color:#a88c4c}.arena-card.tier-royal{background:linear-gradient(135deg,#455a31,#183222);border-color:#e0c774}.arena-card.tier-challenger,.arena-card.tier-pro,.arena-card.tier-rookie{background:linear-gradient(145deg,#193a2b,#0c1712)}.auth-tab-btn.active{background:rgba(78,121,65,.32)}.vip-plan-btn{background:linear-gradient(180deg,#244b34,#102319)}.chat-message,.chat-row,.list-item{border-color:rgba(190,164,92,.24)}.emote-pack-tab.active,.seg-btn.active{background:linear-gradient(180deg,#3b6841,#193d29);border-color:#d3b35f}.table-status-banner{background:rgba(11,37,25,.96);border-color:#d2b25d}.screen-sub,.screen-shop,.screen-arenas,.screen-custom{background-color:#08130e}

/* Player-selected Persian court themes and realistic table finish */
.app-shell.theme-cypress{background:radial-gradient(ellipse at 50% 12%,#31593b88,transparent 58%),linear-gradient(180deg,#0d2417,#06110c)}.app-shell.theme-lapis{background:radial-gradient(ellipse at 50% 12%,#335b8580,transparent 56%),linear-gradient(180deg,#122b48,#07111e)}.app-shell.theme-copper{background:radial-gradient(ellipse at 42% 12%,#9b542b80,transparent 56%),linear-gradient(180deg,#321b15,#120d0a)}.app-shell.theme-ivory{background:radial-gradient(ellipse at 50% 10%,#a38b4a65,transparent 56%),linear-gradient(180deg,#2c2a1d,#10110c)}.theme-preview{width:96px;height:76px;border-radius:12px;border:2px solid #d5b45b;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(145deg,#244b34,#0c1a12);box-shadow:inset 0 0 0 4px #0a160f,inset 0 0 0 5px #f0d998}.theme-preview b{font-size:38px;color:#f2d785;text-shadow:0 3px 4px #000}.theme-preview i{position:absolute;inset:8px;border:1px solid #f3df9c88;border-radius:8px}.theme-preview.theme-cypress{background:linear-gradient(145deg,#3b6b42,#102419)}.theme-preview.theme-lapis{background:linear-gradient(145deg,#32618c,#0c2040)}.theme-preview.theme-copper{background:linear-gradient(145deg,#a65731,#351912)}.theme-preview.theme-ivory{background:linear-gradient(145deg,#95824d,#29271b)}.theme-preview.theme-crimson{background:linear-gradient(145deg,#792c2d,#2e1013)}.theme-preview.theme-emerald{background:linear-gradient(145deg,#31754c,#082819)}.theme-preview.theme-sapphire{background:linear-gradient(145deg,#3f5d9f,#101b42)}.shop-preview-stage.stage-gear{height:124px}.shop-preview-stage.stage-gear:has(.theme-preview){background:radial-gradient(circle,#3f4531,#0c1510)}.mini-deck-fan{width:150px;height:96px}.mini-fan-card{width:54px;height:78px;border-radius:7px;padding:4px 5px;font-size:13px;background-image:linear-gradient(135deg,#fffefa,#eee5d0)!important;box-shadow:-1px 2px 6px #0008,0 0 0 1px #b89a5c}.mini-fan-card::after{content:"";position:absolute;inset:3px;border:1px solid #b89a5c55;border-radius:4px;pointer-events:none}.mini-fan-card.f1{left:10px;top:14px;transform:rotate(-26deg)}.mini-fan-card.f2{left:34px;top:5px;transform:rotate(-13deg)}.mini-fan-card.f3{left:58px;top:0;transform:rotate(0)}.mini-fan-card.f4{left:82px;top:5px;transform:rotate(13deg)}.mini-fan-card.f5{left:106px;top:14px;transform:rotate(26deg)}.deck-achaemenid{background:linear-gradient(145deg,#fff8df,#f0e2bc);border:2px solid #9b6b22;color:#163d28}.deck-firetemple{background:linear-gradient(145deg,#fff2df,#e9d8bd);border:2px solid #9f3826;color:#7a1d18}.deck-lapis{background:linear-gradient(145deg,#153b65,#092445);border:2px solid #e3c36c;color:#fff4ce}.deck-lapis.red{color:#ff8583}.playing-card{background-image:linear-gradient(135deg,#fffefa 0%,#fbf8ef 54%,#ece3d1 100%);box-shadow:0 1px 0 #fff,0 3px 7px #0006,0 12px 18px #0003}.playing-card::before{content:"";position:absolute;inset:5px;border:1px solid rgba(164,132,69,.2);border-radius:4px;pointer-events:none}.card-center-ace{text-shadow:0 1px 1px #aaa}.table-arena .trick-zone::before{content:"";position:absolute;z-index:0;left:50%;top:50%;width:128px;height:92px;transform:translate(-50%,-50%);border-radius:18px;background:radial-gradient(ellipse at 50% 35%,#7d2727,#431416 78%);border:2px solid #d6b568;box-shadow:inset 0 0 0 4px #55191c,inset 0 0 0 5px #e2c47a,0 4px 16px #0006}.table-arena .trick-slot{z-index:2}.table-ornament.orn-top{display:none}.table-ornament.orn-bottom{display:none}.seat-side{flex-direction:row;text-align:start;min-width:110px;width:max-content;max-width:130px;gap:7px;padding:5px 8px;background:linear-gradient(100deg,#102719ee,#07140eee);border:1px solid #c9ab5d;border-radius:14px}.seat-side .seat-avatar{width:38px;height:38px;flex:0 0 38px}.seat-side .seat-meta{min-width:0}.seat-side .seat-name{white-space:nowrap;font-size:10px}.seat-avatar img{border-radius:50%}.seat-top{min-width:115px;justify-content:center}.seat-top .seat-avatar{width:40px;height:40px}.seat-top .seat-meta{text-align:start}.seat-top .seat-name{font-size:11px}.table-watermark{opacity:.55}.ambient-particles{display:none}.vip-crest-3d{background:radial-gradient(circle at 35% 25%,#e7cb7d,#9a712d 58%,#382911);border:2px solid #f4dea0;box-shadow:inset 0 0 0 3px #553c17,0 5px 13px #0007}.vip-plan-btn{transition:filter .15s ease,transform .15s ease}.vip-plan-btn:active{transform:translateY(1px)}.daily-pill::after{content:"+50";font-size:10px;color:#f3dda0;font-weight:900}
@keyframes cardRiffle{0%{transform:translateY(0) rotate(var(--fan-rot,0deg))}18%{transform:translateY(-18px) rotate(calc(var(--fan-rot,0deg) + 5deg))}42%{transform:translateY(-10px) rotate(calc(var(--fan-rot,0deg) - 8deg))}68%{transform:translateY(-14px) rotate(calc(var(--fan-rot,0deg) + 5deg))}100%{transform:translateY(var(--fan-y,0px)) rotate(var(--fan-rot,0deg))}}.hand-tray.shuffling .hand-card{animation:cardRiffle .68s cubic-bezier(.22,1,.36,1) both}

.toggle-row #language-toggle{position:static;top:auto;right:auto;min-width:52px;padding:6px 12px;box-shadow:none;background:linear-gradient(180deg,#31553a,#152a1c);border-color:#b99a50;color:#f5e5ad}.seat-side .seat-name,.seat-top .seat-name{color:#f5e5ad;text-shadow:0 1px 3px #000}.seat-side .seat-cards-count{color:#d5cba7}.table-stage-3d{background-image:radial-gradient(ellipse at 50% 45%,#174b32 0%,#0b261c 58%,#07140f 100%)}.table-arena{border-radius:48% / 34%}.table-arena .trick-zone{overflow:visible}.hand-tray{height:122px}.hand-card{filter:drop-shadow(0 3px 4px #0005)}

.opp-mini-card{background:repeating-linear-gradient(45deg,#d9ba64 0 1px,transparent 1px 5px),linear-gradient(135deg,#16452e,#092217);border:1px solid #f1d98c;box-shadow:0 2px 6px #0009,inset 0 0 0 2px #17402b}.modal-vip-card *{animation:none!important}.hud-btn .lux-icon-sm{width:20px;height:20px;display:inline-flex}.playing-card.deck-achaemenid{background-image:linear-gradient(135deg,#fff8df,#f0e2bc),repeating-linear-gradient(45deg,#a77b2b11 0 1px,transparent 1px 6px)}.playing-card.deck-firetemple{background-image:linear-gradient(135deg,#fff2df,#e9d8bd),repeating-linear-gradient(45deg,#9f382611 0 1px,transparent 1px 6px)}.playing-card.deck-lapis{background-image:linear-gradient(145deg,#153b65,#092445);border-color:#e3c36c}

/* Polished shop previews, portraits and felt table */
.shop-preview-stage.stage-cards{height:132px;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#566b43 0%,#17271b 72%)}
.mini-deck-fan{width:204px;height:110px;transform:rotateX(0);}
.mini-fan-card{width:52px;height:82px;padding:5px 6px;font-size:15px;box-shadow:-1px 3px 8px #000b,0 0 0 1px #b89a5c}
.mini-fan-card.f1{left:5px;top:24px;transform:rotate(-25deg)}.mini-fan-card.f2{left:42px;top:8px;transform:rotate(-13deg)}.mini-fan-card.f3{left:76px;top:3px;transform:rotate(0)}.mini-fan-card.f4{left:110px;top:8px;transform:rotate(13deg)}.mini-fan-card.f5{left:147px;top:24px;transform:rotate(25deg)}
.shop-preview-stage.stage-gear{height:168px;background:radial-gradient(ellipse at 50% 55%,#28583a,#0b1710 78%)}.stage-gear .emblem-3d{width:100%;height:100%;justify-content:center;gap:7px}.stage-gear .emblem-3d-icon{display:grid;place-items:center;min-height:112px}.stage-gear .avatar-shop-art{width:112px;height:112px;object-fit:cover;border-radius:50%;border:2px solid #d6b568;box-shadow:0 4px 16px #0009}.stage-gear .emblem-3d:has(.theme-preview) .emblem-3d-icon{width:100%;height:125px}.theme-preview{width:min(88%,210px);height:112px;border-radius:10px;box-shadow:inset 0 0 0 3px #0a160f,inset 0 0 0 5px #f0d998,0 7px 18px #0008}.theme-preview b{font-size:52px}.theme-preview i{inset:9px}
.table-arena .trick-zone::before{content:none!important;display:none!important}
.crown-icon{filter:drop-shadow(0 3px 4px #0009) drop-shadow(0 0 6px #d4ad4b55)}

/* Table HUD and visual card shuffle */
.table-stage-3d{background:radial-gradient(ellipse at 50% 45%,#174b32 0%,#0b261c 58%,#07140f 100%)!important;background-image:radial-gradient(ellipse at 50% 45%,#174b32 0%,#0b261c 58%,#07140f 100%)!important}
.table-backdrop-mandala{width:min(94vw,390px);height:min(94vw,390px);background:repeating-radial-gradient(ellipse at center,transparent 0 23px,#d8bb7030 24px,#d8bb7010 26px,transparent 27px 48px),repeating-conic-gradient(from 7deg,#d9bd6914 0deg 1deg,transparent 1deg 15deg);border:1px solid #d5b35a45;mask-image:radial-gradient(circle,#000 22%,#0007 65%,transparent 77%)}
.table-score-rail{position:absolute;z-index:5;top:11px;left:13px;right:13px;display:flex;justify-content:space-between;gap:8px;pointer-events:none}.table-score-chip{min-width:76px;padding:5px 9px;border:1px solid #c9ab5d;border-radius:12px;background:linear-gradient(145deg,#183a28f5,#091710f5);box-shadow:0 4px 12px #0008,inset 0 1px #fff2;color:#f5e5ad;display:grid;grid-template-columns:1fr auto;align-items:center;gap:1px 8px;font-size:10px}.table-score-chip>span{font-weight:800}.table-score-chip>div{grid-column:2;grid-row:1/3;display:flex;align-items:baseline;gap:4px}.table-score-chip>div b{font-size:20px;color:#fff0b0}.table-score-chip>div small,.table-match-score{font-size:8px;color:#d4c394}.table-match-score{grid-column:1;grid-row:2}.table-hud .scoreboard{display:none!important}
.hand-tray{height:142px!important;padding-top:5px!important}.hand-info-row{height:31px;display:flex;align-items:center;justify-content:space-between;padding:0 10px 3px}.table-hokm-chip{height:27px;min-width:116px;display:flex;align-items:center;justify-content:center;gap:7px;padding:2px 10px;border:1px solid #c7a651;border-radius:999px;background:linear-gradient(145deg,#193c29,#07170f);box-shadow:0 3px 9px #0008,inset 0 1px #fff2}.table-hokm-mark{font-size:11px;color:#dabb66}.table-hokm-chip .hokm-label{font-size:9px;color:#dac786}.table-hokm-chip .hokm-suit{font-size:18px;font-weight:900}.table-hokm-chip #hokm-suit-name{font-size:9px;color:#e5d7ae}.hand-guide{font-size:9px;color:#cbbd91}.hand-tray.shuffling .hand-card{animation:realRiffleDeal 1.08s cubic-bezier(.3,.03,.35,1) both;animation-delay:calc(var(--card-index,0)*18ms)}.hand-tray.shuffling::before{content:'جمع‌آوری و بر زدن کارت‌ها';position:absolute;z-index:70;left:50%;top:-19px;transform:translateX(-50%);padding:4px 12px;border:1px solid #d2b45f;border-radius:999px;background:#102519ee;color:#f6dfa0;font-size:10px;font-weight:800;box-shadow:0 4px 14px #0009;animation:shuffleLabel 1.08s ease both}.hand-tray.shuffling::after{content:'';position:absolute;z-index:3;left:50%;top:46px;width:62px;height:82px;transform:translateX(-50%);border:1px solid #f1d98c;border-radius:7px;background:repeating-linear-gradient(45deg,#305c3c 0 4px,#173721 4px 8px);box-shadow:-5px 3px #d5b568,-10px 6px #17351f,0 6px 16px #0009;opacity:0;animation:shuffleDeck 1.08s ease both;pointer-events:none}@keyframes realRiffleDeal{0%{transform:translateY(0) rotate(var(--fan-rot,0deg));opacity:1}18%{transform:translateY(-28px) translateX(var(--riffle-small,0px)) rotate(0deg);opacity:.95}36%{transform:translateY(8px) translateX(var(--riffle-wide,0px)) rotate(var(--riffle-rotate,0deg));opacity:.72}60%{transform:translateY(-8px) translateX(var(--riffle-small,0px)) rotate(var(--riffle-rotate,0deg));opacity:.9}100%{transform:translateY(0) rotate(var(--fan-rot,0deg));opacity:1}}@keyframes shuffleDeck{0%,15%{opacity:0;transform:translate(-50%,8px) scale(.8)}35%,65%{opacity:1;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-6px) scale(.85)}}@keyframes shuffleLabel{0%,78%{opacity:1}100%{opacity:0}}
.xp-medallion{position:relative;width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 25%,#fff0ae,#c89a39 52%,#6b4518 100%);border:2px solid #f5df9e;box-shadow:inset 0 0 0 4px #7f5a21,inset 0 0 0 6px #f4d988,0 6px 14px #0008;color:#4b3213}.xp-medallion:before,.xp-medallion:after{content:'';position:absolute;inset:9px;border:1px dashed #714d1b;border-radius:50%}.xp-medallion i{position:absolute;inset:15px;border-radius:50%;background:radial-gradient(circle,#fff6c8,#d9ac4b);box-shadow:inset 0 1px 4px #72531b}.xp-medallion b{z-index:1;font-size:17px;font-family:Georgia,serif;letter-spacing:1px}.xp-medallion small{position:absolute;z-index:1;bottom:11px;font-size:9px;font-weight:900}.coin-stack{position:relative;width:58px;height:48px;display:block}.coin-stack i{position:absolute;width:37px;height:37px;display:block;filter:drop-shadow(0 3px 2px #0007)}.coin-stack i:nth-child(1){left:1px;top:8px}.coin-stack i:nth-child(2){left:12px;top:2px}.coin-stack i:nth-child(3){left:23px;top:9px}
.theme-preview{width:88%;height:104px;display:block;border-radius:9px;position:relative;overflow:hidden}.theme-preview:before{content:'';position:absolute;left:12%;right:12%;top:15%;bottom:16%;border-radius:50% / 38%;background:radial-gradient(ellipse at 50% 35%,#398453,#0b301e 76%);border:2px solid #d7bb6b;box-shadow:inset 0 0 0 4px #153d28,inset 0 0 0 5px #f3d982,0 3px 8px #0009}.theme-preview em{position:absolute;left:42%;top:40%;width:17%;height:23%;border-radius:3px;background:linear-gradient(135deg,#fffef7,#e9dfc9);box-shadow:0 2px 5px #0008;transform:rotate(12deg)}.theme-preview b{position:absolute;right:8px;top:5px;font-size:20px}.theme-preview small{position:absolute;bottom:3px;left:0;right:0;font-size:8px;color:#f6e5ad;text-shadow:0 1px 3px #000}

#modal-season-path{z-index:1000!important}.table-hokm-chip{direction:ltr}.table-hokm-chip .hokm-label,.table-hokm-chip #hokm-suit-name{direction:rtl}.table-hokm-chip:lang(en){direction:ltr}.table-score-chip{direction:inherit}

.hand-tray.dealing .hand-card{animation:dealInToFan 1.08s cubic-bezier(.15,.82,.22,1) both;animation-delay:calc(var(--card-index,0)*36ms)}.hand-tray.dealing:before{content:'پخش کارت‌ها';position:absolute;z-index:70;left:50%;top:-19px;transform:translateX(-50%);padding:4px 12px;border:1px solid #d2b45f;border-radius:999px;background:#102519ee;color:#f6dfa0;font-size:10px;font-weight:800;animation:shuffleLabel 1.08s ease both}.hand-tray.dealing:after{content:'';position:absolute;z-index:3;left:50%;top:46px;width:62px;height:82px;transform:translateX(-50%);border:1px solid #f1d98c;border-radius:7px;background:repeating-linear-gradient(45deg,#305c3c 0 4px,#173721 4px 8px);box-shadow:-5px 3px #d5b568,-10px 6px #17351f,0 6px 16px #0009;opacity:0;animation:shuffleDeck 1.08s ease both;pointer-events:none}@keyframes dealInToFan{0%{transform:translateY(-76px) scale(.55) rotate(0);opacity:0}55%{opacity:1}100%{transform:translateY(var(--fan-y,0px)) rotate(var(--fan-rot,0deg));opacity:1}}

/* Screenshot-driven mobile shop and table layout corrections */
.shop-grid{align-items:stretch;grid-auto-rows:max-content}.shop-item-card{overflow:visible;min-width:0}.shop-item-card>.shop-item-title{flex:0 0 auto;min-height:18px}.shop-item-card>.shop-preview-stage{width:100%;flex:0 0 128px!important;height:128px!important;min-height:128px!important;max-height:none!important;overflow:visible!important;margin:2px 0}.shop-grid:has(.stage-cards) .shop-item-card{min-height:210px}.shop-preview-stage.stage-cards{flex-basis:128px!important}.mini-deck-fan{flex:0 0 110px;width:min(204px,100%);height:110px;overflow:visible}.mini-fan-card{height:82px!important;min-height:82px!important;flex-shrink:0}.shop-item-card>.shop-action-btn{flex:0 0 auto}.shop-grid:has(.stage-gear) .shop-item-card{min-height:264px}.shop-item-card>.shop-preview-stage.stage-gear{flex-basis:176px!important;height:176px!important;min-height:176px!important}.stage-gear .emblem-3d{display:flex!important;flex:1 1 auto;min-height:154px!important;height:154px!important;justify-content:center}.stage-gear .emblem-3d-icon{display:grid!important;flex:0 0 132px!important;width:100%;height:132px!important;min-height:132px!important;place-items:center}.stage-gear .avatar-shop-art{display:block!important;width:124px!important;height:124px!important;max-width:100%;object-fit:cover}.stage-gear .emblem-3d:has(.theme-preview) .emblem-3d-icon{height:132px!important}.theme-preview{display:block!important;width:min(92%,220px)!important;height:120px!important;min-height:120px!important}
.screen-game{height:100dvh;min-height:0;box-sizing:border-box;overflow:hidden;justify-content:initial;gap:0;padding:4px 6px max(8px,env(safe-area-inset-bottom))}.table-hud{flex:0 0 40px;min-height:40px}.table-stage-3d{flex:1 1 0;min-height:0;overflow:hidden;padding:8px 10px 6px;margin:0}.table-arena{height:min(100%,54dvh)!important;max-height:400px!important;min-height:260px;width:86%}.hand-tray{position:relative;z-index:5;box-sizing:border-box;flex:0 0 142px!important;height:142px!important;min-height:142px!important;padding:4px 5px max(8px,env(safe-area-inset-bottom))!important;align-items:flex-end}.hand-info-row{flex:0 0 31px}.player-hand{min-height:0;max-height:104px;overflow:visible}.table-score-rail{top:-43px;left:8px;right:8px;justify-content:space-between}.table-score-chip{min-width:84px;padding:4px 7px;background:linear-gradient(145deg,#173827,#08150f);box-shadow:0 2px 8px #0008}.table-arena{overflow:visible}
@media(max-height:720px){.table-hud{flex-basis:36px;min-height:36px}.table-stage-3d{padding-top:2px;padding-bottom:2px}.table-arena{height:49dvh!important;max-height:340px!important;min-height:220px}.hand-tray{flex-basis:132px!important;height:132px!important;min-height:132px!important}.hand-info-row{height:28px;flex-basis:28px}}@media(max-width:370px){.table-score-chip{min-width:70px;font-size:9px;padding:3px 5px}.table-score-chip>div b{font-size:17px}.table-hokm-chip{min-width:100px;gap:5px}.hand-guide{font-size:8px}.shop-grid:has(.stage-gear) .shop-item-card{min-height:248px}.shop-item-card>.shop-preview-stage.stage-gear{height:160px!important;min-height:160px!important;flex-basis:160px!important}}

/* Refined royal loading screen */
.screen-splash{overflow:hidden;isolation:isolate;justify-content:center;align-items:center;padding:max(20px,env(safe-area-inset-top)) 22px max(24px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 34%,#1b4a31 0%,#102b1e 33%,#091911 68%,#050b08 100%)}.screen-splash:before{z-index:0;content:'';position:absolute;inset:12px;border:1px solid #d6b66a55;border-radius:26px;pointer-events:none;box-shadow:inset 0 0 0 4px #d6b66a0c,inset 0 0 36px #0007}.screen-splash:after{z-index:0;pointer-events:none;content:'';position:absolute;inset:0;z-index:-1;background:repeating-conic-gradient(from 7deg at 50% 34%,#e1c66c0b 0deg 1deg,transparent 1deg 15deg),radial-gradient(ellipse at 50% 34%,transparent 0 26%,#d1ad5530 26.2%,transparent 26.5% 37%,#d1ad5518 37.2%,transparent 37.6%);mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}.screen-splash .splash-content{width:min(100%,390px);gap:clamp(22px,5vh,42px);position:relative;z-index:1}.screen-splash .emblem-halo{width:min(76vw,290px);height:min(64vw,246px);min-height:188px;border-radius:50%;background:radial-gradient(ellipse at center,#22613c88 0%,#10352288 48%,transparent 74%);position:relative;perspective:1000px}.splash-seal{position:relative;width:min(66vw,248px);height:min(66vw,248px);max-height:232px;max-width:232px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 46%,#174b30 0%,#0d2f20 63%,#092217 100%);border:1px solid #e4c66d;box-shadow:0 0 0 5px #0a1a12,0 0 0 7px #c5a454a8,0 0 34px #d5b25733,inset 0 0 34px #020906a8;animation:sealBreath 4.8s ease-in-out infinite}.seal-orbit{position:absolute;border-radius:50%;pointer-events:none}.seal-orbit-outer{inset:10px;border:1px solid #d4b56870}.seal-orbit-inner{inset:20px;border:1px dashed #d4b56855}.seal-star{position:absolute;color:#e8cf85;text-shadow:0 0 10px #d9b75277}.star-north{top:12px;font-size:17px}.star-south{bottom:12px;font-size:14px}.screen-splash .splash-cards{position:relative;width:212px;height:150px;transform-style:preserve-3d;animation:royalCardsFloat 4.2s ease-in-out infinite}.splash-playing-card{position:absolute;width:82px;height:122px;border-radius:8px;padding:7px 8px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(145deg,#fffef7,#eee5d0);border:1px solid #d7bc72;box-shadow:0 5px 12px #0009,inset 0 0 0 3px #fff9,inset 0 0 0 4px #aa8c4733;color:#173b2a;font-family:Georgia,serif}.splash-playing-card span{font-size:17px;font-weight:900;line-height:1}.splash-playing-card b{position:absolute;inset:0;display:grid;place-items:center;font-size:36px;font-weight:400;text-shadow:0 1px 0 #fff}.splash-playing-card i{align-self:flex-end;font-size:18px;font-style:normal;transform:rotate(180deg)}.splash-playing-card.card-left{left:10px;top:17px;transform:rotate(-17deg) translateZ(-12px);color:#9e2635}.splash-playing-card.card-center{left:65px;top:1px;z-index:2;transform:rotate(0) translateZ(14px);color:#172438}.splash-playing-card.card-right{left:121px;top:17px;transform:rotate(17deg) translateZ(-12px);color:#9e2635}.screen-splash .brand-logo-wrap{position:relative}.screen-splash .splash-crown{width:74px;height:52px;margin-bottom:3px;filter:drop-shadow(0 3px 4px #0009) drop-shadow(0 0 12px #d6b45a66)}.screen-splash .brand-title{font-size:clamp(38px,11vw,50px);letter-spacing:.02em;filter:drop-shadow(0 3px 10px #0009)}.screen-splash .splash-tagline{margin-top:5px;font-size:12px;color:#eadba9;text-align:center}.splash-edition{margin-top:10px;padding:4px 17px;border-top:1px solid #c8a6518c;border-bottom:1px solid #c8a6518c;color:#c9b57d;font-size:9px;letter-spacing:.2em}.screen-splash .loading-box{width:min(82%,320px);gap:9px;padding:13px 15px 11px;border:1px solid #c7a65177;border-radius:15px;background:linear-gradient(145deg,#10291ded,#091710ee);box-shadow:0 10px 24px #0006,inset 0 1px #fff2}.screen-splash .loading-meta{font-size:10px;color:#cfc39a}.loading-caption{font-weight:800;letter-spacing:.05em}.screen-splash .progress-track{position:relative;height:8px;border:1px solid #d0ad5d;background:#06140d;box-shadow:inset 0 2px 4px #000a}.screen-splash .progress-fill{position:relative;border-radius:999px;background:linear-gradient(90deg,#387b4b,#b89643 72%,#fff0b1);box-shadow:0 0 12px #caa84e88;transition:width .24s cubic-bezier(.2,.8,.2,1)}.progress-glint{position:absolute;inset:0 auto 0 0;width:38px;background:linear-gradient(90deg,transparent,#fff8c988,transparent);animation:progressGlint 1.4s linear infinite}.screen-splash .loading-hint{min-height:16px;margin:0;color:#e4d7b1;font-size:10px;letter-spacing:.01em}.screen-splash .crown-icon{display:inline-flex;align-items:center;justify-content:center}.screen-splash .crown-icon .lux-svg{width:100%;height:100%}@keyframes royalCardsFloat{0%,100%{transform:translateY(2px) rotateX(5deg)}50%{transform:translateY(-5px) rotateX(0deg)}}@keyframes sealBreath{0%,100%{box-shadow:0 0 0 5px #0a1a12,0 0 0 7px #c5a454a8,0 0 30px #d5b25728,inset 0 0 34px #020906a8}50%{box-shadow:0 0 0 5px #0a1a12,0 0 0 7px #d9bd70,0 0 44px #d5b25755,inset 0 0 34px #020906a8}}@keyframes progressGlint{0%{transform:translateX(-44px);opacity:0}18%{opacity:.9}82%{opacity:.8}100%{transform:translateX(320px);opacity:0}}@media(max-height:700px){.screen-splash .splash-content{gap:12px}.screen-splash .emblem-halo{height:190px;min-height:160px}.splash-seal{width:182px;height:182px}.screen-splash .splash-cards{transform:scale(.8)}}@media(max-width:360px){.screen-splash .splash-content{gap:18px}.screen-splash .splash-playing-card{width:72px;height:108px}.screen-splash .splash-cards{width:188px}.screen-splash .splash-playing-card.card-center{left:57px}.screen-splash .splash-playing-card.card-right{left:105px}}

@media(prefers-reduced-motion:reduce){.splash-seal,.screen-splash .splash-cards,.progress-glint{animation:none!important}}

/* Compact, contained card samples and a detailed VIP subscription seal. */
.shop-item-card{overflow:hidden!important;min-width:0}.shop-preview-stage.stage-cards{height:118px!important;min-height:118px!important;max-height:118px!important;flex-basis:118px!important;overflow:hidden!important;position:relative}.mini-deck-fan{position:relative;width:min(190px,100%);height:104px;flex:0 1 190px;overflow:visible;transform:none}.mini-fan-card{position:absolute!important;width:43px!important;height:68px!important;min-height:68px!important;max-height:68px!important;box-sizing:border-box;padding:4px 4px!important;border-radius:6px!important;overflow:hidden;box-shadow:-1px 3px 8px #000b,0 0 0 1px #b89a5c!important}.mini-fan-card.f1{left:2px!important;top:24px!important;transform:rotate(-18deg)!important}.mini-fan-card.f2{left:34px!important;top:9px!important;transform:rotate(-9deg)!important}.mini-fan-card.f3{left:67px!important;top:3px!important;transform:rotate(0)!important}.mini-fan-card.f4{left:100px!important;top:9px!important;transform:rotate(9deg)!important}.mini-fan-card.f5{left:132px!important;top:24px!important;transform:rotate(18deg)!important}.mini-fan-card .card-corner{display:flex;flex-direction:column;align-items:flex-start;gap:0;line-height:1}.mini-fan-card .rank-text{font-size:10px!important;line-height:1}.mini-fan-card .suit-pip{font-size:8px!important;line-height:1}.mini-fan-card .card-center-wrap{inset:12px 4px 9px!important}.mini-fan-card .card-center-ace{font-size:20px!important}.mini-fan-card .pip-dot{font-size:8px!important}.mini-fan-card .card-art-svg{width:24px!important;height:32px!important}
.vip-plan-badge{width:44px;height:44px;border-radius:50%;background:radial-gradient(circle at 34% 24%,#fff0ad,#d1a342 48%,#744514 100%);border:2px solid #fff0bd;box-shadow:inset 0 0 0 3px #714b1e,inset 0 0 0 4px #f4d988,0 3px 10px #0009;display:grid;place-items:center}.vip-plan-crown{width:25px;height:25px;filter:drop-shadow(0 1px 2px #4a2a08)}.vip-plan-label{font-size:11px;color:#fff0bf}
.weekly-tournament-entry{background:linear-gradient(112deg,#183d2a,#111b13 58%,#382313);border-color:#d6b45e;box-shadow:inset 0 1px #fff2,0 5px 16px #0006}.weekly-tournament-entry .tournament-seal,.weekly-tournament-modal .tournament-seal{width:34px;height:34px;display:inline-grid;place-items:center;flex:none;border-radius:50%;font:24px Georgia,serif;color:#f5dc8e;background:radial-gradient(circle at 35% 25%,#416b40,#0c291a 70%);border:1px solid #dfc370;box-shadow:inset 0 0 0 2px #101c13,0 2px 8px #0008}.weekly-tournament-modal .tournament-seal{margin-inline-end:7px;vertical-align:middle}.weekly-prize-card{padding:12px;border:1px solid #d5b55f;border-radius:14px;background:linear-gradient(145deg,#173b29,#07170f);text-align:center;box-shadow:inset 0 1px #fff2,0 5px 16px #0006}.weekly-prize-card strong{display:block;color:#ffdf80;font-size:16px;margin-top:4px}.weekly-countdown{display:flex;justify-content:space-between;align-items:center;margin:10px 0;color:var(--text-muted);font-size:11px}.weekly-leader-row{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:8px 10px;margin:6px 0;border:1px solid #d0b56235;border-radius:11px;background:#06130f99}.weekly-leader-row.is-me{border-color:#d8b857;background:#4b391d66}.weekly-leader-rank{color:#f4d775;font-weight:900}.weekly-leader-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.weekly-leader-score{color:#e8d18c;font-weight:800}.weekly-tournament-modal{max-width:470px}

/* A hand-built royal table: layered felt, carved gold rails and useful player plaques. */
.table-stage-3d{
  isolation:isolate;
  border:1px solid #9a773c55;
  border-radius:22px;
  background:
    radial-gradient(ellipse at 50% 48%,#17503755 0 36%,transparent 68%),
    repeating-conic-gradient(from 6deg at 50% 48%,#d1ae4a0b 0deg 1deg,transparent 1deg 13deg),
    radial-gradient(ellipse at 50% 50%,#25131b 0%,#160b13 70%,#090d0b 100%)!important;
  box-shadow:inset 0 0 0 4px #070d0b,inset 0 0 0 5px #d2ae5d55,0 8px 26px #0007;
}
.table-stage-3d:before{content:"";position:absolute;inset:7px;border:1px solid #ddbd6b44;border-radius:17px;box-shadow:inset 0 0 0 1px #0008;pointer-events:none;z-index:0}
.table-stage-3d:after{content:"✦";position:absolute;left:50%;top:12px;transform:translateX(-50%);color:#e4c66e8a;font-size:15px;text-shadow:0 0 10px #dfbc5966;pointer-events:none;z-index:1}
.table-backdrop-mandala{z-index:1;width:min(94%,390px);height:min(94%,390px);background:repeating-radial-gradient(ellipse at center,transparent 0 23px,#d8bb7022 24px,#d8bb7009 26px,transparent 27px 48px),repeating-conic-gradient(from 7deg,#d9bd6910 0deg 1deg,transparent 1deg 15deg);border:1px solid #d5b35a36}
.table-arena{
  background:
    radial-gradient(ellipse at 50% 35%,#28704a99 0%,#105032 37%,#082b1d 76%,#041b13 100%),
    repeating-linear-gradient(32deg,#ffffff08 0 1px,transparent 1px 5px),
    linear-gradient(160deg,#145232,#062b1d 68%,#041a13)!important;
  border:6px solid #b88d3f;
  border-radius:48% / 34%;
  box-shadow:inset 0 0 0 3px #082a1b,inset 0 0 0 5px #f0d48a,inset 0 14px 32px #0006,0 0 0 2px #351d0d,0 9px 24px #0009,0 0 22px #d7b25b22;
}
.table-arena:before{inset:11px;border:1px solid #e8ce8466;box-shadow:inset 0 0 0 4px #0a2e1f,inset 0 0 0 5px #d3b35a55}
.table-arena:after{content:"";position:absolute;inset:20px;border:1px dashed #e2c36d35;border-radius:48% / 34%;pointer-events:none;z-index:0}
.table-arena .trick-zone{z-index:2;overflow:visible}
.table-ornament{display:block;width:68px;height:24px;opacity:.9;filter:drop-shadow(0 2px 4px #000a)}
.table-ornament.orn-top{top:2px;left:50%;transform:translateX(-50%)}
.table-ornament.orn-bottom{bottom:2px;left:50%;transform:translateX(-50%) rotate(180deg)}
.table-ornament.orn-left{left:2px;top:50%;transform:translateY(-50%) rotate(-90deg);width:52px;height:18px}
.table-ornament.orn-right{right:2px;top:50%;transform:translateY(-50%) rotate(90deg);width:52px;height:18px}
.table-score-rail{top:-43px;left:8px;right:8px;justify-content:space-between;gap:8px}
.table-score-chip{min-width:84px;padding:4px 7px;border-radius:12px;background:linear-gradient(145deg,#173827f5,#08150ff5);border:1px solid #d5b65e;box-shadow:0 3px 9px #0008,inset 0 1px #fff3}
.table-trump-plaque{position:absolute;z-index:8;top:58px;right:13px;width:126px;min-width:0;height:47px;box-sizing:border-box;display:grid;grid-template-columns:25px 1fr 24px;align-items:center;gap:5px;padding:5px 8px;border-radius:13px;background:linear-gradient(145deg,#173e2bfa,#07170ff5);border:1px solid #e4c575;box-shadow:0 4px 12px #0008,inset 0 0 0 2px #183624,inset 0 0 0 3px #c29b4d55}
.table-trump-signet{width:24px;height:21px;opacity:.9}
.table-trump-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.table-trump-copy .hokm-label{font-size:10px;font-weight:900;color:#f2d785}
.table-trump-copy small{max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;color:#d4c394}
.table-trump-plaque .hokm-suit{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff0b0,#ac7c2d 68%,#503511);border:1px solid #f1d88f;color:#172019;font-family:Georgia,serif;font-size:16px;box-shadow:0 1px 4px #0008}
.table-trump-plaque .hokm-suit.red{color:#8f1924}
.seat{border:1px solid #d9b866;background:linear-gradient(145deg,#173b29f5,#08170ff5);box-shadow:inset 0 0 0 2px #e0c97722,0 4px 12px #0008}
.seat-avatar:has(img){overflow:hidden;padding:0;flex:0 0 auto;background:#102719;border:2px solid #e5ca7a;box-shadow:0 0 0 2px #26180b,0 3px 8px #0009}
.seat-avatar img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%;display:block}
.seat-side{flex-direction:row;text-align:start;min-width:104px;width:max-content;max-width:126px;gap:7px;padding:5px 8px;border-radius:14px}
.seat-side .seat-avatar{width:38px;height:38px;flex:0 0 38px}
.seat-side .seat-meta{min-width:0}.seat-side .seat-name{white-space:nowrap;font-size:10px}.seat-side .seat-cards-count{font-size:8px}
.seat-top{min-width:120px;max-width:170px;justify-content:center;top:5px;padding:5px 9px}
.seat-top .seat-avatar{width:40px;height:40px}.seat-top .seat-meta{text-align:start}.seat-top .seat-name{font-size:11px}
.bottom-player-bar{min-height:42px;padding:3px 9px;border:1px solid #e4c575;border-radius:16px;background:linear-gradient(145deg,#173e2bfa,#07170ff5);box-shadow:inset 0 0 0 2px #183624,inset 0 0 0 3px #c29b4d55,0 5px 12px #0009}
.bottom-player-bar .seat-avatar{width:34px;height:34px;flex:0 0 34px}
.hand-tray{position:relative;z-index:5;box-sizing:border-box;flex:0 0 126px!important;height:126px!important;min-height:126px!important;padding:7px 8px max(9px,env(safe-area-inset-bottom))!important;align-items:flex-end;overflow:visible}
.player-hand{width:100%;max-width:100%;min-height:0;max-height:108px;justify-content:center;align-items:flex-end;overflow:visible;padding:0 7px 4px;box-sizing:border-box}
.hand-card{filter:drop-shadow(0 3px 4px #0006);max-width:58px}
.hud-btn{background:linear-gradient(150deg,#183d2a,#08170f);border:1px solid #d6b568;color:#f7e5a8;box-shadow:inset 0 0 0 2px #e4ca7922,0 3px 8px #0008}
.hud-btn:active{background:linear-gradient(150deg,#28563a,#0d2418);transform:translateY(1px)}
@media(max-height:720px){.table-stage-3d{padding-top:2px;padding-bottom:2px}.table-arena{height:49dvh!important;max-height:340px!important;min-height:220px}.table-trump-plaque{top:50px;right:8px;transform:scale(.92);transform-origin:top right}.hand-tray{flex-basis:112px!important;height:112px!important;min-height:112px!important;padding-bottom:4px!important}.player-hand{max-height:96px}}
@media(max-width:370px){.table-score-chip{min-width:70px;font-size:9px;padding:3px 5px}.table-trump-plaque{right:7px;width:112px;height:43px;top:55px;grid-template-columns:21px 1fr 21px;padding:4px 6px}.table-trump-plaque .hokm-suit{width:21px;height:21px}.seat-side{min-width:94px;max-width:110px;padding:4px 6px;gap:5px}.seat-side .seat-avatar{width:34px;height:34px;flex-basis:34px}.hand-tray{flex-basis:120px!important;height:120px!important;min-height:120px!important}.hand-card{max-width:54px}}
@media(prefers-reduced-motion:reduce){.hand-card,.hud-btn{transition:none!important}}

/* Trump selection sits at the foot of the table, clear of the played-card area. */
.hokm-picker{
  top:auto;bottom:66px;left:50%;right:auto;transform:translateX(-50%);
  width:min(94%,390px);box-sizing:border-box;padding:10px 11px 9px;
  border:1px solid #e3c36f;border-radius:18px;
  background:linear-gradient(145deg,#183d2bf7,#07150ff8);
  box-shadow:inset 0 0 0 3px #102b1c,inset 0 0 0 4px #b8914b66,0 12px 28px #000b;
}
.hokm-picker:before{content:"";position:absolute;inset:5px;border:1px solid #f0d98a33;border-radius:13px;pointer-events:none}
.hokm-picker-title{position:relative;margin:0 0 8px;padding:3px 4px;text-align:center;color:#f5e4ad;font-size:12px;font-weight:900;text-shadow:0 1px 3px #000}
.hokm-picker-title:before{content:"♛";margin-inline-end:7px;color:#edcf74;font-size:15px;text-shadow:0 0 8px #d8b45666}
.hokm-picker-buttons{position:relative;gap:7px}
.suit-pick-btn{min-height:74px;padding:7px 3px 6px;border:1px solid #ddc47d;border-radius:13px;background:linear-gradient(145deg,#fffdf5,#ece4d0);box-shadow:inset 0 0 0 2px #fff9,0 3px 0 #977542,0 5px 9px #0005;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}
.suit-pick-btn span{font-size:29px;line-height:1;text-shadow:0 1px 1px #0002}
.suit-pick-btn b{font-size:11px}
.suit-pick-btn:active{transform:translateY(2px);filter:brightness(1.05);box-shadow:inset 0 0 0 2px #fff9,0 1px 0 #977542}
.reshuffle-action{position:relative;width:100%;margin-top:8px;padding:7px 9px;border:1px solid #dfbf67;border-radius:11px;background:linear-gradient(180deg,#315a3a,#183525);color:#f5e4ad;box-shadow:inset 0 0 0 2px #e4cf7a22,0 3px 8px #0005;font-size:11px;font-weight:800}
@media(max-height:720px){.hokm-picker{bottom:54px;padding:8px 9px 7px}.suit-pick-btn{min-height:64px}.hokm-picker-title{font-size:11px}}
#player-hand{width:min(84vw,410px);max-width:100%;margin-inline:auto;justify-content:center}.hand-tray{overflow:visible}.hand-tray .hand-card{height:78px!important;min-height:78px!important}

.opening-medallion { width:min(64vw,32vh,270px); aspect-ratio:1; border-radius:50%; object-fit:cover; box-shadow:0 12px 32px #0009; }
.room-switch { appearance:none; cursor:pointer; position:relative; flex:none; width:54px; height:32px; border:1px solid #9a814b; border-radius:20px; background:#262925; }
.room-switch::after { content:''; position:absolute; top:4px; left:4px; width:22px; height:22px; border-radius:50%; background:linear-gradient(#fff5ca,#ac873e); transition:transform .15s; }
.room-switch:checked { background:#23563d; }
.room-switch:checked::after { transform:translateX(21px); }
.room-switch:focus-visible { outline:2px solid #fadd86; outline-offset:3px; }
#btn-toggle-sound .lux-svg { width:23px; height:23px; margin:auto; }
#btn-toggle-sound[aria-pressed=false] { opacity:.6; }
.roster-portrait { width:30px!important; height:30px!important; vertical-align:middle; object-fit:cover; border-radius:50%; }

.court-object { display:inline-block; flex:none; width:100%; height:auto; aspect-ratio:1; vertical-align:middle; background-image:url('ui/court-objects.webp'); background-size:500% 500%; background-repeat:no-repeat; }
.court-card-portrait { display:block; object-fit:contain; width:100%; height:100%; }
.season-rank-list { border:0; padding:0; display:grid; gap:4px; }
.season-rank { position:relative; padding:4px 12px; border:1px solid transparent; border-radius:12px; }
.season-rank.current { background:linear-gradient(100deg,#123c30,#21251b); border-color:#a98c53; }
.season-rank em,.season-rank.current em,.season-medallion { background:radial-gradient(ellipse,#34413a,#111d18 80%); border-color:#75643e; }
.season-rank em { width:42px; height:42px; }
.season-rank em .court-object,.season-medallion .court-object { width:79%; }

.arena-badge-icon .court-object { width:38px; height:38px; }

.hand-card { transform-origin:50% 100%!important; transform:translateY(var(--fan-y)) rotate(var(--fan-rot))!important; }
.hand-card.legal:hover,.hand-card.legal:active { transform:translateY(calc(var(--fan-y) - 18px)) rotate(var(--fan-rot))!important; }
.hand-tray.shuffling .hand-card { animation:gatherRiffle 1.08s ease-in-out both!important; animation-delay:0ms!important; pointer-events:none; }
.hand-tray.shuffling::before { content:none!important; }
@keyframes gatherRiffle {
  0%,100% { translate:0 0; rotate:0deg; }
  25% { translate:var(--collect-x) -24px; rotate:calc(-1 * var(--fan-rot)); }
  45% { translate:calc(var(--collect-x) + var(--riffle-wide)) -33px; rotate:calc(-1 * var(--fan-rot)); }
  65% { translate:var(--collect-x) -16px; rotate:calc(-1 * var(--fan-rot)); }
}
.wheel-disc { background:repeating-conic-gradient(from 0deg,#154c3b 0deg 59deg,#bd9a57 59deg 60deg,#142c40 60deg 119deg,#bd9a57 119deg 120deg); border:8px ridge #d4b674; box-shadow:0 12px 30px #0009,inset 0 0 0 3px #352a17,inset 0 0 28px #000a; direction:ltr; }
.wheel-prize { position:absolute; left:50%; top:50%; width:46px; height:58px; margin:-29px -23px; display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff1c8; font:700 13px system-ui; transform:rotate(var(--angle)) translateY(-96px) rotate(calc(-1 * var(--angle))); }
.wheel-center-cap { background:radial-gradient(circle,#244b36,#0c2118); border:3px ridge #d4b674; width:52px; height:52px; }
@media(max-width:360px){.wheel-prize{transform:rotate(var(--angle)) translateY(-80px) rotate(calc(-1 * var(--angle)));}}
@media(prefers-reduced-motion:reduce){.hand-tray.shuffling .hand-card{animation:none!important;}}

.tutorial-cards{display:flex;justify-content:center;gap:12px;margin:24px 0;direction:ltr}.tutorial-card{width:64px;height:96px;border:2px solid #c5aa6b;border-radius:8px;background:linear-gradient(135deg,#fffef7,#e9e1d0);font:bold 23px Georgia;box-shadow:0 6px 12px #0006;cursor:pointer}#btn-tutorial,#btn-rematch-friends{margin:8px 0}#tutorial-feedback{min-height:44px;color:#efcd7b}

/* Brighter court surfaces and restrained depth. */
.screen-lobby { background:radial-gradient(ellipse at 42% 15%,#36775c66,transparent 65%); isolation:isolate; }
.screen-lobby::before { content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(ellipse at 20% 30%,#e0c67318,transparent 45%),radial-gradient(ellipse at 80% 60%,#53b5a524,transparent 42%); animation:courtLight 18s ease-in-out infinite alternate; }
@keyframes courtLight{to{transform:translateY(25px);opacity:.55}}
.hero-play-card,.tile-btn,.missions-strip,.mini-action,.nav-circle{box-shadow:inset 0 2px 2px #fff3,0 5px 0 #071c1480,0 10px 18px #0003!important}
.hero-badge,.hero-text p,.tile-copy small,.missions-strip small,.subtitle-chip{display:none!important}
.hero-text h2{margin:0}.hero-play-card{min-height:110px}.missions-strip{min-height:65px}
.screen-game{background:radial-gradient(ellipse at 50% 30%,#39715c,#183b30 75%)!important}
.table-stage-3d{background:linear-gradient(145deg,#305749,#1d3c31)!important;border-color:#c3a462!important}
.table-arena{background:radial-gradient(ellipse at 45% 28%,#4c936c,#216245 78%)!important;border-radius:44% / 28%;box-shadow:inset 0 0 0 3px #684b25,inset 0 0 0 6px #e3c88a,inset 0 10px 24px #09291e66,0 7px 0 #795b31,0 14px 22px #071d1655!important}
.table-watermark{opacity:.5!important;color:#fff4ce;font-size:23px;text-shadow:0 2px 2px #154c36}
.table-score-rail{inset:0!important;pointer-events:none}
.table-score-chip{position:absolute;background:linear-gradient(#39664d,#244a38);min-width:68px}
.table-score-chip:first-child{bottom:-25px;left:50%;transform:translateX(-50%)}
.table-score-chip:last-child{top:48%;left:-20px}
.table-trump-plaque{top:-33px!important;right:5px!important;transform:none!important;height:38px!important;width:110px!important;background:linear-gradient(#47755a,#274d38)}
.table-details-toggle{position:absolute;z-index:12;top:-34px;left:0;padding:7px 10px;border:1px solid #d5bd79;border-radius:12px;background:#315b43;color:#fff0c3}
.table-details{position:absolute;z-index:20;top:8px;left:6%;right:6%;padding:14px;background:#f3e5baf5;color:#183a2c;border:2px solid #bc9857;border-radius:14px;box-shadow:0 8px 18px #0005;transform:translateY(-12px);opacity:0;visibility:hidden;transition:.2s}
.table-details.open{transform:none;opacity:1;visibility:visible}
#btn-close-table-details{float:left;background:transparent;border:0;color:#183a2c;font-size:24px}
.court-object{filter:none!important;background-size:500% 500%;image-rendering:auto}
#result-emoji{width:72px;height:72px;margin:0 auto 15px}
.deal-overlay{position:absolute;inset:0;z-index:30;pointer-events:none}
.deal-stack,.flying-card{position:absolute;top:45%;left:calc(50% - 19px);width:38px;height:55px;border:2px solid #e8d5a5;border-radius:5px;background:repeating-linear-gradient(45deg,#244c71 0 3px,#173554 3px 6px);box-shadow:0 2px 4px #0006}
.deal-stack{box-shadow:2px 2px #d6c6a3,4px 4px #284a69,6px 6px #d6c6a3,8px 8px #284a69,0 10px 14px #0005}
.flying-card{animation:deliverCard .4s ease-in both}
.deal-to-0{--dx:0px;--dy:220px;--dr:0deg}.deal-to-1{--dx:140px;--dy:70px;--dr:90deg}.deal-to-2{--dx:0px;--dy:-200px;--dr:180deg}.deal-to-3{--dx:-140px;--dy:70px;--dr:-90deg}
@keyframes deliverCard{0%{opacity:0;transform:translate(0,0)}10%{opacity:1}90%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--dr))}}
.is-dealing #player-hand,.is-dealing .edge-fan{visibility:hidden}
.is-dealing #hokm-picker{visibility:hidden;pointer-events:none}
.is-dealing .hand-card{pointer-events:none}
@media(prefers-reduced-motion:reduce){.screen-lobby::before{animation:none}.flying-card{animation-duration:.01s}}

.table-ornament.orn-left,.table-ornament.orn-right{display:none!important}

/* Royal night theme across the application's functional screens. */
:root{--gold-light:#ffe3a0;--text-main:#f6f7fb;--text-muted:#b8cbd7}
.app-shell,.app-shell[class*="theme-"]{background:#030d1a!important}
.screen-lobby{background:linear-gradient(#020a1370,#02091355),url('ui/royal-night.png') center top/cover!important}
.screen-lobby::before{background:radial-gradient(ellipse at 70% 20%,#2daaff24,transparent 58%)}
.screen:not(.screen-lobby):not(.screen-splash):not(.screen-game){background:linear-gradient(#04101ee8,#050a19ed),url('ui/royal-night.png') center/cover!important}
.player-pill,.currency-pill,.currency-badge,.modal-card,.room-card,.shop-item-card,.list-item,.season-overview,.vip-plan-btn{background:linear-gradient(145deg,#13344bf5,#020a16fa 72%)!important;border-color:#967c47!important;box-shadow:inset 0 1px 2px #bdeaff44,0 6px 16px #0007!important}
.hero-play-card,.missions-strip,.season-path-entry,.weekly-tournament-entry,.outline-btn,.nav-item,.mini-action{background:linear-gradient(145deg,#123b53ee,#020913f5 65%)!important;border:1px solid #68cbe8!important;box-shadow:inset 0 1px 3px #d5faff77,0 0 7px #06c5ff55,0 6px 12px #0008!important}
.hero-play-card{border-radius:24px;min-height:110px}
.tile-ruby{background:linear-gradient(145deg,#7835baee,#1a073df5)!important;border-color:#d283ff!important}
.tile-amber,.gold-btn,.daily-pill{background:linear-gradient(145deg,#d9a13b,#74400d 75%)!important;border-color:#ffe2a0!important;color:#fff4d8!important}
.bottom-nav{background:linear-gradient(#174963eb,#020912fa)!important;border-color:#68cbe8!important;box-shadow:0 -2px 8px #2acbff66}
.brand-title{color:#ffe49e;text-shadow:0 2px 1px #704316,0 0 14px #dfae4255}
.screen-game{background:radial-gradient(ellipse at 50% 25%,#163d59,#030915 85%)!important}
.table-stage-3d{background:radial-gradient(ellipse at 50% 30%,#183b55,#040c1b 85%)!important;border:1px solid #62afca!important;box-shadow:inset 0 0 12px #11baff33}
.table-arena{height:min(68dvh,580px)!important;max-height:calc(100% - 112px)!important;min-height:230px!important;width:76%!important;border-radius:43% / 24%;background:radial-gradient(ellipse at 40% 24%,#285d76,#102d46 70%,#091d30)!important;box-shadow:inset 0 0 0 3px #42321d,inset 0 0 0 5px #ffe0a0,inset 0 8px 20px #0006,0 5px 0 #75502a,0 0 14px #14bfff66!important}
.seat-side{position:absolute!important;bottom:auto!important;top:47%!important;transform:translateY(-50%)!important;min-width:0!important;width:68px!important;max-width:68px!important;flex-direction:column!important;padding:5px 2px!important;gap:3px!important;background:linear-gradient(#143c54,#030c1b)!important;border-color:#d8b46c!important}
.seat-shoulder-right{right:1px!important;left:auto!important}
.seat-shoulder-left{left:1px!important;right:auto!important}
.seat-side .seat-meta{text-align:center}.seat-side .seat-name{font-size:9px!important}
.seat-side .seat-cards-count{display:none}
.seat-top,.bottom-player-bar{background:linear-gradient(#163e57,#020a17)!important;border-color:#d4ad61}
.table-score-chip{width:28px!important;min-width:28px!important;height:28px!important;border-radius:50%!important;padding:0!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 30% 20%,#f7dc91,#96652b)!important;color:#161517!important}
.table-score-chip>span,.table-score-chip small{display:none!important}
.table-score-chip>div{grid-area:auto!important;display:block!important}
.table-score-chip>div b{font-size:17px!important;color:#121923!important}
.table-score-chip:first-child{bottom:-15px;left:50%}
.table-score-chip:last-child{left:auto!important;right:-18px!important;top:60%}
.table-trump-plaque{display:none!important}
.table-details-toggle{top:-39px!important;left:50%!important;transform:translateX(-50%);white-space:nowrap;display:flex;align-items:center;gap:6px;padding:4px 8px!important;font-size:10px;height:29px;background:linear-gradient(#17435c,#020d1a)!important;border-color:#bda56a!important}
#compact-trump{display:grid;place-items:center;width:22px;height:22px;border-radius:5px;background:#fffae9;color:#152033;font-size:20px}
#compact-trump.red{color:#b4203e}
.table-details{top:-8px!important;left:50%!important;right:auto!important;width:max-content;max-width:210px;padding:7px 10px!important;font-size:10px!important;transform:translate(-50%,-8px)!important;background:#071e32f7!important;color:#fce5b5!important;border-width:1px!important}
.table-details.open{transform:translate(-50%,0)!important}
#btn-close-table-details{color:#fce5b5!important;font-size:16px!important;margin-inline-end:7px}
.table-watermark{font-size:21px!important;opacity:.35!important}
.table-score-rail{z-index:10}
@media(max-height:720px){.table-arena{max-height:calc(100% - 98px)!important;min-height:180px!important}.seat-side{width:60px!important;max-width:60px!important}}

.table-details-toggle{top:12px!important;z-index:24!important}.table-details{top:44px!important;z-index:25!important}.hud-btn,.seat-top,.seat-side,.bottom-player-bar{background:linear-gradient(145deg,#174660,#030d1c)!important;border-color:#c5ac72!important}
