/* ===== CASH GAMES LOBBY REDESIGN ===== */

/* Hide legacy elements replaced by the redesign */
.GamesLobbyLlamaDiv,
#LobbyGameSelectHeader {
  display: none !important;
}

/* Selection Card */
.selection-card {
  background: #e8e8e8;
  border-radius: 18px;
  padding: 28px 32px 24px;
  max-width: 1160px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* ---- STEP 1 ---- */
.step-1 {
  padding-bottom: 6px;
}

.game-btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* ---- 3-D button base ---- */
.game-btn,
.mode-btn,
.sport-btn,
.stake-btn,
.start-btn,
.tutorial-btn {
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
  -webkit-tap-highlight-color: transparent;
}

/* Game buttons */
.game-btn {
  background: #1a1a1a;
  color: #fff;
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 13px 22px;
  border-radius: 8px;
  box-shadow:
    0 5px 0 #000,
    0 7px 5px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.game-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
}

/* ---- Icon hover animations ---- */
@keyframes icon-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes icon-strike {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(22deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes icon-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  15% {
    transform: rotate(-14deg);
  }
  30% {
    transform: rotate(14deg);
  }
  45% {
    transform: rotate(-9deg);
  }
  60% {
    transform: rotate(9deg);
  }
  75% {
    transform: rotate(-4deg);
  }
  90% {
    transform: rotate(4deg);
  }
}

@keyframes icon-fan {
  0% {
    transform: rotate(0deg);
  }
  18% {
    transform: rotate(-20deg) scale(1.1);
  }
  42% {
    transform: rotate(20deg) scale(1.1);
  }
  65% {
    transform: rotate(-12deg);
  }
  82% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes icon-cell-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.6);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes icon-coin-jump {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.icon-grid rect {
  transform-box: fill-box;
  transform-origin: center;
}

.icon-coins g {
  fill: #1a1a1a;
  transform-box: fill-box;
  transform-origin: center;
}

.icon-coins g path {
  fill: none;
}
.icon-coins rect {
  stroke: none;
}

.game-btn:hover:not(.locked):not(.active) .icon-coins g {
  fill: #c1272d;
}
.game-btn.active .icon-coins g {
  fill: #d4af37;
}

/* Simple icon animations */
.game-btn:hover .icon-refresh {
  animation: icon-spin 0.5s ease-in-out;
}
.game-btn:hover .icon-gavel {
  animation: icon-strike 0.45s ease-in-out;
}
.game-btn:hover .icon-clock {
  animation: icon-shake 0.55s ease-in-out;
}
.game-btn:hover .icon-cards {
  animation: icon-fan 0.55s ease-in-out;
}

/* 9-card grid: staggered zoom per square */
.game-btn:hover .icon-grid rect:nth-child(1) {
  animation: icon-cell-pop 0.3s ease-in-out 0s both;
}
.game-btn:hover .icon-grid rect:nth-child(2) {
  animation: icon-cell-pop 0.3s ease-in-out 0.05s both;
}
.game-btn:hover .icon-grid rect:nth-child(3) {
  animation: icon-cell-pop 0.3s ease-in-out 0.1s both;
}
.game-btn:hover .icon-grid rect:nth-child(4) {
  animation: icon-cell-pop 0.3s ease-in-out 0.15s both;
}
.game-btn:hover .icon-grid rect:nth-child(5) {
  animation: icon-cell-pop 0.3s ease-in-out 0.2s both;
}
.game-btn:hover .icon-grid rect:nth-child(6) {
  animation: icon-cell-pop 0.3s ease-in-out 0.25s both;
}
.game-btn:hover .icon-grid rect:nth-child(7) {
  animation: icon-cell-pop 0.3s ease-in-out 0.3s both;
}
.game-btn:hover .icon-grid rect:nth-child(8) {
  animation: icon-cell-pop 0.3s ease-in-out 0.35s both;
}
.game-btn:hover .icon-grid rect:nth-child(9) {
  animation: icon-cell-pop 0.3s ease-in-out 0.4s both;
}

/* Greed coins: staggered jump */
.game-btn:hover .icon-coins .c1 {
  animation: icon-coin-jump 0.45s ease-out 0s both;
}
.game-btn:hover .icon-coins .c2 {
  animation: icon-coin-jump 0.45s ease-out 0.12s both;
}
.game-btn:hover .icon-coins .c3 {
  animation: icon-coin-jump 0.45s ease-out 0.24s both;
}

.game-btn:hover:not(.locked):not(.active) {
  background: #c1272d;
  color: #fff;
  transform: translateY(2px);
  box-shadow:
    0 3px 0 #7a0000,
    0 5px 5px rgba(0, 0, 0, 0.35);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.08s,
    box-shadow 0.12s;
}

.game-btn.active {
  background: #d4af37;
  color: #1a1a1a;
  transform: translateY(5px);
  box-shadow:
    0 3px 0 #9a7c1e,
    0 5px 5px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(212, 175, 55, 0.55);
  outline: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.08s,
    box-shadow 0.12s;
}

/* ---- STEP 2 ---- */
.step-2 {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.col-separator {
  width: 1px;
  background: #c8c8c8;
  align-self: stretch;
  flex-shrink: 0;
  margin: 0 16px;
}

.col-label {
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #777;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
  display: block;
}

/* Mode column */
.col-mode {
  flex: 1 1 110px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  padding: 0 4px;
  min-width: 90px;
}

.mode-btn {
  background: #2d8a4e;
  color: #fff;
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 11px 14px;
  border-radius: 7px;
  box-shadow:
    0 4px 0 #1a5e34,
    0 6px 4px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  text-align: center;
}

.mode-btn:hover:not(.locked):not(.active) {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #1a5e34,
    0 4px 4px rgba(0, 0, 0, 0.25);
}

.mode-btn.active {
  background: #1a5e34;
  transform: translateY(4px);
  box-shadow: none;
  outline: 2px solid #d4a017;
  outline-offset: 1px;
}

/* Sport column */
.col-sport {
  flex: 2 1 180px;
  padding: 0 4px;
}

.sport-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.sport-btn {
  background: #fff;
  color: #444;
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 4px 6px;
  border-radius: 8px;
  box-shadow:
    0 4px 0 #aaa,
    0 5px 5px rgba(0, 0, 0, 0.18);
  text-align: center;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.sport-btn .sport-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.sport-btn:hover:not(.locked):not(.active) {
  background: #f5f5f5;
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #aaa,
    0 3px 5px rgba(0, 0, 0, 0.18);
}

.sport-btn.active {
  background: #c8f0c8;
  transform: translateY(4px);
  box-shadow: none;
  outline: 2px solid #2d8a4e;
  outline-offset: 1px;
}

/* Stake column */
.col-stake {
  flex: 2 1 180px;
  padding: 0 4px;
}

.stake-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.col-stake.practice-hidden {
  opacity: 0.3;
  pointer-events: none;
}

.stake-btn {
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #222;
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 13px;
  padding: 6px 4px;
  width: 68px;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: none;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* $2 — cyan chip */
.stake-btn.chip-cyan-low,
.stake-btn[data-buyin="2"],
.stake-btn[data-buyin="2B"] {
  background-image: url("/img/Chips/Poker_Chip_CYAN.svg");
}

/* $5 — yellow chip */
.stake-btn.chip-yellow,
.stake-btn[data-buyin="5"],
.stake-btn[data-buyin="5B"] {
  background-image: url("/img/Chips/Poker_Chip_YELLOW.svg");
}

/* $10 — green chip */
.stake-btn.chip-green,
.stake-btn[data-buyin="10"],
.stake-btn[data-buyin="10B"] {
  background-image: url("/img/Chips/Poker_Chip_GREEN.svg");
}

/* $25 — blue chip */
.stake-btn.chip-blue,
.stake-btn[data-buyin="25"] {
  background-image: url("/img/Chips/Poker_Chip_BLUE.svg");
}

/* $50 — red chip */
.stake-btn.chip-red,
.stake-btn[data-buyin="50"] {
  background-image: url("/img/Chips/Poker_Chip_RED.svg");
}

/* $100 — black chip */
.stake-btn.chip-black,
.stake-btn[data-buyin="100"] {
  background-image: url("/img/Chips/Poker_Chip_BLACK.svg");
}

/* $200 / $500 — purple chip (premium tier) */
.stake-btn.chip-purple,
.stake-btn[data-buyin="200"],
.stake-btn[data-buyin="500"] {
  background-image: url("/img/Chips/Poker_Chip_PURPLE.svg");
}

.stake-btn .stake-beg {
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 7px;
  letter-spacing: 1.5px;
  color: #555;
  text-transform: uppercase;
  line-height: 1;
  display: block;
  margin-bottom: 1px;
}

.stake-btn .player-count {
  font-size: 9px;
  color: inherit;
  opacity: 0.8;
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: 0;
}

.stake-btn:hover:not(.locked):not(.active) {
  transform: translateY(2px);
  filter: brightness(1.08);
}

.stake-btn.active {
  transform: translateY(4px);
  outline: 3px solid #d4a017;
  outline-offset: 2px;
  filter: brightness(0.92);
  border-radius: 8%;
}

/* Actions column */
.col-actions {
  flex: 1 1 110px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 0 4px;
  min-width: 90px;
}

@keyframes start-glow {
  0%, 100% { box-shadow: 0 6px 0 #8a1800, 0 8px 6px rgba(0,0,0,0.35), 0 0 14px rgba(232,108,44,0.55); }
  50%       { box-shadow: 0 6px 0 #8a1800, 0 8px 6px rgba(0,0,0,0.35), 0 0 30px rgba(232,108,44,0.92); }
}

/* START button */
.start-btn {
  background: linear-gradient(160deg, #e86c2c, #d03015);
  color: #fff !important;
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 17px;
  letter-spacing: 2px;
  padding: 15px 12px;
  border-radius: 8px;
  text-align: center;
  display: block;
  box-shadow:
    0 6px 0 #8a1800,
    0 8px 6px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(232, 108, 44, 0.55);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  animation: start-glow 1.8s ease-in-out infinite;
}

.start-btn:hover:not(.locked) {
  transform: translateY(2px);
  box-shadow:
    0 4px 0 #8a1800,
    0 6px 6px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(232, 108, 44, 0.8);
  color: #fff !important;
  text-decoration: none;
}

.start-btn:active:not(.locked) {
  transform: translateY(6px);
  box-shadow: none;
  animation: none;
}

.start-btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}

.start-btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spoker-spin 0.7s linear infinite;
}

/* Tutorial button */
.tutorial-btn {
  background: #7a1a1a;
  color: #fff !important;
  font-family: "Oswald", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 11px 12px;
  border-radius: 8px;
  text-align: center;
  display: block;
  box-shadow:
    0 4px 0 #450000,
    0 6px 4px rgba(0, 0, 0, 0.28);
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.tutorial-btn:hover:not(.locked) {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #450000,
    0 4px 4px rgba(0, 0, 0, 0.28);
  color: #fff !important;
  text-decoration: none;
}

/* Private game row */
.private-game-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.private-label {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ---- LOCKED STATE ---- */
.locked {
  pointer-events: none !important;
  opacity: 0.38;
  transform: translateY(3px) !important;
  box-shadow: none !important;
  filter: grayscale(30%);
  cursor: default !important;
}

/* Info links below selection card */
.lobby-info-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.info-links-left,
.info-links-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.info-link-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 9px 22px;
  border-radius: 50px;
  font-family: "Oswald", sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none !important;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.info-link-pill:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.info-link-pill:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Kill old gold-glow animations from style.css on these pills */
.lobby-info-links .info-link-pill:hover,
.lobby-info-links .PayoutInfoLink:hover {
  animation: none !important;
}

/* Rules pill in lobby-info-links */
#rulesBtn.locked {
  opacity: 0.38;
  pointer-events: none;
}

/* Content / info area */
.lobby-content-area {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 8px;
  padding: 14px 20px;
  max-width: 960px;
  margin: 12px auto 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobby-content-area #contentText {
  color: #c8c8c8;
  text-align: center;
  font-size: 15px;
  margin: 0;
}

/* Unified block outer wrapper */
.unified-lobby-block {
  display: block !important;

  padding-bottom: 36px;
}

/* ---- RULES MODAL (Glassmorphism) ---- */
.rules-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rules-modal-box {
  background: rgba(40, 40, 40, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0;
  max-width: 1160px;
  width: 96%;
  height: 88vh;
  max-height: 88vh;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

.rules-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  z-index: 10;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.rules-modal-close::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}
.rules-modal-close:hover {
  background: rgba(193, 39, 45, 0.75);
  border-color: transparent;
}
.rules-modal-close:hover::after {
  color: #fff;
}

/* Modal content fills box so rm-inner can use height: 100% */
#rulesModalContent {
  height: 100%;
}

/* Two-column inner layout */
.rm-inner {
  display: flex;
  height: 100%;
  width: 100%;
}

.rm-left {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.rm-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.rm-right {
  width: 370px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 28px;
  background: rgba(0, 0, 0, 0.18);
}

/* Tab bar */
.rm-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.rm-tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 15px;
  border-radius: 50px;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.rm-tab:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.rm-tab.active {
  background: rgba(193, 39, 45, 0.85);
  border-color: rgba(193, 39, 45, 0.5);
  color: #fff;
  box-shadow: 0 2px 12px rgba(193, 39, 45, 0.4);
}

/* Content panels */
.rm-panels {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.rm-panels::-webkit-scrollbar {
  width: 5px;
}
.rm-panels::-webkit-scrollbar-track {
  background: transparent;
}
.rm-panels::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.rm-panel {
  display: none;
}
.rm-panel.active {
  display: block;
}

/* Override style.css black text rules inside modal panels */
.rm-panel h4 {
  color: #c1272d !important;
  font-family: "Oswald", sans-serif !important;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.rm-panel ol,
.rm-panel ul {
  color: #fff;
  padding-left: 20px;
  line-height: 1.8;
  margin: 0 0 8px;
}
.rm-panel ol li,
.rm-panel ul li,
.rm-panel .rules-list li,
.rm-panel .rules-list ol li {
  color: #fff !important;
  font-size: 14px !important;
  margin-bottom: 14px;
  line-height: 1.7;
}
.rm-panel .rules-list p {
  color: #fff !important;
  font-size: 14px;
}
.rm-panel strong {
  color: #fff;
  font-weight: 600;
}
.rm-panel img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 10px 0;
}

/* Tables inside rules panels — override style.css blue/gray colors */
.rm-panel table,
.rm-panel .rules-list table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 6px;
  font-size: 13px;
  color: #fff;
}
.rm-panel table caption,
.rm-panel .rules-list table caption {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  margin-bottom: 6px;
  text-align: left;
  font-style: italic;
}
.rm-panel table .TableTitle,
.rm-panel .rules-list table .TableTitle {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-family: "Oswald", sans-serif;
  letter-spacing: 1px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.rm-panel table th,
.rm-panel .rules-list th {
  background: rgba(193, 39, 45, 0.35) !important;
  color: #fff !important;
  padding: 9px 14px;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  text-align: left;
}
.rm-panel table td,
.rm-panel .rules-list td {
  color: #fff !important;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  font-size: 13px;
}
.rm-panel table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.04);
}
/* inline color style overrides (e.g. data color="blue" cells) */
.rm-panel table td[style*="color"] {
  color: #7ec8f7 !important;
}

/* Hide the Back To Top / Close Rules navigation tables */
.rm-panel .rules-list > table:last-child,
.rm-panel .rules-list > div > table:last-child {
  display: none;
}

/* Sport PPG average buttons inside rules panels */
.rm-panel .bidngo-sport-list,
.rm-panel .rules-list .bidngo-sport-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  list-style: none !important;
  padding: 10px 0 6px !important;
  margin: 6px 0 2px !important;
  text-align: left !important;
}

.rm-panel .bidngo-sport-list li,
.rm-panel .rules-list .bidngo-sport-list li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
}

.rm-panel .bidngo-sport-list a.btn,
.rm-panel .rules-list .bidngo-sport-list a.btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 100px !important;
  color: #fff !important;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 18px !important;
  text-decoration: none !important;
  transition:
    background 0.18s,
    border-color 0.18s,
    color 0.18s;
  line-height: 1.4;
  box-shadow: none !important;
}

.rm-panel .bidngo-sport-list a.btn:hover,
.rm-panel .rules-list .bidngo-sport-list a.btn:hover {
  background: rgba(193, 39, 45, 0.55) !important;
  border-color: #c1272d !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Compact multi-column tables (e.g. Breakdown of Cost) on mobile */
@media (max-width: 600px) {
  .rm-panel table th,
  .rm-panel .rules-list th {
    padding: 5px 4px;
    font-size: 10px;
  }
  .rm-panel table td,
  .rm-panel .rules-list td {
    padding: 5px 4px;
    font-size: 11px !important;
  }
}

/* Merged section (e.g. Tiebreaker inside Scoring, Practice inside Format) */
.rm-merge-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.rm-merge-heading {
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}

/* Video panel (right side) */
.rm-video-label {
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-align: center;
}
.rm-video-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rm-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ---- PAYOUTS & NAMEPLATES MODAL ---- */
.payout-modal-box {
  background: rgba(40, 40, 40, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 56px 52px;
  max-width: 940px;
  width: 92%;
  position: relative;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 0 0 0.5px rgba(255, 255, 255, 0.06);
}

.payout-modal-inner {
  display: flex;
  align-items: stretch;
}

.payout-col {
  flex: 1;
  min-width: 0;
  padding: 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.payout-col:first-child {
  padding-left: 0;
}
.payout-col:last-child {
  padding-right: 0;
}

.payout-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.payout-col-heading {
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  text-align: center;
  white-space: nowrap;
}

.payout-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.payout-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 20px;
  white-space: nowrap;
}
.payout-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.payout-place {
  font-family: "Oswald", sans-serif;
  font-size: 19px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  min-width: 90px;
}

.payout-note {
  color: rgba(255, 255, 255, 0.32);
  font-size: 17px;
  font-style: italic;
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.nameplate-green {
  color: #28a745 !important;
  font-weight: 600;
}
.nameplate-blue {
  color: #6fa8dc !important;
  font-weight: 600;
}
.nameplate-black {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

/* No game selected */
.rules-no-game {
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 48px 24px;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
  .selection-card {
    padding: 18px 14px 16px;
    border-radius: 14px;
  }

  /* banner narrows to leave 8px + avatar(40px) + 8px gap on each side */
  .TournamentHeaderContainer {
    left: 56px !important;
    right: 56px !important;
    z-index: 8;
  }

  #MainTournamentSpokerTitle {
    max-height: 40px !important;
  }

  /* tour button aligns with page side padding, same top as bare avatar */
  #lobbyTourBtn {
    top: 60px;
    right: 8px;
  }

  /* reduce Bootstrap container side padding from 15px to 8px */
  .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
  }
  .row [class*="col-"] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .main_content {
    padding-top: 8px !important;
  }

  .step-2 {
    flex-direction: column;
    gap: 16px;
    min-height: auto;
  }

  .col-separator {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .col-mode,
  .col-sport,
  .col-stake,
  .col-actions {
    width: 100%;
    flex: none;
    padding: 0;
  }

  .col-mode {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* force label above the horizontal mode buttons */
  .col-mode .col-label {
    width: 100%;
    margin-bottom: 4px;
  }

  .mode-btn {
    flex: 1 1 80px;
  }

  .sport-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stake-grid-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .stake-btn {
    width: 62px;
    height: 62px;
    font-size: 14px;
  }

  .stake-btn .stake-beg {
    font-size: 9px;
  }

  .stake-btn .player-count {
    font-size: 11px;
  }

  .col-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .start-btn,
  .tutorial-btn {
    flex: 1 1 120px;
  }

  /* private toggle always on its own full-width row */
  .col-actions .private-game-row {
    width: 100%;
    order: 3;
    justify-content: center;
  }

  .page-title-text {
    font-size: 18px;
    letter-spacing: 3px;
    padding: 8px 28px;
  }

  /* 2-column grid — all 6 games always visible */
  .game-btn-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    justify-content: unset;
    margin-bottom: 14px;
  }

  .game-btn {
    font-size: 12px;
    padding: 11px 12px;
    white-space: normal;
    line-height: 1.2;
    word-break: normal;
  }

  .game-btn svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
  }

  /* Action label above Start / Tutorial */
  .col-actions .col-label {
    width: 100%;
  }

  /* info pills center on narrow screens */
  .lobby-info-links {
    justify-content: center;
  }
}

/* ---- Extra-small phones (≤ 480px) ---- */
@media (max-width: 480px) {
  .selection-card {
    padding: 14px 10px 12px;
    border-radius: 12px;
  }

  #MainTournamentSpokerTitle {
    max-height: 72px !important;
  }

  .main_content {
    padding-top: 8px !important;
  }

  /* drop to 3-column chips when space is tight */
  .stake-grid-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .stake-btn {
    width: 82px;
    height: 82px;
    font-size: 13px;
  }
}

/* ---- Modal stacking (≤ 640px) ---- */
@media (max-width: 640px) {
  /* Rules modal — stack left panel above video panel */
  .rules-modal-box {
    width: 98%;
    height: 92vh;
    max-height: 92vh;
  }

  .rm-inner {
    flex-direction: column;
  }

  .rm-left {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .rm-divider {
    width: 100%;
    height: 1px;
    flex-shrink: 0;
  }

  .rm-right {
    width: 100%;
    flex-shrink: 0;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .rm-video-wrap {
    max-height: 160px;
  }

  /* Payout modal — stack the two columns */
  .payout-modal-box {
    padding: 48px 24px 32px;
    width: 96%;
  }

  .payout-modal-inner {
    flex-direction: column;
    gap: 20px;
  }

  .payout-divider {
    width: 100%;
    height: 1px;
  }

  .payout-col {
    padding: 0;
  }
}

/* ===== BASICS SECTION WIDTH ===== */
.basics-glass-section {
  max-width: 1160px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ===== HEADER / TITLE AREA ===== */

/* Fixed below the nav bar, horizontally centered, does not scroll */
.TournamentHeaderContainer {
  position: absolute !important;
  top: 68px;
  left: 0 !important;
  right: 0 !important;
  float: none !important; /* clear Bootstrap col float */
  width: fit-content !important;
  margin: 0 auto !important;
  z-index: 8;
  padding: 10px 28px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Push content below the fixed header */
.main_content {
  padding-top: 160px !important;
}

.main_content:has(#NewToSpokerContainer) {
  padding-top: 112px !important;
}

/* NewToSpoker button: main.css uses margin-top:150px for pages without the
   fixed header; on the lobby the 120px padding-top already handles the offset */
#NewToSpokerDiv {
  margin-top: 24px !important;
}

/* Make the slant fill the (now narrowed) container and add rounded bottom corners */
#TournamentBackgroundSlant,
#FreeToPlayBackgroundSlant {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  left: 0 !important;
  right: 0 !important;
  border-radius: 0 0 14px 14px;
  background: black;
  clip-path: none !important;
}

/* Match MyGamesTitle image height — restored to original */
#MainTournamentSpokerTitle {
  max-height: 135px !important;
  min-width: auto !important;
  height: auto;
  width: auto;
  position: relative;
  z-index: 1;
}

/* ===== STEP HEADINGS ===== */
.step-heading {
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #555;
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0.55;
}

/* Step 2 divider label: lines on both sides of the text */
.step-divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 18px;
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  color: #555;
  text-transform: uppercase;
  opacity: 0.55;
}

.step-divider-label::before,
.step-divider-label::after {
  content: "";
  flex: 1;
  border-top: 2px solid #c8c8c8;
}

/* ---- Step indicator states ---- */
@keyframes step-text-pulse {
  0% {
    opacity: 1;
    color: #c1272d;
  }
  90% {
    opacity: 0.1;
    color: #c1272d;
  }
  100% {
    opacity: 1;
    color: #c1272d;
  }
}

@keyframes col-label-pulse {
  0% {
    opacity: 1;
  }
  90% {
    opacity: 0.1;
  }
  100% {
    opacity: 1;
  }
}

.step-heading.step-pending,
.step-divider-label.step-pending {
  opacity: 1;
  color: #c1272d;
  animation: step-text-pulse 1.2s linear infinite;
}

.step-heading.step-complete,
.step-divider-label.step-complete {
  opacity: 1;
  color: #2d8a4e;
  animation: none;
}

.col-label.col-pending {
  color: #c1272d;
  animation: col-label-pulse 1.2s linear infinite;
}
.col-label.col-complete {
  color: #2d8a4e;
  animation: none;
}

/* ══════════════════════════════════════
   Dark / Light Mode — GamesLobby
   ──────────────────────────────────────
   Dark = default (no .light-mode on <html>).
   The current base styles in this file are the
   LIGHT-MODE defaults (selection-card #e8e8e8,
   sport-btn #fff, etc.).  The blocks below flip
   those for dark mode, matching the MyGames palette.
══════════════════════════════════════ */

/* ── Body: transparent in both modes so green scrolling bg always shows ── */
html:not(.light-mode) body,
html.light-mode body {
  background: transparent;
}

/* ── Game type buttons (black by default, invisible on dark card) ── */
html:not(.light-mode) .game-btn:not(.active) {
  background: #38384e;
  box-shadow:
    0 5px 0 #1a1a2e,
    0 7px 5px rgba(0, 0, 0, 0.35);
}

/* ── Selection card ── */
html:not(.light-mode) .selection-card {
  background: #1a1a26;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ── Column separator line ── */
html:not(.light-mode) .col-separator {
  background: #28283a;
}

/* ── Step / divider labels ── */
html:not(.light-mode) .col-label,
html:not(.light-mode) .step-heading,
html:not(.light-mode) .step-divider-label,
html:not(.light-mode) .step-num {
  color: #888;
}

html:not(.light-mode) .step-divider-label::before,
html:not(.light-mode) .step-divider-label::after {
  border-top-color: #28283a;
}

@keyframes step-text-pulse-dark {
  0% {
    opacity: 1;
    color: #e05555;
  }
  90% {
    opacity: 0.1;
    color: #e05555;
  }
  100% {
    opacity: 1;
    color: #e05555;
  }
}

html:not(.light-mode) .step-heading.step-pending,
html:not(.light-mode) .step-divider-label.step-pending {
  animation-name: step-text-pulse-dark;
  animation-duration: 1.2s;
  animation-timing-function: linear;
}
html:not(.light-mode) .step-heading.step-complete,
html:not(.light-mode) .step-divider-label.step-complete {
  color: #3daa60;
}
html:not(.light-mode) .col-label.col-pending {
  color: #e05555;
}
html:not(.light-mode) .col-label.col-complete {
  color: #3daa60;
}

/* ── Private game label ── */
html:not(.light-mode) .private-label {
  color: #888;
}

/* ── Sport buttons ── */
html:not(.light-mode) .sport-btn {
  background: #38384e;
  color: #d0d0e0;
  box-shadow:
    0 4px 0 #1a1a2e,
    0 5px 5px rgba(0, 0, 0, 0.35);
}

html:not(.light-mode) .sport-btn:hover:not(.locked):not(.active) {
  background: #44445e;
  box-shadow:
    0 2px 0 #1a1a2e,
    0 3px 5px rgba(0, 0, 0, 0.35);
}

html:not(.light-mode) .sport-btn.active {
  background: #1a2e1a;
  outline-color: #2d8a4e;
}

/* ── Lobby content / info area ── */
html:not(.light-mode) .lobby-content-area {
  background: rgba(0, 0, 0, 0.35);
}

/* ── Light-mode overrides for elements that default dark ── */
html.light-mode .lobby-content-area {
  background: rgba(0, 0, 0, 0.08);
}

html.light-mode .lobby-content-area #contentText {
  color: #444;
}

/* ===== LOBBY TOUR ===== */

#lobbyTour {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: none;
  pointer-events: none;
}

/* Full-screen click-catcher behind the spotlight */
#tourOverlay {
  position: fixed;
  inset: 0;
  z-index: 9901;
  background: transparent;
  pointer-events: all;
  cursor: default;
}

/* The moving spotlight ring — its box-shadow creates the dim backdrop */
#tourSpotlight {
  position: fixed;
  border-radius: 12px;
  z-index: 9902;
  pointer-events: none;
  background: transparent;
  outline: 2px solid rgba(255, 215, 0, 0.85);
  outline-offset: 3px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.52),
    0 0 28px rgba(255, 215, 0, 0.25);
  transition:
    top 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  opacity: 0;
}

/* Popover card */
#tourPopover {
  position: fixed;
  z-index: 9903;
  width: 460px;
  max-width: calc(100vw - 24px);
  background: rgba(28, 28, 28, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  padding: 18px 18px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  pointer-events: all;
  opacity: 0;
  transform: translateY(10px);
  transition:
    top 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.48s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease,
    transform 0.22s ease;
}

/* Close button */
#tourClose {
  position: absolute;
  top: 10px;
  right: 11px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.38);
  font-size: 1rem;
  cursor: pointer;
  padding: 3px 6px;
  line-height: 1;
  transition: color 0.15s;
  z-index: 1;
}
#tourClose:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Llama + text row */
#tourPopoverInner {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 12px;
}

#tourLlama {
  width: 64px;
  height: 100%;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
  transition: opacity 0.18s ease;
}

#tourPopoverContent {
  flex: 1;
  min-width: 0;
}

#tourTitle {
  font-family: "Oswald-Bold", "Oswald", sans-serif;
  font-size: 1.2rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #ffd700;
  margin: 0 26px 7px 0;
  white-space: nowrap;
}

#tourBody {
  font-family: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 1);
  margin: 0;
}

/* Nav row */
#tourNav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tour-nav-btn {
  font-family: "Oswald", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.08s,
    box-shadow 0.08s;
  white-space: nowrap;
  border: 1px solid transparent;
  color: #fff;
}
.tour-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

#tourPrev {
  background: rgba(193, 39, 45, 0.75);
  border-color: rgba(193, 39, 45, 0.5);
}
#tourPrev:hover:not(:disabled) {
  background: rgba(193, 39, 45, 1);
  border-color: rgba(193, 39, 45, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(193, 39, 45, 0.4);
}

#tourNext {
  background: rgba(45, 138, 78, 0.75);
  border-color: rgba(45, 138, 78, 0.5);
}
#tourNext:hover:not(:disabled) {
  background: rgba(45, 138, 78, 1);
  border-color: rgba(45, 138, 78, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(45, 138, 78, 0.4);
}

/* Step dots */
#tourDots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition:
    background 0.25s,
    transform 0.25s;
}
.tour-dot.active {
  background: #ffd700;
  transform: scale(1.3);
}

/* Prevent page scroll while tour is open */
body.tour-open {
  overflow: hidden;
}

/* Tablet */
@media (max-width: 768px) {
  #tourPopover {
    width: 360px;
  }
  #tourLlama {
    width: 54px;
  }
  #tourBody {
    font-size: 0.95rem;
  }
}

/* Mobile: anchor popover to bottom of screen */
@media (max-width: 600px) {
  #tourPopover {
    position: fixed !important;
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    top: auto !important;
    width: auto !important;
    max-width: none;
    border-radius: 14px;
  }
  #tourLlama {
    width: 50px;
  }
  #tourTitle {
    font-size: 1.05rem;
  }
  #tourBody {
    font-size: 0.9rem;
  }
  .tour-nav-btn {
    font-size: 0.85rem;
    padding: 5px 11px;
  }
}

/* ===== LOBBY TOUR BUTTON ===== */
#lobbyTourBtn {
  position: absolute;
  top: 76px;
  right: 16px;
  z-index: 0;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0.65;
  transition:
    opacity 0.25s ease,
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  padding: 0;
}

#lobbyTourBtn:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.48);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.35);
}

#lobbyTourBtn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

/* Tooltip */
#lobbyTourBtn::after {
  content: "Take the Tour";
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.88);
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#lobbyTourBtn::before {
  content: "";
  position: absolute;
  right: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(18, 18, 18, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#lobbyTourBtn:hover::after,
#lobbyTourBtn:hover::before {
  opacity: 1;
}

@media (max-width: 1313px) {
  /* mobile nav is 60px — three items in a row: profile widget (left), banner (centre), tour btn (right) */
  .TournamentHeaderContainer {
    top: 60px;
    left: 74px !important;
    right: 68px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 8px 12px !important;
  }

  .main_content {
    padding-top: 82px !important;
  }

  .main_content:has(#NewToSpokerContainer) {
    padding-top: 52px !important;
  }

  /* logo scales down to match the height of the flanking elements */
  #MainTournamentSpokerTitle {
    max-width: 100%;
    max-height: 42px !important;
  }

  #lobbyTourBtn {
    top: 69px;
  }
  /* Tooltip above the button on narrow viewports where right edge is tight */
  #lobbyTourBtn::after {
    right: 0;
    top: auto;
    bottom: calc(100% + 10px);
    transform: none;
  }
  #lobbyTourBtn::before {
    right: 12px;
    top: auto;
    bottom: calc(100% + 3px);
    transform: none;
    border-left-color: transparent;
    border-top-color: rgba(18, 18, 18, 0.92);
  }
}
