:root {
  color-scheme: dark;
  --bg: #080705;
  --panel: rgba(22, 20, 16, 0.84);
  --panel-solid: #15130f;
  --panel-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #fff8e7;
  --muted: #bdb5a3;
  --gold: #f6c75c;
  --gold-2: #ffe199;
  --green: #1fc77e;
  --green-deep: #0c6d4c;
  --red: #ee5050;
  --ink: #17110b;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(246, 199, 92, 0.17), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(31, 199, 126, 0.15), transparent 22rem),
    linear-gradient(135deg, #080705 0%, #14100a 47%, #061811 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

input,
select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

select option {
  background: #15130f;
  color: var(--text);
}

input:focus,
select:focus {
  border-color: rgba(246, 199, 92, 0.72);
  box-shadow: 0 0 0 3px rgba(246, 199, 92, 0.12);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.app-shell {
  width: min(1460px, calc(100vw - 18px));
  margin: 0 auto;
  padding: 10px 0 18px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(246, 199, 92, 0.62);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(246, 199, 92, 0.98), rgba(31, 199, 126, 0.82)),
    #1a150e;
  color: #17110b;
  font-weight: 950;
  box-shadow: 0 14px 36px rgba(246, 199, 92, 0.18);
}

.brand-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.account-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-pill,
.status-pill,
.room-code {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  padding: 0 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31, 199, 126, 0.13);
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(246, 199, 92, 0.38);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(246, 199, 92, 0.28), rgba(31, 199, 126, 0.18));
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.auth-layout {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.54fr);
  gap: 14px;
  align-items: stretch;
}

.auth-showcase,
.panel,
.table-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-showcase {
  position: relative;
  display: grid;
  min-height: min(590px, calc(100vh - 76px));
  overflow: hidden;
  align-items: end;
  padding: 24px 28px 22px;
}

.auth-showcase::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 7, 5, 0.08) 0%, rgba(8, 7, 5, 0.12) 44%, rgba(8, 7, 5, 0.9) 72%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px);
}

.hero-money-scene {
  position: absolute;
  inset: 8px;
  z-index: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 199, 92, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 52% 38%, rgba(246, 199, 92, 0.22), transparent 13rem),
    radial-gradient(circle at 58% 54%, rgba(31, 199, 126, 0.34), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.005));
}

.hero-money-scene::before {
  position: absolute;
  inset: -18% 5% 30%;
  content: "";
  border: 11px solid rgba(246, 199, 92, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 199, 126, 0.9), rgba(6, 87, 58, 0.96) 68%),
    #0c6d4c;
  box-shadow:
    inset 0 0 65px rgba(0, 0, 0, 0.44),
    0 34px 100px rgba(0, 0, 0, 0.34);
  transform: rotate(-5deg);
}

.hero-money-scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(8, 7, 5, 0.1) 42%, rgba(8, 7, 5, 0.86) 74%),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.cash-stack {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 8px;
}

.cash-stack-left {
  top: 24px;
  left: 62px;
  transform: rotate(-10deg) scale(0.9);
}

.cash-stack-right {
  top: 210px;
  right: 28px;
  bottom: auto;
  transform: rotate(12deg) scale(0.82);
}

.cash-note {
  display: grid;
  width: 146px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 20%, transparent 80%, rgba(255, 255, 255, 0.12)),
    linear-gradient(135deg, #c9f8bf, #51be72);
  color: #07361e;
  font-size: 0.86rem;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.cash-note + .cash-note {
  margin-top: -35px;
  margin-left: 14px;
}

.jackpot-pot {
  position: absolute;
  top: 158px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 158px;
  min-height: 82px;
  place-items: center;
  border: 1px solid rgba(246, 199, 92, 0.62);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(246, 199, 92, 0.92), rgba(245, 141, 48, 0.92)),
    #f6c75c;
  color: #211304;
  text-align: center;
  box-shadow:
    0 20px 58px rgba(246, 199, 92, 0.24),
    0 0 0 8px rgba(246, 199, 92, 0.09);
  transform: translate(-50%, -50%) rotate(-3deg);
}

.jackpot-pot span {
  color: #4a2a08;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.jackpot-pot strong {
  font-size: 1.36rem;
  line-height: 1;
}

.chip-row {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.chip-row-top {
  top: 24px;
  right: 36px;
  transform: rotate(10deg) scale(0.9);
}

.chip-row-bottom {
  top: 238px;
  left: 185px;
  bottom: auto;
  transform: rotate(-8deg) scale(0.78);
}

.chip {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 6px dashed rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #fff8e7;
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.2),
    0 14px 28px rgba(0, 0, 0, 0.26);
}

.chip-gold {
  background: #d99f22;
}

.chip-red {
  background: #bd3434;
}

.chip-green {
  background: #14855b;
}

.hero-cards {
  position: absolute;
  z-index: 5;
  display: flex;
}

.hero-cards .playing-card {
  margin-left: -14px;
}

.hero-cards-main {
  top: 132px;
  left: 51%;
  transform: translate(-50%, -50%) rotate(7deg) scale(0.96);
}

.hero-cards-side {
  top: 58px;
  left: 38%;
  opacity: 0.86;
  transform: translate(-50%, -50%) rotate(-13deg) scale(0.78);
}

.hero-cards-side .playing-card {
  filter: saturate(0.86);
}

.auth-copy {
  position: relative;
  z-index: 6;
  max-width: 900px;
}

.hero-kicker {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(246, 199, 92, 0.34);
  border-radius: 999px;
  background: rgba(246, 199, 92, 0.12);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0 12px;
  text-transform: uppercase;
}

.auth-copy h1 {
  max-width: 920px;
  margin: 12px 0 0;
  font-size: clamp(2.25rem, 5.25vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 740px;
  margin: 10px 0 0;
  color: #ddd4bd;
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-stats span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  padding: 0 11px;
  font-size: 0.82rem;
  font-weight: 850;
}

.hero-stats strong {
  color: var(--gold-2);
}

.download-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.download-strip span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-card {
  position: relative;
  align-self: stretch;
  align-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 8%, rgba(246, 199, 92, 0.12), transparent 10rem),
    linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(31, 199, 126, 0.055)),
    var(--panel);
  padding: 18px;
}

.auth-card::before {
  position: absolute;
  inset: 10px;
  content: "";
  border: 1px solid rgba(246, 199, 92, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 34%, rgba(31, 199, 126, 0.12), transparent 8rem),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.032) 0 2px, transparent 2px 16px);
  pointer-events: none;
}

.auth-card > * {
  position: relative;
}

.auth-tabs,
.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
}

.tab-btn,
.segment-btn {
  min-height: 40px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.tab-btn.active,
.segment-btn.active {
  background: linear-gradient(135deg, var(--gold), #f2a83d);
  color: var(--ink);
}

.form-stack {
  display: grid;
  gap: 11px;
}

.form-title {
  margin: 12px 0 2px;
  font-size: 1.32rem;
}

.server-alert {
  border: 1px solid rgba(246, 199, 92, 0.24);
  border-radius: var(--radius);
  background: rgba(246, 199, 92, 0.09);
  color: var(--gold-2);
  padding: 9px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-weight: 900;
  padding: 0 14px;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #f09f38);
  color: var(--ink);
  box-shadow: 0 14px 32px rgba(246, 199, 92, 0.18);
}

.btn-green {
  background: linear-gradient(135deg, var(--green), #18a773);
  color: #04140d;
}

.btn-danger {
  background: rgba(238, 80, 80, 0.14);
  color: #ffb1ad;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.grid-dashboard {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: 12px;
}

.admin-wide {
  grid-column: 1 / -1;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-card {
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(246, 199, 92, 0.12), rgba(31, 199, 126, 0.06)),
    rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.metric-card strong {
  overflow-wrap: anywhere;
  font-size: 1.28rem;
}

.panel {
  padding: 14px;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-title h2,
.panel-title h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.money-hero {
  display: grid;
  min-height: 110px;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(246, 199, 92, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(246, 199, 92, 0.16), transparent),
    rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.money-hero span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.money-hero strong {
  font-size: 1.76rem;
  letter-spacing: 0;
}

.quick-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.coin-note {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(31, 199, 126, 0.18);
  border-radius: var(--radius);
  background: rgba(31, 199, 126, 0.07);
  padding: 12px;
}

.coin-note strong {
  color: var(--gold-2);
}

.coin-note span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.variant-card {
  position: relative;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #15130f;
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.variant-card.active {
  border-color: rgba(246, 199, 92, 0.88);
  box-shadow: inset 0 0 0 1px rgba(246, 199, 92, 0.28);
}

.variant-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.variant-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.variant-card::after {
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 28px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  content: "";
  background:
    linear-gradient(135deg, rgba(246, 199, 92, 0.24), rgba(31, 199, 126, 0.17)),
    rgba(255, 255, 255, 0.08);
  transform: rotate(8deg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.form-grid .wide {
  grid-column: span 2;
}

.room-list,
.tx-list,
.activity-list,
.admin-list {
  display: grid;
  gap: 8px;
}

.room-item,
.tx-item,
.activity-item,
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 10px;
}

.room-item strong,
.tx-item strong,
.admin-item strong {
  display: block;
}

.tx-item small,
.room-item small,
.activity-item small,
.admin-item small {
  color: var(--muted);
}

.admin-item.compact {
  padding-block: 10px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-actions .btn {
  min-height: 36px;
  padding-inline: 11px;
  font-size: 0.78rem;
}

.admin-coin-form {
  display: grid;
  width: min(230px, 100%);
  grid-template-columns: minmax(92px, 1fr) auto;
  gap: 8px;
}

.admin-coin-form input {
  min-height: 36px;
  padding-inline: 10px;
}

.room-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
}

.table-shell {
  position: relative;
  min-height: calc(100vh - 90px);
  overflow: hidden;
  padding: 12px;
}

.table-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.table-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.felt {
  position: relative;
  display: grid;
  min-height: min(620px, calc(100vh - 190px));
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(246, 199, 92, 0.22);
  border-radius: 40px;
  background:
    radial-gradient(circle at center, rgba(35, 156, 96, 0.96), rgba(7, 75, 52, 0.96) 62%, rgba(4, 37, 29, 0.98)),
    #0c6d4c;
  box-shadow:
    inset 0 0 0 12px rgba(246, 199, 92, 0.12),
    inset 0 0 70px rgba(0, 0, 0, 0.45);
}

.felt::before {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  content: "";
}

.center-pot {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 210px;
  min-height: 130px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(8, 7, 5, 0.44);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.center-pot span {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.center-pot strong {
  display: block;
  margin-top: 4px;
  color: var(--gold-2);
  font-size: 2rem;
}

.seat-grid {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  grid-template-rows: repeat(2, minmax(170px, 1fr));
  gap: 10px;
  pointer-events: none;
}

.seat {
  align-self: center;
  justify-self: center;
  width: min(100%, 238px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(9, 8, 6, 0.54);
  padding: 9px;
  pointer-events: auto;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.seat.turn {
  border-color: rgba(246, 199, 92, 0.86);
  box-shadow: 0 0 0 3px rgba(246, 199, 92, 0.13);
  transform: translateY(-2px);
}

.seat.winner {
  border-color: rgba(31, 199, 126, 0.9);
  box-shadow: 0 0 0 3px rgba(31, 199, 126, 0.13);
}

.seat.packed {
  opacity: 0.58;
}

.seat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.player-id {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.player-id strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  padding: 0 8px;
  white-space: nowrap;
}

.cards {
  display: flex;
  min-height: 74px;
  align-items: center;
}

.playing-card {
  position: relative;
  display: grid;
  width: 52px;
  height: 72px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid rgba(18, 14, 10, 0.2);
  border-radius: 7px;
  background:
    linear-gradient(155deg, #fffaf0, #ead9b8),
    #fffaf0;
  color: #16100b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  font-weight: 950;
}

.playing-card + .playing-card {
  margin-left: -18px;
}

.playing-card.red {
  color: #c73333;
}

.playing-card.hidden {
  border-color: rgba(246, 199, 92, 0.42);
  background:
    linear-gradient(135deg, rgba(246, 199, 92, 0.2), rgba(31, 199, 126, 0.16)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 8px),
    #17110b;
  color: transparent;
}

.playing-card small {
  position: absolute;
  top: 6px;
  left: 7px;
  font-size: 0.7rem;
}

.playing-card b {
  font-size: 1.18rem;
}

.seat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.action-dock {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 10px;
}

.invite-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(246, 199, 92, 0.2);
  border-radius: var(--radius);
  background: rgba(246, 199, 92, 0.08);
  padding: 12px;
}

.invite-link {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold-2);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 28px));
  border: 1px solid rgba(246, 199, 92, 0.32);
  border-radius: var(--radius);
  background: rgba(21, 19, 15, 0.96);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 13px 15px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

.hide {
  display: none !important;
}

@media (max-width: 1060px) {
  .auth-layout,
  .grid-dashboard,
  .admin-grid,
  .room-stage {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: 490px;
  }

  .hero-money-scene {
    inset: 8px;
  }

  .cash-stack-left {
    top: 22px;
    left: 28px;
  }

  .cash-stack-right {
    top: 174px;
    right: 24px;
    bottom: auto;
  }

  .chip-row-bottom {
    top: 204px;
    left: 118px;
    bottom: auto;
  }

  .variant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100vw - 18px, 720px);
    padding-top: 8px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-sub,
  .status-pill {
    display: none;
  }

  .account-strip {
    gap: 6px;
  }

  .wallet-pill {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.8rem;
  }

  .auth-layout {
    gap: 10px;
  }

  .auth-showcase {
    min-height: 500px;
    padding: 16px;
  }

  .hero-money-scene {
    inset: 8px;
    border-radius: 18px;
  }

  .hero-money-scene::before {
    inset: -10% -18% 40%;
    border-width: 9px;
  }

  .cash-stack-left {
    top: 24px;
    left: 18px;
    transform: rotate(-11deg) scale(0.66);
    transform-origin: left top;
  }

  .cash-stack-right {
    top: 154px;
    right: -8px;
    bottom: auto;
    transform: rotate(12deg) scale(0.58);
    transform-origin: right top;
  }

  .jackpot-pot {
    top: 122px;
    width: 124px;
    min-height: 68px;
  }

  .jackpot-pot strong {
    font-size: 1.18rem;
  }

  .chip-row-top {
    top: 22px;
    right: 10px;
    transform: rotate(11deg) scale(0.62);
    transform-origin: right top;
  }

  .chip-row-bottom {
    display: none;
  }

  .hero-cards-main {
    top: 108px;
    left: 52%;
    transform: translate(-50%, -50%) rotate(7deg) scale(0.7);
  }

  .hero-cards-side {
    top: 54px;
    left: 34%;
    transform: translate(-50%, -50%) rotate(-13deg) scale(0.46);
  }

  .auth-copy h1 {
    font-size: 2.82rem;
  }

  .auth-copy p {
    font-size: 0.9rem;
    line-height: 1.38;
  }

  .hero-stats span {
    min-height: 30px;
    padding: 0 9px;
    font-size: 0.76rem;
  }

  .download-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .panel {
    padding: 14px;
  }

  .variant-grid,
  .form-grid,
  .side-panel,
  .quick-row,
  .action-dock,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .admin-item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions .btn {
    flex: 1;
  }

  .admin-coin-form {
    width: 100%;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .table-shell {
    min-height: auto;
    padding: 10px;
  }

  .table-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .felt {
    min-height: 620px;
    border-radius: 28px;
  }

  .seat-grid {
    position: relative;
    inset: auto;
    z-index: 1;
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    padding: 10px;
  }

  .center-pot {
    position: absolute;
    top: 18px;
    left: 50%;
    min-width: 180px;
    min-height: 92px;
    transform: translateX(-50%);
  }

  .center-pot strong {
    font-size: 1.42rem;
  }

  .seat {
    width: min(100%, 330px);
  }

  .seat:first-child {
    margin-top: 120px;
  }

  .cards {
    min-height: 74px;
  }

  .playing-card {
    width: 50px;
    height: 70px;
    flex-basis: 50px;
  }

  .toast {
    right: 9px;
    bottom: 9px;
  }
}
