* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:root {
  --bg-deep: #050608;
  --bg-panel: #121214;
  --bg-panel-2: #1a1a1d;
  --felt-dark: #0a2215;
  --felt-mid: #123a28;
  --felt-light: #1e5a3d;
  --gold: #ffdf4d;
  --gold-dim: #c9a227;
  --gold-glow: rgba(255, 215, 0, 0.5);
  --rim-gold: rgba(255, 220, 120, 0.4);
  --green-live: #4caf50;
  --blue-call: #2196f3;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --danger-fold: #5c2a2a;
  --danger-fold-border: #8b3a3a;
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  /* Holo deck (Hold’em table) */
  --holo-cyan: #00e5ff;
  --holo-cyan-dim: rgba(0, 229, 255, 0.5);
  --holo-magenta: #e040fb;
  --holo-violet: #7c4dff;
  --holo-glow: rgba(0, 229, 255, 0.35);
  --holo-panel: rgba(8, 18, 32, 0.92);
  --font-hud: "Orbitron", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(30, 95, 58, 0.5), transparent 50%),
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(50, 70, 120, 0.32), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(90, 40, 70, 0.18), transparent 55%),
    linear-gradient(180deg, #0c0e12 0%, var(--bg-deep) 45%, #030305 100%);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.65rem 0.85rem 1rem;
}

.app-shell[data-in-room="true"] .chat-panel {
  display: flex;
}

/* Lobby: no in-hand controls (only show after joining a room). */
.app-shell[data-in-room="false"] .table-play-toolbar {
  display: none !important;
}

.app-shell[data-in-room="false"] .controls__room {
  display: none;
}

/* Lobby: no seats or hole cards yet — keep the column focused on login & room pick. */
.app-shell[data-in-room="false"] #players,
.app-shell[data-in-room="false"] .hero-hand {
  display: none !important;
}

.app-shell[data-in-room="false"] .poker-table {
  gap: 0.5rem;
}

.app-shell[data-in-room="false"] .controls {
  margin-top: 0;
  padding-top: 0;
}

.app-shell[data-in-room="false"] .controls__bar {
  margin-bottom: 0;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.15rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 0 var(--rim-gold);
}

.game-header__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.game-header__brand[aria-disabled="true"] {
  cursor: default;
}

.game-header__logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(240px, 46vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.game-header__titles {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.game-header__name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.game-header__sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.game-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.game-header__meta[hidden] {
  display: none !important;
}

.header-meta__item--phase {
  color: var(--gold-dim);
  font-weight: 600;
  text-transform: capitalize;
}

.header-meta__item--timer {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.header-meta__item--timer[hidden] {
  display: none !important;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill--live {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
  border: 1px solid rgba(76, 175, 80, 0.45);
}

.pill--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-live);
  box-shadow: 0 0 8px var(--green-live);
}

.game-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.game-header__menu {
  position: relative;
}

.game-header__menu-summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
}

.game-header__menu-summary::-webkit-details-marker {
  display: none;
}

.game-header__menu[open] .game-header__menu-summary {
  border-color: rgba(255, 215, 0, 0.35);
  color: var(--text);
}

.game-header__menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 12rem;
  padding: 0.35rem;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.game-header__menu-link {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
}

.game-header__menu-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.game-header__menu-link--leave {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.header-session {
  font-size: 0.78rem;
  font-weight: 600;
  max-width: min(14rem, 42vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-session--guest {
  color: var(--text-muted);
}

.header-session--authed {
  color: #c8e6c9;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 175, 80, 0.4);
  background: rgba(76, 175, 80, 0.12);
}

.connection-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.connection-badge.is-online {
  color: #a5d6a7;
  border: 1px solid rgba(76, 175, 80, 0.35);
}

.site-presence-badge {
  max-width: min(11rem, 32vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-layout {
  display: flex;
  flex: 1;
  gap: 0.85rem;
  margin-top: 0.65rem;
  min-height: 0;
  overflow-anchor: none;
}

/* One-frame compositor nudge when the user taps “Fix layout” (tilted / clipped UI). */
.game-layout.game-layout--layout-unstick {
  transform: translateZ(0);
}

.poker-table {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-anchor: none;
}

/* Scrollable play area: keeps felt size stable when the controls (betting panel) height changes. */
.poker-table__play {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
}

.felt-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}

.felt-rail {
  width: min(100%, 940px);
  padding: 11px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 35%),
    linear-gradient(145deg, #6a4528 0%, #4a2c18 38%, #2a150c 72%, #120805 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    inset 0 -4px 16px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 50px rgba(255, 200, 80, 0.06);
}

.felt-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.1rem 0.5rem 0.5rem;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
}

.felt-brand__logo svg {
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.felt-brand__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 223, 120, 0.96);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 0 20px rgba(255, 215, 0, 0.12);
}

.felt-brand__tagline {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

@media (prefers-reduced-motion: no-preference) {
  .felt-wrap:not([hidden]) {
    animation: felt-wrap-spawn 0.38s ease-out;
  }
}

@keyframes felt-wrap-spawn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.felt-oval {
  width: min(100%, 920px);
  min-height: 200px;
  padding: 1rem 1.35rem 1.35rem;
  border-radius: 50% / 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  background:
    radial-gradient(ellipse 50% 35% at 50% 5%, rgba(100, 220, 150, 0.18), transparent 65%),
    radial-gradient(ellipse 70% 55% at 50% 42%, var(--felt-light) 0%, transparent 64%),
    radial-gradient(ellipse 95% 90% at 50% 52%, var(--felt-mid) 0%, var(--felt-dark) 75%),
    repeating-linear-gradient(
      -11deg,
      transparent,
      transparent 3px,
      rgba(0, 0, 0, 0.04) 3px,
      rgba(0, 0, 0, 0.04) 4px
    );
  border: 3px solid rgba(255, 220, 120, 0.4);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 48px rgba(255, 200, 80, 0.16),
    inset 0 2px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 90px rgba(0, 0, 0, 0.48);
}

.felt-stage {
  position: relative;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: clamp(200px, 36vw, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.table-center {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

/* —— Table dealer (decorative) —— */
.table-dealer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 0.1rem;
  user-select: none;
  pointer-events: none;
}

.table-dealer__halo {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 200px;
  height: 44px;
  margin-left: -100px;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(255, 200, 80, 0.18), transparent 70%);
  animation: dealer-halo-breathe 3.2s ease-in-out infinite;
}

.table-dealer__figure {
  position: relative;
  width: min(160px, 46vw);
  max-height: 5.2rem;
  line-height: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.table-dealer__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 5.2rem;
  overflow: visible;
}

.table-dealer__label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 220, 160, 0.75);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

.table-dealer__bob {
  transform-origin: 80px 70px;
  animation: dealer-bob 3.5s ease-in-out infinite;
}

.table-dealer__arm--L {
  transform-origin: 40px 58px;
  animation: dealer-arm-l 2.6s ease-in-out infinite;
}

.table-dealer__arm--R {
  transform-origin: 120px 58px;
  animation: dealer-arm-r 2.6s ease-in-out infinite 0.2s;
}

.table-dealer__cards {
  transform-origin: 14px 20px;
  animation: dealer-cards-sway 1.8s ease-in-out infinite;
}

.table-dealer__muck {
  transform-origin: 7px 20px;
  animation: dealer-muck-tap 2.1s ease-in-out infinite;
}

.table-dealer__eye--L,
.table-dealer__eye--R {
  transform-origin: center;
  animation: dealer-blink 4.2s steps(1) infinite;
}

.table-dealer__eye--R {
  animation-delay: 0.1s;
}

.table-dealer--dealing .table-dealer__arm--L {
  animation-duration: 1.45s;
}

.table-dealer--dealing .table-dealer__arm--R {
  animation-duration: 1.45s;
}

.table-dealer--dealing .table-dealer__bob {
  animation-duration: 2.2s;
}

.table-dealer--board-drop .table-dealer__figure {
  animation: dealer-board-nod 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dealer-halo-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06, 1.1);
  }
}

@keyframes dealer-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes dealer-arm-l {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@keyframes dealer-arm-r {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

@keyframes dealer-cards-sway {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(0.5px, -0.5px) rotate(3deg);
  }
}

@keyframes dealer-muck-tap {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  40% {
    transform: translate(0, 1px) rotate(-2deg);
  }
  60% {
    transform: translate(0, 0) rotate(1deg);
  }
}

@keyframes dealer-blink {
  0%,
  44%,
  48%,
  100% {
    transform: scaleY(1);
  }
  46% {
    transform: scaleY(0.12);
  }
}

@keyframes dealer-board-nod {
  0% {
    transform: translateY(0) scale(1);
  }
  30% {
    transform: translateY(4px) scale(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .table-dealer__halo,
  .table-dealer__bob,
  .table-dealer__arm--L,
  .table-dealer__arm--R,
  .table-dealer__cards,
  .table-dealer__muck,
  .table-dealer__eye--L,
  .table-dealer__eye--R,
  .table-dealer--board-drop .table-dealer__figure {
    animation: none !important;
  }
}

.pot-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.pot-strip__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 215, 0, 0.75);
}

.pot-strip__value {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.chip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at 30% 30%, #ffe082, var(--gold-dim));
  box-shadow: 0 0 10px var(--gold-glow);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.pot-strip__value:hover .chip-icon {
  transform: rotate(15deg) scale(1.08);
  box-shadow: 0 0 14px var(--gold-glow);
}

.chat-panel {
  display: none;
  width: min(300px, 94vw);
  flex-shrink: 0;
  flex-direction: column;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.chat-panel__head {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-panel__head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-panel__sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-panel__feed {
  flex: 1;
  min-height: 180px;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.75rem;
}

.chat-system {
  margin: 0 0 0.65rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.chat-msg {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.chat-msg:last-child {
  margin-bottom: 0;
}

.chat-panel__input {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-panel-2);
}

.chat-panel__input input {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.btn--send {
  width: 40px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.lobby {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.lobby-hero {
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lobby-hero__title {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 223, 120, 0.96);
}

.lobby-hero__sub {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 36rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(180, 190, 198, 0.88);
}

.trust-strip__item {
  position: relative;
  padding-left: 0.85rem;
}

.trust-strip__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--green-live);
  opacity: 0.85;
}

.lobby-hero__promo {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 36rem;
}

.lobby-hero__promo a {
  color: var(--gold-dim);
  white-space: nowrap;
}

.lobby-hero__promo strong {
  color: rgba(232, 234, 237, 0.92);
  font-weight: 600;
}

.email-verify-banner {
  margin: 0.65rem 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(100, 181, 246, 0.4);
  background: rgba(33, 150, 243, 0.1);
}

.email-verify-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text);
}

.email-verify-banner__inner strong {
  color: #90caf9;
  font-weight: 700;
}

.email-verify-banner__inner .btn {
  margin-left: auto;
}

.profile-page .email-verify-banner__inner .btn {
  margin-left: 0;
}

@media (max-width: 520px) {
  .email-verify-banner__inner .btn {
    margin-left: 0;
    width: 100%;
  }
}

.lobby-card {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lobby-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.lobby-row--auth {
  align-items: flex-end;
}

.lobby-auth {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.lobby-auth-tabs {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
}

.lobby-auth-tab {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.lobby-auth-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.lobby-auth-tab--active {
  color: #1a1204;
  background: linear-gradient(145deg, #ffe082, var(--gold) 55%, #b8860b);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.22);
}

.lobby-auth-lead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 28rem;
}

.lobby-auth-google {
  margin: 0.45rem 0 0.45rem;
}

.lobby-auth-google .btn--google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  box-sizing: border-box;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius, 10px);
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  color: #3c4043;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.lobby-auth-google .btn--google:hover {
  background: #f8f9fa;
  color: #202124;
}

.lobby-auth-feedback {
  margin: 0.5rem 0 0;
  padding: 0.55rem 0.65rem;
  max-width: 22rem;
  border-radius: var(--radius, 10px);
  font-size: 0.82rem;
  line-height: 1.45;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
}

.lobby-auth-feedback:not([hidden]) {
  display: block;
}

.lobby-auth-feedback.is-loading {
  border-color: rgba(100, 200, 255, 0.35);
  background: rgba(16, 48, 72, 0.45);
  color: rgba(200, 230, 255, 0.95);
}

.lobby-auth-feedback.is-ok {
  border-color: rgba(110, 220, 150, 0.45);
  background: rgba(20, 56, 36, 0.5);
  color: rgba(210, 245, 220, 0.98);
}

.lobby-auth-feedback.is-err {
  border-color: rgba(255, 120, 100, 0.45);
  background: rgba(72, 24, 20, 0.45);
  color: #ffc9c4;
}

.lobby-auth-grid {
  display: grid;
  gap: 0.55rem;
  max-width: 22rem;
}

.lobby-auth-label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lobby-auth-label__text {
  padding-left: 0.05rem;
}

.lobby-auth-label input {
  width: 100%;
  min-width: 0;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: normal;
}

.lobby-auth-register-extra {
  padding-top: 0.1rem;
  border-top: 1px dashed rgba(255, 215, 0, 0.2);
}

.lobby-auth[data-auth-mode="register"] .lobby-auth-register-extra {
  border-top-color: rgba(255, 215, 0, 0.35);
}

.lobby-auth-register-avatar {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 215, 0, 0.22);
}

.lobby-auth-register-avatar__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.lobby-auth-register-avatar__hint {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.webcam-row--register {
  gap: 0.35rem;
}

.webcam-actions--register {
  flex: 0 1 auto;
}

#reg-webcam-preview,
#reg-avatar-preview {
  display: block;
  width: 96px;
  height: 72px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  object-fit: cover;
  flex-shrink: 0;
}

#reg-webcam-preview {
  min-width: 96px;
}

.lobby-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 22rem;
}

.lobby-auth-btn {
  flex: 1 1 10rem;
  min-height: 2.55rem;
  font-weight: 800;
}

.lobby-auth-forgot {
  margin: 0.5rem 0 0;
  max-width: 22rem;
  font-size: 0.82rem;
  text-align: center;
}

.lobby-auth-forgot a {
  color: var(--gold-dim);
}

.lobby-auth[data-auth-mode="register"] .lobby-auth-forgot {
  display: none;
}

.lobby-card__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.lobby-play-grid {
  display: grid;
  gap: 0.45rem;
  max-width: 28rem;
}

.lobby-play-grid__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lobby-play-grid__input {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lobby-play-grid__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.btn--lobby-primary {
  min-height: 2.65rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  font-weight: 800;
}

.btn--lobby-secondary {
  min-height: 2.65rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  font-weight: 700;
}

.lobby-details {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
}

.lobby-details summary {
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
}

.lobby-details summary::-webkit-details-marker {
  display: none;
}

.lobby-details[open] summary {
  color: var(--gold-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lobby-details__body {
  padding: 0.55rem 0.7rem 0.7rem;
}

.server-rooms--prominent {
  border: 1px solid rgba(255, 215, 0, 0.15);
  background: rgba(255, 215, 0, 0.04);
}

.server-rooms {
  margin-top: 0;
  padding: 0.55rem 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.server-rooms__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.server-rooms__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.server-rooms__status {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  min-height: 1em;
}

.server-rooms__empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.server-rooms__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 220px;
  overflow-y: auto;
}

.server-rooms__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  background: var(--bg-panel-2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  width: 100%;
}

.server-rooms__item:hover,
.server-rooms__item:focus-visible {
  border-color: rgba(255, 215, 0, 0.35);
  outline: none;
}

.server-rooms__code {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.server-rooms__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lobby-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.lobby-hint--rules {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.45;
  max-width: 42rem;
}

.lobby-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.lobby-row--stream {
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lobby-stream-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.lobby-stream-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text);
  cursor: pointer;
}

.lobby-stream-opt input {
  accent-color: var(--gold-dim);
}

.lobby-stream-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.lobby-verify-row {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  max-width: 52rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.lobby-verify-row__note {
  flex: 1 1 12rem;
  min-width: 0;
}

.lobby input {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  min-width: 150px;
  font-family: inherit;
}

#nickname-input {
  min-width: 180px;
}

#password-input {
  min-width: 200px;
}

#room-input {
  min-width: 160px;
}

.webcam-row {
  align-items: flex-start;
  flex-wrap: wrap;
}

.webcam-preview-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  flex: 1 1 200px;
  min-width: 0;
}

.webcam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  flex: 1 1 180px;
}

#webcam-preview,
#avatar-preview {
  display: block;
  width: 96px;
  height: 72px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.55);
  object-fit: cover;
  flex-shrink: 0;
}

#webcam-preview {
  /* Inline video can collapse on some mobile browsers without block + explicit box */
  min-width: 96px;
}

.player-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.45);
}

.player-role-badges {
  position: absolute;
  bottom: -4px;
  right: -6px;
  display: flex;
  gap: 2px;
}

.role-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.role-badge--d {
  background: #fff;
  color: #111;
}

.role-badge--s,
.role-badge--b {
  background: linear-gradient(145deg, var(--gold), var(--gold-dim));
  color: #1a1204;
}

.players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.player-seat {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.7rem 0.75rem;
  background: linear-gradient(165deg, rgba(26, 26, 26, 0.95), rgba(10, 10, 10, 0.98));
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease, border-color 200ms ease;
}

.player-seat.active {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow:
    0 0 0 2px rgba(255, 215, 0, 0.25),
    0 12px 28px rgba(0, 0, 0, 0.45);
  animation: holdem-seat-active-pulse 2.4s ease-in-out infinite;
}

.player-seat.active .player-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
}

.player-seat--folded {
  opacity: 0.42;
}

.player-seat--folded:not(.active) {
  filter: grayscale(0.35);
}

.player-seat--allin:not(.player-seat--folded) {
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.06);
}

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.player-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.player-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-stack {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-dim);
  white-space: nowrap;
}

.player-bet-pill {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(33, 150, 243, 0.18);
  border: 1px solid rgba(33, 150, 243, 0.35);
  color: #90caf9;
  font-size: 0.78rem;
  font-weight: 700;
  position: relative;
  overflow: visible;
}

.player-bet-pill__delta {
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffe082;
  text-shadow: 0 0 12px rgba(255, 224, 130, 0.35);
  animation: holdem-bet-delta-pop 0.85s ease;
}

.player-bet-pill__fly-chip {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, #fff8c7 0 22%, transparent 23%),
    repeating-conic-gradient(from 0deg, #fff2a6 0 12deg, #c48216 12deg 24deg),
    linear-gradient(145deg, #ffd54f, #a9650f);
  border: 2px dashed rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 10px rgba(255, 214, 79, 0.72),
    0 5px 12px rgba(0, 0, 0, 0.38);
  animation: holdem-chip-fly-to-pot 0.9s cubic-bezier(0.22, 0.78, 0.24, 1) forwards;
}

.player-bet-pill--bump {
  animation: holdem-bet-pill-bump 0.55s ease;
}

.table-chip-flight {
  position: fixed;
  z-index: 9999;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, #fff8c7 0 21%, transparent 22%),
    repeating-conic-gradient(from 0deg, #fff2a6 0 12deg, #c48216 12deg 24deg),
    linear-gradient(145deg, #ffd54f, #a9650f);
  border: 2px dashed rgba(255, 255, 255, 0.82);
  box-shadow:
    0 0 13px rgba(255, 214, 79, 0.8),
    0 8px 18px rgba(0, 0, 0, 0.38);
  transform: translate(-50%, -50%);
  animation: holdem-table-chip-flight 0.98s cubic-bezier(0.2, 0.82, 0.24, 1) forwards;
}

.player-seat--turn-flash {
  animation: holdem-turn-flash 0.75s ease;
}

.player-seat--just-folded {
  animation: holdem-fold-shake 0.5s ease;
}

.player-seat--allin-pop {
  animation: holdem-allin-pop 0.65s ease;
}

@keyframes holdem-seat-active-pulse {
  0%,
  100% {
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow:
      0 0 0 2px rgba(255, 215, 0, 0.22),
      0 12px 28px rgba(0, 0, 0, 0.45);
  }
  50% {
    border-color: rgba(255, 215, 0, 0.88);
    box-shadow:
      0 0 0 3px rgba(255, 215, 0, 0.38),
      0 14px 34px rgba(255, 215, 0, 0.12);
  }
}

@keyframes holdem-bet-pill-bump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes holdem-bet-delta-pop {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  35% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes holdem-chip-fly-to-pot {
  0% {
    opacity: 0;
    transform: translate(0, -50%) scale(0.72) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  75% {
    opacity: 1;
    transform: translate(38px, -48px) scale(1.05) rotate(300deg);
  }
  100% {
    opacity: 0;
    transform: translate(58px, -66px) scale(0.5) rotate(420deg);
  }
}

@keyframes holdem-turn-flash {
  0% {
    filter: brightness(1);
  }
  40% {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 215, 0, 0.65));
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes holdem-fold-shake {
  0%,
  100% {
    margin-left: 0;
  }
  25% {
    margin-left: -4px;
  }
  75% {
    margin-left: 4px;
  }
}

@keyframes holdem-allin-pop {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes holdem-table-chip-flight {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
  }
  15% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate(calc(-50% + var(--chip-mid-dx)), calc(-50% + var(--chip-mid-dy))) scale(1.06) rotate(300deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--chip-dx)), calc(-50% + var(--chip-dy))) scale(0.58) rotate(460deg);
  }
}

.pot-strip--grew .pot-strip__value {
  animation: holdem-pot-value-pop 0.65s ease;
}

.pot-strip--collecting .pot-strip__value {
  animation: holdem-pot-collect 0.42s ease;
}

.pot-strip--grew .chip-icon {
  animation: holdem-pot-chip-spin 0.75s ease;
}

@keyframes holdem-pot-value-pop {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes holdem-pot-chip-spin {
  0% {
    transform: rotate(0) scale(1);
  }
  45% {
    transform: rotate(16deg) scale(1.08);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}

@keyframes holdem-pot-collect {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14);
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.38);
  }
}

.pot-strip--street .pot-strip__label {
  animation: holdem-pot-street-flash 0.6s ease;
}

@keyframes holdem-pot-street-flash {
  0%,
  100% {
    opacity: 1;
    letter-spacing: 0.12em;
  }
  50% {
    opacity: 0.85;
    letter-spacing: 0.18em;
    color: #fff8e1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-seat.active,
  .player-bet-pill--bump,
  .player-bet-pill__delta,
  .player-bet-pill__fly-chip,
  .table-chip-flight,
  .player-seat--turn-flash,
  .player-seat--just-folded,
  .player-seat--allin-pop,
  .pot-strip--grew .pot-strip__value,
  .pot-strip--collecting .pot-strip__value,
  .pot-strip--grew .chip-icon,
  .pot-strip--street .pot-strip__label {
    animation: none !important;
  }
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.player-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}

.player-tag--folded {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.player-tag--allin {
  background: rgba(255, 215, 0, 0.15);
  color: var(--gold);
  border: 1px solid rgba(255, 215, 0, 0.35);
}

.player-tag--out {
  background: rgba(183, 28, 28, 0.25);
  color: #ffcdd2;
}

.player-tag--pending {
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold-dim);
  border: 1px solid rgba(255, 215, 0, 0.28);
}

.player-tag--show {
  background: rgba(76, 175, 80, 0.22);
  color: #c8e6c9;
  border: 1px solid rgba(129, 199, 132, 0.45);
}

.player-tag--muck {
  background: rgba(80, 80, 90, 0.35);
  color: rgba(255, 255, 255, 0.55);
}

.player-tag--winner {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.38), rgba(255, 152, 0, 0.22));
  color: #fff8e1;
  border: 1px solid rgba(255, 193, 7, 0.55);
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.22);
}

/* Show/muck phase: highlight and intro motion for hand winner(s) */
.player-seat--hand-winner {
  position: relative;
  border-color: rgba(255, 215, 0, 0.55) !important;
  box-shadow:
    0 0 0 1px rgba(255, 193, 7, 0.2),
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(255, 193, 7, 0.18) !important;
  z-index: 1;
}

.player-seat--hand-winner--enter {
  animation: hand-winner-seat-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hand-winner-seat-pop {
  0% {
    filter: brightness(0.95);
  }
  45% {
    filter: brightness(1.12);
  }
  100% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .player-seat--hand-winner--enter {
    animation: none;
  }
}

.show-muck-panel {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.show-muck-panel__label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.show-muck-panel__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.show-muck-panel__timer {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.player-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.cards-row {
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.cards-row--board {
  min-height: 88px;
}

.cards-row--board .card {
  width: 58px;
  height: 82px;
  font-size: 1rem;
}

.hero-hand {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.35rem 0 0.15rem;
}

.hero-hand[hidden] {
  display: none !important;
}

.hero-hand .card {
  width: 72px;
  height: 102px;
  font-size: 1.15rem;
  border-radius: 11px;
}

/* Your hole cards (same two as before in the old hero strip, now in your seat row) */
.player-seat--me .cards-row .card {
  width: 64px;
  height: 90px;
  font-size: 1.05rem;
  border-radius: 10px;
}

/* Small self-camera next to your hole cards (same stream as table broadcast). */
.player-hole-and-cam {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: 0.05rem;
}

.player-seat__cam-pip {
  width: 5.5rem;
  max-width: 34vw;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  background: #08080a;
  border: 1px solid rgba(255, 215, 0, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45),
    0 4px 14px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  pointer-events: none;
}

.player-seat__cam-pip--off {
  opacity: 0.35;
  filter: grayscale(0.85);
}

.player-hand-info {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.45rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  background: rgba(255, 215, 0, 0.1);
  color: #fff3c4;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.08);
}

.player-hand-info--mic {
  border-color: rgba(100, 210, 255, 0.32);
  background: rgba(40, 160, 220, 0.12);
  color: #d4f3ff;
}

/* Play actions: directly under the hole cards, above the player grid */
.table-play-toolbar {
  width: 100%;
  max-width: min(100%, 920px);
  margin: 0 auto;
  padding: 0.1rem 0.5rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  box-sizing: border-box;
}

.table-play-toolbar .action-row--play {
  justify-content: center;
  margin-bottom: 0;
}

.table-play-toolbar .show-muck-panel {
  margin: 0;
}

.table-play-toolbar .betting-panel {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.card {
  width: 52px;
  height: 74px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(0, 0, 0, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, #f3f3f3 40%, #e2e0dc 100%);
  color: #101820;
  display: grid;
  place-items: center;
  font-weight: 700;
  transform: translateY(-16px) scale(0.88) rotateZ(-2.5deg);
  opacity: 0;
  animation: dealIn 450ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 -2px 3px rgba(0, 0, 0, 0.08) inset,
    0 6px 16px rgba(0, 0, 0, 0.32);
  transform-style: preserve-3d;
}

.card.card--instant {
  animation: none;
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.card.red {
  color: #c62828;
}

.card.back {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    repeating-linear-gradient(
      45deg,
      #0d1f4a,
      #0d1f4a 5px,
      #1a3a7a 5px,
      #1a3a7a 10px
    );
  border-color: #3a5ab0;
  color: transparent;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 4px 12px rgba(0, 0, 0, 0.4);
}

.controls {
  flex-shrink: 0;
  margin-top: 0;
  padding-top: 0.25rem;
}

.controls__bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.controls__status {
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
}

.controls__room {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.controls__room .muted {
  opacity: 0.75;
}

#fix-layout-btn {
  flex: 0 0 auto;
  align-self: center;
  margin-left: auto;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.action-row--cash-add {
  align-items: center;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.14);
  background: rgba(0, 0, 0, 0.22);
}

.cash-addon-label,
.cash-addon-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cash-addon-input {
  width: 5rem;
  padding: 0.42rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
}

.cash-addon-hint {
  flex: 1 1 14rem;
}

.action-row--play .btn {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.betting-panel {
  margin: 0.35rem 0 0.6rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.12);
}

.betting-panel[hidden] {
  display: none !important;
}

.betting-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.betting-panel__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.betting-panel__value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

#bet-slider {
  width: 100%;
  margin: 0 0 0.5rem;
  accent-color: var(--gold);
}

.betting-panel__manual {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.betting-panel__manual-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.betting-panel__number {
  flex: 1;
  min-width: 120px;
  max-width: 220px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.betting-panel__hint {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.betting-panel__hint:not([hidden]) {
  display: block;
}

.betting-panel__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.btn--compact {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  min-height: 0;
}

.betting-panel__auto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.betting-panel__auto-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.betting-panel__auto-select {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.btn {
  border: none;
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  filter: brightness(0.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn--gold {
  background: linear-gradient(180deg, #fff0a0, var(--gold) 50%, #b8952a);
  color: #1a1404;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.4) inset,
    0 3px 16px rgba(255, 200, 50, 0.35);
}

.btn--gold:hover:not(:disabled) {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(255, 220, 100, 0.45),
    0 6px 24px rgba(255, 200, 60, 0.45);
}

.btn--fold {
  background: linear-gradient(180deg, #8a4a4a, var(--danger-fold));
  color: #ffebee;
  border: 1px solid var(--danger-fold-border);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2) inset;
}

.btn--fold:hover:not(:disabled) {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.15) inset,
    0 0 0 1px rgba(255, 150, 150, 0.25),
    0 6px 20px rgba(100, 30, 30, 0.4);
  filter: brightness(1.08);
}

.btn--call {
  background: linear-gradient(180deg, #5cb3ff, #1976d2 55%, #0d47a1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 0 20px rgba(33, 150, 243, 0.35);
}

.btn--call:hover:not(:disabled) {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 0 1px rgba(100, 180, 255, 0.5),
    0 6px 28px rgba(33, 150, 243, 0.45);
}

.btn--raise {
  background: linear-gradient(180deg, #fff6b0, var(--gold) 45%, #a67c00);
  color: #1a1204;
  border: 1px solid rgba(255, 215, 0, 0.55);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.25) inset,
    0 0 20px var(--gold-glow);
}

.btn--raise:hover:not(:disabled) {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 0 0 1px rgba(255, 200, 80, 0.5),
    0 6px 28px rgba(255, 200, 0, 0.4);
}

.btn--muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--warn {
  background: rgba(183, 28, 28, 0.35);
  color: #ffcdd2;
  border: 1px solid rgba(239, 83, 80, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn--ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--rim-gold);
  background: rgba(255, 215, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 200, 80, 0.1);
  filter: none;
}

.btn--leave:hover {
  color: #ffcdd2;
  border-color: rgba(239, 83, 80, 0.5);
}

select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  min-width: 200px;
  font-family: inherit;
}

select:disabled {
  opacity: 0.5;
}

@keyframes dealIn {
  0%,
  15% {
    filter: brightness(1.08) saturate(1.05);
  }
  55% {
    transform: translateY(4px) scale(1.03) rotateZ(0.5deg);
    opacity: 1;
    filter: brightness(1);
  }
  78% {
    transform: translateY(-1px) scale(1) rotateZ(0deg);
  }
  to {
    transform: translateY(0) scale(1) rotateZ(0deg);
    opacity: 1;
    filter: none;
  }
}

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

@media (max-width: 960px) {
  .game-layout {
    flex-direction: column;
  }

  .app-shell[data-in-room="true"] .chat-panel {
    width: 100%;
    /* Was 220px — too short; hid WebRTC preview + feed. Allow a usable panel height. */
    max-height: min(52vh, 480px);
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .chat-panel__feed {
    min-height: 80px;
    max-height: 200px;
    flex: 1 1 auto;
  }

  .host-stream-video {
    min-height: 140px;
    max-height: min(36vh, 260px);
  }

  .remote-stream-tile .host-stream-video {
    min-height: 120px;
    max-height: min(32vh, 220px);
  }
}

@media (max-width: 760px) {
  .players {
    grid-template-columns: 1fr;
  }

  .lobby-auth-tabs {
    align-self: stretch;
    width: 100%;
  }

  .lobby-auth-tab {
    flex: 1 1 50%;
    text-align: center;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .lobby-auth-grid,
  .lobby-auth-actions {
    max-width: none;
  }

  .lobby-auth-btn {
    width: 100%;
    flex: 1 1 100%;
  }

  .lobby-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lobby-row .btn {
    width: 100%;
  }

  .lobby-play-grid__btns {
    flex-direction: column;
  }

  .lobby-play-grid__btns .btn {
    width: 100%;
  }

  .lobby-card__actions {
    width: 100%;
    justify-content: stretch;
  }

  .lobby-card__actions .btn {
    flex: 1 1 auto;
  }

  .lobby input {
    min-width: 0;
    width: 100%;
  }

  .webcam-preview-strip {
    flex: 1 1 100%;
    width: 100%;
  }

  #webcam-preview,
  #avatar-preview,
  #reg-webcam-preview,
  #reg-avatar-preview {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 140px;
    aspect-ratio: 4 / 3;
  }

  .webcam-actions {
    flex: 1 1 100%;
    width: 100%;
  }

  .webcam-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
  }

  .felt-oval {
    border-radius: 22px;
    padding: 1rem;
  }

  .action-row--play {
    flex-direction: column;
  }

  .action-row--play .btn {
    width: 100%;
  }
}

/* Host live WebRTC (cam + mic to other players) */
.host-stream-panel {
  margin: 0 0.75rem 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.12);
}

.host-stream-panel__banner {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: #ffe0b2;
  background: rgba(255, 152, 0, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.host-stream-panel__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.host-stream-panel__hint {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.host-stream-host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.stream-media-bar {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stream-media-bar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.stream-media-bar__row + .stream-media-bar__row {
  margin-top: 0.4rem;
}

.stream-media-bar__row--levers {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
}

.stream-media-bar__lab {
  display: flex;
  flex: 1 1 10rem;
  min-width: 0;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.stream-media-bar__range {
  flex: 1;
  min-width: 4.5rem;
  accent-color: var(--gold);
}

.stream-media-bar__chk {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
}

.stream-local-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 120, 80, 0.12);
  border: 1px solid rgba(0, 200, 120, 0.2);
  font-size: 0.68rem;
}

.stream-local-toggles__label {
  font-weight: 700;
  color: rgba(200, 255, 220, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stream-local-toggles__chk {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.stream-local-toggles__chk input {
  accent-color: var(--gold);
}

.stream-start-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.stream-start-option input {
  accent-color: var(--gold);
}

.host-stream-video {
  width: 100%;
  max-height: 200px;
  border-radius: 8px;
  background: #000;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.host-stream-viewer-ui {
  position: relative;
}

.remote-streams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  width: 100%;
}

.remote-stream-tile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.remote-stream-tile__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remote-stream-tile__audio-only {
  display: none;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(100, 210, 255, 0.28);
  background: rgba(40, 160, 220, 0.13);
  color: #d4f3ff;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.remote-stream-tile--audio-only .remote-stream-tile__audio-only {
  display: block;
}

.remote-stream-tile .host-stream-video {
  max-height: 140px;
  aspect-ratio: 4 / 3;
}

.remote-stream-tile--audio-only .host-stream-video,
.remote-stream-tile--video-hidden .host-stream-video {
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.remote-stream-tile__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  margin-top: 0.1rem;
}

.remote-stream-tile__vol {
  flex: 1 1 4.5rem;
  min-width: 3.5rem;
  max-width: 100%;
  accent-color: var(--gold);
}

.remote-stream-tile__icon-btn {
  flex: 0 0 auto;
  min-width: 1.5rem;
  height: 1.45rem;
  padding: 0 0.25rem;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.remote-stream-tile__icon-btn:hover {
  background: rgba(40, 40, 50, 0.85);
  border-color: rgba(255, 215, 0, 0.35);
}

.remote-stream-tile__icon-btn[aria-pressed="true"] {
  background: rgba(200, 80, 0, 0.35);
  border-color: rgba(255, 150, 80, 0.5);
  color: #ffecb3;
}

.host-stream-placeholder {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

/* In-room: keep webcam in the chat column (scrolls with the panel) — not fixed over the table. */
.app-shell[data-in-room="true"] .chat-panel .host-stream-panel {
  position: relative;
  flex-shrink: 0;
  z-index: auto;
  max-height: none;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0 0.6rem 0.5rem;
}

/* Home / lobby (index) */
.home-landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.5rem 2rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.home-landing__title {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 235, 190, 0.98);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.4),
    0 0 50px rgba(255, 200, 60, 0.15);
}

.home-landing__lead {
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
  max-width: 36rem;
}

.home-presence-line {
  margin: 0 auto 0.25rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  max-width: 40rem;
}

.home-landing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  width: 100%;
}

.home-landing__foot {
  margin: 1.75rem 0 0;
  font-size: 0.8rem;
  text-align: center;
}

.home-landing__foot a {
  color: var(--text-muted);
}

.home-landing__foot a:hover {
  color: var(--gold-dim);
}

/* Finnish info page (tietoja.html) */
.info-page {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 0.9rem 2.5rem;
  line-height: 1.65;
}

.info-page__title {
  margin: 0 0 0.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 223, 120, 0.96);
}

.info-page__lead {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  color: var(--text);
}

.info-page__lead strong {
  color: rgba(255, 240, 200, 0.98);
}

.info-page__h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.info-page p {
  margin: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-page a {
  color: var(--gold-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-page a:hover {
  color: var(--gold);
}

.info-page__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* Profile (address for withdrawals) */
.profile-page {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0.5rem 0.25rem 2rem;
}

.profile-page__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-page__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.profile-page__lead strong {
  color: var(--text);
  font-weight: 600;
}

.profile-page__note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-page__note a {
  color: var(--gold-dim);
}

.profile-auth__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.profile-auth__forgot {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.profile-auth__forgot a {
  color: var(--gold-dim);
}

.profile-auth__row input {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}

.profile-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-page__status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gold-dim);
  min-height: 1.25em;
}

.profile-page__identity {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.profile-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .profile-field-row {
    grid-template-columns: 1fr;
  }
}

.profile-field input,
.profile-input {
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-panel);
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
}

.profile-input--readonly {
  opacity: 0.85;
  cursor: default;
}

.profile-page__hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-page__hint--ok {
  color: var(--green-live);
  border-color: rgba(76, 175, 80, 0.35);
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-actions--row {
  align-items: flex-end;
}

.profile-wallet-block,
.profile-password-block,
.profile-report-block,
.profile-mod-block {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-mod-block .profile-report-block--staff {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-subhead {
  font-size: 0.98rem;
  margin-top: 0.25rem;
  margin-bottom: 0.35rem;
}

.profile-wallet-balance {
  margin: 0.35rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-bright, #ffe082);
}

.profile-field--inline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-field__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.profile-input--narrow {
  max-width: 6rem;
}

#profile-report-body {
  width: 100%;
  min-height: 5rem;
  resize: vertical;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
}

.profile-mod-reports {
  margin: 0.75rem 0 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-mod-card {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  line-height: 1.4;
}

.profile-mod-card--new {
  border-color: rgba(255, 193, 7, 0.45);
}

.profile-mod-card__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.profile-mod-ban-row {
  margin-top: 0.75rem;
}

.profile-field--unban {
  margin-top: 1rem;
}

.home-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 16, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  overflow: hidden;
}

.home-game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.05) 0%, transparent 42%);
  pointer-events: none;
  border-radius: inherit;
}

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

.home-game-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .home-game-card:hover {
    transform: none;
  }
}

.home-game-card--primary {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(165deg, rgba(30, 79, 50, 0.45), rgba(0, 0, 0, 0.5));
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.08);
}

.home-game-card--primary:hover {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 32px rgba(255, 215, 0, 0.15);
}

.home-game-card--secondary {
  opacity: 0.95;
}

.home-game-card--secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.home-game-card--slots {
  border-color: rgba(186, 104, 200, 0.42);
  background: linear-gradient(165deg, rgba(74, 20, 90, 0.38), rgba(0, 0, 0, 0.52));
  box-shadow: 0 0 22px rgba(186, 104, 200, 0.12);
}

.home-game-card--slots:hover {
  border-color: rgba(206, 147, 216, 0.55);
  box-shadow: 0 0 32px rgba(186, 104, 200, 0.2);
}

.home-game-card--slots .home-game-card__badge {
  color: #ce93d8;
}

.home-game-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.home-game-card--secondary .home-game-card__badge {
  color: var(--text-muted);
}

.home-game-card__name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-game-card__desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Compact wallet bar — balance + actions on one line when space allows */
.wallet-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin-top: 0.45rem;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  border: 1px solid rgba(214, 179, 95, 0.28);
  background: linear-gradient(165deg, rgba(22, 19, 14, 0.92) 0%, rgba(10, 9, 7, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 3px 14px rgba(0, 0, 0, 0.28);
}

.wallet-strip.wallet-strip--lobby-priority {
  margin-top: 0.75rem;
}

.wallet-strip__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin-bottom: 0;
  flex: 0 1 auto;
}

.wallet-strip__main #logout-btn {
  margin-left: auto;
}

.wallet-strip__label {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wallet-strip__value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e8c96b;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
}

.wallet-strip__deposit,
.wallet-strip__withdraw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.35rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.wallet-strip__withdraw {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 0.55rem;
  margin-left: 0.1rem;
}

@media (max-width: 720px) {
  .wallet-strip__withdraw {
    border-left: none;
    padding-left: 0;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-basis: 100%;
  }
}

.wallet-strip__subhint.wallet-strip__subhint--ok {
  color: #8fd4a8;
}

.wallet-strip__subhint,
.wallet-strip__connect,
.wallet-strip__hint {
  flex: 1 1 100%;
  width: 100%;
}

.wallet-strip__subhint {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.wallet-strip__deposit-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.wallet-strip__deposit-input {
  width: 3.25rem;
  padding: 0.22rem 0.32rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.78rem;
}

.wallet-strip__euro {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.wallet-strip .btn.btn--compact {
  padding: 0.26rem 0.42rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wallet-strip__connect {
  margin: 0.15rem 0 0;
}

.wallet-strip__hint {
  margin: 0.2rem 0 0;
  font-size: 0.65rem;
  line-height: 1.38;
  color: rgba(255, 255, 255, 0.48);
}

.profile-withdraw-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-withdraw-block__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.profile-withdraw-block__lead {
  margin-bottom: 0.65rem !important;
}

.money-lobby {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.22);
  background: linear-gradient(165deg, rgba(30, 79, 50, 0.35), rgba(0, 0, 0, 0.35));
}

.money-lobby.money-lobby--lobby-priority {
  margin-top: 0.55rem;
}

.money-lobby__head {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 0.45rem;
}

.money-lobby__head--sub {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--gold-dim);
}

.money-lobby__cash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.money-lobby__cash-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.money-lobby__cash-input {
  width: 5rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
}

.money-lobby__cash-hu {
  width: 100%;
  max-width: 32rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.money-lobby__cash-hu-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.money-lobby__cash-hu-opts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.money-lobby__cash-hu-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.money-lobby__cash-hu-opt input {
  margin-top: 0.15rem;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.money-lobby__hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.money-lobby__legal {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.92;
}

.money-lobby--disabled {
  opacity: 0.55;
}

.money-lobby--disabled .money-lobby__tiers,
.money-lobby--disabled .money-lobby__row {
  pointer-events: none;
}

.money-legal-details {
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}

.money-legal-details > summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dim);
  list-style: none;
}

.money-legal-details > summary::-webkit-details-marker {
  display: none;
}

.money-legal-details[open] > summary {
  margin-bottom: 0.5rem;
}

.money-legal-details__body {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.money-legal-details__lead {
  margin: 0 0 0.5rem;
}

.money-legal-details__list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}

.money-legal-details__list li {
  margin-bottom: 0.35rem;
}

.money-legal-details__full {
  margin: 0;
  font-size: 0.76rem;
}

.money-legal-details__full a {
  color: var(--gold);
  font-weight: 600;
}

.money-lobby__off {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #ffb74d;
}

.money-lobby__off-detail {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.money-lobby__off-detail code {
  font-size: 0.68rem;
  color: rgba(255, 215, 0, 0.85);
}

.money-lobby__off-detail a {
  color: var(--gold);
  font-weight: 600;
}

.stripe-mode-banner {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a237e;
  background: rgba(100, 181, 246, 0.35);
  border: 1px solid rgba(100, 181, 246, 0.55);
  border-radius: 6px;
}

.money-lobby__tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.money-lobby__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.server-rooms__money {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-dim);
}

.server-rooms__cam {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffb74d;
}

/* —— Slots (slots.html) —— */
.page-slots {
  min-height: 100vh;
}

.page-slots--neon {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(120, 80, 255, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 50%, rgba(0, 200, 255, 0.12), transparent 45%),
    linear-gradient(180deg, #0a0614 0%, #12082a 40%, #050308 100%);
}

.page-slots--neon .slots-auth {
  border-color: rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.08);
}

.slots-machine--neon {
  position: relative;
  border: 1px solid rgba(0, 255, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(30, 0, 60, 0.65) 0%, rgba(0, 40, 80, 0.4) 45%, rgba(10, 5, 30, 0.55) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 0, 255, 0.08),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(0, 255, 255, 0.06);
  overflow: visible;
}

.slots-machine--neon::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(0, 255, 255, 0.04), transparent, rgba(255, 0, 200, 0.05), transparent);
  animation: slots-neon-sheen 14s linear infinite;
  pointer-events: none;
}

@keyframes slots-neon-sheen {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-machine--neon::before {
    animation: none;
  }
}

.slots-reels-area {
  position: relative;
  margin-bottom: 1rem;
}

.slots-neon-wrap {
  position: relative;
  overflow: visible;
  padding: 0.65rem 0.5rem 0.75rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15, 0, 35, 0.9), rgba(0, 25, 55, 0.75));
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 32px rgba(0, 255, 255, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.slots-neon-wrap--featured {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 48px rgba(0, 255, 255, 0.2),
    0 0 80px rgba(255, 0, 200, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.55);
}

.slots-neon-sparkles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.35s ease;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.35) 0, transparent 8%),
    radial-gradient(circle at 88% 30%, rgba(0, 255, 255, 0.25) 0, transparent 8%),
    radial-gradient(circle at 40% 85%, rgba(255, 0, 200, 0.2) 0, transparent 10%);
  mix-blend-mode: screen;
}

.slots-neon-sparkles--hot {
  opacity: 0.55;
  animation: slots-neon-sparkle-drift 2.4s ease-in-out infinite;
}

.slots-neon-sparkles--mega {
  opacity: 0.85;
  animation: slots-neon-sparkle-drift 1.4s ease-in-out infinite;
}

@keyframes slots-neon-sparkle-drift {
  0%,
  100% {
    filter: hue-rotate(0deg);
    transform: scale(1);
  }
  50% {
    filter: hue-rotate(25deg);
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-neon-sparkles--hot,
  .slots-neon-sparkles--mega {
    animation: none;
    opacity: 0.4;
  }
}

.slots-neon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.45), rgba(255, 0, 200, 0.25), rgba(255, 220, 0, 0.2));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.85;
}

.slots-neon-frame {
  position: absolute;
  inset: 0.35rem;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: inset 0 0 24px rgba(128, 0, 255, 0.15);
}

.slots-neon-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 0.55rem);
  min-height: 11rem;
  align-items: stretch;
}

.slots-neon-grid--spinning .slots-neon-col {
  filter: blur(0.4px);
  animation: slots-neon-col-pulse 0.12s ease-in-out infinite;
}

@keyframes slots-neon-col-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-neon-grid--spinning .slots-neon-col {
    animation: none;
  }
}

.slots-neon-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.slots-neon-cell {
  display: grid;
  place-items: center;
  width: min(16vw, 72px);
  min-height: 3.1rem;
  border-radius: 12px;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(40, 20, 70, 0.95), rgba(10, 5, 30, 0.98));
  box-shadow:
    inset 0 2px 10px rgba(255, 255, 255, 0.06),
    0 4px 14px rgba(0, 0, 0, 0.45);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.slots-neon-cell[data-symbol="orchid"] {
  border-color: rgba(255, 105, 180, 0.45);
  box-shadow:
    inset 0 0 20px rgba(255, 105, 180, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.slots-neon-cell[data-symbol="azure"] {
  border-color: rgba(0, 200, 255, 0.5);
  box-shadow:
    inset 0 0 22px rgba(0, 200, 255, 0.15),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.slots-neon-cell[data-symbol="jade"] {
  border-color: rgba(0, 255, 170, 0.4);
}

.slots-neon-cell[data-symbol="amber"] {
  border-color: rgba(255, 200, 80, 0.55);
}

.slots-neon-cell[data-symbol="coral"] {
  border-color: rgba(255, 120, 80, 0.45);
}

.slots-neon-cell[data-symbol="violet"] {
  border-color: rgba(200, 120, 255, 0.55);
  box-shadow:
    inset 0 0 20px rgba(180, 100, 255, 0.18),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.slots-neon-cell[data-symbol="plasma"] {
  border-color: rgba(255, 255, 100, 0.65);
  background: linear-gradient(165deg, rgba(80, 40, 120, 0.98), rgba(40, 0, 80, 0.99));
  box-shadow:
    inset 0 0 28px rgba(255, 255, 0, 0.15),
    0 0 20px rgba(255, 220, 0, 0.2),
    0 4px 14px rgba(0, 0, 0, 0.45);
}

.slots-neon-cell.is-win {
  border-color: rgba(255, 230, 120, 0.95);
  transform: scale(1.04);
  box-shadow:
    0 0 24px rgba(255, 220, 80, 0.55),
    0 0 48px rgba(255, 100, 200, 0.25),
    inset 0 0 20px rgba(255, 255, 200, 0.15);
  animation: slots-neon-win-pulse 0.85s ease-in-out infinite alternate;
}

@keyframes slots-neon-win-pulse {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-neon-cell.is-win {
    animation: none;
  }
}

.slots-bet-row__detail {
  display: inline;
  font-size: 0.78em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.slots-paytable--neon .slots-paytable__explain {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.slots-paytable--neon .slots-paytable__explain--compact {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

.slots-paytable--neon .slots-paytable__list--compact {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.slots-paytable--neon .neon-ico[data-symbol="orchid"] {
  filter: drop-shadow(0 0 4px rgba(255, 150, 200, 0.6));
}

.slots-paytable--neon .neon-ico[data-symbol="plasma"] {
  filter: drop-shadow(0 0 6px rgba(255, 255, 100, 0.8));
}

.slots-neon-burst {
  position: absolute;
  inset: -12%;
  border-radius: 22px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 220, 80, 0.12), transparent 45%),
    radial-gradient(circle at 70% 60%, rgba(0, 255, 255, 0.1), transparent 40%);
  transition: opacity 0.35s ease;
}

.slots-neon-wrap--burst .slots-neon-burst {
  opacity: 1;
}

.slots-neon-wrap--big .slots-neon-burst {
  animation: slots-neon-burst-flicker 0.6s ease-in-out 2;
}

.slots-neon-wrap--mega .slots-neon-burst {
  animation: slots-neon-burst-flicker 0.45s ease-in-out 3;
}

@keyframes slots-neon-burst-flicker {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-neon-wrap--big .slots-neon-burst,
  .slots-neon-wrap--mega .slots-neon-burst {
    animation: none;
    opacity: 0.5;
  }
}

.slots-neon-ribbon {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  z-index: 4;
  padding: 0.28rem 1.15rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #1a0520;
  background: linear-gradient(90deg, #ffe566, #fff8c4, #ffe566);
  border-radius: 4px;
  box-shadow:
    0 0 20px rgba(255, 230, 100, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: slots-neon-ribbon-in 0.45s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes slots-neon-ribbon-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.9) rotate(-2deg);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-neon-ribbon {
    animation: none;
  }
}

.slots-neon-cell.is-line-preview {
  border-color: rgba(0, 255, 255, 0.85) !important;
  box-shadow:
    0 0 18px rgba(0, 255, 255, 0.45),
    inset 0 0 12px rgba(0, 255, 255, 0.12) !important;
  transform: scale(1.02);
  z-index: 2;
}

.slots-neon-grid--landed .slots-neon-cell {
  animation: slots-neon-cell-land 0.38s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.slots-neon-col[data-col="0"] .slots-neon-cell {
  animation-delay: calc(var(--land-i, 0) * 28ms);
}

.slots-neon-col[data-col="1"] .slots-neon-cell {
  animation-delay: calc(40ms + var(--land-i, 0) * 28ms);
}

.slots-neon-col[data-col="2"] .slots-neon-cell {
  animation-delay: calc(80ms + var(--land-i, 0) * 28ms);
}

.slots-neon-col[data-col="3"] .slots-neon-cell {
  animation-delay: calc(120ms + var(--land-i, 0) * 28ms);
}

.slots-neon-col[data-col="4"] .slots-neon-cell {
  animation-delay: calc(160ms + var(--land-i, 0) * 28ms);
}

.slots-neon-cell[data-row="0"] {
  --land-i: 0;
}

.slots-neon-cell[data-row="1"] {
  --land-i: 1;
}

.slots-neon-cell[data-row="2"] {
  --land-i: 2;
}

@keyframes slots-neon-cell-land {
  0% {
    filter: brightness(1.45) saturate(1.15);
  }
  100% {
    filter: brightness(1) saturate(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-neon-grid--landed .slots-neon-cell {
    animation: none;
  }
}

.slots-neon-grid--spinning .slots-neon-col:nth-child(1) {
  animation-delay: 0ms;
}

.slots-neon-grid--spinning .slots-neon-col:nth-child(2) {
  animation-delay: 0.025s;
}

.slots-neon-grid--spinning .slots-neon-col:nth-child(3) {
  animation-delay: 0.05s;
}

.slots-neon-grid--spinning .slots-neon-col:nth-child(4) {
  animation-delay: 0.075s;
}

.slots-neon-grid--spinning .slots-neon-col:nth-child(5) {
  animation-delay: 0.1s;
}

.slots-neon-outcome {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 220, 100, 0.22);
  background: linear-gradient(165deg, rgba(40, 20, 60, 0.55), rgba(0, 30, 50, 0.35));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.slots-neon-outcome__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}

.slots-neon-outcome__amount {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffe082;
  text-shadow: 0 0 18px rgba(255, 224, 130, 0.45);
}

.slots-neon-outcome__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.slots-neon-outcome__lines {
  margin: 0;
  padding: 0 0 0 1rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.slots-neon-outcome__lines li {
  margin-bottom: 0.2rem;
}

.slots-neon-outcome__lines li:last-child {
  margin-bottom: 0;
}

.slots-paytable__map-hint {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.42);
}

.slots-payline-map {
  margin: 0 0 0.85rem;
}

.slots-payline-map__svg {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 0.5rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.slots-payline-map__dots circle {
  fill: rgba(255, 255, 255, 0.2);
}

.slots-payline-map__path {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.42;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    stroke-width 0.15s ease;
  filter: url(#slots-payline-glow);
}

.slots-payline-map__path[data-line-index="0"] {
  stroke: #00e5ff;
}
.slots-payline-map__path[data-line-index="1"] {
  stroke: #ff2aa3;
}
.slots-payline-map__path[data-line-index="2"] {
  stroke: #ffea00;
}
.slots-payline-map__path[data-line-index="3"] {
  stroke: #7cff00;
}
.slots-payline-map__path[data-line-index="4"] {
  stroke: #c084fc;
}
.slots-payline-map__path[data-line-index="5"] {
  stroke: #ff6b35;
}
.slots-payline-map__path[data-line-index="6"] {
  stroke: #00ffc8;
}
.slots-payline-map__path[data-line-index="7"] {
  stroke: #ff4d8d;
}
.slots-payline-map__path[data-line-index="8"] {
  stroke: #4dabf7;
}
.slots-payline-map__path[data-line-index="9"] {
  stroke: #ffd43b;
}

.slots-payline-map__path:hover,
.slots-payline-map__path.is-hover {
  opacity: 1;
  stroke-width: 3;
}

.slots-payline-map__legend {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.4);
  columns: 2;
  column-gap: 0.75rem;
}

.slots-payline-map__legend li {
  break-inside: avoid;
}

.slots-auth {
  max-width: 900px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(186, 104, 200, 0.42);
  border-radius: 12px;
}

.slots-auth__lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.slots-auth .trust-strip {
  margin: 0 0 0.65rem;
}

.slots-auth__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.slots-auth__row input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 0.9rem;
}

.slots-auth__row--dob {
  margin-top: 0.45rem;
}

.slots-auth__dob {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.slots-auth__dob-hint {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.slots-auth__row--dob input[type="date"] {
  flex: 0 1 11rem;
  max-width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 0.9rem;
}

.slots-auth__avatar {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed rgba(186, 104, 200, 0.35);
  background: rgba(0, 0, 0, 0.2);
}

.slots-auth__avatar-title {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.slots-auth__avatar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.slots-auth__avatar-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.slots-auth__avatar-preview video,
.slots-auth__avatar-preview img {
  width: 88px;
  height: 66px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.slots-auth__avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.slots-auth__avatar-hint {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.slots-auth__verify {
  margin: 0.65rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
}

.slots-auth__verify-note {
  flex: 1 1 10rem;
  min-width: 0;
}

.slots-auth__forgot {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
}

.slots-auth__forgot a {
  color: rgba(186, 104, 200, 0.95);
}

.slots-shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.35rem 0.75rem 1.5rem;
}

.slots-wallet-strip {
  margin: 0 0 0.65rem;
}

.slots-wallet-strip code {
  font-size: 0.72rem;
}

.slots-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 720px) {
  .slots-main {
    grid-template-columns: 1fr minmax(200px, 240px);
    gap: 1.25rem;
  }
}

.slots-machine {
  padding: 1.15rem 1.2rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(186, 104, 200, 0.35);
  background: linear-gradient(165deg, rgba(45, 12, 58, 0.55), rgba(0, 0, 0, 0.45));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.slots-machine__header {
  text-align: center;
  margin-bottom: 1rem;
}

.slots-machine__title {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e1bee7;
}

.slots-machine__sub {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.slots-machine__badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a0a22;
  background: linear-gradient(135deg, #ffecb3, #ff80ab 60%, #b388ff);
  box-shadow: 0 0 18px rgba(255, 128, 200, 0.45);
}

.slots-neon-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(186, 104, 200, 0.25);
}

.slots-neon-stats__item {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
}

.slots-neon-stats__item strong {
  margin-left: 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #e1bee7;
}

.slots-neon-fs-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 235, 120, 0.45);
  background: linear-gradient(120deg, rgba(80, 30, 120, 0.55), rgba(20, 60, 100, 0.5), rgba(120, 30, 90, 0.45));
  box-shadow:
    0 0 28px rgba(255, 200, 80, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8e1;
  text-shadow: 0 0 12px rgba(255, 220, 100, 0.5);
}

.slots-neon-fs-banner__bolt {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 6px rgba(255, 255, 120, 0.9));
}

.slots-neon-fs-banner__title {
  background: linear-gradient(90deg, #ffe082, #ff80ab, #b388ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slots-neon-fs-banner__count {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: #fff59d;
}

.slots-neon-fs-banner__mult {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 245, 200, 0.85);
  text-transform: none;
}

.slots-bet-row--locked .btn[disabled] {
  opacity: 0.38;
}

.slots-turbo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  user-select: none;
}

.slots-turbo input {
  accent-color: #ba68c8;
  width: 1rem;
  height: 1rem;
}

.slots-reels {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  min-height: 5.5rem;
  align-items: center;
  perspective: 800px;
}

.slots-reels--spinning .slots-reel {
  filter: blur(0.5px);
  animation: slots-reel-shake 0.1s ease-in-out infinite;
}

@keyframes slots-reel-shake {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .slots-reels--spinning .slots-reel {
    animation: none;
  }
}

.slots-reel {
  flex: 0 0 auto;
  width: min(28vw, 120px);
  min-height: 4.5rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a1020 0%, #0d080f 100%);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.35);
}

.slots-reel__sym {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  padding: 0.35rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.slots-message {
  margin: 0 0 1rem;
  min-height: 2.75rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.slots-bet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.slots-bet-row__label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.slots-bet-row__label strong {
  color: var(--gold-dim);
  font-weight: 800;
}

.slots-spin-btn {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slots-paytable {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.slots-paytable__title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.slots-paytable__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.slots-paytable__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slots-paytable__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.slots-paytable__list strong {
  color: #e1bee7;
  font-weight: 700;
}

.slots-ico {
  font-size: 0.78rem;
  margin-right: 0.35rem;
  opacity: 0.95;
}

.slots-mode-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1rem;
  max-width: 960px;
  padding: 0 0.75rem;
}

.slots-mode-bar__btn {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.slots-mode-bar__btn:hover {
  border-color: rgba(186, 104, 200, 0.45);
  color: var(--text);
}

.slots-mode-bar__btn.is-active {
  border-color: rgba(186, 104, 200, 0.65);
  background: rgba(74, 20, 90, 0.45);
  color: #e1bee7;
  box-shadow: 0 0 16px rgba(186, 104, 200, 0.15);
}

.slots-paytable--avalanche .slots-paytable__explain {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.slots-paytable__subtitle {
  margin: 0.65rem 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.slots-paytable__legal {
  margin: 0.75rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.38);
}

.slots-ladder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.slots-ladder__step {
  min-width: 2.35rem;
  padding: 0.35rem 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.55);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.slots-ladder__step.is-active {
  border-color: rgba(129, 212, 250, 0.55);
  background: rgba(25, 118, 210, 0.25);
  color: #b3e5fc;
  box-shadow: 0 0 12px rgba(100, 181, 246, 0.2);
}

.slots-ladder__step.is-won {
  border-color: rgba(186, 104, 200, 0.65);
  background: rgba(74, 20, 90, 0.4);
  color: #f3e5f5;
}

/* -------------------------------------------------------------------------- */
/* Texas Hold’em — sci-fi “holo deck” (active when seated at a table)         */
/* -------------------------------------------------------------------------- */

.app-shell[data-in-room="true"] {
  position: relative;
  background:
    radial-gradient(ellipse 100% 55% at 50% -15%, rgba(124, 77, 255, 0.14), transparent 52%),
    radial-gradient(ellipse 80% 40% at 80% 100%, rgba(0, 229, 255, 0.06), transparent 45%),
    linear-gradient(180deg, #030508 0%, var(--bg-deep) 42%);
}

.app-shell[data-in-room="true"] .game-header {
  border-bottom-color: rgba(0, 229, 255, 0.12);
  box-shadow: 0 1px 0 rgba(124, 77, 255, 0.08);
}

.app-shell[data-in-room="true"] .game-header__logo {
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
}

.app-shell[data-in-room="true"] .header-meta__item--phase {
  color: var(--holo-cyan);
  text-shadow: 0 0 12px var(--holo-glow);
}

.app-shell[data-in-room="true"] .felt-rail {
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(155deg, #1a1028 0%, #0a0814 38%, #05060c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 229, 255, 0.15),
    inset 0 -2px 20px rgba(0, 0, 0, 0.65),
    0 12px 48px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(124, 77, 255, 0.12);
}

.app-shell[data-in-room="true"] .felt-oval {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(0, 229, 255, 0.28);
  background:
    radial-gradient(ellipse 75% 58% at 50% 38%, rgba(0, 229, 255, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 90% 85% at 50% 50%, #0c2430 0%, #061018 55%, #030810 88%),
    repeating-linear-gradient(-12deg, transparent, transparent 4px, rgba(0, 229, 255, 0.02) 4px, rgba(0, 229, 255, 0.02) 5px);
  box-shadow:
    0 0 60px rgba(0, 229, 255, 0.1),
    0 0 100px rgba(124, 77, 255, 0.08),
    inset 0 0 100px rgba(0, 0, 0, 0.55);
}

.app-shell[data-in-room="true"] .felt-stage {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: clamp(220px, 38vw, 400px);
  position: relative;
}

.app-shell[data-in-room="true"] #players {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 1;
}

.app-shell[data-in-room="true"] #players .player-seat {
  pointer-events: auto;
  position: absolute;
  left: var(--seat-x, 50%);
  top: var(--seat-y, 50%);
  transform: translate(-50%, -50%);
  width: min(200px, 31vw);
  max-width: 230px;
  z-index: 2;
  padding: 0.45rem 0.5rem;
}

.app-shell[data-in-room="true"] #players .player-seat--hand-winner {
  z-index: 5;
}

.app-shell[data-in-room="true"] #players .player-head {
  margin-bottom: 0.32rem;
}

@media (max-width: 520px) {
  .app-shell[data-in-room="true"] #players .player-seat {
    width: min(168px, 42vw);
    max-width: none;
    padding: 0.38rem 0.42rem;
  }

  .app-shell[data-in-room="true"] #players .player-head h2 {
    font-size: 0.8rem;
  }

  .app-shell[data-in-room="true"] #players .player-avatar {
    width: 32px;
    height: 32px;
  }
}

.app-shell[data-in-room="true"] .felt-oval::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 229, 255, 0.045) 3px,
    rgba(0, 229, 255, 0.045) 4px
  );
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: holo-scan-drift 5.5s linear infinite;
  z-index: 0;
}

.app-shell[data-in-room="true"] .felt-oval::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(0, 229, 255, 0.07) 12%,
    transparent 22%,
    rgba(224, 64, 251, 0.06) 48%,
    transparent 58%,
    rgba(124, 77, 255, 0.08) 78%,
    transparent 92%
  );
  animation: holo-sheen 14s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.app-shell[data-in-room="true"] .table-dealer__halo {
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(0, 229, 255, 0.2), transparent 70%);
  animation: dealer-holo-halo 2.8s ease-in-out infinite;
}

.app-shell[data-in-room="true"] .table-dealer__label {
  font-family: var(--font-hud);
  letter-spacing: 0.36em;
  color: #b0ffff;
  text-shadow:
    0 0 12px rgba(0, 229, 255, 0.5),
    0 0 2px rgba(0, 0, 0, 0.8);
}

.app-shell[data-in-room="true"] .table-dealer__svg .table-dealer__quiff {
  fill: #0a1a2a;
}

.app-shell[data-in-room="true"] .table-dealer__svg .table-dealer__bow {
  fill: #031018;
  stroke: rgba(0, 229, 255, 0.35);
  stroke-width: 0.4;
}

.app-shell[data-in-room="true"] .table-dealer__figure {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(0, 229, 255, 0.15));
}

.app-shell[data-in-room="true"] .table-dealer__eye--L,
.app-shell[data-in-room="true"] .table-dealer__eye--R {
  fill: #6efcff;
  filter: drop-shadow(0 0 1.5px rgba(0, 229, 255, 0.95));
}

@keyframes dealer-holo-halo {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.app-shell[data-in-room="true"] .felt-brand {
  position: relative;
  z-index: 1;
  border-bottom-color: rgba(0, 229, 255, 0.12);
}

.app-shell[data-in-room="true"] .felt-stage .table-center {
  position: relative;
  z-index: 3;
}

.app-shell[data-in-room="true"] .felt-brand__title {
  font-family: var(--font-hud);
  letter-spacing: 0.28em;
  color: #b8ffff;
  text-shadow:
    0 0 24px rgba(0, 229, 255, 0.55),
    0 0 48px rgba(124, 77, 255, 0.25),
    0 1px 0 rgba(0, 0, 0, 0.5);
}

.app-shell[data-in-room="true"] .felt-brand__tagline {
  color: rgba(0, 229, 255, 0.55);
  letter-spacing: 0.22em;
}

.app-shell[data-in-room="true"] .pot-strip__label {
  font-family: var(--font-hud);
  color: rgba(0, 229, 255, 0.85);
  text-shadow: 0 0 10px var(--holo-glow);
}

.app-shell[data-in-room="true"] .pot-strip__value {
  font-family: var(--font-hud);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #f0fdff;
  text-shadow:
    0 0 20px rgba(0, 229, 255, 0.45),
    0 0 40px rgba(124, 77, 255, 0.2);
}

.app-shell[data-in-room="true"] .chip-icon {
  border: 2px solid rgba(0, 229, 255, 0.45);
  background: radial-gradient(circle at 30% 30%, #a7ffff, #006064 55%, #001016);
  box-shadow:
    0 0 14px rgba(0, 229, 255, 0.55),
    inset 0 0 8px rgba(255, 255, 255, 0.15);
}

.app-shell[data-in-room="true"] .player-seat {
  background: linear-gradient(165deg, var(--holo-panel), rgba(4, 8, 16, 0.98));
  border: 1px solid rgba(0, 229, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-shell[data-in-room="true"] .player-seat.active {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow:
    0 0 0 2px rgba(0, 229, 255, 0.22),
    0 0 28px rgba(0, 229, 255, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.5);
  animation: holo-seat-active-pulse 2.4s ease-in-out infinite;
}

.app-shell[data-in-room="true"] .player-seat.active .player-avatar {
  border-color: var(--holo-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
}

.app-shell[data-in-room="true"] .player-seat--allin:not(.player-seat--folded) {
  border-color: rgba(224, 64, 251, 0.45);
  box-shadow:
    inset 0 0 28px rgba(224, 64, 251, 0.1),
    0 0 20px rgba(224, 64, 251, 0.12);
}

.app-shell[data-in-room="true"] .player-seat__cam-pip {
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 229, 255, 0.12);
}

.app-shell[data-in-room="true"] .player-stack {
  color: #80deea;
  font-variant-numeric: tabular-nums;
}

.app-shell[data-in-room="true"] .player-bet-pill {
  background: rgba(0, 229, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.35);
  color: #b3e5fc;
}

.app-shell[data-in-room="true"] .cards-row--board .card {
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(0, 229, 255, 0.12);
}

.app-shell[data-in-room="true"] .hero-hand .card,
.app-shell[data-in-room="true"] .player-seat--me .cards-row .card:not(.back) {
  border-color: rgba(124, 77, 255, 0.4);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(124, 77, 255, 0.2);
}

.app-shell[data-in-room="true"] .card.back {
  background: repeating-linear-gradient(
    135deg,
    #0a1628,
    #0a1628 4px,
    #122038 4px,
    #122038 8px
  ),
    linear-gradient(125deg, rgba(0, 229, 255, 0.15) 0%, transparent 45%, rgba(224, 64, 251, 0.12) 100%);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow:
    inset 0 0 12px rgba(0, 229, 255, 0.12),
    0 0 16px rgba(124, 77, 255, 0.15);
}

.app-shell[data-in-room="true"] .chat-panel {
  border-color: rgba(0, 229, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(124, 77, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.55);
}

.app-shell[data-in-room="true"] .btn--call {
  background: linear-gradient(180deg, #26c6da, #00838f 55%, #004d56);
  color: #e0f7fa;
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

.app-shell[data-in-room="true"] .btn--raise {
  background: linear-gradient(180deg, #b388ff 0%, var(--holo-violet) 48%, #311b92);
  color: #f3e5f5;
  border: 1px solid rgba(179, 136, 255, 0.55);
  box-shadow: 0 0 22px rgba(124, 77, 255, 0.4);
}

.app-shell[data-in-room="true"] .btn--fold {
  background: linear-gradient(180deg, #6a1b2c, #3e0f18);
  border-color: rgba(255, 82, 82, 0.45);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.app-shell[data-in-room="true"] .player-tag--winner {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.22), rgba(255, 215, 0, 0.2));
  color: #e0f7fa;
  border: 1px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
}

.app-shell[data-in-room="true"] .player-seat--hand-winner {
  border-color: rgba(0, 229, 255, 0.45) !important;
  box-shadow:
    0 0 0 1px rgba(124, 77, 255, 0.15),
    0 8px 28px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(0, 229, 255, 0.2) !important;
}

.app-shell[data-in-room="true"] .btn--gold {
  background: linear-gradient(180deg, #b9f6ff, var(--holo-cyan) 50%, #006064);
  color: #001016;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.app-shell[data-in-room="true"] .controls__status {
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

@keyframes holo-scan-drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(10px);
  }
}

@keyframes holo-sheen {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes holo-seat-active-pulse {
  0%,
  100% {
    border-color: rgba(0, 229, 255, 0.55);
    box-shadow:
      0 0 0 2px rgba(0, 229, 255, 0.18),
      0 0 24px rgba(0, 229, 255, 0.15),
      0 12px 28px rgba(0, 0, 0, 0.45);
  }
  50% {
    border-color: rgba(0, 229, 255, 0.95);
    box-shadow:
      0 0 0 3px rgba(124, 77, 255, 0.28),
      0 0 36px rgba(0, 229, 255, 0.22),
      0 14px 34px rgba(124, 77, 255, 0.12);
  }
}

.app-shell[data-in-room="true"] .player-seat--turn-flash {
  animation: holo-turn-flash 0.75s ease;
}

@keyframes holo-turn-flash {
  0% {
    filter: brightness(1);
  }
  40% {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(0, 229, 255, 0.75));
  }
  100% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell[data-in-room="true"] .felt-oval::before,
  .app-shell[data-in-room="true"] .felt-oval::after {
    animation: none !important;
  }

  .app-shell[data-in-room="true"] .felt-oval::before {
    opacity: 0.35;
  }

  .app-shell[data-in-room="true"] .table-dealer__halo {
    animation: none !important;
  }

  .app-shell[data-in-room="true"] .player-seat.active {
    animation: none !important;
  }

  .app-shell[data-in-room="true"] .player-seat--turn-flash {
    animation: none !important;
  }
}
