:root {
  --wood-dark: #190f08;
  --wood-mid: #2f1b0e;
  --wood-light: #4a2a15;
  --gold: #d9a441;
  --gold-bright: #f7cf73;
  --paper-light: #f4e4bf;
  --paper-mid: #e1c58a;
  --ink: #2b180a;
  --ink-soft: #5a381d;
  --crimson: #9b1c14;
  --felt-light: #1e6b40;
  --felt-dark: #0c331d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: "PT Serif", Georgia, serif;
  color: #f6e7cb;
  background-color: var(--wood-dark);
  overflow-x: hidden;
  position: relative;
}

.saloon-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0.24) 0px, rgba(0,0,0,0.24) 2px, transparent 2px, transparent 115px),
    repeating-linear-gradient(0deg, rgba(255,205,130,0.024) 0px, rgba(255,205,130,0.024) 1px, transparent 1px, transparent 6px),
    radial-gradient(circle at 28% 20%, #4b2a14 0%, #24140a 56%, #110804 100%);
}

.lantern-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 14%, rgba(255, 195, 95, 0.16), transparent 62%);
}

.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 900; overflow: hidden; }

/* Ticker */
.ticker-bar {
  background: rgba(14, 7, 3, 0.92);
  border-bottom: 1px solid rgba(217, 164, 65, 0.38);
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  font-size: 0.82rem;
  color: var(--gold-bright);
}
.ticker-track {
  display: inline-flex;
  gap: 24px;
  animation: tickerScroll 30s linear infinite;
}
@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header & Navigation */
.saloon-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px 8px;
}

.header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-badge {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde68a, #b45309);
  color: #2b1404;
  font-size: 1.35rem;
  border: 2px solid #fef3c7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 1.2px;
  color: var(--gold-bright);
}
.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 2px;
  color: #cbb082;
}

.profile-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.avatar-cycle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(34, 19, 9, 0.9);
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.12s;
}
.avatar-cycle:hover { transform: scale(1.08); }

.profile-name-input {
  width: 140px;
  background: rgba(20, 11, 5, 0.85);
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff3d6;
  font-family: inherit;
  font-size: 0.86rem;
}
.profile-name-input:focus { outline: none; border-color: var(--gold-bright); }

.chips-pill,
.live-pill,
.wanted-level-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(24, 13, 6, 0.88);
  border: 1px solid rgba(217, 164, 65, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.chips-pill strong { color: #fde047; font-family: "Rye", serif; font-size: 0.92rem; }
.refill-btn {
  background: linear-gradient(180deg, #eab308, #a16207);
  color: #1f0e02;
  border: none;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.refill-btn:hover { filter: brightness(1.12); }

.icon-chip {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(48, 28, 14, 0.88);
  border: 1px solid rgba(217, 164, 65, 0.4);
  color: #fff3d6;
  cursor: pointer;
  font-size: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.25); }
}

/* Main 3 Tabs */
.saloon-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 680px) {
  .saloon-tabs { grid-template-columns: 1fr; }
}

.saloon-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(56, 32, 16, 0.86), rgba(32, 18, 8, 0.92));
  border: 2px solid rgba(217, 164, 65, 0.34);
  border-radius: 12px;
  color: #e6cca0;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.saloon-tab:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.saloon-tab.active {
  background: linear-gradient(180deg, #8b4c1a, #4d260b);
  border-color: var(--gold-bright);
  color: #fff8e6;
  box-shadow: 0 6px 22px rgba(245, 204, 108, 0.22);
}

.tab-ico { font-size: 1.25rem; }
.tab-tag {
  font-family: "PT Serif", serif;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.38);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--gold-bright);
}
.live-tag { background: rgba(22, 163, 74, 0.28); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.4); }
.gold-tag { background: rgba(234, 179, 8, 0.22); color: #fde047; }

/* Tab Panels */
.tab-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px 48px;
}
.tab-panel.active { display: block; animation: fadeIn 0.22s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Shared buttons & cards */
.wood-chip {
  background: rgba(48, 28, 14, 0.88);
  color: #e9d3ab;
  border: 1px solid rgba(217, 164, 65, 0.38);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.wood-chip.active {
  background: linear-gradient(180deg, #75471c, #4b2b10);
  border-color: var(--gold-bright);
  color: #fff4d6;
}

.wood-card {
  background: linear-gradient(180deg, rgba(58, 34, 17, 0.93), rgba(32, 18, 8, 0.96));
  border: 2px solid rgba(217, 164, 65, 0.4);
  border-radius: 13px;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
}

.card-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
}
.card-head-row .card-title { margin-bottom: 0; }
.card-desc { font-size: 0.86rem; color: #dbc39c; margin-bottom: 12px; line-height: 1.38; }

.badge-live {
  background: rgba(220, 38, 38, 0.28);
  border: 1px solid #f87171;
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.action-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, filter 0.15s, opacity 0.15s;
}
.action-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.action-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.action-btn.gold { background: linear-gradient(180deg, #e7b74e, #b67e1f); color: #261304; }
.action-btn.random { background: linear-gradient(180deg, #c23524, #7d1b11); color: #fff3dd; }
.action-btn.stamp { background: linear-gradient(180deg, #8b3a62, #5a1f3d); color: #fff3dd; }
.action-btn.water { background: linear-gradient(180deg, #256f8f, #174961); color: #e6f7ff; }

/* ================= TAB 1: WANTED ================= */
.wanted-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.wanted-toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.wl-stars { color: #facc15; letter-spacing: 2px; }
.wl-rank { color: #f4d69c; font-size: 0.84rem; font-weight: 700; }

.layout {
  display: grid;
  grid-template-columns: minmax(320px, 515px) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.poster-wrap { position: sticky; top: 12px; display: flex; justify-content: center; }
@media (max-width: 900px) { .poster-wrap { position: static; } }

.poster {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(255,248,224,0.65), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(139,90,36,0.32), transparent 55%),
    linear-gradient(160deg, var(--paper-light) 0%, var(--paper-mid) 62%, #d4b072 100%);
  color: var(--ink);
  padding: 18px;
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.68), inset 0 0 42px rgba(105,62,20,0.45);
  transform: rotate(-0.35deg);
}
.poster.shake { animation: posterShake 0.25s ease; }
@keyframes posterShake {
  0% { transform: rotate(-0.35deg) translate(0,0); }
  25% { transform: rotate(-1.2deg) translate(-5px,3px); }
  55% { transform: rotate(0.7deg) translate(5px,-3px); }
  100% { transform: rotate(-0.35deg) translate(0,0); }
}

.nail {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d6b274, #4c3318 65%, #1f1206 100%);
  box-shadow: 0 2px 5px rgba(0,0,0,0.65); z-index: 4;
}
.nail-tl { top: 9px; left: 9px; } .nail-tr { top: 9px; right: 9px; }
.nail-bl { bottom: 9px; left: 9px; } .nail-br { bottom: 9px; right: 9px; }

.poster-border {
  border: 3px double var(--ink);
  outline: 1px solid rgba(43,24,10,0.45);
  outline-offset: -7px;
  padding: 16px 16px 12px;
  text-align: center;
}
.poster-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 2px; color: var(--crimson); margin-bottom: 4px; }
.poster-title {
  font-family: "Ruslan Display", "Playfair Display", serif;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.08; letter-spacing: 1px; color: var(--ink);
}
.poster-subtitle { font-family: "Playfair Display", serif; font-weight: 900; font-size: 0.9rem; letter-spacing: 1.6px; color: var(--ink-soft); margin-top: 3px; }
.divider { display: flex; align-items: center; gap: 10px; margin: 9px 0 12px; }
.divider span:first-child, .divider span:last-child { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--ink), transparent); }
.divider .star { color: var(--crimson); }

.photo-stage {
  position: relative; width: 100%; aspect-ratio: 1/1;
  border: 4px solid var(--ink); overflow: hidden; cursor: crosshair; user-select: none; background: #2b1a0e;
}
.wanted-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.35s ease; }
.wanted-photo.sepia { filter: sepia(0.68) contrast(1.12) brightness(0.95) saturate(0.85); }

.wardrobe-item { position: absolute; pointer-events: none; z-index: 3; transition: opacity 0.25s, transform 0.25s; }
.wardrobe-item.hidden { opacity: 0 !important; transform: translateX(-50%) translateY(-28px) scale(0.7) !important; }
.cowboy-hat { top: 7%; left: 53%; width: 48%; transform: translateX(-50%) rotate(-4deg); filter: drop-shadow(0 6px 8px rgba(0,0,0,0.45)); }
.crown-item { top: 6%; left: 54%; width: 32%; transform: translateX(-50%) rotate(-5deg); filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45)); }
.glasses-item { top: 34.5%; left: 47.5%; width: 24%; transform: translateX(-50%) rotate(-3deg); }
.mustache-item { top: 44.5%; left: 46%; width: 22%; transform: translateX(-50%) rotate(-2deg); }
.clown-item { top: 39%; left: 45.5%; width: 34px; height: 34px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 35% 30%, #ff7b7b, #dc2626 55%, #7f1d1d 100%); box-shadow: 0 3px 8px rgba(0,0,0,0.45); }

.stamp-overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-15deg);
  border: 5px solid currentColor; padding: 6px 16px; font-family: "Playfair Display", serif;
  font-weight: 900; font-size: clamp(1.1rem, 3vw, 1.65rem); letter-spacing: 2px;
  background: rgba(243,226,188,0.75); border-radius: 6px; z-index: 6; pointer-events: none;
}
.stamp-overlay.hidden { display: none; }

.speech-bubble {
  position: absolute; top: 10%; right: 5%; max-width: 56%;
  background: #fffbeb; color: #1f1207; border: 3px solid #2b180a; border-radius: 14px;
  padding: 7px 12px; font-weight: 700; font-size: 0.88rem; z-index: 7; pointer-events: none;
}
.speech-bubble.hidden { display: none; }

.splats-layer, .cursors-layer { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.cursors-layer { z-index: 7; }
.friend-cursor {
  position: absolute; transform: translate(-10%, -10%);
  background: rgba(25, 13, 5, 0.85); color: #fde68a; border: 1px solid var(--gold);
  border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; white-space: nowrap;
  transition: left 0.14s linear, top 0.14s linear;
}

.splat { position: absolute; width: 82px; height: 82px; margin-left: -41px; margin-top: -41px; animation: splatPop 0.22s cubic-bezier(0.2,1.4,0.4,1) both; }
@keyframes splatPop {
  0% { transform: scale(0.15) rotate(var(--rot)); opacity: 0.4; }
  100% { transform: scale(var(--scale)) rotate(var(--rot)); opacity: 0.96; }
}
.splat-drip { animation: dripDown 3.5s ease-in forwards; }
@keyframes dripDown { 0% { transform: translateY(0); } 100% { transform: translateY(14px); } }
.flying-projectile { position: fixed; font-size: 2.5rem; z-index: 999; pointer-events: none; }

.wash-wave { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(125,211,252,0.85), rgba(56,189,248,0.55), transparent); transform: translateY(-105%); z-index: 8; pointer-events: none; }
.wash-wave.active { animation: washDown 0.85s ease-in-out forwards; }
@keyframes washDown { 0% { transform: translateY(-105%); } 50% { transform: translateY(0); } 100% { transform: translateY(105%); } }

.target-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(28,15,6,0.85); color: #fce9c5; padding: 5px 12px; border-radius: 999px;
  font-size: 0.76rem; white-space: nowrap; border: 1px solid rgba(217,164,65,0.5); z-index: 5; pointer-events: none;
}

.charges { margin-top: 12px; }
.charges-head { display: flex; align-items: center; justify-content: center; gap: 8px; }
.charges-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.3px; color: var(--ink-soft); }
.mini-btn { background: rgba(43,24,10,0.14); border: 1px solid rgba(43,24,10,0.4); color: var(--ink); border-radius: 6px; padding: 2px 8px; font-family: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.charges-text { font-size: 0.9rem; margin-top: 5px; line-height: 1.35; font-style: italic; min-height: 2.4em; }

.bounty-box { margin-top: 11px; padding: 9px 12px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: rgba(139,90,36,0.12); }
.bounty-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; color: var(--crimson); }
.bounty-amount { font-family: "Rye", serif; font-size: clamp(1.75rem, 4vw, 2.45rem); color: var(--ink); transition: transform 0.2s, color 0.2s; }
.bounty-amount.bump { transform: scale(1.12); color: var(--crimson); }
.poster-footer { margin-top: 8px; font-size: 0.72rem; letter-spacing: 1.4px; font-weight: 700; color: var(--ink-soft); display: flex; justify-content: center; gap: 8px; }

.saloon-panel { display: flex; flex-direction: column; gap: 14px; }
.weapon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
@media (max-width: 500px) { .weapon-grid { grid-template-columns: repeat(2, 1fr); } }
.weapon-btn {
  background: rgba(24,13,6,0.72); border: 2px solid rgba(217,164,65,0.25); border-radius: 10px;
  padding: 8px 4px; color: #f3e2c3; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-family: inherit;
}
.weapon-btn.active { background: linear-gradient(180deg, rgba(168,56,32,0.6), rgba(88,28,15,0.8)); border-color: var(--gold-bright); }
.w-icon { font-size: 1.45rem; } .w-name { font-size: 0.76rem; font-weight: 700; }
.w-count { font-size: 0.72rem; color: var(--gold-bright); background: rgba(0,0,0,0.35); padding: 1px 7px; border-radius: 999px; }
.quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.wardrobe-grid, .soundboard-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.wardrobe-btn, .sb-btn {
  flex: 1 1 auto; background: rgba(24,13,6,0.74); color: #ebd5ae;
  border: 1px solid rgba(217,164,65,0.32); border-radius: 8px; padding: 8px 10px;
  font-family: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer;
}
.wardrobe-btn.active { background: linear-gradient(180deg, #8c531c, #59320e); border-color: var(--gold-bright); color: #fff6de; }

.preset-row, .quick-reacts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.preset-chip {
  background: rgba(217,164,65,0.14); border: 1px solid rgba(217,164,65,0.35); color: #f4dfb7;
  border-radius: 999px; padding: 4px 10px; font-family: inherit; font-size: 0.76rem; cursor: pointer;
}
.preset-chip:hover { background: rgba(217,164,65,0.28); }
.sighting-row, .chat-form { display: flex; gap: 8px; }
.sighting-row input, .chat-form input {
  flex: 1; background: rgba(18,10,4,0.8); border: 1px solid rgba(217,164,65,0.35);
  border-radius: 8px; padding: 8px 11px; color: #fff4df; font-family: inherit; font-size: 0.88rem;
}
.send-btn {
  background: linear-gradient(180deg, #d9a441, #a8751d); color: #241205;
  border: none; border-radius: 8px; padding: 0 14px; font-family: inherit; font-weight: 700; cursor: pointer;
}
.sightings-list { list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; margin-top: 10px; }
.sighting-item { background: rgba(243,226,188,0.08); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 8px 10px; font-size: 0.85rem; }
.sighting-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gold-bright); margin-bottom: 2px; }

/* ================= TAB 2: MULTIPLAYER ================= */
.mp-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.55fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .mp-layout { grid-template-columns: 1fr; } }
.mp-main, .mp-sidebar { display: flex; flex-direction: column; gap: 16px; }

.pvp-stage {
  background: rgba(18, 9, 4, 0.72);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.pvp-fighters {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.fighter-box {
  background: rgba(58, 34, 17, 0.6);
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: 10px;
  padding: 10px;
}
.f-avatar { font-size: 2.2rem; }
.f-name { font-weight: 700; font-size: 0.9rem; color: #fce8c3; margin-top: 4px; }
.pvp-vs { font-family: "Rye", serif; font-size: 1.5rem; color: #f87171; }
.pvp-status { font-size: 0.98rem; color: var(--gold-bright); font-weight: 700; margin-bottom: 12px; min-height: 1.5em; }
.pvp-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.pvp-controls.hidden { display: none; }
.bet-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; }
.bet-inline select {
  background: #221208; color: #fde047; border: 1px solid var(--gold);
  border-radius: 7px; padding: 6px 8px; font-family: inherit; font-weight: 700;
}
.pvp-shoot-btn {
  width: 100%; padding: 20px; border-radius: 12px; border: 3px solid rgba(255,255,255,0.2);
  font-family: inherit; font-size: 1.2rem; font-weight: 900; cursor: pointer;
}
.pvp-shoot-btn.waiting { background: #5a381b; color: #f6e7cb; }
.pvp-shoot-btn.fire {
  background: linear-gradient(180deg, #ef4444, #991b1b); color: #fff;
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.7); transform: scale(1.02);
}

/* Tug of War */
.tug-score { font-size: 0.84rem; color: #f4d89e; display: flex; gap: 8px; }
.tug-track {
  position: relative; height: 28px; border-radius: 999px; overflow: visible;
  background: linear-gradient(90deg, #b45309, #991b1b);
  border: 2px solid var(--gold); margin: 14px 0;
}
.tug-fill-left {
  height: 100%; border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, #eab308, #d97706);
  transition: width 0.12s ease;
}
.tug-knot {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  font-size: 1.7rem; transition: left 0.12s ease; filter: drop-shadow(0 2px 4px #000);
}
.tug-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Shared Canvas */
.draw-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.color-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); cursor: pointer; }
.color-dot.active { transform: scale(1.2); border-color: #fff; box-shadow: 0 0 8px #fff; }
.brush-size-lbl { margin-left: auto; font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px; }
#saloon-canvas {
  width: 100%; height: 260px; display: block;
  background: #23140b; border: 2px solid rgba(217, 164, 65, 0.45);
  border-radius: 10px; cursor: crosshair; touch-action: none;
}

/* Roster & Chat */
.roster-list { list-style: none; display: flex; flex-direction: column; gap: 7px; max-height: 180px; overflow-y: auto; }
.roster-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(20, 11, 5, 0.72); border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 8px; padding: 7px 10px; font-size: 0.86rem;
}
.roster-chips { color: #fde047; font-weight: 700; font-size: 0.82rem; }

.chat-list {
  list-style: none; display: flex; flex-direction: column-reverse; gap: 8px;
  height: 310px; overflow-y: auto; margin-bottom: 10px; padding-right: 4px;
}
.chat-item {
  background: rgba(243, 226, 188, 0.08); border-radius: 9px; padding: 8px 10px; font-size: 0.86rem;
}
.chat-meta { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--gold-bright); margin-bottom: 2px; }

/* ================= TAB 3: WILD WEST CASINO ================= */
.casino-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.casino-games-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.casino-nav-btn {
  background: rgba(34, 19, 9, 0.9); color: #ebd2a4;
  border: 2px solid rgba(217, 164, 65, 0.34); border-radius: 10px;
  padding: 9px 14px; font-family: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer;
}
.casino-nav-btn.active {
  background: linear-gradient(180deg, #1b6b3e, #0d3b21);
  border-color: var(--gold-bright); color: #fff9e6;
}

.bet-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: rgba(22, 12, 5, 0.88); border: 1px solid rgba(217, 164, 65, 0.4);
  padding: 6px 12px; border-radius: 10px; font-size: 0.85rem;
}
.bet-chip {
  background: #3d2411; color: #fde68a; border: 1px solid rgba(217, 164, 65, 0.4);
  border-radius: 999px; padding: 4px 10px; font-family: inherit; font-weight: 700; font-size: 0.8rem; cursor: pointer;
}
.bet-chip.active { background: #d9a441; color: #1f0e02; border-color: #fff3c4; }
.bet-chip.allin { background: #991b1b; color: #fff; border-color: #fca5a5; }
.bet-chip.allin.active { background: #ef4444; box-shadow: 0 0 10px #ef4444; }

.casino-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.7fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 920px) { .casino-layout { grid-template-columns: 1fr; } }

.felt-table {
  background: radial-gradient(ellipse at 50% 35%, var(--felt-light) 0%, #124a2b 60%, var(--felt-dark) 100%);
  border: 6px solid #593314;
  outline: 2px solid var(--gold);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65), inset 0 0 60px rgba(0, 0, 0, 0.45);
  min-height: 460px;
}

.casino-game { display: none; }
.casino-game.active { display: block; animation: fadeIn 0.2s ease; }

.game-header { text-align: center; margin-bottom: 16px; }
.game-header h2 { font-family: "Playfair Display", serif; font-size: 1.4rem; color: #fef08a; margin-bottom: 4px; }
.game-rules { font-size: 0.82rem; color: #bbf7d0; }

.bj-zone { margin: 14px 0; text-align: center; }
.zone-label { font-size: 0.82rem; letter-spacing: 1.6px; font-weight: 700; color: #dcfce7; margin-bottom: 8px; }
.score-badge {
  display: inline-block; background: rgba(0,0,0,0.45); color: #fde047;
  padding: 2px 10px; border-radius: 999px; margin-left: 6px;
}

.cards-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 118px; align-items: center;
}

.playing-card {
  width: 78px; height: 112px; border-radius: 9px;
  background: linear-gradient(160deg, #fffdf7, #f0e4c8);
  border: 2px solid #2b180a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: 6px 7px; color: #1c1917; font-weight: 900; user-select: none;
  animation: cardDeal 0.22s ease;
}
@keyframes cardDeal { from { opacity: 0; transform: translateY(-16px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
.playing-card.red { color: #b91c1c; }
.playing-card.back {
  background: repeating-linear-gradient(45deg, #7f1d1d 0px, #7f1d1d 8px, #450a0a 8px, #450a0a 16px);
  border: 3px solid #f5cc6c;
  display: grid; place-items: center; color: #fde68a; font-size: 1.7rem;
}
.card-corner { font-size: 0.95rem; line-height: 1; text-align: left; }
.card-center { font-size: 2rem; text-align: center; }
.card-corner-br { font-size: 0.95rem; line-height: 1; text-align: right; transform: rotate(180deg); }

/* Poker selectable cards */
.poker-card-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.poker-card-wrap .playing-card { transition: transform 0.14s, box-shadow 0.14s; }
.poker-card-wrap.held .playing-card { transform: translateY(-10px); box-shadow: 0 0 18px #fde047; border-color: #fde047; }
.hold-tag {
  font-size: 0.7rem; font-weight: 900; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.4); color: #9ca3af;
}
.poker-card-wrap.held .hold-tag { background: #eab308; color: #1f0e02; }

.payout-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  background: rgba(0,0,0,0.34); border: 1px solid rgba(253,224,71,0.3);
  border-radius: 10px; padding: 8px; margin-bottom: 16px; font-size: 0.76rem; color: #fef3c7;
}
.payout-strip span { background: rgba(255,255,255,0.06); padding: 3px 7px; border-radius: 6px; }
.payout-strip b { color: #fde047; }

.bj-status {
  text-align: center; font-size: 1.02rem; font-weight: 700; color: #fef08a;
  background: rgba(0, 0, 0, 0.36); border: 1px solid rgba(253, 224, 71, 0.3);
  border-radius: 10px; padding: 10px 14px; margin: 14px 0;
}

.casino-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }

/* Dice */
.dice-arena { display: flex; justify-content: center; gap: 26px; margin: 22px 0; }
.die-cube {
  width: 96px; height: 96px; display: grid; place-items: center;
  font-size: 4.4rem; line-height: 1;
  background: linear-gradient(155deg, #fffdf5, #e6d3ad); color: #2b180a;
  border: 3px solid #2b180a; border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}
.die-cube.rolling { animation: dieSpin 0.14s linear infinite; }
@keyframes dieSpin { 0% { transform: rotate(-10deg) scale(1.06); } 50% { transform: rotate(10deg) scale(0.95); } 100% { transform: rotate(-10deg) scale(1.06); } }

.dice-bets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dice-bet-btn {
  background: linear-gradient(180deg, #523015, #2e1909); color: #fff3d6;
  border: 2px solid var(--gold); border-radius: 10px; padding: 13px 10px;
  font-family: inherit; font-weight: 700; font-size: 0.94rem; cursor: pointer;
}
.dice-bet-btn span { color: #fde047; }
.dice-bet-btn:hover { filter: brightness(1.14); transform: translateY(-1px); }

/* Casino Slots */
.casino-reels { display: flex; justify-content: center; gap: 16px; margin: 24px 0; }
.big-reel {
  width: 92px; height: 92px; display: grid; place-items: center; font-size: 3.1rem;
  background: linear-gradient(180deg, #fff8e6, #e4c68c); border: 4px solid #b4771c;
  border-radius: 14px; box-shadow: inset 0 5px 12px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.45);
}

/* Colt-6 Revolver Roulette */
.cylinder-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 18px 0; }
.cylinder {
  position: relative; width: 146px; height: 146px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #78716c, #292524 75%);
  border: 5px solid #d9a441; box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  transition: transform 0.35s cubic-bezier(0.2, 1.3, 0.4, 1);
}
.chamber {
  position: absolute; width: 32px; height: 32px; border-radius: 50%;
  background: #0c0a09; border: 2px solid #57534e;
  top: 50%; left: 50%; margin: -16px 0 0 -16px;
}
.chamber[data-idx="0"] { transform: translate(0, -44px); }
.chamber[data-idx="1"] { transform: translate(38px, -22px); }
.chamber[data-idx="2"] { transform: translate(38px, 22px); }
.chamber[data-idx="3"] { transform: translate(0, 44px); }
.chamber[data-idx="4"] { transform: translate(-38px, 22px); }
.chamber[data-idx="5"] { transform: translate(-38px, -22px); }
.chamber.safe { background: #16a34a; border-color: #86efac; }
.chamber.bang { background: #dc2626; border-color: #fca5a5; box-shadow: 0 0 14px #ef4444; }
.colt-mult { font-family: "Rye", serif; font-size: 1.3rem; color: #fde047; }

/* Leaderboard & Casino Log */
.casino-sidebar { display: flex; flex-direction: column; gap: 16px; }
.leaderboard-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.lb-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(20, 11, 5, 0.78); border: 1px solid rgba(217, 164, 65, 0.25);
  border-radius: 8px; padding: 8px 11px; font-size: 0.88rem;
}
.lb-item.top1 { border-color: #fde047; background: rgba(161, 98, 7, 0.28); }
.lb-chips { color: #fde047; font-weight: 700; }

.casino-log { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; font-size: 0.82rem; color: #e6d1ab; }
.casino-log li { border-left: 2px solid var(--gold); padding-left: 8px; }

/* FX: Tumbleweed & Gold Rain & Toasts */
.tumbleweed { position: fixed; bottom: 18px; left: -100px; font-size: 4rem; z-index: 950; pointer-events: none; animation: rollAcross 4.2s linear forwards; }
@keyframes rollAcross {
  0% { transform: translateX(0) translateY(0) rotate(0deg); }
  50% { transform: translateX(60vw) translateY(-24px) rotate(720deg); }
  100% { transform: translateX(120vw) translateY(0) rotate(1440deg); }
}
.gold-coin { position: fixed; top: -40px; font-size: 1.85rem; z-index: 960; pointer-events: none; animation: coinFall 2.2s ease-in forwards; }
@keyframes coinFall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(108vh) rotate(540deg); opacity: 0.2; } }

.toast-container { position: fixed; bottom: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1200; }
.toast {
  background: rgba(34, 18, 7, 0.95); border: 1px solid var(--gold); color: #fff2d6;
  padding: 9px 14px; border-radius: 8px; font-size: 0.86rem; box-shadow: 0 8px 22px rgba(0,0,0,0.5);
}

/* ================= AUTH, TRANSFER & ADMIN PANEL ================= */
.hidden { display: none !important; }

.announce-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92vw;
  background: linear-gradient(180deg, #92400e, #451a03);
  border: 3px solid #fde047;
  color: #fef9c3;
  padding: 13px 22px;
  border-radius: 12px;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.08rem;
  text-align: center;
  z-index: 1500;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  animation: fadeIn 0.25s ease;
}

.user-identity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-role-tag {
  background: linear-gradient(180deg, #eab308, #a16207);
  color: #1f0e02;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.auth-open-btn {
  background: linear-gradient(180deg, #eab308, #b45309);
  color: #1f0e02;
  border: 1px solid #fef08a;
  border-radius: 9px;
  padding: 7px 13px;
  font-family: inherit;
  font-weight: 900;
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.25);
}
.auth-open-btn:hover { filter: brightness(1.1); }

.saloon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.saloon-tab { flex: 1 1 200px; }

.admin-tab {
  border-color: rgba(250, 204, 21, 0.7) !important;
  background: linear-gradient(180deg, rgba(133, 77, 14, 0.85), rgba(69, 26, 3, 0.95)) !important;
}
.admin-tag { background: #facc15; color: #1f0e02; }

/* Auth Modal */
.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 6, 2, 0.85);
  display: grid;
  place-items: center;
  z-index: 1400;
  padding: 16px;
}

.auth-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #432612, #221207);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: #e6cca0;
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-header {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.auth-sub {
  font-size: 0.82rem;
  color: #d6bc92;
  margin-bottom: 14px;
  line-height: 1.35;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab-btn {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(217, 164, 65, 0.35);
  background: rgba(20, 11, 5, 0.75);
  color: #e6cca0;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-tab-btn.active {
  background: linear-gradient(180deg, #8b4c1a, #4d260b);
  border-color: var(--gold-bright);
  color: #fff8e6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #ebd5ae;
}
.auth-form input[type="text"],
.auth-form input[type="password"] {
  background: rgba(15, 8, 3, 0.85);
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 8px;
  padding: 9px 11px;
  color: #fff6e0;
  font-family: inherit;
  font-size: 0.92rem;
}
.auth-form input:focus { outline: none; border-color: var(--gold-bright); }

.remember-lbl {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  cursor: pointer;
}
.auth-error {
  color: #fca5a5;
  font-size: 0.82rem;
  min-height: 1.2em;
}

/* Transfer form */
.transfer-form { display: flex; flex-direction: column; gap: 8px; }
.transfer-form input {
  background: rgba(18, 10, 4, 0.82);
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 8px;
  padding: 8px 11px;
  color: #fff4df;
  font-family: inherit;
  font-size: 0.88rem;
}

/* Chat badges */
.chat-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 5px;
  background: rgba(234, 179, 8, 0.25);
  color: #fde047;
}
.chat-badge.admin { background: #eab308; color: #1f0e02; }

/* Admin Tab */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } }
.admin-users-card { grid-column: 1 / -1; }
.admin-card { border-color: rgba(250, 204, 21, 0.55); }
.admin-section { margin-top: 12px; }
.admin-lbl { display: block; font-size: 0.82rem; color: #f3d79e; margin-bottom: 6px; font-weight: 700; }
.admin-rain-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.admin-cleanup-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.color-picker { width: 42px; height: 36px; border: 1px solid var(--gold); border-radius: 6px; background: transparent; cursor: pointer; }

.admin-users-wrap { overflow-x: auto; margin-top: 10px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(217, 164, 65, 0.2);
}
.admin-table th { color: var(--gold-bright); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; }
.admin-actions-cell { display: flex; flex-wrap: wrap; gap: 5px; }
.adm-mini {
  background: rgba(24, 13, 6, 0.85);
  color: #f3e2c3;
  border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.adm-mini:hover { border-color: #fde047; background: rgba(88, 48, 18, 0.9); }
.adm-mini.danger { border-color: rgba(248, 113, 113, 0.5); color: #fecaca; }
.status-pill { font-size: 0.72rem; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.status-pill.admin { background: #eab308; color: #1f0e02; }
.status-pill.user { background: rgba(74, 222, 128, 0.2); color: #86efac; }
.status-pill.muted { background: rgba(251, 146, 60, 0.25); color: #fdba74; }
.status-pill.banned { background: rgba(239, 68, 68, 0.3); color: #fca5a5; }

/* ================= V5.0 UPGRADES: MAINTENANCE, SVGS, CUSTOM INPUTS, LOBBY, WHEEL, PROFILE ================= */
.svg-ico {
  width: 19px;
  height: 19px;
  vertical-align: -4px;
  flex-shrink: 0;
}

/* Maintenance Fullscreen Parchment Gate */
.maint-screen {
  position: fixed;
  inset: 0;
  z-index: 1350;
  background: radial-gradient(circle at 50% 35%, rgba(45, 25, 11, 0.96), rgba(14, 7, 3, 0.99));
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}
.maint-parchment {
  max-width: 620px;
  width: 100%;
  background: linear-gradient(160deg, var(--paper-light) 0%, var(--paper-mid) 65%, #cfa866 100%);
  color: var(--ink);
  border: 6px double var(--ink);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.85), inset 0 0 40px rgba(105, 62, 20, 0.4);
}
.maint-kicker { font-size: 0.78rem; font-weight: 900; letter-spacing: 2px; color: var(--crimson); margin-bottom: 6px; }
.maint-title { font-family: "Ruslan Display", "Playfair Display", serif; font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.12; margin-bottom: 12px; }
.maint-msg { font-size: 0.98rem; line-height: 1.48; margin-bottom: 16px; color: #3b220e; }
.maint-timer-box {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: rgba(43, 24, 10, 0.12); border: 2px solid var(--ink);
  border-radius: 10px; padding: 10px 22px; margin-bottom: 16px;
}
.maint-timer-box strong { font-family: "Rye", serif; font-size: 1.65rem; color: var(--crimson); }
.maint-features { text-align: left; background: rgba(255, 250, 235, 0.45); border: 1px solid rgba(43,24,10,0.3); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.mf-head { font-weight: 900; font-size: 0.8rem; letter-spacing: 1.4px; margin-bottom: 8px; color: var(--ink-soft); }
.maint-features ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.maint-footer { display: flex; justify-content: center; }

.admin-maint-bar {
  background: linear-gradient(90deg, #7f1d1d, #92400e);
  border-bottom: 2px solid #fde047;
  color: #fef9c3;
  padding: 8px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.86rem;
}
.adm-bar-link {
  background: #fde047; color: #1f0e02; text-decoration: none;
  font-weight: 900; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem;
}

/* Custom Dark-Gold Range Slider & Checkbox */
.western-range {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b210e, #6b3d18);
  border: 1px solid var(--gold);
  outline: none;
}
.western-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fef08a, #ca8a04);
  border: 2px solid #291405;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.western-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #eab308; border: 2px solid #291405; cursor: pointer;
}

.western-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  cursor: pointer;
  user-select: none;
}
.western-check input { display: none; }
.wc-box {
  width: 20px; height: 20px; border-radius: 5px;
  background: #1a0d05; border: 2px solid var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
  color: transparent; font-weight: 900; font-size: 0.82rem;
  transition: background 0.14s, color 0.14s;
}
.western-check input:checked + .wc-box {
  background: linear-gradient(180deg, #eab308, #a16207);
  color: #1f0e02;
}
.western-check input:checked + .wc-box::after { content: "✓"; }

.dark-num-input, .dark-select {
  background: rgba(16, 9, 4, 0.9);
  border: 1px solid rgba(217, 164, 65, 0.48);
  color: #fef08a;
  border-radius: 8px;
  padding: 8px 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  width: 110px;
}

/* Header Profile Trigger & Live Feed */
.avatar-cycle { position: relative; }
.lvl-mini {
  position: absolute; bottom: -4px; right: -4px;
  background: #eab308; color: #1f0e02; font-size: 0.65rem; font-weight: 900;
  padding: 1px 5px; border-radius: 999px; border: 1px solid #291405;
}
.profile-trigger-btn {
  background: rgba(24, 13, 6, 0.88);
  border: 1px solid rgba(217, 164, 65, 0.42);
  color: #fff4da;
  border-radius: 9px;
  padding: 6px 11px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-trigger-btn:hover { border-color: var(--gold-bright); }
.admin-link-btn { text-decoration: none; display: inline-flex; align-items: center; }

.live-feed-bar {
  margin-top: 10px;
  background: rgba(20, 11, 5, 0.82);
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 0.8rem;
}
.lf-label { color: #fde047; font-weight: 900; flex-shrink: 0; }
.lf-items { display: inline-flex; gap: 14px; color: #e8d3ab; }
.lf-pill { background: rgba(255,255,255,0.05); padding: 2px 9px; border-radius: 999px; }

/* Multiplayer Lobby Room Switcher Cards */
.mp-lobby-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.mp-room-card {
  background: linear-gradient(180deg, rgba(52, 30, 14, 0.9), rgba(26, 14, 6, 0.95));
  border: 2px solid rgba(217, 164, 65, 0.32);
  border-radius: 12px;
  padding: 12px 13px;
  text-align: left;
  color: #f3dfc1;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.14s, border-color 0.15s, box-shadow 0.15s;
}
.mp-room-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.mp-room-card.active {
  background: linear-gradient(180deg, #1b633a, #0e3820);
  border-color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.22);
}
.mpr-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.mpr-ico { font-size: 1.45rem; }
.mpr-live { font-size: 0.72rem; font-weight: 900; background: rgba(0,0,0,0.4); color: #fde047; padding: 2px 8px; border-radius: 999px; }
.mpr-title { font-weight: 900; font-size: 0.96rem; color: #fff8e6; }
.mpr-sub { font-size: 0.75rem; color: #cbb58b; margin-top: 2px; }

.mp-room-view { display: none; }
.mp-room-view.active { display: block; animation: fadeIn 0.18s ease; }

/* Multiplayer Blackjack 5-Seat Table */
.bj-tables-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.mp-felt { min-height: auto; padding: 18px 16px; }
.mp-seats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.mp-seat-card {
  background: rgba(0, 0, 0, 0.35);
  border: 2px dashed rgba(253, 224, 71, 0.32);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.mp-seat-card.occupied { border-style: solid; border-color: rgba(253, 224, 71, 0.5); background: rgba(8, 32, 18, 0.72); }
.mp-seat-card.active-turn { border-color: #fde047; box-shadow: 0 0 18px rgba(250, 204, 21, 0.55); }
.mini-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 6px 0; }
.mini-card {
  width: 38px; height: 54px; border-radius: 5px;
  background: #fffdf7; color: #1c1917; border: 1px solid #291405;
  font-size: 0.76rem; font-weight: 900; display: grid; place-items: center; line-height: 1.05;
}
.mini-card.red { color: #b91c1c; }
.mini-card.back { background: #7f1d1d; color: #fde047; border-color: #fde047; }
.seat-gifts { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.gift-mini {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(253,224,71,0.3);
  border-radius: 6px; padding: 2px 5px; font-size: 0.74rem; cursor: pointer;
}
.gift-mini:hover { background: rgba(253,224,71,0.28); }

.mp-bj-actionbar {
  background: rgba(0,0,0,0.34); border-radius: 11px; padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.mp-bj-turn-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 580px) { .mp-bj-turn-btns { grid-template-columns: repeat(2, 1fr); } }

.table-chat-strip { margin-top: 12px; background: rgba(0,0,0,0.28); border-radius: 10px; padding: 10px; }
.tc-messages { max-height: 92px; overflow-y: auto; font-size: 0.8rem; margin-bottom: 7px; display: flex; flex-direction: column; gap: 3px; }

/* Crash Train Stage */
.crash-history { display: flex; flex-wrap: wrap; gap: 5px; }
.ch-pill { font-size: 0.74rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #cbd5e1; }
.ch-pill.high { background: rgba(22, 163, 74, 0.3); color: #86efac; border: 1px solid rgba(74,222,128,0.4); }
.ch-pill.bust { background: rgba(185, 28, 28, 0.35); color: #fca5a5; }
.crash-stage {
  position: relative; background: #140b05; border: 2px solid rgba(217, 164, 65, 0.45);
  border-radius: 12px; overflow: hidden; margin: 10px 0;
}
#crash-canvas { width: 100%; height: 240px; display: block; }
.crash-overlay-mult {
  position: absolute; top: 36%; left: 50%; transform: translate(-50%, -50%);
  font-family: "Rye", serif; font-size: clamp(2.2rem, 6vw, 3.6rem); color: #fde047;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85); pointer-events: none;
}
.crash-overlay-sub {
  position: absolute; top: 62%; left: 50%; transform: translate(-50%, -50%);
  font-size: 0.92rem; font-weight: 700; color: #f5deb3; pointer-events: none;
}
.crash-controls-row { display: flex; gap: 10px; align-items: center; }
.passengers-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.pass-chip {
  background: rgba(20, 11, 5, 0.8); border: 1px solid rgba(217,164,65,0.3);
  border-radius: 8px; padding: 5px 10px; font-size: 0.8rem;
}
.pass-chip.won { border-color: #4ade80; color: #86efac; }

/* Challenges */
.duel-create-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.challenges-list { display: flex; flex-direction: column; gap: 8px; }
.ch-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  background: rgba(18, 10, 4, 0.82); border: 1px solid rgba(217, 164, 65, 0.35);
  border-radius: 10px; padding: 10px 12px;
}

/* Wheel of Fortune */
.wheel-wrap { position: relative; width: 230px; height: 230px; margin: 14px auto; }
.wheel-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  color: #ef4444; font-size: 1.6rem; z-index: 5; filter: drop-shadow(0 2px 4px #000);
}
.wheel-disc {
  width: 100%; height: 100%; border-radius: 50%;
  border: 6px solid #d9a441;
  background: conic-gradient(
    #7f1d1d 0deg 51.4deg, #92400e 51.4deg 102.8deg, #166534 102.8deg 154.2deg,
    #1e3a8a 154.2deg 205.7deg, #6b21a8 205.7deg 257.1deg, #b45309 257.1deg 308.5deg, #ca8a04 308.5deg 360deg
  );
  position: relative;
  box-shadow: 0 12px 30px rgba(0,0,0,0.65), inset 0 0 20px rgba(0,0,0,0.4);
  transition: transform 3.4s cubic-bezier(0.14, 0.88, 0.22, 1);
  display: grid; place-items: center;
}
.wheel-disc span { display: none; }
.wheel-disc::after {
  content: "★"; width: 46px; height: 46px; border-radius: 50%;
  background: #fde047; color: #291405; display: grid; place-items: center;
  font-size: 1.4rem; border: 3px solid #78350f;
}

/* Player Profile Modal */
.prof-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar-big-btn {
  width: 64px; height: 64px; border-radius: 50%; font-size: 2.1rem;
  background: rgba(20,10,4,0.9); border: 3px solid var(--gold); cursor: pointer;
}
.xp-bar-wrap { width: 100%; height: 10px; background: #160b04; border-radius: 999px; border: 1px solid rgba(217,164,65,0.4); overflow: hidden; margin: 6px 0 4px; }
.xp-bar-fill { height: 100%; background: linear-gradient(90deg, #eab308, #f97316); transition: width 0.3s ease; }
.prof-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 14px; }
.prof-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 560px) { .prof-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.ps-box { background: rgba(18,9,4,0.78); border: 1px solid rgba(217,164,65,0.3); border-radius: 9px; padding: 10px; text-align: center; }
.ps-box span { display: block; font-size: 0.74rem; color: #cbb082; }
.ps-box strong { font-family: "Rye", serif; font-size: 1.15rem; color: #fde047; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 8px; }
.ach-card { background: rgba(18,9,4,0.75); border: 1px solid rgba(217,164,65,0.25); border-radius: 9px; padding: 9px; opacity: 0.45; }
.ach-card.unlocked { opacity: 1; border-color: #fde047; background: rgba(133, 77, 14, 0.25); }
