.tournament-page { position: relative; overflow-x: hidden; }
.tournament-header {
  position: relative;
  min-height: 7.45rem;
}
.brand-link { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.header-brand {
  position: absolute;
  top: .7rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.header-menu {
  position: absolute;
  top: 3.65rem;
  left: 50%;
  transform: translateX(-50%);
}
.header-wallet {
  position: absolute;
  top: .82rem;
  right: .75rem;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-menu-button {
  min-width: 5.55rem;
  height: 2.3rem;
  padding: 0 .9rem;
  justify-content: center;
  gap: .52rem;
  border-radius: 999px;
  border-color: rgb(201 182 255 / .38);
  background: rgb(20 24 51 / .9);
  box-shadow: 0 8px 22px rgb(0 0 0 / .2);
}
.game-menu-button:hover { border-color: rgb(201 182 255 / .72); background: rgb(28 35 72 / .96); }
.hamburger-icon { width: 1rem; display: inline-grid; gap: 3px; }
.hamburger-icon i { display: block; height: 1.5px; border-radius: 999px; background: currentColor; }
.menu-button-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.tournament-content { padding-top: .15rem; }
.tournament-info-strip {
  width: fit-content;
  max-width: min(52rem, 100%);
  margin: 0 auto;
  padding: .55rem .85rem;
  border: 1px solid rgb(201 182 255 / .18);
  border-radius: 999px;
  background: rgb(20 24 51 / .5);
  color: var(--color-muted);
  font-size: .76rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .025);
}
.tournament-info-mode { color: var(--color-gold); font-weight: 600; letter-spacing: .04em; }
.tournament-info-divider { margin: 0 .35rem; color: rgb(201 182 255 / .45); }

/* Keep the original SolPoker table character, but make the tournament table a slimmer pill. */
.tournament-desktop-table.table-stage { height: 29rem; margin-top: 2.55rem; margin-bottom: 3.9rem; }
.tournament-desktop-table .table-plinth { width: 78%; aspect-ratio: 2.85; top: 51.5%; }
.tournament-desktop-table .table-rail { width: 82%; aspect-ratio: 2.85; top: 47.5%; padding: 1.05rem; box-shadow: inset 0 1px 0 #ffffff47, inset 0 -4px 10px #00000038, 0 14px 0 var(--rail-plinth); }
.tournament-desktop-table .table-center { top: 46.5%; transform: translate(-50%, -50%) scale(.94); gap: .42rem; }
.tournament-center-title { font-size: 2.8rem; line-height: 1; }
.tournament-desktop-table .seat { width: 8.8rem; }
.tournament-desktop-table .seat-1 { top: 73%; left: 94%; }
.tournament-desktop-table .seat-2 { top: 20%; left: 93%; }
.tournament-desktop-table .seat-3 { top: 1%; left: 50%; }
.tournament-desktop-table .seat-4 { top: 20%; left: 7%; }
.tournament-desktop-table .seat-5 { top: 73%; left: 6%; }
.tournament-desktop-table .seat-you { width: 13rem; top: 96%; left: 50%; }
.tournament-controls { min-height: 10rem; margin-top: 0; }
.server-status-box { border: 1px solid var(--color-line); border-radius: 1rem; background: var(--color-raised); padding: .72rem .8rem; text-align: left; }
.server-pill { display: inline-flex; align-items: center; gap: .38rem; min-height: 1.55rem; border-radius: 999px; border: 1px solid var(--color-line); padding: 0 .55rem; color: var(--color-muted); font-size: .67rem; }
.online-dot { width: .46rem; height: .46rem; border-radius: 999px; background: #32d583; box-shadow: 0 0 0 0 rgb(50 213 131 / .5); }
.server-pill.is-online { color: #b8ffd7; border-color: rgb(50 213 131 / .32); background: rgb(50 213 131 / .06); }
.server-pill.is-online .online-dot { animation: online-pulse 1.55s ease-out infinite; }
@keyframes online-pulse { 0% { box-shadow: 0 0 0 0 rgb(50 213 131 / .52); opacity: 1; } 70% { box-shadow: 0 0 0 6px rgb(50 213 131 / 0); opacity: .88; } 100% { box-shadow: 0 0 0 0 rgb(50 213 131 / 0); opacity: 1; } }
.status-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 999px; margin-right: .4rem; background: currentColor; }
.tournament-seat-open { opacity: .78; }
.tournament-seat-you .seat-name { color: var(--color-gold); text-shadow: 0 0 12px rgb(201 182 255 / .7), 0 1px 2px rgb(0 0 0 / .8); }
.seat-status { min-height: 1rem; }
.seat-open-chip { width: 2rem; height: 2rem; margin: .28rem auto 0; border-radius: 999px; border: 1px dashed rgb(201 182 255 / .48); display: grid; place-items: center; color: var(--color-faint); font-size: .95rem; background: rgb(9 13 28 / .36); }
.actions-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }

.overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: start center; padding: 5.5rem .75rem 1rem; background: rgb(0 0 0 / .58); backdrop-filter: blur(3px); }
.overlay-panel { width: min(23rem, 100%); border: 1px solid var(--color-line); border-radius: 1.2rem; background: #141833; padding: 1rem; box-shadow: 0 28px 80px rgb(0 0 0 / .52); }
.hidden-overlay { display: none !important; }
.wallet-options { display: grid; gap: .55rem; margin-top: .8rem; }
.leaders-panel { width: min(29rem, 100%); }
.leaders-list { margin-top: .8rem; display: grid; gap: .45rem; max-height: 60vh; overflow: auto; padding-right: .75rem; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #8b6bb6 #191a30; }
.leaders-list::-webkit-scrollbar { width: 8px; }
.leaders-list::-webkit-scrollbar-track { background: #191a30; border-radius: 999px; margin: 4px 0; }
.leaders-list::-webkit-scrollbar-thumb { background: linear-gradient(#a98ad5, #735498); border: 2px solid #191a30; border-radius: 999px; }
.leaders-list::-webkit-scrollbar-thumb:hover { background: #bca0e0; }
.leaders-list::-webkit-scrollbar-button { display: none; }
.leader-row { display: grid; grid-template-columns: 2rem 1fr auto; gap: .6rem; align-items: center; border: 1px solid var(--color-line); border-radius: .85rem; background: rgb(9 13 28 / .38); padding: .6rem .7rem; }
.leader-rank { color: var(--color-gold); font-variant-numeric: tabular-nums; }
.leader-wallet { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.leader-balance { font-variant-numeric: tabular-nums; font-size: .82rem; }

/* The same centered hamburger/dropdown is used on desktop and mobile. */
.game-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6.55rem .75rem 1rem;
  background: transparent;
}
.game-menu-panel {
  width: min(22rem, calc(100vw - 1.5rem));
  border-radius: 1rem;
  padding: .7rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / .5), 0 0 0 1px rgb(201 182 255 / .08);
  transform-origin: top center;
  animation: game-menu-in .14s ease-out both;
}
.game-menu-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .2rem .2rem .45rem; }
.game-menu-heading-copy { min-width: 0; }
.game-menu-heading-title { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-gold); }
.game-menu-heading-subtitle { margin-top: .12rem; color: var(--color-muted); font-size: .72rem; }
.game-choice-list { display: grid; gap: .4rem; margin-top: .15rem; }
.game-choice { width: 100%; display: block; border: 1px solid var(--color-line); border-radius: .78rem; background: rgb(9 13 28 / .42); padding: .62rem .72rem; color: var(--color-fg); text-align: left; transition: border-color .14s ease, background .14s ease, transform .14s ease; }
.game-choice:hover { border-color: rgb(201 182 255 / .56); background: rgb(28 35 72 / .78); transform: translateY(-1px); }
.game-choice-active { border-color: rgb(201 182 255 / .72); background: linear-gradient(145deg, #1c2348, #25184e); box-shadow: inset 3px 0 0 rgb(201 182 255 / .72), 0 0 22px rgb(155 134 255 / .07); }
.game-choice-utility { margin-top: .4rem; }
.game-choice-kicker { display: block; color: var(--color-gold); font-size: .57rem; letter-spacing: .17em; }
.game-choice strong { display: block; margin-top: .12rem; font-size: .91rem; font-weight: 600; }
.game-choice small { display: block; margin-top: .12rem; color: var(--color-muted); font-size: .69rem; line-height: 1.32; }
@keyframes game-menu-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.tournament-mobile-table { display: none; }

@media (max-width: 1180px) {
  .tournament-desktop-table .table-rail { width: 78%; }
  .tournament-desktop-table .table-plinth { width: 74%; }
    .tournament-desktop-table .seat-1 { left: 92.3%; }
  .tournament-desktop-table .seat-2 { left: 91%; }
  .tournament-desktop-table .seat-4 { left: 9%; }
  .tournament-desktop-table .seat-5 { left: 7.7%; }
}

@media (max-width: 1023px) {
  .tournament-desktop-table { display: none !important; }
  .tournament-mobile-table { display: block; margin-top: 1.6rem; }
  .tournament-controls { margin-top: 1rem; }
  .tournament-info-strip { border-radius: 1rem; }
}

@media (max-width: 720px) {
  .tournament-header { min-height: 6.75rem; }
  .header-brand { top: .55rem; }
  .header-menu { top: 3.35rem; }
  .brand-link { gap: .35rem; }
  .brand-link p { font-size: 1.18rem; }
  .brand-link svg { width: 1.55rem; height: 1.55rem; }
  .game-menu-button { min-width: 5rem; height: 2.15rem; padding: 0 .75rem; }
  #walletButton { top: .58rem; right: .45rem; max-width: 7.25rem; padding-left: .6rem; padding-right: .6rem; font-size: .7rem; }
  .tournament-info-strip { width: 100%; padding: .5rem .65rem; font-size: .7rem; }
}

@media (max-width: 440px) {
  .header-brand { left: 46%; }
  .header-wallet { max-width: 6.5rem; }
  .tournament-info-divider { display: none; }
  .tournament-info-mode { display: block; margin-bottom: .18rem; }
  .overlay { padding-top: 4.7rem; }
  .game-menu-overlay { padding-top: 6rem; padding-right: .5rem; padding-left: .5rem; }
  .game-menu-panel { width: min(22rem, calc(100vw - 1rem)); }
}

/* Pass 6: cleaner wallet, two-line mode summary, cash-game + SOL lobby + table chat. */
.header-wallet {
  min-width: 8.4rem;
  max-width: 8.4rem;
  height: 1.9rem;
  padding: 0 .78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  border-radius: 999px;
}
.tournament-info-strip {
  width: min(48rem, 100%);
  display: grid;
  justify-items: center;
  gap: .16rem;
  border-radius: 1rem;
  padding: .58rem .9rem .62rem;
  line-height: 1.25;
}
.tournament-info-mode {
  display: block;
  font-size: .73rem;
}
.tournament-info-details {
  display: block;
  color: var(--color-muted);
  font-size: .72rem;
}
.game-menu-heading { justify-content: flex-start; }

.sol-lobby-panel { width: min(34rem, 100%); }
.sol-lobby-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sol-lobby-close { flex: 0 0 auto; min-height: 2rem; padding: 0 .75rem; }
.sol-rate-text { margin-top: .7rem; color: var(--color-gold); font-size: .75rem; }
.sol-buyin-list { display: grid; gap: .6rem; margin-top: .75rem; }
.sol-buyin-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .9fr;
  gap: .22rem .75rem;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: .95rem;
  background: rgb(9 13 28 / .45);
  padding: .78rem .85rem;
  color: var(--color-fg);
  text-align: left;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.sol-buyin-card:hover { transform: translateY(-1px); border-color: rgb(201 182 255 / .58); background: rgb(28 35 72 / .72); }
.sol-buyin-card-active { border-color: rgb(201 182 255 / .72); box-shadow: inset 3px 0 0 rgb(201 182 255 / .75); }
.sol-buyin-main { display: grid; gap: .08rem; }
.sol-buyin-main strong { color: var(--color-gold); font-size: 1.05rem; }
.sol-buyin-main small { color: var(--color-muted); font-size: .7rem; }
.sol-buyin-pool { justify-self: end; color: var(--color-muted); font-size: .75rem; }
.sol-buyin-pool strong { color: var(--color-fg); }
.sol-buyin-payouts { grid-column: 1 / -1; color: var(--color-fg); font-size: .76rem; }
.sol-buyin-waiting { grid-column: 1 / -1; color: var(--color-faint); font-size: .68rem; }
.sol-lobby-note { margin-top: .8rem; color: var(--color-muted); font-size: .72rem; line-height: 1.45; }

.chat-launch {
  position: fixed;
  z-index: 48;
  right: 1rem;
  bottom: 1rem;
  min-width: 5.1rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border: 1px solid rgb(201 182 255 / .35);
  border-radius: 999px;
  background: rgb(20 24 51 / .94);
  color: var(--color-fg);
  box-shadow: 0 12px 34px rgb(0 0 0 / .35);
  font-size: .78rem;
  font-weight: 600;
}
.chat-launch:hover { border-color: rgb(201 182 255 / .7); background: rgb(28 35 72 / .98); }
.chat-badge {
  min-width: 1.1rem;
  height: 1.1rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-gold);
  color: #090d1c;
  font-size: .62rem;
  font-weight: 700;
}
.chat-panel {
  position: fixed;
  z-index: 70;
  right: 1rem;
  bottom: 1rem;
  width: min(23rem, calc(100vw - 2rem));
  max-height: min(38rem, calc(100vh - 2rem));
  display: grid;
  grid-template-rows: auto minmax(10rem, 1fr) auto auto auto auto;
  border: 1px solid rgb(201 182 255 / .24);
  border-radius: 1.2rem;
  background: rgb(14 18 39 / .985);
  box-shadow: 0 28px 80px rgb(0 0 0 / .52);
  overflow: hidden;
}
.chat-panel-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem .9rem .7rem; border-bottom: 1px solid var(--color-line); }
.chat-panel-title { font-family: var(--font-display); font-size: 1.18rem; }
.chat-panel-subtitle { margin-top: .1rem; color: var(--color-muted); font-size: .68rem; }
.chat-close { min-height: 1.85rem; padding: 0 .65rem; font-size: .68rem; }
.chat-messages { min-height: 12rem; max-height: 23rem; overflow-y: auto; padding: .72rem; display: grid; align-content: start; gap: .58rem; }
.chat-empty { align-self: center; justify-self: center; color: var(--color-faint); font-size: .76rem; }
.chat-message { max-width: 88%; justify-self: start; }
.chat-message-mine { justify-self: end; }
.chat-message-meta { display: flex; justify-content: space-between; gap: .7rem; margin: 0 .2rem .16rem; color: var(--color-faint); font-size: .61rem; }
.chat-message-meta strong { color: var(--color-muted); font-weight: 500; }
.chat-message-body { border: 1px solid var(--color-line); border-radius: .85rem .85rem .85rem .25rem; background: rgb(28 35 72 / .68); padding: .5rem .62rem; color: var(--color-fg); font-size: .78rem; line-height: 1.38; overflow-wrap: anywhere; }
.chat-message-mine .chat-message-body { border-radius: .85rem .85rem .25rem .85rem; background: linear-gradient(135deg, rgb(109 82 184 / .72), rgb(74 50 143 / .78)); }
.quick-reactions { display: flex; gap: .35rem; overflow-x: auto; padding: .45rem .65rem; border-top: 1px solid var(--color-line); scrollbar-width: none; }
.quick-reactions::-webkit-scrollbar { display: none; }
.quick-reactions button { flex: 0 0 auto; min-height: 1.8rem; border: 1px solid var(--color-line); border-radius: 999px; background: rgb(9 13 28 / .45); padding: 0 .58rem; color: var(--color-muted); font-size: .65rem; }
.quick-reactions button:hover:not(:disabled) { color: var(--color-fg); border-color: rgb(201 182 255 / .5); }
.quick-reactions button:disabled { opacity: .4; cursor: default; }
.emoji-picker { display: grid; grid-template-columns: repeat(10, 1fr); gap: .12rem; padding: .48rem .6rem; border-top: 1px solid var(--color-line); background: rgb(9 13 28 / .35); }
.emoji-picker button { height: 2rem; border-radius: .5rem; font-size: 1rem; }
.emoji-picker button:hover { background: rgb(201 182 255 / .11); }
.chat-compose { display: grid; grid-template-columns: 2.25rem 1fr auto; gap: .38rem; align-items: center; padding: .58rem .65rem; border-top: 1px solid var(--color-line); }
.chat-compose input { min-width: 0; height: 2.2rem; border: 1px solid var(--color-line); border-radius: .72rem; background: rgb(9 13 28 / .55); padding: 0 .68rem; color: var(--color-fg); font-size: .76rem; outline: none; }
.chat-compose input:focus { border-color: rgb(201 182 255 / .62); box-shadow: 0 0 0 2px rgb(201 182 255 / .08); }
.chat-compose input:disabled { opacity: .5; }
.emoji-button, .chat-send { height: 2.2rem; border: 1px solid var(--color-line); border-radius: .72rem; background: rgb(28 35 72 / .7); color: var(--color-fg); }
.emoji-button { font-size: 1rem; }
.chat-send { padding: 0 .72rem; font-size: .7rem; font-weight: 600; }
.emoji-button:disabled, .chat-send:disabled { opacity: .4; cursor: default; }
.chat-hint { padding: 0 .7rem .65rem; color: var(--color-faint); font-size: .62rem; text-align: center; }

@media (max-width: 720px) {
  .header-wallet { min-width: 7rem; max-width: 7rem; height: 1.8rem; padding: 0 .45rem; font-size: .67rem; }
  .tournament-info-strip { padding: .52rem .65rem .56rem; }
  .tournament-info-details { font-size: .67rem; }
  .chat-launch { right: .65rem; bottom: .65rem; }
  .chat-panel {
    right: .5rem;
    left: .5rem;
    bottom: .5rem;
    width: auto;
    max-height: 78vh;
    border-radius: 1.1rem;
  }
  .emoji-picker { grid-template-columns: repeat(8, 1fr); }
  .sol-buyin-card { grid-template-columns: 1fr; }
  .sol-buyin-pool { justify-self: start; }
  .sol-buyin-payouts, .sol-buyin-waiting { grid-column: 1; }
}

@media (max-width: 440px) {
  .header-wallet { min-width: 6.4rem; max-width: 6.4rem; }
  .tournament-info-mode { font-size: .68rem; }
  .tournament-info-details { font-size: .63rem; line-height: 1.35; }
  .emoji-picker { grid-template-columns: repeat(6, 1fr); }
}

/* Pass 7: seat-targeted public reactions. */
.seat-reactable { cursor: pointer; }
.seat-reactable .seat-name { transition: color .14s ease, text-shadow .14s ease; }
.seat-reactable:hover .seat-name,
.seat-reactable:focus-visible .seat-name {
  color: #fff;
  text-shadow: 0 0 12px rgb(201 182 255 / .72), 0 1px 2px rgb(0 0 0 / .85);
}
.seat-reactable:focus-visible { outline: none; }
.mobile-seat { position: relative; min-height: 3.1rem; border-radius: .75rem; padding-top: .35rem; padding-bottom: .35rem; }
.mobile-seat.seat-reactable:active { background: rgb(201 182 255 / .07); }

.seat-reaction-menu {
  position: fixed;
  z-index: 95;
  width: 14.25rem;
  border: 1px solid rgb(201 182 255 / .28);
  border-radius: .95rem;
  background: rgb(14 18 39 / .985);
  padding: .55rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / .5), 0 0 0 1px rgb(201 182 255 / .06);
  backdrop-filter: blur(8px);
  animation: seat-reaction-menu-in .12s ease-out both;
}
.seat-reaction-title {
  margin: 0 .15rem .42rem;
  color: var(--color-gold);
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seat-reaction-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: .32rem; }
.seat-reaction-choice {
  min-width: 0;
  height: 3.15rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .08rem;
  border: 1px solid var(--color-line);
  border-radius: .72rem;
  background: rgb(28 35 72 / .58);
  color: var(--color-fg);
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.seat-reaction-choice:hover,
.seat-reaction-choice:focus-visible {
  border-color: rgb(201 182 255 / .62);
  background: rgb(43 49 94 / .92);
  transform: translateY(-1px);
  outline: none;
}
.seat-reaction-choice span { font-size: 1.18rem; line-height: 1; }
.seat-reaction-choice small {
  max-width: 100%;
  color: var(--color-muted);
  font-size: .53rem;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@keyframes seat-reaction-menu-in {
  from { opacity: 0; transform: translateY(5px) scale(.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.seat-reaction-burst {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: -5.6rem;
  min-width: 11.4rem;
  max-width: 16rem;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .68rem;
  align-items: center;
  border: 1px solid rgb(201 182 255 / .38);
  border-radius: .78rem;
  background: rgb(14 18 39 / .96);
  padding: .76rem 1rem;
  text-align: left;
  text-shadow: none;
  box-shadow: 0 10px 26px rgb(0 0 0 / .4), 0 0 20px rgb(201 182 255 / .08);
  pointer-events: none;
  animation: seat-reaction-pop 2.6s ease both;
}
.seat-reaction-emoji {
  grid-row: 1 / 3;
  font-size: 3.1rem;
  line-height: 1;
  animation: seat-reaction-emoji .46s cubic-bezier(.2,.9,.35,1.35) both;
}
.seat-reaction-label { color: #fff; font-size: 1.32rem; font-weight: 650; line-height: 1.05; white-space: nowrap; }
.seat-reaction-burst small { color: #d5cbea; font-size: 1rem; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes seat-reaction-pop {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.86); }
  10%, 78% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -8px) scale(.96); }
}
@keyframes seat-reaction-emoji {
  0% { transform: scale(.55) rotate(-10deg); }
  72% { transform: scale(1.18) rotate(4deg); }
  100% { transform: scale(1) rotate(0); }
}

@media (max-width: 1023px) {
  .mobile-seat .seat-reaction-burst {
    top: -2.15rem;
    min-width: 5rem;
    max-width: 7rem;
    padding: .32rem .4rem;
  }
}

@media (max-width: 440px) {
  .seat-reaction-menu { width: min(13.5rem, calc(100vw - 1rem)); padding: .48rem; }
  .seat-reaction-choice { height: 2.95rem; }
  .seat-reaction-choice small { font-size: .49rem; }
}

/* Pass 8: match the original dynamic stake conversion presentation. */
.tournament-center-title .small-dollar,
.tournament-mobile-table .small-dollar {
  display: inline-block;
  margin-right: .08em;
  font-size: .38em;
  font-weight: 400;
  vertical-align: .45em;
  opacity: .82;
}
.tournament-center-title .stake-slash,
.tournament-mobile-table .stake-slash { opacity: .9; }

/* Pass 9: shared navigation with the main SolPoker page. */
.game-stake-switcher {
  margin-top: .4rem;
  border: 1px solid var(--color-line);
  border-radius: .78rem;
  background: rgb(9 13 28 / .32);
  padding: .58rem .62rem .62rem;
}
.game-stake-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .38rem;
  margin-top: .35rem;
}
.game-stake-button {
  display: grid;
  justify-items: center;
  gap: .12rem;
  border: 1px solid var(--color-line);
  border-radius: .65rem;
  background: rgb(20 24 51 / .72);
  padding: .46rem .28rem;
  color: var(--color-fg);
  text-align: center;
}
.game-stake-button:hover { border-color: rgb(201 182 255 / .6); background: rgb(28 35 72 / .82); }
.game-stake-button strong { font-size: .72rem; font-weight: 600; }
.game-stake-button small { font-size: .58rem; color: var(--color-muted); }
.rules-panel { width: min(38rem, 100%); }
.rules-kicker { color: var(--color-gold); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; }
.rules-title { margin-top: .15rem; font-family: var(--font-display); font-size: 1.45rem; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .75rem; }
.rules-grid article { border: 1px solid var(--color-line); border-radius: .8rem; background: rgb(9 13 28 / .38); padding: .68rem .72rem; }
.rules-grid strong { font-size: .83rem; }
.rules-grid p { margin-top: .22rem; color: var(--color-muted); font-size: .7rem; line-height: 1.35; }
.rules-note { margin-top: .65rem; color: var(--color-faint); font-size: .65rem; text-align: center; }
@media (max-width: 520px) {
  .rules-grid { grid-template-columns: 1fr; }
}


/* Pass 10: match the main-page speaker control on both multiplayer modes. */
.server-sound-button {
  position: absolute !important;
  top: .82rem !important;
  right: 9.45rem !important;
  width: 1.9rem !important;
  min-width: 1.9rem !important;
  max-width: 1.9rem !important;
  height: 1.9rem !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  font-size: .82rem !important;
  line-height: 1 !important;
}
@media (max-width: 720px) {
  .server-sound-button {
    top: .58rem !important;
    right: 8.1rem !important;
  }
}
@media (max-width: 440px) {
  .server-sound-button {
    right: 7.15rem !important;
    width: 1.75rem !important;
    min-width: 1.75rem !important;
    max-width: 1.75rem !important;
    height: 1.75rem !important;
  }
}

/* Play-money lobby: edit these rules to customize the entry experience. */
.cash-lobby { margin:1rem auto 1.25rem; padding:1.5rem; border:1px solid var(--color-line); border-radius:1.3rem; background:linear-gradient(135deg,rgba(38,28,66,.85),rgba(12,17,35,.94)); }
.lobby-heading {display:flex;justify-content:space-between;align-items:center;gap:1.5rem;}
.lobby-eyebrow {font-size:.65rem;letter-spacing:.2em;color:var(--color-gold);margin-bottom:.5rem;}
.lobby-heading h1 {font-family:var(--font-display);font-size:clamp(1.6rem,3.5vw,2.3rem);line-height:1.2;}
.lobby-heading p:not(.lobby-eyebrow) {color:var(--color-muted);font-size:.85rem;margin-top:.45rem;}
.lobby-heading .btn-quiet {white-space:nowrap;padding:.65rem .9rem;}
.lobby-modes {display:flex;gap:.5rem;margin:1.2rem 0;}
.lobby-modes button {border:1px solid var(--color-line);border-radius:.8rem;padding:.65rem 1rem;text-align:left;color:var(--color-fg);background:rgba(9,13,28,.5);}
.lobby-modes small {display:block;font-size:.68rem;color:var(--color-muted);margin-top:.2rem;}
.lobby-modes .game-choice-active {border-color:var(--color-gold);background:rgba(136,104,210,.16);}
.cash-stake-cards {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;}
.cash-stake-cards[hidden] {display:none;}
.cash-stake-cards button {display:grid;gap:.45rem;padding:1rem;text-align:left;border:1px solid var(--color-line);border-radius:.9rem;background:rgba(9,13,28,.55);color:var(--color-fg);transition:border-color .15s,background .15s;}
.cash-stake-cards button[aria-pressed=true] {border-color:var(--color-gold);background:rgba(130,95,205,.18);box-shadow:inset 0 3px var(--color-gold);}
.cash-stake-cards button:hover {border-color:var(--color-gold);}
.cash-stake-cards button:disabled {cursor:default;}
.stake-card-top {display:flex;justify-content:space-between;gap:.5rem;align-items:center;}
.cash-stake-cards strong {font-size:1.4rem;font-weight:500;}
.cash-stake-cards small,.cash-stake-cards button>span:not(.stake-card-top) {font-size:.7rem;color:var(--color-muted);}
.lobby-bottom {display:flex;justify-content:space-between;gap:1rem;margin-top:1rem;font-size:.7rem;color:var(--color-muted);}
#lobbyBalance {color:var(--color-gold);}
#buyInControls {text-align:left;margin-bottom:1rem;}
#buyInControls label {display:flex;justify-content:space-between;font-size:.85rem;}
#buyInControls input {width:100%;margin:.65rem 0;accent-color:var(--color-gold);}
#buyInControls p {font-size:.68rem;color:var(--color-muted);}
.cash-lobby button:focus-visible {outline:2px solid var(--color-gold);outline-offset:3px;}
@media(max-width:640px) {.cash-lobby{padding:1rem;}.lobby-heading{align-items:flex-start;flex-direction:column;gap:.7rem;}.cash-stake-cards{grid-template-columns:1fr;}.cash-stake-cards button{grid-template-columns:1fr auto;gap:.3rem .5rem;}.stake-card-top{grid-column:1/-1;}.cash-stake-cards strong{font-size:1.2rem;}.lobby-bottom{flex-direction:column;gap:.4rem;}.lobby-modes button{flex:1;padding:.6rem;}}

/* A gentle unread-message signal, cleared when the chat opens. */
.chat-activity-dot {display:none;width:.5rem;height:.5rem;border-radius:50%;background:#77e6ae;flex:0 0 auto;}
.chat-launch.has-unread-chat {border-color:rgb(119 230 174 / .65);}
.has-unread-chat .chat-activity-dot {display:inline-block;box-shadow:0 0 5px rgb(119 230 174 / .65);animation:chat-unread-pulse 2.6s ease-in-out infinite;}
@keyframes chat-unread-pulse {0%,100%{opacity:.65;box-shadow:0 0 4px rgb(119 230 174 / .45);}50%{opacity:1;box-shadow:0 0 10px rgb(119 230 174 / .85),0 0 0 4px rgb(119 230 174 / .12);}}
@media(prefers-reduced-motion:reduce){.has-unread-chat .chat-activity-dot{animation:none;opacity:1;box-shadow:0 0 5px rgb(119 230 174 / .65);}}

/* Bold, playful lobby wordmark; the rest of the interface keeps Outfit. */
.lobby-heading h1 {font-family:"Trebuchet MS", "Arial Black", sans-serif;font-size:clamp(2.6rem,5.2vw,4.2rem);font-weight:900;font-style:italic;letter-spacing:-.065em;line-height:1.08;color:#aa78dc;background:none;-webkit-text-fill-color:currentColor;text-shadow:none;padding-right:.12em;}
.lobby-domain-suffix {font-size:.8em;font-weight:800;letter-spacing:-.045em;display:inline-block;color:var(--color-fg);background:none;-webkit-text-fill-color:currentColor;text-shadow:none;}
.lobby-heading #lobbyDescription {font-size:clamp(.85rem,1.6vw,1rem);font-weight:400;letter-spacing:.01em;margin-top:.45rem;}

@media(max-width:440px){.lobby-heading h1{font-size:clamp(2.15rem,10.6vw,2.8rem);letter-spacing:-.06em;}}

.sol-dashboard-rate {display:flex;flex-wrap:wrap;align-items:baseline;gap:.3rem .8rem;margin:0 0 .85rem;color:var(--color-fg);font-size:.85rem;}
.sol-dashboard-rate[hidden]{display:none;}
.sol-dashboard-rate strong{font-weight:500;}
.sol-dashboard-rate small{color:var(--color-muted);font-size:.7rem;}
/* Keep both lobby dashboards centered and compact without shrinking labels. */
.cash-lobby {max-width:60rem;padding:1.15rem 1.25rem;}
.cash-lobby .lobby-heading h1 {font-size:clamp(2.15rem,4.5vw,3.3rem);}
.cash-lobby .lobby-eyebrow {margin-bottom:.35rem;}
.cash-lobby .lobby-modes {margin:.85rem 0;}
.cash-lobby .lobby-modes button {padding:.55rem .9rem;}
.cash-lobby .cash-stake-cards button {padding:.8rem .9rem;gap:.3rem;}
.cash-lobby .lobby-bottom {margin-top:.75rem;}
.cash-lobby .sol-dashboard-rate {margin-bottom:.65rem;}
@media(max-width:640px){
  .cash-lobby {padding:1rem;}
  .cash-lobby .lobby-heading h1 {font-size:clamp(2.15rem,10.6vw,2.8rem);}
  .cash-lobby .lobby-modes button {padding:.6rem;}
}

/* Founder footer follows the UnderdogPump layout in the poker palette. */
.poker-footer {border-top:1px solid var(--color-line);background:#101023;color:var(--color-fg);margin-top:2rem;}
.poker-footer-story,.poker-footer-meta,.poker-footer-disclaimer {max-width:64rem;margin:0 auto;padding-left:1rem;padding-right:1rem;}
.poker-footer-story {display:grid;grid-template-columns:1.2fr 1fr;gap:1.5rem;padding-top:2.5rem;padding-bottom:2.5rem;}
.poker-footer-story>div::after {content:"";display:block;clear:both;}
.poker-founder-photo {float:left;width:96px;height:96px;margin:0 1rem .5rem 0;border:2px solid #cfb6ff;border-radius:50%;overflow:hidden;}
.poker-founder-photo img {width:100%;height:100%;object-fit:cover;object-position:center 18%;}
.poker-footer-label {font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#cfb6ff;}
.poker-footer h2 {font-family:var(--font-display);font-size:2.25rem;line-height:1;letter-spacing:.025em;margin-top:.25rem;}
.poker-footer a {color:inherit;text-decoration:none;}
.poker-footer h2 span,.poker-footer-copy a {color:#cfb6ff;}
.poker-footer a:hover {color:#dfccff;}
.poker-footer a:focus-visible {outline:2px solid #cfb6ff;outline-offset:4px;}
.poker-footer-copy {font-size:.875rem;line-height:1.65;color:var(--color-muted);margin-top:.75rem;}
.poker-footer-story aside {border-left:1px solid var(--color-line);padding-left:1.5rem;}
.poker-footer-story aside .poker-footer-copy {margin-top:.25rem;}
.poker-footer-meta {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding-bottom:2rem;}
.poker-footer-meta>div {border:1px solid var(--color-line);background:#090b19;border-radius:.5rem;padding:.75rem 1rem;}
.poker-footer-meta .poker-footer-label {font-size:.65rem;}
.poker-footer-meta>div>p:last-child {font-family:monospace;font-size:.875rem;margin-top:.25rem;overflow-wrap:anywhere;}
.poker-footer-disclaimer {font-size:.75rem;line-height:1.65;color:var(--color-muted);padding-bottom:2.5rem;}
@media(max-width:767px){.poker-footer-story {grid-template-columns:1fr;}.poker-footer-story aside {border-left:0;border-top:1px solid var(--color-line);padding-left:0;padding-top:1.5rem;}}
@media(max-width:639px){.poker-founder-photo {width:80px;height:80px;}.poker-footer-meta {grid-template-columns:1fr;}.poker-footer h2 {font-size:2rem;}}


/* Match the founder heading to the dashboard wordmark. */
.poker-footer h2 {font-family:"Trebuchet MS","Arial Black",sans-serif;font-weight:900;font-style:italic;letter-spacing:-.065em;line-height:1.08;padding-right:.12em;}
.poker-footer h2 a {display:inline-block;}

.poker-footer {margin-top:0;} .tournament-content {padding-bottom:1rem;}
.site-topbar {background:#101023;border-bottom:1px solid var(--color-line);color:var(--color-fg);}
.site-topbar-inner {max-width:80rem;margin:auto;padding:1rem 1.25rem;display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap;}
.site-wordmark {font-family:"Trebuchet MS","Arial Black",sans-serif;font-weight:900;font-style:italic;font-size:2rem;letter-spacing:-.065em;color:#aa78dc;text-decoration:none;white-space:nowrap;line-height:1.08;}
.site-wordmark span {color:var(--color-fg);font-size:.8em;}
.site-topbar nav,.site-topbar-tools {display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;}
.site-topbar-tools {margin-left:auto;}
.site-topbar nav a,.site-topbar button {font:inherit;font-size:.8rem;color:var(--color-muted);padding:.65rem .75rem;border-radius:.65rem;border:1px solid transparent;text-decoration:none;background:transparent;cursor:pointer;}
.site-topbar nav a[aria-current=page] {background:#2e2348;border-color:#aa8dd5;color:#f4f2ff;}
.site-topbar button {border-color:var(--color-line);color:var(--color-fg);background:#191a34;}
.site-topbar a:hover,.site-topbar button:hover {color:#dfccff;border-color:#aa8dd5;}
.site-topbar a:focus-visible,.site-topbar button:focus-visible {outline:2px solid #cfb6ff;outline-offset:3px;}
.legacy-site-header {min-height:0!important;height:0!important;padding:0!important;}
.legacy-site-header .header-brand,.legacy-site-header .modern-header-brand,.legacy-site-header .header-wallet,.legacy-site-header .modern-header-wallet,.legacy-site-header .header-sound-button,.legacy-site-header .game-menu-button {display:none!important;}
.legacy-site-header .header-menu,.legacy-site-header .modern-header-menu {top:0;}
.cash-lobby .lobby-heading,.cash-lobby .lobby-modes {display:none;}
.cash-lobby {margin-top:1rem;}
.bot-content {padding-top:1rem;}
@media(max-width:1100px){.site-topbar-inner{gap:.65rem;}.site-topbar-tools{gap:.3rem;}.site-topbar nav a,.site-topbar button{padding:.55rem .6rem;}}
@media(max-width:720px){.site-topbar-inner{padding:.8rem .75rem;}.site-wordmark{font-size:1.8rem;}.site-topbar nav{order:3;width:100%;}.site-topbar nav a{flex:1;text-align:center;}.site-topbar-tools{gap:.25rem;}.site-topbar .top-leaders{display:none;}.site-topbar .top-menu{padding:.55rem .4rem;}.site-topbar .top-account{max-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}

/* Center the menu icon and match the purple wordmark. */
.site-topbar-inner {position:relative;min-height:4.6rem;}
.site-topbar .top-menu {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;color:#aa78dc;background:transparent;border-color:transparent;}
.site-topbar .top-menu:hover {background:rgba(130,95,205,.14);border-color:rgba(201,182,255,.3);color:var(--color-fg);}
@media(min-width:1201px){.site-topbar nav {margin-right:3rem;}}
@media(max-width:1200px){.site-topbar nav {order:3;width:100%;justify-content:center;}.site-topbar .top-menu {top:2.1rem;}.site-topbar-inner{padding-top:.8rem;padding-bottom:.8rem;}}
@media(max-width:720px){.site-topbar .top-menu {top:2rem;}.site-topbar .top-account {max-width:7rem;}.site-topbar-tools {gap:.25rem;}}
@media(max-width:360px){.site-wordmark{font-size:1.55rem;}.site-topbar .top-account{max-width:6rem;padding:.55rem .35rem;}}

.sol-blind-schedule {display:none;font-size:.8rem;color:var(--color-fg);line-height:1.5;margin:0 0 .75rem;}.sol-tournament-mode .sol-blind-schedule {display:block;}.sol-blind-schedule small {font-size:.7rem;color:var(--color-muted);}.cash-lobby-seated .sol-blind-schedule {display:none;}
.poker-footer h2 span {color:#aa78dc;}
.poker-footer {background:#191225;}.poker-footer-meta>div {background:#110d1b;border-color:#413052;}
.poker-footer {background:#12111c;}.poker-footer-meta>div {background:#0d0c15;border-color:#332d43;}
.poker-footer {background:#101023;}
/* Target the original headers directly, including after React re-renders. */
.modern-header,.tournament-header {min-height:0!important;height:0!important;padding:0!important;}
.modern-header .modern-header-brand,.modern-header .modern-header-wallet,.modern-header .game-menu-button,.tournament-header .header-brand,.tournament-header .header-wallet,.tournament-header .header-sound-button,.tournament-header .game-menu-button {display:none!important;}
.modern-header .modern-header-menu,.tournament-header .header-menu {top:0!important;}

.poker-footer-meta>div {background:#20182f;border-color:#58416f;}
.poker-footer-meta>div {background:rgba(130,95,205,.18);border-color:var(--color-gold);}
.poker-footer-meta>div {background:rgba(130,95,205,.14);border-color:rgba(201,182,255,.3);}
.site-topbar nav a[aria-current=page],.site-topbar nav a:hover,.site-topbar button:hover {background:rgba(130,95,205,.14);border-color:rgba(201,182,255,.3);color:var(--color-fg);}

.site-topbar .site-topbar-tools button {background:transparent;border-color:transparent;color:var(--color-muted);}.site-topbar .site-topbar-tools button:hover {background:rgba(130,95,205,.14);border-color:rgba(201,182,255,.3);color:var(--color-fg);}.site-topbar .site-topbar-tools .top-menu {color:#aa78dc;}


/* Bring desktop account controls alongside the centered menu. */
@media(min-width:1201px){.site-topbar-tools{position:absolute;left:calc(50% + 3rem);top:50%;transform:translateY(-50%);margin-left:0;flex-wrap:nowrap;}}

/* Match the founder wordmark typography in the table chat heading. */
.chat-panel-title { font-family: "Trebuchet MS", "Arial Black", sans-serif; font-weight: 900; font-style: italic; letter-spacing: -.065em; line-height: 1.08; padding-right: .12em; color: #f4f2ff; }
.chat-panel-title span { color: #aa78dc; }

.poker-footer-disclaimer { text-align: center; }
.poker-footer-disclaimer > span { display: block; }

#leadersTitle { font-family: "Trebuchet MS", "Arial Black", sans-serif; font-weight: 900; font-style: italic; letter-spacing: -.065em; line-height: 1.08; padding-right: .12em; color: #f4f2ff; }
#leadersTitle span { color: #aa78dc; }

.sol-entry-confirmation h2{font-family:"Trebuchet MS","Arial Black",sans-serif;font-weight:900;font-style:italic;letter-spacing:-.065em;color:#f4f2ff}.sol-entry-confirmation h2 span{color:#aa78dc}
