.cw-toast-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.cw-toast {
  min-width: 220px;
  max-width: 340px;
  background: #1f2937;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 13px;
}

.cw-toast-win {
  border-color: #22c55e;
}

.cw-toast-lose {
  border-color: #ef4444;
}

.cw-toast-info {
  border-color: #38bdf8;
}
:root {
  --bg: #0a0e14;
  --bg-elevated: #121820;
  --card: #161d27;
  --border: #2d3848;
  --text: #e8ecf1;
  --muted: #8b9cb3;
  --green: #3ddc84;
  --red: #ff6b6b;
  --blue: #6eb5ff;
  --accent: #d4af37;
  --accent-soft: rgba(212, 175, 55, 0.12);
  --font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a2436 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.mono {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 13px;
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -- Top navigation -- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 24, 32, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent-soft), transparent);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent);
  font-size: 1.1rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}
.nav-link-active {
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-nav {
  font-weight: 600;
  font-size: 14px;
}

/* Profile menu */
.user-menu-wrap {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.profile-trigger:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.avatar-img {
  border-radius: 50%;
  object-fit: cover;
  background: var(--card);
}
.avatar-img.sm {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}
.avatar-img.lg {
  width: 56px;
  height: 56px;
  border: 2px solid rgba(212, 175, 55, 0.35);
}
.avatar-img.xl {
  width: 88px;
  height: 88px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  flex-shrink: 0;
}

.profile-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
}

.chev {
  font-size: 10px;
  color: var(--muted);
  margin-left: -4px;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.dd-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 4px 4px 8px;
}

.dd-meta {
  min-width: 0;
}
.dd-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dd-balance {
  font-size: 13px;
  color: var(--muted);
}

.dd-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.dd-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.dd-item:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.dd-danger {
  color: var(--red);
  margin-top: 4px;
}
.dd-danger:hover {
  background: rgba(255, 107, 107, 0.1);
}

/* Main */
.main {
  flex: 1;
  padding: 28px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.page-center {
  padding: 48px 20px;
  text-align: center;
}

/* Home hero */
.hero {
  margin-bottom: 28px;
}
.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--text) 30%, var(--accent) 160%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.5;
}

/* Guest home landing */
.guest-landing {
  position: relative;
  margin: -8px -20px 0;
  padding: 48px 20px 64px;
  overflow: hidden;
}
@media (min-width: 900px) {
  .guest-landing {
    margin-left: calc(50% - 50vw + 10px);
    margin-right: calc(50% - 50vw + 10px);
    padding-left: max(20px, calc(50vw - 550px));
    padding-right: max(20px, calc(50vw - 550px));
  }
}
.gl-bg {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 85%;
  background:
    radial-gradient(ellipse 70% 60% at 18% 35%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 50% at 82% 20%, rgba(110, 181, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(46, 160, 67, 0.08), transparent 45%);
  pointer-events: none;
}
.gl-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}
.gl-kicker {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.gl-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 16ch;
  background: linear-gradient(115deg, var(--text) 0%, #c8d4e6 45%, var(--accent) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gl-lead {
  margin: 0 0 32px;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42ch;
}
.gl-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.gl-btn-main {
  box-shadow: 0 8px 28px rgba(46, 160, 67, 0.35);
}
.gl-btn-ghost {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(22, 29, 39, 0.65);
  backdrop-filter: blur(8px);
}
.gl-btn-ghost:hover {
  border-color: rgba(212, 175, 55, 0.35);
  text-decoration: none;
}
.gl-features {
  margin-top: 56px;
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .gl-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.gl-feature {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(22, 29, 39, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.gl-feature:hover {
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateY(-2px);
}
.gl-ficon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  font-size: 1.1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(212, 175, 55, 0.25);
}
.gl-fh {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.gl-fp {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.banner-banned {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.08);
  color: var(--text);
}

.page-admin .page-head {
  margin-bottom: 20px;
}
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr.row-banned {
  background: rgba(255, 107, 107, 0.06);
}
.td-av {
  width: 52px;
}
.admin-av {
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg);
}
.td-actions {
  white-space: nowrap;
}
.badge-ban {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 107, 107, 0.2);
  color: #ffb4b4;
}
.badge-ok {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(61, 220, 132, 0.15);
  color: var(--green);
}
.ban-reason {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  max-width: 200px;
}
.admin-modal-back {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-modal {
  max-width: 420px;
  width: 100%;
}
.admin-modal-title {
  margin-top: 0;
}
.admin-ta {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  margin-bottom: 16px;
}
.admin-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

h1 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-head h1 {
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  max-width: 60ch;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.card-accent {
  border-color: rgba(212, 175, 55, 0.25);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.06) 0%, var(--card) 40%);
}

.profile-card-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
}
.profile-id {
  margin: 0 0 12px;
  color: var(--muted);
}
.balance-line {
  font-size: 1.1rem;
  margin: 0 0 12px;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.inp-wrap {
  font-size: 14px;
  color: var(--muted);
}

.inp {
  width: 100px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.primary {
  background: linear-gradient(165deg, #2ea043, #238636);
  border-color: transparent;
  color: #fff;
}
.btn.sm {
  padding: 6px 12px;
  font-size: 13px;
}
.btn-danger {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.45);
  color: #ffb4b4;
}
.btn-danger:hover {
  filter: brightness(1.12);
}
.btn.primary.btn-danger {
  background: linear-gradient(165deg, #c44, #922);
  border-color: transparent;
  color: #fff;
}
.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 12px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}
.err {
  color: var(--red);
}
.ok {
  color: var(--green);
}
.warn {
  color: #e3b341;
}
.gold {
  color: var(--accent);
}

.list {
  padding-left: 18px;
}
.list li {
  margin-bottom: 8px;
}

/* Poker lobby */
.lobby-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.lobby-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--bg-elevated);
}
.room-tag {
  font-weight: 600;
  color: var(--accent);
}
.lobby-meta {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 12px;
}
.breadcrumbs a {
  color: var(--muted);
  font-weight: 600;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.bc-sep {
  margin: 0 8px;
  color: var(--muted);
}

.poker-table-card {
  margin-top: 8px;
}

.poker-cards {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.poker-card-face {
  background: #1c2430;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 18px;
  border: 1px solid var(--border);
}
.poker-card-face.hi {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(110, 181, 255, 0.15);
}
.plist {
  list-style: none;
  padding: 0;
}
.plist li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.turn {
  color: var(--green);
  font-weight: 700;
}
.poker-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.poker-inp {
  width: 80px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.raise {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav-main {
    order: 3;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
}

/* -- Poker table (PokerNow-style) -- */
.pn-page {
  max-width: 1040px;
  margin: 0 auto;
}
.pn-bc {
  margin-bottom: 12px;
}
.pn-ws-err {
  color: var(--red);
  margin: 0 0 12px;
}
.pn-room {
  margin-bottom: 24px;
}
.pn-felt-ring {
  padding: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5c3d1e, #2a1a0e);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pn-felt {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 1.45 / 1;
  border-radius: 50%;
  background: radial-gradient(ellipse 72% 65% at 50% 48%, #2d6b4e 0%, #1a4d38 42%, #0f3528 100%);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.35), inset 0 4px 20px rgba(255, 255, 255, 0.06);
  border: 3px solid rgba(0, 0, 0, 0.25);
}
.pn-felt-shine {
  pointer-events: none;
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.03);
}
.pn-seat-anchor {
  position: absolute;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 104px;
}
.pn-chip-bet {
  order: -1;
  margin-bottom: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(180deg, #f4d03f, #c9a227);
  color: #1a1206;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.pn-seat-ui {
  position: relative;
  width: 100%;
  padding: 10px 8px 12px;
  border-radius: 14px;
  background: rgba(8, 12, 16, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.pn-seat-ui.seat-turn {
  border-color: rgba(212, 175, 55, 0.85);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35), 0 8px 24px rgba(0, 0, 0, 0.45);
  transform: scale(1.02);
}
.pn-seat-ui.seat-fold {
  opacity: 0.45;
  filter: grayscale(0.6);
}
.pn-seat-ui.seat-allin:not(.seat-fold) {
  border-color: rgba(255, 107, 107, 0.5);
}
.pn-dealer {
  position: absolute;
  top: -8px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.pn-av {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3d4f5f, #252b35);
  color: #e8ecf1;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.pn-sn {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pn-stack {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.pn-stack-lbl {
  display: none;
}
.pn-kick {
  margin-top: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.12);
  color: #ffb4b4;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.pn-kick:hover {
  background: rgba(255, 107, 107, 0.22);
}
.pn-showdown {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.2;
}
.pn-mid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 78%;
  max-width: 340px;
}
.pn-pot-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 20px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}
.pn-pot-t {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.pn-pot-chip b {
  font-size: 22px;
  color: #f4d03f;
  font-weight: 800;
}
.pn-street {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}
.pn-cbet {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.pn-cbet strong {
  color: var(--text);
}
.pn-comm {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
  align-items: center;
}
.pn-card {
  width: 48px;
  height: 68px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fefefe 0%, #f0f0f0 100%);
  border: 1px solid #c8c8c8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5px 6px;
  position: relative;
  font-weight: 800;
  line-height: 1;
}
.pn-card.hole {
  width: 56px;
  height: 80px;
  font-size: 1.05em;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(110, 181, 255, 0.35);
}
.pn-card.back {
  background: repeating-linear-gradient(
    45deg,
    #1e3a5f,
    #1e3a5f 4px,
    #162d4d 4px,
    #162d4d 8px
  );
  border-color: #0d1f35;
}
.pn-card.back::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.pn-tl {
  font-size: 14px;
}
.pn-ts {
  font-size: 18px;
  margin-top: 2px;
}
.pn-red {
  color: #c62828;
}
.pn-red .pn-ts {
  color: #c62828;
}
.pn-black {
  color: #1a1a1a;
}
.pn-hole-outer {
  text-align: center;
  margin: 20px 0 8px;
}
.pn-hole-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 10px;
}
.pn-hole-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.pn-shown-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.pn-card.micro {
  width: 28px;
  height: 40px;
  font-size: 9px;
  border-radius: 5px;
}
.pn-card.micro .pn-tml,
.pn-card.micro .pn-tms {
  font-size: inherit;
}
.pn-tml,
.pn-tms {
  font-weight: 800;
  line-height: 1;
}
.pn-reveal-wrap {
  margin-top: 14px;
  text-align: center;
}
.pn-act.pn-reveal {
  background: linear-gradient(165deg, #4a4a6a, #353548);
  color: #fff;
}
.pn-reveal-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.pn-reveal-done {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--green);
  text-align: center;
}
.pn-shown-block {
  margin-top: 6px;
}
.pn-shown-hand {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
}
.pn-your-hand-name {
  color: var(--accent);
  font-weight: 700;
}
.page-games {
  max-width: 720px;
}
.page-games-wide {
  max-width: 960px;
}
.games-back {
  margin: 0 0 8px;
}
.games-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.games-back a:hover {
  color: var(--accent);
}
.games-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.games-hub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.15));
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.12s;
}
.games-hub-card:hover {
  border-color: rgba(110, 181, 255, 0.45);
  transform: translateY(-2px);
}
.games-hub-card--muted {
  opacity: 0.92;
}
.games-hub-icon {
  font-size: 2rem;
  line-height: 1;
}
.games-hub-title {
  font-weight: 800;
  font-size: 1.15rem;
}
.games-hub-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}
/* Slot machine cabinet */
.slot-machine {
  border-radius: 16px;
  border: 3px solid #3a3530;
  background: linear-gradient(180deg, #2a2622 0%, #1a1815 40%, #12100e 100%);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 16px;
}
.slot-machine-marquee {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #8b1538, #c41e3a, #8b1538);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #ffe8a8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.slot-machine-body {
  padding: 20px 18px 18px;
}
.slot-reels {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.slot-reel-window {
  width: 88px;
  height: 110px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0d0c0a, #1a1510);
  border: 3px solid #4a4338;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.slot-reels--spin .slot-reel-window {
  animation: slot-shake 0.14s ease-in-out infinite;
}
.slot-reels--spin .slot-symbol {
  animation: slot-blur 0.12s linear infinite;
}
@keyframes slot-shake {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}
@keyframes slot-blur {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}
.slot-symbol {
  font-size: 2.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.slot-machine-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.slot-bet-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.slot-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.slot-bet-inp {
  width: 100px;
}
.slot-arm-btn {
  min-width: 120px;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 0 #1a5f2a, 0 6px 16px rgba(0, 0, 0, 0.35);
}
.slot-arm-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1a5f2a;
}
.slot-err {
  margin-top: 8px;
}
.slot-result-panel {
  margin-top: 4px;
}
.slots-controls {
  align-items: flex-end;
}
.slots-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.slots-syms {
  font-size: 2rem;
  margin: 0 0 8px;
  letter-spacing: 0.2em;
}
.slots-win {
  font-weight: 700;
  margin: 0 0 8px;
}
/* Lotto ticket */
.lotto-page-hero {
  margin-bottom: 20px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(110, 181, 255, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(30, 40, 55, 0.9), rgba(12, 14, 20, 0.95));
  border: 1px solid rgba(110, 181, 255, 0.2);
}
.lotto-hero-inner {
  text-align: center;
}
.lotto-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.lotto-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
}
.lotto-lead {
  margin: 0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.lotto-ticket {
  position: relative;
  padding: 0;
  overflow: visible;
  background: linear-gradient(180deg, #faf6ef 0%, #e8e0d4 100%);
  color: #1a1510;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.lotto-ticket-body {
  padding: 20px 22px 22px;
}
.lotto-ticket-perf {
  height: 10px;
  background: radial-gradient(circle at 10px 50%, transparent 4px, #e8e0d4 4px) repeat-x;
  background-size: 16px 10px;
  opacity: 0.85;
}
.lotto-ticket-perf--top {
  margin-bottom: -1px;
}
.lotto-ticket-perf--bottom {
  margin-top: -1px;
  transform: rotate(180deg);
}
.lotto-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.lotto-ticket-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}
.lotto-ticket-val {
  font-weight: 700;
  font-size: 1.05rem;
}
.lotto-jackpot-row {
  padding: 12px 0;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}
.lotto-jackpot {
  font-size: 1.75rem;
  font-weight: 800;
}
.lotto-ticket-meta {
  font-size: 13px;
  margin: 0 0 8px;
}
.lotto-pool {
  margin: 0 0 16px;
  font-size: 15px;
}
.lotto-qty {
  max-width: 100px;
}
.lotto-buy-btn {
  min-width: 120px;
}
.lotto-leaderboard {
  margin-top: 20px;
}
.lotto-lb-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.lotto-lb-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.lotto-lb-name {
  font-weight: 600;
}
.lotto-lb-stats {
  color: var(--muted);
  font-size: 14px;
}
.lotto-empty {
  margin-top: 16px;
}
.lotto-summary p {
  margin: 0 0 10px;
}
.lotto-buy {
  margin-top: 12px;
}
.lotto-participants {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.lotto-participants li {
  margin-bottom: 6px;
}
/* Blackjack */
.bj-wrap {
  padding: 20px;
}
.bj-hand {
  margin-bottom: 20px;
}
.bj-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.bj-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bj-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 58px;
  padding: 6px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #e8e4dc);
  color: #111;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.bj-card--red {
  color: #b3002d;
}
.bj-card--back {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  color: transparent;
  font-size: 1.5rem;
  color: #fff;
}
.bj-val {
  margin-left: 12px;
  font-size: 14px;
  color: var(--muted);
}
.bj-msg {
  margin: 12px 0;
  font-weight: 600;
}
.bj-controls,
.bj-actions {
  margin-top: 12px;
  gap: 12px;
}
/* Dice */
.dice-card {
  padding: 20px;
}
.dice-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.dice-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.dice-label {
  width: 56px;
  color: var(--muted);
  font-size: 14px;
}
.dice-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a2622, #12100e);
  border: 2px solid #4a4338;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
}
.dice-msg {
  margin-top: 12px;
  font-weight: 600;
}
/* Mines */
.mines-start {
  padding: 20px;
}
.mines-active {
  padding: 20px;
}
.mines-stats {
  margin: 0 0 14px;
  font-size: 15px;
}
.mines-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 16px;
}
.mine-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
}
.mine-cell:hover:not(:disabled) {
  background: rgba(110, 181, 255, 0.12);
  transform: scale(1.03);
}
.mine-cell:disabled {
  cursor: default;
  opacity: 0.95;
}
.mine-cell--safe {
  background: rgba(46, 160, 67, 0.2);
  border-color: rgba(46, 160, 67, 0.45);
}
.mine-cell--blown {
  background: rgba(220, 53, 69, 0.25);
  border-color: rgba(220, 53, 69, 0.5);
}
.mines-actions {
  justify-content: center;
}
/* Roulette */
.roulette-card {
  padding: 20px;
}
.roulette-pick-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.roulette-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.roulette-colors .btn {
  flex: 1;
  min-width: 88px;
  font-weight: 700;
}
.roulette-colors .btn.active {
  box-shadow: 0 0 0 2px var(--accent);
}
.rl-red {
  background: #8b1538 !important;
  border-color: #a61e42 !important;
  color: #fff !important;
}
.rl-green {
  background: #166534 !important;
  border-color: #15803d !important;
  color: #fff !important;
}
.rl-black {
  background: #1c1917 !important;
  border-color: #44403c !important;
  color: #e7e5e4 !important;
}
.roulette-row {
  align-items: flex-end;
}
.roulette-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.roulette-number {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.roulette-number.rl-red {
  color: #f87171;
}
.roulette-number.rl-black {
  color: #a8a29e;
}
.roulette-number.rl-green {
  color: #4ade80;
}
/* Rules */
.rules-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rules-block h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.rules-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.pn-bar-ended {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.pn-bar-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.pn-bar-main .pn-bar-msg {
  flex: none;
  width: 100%;
}
.pn-count-msg {
  color: var(--text);
  font-size: 15px;
}
.pn-count-msg strong {
  color: var(--accent);
  font-size: 1.15em;
}
.pn-act.leave {
  flex-shrink: 0;
  background: rgba(255, 107, 107, 0.12);
  color: #ffb4b4;
  border: 1px solid rgba(255, 107, 107, 0.25);
}
.pn-act.leave:hover {
  background: rgba(255, 107, 107, 0.2);
}
.pn-banner {
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(110, 181, 255, 0.08);
  border: 1px solid rgba(110, 181, 255, 0.2);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
}
.pn-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 10px;
}
.pn-timer-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: pn-pulse 1s ease-in-out infinite;
}
@keyframes pn-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}
.pn-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.pn-bar-msg {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  min-width: 200px;
}
.pn-actbar {
  justify-content: center;
}
.pn-act {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}
.pn-act:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.pn-act.primary {
  background: linear-gradient(165deg, #2ea043, #238636);
  color: #fff;
}
.pn-fold {
  background: #3d3330;
  color: #eee;
}
.pn-call {
  background: linear-gradient(165deg, #3a5a8c, #2c4a78);
  color: #fff;
}
.pn-allin {
  background: linear-gradient(165deg, #8b4513, #6b3410);
  color: #fff;
}
.pn-raise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}
.pn-raise-lbl {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.pn-raise-inp {
  width: 64px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
}
.pn-raise-btn {
  background: linear-gradient(165deg, #6b4c9a, #4a3569);
  color: #fff;
}
.pn-wait {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.pn-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.pn-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pn-spin 0.8s linear infinite;
}
@keyframes pn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .pn-felt {
    aspect-ratio: 1 / 1.15;
    min-height: 320px;
  }
  .pn-seat-anchor {
    width: 88px;
  }
  .pn-card {
    width: 42px;
    height: 60px;
  }
  .pn-card.hole {
    width: 48px;
    height: 70px;
  }
  .pn-actbar {
    flex-direction: column;
  }
  .pn-raise {
    width: 100%;
    justify-content: space-between;
  }
  .pn-bar-ended {
    flex-direction: column;
    align-items: stretch;
  }
  .pn-bar-main {
    align-items: stretch;
  }
  .pn-act.leave {
    width: 100%;
  }
}

/* Poker: embed + observer */
.pn-page.pn-embed {
  padding: 4px;
  min-height: auto;
}
.pn-page.pn-embed .pn-bc,
.pn-page.pn-embed .pn-obs-banner,
.pn-page.pn-embed .pn-ws-err {
  display: none;
}
.pn-page.pn-embed .pn-felt-ring {
  transform: scale(0.92);
  transform-origin: top center;
}
.pn-page.pn-embed .pn-bar,
.pn-page.pn-embed .pn-banner,
.pn-page.pn-embed .pn-timer {
  display: none !important;
}
.pn-obs-banner {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(80, 120, 200, 0.2);
  border: 1px solid var(--border);
  font-size: 14px;
}
.pn-blind-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.lobby-create {
  flex-wrap: wrap;
  gap: 12px;
}
.chk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}
.chk-label input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.pn-blind-off {
  color: var(--muted);
  font-style: italic;
}
.card-inner {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.blind-row {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.inp.sm {
  max-width: 88px;
}

/* Tournaments */
.tournament-detail .tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.tgrid-cell {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.tgrid-cell:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
.tgrid-label {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.tgrid-frame {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  pointer-events: none;
  background: #0d1117;
}
.bracket-table {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}
.bracket-table ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Nav dice notification */
.nav-games-wrap {
  position: relative;
}
.nav-badge {
  position: absolute;
  top: 2px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 2px var(--bg, #0f0f12);
}

/* Live roulette page */
.rl-page {
  max-width: 1100px;
}
.rl-hero {
  margin-bottom: 20px;
}
.rl-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 6px;
  background: linear-gradient(90deg, #fde68a, #f59e0b, #fde68a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rl-sub {
  max-width: 560px;
}
.rl-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .rl-layout {
    grid-template-columns: 1fr;
  }
}
.rl-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rl-wheel {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: conic-gradient(
    #1a1a1a 0deg 36deg,
    #b91c1c 36deg 72deg,
    #1a1a1a 72deg 108deg,
    #b91c1c 108deg 144deg,
    #166534 144deg 180deg,
    #1a1a1a 180deg 360deg
  );
  border: 8px solid #3f3f46;
  box-shadow:
    0 0 0 4px #27272a,
    inset 0 0 40px rgba(0, 0, 0, 0.6),
    0 16px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  transition: transform 0.1s linear;
}
.rl-wheel--spin {
  animation: rl-spin 0.85s linear infinite;
}
@keyframes rl-spin {
  to {
    transform: rotate(360deg);
  }
}
.rl-wheel-inner {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3f3f46, #18181b);
  border: 3px solid #52525b;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
}
.rl-phase-badge {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 15px;
  color: var(--accent);
}
.rl-last-num {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.rl-last-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.rl-last-val {
  font-size: 2rem;
  font-weight: 900;
}
.rl-dot-red {
  color: #f87171;
}
.rl-dot-black {
  color: #a8a29e;
}
.rl-dot-green {
  color: #4ade80;
}
.rl-history h3,
.rl-players h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.rl-hist-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rl-hist-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.rl-hist-dot.rl-dot-red {
  background: #ef4444;
}
.rl-hist-dot.rl-dot-black {
  background: #27272a;
  border: 1px solid #52525b;
}
.rl-hist-dot.rl-dot-green {
  background: #22c55e;
}
.rl-bet-card {
  margin-bottom: 16px;
}
.rl-bets-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rl-bets-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.rl-bet-line {
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
}

/* Blackjack felt */
.bj-page {
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}
.bj-page-head {
  padding: 8px 0 16px;
}
.bj-felt {
  background: radial-gradient(ellipse 120% 100% at 50% 0%, #1e5c3a 0%, #0f3d24 45%, #0a2818 100%);
  border-radius: 16px;
  padding: 24px 20px 28px;
  border: 3px solid #3d2914;
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.4);
}
.bj-hand {
  margin-bottom: 22px;
}
.bj-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .bj-split-grid {
    grid-template-columns: 1fr;
  }
}
.bj-hand-panel {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 14px;
  border: 2px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bj-hand-panel--on {
  border-color: rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
}
.bj-btn-gold {
  border-color: rgba(250, 204, 21, 0.5) !important;
  color: #fde68a !important;
}
.bj-deal {
  min-width: 120px;
}
.bj-id {
  margin-top: 14px;
}

/* Dice PvP */
.dice-page {
  max-width: 720px;
}
.dice-incoming {
  margin-bottom: 18px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.06);
}
.dice-incoming-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #fde68a;
}
.dice-ch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.dice-challenge-row {
  flex-wrap: wrap;
  gap: 12px;
}
.dice-sec-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.dice-live {
  margin-top: 18px;
}
.dice-rounds {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.dice-score {
  font-weight: 700;
  margin: 8px 0;
}
.dice-win {
  margin-top: 10px;
  font-size: 1.1rem;
}
