:root {
  color-scheme: dark;
  --floral-white: #ECE5F0;
  --crimson-carrot: #F42C04;
  --diamond-blue: #2563eb;
  --diamond-blue-light: #38bdf8;
  --diamond-blue-dark: #1e3a8a;
  --diamond-blue-glow: rgba(56, 189, 248, 0.34);
  --diamond-gradient: linear-gradient(135deg, #38bdf8 0%, #2563eb 58%, #1d4ed8 100%);
  --baby-pink: #10b981;
  --carbon-black: #0e0e12;
  --graphite: #6247AA;
  --text-muted: rgba(236, 229, 240, 0.58);
  --line: rgba(236, 229, 240, 0.1);
  --line-strong: rgba(236, 229, 240, 0.18);
  --surface: #161820;
  --surface-raised: #1d2030;
  --carrot-dark: #a61e03;
  --pink-dark: #0d9668;
  --outline-blue: #252a3a;
  --outline-blue-dark: #10121c;
  --raised-shadow: 0 5px 0 rgba(0, 0, 0, 0.46);
  --raised-shadow-small: 0 5px 0 var(--outline-blue-dark);
  --pressed-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  --press-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

html {
  background: var(--carbon-black);
}

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
  background: var(--carbon-black);
  color: var(--floral-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.svg-icon {
  display: inline-block;
  flex: 0 0 auto;
  background: currentColor;
  mask: var(--icon-url) center / contain no-repeat;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
}

.app-shell {
  display: grid;
  grid-template-columns: clamp(210px, 18vw, 250px) minmax(0, 1fr) clamp(280px, 23vw, 320px);
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  background: var(--carbon-black);
  overflow: hidden;
  transition: grid-template-columns 240ms var(--press-ease), grid-template-rows 240ms var(--press-ease);
}

.app-shell.is-measuring-card-reflow {
  transition: none;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--carbon-black);
  padding: 10px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  --brand-glyph-top: 48.5%;
  --brand-glyph-rotation: -4deg;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(236, 229, 240, 0.18);
  border-radius: 16px;
  background: var(--diamond-gradient);
  box-shadow: inset 0 1px 0 rgba(236, 229, 240, 0.18), inset 0 -4px 0 var(--diamond-blue-dark), 0 2px 0 rgba(0, 0, 0, 0.42), 0 0 24px var(--diamond-blue-glow);
  transform: rotate(-10deg);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: var(--brand-glyph-top);
  left: 50%;
  z-index: 1;
  width: 31px;
  height: 31px;
  background: var(--floral-white);
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  transform: translate(-50%, -50%) rotate(var(--brand-glyph-rotation));
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: var(--brand-glyph-top);
  left: 50%;
  z-index: 5;
  width: 18px;
  height: 18px;
  background: var(--carbon-black);
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  transform: translate(-50%, -50%) rotate(var(--brand-glyph-rotation));
}

.brand-mark span {
  display: none;
}

.brand strong,
.brand small {
  display: block;
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.brand strong {
  font-size: 26px;
}

.brand small {
  color: var(--diamond-blue-light);
  font-size: 28px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}

.login-button,
.soft-button,
.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid var(--outline-blue);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 5px 0 var(--outline-blue-dark);
  color: var(--floral-white);
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 120ms var(--press-ease), box-shadow 120ms var(--press-ease), background 120ms var(--press-ease), border-color 120ms var(--press-ease);
  will-change: transform;
}

.icon-button {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
}

.button-icon,
.icon-button svg {
  width: 25px;
  height: 25px;
}

.icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.icon-button svg circle:not([r=".7"]) {
  fill: none;
}

.icon-button svg circle[r=".7"] {
  fill: currentColor;
  stroke: none;
}

.icon-button[aria-pressed="true"] {
  border-color: rgba(236, 229, 240, 0.14);
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark);
  color: var(--floral-white);
}

.login-button {
  min-width: 118px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark), 0 0 22px var(--diamond-blue-glow);
  text-transform: uppercase;
}

.login-button::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: var(--floral-white);
  mask: url('/static/icons/login-bracket-svgrepo-com.svg') center / contain no-repeat;
  -webkit-mask: url('/static/icons/login-bracket-svgrepo-com.svg') center / contain no-repeat;
}

.soft-button {
  padding: 0 18px;
}

.login-page {
  display: grid;
  height: 100vh;
  height: 100dvh;
  place-items: center;
  background: var(--carbon-black);
  padding: clamp(12px, 3vh, 28px) clamp(14px, 3vw, 32px);
  overflow: auto;
}

.login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 2.3vh, 24px);
  width: min(100%, 660px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--raised-shadow);
  padding: clamp(18px, 3vh, 24px) clamp(22px, 4vw, 34px) clamp(22px, 4vh, 32px);
}

.login-close {
  grid-column: 2;
  justify-self: end;
  color: rgba(236, 229, 240, 0.52);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.login-step-back {
  display: grid;
  grid-column: 1;
  justify-self: start;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(236, 229, 240, 0.56);
  cursor: pointer;
  font: inherit;
  font-size: 36px;
  font-weight: 850;
  line-height: 1;
}

.login-card::before {
  content: "";
  grid-column: 1;
}

.login-step-back,
.login-card::before,
.login-close {
  grid-row: 1;
}

.login-copy,
.login-flow {
  grid-column: 1 / 3;
}

.login-step-back:hover {
  color: var(--floral-white);
}

.login-step-back[hidden] {
  display: grid;
  visibility: hidden;
  pointer-events: none;
}

.login-close:hover {
  color: var(--floral-white);
}

.login-copy {
  display: grid;
  gap: clamp(12px, 2vh, 20px);
}

.login-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.login-copy p {
  margin: 0;
  color: rgba(236, 229, 240, 0.66);
  font-size: clamp(15px, 2.1vw, 18px);
  font-weight: 650;
  line-height: 1.35;
}

.login-copy a,
.login-check a {
  color: var(--baby-pink);
  font-weight: 750;
}

.login-flow,
.login-step {
  display: grid;
  gap: clamp(14px, 2.4vh, 20px);
  width: 100%;
}

.login-step[hidden] {
  display: none;
}

.login-step-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.45;
}

.login-field {
  display: grid;
  gap: 10px;
  color: var(--floral-white);
  font-size: 18px;
  font-weight: 850;
}

.login-field input,
.login-phrase {
  display: flex;
  align-items: center;
  min-height: 58px;
  width: 100%;
  border: 2px solid var(--outline-blue);
  border-radius: 12px;
  background: var(--surface);
  color: rgba(236, 229, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(236, 229, 240, 0.08);
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  padding: 0 18px;
}

.login-field input::placeholder {
  color: rgba(236, 229, 240, 0.38);
}

.login-phrase {
  justify-content: space-between;
  gap: 18px;
  color: rgba(236, 229, 240, 0.56);
  box-shadow: none;
}

.login-phrase button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(236, 229, 240, 0.52);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
}

.login-profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--outline-blue);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(236, 229, 240, 0.08), 0 5px 0 var(--outline-blue-dark);
  padding: 14px;
}

.login-profile-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(236, 229, 240, 0.18);
  border-radius: 18px;
  background: var(--diamond-gradient);
  box-shadow: inset 0 1px 0 rgba(236, 229, 240, 0.16), inset 0 -4px 0 var(--diamond-blue-dark);
  color: var(--floral-white);
  font-size: 26px;
  font-weight: 950;
  text-transform: uppercase;
}

.login-profile-card span,
.login-profile-card strong {
  display: block;
}

.login-profile-card span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-profile-card strong {
  margin-top: 6px;
  color: var(--floral-white);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.login-check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(236, 229, 240, 0.68);
  font-size: 17px;
  font-weight: 650;
}

.login-check input {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  place-content: center;
  border: 3px solid #657184;
  border-radius: 6px;
  appearance: none;
  background: transparent;
}

.login-check input:checked {
  border-color: var(--baby-pink);
  background: var(--baby-pink);
}

.login-check input:checked::before {
  content: "✓";
  color: var(--floral-white);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.login-primary,
.login-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 2px solid rgba(236, 229, 240, 0.14);
  border-radius: 12px;
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark), 0 0 22px var(--diamond-blue-glow);
  color: var(--floral-white);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 950;
  text-align: center;
}

.login-primary:disabled,
.login-provider:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.login-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: rgba(248, 113, 113, 0.95);
  font-size: 0.84rem;
}

.soft-button-carrot {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark), 0 0 22px var(--diamond-blue-glow);
}

.login-button:active,
.login-primary:active,
.login-provider:active,
.soft-button:active,
.icon-button:active,
.nav-item:active,
.game-card:active {
  transform: translateY(4px);
  box-shadow: var(--pressed-shadow);
}

.login-button:active,
.login-primary:active,
.login-provider:active,
.soft-button-carrot:active,
.nav-item.is-active:active {
  background: var(--diamond-blue-dark);
}

.sidebar-left {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 16px;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--carbon-black);
  padding: 18px 16px;
  overflow-x: hidden;
  overflow-y: auto;
}

.app-shell.chat-hidden {
  grid-template-columns: clamp(210px, 18vw, 250px) minmax(0, 1fr) 0;
}

.app-shell.chat-hidden .sidebar-right {
  opacity: 0;
  pointer-events: none;
  padding-inline: 0;
  transform: translateX(32px);
}

.app-shell.chat-hidden .content-panel,
.app-shell.chat-hidden .app-footer {
  border-right: 0;
}

.app-shell.chat-hidden .app-footer {
  grid-column: 2 / -1;
}

.nav-list {
  display: grid;
  align-content: start;
  gap: 10px;
  justify-items: stretch;
  width: 100%;
  min-width: 0;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: stretch;
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--outline-blue);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 5px 0 var(--outline-blue-dark);
  color: var(--text-muted);
  padding: 0 18px;
  font-size: 16px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 120ms var(--press-ease), box-shadow 120ms var(--press-ease), background 120ms var(--press-ease), border-color 120ms var(--press-ease), color 120ms var(--press-ease);
  will-change: transform;
}

.nav-item:hover,
.login-button:hover,
.sidebar-footer a:hover {
  border-color: var(--outline-blue);
}

.soft-button:hover {
  border-color: var(--outline-blue);
}

.login-button:hover,
.soft-button-carrot:hover,
.nav-item.is-active:hover {
  border-color: rgba(236, 229, 240, 0.22);
}

.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark), 0 0 18px rgba(56, 189, 248, 0.22);
  color: var(--floral-white);
}

.nav-item.is-active:active {
  transform: translateY(4px);
  background: var(--diamond-blue-dark);
  box-shadow: var(--pressed-shadow);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(236, 229, 240, 0.1);
  color: currentColor;
  font-size: 13px;
  font-weight: 950;
}

.nav-item.is-active .nav-icon {
  background: rgba(236, 229, 240, 0.14);
}

.nav-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  justify-items: stretch;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 229, 240, 0.055);
  overflow: hidden;
}

.nav-group:not([open]) .nav-group-items {
  display: none;
}

.nav-group .nav-item {
  min-height: 46px;
  width: auto;
  min-width: 0;
  font-size: 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(236, 229, 240, 0.82);
  padding: 0 14px;
}

.nav-group-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: rgba(236, 229, 240, 0.8);
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  user-select: none;
  list-style: none;
}

.nav-group-title::-webkit-details-marker {
  display: none;
}

.nav-group-link {
  border-radius: 0;
}

.nav-group-title .nav-group-link {
  min-height: 52px;
  padding-inline: 14px;
}

.nav-group-items {
  display: grid;
  gap: 6px;
  padding: 9px;
}

.nav-group-toggle {
  display: grid;
  width: 42px;
  min-height: 52px;
  place-items: center;
  line-height: 1;
  color: rgba(236, 229, 240, 0.72);
  transform-origin: center;
  transition: transform 150ms var(--press-ease), background 150ms var(--press-ease), color 150ms var(--press-ease);
}

.nav-group-title:hover .nav-group-link,
.nav-group-title:hover .nav-group-toggle,
.nav-group .nav-item:hover {
  background: rgba(236, 229, 240, 0.075);
  color: var(--floral-white);
}

.nav-group:not([open]) .nav-group-toggle {
  transform: rotate(180deg);
}

.nav-group .nav-item.is-active {
  border-color: transparent;
  background: color-mix(in srgb, var(--baby-pink) 10%, transparent);
  box-shadow: none;
  color: var(--baby-pink);
}

.nav-group .nav-item:active,
.nav-group .nav-item.is-active:active {
  transform: none;
  background: color-mix(in srgb, var(--baby-pink) 12%, transparent);
  box-shadow: none;
}

.nav-group .nav-icon,
.nav-group .nav-item.is-active .nav-icon {
  background: transparent;
  font-size: 17px;
}

.nav-group .nav-icon.svg-icon,
.nav-group .nav-item.is-active .nav-icon.svg-icon,
.nav-icon.svg-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: currentColor;
}

.nav-group .nav-subitem.is-disabled {
  color: rgba(236, 229, 240, 0.5);
}

.sidebar-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}

.sidebar-footer a {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--outline-blue);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 5px 0 var(--outline-blue-dark);
  color: var(--text-muted);
  font-size: 21px;
  font-weight: 900;
  transition: transform 120ms var(--press-ease), box-shadow 120ms var(--press-ease), border-color 120ms var(--press-ease);
  will-change: transform;
}

.sidebar-footer a:active {
  transform: translateY(4px);
  box-shadow: var(--pressed-shadow);
}

.footer-icon {
  width: 24px;
  height: 24px;
}

.main-column {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.content-panel {
  height: 100%;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--carbon-black);
  padding: clamp(26px, 2.6vw, 34px) clamp(22px, 3vw, 40px) 0;
  overflow-y: auto;
}

.hero-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1110px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.hero-actions .soft-button {
  min-width: 146px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-grid h1,
.placeholder-card h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 220px));
  justify-content: center;
  gap: 16px;
  max-width: 980px;
  margin-inline: auto;
}

.game-card {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--raised-shadow);
  transition: transform 120ms var(--press-ease), box-shadow 120ms var(--press-ease), border-color 120ms var(--press-ease);
  will-change: transform;
}

.game-card:hover {
  border-color: rgba(236, 229, 240, 0.42);
  box-shadow: var(--raised-shadow), 0 0 20px rgba(236, 229, 240, 0.08);
  transform: translateY(-3px);
}

.game-card:has(.game-card-link:active) {
  transform: translateY(5px);
  box-shadow: var(--pressed-shadow);
}

.game-card-link {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.game-card-crash::before {
  background: linear-gradient(155deg, #060c1a 0%, #0d2051 45%, #1d4ed8 100%);
}

.game-card-case-battles::before {
  background: linear-gradient(155deg, #0a0614 0%, #2e1065 50%, #7c3aed 100%);
}

.game-card-coinflip::before {
  background: linear-gradient(155deg, #1a0404 0%, #7f1d1d 50%, #f43f5e 100%);
}

.game-card-mines::before {
  background: linear-gradient(155deg, #021108 0%, #064e3b 50%, #059669 100%);
}

.game-card.is-muted::before {
  opacity: 0.92;
}

.game-title-block {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 28px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.game-title-block h3 {
  margin: 0;
  color: var(--floral-white);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.game-card-mines .game-title-block h3,
.game-card-mines .game-title-block small,
.game-card-mines .game-status {
  color: var(--floral-white);
}

.game-title-block small {
  margin-top: 5px;
  color: rgba(236, 229, 240, 0.78);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.game-status {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: var(--floral-white);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sidebar-right {
  grid-column: 3;
  grid-row: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 66px;
  gap: 10px;
  min-height: 0;
  background: var(--carbon-black);
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  transform: translateX(0);
  transition: opacity 180ms var(--press-ease), transform 240ms var(--press-ease), padding 240ms var(--press-ease);
}

.sidebar-right * {
  min-width: 0;
}

.locale-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--carbon-black);
  color: var(--floral-white);
  padding: 0;
}

.locale-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.locale-dialog-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.locale-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.locale-dialog-header h2 {
  margin: 0;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--outline-blue);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: 0 4px 0 var(--outline-blue-dark);
  color: var(--floral-white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-close:active {
  transform: translateY(3px);
  box-shadow: var(--pressed-shadow);
}

.locale-options {
  display: grid;
  gap: 12px;
}

.locale-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border: 2px solid var(--outline-blue);
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 5px 0 var(--outline-blue-dark);
  color: var(--floral-white);
  padding: 0 16px;
  font-weight: 950;
}

.locale-option.is-active {
  border-color: rgba(236, 229, 240, 0.14);
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark);
}

.locale-option:active {
  transform: translateY(4px);
  box-shadow: var(--pressed-shadow);
}

.chat-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 5px;
}

.chat-message {
  --chat-card-padding: 12px;
  --chat-card-gap: 10px;
  --chat-copy-gap: 8px;
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: var(--chat-card-gap);
  height: auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
  box-shadow: var(--raised-shadow-small);
  padding: var(--chat-card-padding);
}

.chat-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--carbon-black);
  box-shadow: inset 0 1px 0 rgba(236, 229, 240, 0.08), inset 0 -3px 0 rgba(0, 0, 0, 0.24);
}

.chat-avatar span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: var(--floral-white);
  color: var(--carbon-black);
  font-weight: 950;
}

.chat-avatar strong {
  position: absolute;
  bottom: -7px;
  left: 50%;
  min-width: 24px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 7px;
  background: var(--diamond-blue);
  color: var(--floral-white);
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}

.chat-copy {
  display: grid;
  align-content: start;
  gap: var(--chat-copy-gap);
  min-width: 0;
}

.chat-meta {
  display: grid;
  gap: 2px;
}

.chat-meta strong {
  overflow: hidden;
  color: var(--crimson-carrot);
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-meta time {
  color: rgba(236, 229, 240, 0.42);
  font-size: 11px;
  font-weight: 800;
}

.chat-message p,
.chat-reply {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.chat-message p {
  margin: 0;
}

.chat-reply {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--carbon-black);
  padding: 8px 9px;
  color: rgba(236, 229, 240, 0.58);
}

.chat-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: var(--raised-shadow-small);
  padding: 0 14px;
  color: rgba(236, 229, 240, 0.5);
}

.chat-locked strong {
  flex: 1;
  font-size: 15px;
  font-weight: 900;
}

.chat-locked span {
  color: rgba(236, 229, 240, 0.34);
  font-size: 18px;
}

.online-count {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--floral-white);
  font-size: 18px;
  font-weight: 800;
}

.online-count span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--baby-pink);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.app-footer {
  display: grid;
  gap: 10px;
  margin: 50px 0 0;
  border-top: 1px solid var(--line);
  background: var(--carbon-black);
  padding: 24px 0 30px;
  color: var(--text-muted);
}

.app-footer strong {
  color: var(--floral-white);
}

.app-footer p {
  max-width: 780px;
  margin: 0;
  line-height: 1.55;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(236, 229, 240, 0.28);
}

.footer-legal a {
  color: rgba(236, 229, 240, 0.28);
  transition: color 120ms;
}

.footer-legal a:hover {
  color: rgba(236, 229, 240, 0.55);
}

.footer-disclaimer {
  max-width: 780px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(236, 229, 240, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: rgba(236, 229, 240, 0.2);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.placeholder-card {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--raised-shadow-small);
  padding: 32px;
}

.placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.placeholder-card p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

/* ===== Profile page ===== */
.profile-page {
  display: grid;
  gap: 18px;
}

.profile-identity-card,
.profile-card {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), var(--surface-raised);
  box-shadow: var(--raised-shadow-small);
}

.profile-identity-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: clamp(20px, 4vw, 34px);
  overflow: hidden;
  position: relative;
}

.profile-identity-card::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 45%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,0.22), transparent 68%);
  pointer-events: none;
}

.profile-avatar-large {
  position: relative;
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(236, 229, 240, 0.2);
  border-radius: 30px;
  background: var(--diamond-gradient);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -5px 0 var(--diamond-blue-dark), 0 0 28px var(--diamond-blue-glow);
  color: #fff;
  font-size: 42px;
  font-weight: 950;
  overflow: hidden;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-large span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.profile-identity-copy,
.profile-logout {
  position: relative;
  z-index: 1;
}

.profile-identity-copy h1,
.profile-section-head h2 {
  margin: 0;
  color: var(--floral-white);
  letter-spacing: -0.04em;
}

.profile-identity-copy h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 0.92;
}

.profile-handle {
  margin: 10px 0 0;
  color: var(--diamond-blue-light);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.profile-logout-btn {
  border-color: rgba(239,68,68,0.28);
  color: #fecaca;
}

.profile-guest-card {
  margin-bottom: 18px;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(236,229,240,0.05);
  color: rgba(236,229,240,0.74);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.profile-account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.profile-card {
  padding: clamp(18px, 3vw, 24px);
}

.profile-section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.profile-section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-stat-tile {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14,14,18,0.34);
  padding: 16px;
}

.profile-stat-tile span,
.profile-muted,
.profile-linked-row span,
.profile-activity-row span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.profile-stat-tile strong {
  color: var(--floral-white);
  font-size: 24px;
  font-weight: 950;
}

.profile-progress-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(236,229,240,0.09);
  overflow: hidden;
}

.profile-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--diamond-blue-light), var(--diamond-blue));
  box-shadow: 0 0 24px var(--diamond-blue-glow);
}

.profile-wide-action {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

.profile-discord-states {
  display: grid;
  gap: 12px;
}

.profile-discord-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14,14,18,0.34);
  padding: 14px;
}

.profile-discord-state.is-before-link {
  opacity: 0.72;
}

.profile-discord-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: rgba(88,101,242,0.18);
  color: #c7d2fe;
  font-size: 18px;
  font-weight: 950;
}

.profile-discord-state.is-connected .profile-discord-icon {
  background: rgba(16,185,129,0.16);
  color: #6ee7b7;
}

.profile-discord-state div {
  display: grid;
  gap: 4px;
}

.profile-discord-state strong {
  color: var(--floral-white);
  font-size: 16px;
}

.profile-discord-state span:not(.profile-discord-icon) {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
}

.profile-password-form {
  display: grid;
  gap: 14px;
}

.profile-field {
  display: grid;
  gap: 8px;
}

.profile-field span {
  color: rgba(236,229,240,0.68);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(14,14,18,0.44);
  color: var(--floral-white);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  padding: 0 14px;
  outline: none;
}

.profile-field input:focus {
  border-color: rgba(56,189,248,0.72);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.13);
}

.profile-linked-row,
.profile-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-linked-row {
  justify-content: flex-start;
}

.profile-linked-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(56,189,248,0.14);
  color: var(--diamond-blue-light);
  font-size: 20px;
  font-weight: 950;
}

.profile-linked-row div {
  display: grid;
  gap: 4px;
}

.profile-linked-row strong {
  color: var(--floral-white);
  font-size: 18px;
}

.profile-activity-list {
  display: grid;
  gap: 12px;
}

.profile-activity-row {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 12px;
}

.profile-activity-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-win { color: #10b981; }
.profile-loss { color: #ef4444; }

@media (max-width: 900px) {
  .profile-identity-card,
  .profile-account-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-identity-card .soft-button {
    width: 100%;
  }

  .profile-discord-state {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-discord-state .soft-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-large {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 30px;
  }
}

.page-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.page-heading h1 {
  margin-bottom: 12px;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.page-heading p,
.info-card p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

.fairness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--raised-shadow-small);
  padding: 24px;
}

.info-card h2 {
  margin-bottom: 10px;
}

.info-card p {
  margin-bottom: 0;
}

.info-card-wide {
  grid-column: 1 / -1;
}

.crash-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: 18px 20px;
  max-width: 1160px;
  margin-inline: auto;
}

.crash-main {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  gap: 18px;
  min-width: 0;
}

.crash-head {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.crash-head h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--baby-pink);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.crash-panel {
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface-raised);
  box-shadow: var(--raised-shadow);
}

.crash-chart-card {
  overflow: hidden;
}

.crash-round-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.crash-round-pill {
  display: grid;
  flex: 0 0 112px;
  gap: 3px;
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(236, 229, 240, 0.08);
  border-radius: 12px;
  background: rgba(20, 17, 21, 0.62);
  padding: 9px 10px;
}

.crash-round-pill small {
  overflow: hidden;
  color: rgba(236, 229, 240, 0.46);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crash-round-pill strong {
  font-size: 16px;
  font-weight: 950;
}

.crash-round-win strong {
  color: var(--baby-pink);
}

.crash-round-warn strong {
  color: var(--crimson-carrot);
}

.crash-chart {
  position: relative;
  min-height: clamp(260px, 32vh, 310px);
  overflow: hidden;
  background: linear-gradient(rgba(236, 229, 240, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 229, 240, 0.045) 1px, transparent 1px), var(--surface);
  background-size: 100% 25%, 16.66% 100%, auto;
}

.crash-axis-y {
  position: absolute;
  top: 46px;
  bottom: 64px;
  left: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(236, 229, 240, 0.34);
  font-size: 12px;
  font-weight: 950;
}

.crash-grid-lines {
  position: absolute;
  right: 34px;
  bottom: 64px;
  left: 62px;
  height: 2px;
  background: rgba(236, 229, 240, 0.08);
}

.crash-graph {
  position: absolute;
  top: 46px;
  left: 62px;
  width: calc(100% - 96px);
  height: calc(100% - 110px);
  overflow: visible;
}

.crash-graph path {
  fill: none;
  stroke: var(--baby-pink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.8));
  vector-effect: non-scaling-stroke;
}

.crash-countdown {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 250px;
  border: 1px solid rgba(236, 229, 240, 0.1);
  border-left: 6px solid var(--baby-pink);
  border-radius: 10px;
  background: rgba(36, 27, 45, 0.92);
  box-shadow: var(--raised-shadow-small);
  padding: 12px 18px;
  text-align: center;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 950;
}

.crash-countdown strong {
  color: var(--floral-white);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.crash-status {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(236, 229, 240, 0.58);
  font-size: 13px;
  font-weight: 950;
}

.crash-status span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--baby-pink);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.74);
}

.crash-controls {
  overflow: hidden;
}

.crash-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.crash-mode-tabs button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.crash-mode-tabs button.is-active {
  border-bottom: 2px solid var(--baby-pink);
  color: var(--floral-white);
}

.crash-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 0;
}

.crash-field {
  display: grid;
  gap: 9px;
  color: rgba(236, 229, 240, 0.72);
  font-size: 13px;
  font-weight: 950;
}

.crash-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--carbon-black);
  padding: 0 14px;
}

.crash-input strong {
  color: var(--baby-pink);
}

.crash-input input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--floral-white);
  font: inherit;
  font-size: 18px;
  font-weight: 950;
  outline: 0;
}

.crash-bet-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  min-height: 52px;
  margin: 14px 16px;
  border: 2px solid rgba(236, 229, 240, 0.14);
  border-radius: 14px;
  color: var(--floral-white);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  font-weight: 950;
  transition: background 220ms var(--press-ease), box-shadow 220ms var(--press-ease);
}

.crash-bet-button:active {
  transform: translateY(4px);
  box-shadow: var(--pressed-shadow);
}

.crash-control-note {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 11px 16px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.crash-bets {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  overflow: hidden;
}

.crash-bets-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.crash-bets-summary h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 950;
}

.crash-bets-summary h2 span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--baby-pink);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.68);
}

.crash-bets-summary > strong {
  color: var(--floral-white);
  font-size: 15px;
}

.crash-bets-table {
  display: grid;
}

.crash-bets-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
}

.crash-bets-row span,
.crash-bets-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crash-bets-header {
  min-height: 44px;
  color: rgba(236, 229, 240, 0.54);
  font-size: 13px;
  font-weight: 950;
}

.crash-bets-row:not(.crash-bets-header) {
  color: var(--floral-white);
  font-size: 14px;
  font-weight: 850;
}

.crash-bets-row:not(.crash-bets-header):nth-child(odd) {
  background: rgba(20, 17, 21, 0.24);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 200px minmax(0, 1fr) 270px;
  }

  .crash-page {
    grid-template-columns: minmax(0, 1fr);
  }

  .crash-bets {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
  }

  .app-shell.chat-hidden {
    grid-template-columns: 200px minmax(0, 1fr) 0;
  }

  .top-bar {
    padding-inline: 18px;
  }

  .sidebar-left,
  .sidebar-right {
    padding-inline: 10px;
  }

  .nav-item {
    gap: 10px;
    padding-inline: 12px;
  }

  .chat-message {
    grid-template-columns: 44px 1fr;
    gap: 9px;
    padding: 10px;
  }

  .chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .chat-avatar span {
    width: 29px;
    height: 29px;
    border-radius: 10px;
  }
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 35vh);
  }

  .app-shell.chat-hidden {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) 0;
  }

  .sidebar-right {
    grid-column: 1 / -1;
    grid-row: 3;
    min-height: 0;
    border-top: 1px solid var(--line);
    transform: none;
  }

  .app-shell.chat-hidden .sidebar-right {
    padding-block: 0;
    transform: translateY(24px);
  }

}

@media (max-width: 820px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .app-shell.chat-hidden {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto 0;
  }

  .top-bar,
  .sidebar-left,
  .main-column,
  .sidebar-right,
  .app-footer {
    grid-column: 1;
  }

  .top-bar {
    grid-template-columns: auto 0 auto;
  }

  .mini-chart-bar {
    display: none;
  }

  [data-locale-open] {
    display: none;
  }

  .sidebar-left {
    grid-row: 2;
    min-height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .main-column {
    grid-row: 3;
    overflow: visible;
  }

  .content-panel {
    height: auto;
    overflow: visible;
  }

  .sidebar-right {
    grid-row: 4;
    overflow: visible;
  }

  .chat-list {
    overflow: visible;
  }

  .app-footer {
    flex-direction: column;
  }

  .brand strong {
    font-size: 23px;
  }

  .brand small {
    font-size: 25px;
  }

  .content-panel {
    border-right: 0;
    padding: 26px 18px 0;
  }

  .hero-grid {
    align-items: start;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 215px));
  }

  .fairness-grid {
    grid-template-columns: 1fr;
  }

  .crash-head {
    align-items: stretch;
    flex-direction: column;
  }

  .crash-head .soft-button {
    width: 100%;
  }

  .crash-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .crash-chart-card,
  .crash-controls {
    grid-column: 1;
    grid-row: auto;
  }

  .crash-round-strip,
  .crash-control-grid {
    grid-template-columns: 1fr;
  }

  .crash-chart {
    min-height: 300px;
  }

  .game-card {
    height: auto;
  }
}

@media (max-width: 560px) {
  .top-bar {
    gap: 0 8px;
    padding: 10px 12px;
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand small {
    font-size: 21px;
  }

  .top-actions {
    gap: 8px;
  }

  .login-button {
    min-width: 48px;
    width: 48px;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .login-button::before {
    margin-right: 0;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .sidebar-left {
    padding: 14px 12px;
  }

  .nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group {
    grid-column: 1 / -1;
  }

  .nav-item {
    min-width: 0;
    padding-inline: 10px;
    font-size: 14px;
  }

  .nav-item span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-panel {
    padding-inline: 14px;
  }

  .hero-grid h1,
  .placeholder-card h1,
  .page-heading h1,
  .crash-head h1 {
    font-size: 34px;
  }

  .hero-actions,
  .hero-actions .soft-button {
    width: 100%;
  }

  .soft-button {
    flex: 1 1 140px;
  }

  .crash-bets-row {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    padding-inline: 12px;
  }

  .crash-countdown {
    min-width: 0;
    width: min(78%, 260px);
  }

  .sidebar-right {
    padding: 10px;
  }

  .chat-message {
    --chat-card-padding: 10px;
    --chat-card-gap: 8px;
    grid-template-columns: 42px 1fr;
  }

  .chat-avatar {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .icon-button,
  .login-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

/* Game card art icon */
.game-card-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18%;
  pointer-events: none;
}

.game-card-art-icon {
  width: 52%;
  aspect-ratio: 1;
  color: rgba(236, 229, 240, 0.35);
}

.game-card-crash .game-card-art-icon {
  color: rgba(16, 185, 129, 0.55);
  filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.5));
}

.game-card-coinflip .game-card-art-icon {
  color: rgba(236, 229, 240, 0.55);
}

.game-card-mines .game-card-art-icon {
  color: rgba(16, 185, 129, 0.55);
  filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.4));
}

.game-card-crash:hover {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: var(--raised-shadow), 0 0 32px rgba(29, 78, 216, 0.35);
}

.game-card-case-battles:hover {
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: var(--raised-shadow), 0 0 32px rgba(124, 58, 237, 0.35);
}

.game-card-coinflip:hover {
  border-color: rgba(251, 113, 133, 0.6);
  box-shadow: var(--raised-shadow), 0 0 32px rgba(244, 63, 94, 0.35);
}

.game-card-mines:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: var(--raised-shadow), 0 0 32px rgba(5, 150, 105, 0.35);
}

/* Lobby stats strip */
.lobby-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.lobby-stat-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--floral-white);
}

.lobby-stat-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--baby-pink);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

/* Balance chip */
.balance-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 5px 0 rgba(29, 78, 216, 0.5);
  color: #93c5fd;
  font-size: 15px;
  font-weight: 950;
  padding: 0 14px;
  white-space: nowrap;
}

.balance-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.7));
}

/* Chat accent colors */
.chat-message-blue .chat-meta strong { color: #5b8def; }
.chat-message-cyan .chat-meta strong { color: #2ee8f5; }
.chat-message-green .chat-meta strong { color: var(--baby-pink); }

/* Case battles art icon */
.game-card-case-battles .game-card-art-icon {
  color: rgba(167, 139, 250, 0.55);
  filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.5));
}

/* Animated live pulse */
@keyframes livepulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.online-count span,
.lobby-stat-dot {
  animation: livepulse 2s ease-in-out infinite;
}

/* Game card transition includes transform for hover lift */
.game-card {
  transition: transform 180ms var(--press-ease), box-shadow 180ms var(--press-ease), border-color 180ms var(--press-ease);
}

/* Coinflip art icon */
.game-card-coinflip .game-card-art-icon {
  color: rgba(251, 113, 133, 0.55);
  filter: drop-shadow(0 0 14px rgba(244, 63, 94, 0.5));
}

/* ===== User profile card ===== */
.user-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 10px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-raised);
}

.user-avatar {
  grid-row: 1 / 3;
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--diamond-gradient);
  box-shadow: 0 3px 0 var(--diamond-blue-dark);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.user-level-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #f59e0b;
  color: #0e0e12;
  font-size: 10px;
  font-weight: 950;
  border: 2px solid var(--carbon-black);
}

.user-info {
  align-self: center;
  min-width: 0;
}

.user-name {
  display: block;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-sub {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.user-xp-track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 99px;
  background: var(--line-strong);
  overflow: hidden;
}

.user-xp-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--diamond-blue-light), var(--diamond-blue));
}

/* ===== Chat header ===== */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat-header .online-count {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--floral-white);
}

/* ===== Lobby stat chips ===== */
.lobby-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-raised);
}

.stat-chip-live {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(16, 185, 129, 0.06);
}

.stat-chip-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--baby-pink);
  animation: livepulse 2s ease-in-out infinite;
}

.stat-chip-label {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-chip-value {
  display: block;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ===== Placeholder page ===== */
.placeholder-icon-wrap {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  margin-bottom: 18px;
}

.placeholder-icon {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

/* ===== Fairness step cards ===== */
.info-card-step {
  position: relative;
  overflow: hidden;
}

.info-card-step::after {
  content: attr(data-step);
  position: absolute;
  top: -20px;
  right: 14px;
  font-size: 100px;
  font-weight: 950;
  line-height: 1;
  color: rgba(236, 229, 240, 0.04);
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

.info-card-step:nth-child(1) { border-top: 2px solid var(--baby-pink); }
.info-card-step:nth-child(2) { border-top: 2px solid #f59e0b; }
.info-card-step:nth-child(3) { border-top: 2px solid var(--crimson-carrot); }

/* ===== Crash quick-bet buttons ===== */
.crash-quick-bets {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  margin-top: 10px;
}

.crash-quick-btn {
  flex: 1;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.crash-quick-btn:hover {
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--baby-pink);
  background: rgba(16, 185, 129, 0.07);
}

.crash-quick-btn:active {
  background: rgba(16, 185, 129, 0.12);
}

/* ===== Bet cashout indicator ===== */
.bet-cashed {
  color: var(--baby-pink);
  font-weight: 900;
}

/* ===== Discord provider button ===== */
.login-provider {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  box-shadow: 0 5px 0 #3730a3;
}

/* ===== Login page gradient background ===== */
.login-page {
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(88, 101, 242, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 88% 92%, rgba(244, 44, 4, 0.09) 0%, transparent 60%),
    var(--carbon-black);
}

/* ===== Live wins ticker ===== */
.wins-ticker {
  display: flex;
  align-items: center;
  height: 40px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  overflow: hidden;
}

.wins-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
  border-right: 1px solid var(--line);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wins-ticker-label-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  animation: livepulse 2s ease-in-out infinite;
}

.wins-ticker-viewport {
  flex: 1;
  overflow: hidden;
}

.wins-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 42s linear infinite;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.wins-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.wins-ticker-item strong { color: var(--floral-white); font-weight: 950; }
.wins-ticker-item .ticker-mult { color: var(--baby-pink); font-weight: 950; }
.wins-ticker-item em { font-style: normal; color: #93c5fd; font-weight: 950; }
.wins-ticker-sep { color: var(--line-strong); font-size: 10px; user-select: none; }

/* ===== Daily spin notification button ===== */
.daily-spin-btn { position: relative; }

.daily-spin-btn::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid var(--carbon-black);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
  animation: livepulse 2s ease-in-out infinite;
}

/* ===== XP level label ===== */
.user-card {
  grid-template-rows: auto auto auto;
}

.user-xp-label {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.user-xp-label strong { color: #f59e0b; }

/* ===== Wager race sidebar ===== */
.sidebar-race {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-raised);
  overflow: hidden;
}

.sidebar-race-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.sidebar-race-title {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-race-badge {
  font-size: 10px;
  font-weight: 950;
  color: #f59e0b;
  letter-spacing: 0.04em;
}

.race-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 4px;
}

.race-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  border-radius: 8px;
  padding: 0 8px;
}

.race-rank {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--line-strong);
  font-size: 11px;
  font-weight: 950;
  color: var(--text-muted);
}

.race-item-1 .race-rank { background: #f59e0b; color: #0e0e12; }
.race-item-2 .race-rank { background: rgba(200, 200, 210, 0.2); color: var(--floral-white); }
.race-item-3 .race-rank { background: rgba(180, 120, 60, 0.5); color: #fcd34d; }

.race-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 850;
}

.race-amount {
  font-size: 12px;
  font-weight: 950;
  color: var(--text-muted);
  white-space: nowrap;
}

.race-item-1 .race-amount { color: #f59e0b; }

/* ===== Game card player count badge ===== */
.game-card-players {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 99px;
  background: rgba(14, 14, 18, 0.72);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(4px);
  color: var(--baby-pink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.game-card-players-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--baby-pink);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
  animation: livepulse 2s ease-in-out infinite;
}

/* ===== Win toast notification ===== */
.win-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-left: 4px solid #3b82f6;
  border-radius: 14px;
  background: var(--surface-raised);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  color: var(--floral-white);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(12px);
  transition: opacity 300ms var(--press-ease), transform 300ms var(--press-ease);
}

.win-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.win-toast strong { color: var(--floral-white); }
.win-toast em { font-style: normal; color: #93c5fd; font-weight: 950; }
.win-toast .toast-mult { color: var(--baby-pink); font-weight: 950; }

/* ===== Crash multiplier color phases ===== */
.crash-countdown.mult-mid { border-left-color: #f59e0b; }
.crash-countdown.mult-mid strong { color: #f59e0b; }
.crash-countdown.mult-high { border-left-color: #f97316; }
.crash-countdown.mult-high strong { color: #f97316; }
.crash-countdown.mult-extreme { border-left-color: #ef4444; }
.crash-countdown.mult-extreme strong {
  color: #ef4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* ===== Game status badge: top-left corner ===== */
.game-status {
  top: 14px;
  left: 14px;
  transform: none;
  min-width: 0;
  height: 26px;
  padding: 0 10px;
  font-size: 10px;
  letter-spacing: 0.12em;
  background: rgba(14, 14, 18, 0.72);
  border-color: var(--line-strong);
  backdrop-filter: blur(4px);
}

/* ===== Crash bet button: primary action color ===== */
.crash-bet-button {
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark), 0 0 24px var(--diamond-blue-glow);
}

/* Cash out state: emerald green */
.crash-bet-button.is-cashout {
  background: linear-gradient(135deg, #10b981 0%, #0d9668 100%);
  box-shadow: 0 5px 0 var(--pink-dark);
  animation: cashoutPulse 1.5s ease-in-out infinite;
}

@keyframes cashoutPulse {
  0%, 100% { box-shadow: 0 5px 0 var(--pink-dark); }
  50% { box-shadow: 0 5px 0 var(--pink-dark), 0 0 28px rgba(16, 185, 129, 0.35); }
}

/* ===== Bet amount sub-label ===== */
.crash-bet-amount {
  margin-left: 8px;
  opacity: 0.82;
  font-size: 15px;
  font-weight: 800;
}

/* ===== Cash out hint ===== */
.crash-cashout-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(236, 229, 240, 0.5);
  animation: livepulse 1.5s ease-in-out infinite;
}

/* ===== Crash quick-bets 2-column group ===== */
.crash-quick-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px;
  margin-top: 10px;
}

.crash-quick-group .crash-quick-bets {
  padding: 0;
  margin: 0;
}

/* ===== Featured game (Crash - the only live game) ===== */
.featured-game-section {
  margin-bottom: 6px;
}

.featured-game-section .game-card {
  height: clamp(240px, 26vw, 300px);
}

/* ===== Coming next section ===== */
.coming-next-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 14px;
}

.coming-next-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.coming-next-header .eyebrow {
  margin: 0;
  white-space: nowrap;
}

.game-grid-upcoming {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
  gap: 14px;
}

.game-grid-upcoming .game-card {
  height: clamp(150px, 16vw, 185px);
}

.game-grid-upcoming .game-title-block {
  bottom: 16px;
}

.game-grid-upcoming .game-title-block h3 {
  font-size: clamp(17px, 1.7vw, 21px);
}

.game-grid-upcoming .game-card-art {
  padding-top: 12%;
}

.game-grid-upcoming .game-card-art-icon {
  width: 40%;
}

/* ===== Chat win highlight ===== */
.chat-message-win {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.04);
}

.chat-message-gold .chat-meta strong,
.chat-message-win .chat-meta strong {
  color: #f59e0b;
}

.chat-message-win p::before {
  content: '◆ ';
  color: #3b82f6;
  font-size: 11px;
}

/* ===== Deposit drawer ===== */
.deposit-drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}

.deposit-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.deposit-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 260ms var(--press-ease);
  cursor: pointer;
}

.deposit-drawer.is-open .deposit-drawer-overlay {
  background: rgba(0, 0, 0, 0.55);
}

.deposit-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 300ms var(--press-ease);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.deposit-drawer.is-open .deposit-drawer-panel {
  transform: translateX(0);
}

.deposit-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.deposit-drawer-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.deposit-drawer-body {
  flex: 1;
  padding: 24px;
  display: grid;
  gap: 20px;
  align-content: start;
}

.deposit-steps {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.03);
}

.deposit-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.deposit-step-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #93c5fd;
  font-size: 13px;
  font-weight: 950;
}

.deposit-step strong {
  display: block;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
}

.deposit-step p {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.4;
}

.deposit-divider {
  height: 1px;
  background: var(--line);
  margin: -4px 0;
}

.deposit-field {
  display: grid;
  gap: 10px;
}

.deposit-field > span {
  font-size: 13px;
  font-weight: 850;
  color: rgba(236, 229, 240, 0.72);
  letter-spacing: 0.02em;
}

.deposit-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  background: var(--carbon-black);
  padding: 0 18px;
  transition: border-color 160ms;
}

.deposit-input-wrap:focus-within {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.deposit-diamond-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #3b82f6;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.7));
}

.deposit-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--floral-white);
  font: inherit;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.02em;
  outline: 0;
}

.deposit-input::placeholder {
  color: rgba(236, 229, 240, 0.28);
  font-weight: 700;
}

.deposit-quick-amounts {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.deposit-quick-btn {
  flex: 1;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  transition: background 120ms, color 120ms, border-color 120ms;
}

.deposit-quick-btn:hover {
  border-color: rgba(59, 130, 246, 0.45);
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.08);
}

.deposit-quick-btn:active {
  transform: translateY(2px);
  background: rgba(59, 130, 246, 0.14);
}

.deposit-limits {
  margin: -8px 0 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.deposit-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border: 2px solid rgba(236, 229, 240, 0.14);
  border-radius: 14px;
  background: var(--diamond-gradient);
  box-shadow: 0 5px 0 var(--diamond-blue-dark), 0 0 22px var(--diamond-blue-glow);
  color: var(--floral-white);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 950;
}

.deposit-cta-btn:active {
  transform: translateY(4px);
  box-shadow: var(--pressed-shadow);
}

.deposit-btn-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.deposit-coming-soon {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(236, 229, 240, 0.02);
}

.deposit-coming-soon p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Balance chip as button */
.balance-chip {
  cursor: pointer;
}

.balance-chip:hover {
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.15);
}

.balance-chip:active {
  transform: translateY(2px);
  box-shadow: var(--pressed-shadow);
}

/* ===== Welcome modal ===== */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.22s;
}

.welcome-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.welcome-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.87);
  backdrop-filter: blur(5px);
}

.welcome-modal-card {
  position: relative;
  z-index: 1;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 28px 24px 22px;
  max-width: 430px;
  width: calc(100vw - 28px);
  text-align: center;
  transform: scale(0.88) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.34, 1.45, 0.64, 1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.welcome-modal.is-open .welcome-modal-card {
  transform: scale(1) translateY(0);
}

.welcome-modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: color 0.12s, background 0.12s;
}

.welcome-modal-close:hover {
  color: var(--floral-white);
  background: var(--line-strong);
}

.welcome-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.welcome-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: livepulse 1.6s ease-in-out infinite;
}

.welcome-diamond-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
}

.welcome-diamond-wrap::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 68%);
  animation: welcomeGlow 2.2s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes welcomeGlow {
  from { opacity: 0.45; transform: scale(0.88); }
  to   { opacity: 1;    transform: scale(1.12); }
}

.welcome-diamond-icon {
  width: 68px;
  height: 68px;
  color: #3b82f6;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.85));
}

.welcome-modal-title {
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 8px;
}

.welcome-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}

.welcome-wins {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 10px;
  text-align: left;
}

.welcome-win-row-label {
  padding: 8px 14px 6px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.welcome-win-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
}

.welcome-win-item + .welcome-win-item {
  border-top: 1px solid var(--line);
}

.welcome-win-player {
  flex: 1;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
}

.welcome-win-mult {
  font-weight: 950;
  font-size: 14px;
  color: #f97316;
}

.welcome-win-mult.is-high {
  color: #fb923c;
}

.welcome-win-mult.is-extreme {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.55);
}

.welcome-win-amount {
  color: #93c5fd;
  font-weight: 800;
  font-size: 12px;
}

.welcome-tip {
  display: grid;
  gap: 3px;
  text-align: left;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.welcome-tip-label {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #60a5fa;
}

.welcome-tip strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--floral-white);
}

.welcome-tip span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.welcome-bonus-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 18px;
  text-align: left;
}

.welcome-bonus-icon-wrap {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.14);
  display: grid;
  place-items: center;
}

.welcome-bonus-coin {
  width: 20px;
  height: 20px;
  color: #eab308;
}

.welcome-bonus-row strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--floral-white);
  margin-bottom: 2px;
}

.welcome-bonus-row > div > span {
  font-size: 12px;
  color: var(--text-muted);
}

.welcome-modal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.welcome-modal-actions .soft-button {
  flex: 1;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

.welcome-modal-disclaimer {
  font-size: 10px;
  color: rgba(236, 229, 240, 0.28);
  margin: 0;
}

/* ===== Recent rounds strip (lobby) ===== */
.recent-rounds-strip {
  margin-bottom: 22px;
}

.recent-rounds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.recent-rounds-label {
  font-size: 11px;
  font-weight: 950;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.recent-rounds-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
}

.recent-rounds-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: livepulse 1.6s ease-in-out infinite;
}

.mult-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mult-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -0.01em;
  cursor: default;
  user-select: none;
}

.mult-chip-low {
  background: rgba(100, 116, 139, 0.14);
  color: rgba(236, 229, 240, 0.42);
  border: 1px solid rgba(100, 116, 139, 0.18);
}

.mult-chip-mid {
  background: rgba(234, 179, 8, 0.1);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.22);
}

.mult-chip-high {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.mult-chip-extreme {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.28);
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: extremeChipPulse 2.4s ease-in-out infinite;
}

@keyframes extremeChipPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.28); }
}

/* ===== Value strip (lobby) ===== */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.value-item {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-top-width: 2px;
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.value-item-blue {
  border-top-color: #3b82f6;
}

.value-item-green {
  border-top-color: #10b981;
}

.value-item-gold {
  border-top-color: #eab308;
}

.value-item-icon {
  width: 28px;
  height: 28px;
}

.value-item-blue .value-item-icon { color: #3b82f6; }
.value-item-green .value-item-icon { color: #10b981; }
.value-item-gold .value-item-icon { color: #eab308; }

.value-item strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--floral-white);
  line-height: 1.2;
}

.value-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .value-strip {
    grid-template-columns: 1fr;
  }

  .mult-chips {
    gap: 5px;
  }

  .mult-chip {
    font-size: 12px;
    padding: 4px 10px;
  }

  .deposit-quick-amounts {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Daily spin page ===== */
.spin-page {
  max-width: 520px;
  margin-inline: auto;
}

.spin-page-title {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 6px;
}

.spin-page-sub {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.spin-scene {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  margin-bottom: 36px;
}

/* Pointer triangle above the wheel */
.spin-pointer-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.spin-pointer-tri {
  width: 0;
  height: 0;
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-top: 24px solid #F42C04;
  filter: drop-shadow(0 0 8px rgba(244, 44, 4, 0.7));
}

/* The SVG wheel */
.spin-wheel-svg {
  display: block;
  width: min(320px, 82vw);
  height: min(320px, 82vw);
  border-radius: 50%;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 0 0 6px rgba(0, 0, 0, 0.4),
    0 16px 56px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(59, 130, 246, 0.1);
  transform-origin: 50% 50%;
  transform-box: fill-box;
  will-change: transform;
}

/* Action area below wheel */
.spin-action {
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#spin-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Spin button */
.spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 48px;
  border: none;
  border-radius: 18px;
  background: var(--diamond-gradient);
  box-shadow: 0 7px 0 var(--diamond-blue-dark), 0 0 36px var(--diamond-blue-glow);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
  transition: transform 0.12s var(--press-ease), box-shadow 0.12s var(--press-ease);
}

.spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 9px 0 var(--diamond-blue-dark), 0 0 50px rgba(56, 189, 248, 0.42);
}

.spin-btn:active:not(:disabled) {
  transform: translateY(6px);
  box-shadow: 0 1px 0 var(--diamond-blue-dark);
}

.spin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 3px 0 var(--diamond-blue-dark);
}

.spin-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}

/* Result card (shown after spin) */
.spin-result-card {
  background: var(--surface-raised);
  border: 2px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  padding: 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: spinResultPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
}

@keyframes spinResultPop {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.spin-result-eyebrow {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spin-result-amount {
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #93c5fd;
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.7));
  line-height: 1;
}

.spin-result-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 240px;
  line-height: 1.5;
}

/* Countdown (shown after result) */
#spin-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.spin-countdown-label {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.spin-countdown-timer {
  font-size: 52px;
  font-weight: 950;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: linear-gradient(135deg, var(--floral-white), rgba(236, 229, 240, 0.65));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== User milestone strip ===== */
.user-milestone {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  margin-top: 2px;
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.14);
  border-radius: 10px;
}

.user-milestone-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #eab308;
  margin-top: 1px;
}

.user-milestone-info {
  flex: 1;
  min-width: 0;
}

.user-milestone-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-milestone-label strong {
  color: #eab308;
  font-weight: 950;
}

.user-milestone-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
  margin: 5px 0;
}

.user-milestone-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #eab308, #f59e0b);
}

.user-milestone-sub {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: rgba(236, 229, 240, 0.32);
}

/* ===== Sidebar referral section ===== */
.sidebar-referral {
  margin: 10px 0 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  gap: 8px;
}

.sidebar-referral-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-referral-title {
  margin: 0;
  font-size: 12px;
  font-weight: 950;
  color: var(--floral-white);
}

.sidebar-referral-reward {
  font-size: 11px;
  font-weight: 800;
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}

.sidebar-referral-code {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--carbon-black);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.referral-code {
  flex: 1;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.referral-copy-btn {
  flex: 0 0 auto;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.referral-copy-btn:hover {
  color: var(--floral-white);
  background: var(--line-strong);
}

.referral-copy-btn.is-copied {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.sidebar-referral-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Rain button in chat header ===== */
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rain-btn {
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.07);
  color: #93c5fd;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}

.rain-btn:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.45);
}

/* ===== Rain modal ===== */
.rain-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}

.rain-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.rain-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.rain-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px 22px 18px;
  max-width: 330px;
  width: calc(100vw - 28px);
  transform: scale(0.9);
  transition: transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.rain-modal.is-open .rain-modal-panel {
  transform: scale(1);
}

.rain-modal-title {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.rain-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.rain-modal-sub strong {
  color: #10b981;
}

.rain-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  background: var(--carbon-black);
  padding: 0 14px;
  margin-bottom: 5px;
  transition: border-color 0.15s;
}

.rain-input-wrap:focus-within {
  border-color: rgba(59, 130, 246, 0.5);
}

.rain-diamond-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #3b82f6;
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.7));
}

.rain-input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--floral-white);
  font: inherit;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
  outline: 0;
}

.rain-each {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-align: right;
  margin: 0 0 14px;
}

.rain-modal-actions {
  display: flex;
  gap: 8px;
}

.rain-modal-actions .soft-button {
  flex: 1;
  justify-content: center;
  text-align: center;
  min-width: 0;
}

/* ===== Rain chat event message ===== */
.chat-message-rain {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.07), transparent);
  border-color: rgba(59, 130, 246, 0.18);
  animation: rainMsgSlide 0.35s ease both;
}

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

.rain-event-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  color: #93c5fd;
  margin-bottom: 3px;
}

/* ===== Live join toasts ===== */
.join-toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-left: 3px solid #10b981;
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.22s ease, transform 0.22s var(--press-ease);
}

.join-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.join-toast strong {
  color: var(--floral-white);
}

.join-toast-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: livepulse 1.5s ease-in-out infinite;
}

/* ===== Crash game card sparkline ===== */
.game-card-sparkline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 46px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.game-card-sparkline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.game-title-block {
  position: relative;
  z-index: 3;
}

/* ===== VIP badge ===== */
.user-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.user-name-row .user-name {
  min-width: 0;
}

.vip-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.vip-bronze  { background: rgba(180, 108, 48, 0.18); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.35); }
.vip-silver  { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.32); }
.vip-gold    { background: rgba(234, 179, 8, 0.14); color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.3); }
.vip-diamond { background: rgba(59, 130, 246, 0.14); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.3); }

/* VIP perks tooltip that appears below the badge */
.vip-gold .vip-badge,
.vip-diamond .vip-badge {
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.25);
}

/* ===== Chat emoji reactions ===== */
.msg-react-bar {
  display: flex;
  gap: 4px;
  margin-top: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.chat-message:hover .msg-react-bar,
.chat-message:focus-within .msg-react-bar {
  opacity: 1;
  pointer-events: auto;
}

.react-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: background 0.1s, border-color 0.1s, transform 0.1s;
}

.react-btn:hover {
  background: var(--surface-raised);
  border-color: var(--line-strong);
  transform: scale(1.15);
}

.msg-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
  min-height: 0;
}

.react-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.1s, border-color 0.1s;
}

.react-chip.is-active {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.35);
}

.react-count {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 950;
}

.react-chip.is-active .react-count {
  color: #93c5fd;
}

/* ===== Crash auto-cashout toggle ===== */
.crash-auto-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crash-auto-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.crash-auto-toggle[data-auto="on"] {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

/* ===== Provably fair seed details ===== */
.crash-seed-reveal {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.crash-seed-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  user-select: none;
  background: var(--surface);
  transition: background 0.1s;
}

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

.crash-seed-reveal[open] .crash-seed-summary {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}

.crash-seed-summary:hover {
  background: var(--surface-raised);
}

.crash-seed-summary strong {
  color: var(--floral-white);
}

.crash-seed-snip {
  margin-left: auto;
  color: #60a5fa;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.crash-seed-body {
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  background: var(--surface);
}

.crash-seed-field {
  display: grid;
  gap: 3px;
}

.crash-seed-field-label {
  font-size: 10px;
  font-weight: 950;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crash-seed-value {
  font-size: 10px;
  font-family: 'SF Mono', ui-monospace, monospace;
  color: #93c5fd;
  word-break: break-all;
  background: var(--carbon-black);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  display: block;
}

.crash-seed-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.12s;
}

.crash-seed-link:hover {
  color: #93c5fd;
}

/* ===== My bets panel ===== */
.my-bets-panel {
  margin-top: 12px;
}

.my-bets-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.1s;
}

.my-bets-head::-webkit-details-marker { display: none; }
.my-bets-head::marker { display: none; }

.my-bets-panel[open] .my-bets-head {
  border-bottom-color: var(--line);
}

.my-bets-title {
  font-size: 14px;
  font-weight: 950;
  color: var(--floral-white);
}

.my-bets-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
}

.my-bets-w { color: #10b981; }
.my-bets-l { color: var(--crimson-carrot); }

.my-bets-caret {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.my-bets-panel[open] .my-bets-caret {
  transform: rotate(180deg);
}

.my-bets-table {
  display: grid;
}

.my-bets-row {
  display: grid;
  grid-template-columns: 64px minmax(0,1fr) 64px minmax(0,1fr);
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.my-bets-row:last-child {
  border-bottom: 0;
}

.my-bets-header {
  min-height: 36px;
  font-size: 11px;
  font-weight: 950;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.my-bets-row.is-win {
  background: rgba(16, 185, 129, 0.03);
}

.my-bets-row.is-loss {
  background: rgba(244, 44, 4, 0.025);
}

.my-bet-pl {
  font-weight: 950;
}

.my-bets-row.is-win  .my-bet-pl { color: #10b981; }
.my-bets-row.is-loss .my-bet-pl { color: #ef4444; }

.my-bets-row.is-win span:nth-child(3)  { color: var(--baby-pink); }
.my-bets-row.is-loss span:nth-child(3) { color: rgba(236, 229, 240, 0.3); }

/* ===== Sound toggle button ===== */
.sound-toggle-btn {
  font-size: 18px;
  line-height: 1;
}

/* ===== Race prize pool ===== */
.race-prize-pool {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(20, 17, 21, 0.4);
  display: grid;
  gap: 6px;
}

.race-prize-label {
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.race-prizes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.race-prize {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 950;
  padding: 4px 6px;
  border-radius: 7px;
  white-space: nowrap;
}

.race-prize-1 { background: rgba(234, 179, 8, 0.1);  color: #fbbf24; border: 1px solid rgba(234, 179, 8, 0.2); }
.race-prize-2 { background: rgba(148,163,184,0.07);   color: #94a3b8; border: 1px solid rgba(148,163,184,0.15); }
.race-prize-3 { background: rgba(180, 108, 48, 0.09); color: #cd7f32; border: 1px solid rgba(205,127,50,0.18); }

/* ===== VIP perks tooltip ===== */
.vip-badge {
  position: relative;
  cursor: default;
}

.vip-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 185px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  transform: translateY(4px);
  z-index: 500;
  box-shadow: 0 10px 36px rgba(0,0,0,0.55);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: normal;
  letter-spacing: 0;
  text-transform: none;
}

.vip-badge:hover .vip-tooltip,
.vip-badge:focus .vip-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.vip-tooltip strong {
  display: block;
  font-size: 12px;
  font-weight: 950;
  color: var(--floral-white);
  margin-bottom: 2px;
}

.vip-tooltip span {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}

.vip-tooltip span::before {
  content: '✓';
  flex: 0 0 auto;
  font-size: 10px;
  color: #10b981;
}

.vip-tooltip .vip-tooltip-wagered {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: rgba(236, 229, 240, 0.35);
  font-size: 10px;
}

.vip-tooltip .vip-tooltip-wagered::before { display: none; }

/* ===== Leaderboard tabs on crash-bets ===== */
.crash-bets-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.crash-bets-tab {
  flex: 1;
  height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  transition: color 0.12s, border-color 0.12s;
  margin-bottom: -1px;
}

.crash-bets-tab:hover {
  color: var(--floral-white);
}

.crash-bets-tab.is-active {
  color: var(--floral-white);
  border-bottom-color: var(--baby-pink);
}

.crash-leaders-row {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}

.crash-leaders-header {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
}

.leader-val {
  font-weight: 950;
  font-size: 13px;
}

.leader-riding {
  color: var(--baby-pink);
  animation: livepulse 1.8s ease-in-out infinite;
}

/* ===== Mobile slide-up bet sheet ===== */
.crash-mobile-bar {
  display: none;
}

@media (max-width: 820px) {
  .crash-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(calc(100% - 58px));
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 80;
    max-height: 82vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  }

  .crash-controls.is-open {
    transform: translateY(0);
  }

  .crash-mobile-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 14px;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    flex-direction: column;
  }

  .crash-mobile-handle-grip {
    width: 40px;
    height: 4px;
    border-radius: 99px;
    background: var(--line-strong);
    flex: 0 0 auto;
  }

  .crash-mobile-bar-label {
    font-size: 13px;
    font-weight: 950;
    color: var(--floral-white);
    letter-spacing: -0.01em;
  }

  .crash-mobile-bet-preview {
    font-size: 12px;
    font-weight: 800;
    color: #93c5fd;
  }

  .crash-main {
    padding-bottom: 64px;
  }

  .crash-mode-tabs,
  .crash-control-grid,
  .crash-quick-group,
  .crash-bet-button,
  .crash-control-note,
  .crash-seed-reveal {
    display: block;
  }
}

/* ===== Rakeback counter in user card ===== */
.user-rakeback {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 8px;
}

.rakeback-label {
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rakeback-amount {
  font-size: 12px;
  font-weight: 950;
  color: #10b981;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ===== Daily spin VIP banner ===== */
.spin-vip-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 10px;
  background: rgba(234, 179, 8, 0.05);
}

.spin-vip-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.spin-vip-text strong {
  color: #fbbf24;
  font-weight: 950;
}

/* ===== CSV export button on my-bets ===== */
.my-bets-export {
  margin-left: auto;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}

.my-bets-export:hover {
  color: var(--floral-white);
  background: var(--surface-raised);
}

/* ===== Crash streak toast ===== */
.streak-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 99px;
  background: var(--surface-raised);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 24px rgba(249,115,22,0.2);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s var(--press-ease);
  white-space: nowrap;
}

.streak-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.streak-toast strong {
  color: #f97316;
  font-weight: 950;
}

/* ── Deposit bonus banner ──────────────────────────────── */
.deposit-bonus-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 2200;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #064e3b, #065f46);
  border: 1px solid #10b981;
  border-radius: 16px;
  padding: 16px 28px;
  box-shadow: 0 8px 40px rgba(16,185,129,0.35), 0 0 0 1px rgba(16,185,129,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.deposit-bonus-banner.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.deposit-bonus-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.deposit-bonus-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.deposit-bonus-text strong {
  font-size: 16px;
  font-weight: 800;
  color: #ecfdf5;
}
.deposit-bonus-text span {
  font-size: 14px;
  color: #6ee7b7;
}

/* ── Confetti canvas ───────────────────────────────────── */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 2100;
  pointer-events: none;
  display: none;
}

/* ── Chat input area ───────────────────────────────────── */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0e0e12;
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #ece5f0;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}
.chat-input::placeholder { color: rgba(236,229,240,0.35); }
.chat-input:focus { border-color: rgba(59,130,246,0.5); }
.chat-send-btn {
  background: #3b82f6;
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 15px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.chat-send-btn:hover  { background: #2563eb; }
.chat-send-btn:active { transform: scale(0.92); }

/* ── Referral top-referrers list ──────────────────────── */
.referral-leaders {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.referral-leaders-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(236,229,240,0.45);
  margin-bottom: 8px;
}
.referral-leaders-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.referral-leader {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.referral-leader-you {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.18);
}
.referral-leader-rank {
  font-size: 11px;
  font-weight: 800;
  color: rgba(236,229,240,0.4);
  width: 16px;
  flex-shrink: 0;
  text-align: center;
}
.referral-leaders-list li:nth-child(1) .referral-leader-rank { color: #eab308; }
.referral-leaders-list li:nth-child(2) .referral-leader-rank { color: rgba(236,229,240,0.6); }
.referral-leaders-list li:nth-child(3) .referral-leader-rank { color: #cd7f32; }
.referral-leader-name {
  flex: 1;
  color: #ece5f0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.referral-leader-you-tag {
  font-size: 9px;
  background: rgba(59,130,246,0.3);
  color: #93c5fd;
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.referral-leader-count {
  color: #10b981;
  font-weight: 700;
  font-size: 11px;
}

/* ── Crash prediction feed ─────────────────────────────── */
.crash-prediction {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.prediction-label {
  color: rgba(236,229,240,0.6);
  font-weight: 500;
  white-space: nowrap;
}
.prediction-value {
  font-size: 16px;
  font-weight: 900;
  color: #a78bfa;
  min-width: 44px;
}
.prediction-track {
  flex: 1;
  min-width: 80px;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
.prediction-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 99px;
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}
.prediction-sample {
  color: rgba(236,229,240,0.4);
  font-size: 10px;
  white-space: nowrap;
  margin-left: auto;
}

/* ── Leaderboard page ──────────────────────────────────── */
.leaderboard-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lb-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.lb-period-tabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 4px;
}
.lb-period-tab {
  background: none;
  border: none;
  color: rgba(236,229,240,0.5);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.lb-period-tab.is-active {
  background: rgba(255,255,255,0.1);
  color: #ece5f0;
}
.lb-sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lb-sort-label {
  font-size: 12px;
  color: rgba(236,229,240,0.45);
  font-weight: 600;
}
.lb-sort-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(236,229,240,0.55);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.lb-sort-btn:hover { background: rgba(255,255,255,0.09); color: #ece5f0; }
.lb-sort-btn.is-active {
  background: rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.35);
  color: #93c5fd;
}

/* podium top-3 */
.lb-top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.lb-podium-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: border-color 0.2s;
}
.lb-podium-1 {
  background: rgba(234,179,8,0.07);
  border-color: rgba(234,179,8,0.25);
  order: 1;
}
.lb-podium-2 {
  background: rgba(148,163,184,0.05);
  border-color: rgba(148,163,184,0.18);
  order: 0;
  align-self: end;
  padding-bottom: 12px;
}
.lb-podium-3 {
  background: rgba(205,127,50,0.06);
  border-color: rgba(205,127,50,0.2);
  order: 2;
  align-self: end;
  padding-bottom: 12px;
}
.lb-podium-medal { font-size: 26px; line-height: 1; }
.lb-podium-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #ece5f0;
}
.lb-podium-name {
  font-size: 13px;
  font-weight: 700;
  color: #ece5f0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-podium-lv { font-size: 10px; color: rgba(236,229,240,0.4); font-weight: 600; }
.lb-podium-stat {
  font-size: 13px;
  font-weight: 800;
  color: #10b981;
}
.lb-me .lb-podium-stat { color: #60a5fa; }

/* table rows */
.lb-table {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
}
.lb-row {
  display: grid;
  grid-template-columns: 36px 1fr 110px 70px 80px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  gap: 8px;
}
.lb-row:last-child { border-bottom: none; }
.lb-header {
  background: rgba(255,255,255,0.04);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(236,229,240,0.4);
}
.lb-row-me {
  background: rgba(59,130,246,0.07);
  border-color: rgba(59,130,246,0.15);
}
.lb-col-rank { color: rgba(236,229,240,0.4); font-weight: 700; text-align: center; }
.lb-col-player {
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
}
.lb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #ece5f0;
  flex-shrink: 0;
}
.lb-lv {
  font-size: 10px;
  color: rgba(236,229,240,0.4);
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  padding: 1px 5px;
  font-weight: 600;
}
.lb-you-tag {
  font-size: 9px;
  background: rgba(59,130,246,0.3);
  color: #93c5fd;
  border-radius: 4px;
  padding: 1px 4px;
  font-weight: 700;
}
.lb-col-num { text-align: right; color: rgba(236,229,240,0.75); font-weight: 600; }
.lb-biggest { color: #10b981; font-weight: 800; }

@media (max-width: 580px) {
  .lb-top3 { grid-template-columns: 1fr; }
  .lb-podium-2, .lb-podium-3 { order: unset; align-self: stretch; padding-bottom: 18px; }
  .lb-row { grid-template-columns: 28px 1fr 90px 55px; }
  .lb-biggest { display: none; }
}

/* ── Hot streak badge on game cards ───────────────────── */
.game-hot-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #f97316, #F42C04);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(249,115,22,0.55);
  animation: hot-pulse 1.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hot-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(249,115,22,0.55); }
  50%       { box-shadow: 0 2px 20px rgba(249,115,22,1), 0 0 0 3px rgba(249,115,22,0.2); }
}

/* ── VIP progress bar ──────────────────────────────────── */
.vip-progress {
  grid-column: 1 / -1;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vip-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
}
.vip-progress-labels span:first-child { color: #eab308; }
.vip-progress-labels span:last-child  { color: rgba(236,229,240,0.45); }
.vip-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.vip-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ca8a04, #eab308, #f97316);
  border-radius: 99px;
  box-shadow: 0 0 8px rgba(234,179,8,0.55);
  transition: width 1s ease;
}
.vip-progress-sub {
  font-size: 10px;
  color: rgba(236,229,240,0.38);
}

/* ── Notification bell ─────────────────────────────────── */
.notif-btn {
  position: relative;
  font-size: 16px;
  line-height: 1;
}
.notif-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  background: #F42C04;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}
.notif-panel {
  position: fixed;
  top: 56px;
  right: 12px;
  width: 310px;
  background: #1a1b26;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  z-index: 1300;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.notif-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  font-weight: 700;
  color: #ece5f0;
}
.notif-clear {
  background: none;
  border: none;
  color: rgba(236,229,240,0.38);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}
.notif-clear:hover { color: rgba(236,229,240,0.7); }
.notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}
.notif-item:last-child { border-bottom: none; }
.notif-item-icon { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.notif-item div { flex: 1; }
.notif-item strong { display: block; color: #ece5f0; font-weight: 700; margin-bottom: 2px; font-size: 12px; }
.notif-item span { color: rgba(236,229,240,0.48); font-size: 11px; }
.notif-cta {
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.35);
  color: #93c5fd;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
  transition: background 0.15s;
}
.notif-cta:hover { background: rgba(59,130,246,0.35); }

/* ── Live cashout overlay on crash chart ──────────────── */
.cashout-feed {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
.cashout-pop {
  position: absolute;
  background: rgba(14,14,18,0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 11px;
  color: rgba(236,229,240,0.9);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
  max-width: 220px;
}
.cashout-pop.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cashout-pop.is-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cashout-pop-name { color: #60a5fa; font-weight: 700; }
.cashout-pop-mult { color: #10b981; font-weight: 800; }

/* ── PNG share button variant ──────────────────────────── */
.my-bets-png {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.28);
  color: #c4b5fd;
}
.my-bets-png:hover {
  background: rgba(139,92,246,0.24);
  border-color: rgba(139,92,246,0.45);
}

/* ── Game card hover preview ───────────────────────────── */
.game-card { position: relative; }
.game-card-hover-preview {
  position: absolute;
  inset: 0;
  background: rgba(14,14,18,0.92);
  border-radius: inherit;
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
  padding: 20px 16px;
}
.game-card:hover .game-card-hover-preview {
  opacity: 1;
  pointer-events: auto;
}
.hover-preview-rounds {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.hover-preview-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  color: rgba(236,229,240,0.7);
}
.hover-preview-win  { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.hover-preview-hot  { background: rgba(239,68,68,0.18);  color: #fca5a5; }
.hover-preview-warn { background: rgba(234,179,8,0.14);  color: #fde68a; }
.hover-preview-live {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: #ece5f0;
}
.hover-preview-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.2s ease-in-out infinite;
}
.hover-preview-play {
  background: rgba(59,130,246,0.18);
  border: 1px solid rgba(59,130,246,0.35);
  color: #93c5fd;
  border-radius: 9px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.hover-preview-play:hover { background: rgba(59,130,246,0.32); }

/* ── Race countdown ────────────────────────────────────── */
.race-countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-top: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.race-countdown-label { font-size: 11px; color: rgba(236,229,240,0.45); }
.race-countdown {
  font-size: 13px;
  font-weight: 800;
  color: #eab308;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ── Balance ghost fly-up animation ───────────────────── */
.balance-chip { position: relative; overflow: visible; }
.balance-ghost {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  z-index: 100;
}
.balance-ghost.is-flying {
  animation: ghost-fly 1.1s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes ghost-fly {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0);    }
  65%  { opacity: 1; transform: translateX(-50%) translateY(-26px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-44px); }
}

/* ── Achievement toasts ───────────────────────────────── */
.achievement-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  z-index: 2400;
  background: linear-gradient(135deg, #1e1b4b, #2e1065);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 16px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(139,92,246,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22,1,0.36,1);
  min-width: 260px;
  max-width: 360px;
}
.achievement-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.ach-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.achievement-toast div { display: flex; flex-direction: column; gap: 2px; }
.achievement-toast strong { font-size: 15px; font-weight: 800; color: #ece5f0; }
.achievement-toast span { font-size: 12px; color: rgba(236,229,240,0.52); }

/* ── Custom bet slip ──────────────────────────────────── */
.crash-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.crash-control-row .crash-control-note { margin-bottom: 0; flex: 1; }
.bet-star-btn {
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.22);
  border-radius: 8px;
  color: rgba(253,230,138,0.8);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.bet-star-btn:hover  { background: rgba(234,179,8,0.18); color: #fde68a; }
.bet-star-btn.is-saved { color: #eab308; border-color: rgba(234,179,8,0.4); }
.bet-load-chip {
  width: 100%;
  padding: 9px 14px;
  margin-bottom: 8px;
  background: rgba(234,179,8,0.07);
  border: 1px solid rgba(234,179,8,0.18);
  border-radius: 10px;
  color: rgba(236,229,240,0.68);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s;
  display: block;
}
.bet-load-chip:hover { background: rgba(234,179,8,0.14); }
.bet-load-chip strong { color: #eab308; }
.bet-load-chip.is-loaded { color: #10b981; border-color: rgba(16,185,129,0.28); cursor: default; }

/* ── Sparkline heatmap bars ────────────────────────────── */
.sl-bar { transition: opacity 0.2s; }
.sl-low  { fill: rgba(148,163,184,0.38); }
.sl-mid  { fill: url(#barMid); }
.sl-warm { fill: url(#barWarm); }
.sl-hot  { fill: url(#barHot); animation: bar-throb 1.4s ease-in-out infinite; }
@keyframes bar-throb {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}
.game-card-sparkline svg { display: block; overflow: visible; }

/* ── Crash hero card (game lobby featured section) ─────── */
.crash-hero-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0e1a, #0f1722, #0c1a0f);
  border: 1px solid rgba(16,185,129,0.25);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(16,185,129,0.08);
  position: relative;
  min-height: 240px;
  margin-bottom: 20px;
}
.crash-hero-link {
  display: block;
  position: relative;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
}
.crash-hero-graph {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.7;
}
.crash-hero-graph svg { width: 100%; height: 100%; }
.crash-hero-line { animation: hero-line-pulse 3s ease-in-out infinite; }
@keyframes hero-line-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
.crash-hero-dot { animation: hero-dot-pulse 1.2s ease-in-out infinite; }
@keyframes hero-dot-pulse {
  0%, 100% { r: 5; opacity: 1; }
  50%       { r: 8; opacity: 0.6; }
}
.crash-hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 24px;
  min-height: 240px;
  background: linear-gradient(180deg, rgba(10,14,26,0.5) 0%, rgba(10,14,26,0.1) 40%, rgba(10,14,26,0.75) 100%);
}
.crash-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.crash-hero-live-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: 0.06em;
}
.crash-hero-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.2s ease-in-out infinite;
}
.crash-hero-game-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(236,229,240,0.4);
}
.crash-hero-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.crash-hero-title {
  font-size: 38px;
  font-weight: 950;
  color: #ece5f0;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.crash-hero-mult-wrap { display: flex; align-items: baseline; gap: 10px; }
.crash-hero-mult {
  font-size: 28px;
  font-weight: 900;
  color: #10b981;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}
.crash-hero-mult.is-high    { color: #eab308; }
.crash-hero-mult.is-extreme { color: #ef4444; text-shadow: 0 0 20px rgba(239,68,68,0.6); }
.crash-hero-mult-label {
  font-size: 12px;
  color: rgba(236,229,240,0.45);
  font-weight: 500;
}
.crash-hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.crash-hero-recent { display: flex; align-items: center; gap: 8px; }
.crash-hero-recent-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(236,229,240,0.35);
  text-transform: uppercase;
}
.crash-hero-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.crash-hero-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
  transition: box-shadow 0.2s, transform 0.15s;
}
.crash-hero-link:hover .crash-hero-cta {
  box-shadow: 0 6px 24px rgba(16,185,129,0.6);
  transform: translateY(-1px);
}

/* ── Coming next section ───────────────────────────────── */
.coming-next-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.coming-next-title {
  font-size: 22px;
  font-weight: 800;
  color: #ece5f0;
  margin: 4px 0 6px;
}
.coming-next-sub {
  font-size: 13px;
  color: rgba(236,229,240,0.5);
  margin: 0;
}
.coming-next-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 160px;
  text-align: right;
}
.coming-next-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(236,229,240,0.55);
}
.coming-next-progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.coming-next-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 99px;
}
.coming-next-progress-sub {
  font-size: 10px;
  color: rgba(236,229,240,0.35);
}
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.upcoming-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.upcoming-card-coinflip { border-top: 3px solid #3b82f6; }
.upcoming-card-mines    { border-top: 3px solid #8b5cf6; }
.upcoming-card-battles  { border-top: 3px solid #f97316; }
.upcoming-card:hover    { background: rgba(255,255,255,0.05); }

.upcoming-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.upcoming-card-icon {
  font-size: 26px;
  line-height: 1;
}
.upcoming-card-coinflip .upcoming-card-icon { color: #60a5fa; }
.upcoming-card-mines    .upcoming-card-icon { color: #a78bfa; }
.upcoming-card-battles  .upcoming-card-icon { color: #fb923c; }
.upcoming-card-eta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(236,229,240,0.45);
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 2px 8px;
}
.upcoming-card-name {
  font-size: 18px;
  font-weight: 800;
  color: #ece5f0;
  margin: 0;
}
.upcoming-card-desc {
  font-size: 12px;
  color: rgba(236,229,240,0.55);
  line-height: 1.6;
  margin: 0;
}
.upcoming-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.upcoming-card-features li {
  font-size: 12px;
  color: rgba(236,229,240,0.7);
}
.upcoming-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.upcoming-card-interest { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.upcoming-interest-bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px;
  overflow: hidden;
}
.upcoming-interest-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 99px;
}
.upcoming-card-interest span {
  font-size: 10px;
  color: rgba(236,229,240,0.4);
}
.upcoming-notify-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: rgba(236,229,240,0.75);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.upcoming-notify-btn:hover  { background: rgba(59,130,246,0.2); color: #93c5fd; border-color: rgba(59,130,246,0.3); }
.upcoming-notify-btn.is-notified { background: rgba(16,185,129,0.12); color: #6ee7b7; border-color: rgba(16,185,129,0.25); cursor: default; }

@media (max-width: 700px) {
  .upcoming-grid { grid-template-columns: 1fr; }
  .coming-next-header { flex-direction: column; }
  .coming-next-progress { text-align: left; }
}

/* ── Deposit hour bonus strip ──────────────────────────── */
.deposit-hour-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(234,179,8,0.07);
  border: 1px solid rgba(234,179,8,0.22);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.deposit-hour-strip-icon { font-size: 22px; flex-shrink: 0; }
.deposit-hour-strip div  { display: flex; flex-direction: column; gap: 2px; }
.deposit-hour-strip strong { font-size: 13px; font-weight: 800; color: #fde68a; }
.deposit-hour-strip span  { font-size: 12px; color: rgba(236,229,240,0.55); }
.deposit-hour-strip .deposit-hour-timer { color: #eab308; font-variant-numeric: tabular-nums; }

/* ── Bet size slider ───────────────────────────────────── */
.bet-slider-wrap {
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bet-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b82f6 var(--sl, 20%), rgba(255,255,255,0.1) var(--sl, 20%));
  outline: none;
  cursor: pointer;
}
.bet-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.bet-slider::-webkit-slider-thumb:hover  { box-shadow: 0 2px 12px rgba(59,130,246,0.6); }
.bet-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  cursor: pointer;
}
.bet-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(236,229,240,0.35);
  font-weight: 600;
  padding: 0 2px;
}

/* ── Chat share button on bet rows ─────────────────────── */
.my-bets-row { grid-template-columns: 60px 1fr 80px 1fr 28px; }
.bet-share-btn {
  background: none;
  border: none;
  color: rgba(236,229,240,0.35);
  font-size: 12px;
  cursor: pointer;
  padding: 2px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.bet-share-btn:hover { color: #ece5f0; background: rgba(255,255,255,0.07); }

/* ── Streak bonus glow on bet button ───────────────────── */
.crash-bet-button.has-streak-bonus {
  background: linear-gradient(135deg, #ca8a04, #eab308, #f97316) !important;
  box-shadow: 0 0 0 2px rgba(234,179,8,0.4), 0 4px 20px rgba(234,179,8,0.35) !important;
  animation: streak-pulse 1.5s ease-in-out infinite;
}
.crash-bet-button.has-streak-bonus::after {
  content: '+10%';
  position: absolute;
  top: -10px;
  right: -8px;
  background: #eab308;
  color: #000;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
@keyframes streak-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(234,179,8,0.4), 0 4px 20px rgba(234,179,8,0.35); }
  50%       { box-shadow: 0 0 0 4px rgba(234,179,8,0.6), 0 6px 30px rgba(234,179,8,0.55); }
}

/* ── Leaderboard: clickable name buttons ───────────────── */
.lb-name-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: #ece5f0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  transition: color 0.15s;
}
.lb-name-link:hover { color: #60a5fa; text-decoration: underline; text-decoration-color: rgba(96,165,250,0.5); }
.lb-name-link strong { color: #60a5fa; }
.lb-podium-card .lb-name-link { font-size: 13px; }

/* ── Player profile modal ──────────────────────────────── */
.player-profile-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
}
.player-profile-modal.is-open { display: flex; align-items: center; justify-content: center; }
.pm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.pm-panel {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pm-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(236,229,240,0.6);
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}
.pm-close:hover { background: rgba(255,255,255,0.13); color: #ece5f0; }
.pm-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.pm-avatar-wrap { position: relative; flex-shrink: 0; }
.pm-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
}
.pm-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #1e293b;
  border: 2px solid #3b82f6;
  color: #93c5fd;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
}
.pm-meta { display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.pm-username {
  font-size: 18px;
  font-weight: 800;
  color: #ece5f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-badges-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pm-vip-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
}
.pm-vip-badge.vip-diamond { background: rgba(59,130,246,0.18); color: #93c5fd; border: 1px solid rgba(59,130,246,0.3); }
.pm-vip-badge.vip-gold    { background: rgba(234,179,8,0.15); color: #fbbf24; border: 1px solid rgba(234,179,8,0.28); }
.pm-vip-badge.vip-silver  { background: rgba(148,163,184,0.14); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.28); }
.pm-vip-badge.vip-bronze  { background: rgba(180,108,48,0.15); color: #cd7f32; border: 1px solid rgba(205,127,50,0.28); }
.pm-joined { font-size: 11px; color: rgba(236,229,240,0.4); }
.pm-bio { font-size: 12px; color: rgba(236,229,240,0.55); font-style: italic; margin: 0; }
.pm-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pm-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pm-stat span { font-size: 11px; color: rgba(236,229,240,0.45); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.pm-stat strong { font-size: 15px; font-weight: 800; color: #ece5f0; }
.pm-section { display: flex; flex-direction: column; gap: 8px; }
.pm-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(236,229,240,0.4); margin: 0; }
.pm-rounds { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-sparkline {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px;
  height: 68px;
  overflow: hidden;
}
.pm-sparkline svg { width: 100%; height: 100%; display: block; }
.pm-challenge-btn {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(236,229,240,0.45);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pm-challenge-soon {
  font-size: 10px;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 5px;
  color: rgba(236,229,240,0.4);
}

/* ── Round recap ghost toast ───────────────────────────── */
.round-recap {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  white-space: nowrap;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100% - 32px);
  white-space: normal;
  text-align: center;
}
.round-recap.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.round-recap-win {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  color: #34d399;
}
.round-recap-win strong { color: #6ee7b7; }
.round-recap-loss {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.3);
  color: rgba(248,113,113,0.9);
}

/* ── Avatar color picker ───────────────────────────────── */
.user-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.avatar-color-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  z-index: 200;
}
.avatar-color-picker[hidden] { display: none; }
.acp-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s;
  padding: 0;
}
.acp-swatch:hover { transform: scale(1.2); }
.acp-swatch.is-active { border-color: #fff; transform: scale(1.15); }

/* ── Daily login streak ────────────────────────────────── */
.user-streak {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  margin-bottom: 4px;
}
.user-streak-flame { font-size: 18px; line-height: 1; flex-shrink: 0; }
.user-streak-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.user-streak-count { font-size: 12px; font-weight: 700; color: #ece5f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-streak-sub   { font-size: 10px; color: rgba(236,229,240,0.45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-streak.is-hot {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.28);
}
.user-streak.is-hot .user-streak-count { color: #fb923c; }
.user-streak.is-milestone {
  background: rgba(234,179,8,0.1);
  border-color: rgba(234,179,8,0.28);
}
.user-streak.is-milestone .user-streak-count { color: #fbbf24; }

/* ── Live race progress bars ───────────────────────────── */
.race-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.race-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.race-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
}
.race-name { font-size: 12px; font-weight: 600; color: rgba(236,229,240,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-amount { font-size: 11px; font-weight: 700; color: rgba(236,229,240,0.55); white-space: nowrap; }
.race-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.race-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.2s ease;
}
.race-bar-1 { background: linear-gradient(90deg, #fbbf24, #f97316); }
.race-bar-2 { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.race-bar-3 { background: linear-gradient(90deg, #cd7f32, #b45309); }
.race-item-1 .race-amount { color: #fbbf24; }
.race-item-2 .race-amount { color: #cbd5e1; }
.race-item-3 .race-amount { color: #b45309; }

/* ── Crash prediction vote ─────────────────────────────── */
.crash-vote { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.crash-vote-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crash-vote-btn {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.28);
  color: #93c5fd;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.crash-vote-btn:hover:not(:disabled) { background: rgba(59,130,246,0.2); color: #bfdbfe; }
.crash-vote-btn:disabled { opacity: 0.7; cursor: default; }
.crash-vote-acc { font-size: 10px; color: rgba(236,229,240,0.4); white-space: nowrap; }
.crash-vote-acc strong { color: rgba(236,229,240,0.7); }
.crash-vote-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.crash-vote-panel[hidden] { display: none; }
.crash-vote-slider-row { font-size: 11px; color: rgba(236,229,240,0.6); }
.crash-vote-slider-row strong { color: #60a5fa; }
.crash-vote-slider {
  width: 100%;
  accent-color: #3b82f6;
  height: 4px;
  cursor: pointer;
}
.crash-vote-range { display: flex; justify-content: space-between; font-size: 9px; color: rgba(236,229,240,0.35); }
.crash-vote-submit {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border: none;
  border-radius: 7px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  padding: 7px 14px;
  cursor: pointer;
  align-self: flex-end;
  transition: opacity 0.15s;
}
.crash-vote-submit:hover { opacity: 0.85; }
.crash-vote-submit:disabled { opacity: 0.5; cursor: default; }
.crash-vote-result {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
}
.crash-vote-result[hidden] { display: none; }
.crash-vote-result.is-correct { color: #34d399; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); }
.crash-vote-result.is-wrong   { color: #f87171; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.22); }

/* ── Discord share button ──────────────────────────────── */
.my-bets-discord {
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.3) !important;
  color: #a5b4fc !important;
}
.my-bets-discord:hover { background: rgba(88,101,242,0.25) !important; }

/* ── Challenge section in profile modal ────────────────── */
.pm-challenge-section { display: flex; flex-direction: column; gap: 0; }
.pm-challenge-toggle {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(236,229,240,0.75);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pm-challenge-toggle:hover { background: rgba(255,255,255,0.08); color: #ece5f0; }
.pm-challenge-toggle.is-open { border-color: rgba(99,102,241,0.4); color: #a5b4fc; }
.pm-challenge-arrow { font-size: 16px; color: rgba(236,229,240,0.35); transition: transform 0.2s; }
.pm-challenge-toggle.is-open .pm-challenge-arrow { transform: rotate(90deg); }
.pm-challenge-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pm-challenge-panel[hidden] { display: none; }
.pm-challenge-note { font-size: 11px; color: rgba(236,229,240,0.45); margin: 0; }
.pm-challenge-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}
.pm-c-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(236,229,240,0.6);
  font-weight: 600;
}
.pm-c-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #fff;
}
.pm-c-opp { background: linear-gradient(135deg, #ef4444, #f97316); }
.pm-c-flip-icon { font-size: 24px; }
.pm-c-pill-label { font-size: 10px; font-weight: 700; color: rgba(236,229,240,0.4); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.pm-c-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pm-c-pill {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(236,229,240,0.6);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pm-c-pill:hover { background: rgba(255,255,255,0.09); color: #ece5f0; }
.pm-c-pill.is-active { background: rgba(99,102,241,0.2); border-color: rgba(99,102,241,0.4); color: #a5b4fc; }
.pm-challenge-send {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pm-challenge-send:hover { opacity: 0.88; }
.pm-challenge-send:disabled { opacity: 0.45; cursor: default; }
.pm-challenge-sent { font-size: 11px; color: #34d399; margin: 0; font-weight: 600; }

/* ── Round history ticker ──────────────────────────────── */
.crash-round-ticker {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 64px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
  max-height: calc(100% - 24px);
  overflow: hidden;
  pointer-events: none;
}
.ticker-chip {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 6px;
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.02em;
}
.ticker-chip.is-in { opacity: 1; transform: translateY(0); }
.tc-extreme { background: rgba(239,68,68,0.25); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35); }
.tc-hot     { background: rgba(249,115,22,0.2); color: #fdba74; border: 1px solid rgba(249,115,22,0.3); }
.tc-win     { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.tc-loss    { background: rgba(148,163,184,0.1); color: rgba(148,163,184,0.7); border: 1px solid rgba(148,163,184,0.15); }

/* ── Bet insights panel ────────────────────────────────── */
.bet-insights {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.bet-insights-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(236,229,240,0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bet-insights-count { font-weight: 500; font-size: 10px; color: rgba(236,229,240,0.35); text-transform: none; letter-spacing: 0; }
.bet-insights-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.bet-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: rgba(236,229,240,0.65);
  line-height: 1.4;
}
.bi-icon { flex-shrink: 0; font-size: 13px; line-height: 1.4; }
.bet-insight-item strong { color: #ece5f0; }
.ins-pos { color: #34d399; }
.ins-neg { color: #f87171; }

/* ── Trophy case ───────────────────────────────────────── */
.pm-trophies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pm-trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: default;
  filter: grayscale(1);
  opacity: 0.35;
  transition: opacity 0.2s, filter 0.2s;
}
.pm-trophy.is-unlocked {
  filter: none;
  opacity: 1;
  background: rgba(234,179,8,0.07);
  border-color: rgba(234,179,8,0.2);
}
.pm-trophy-icon { font-size: 22px; line-height: 1; }
.pm-trophy-name { font-size: 9px; font-weight: 700; color: rgba(236,229,240,0.55); text-align: center; text-transform: uppercase; letter-spacing: 0.04em; }
.pm-trophy.is-unlocked .pm-trophy-name { color: #fbbf24; }

/* ── Quick deposit popup ───────────────────────────────── */
.quick-deposit-wrap { position: relative; }
.quick-deposit-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(236,229,240,0.6);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.quick-deposit-toggle:hover { background: rgba(255,255,255,0.12); color: #ece5f0; }
.quick-deposit-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  z-index: 500;
}
.quick-deposit-pop[hidden] { display: none; }
.qdp-label { font-size: 9px; font-weight: 700; color: rgba(236,229,240,0.38); text-transform: uppercase; letter-spacing: 0.07em; margin: 0 0 2px; }
.qdp-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(16,185,129,0.25);
  background: rgba(16,185,129,0.1);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: background 0.12s, color 0.12s;
}
.qdp-btn:hover:not(:disabled) { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.qdp-btn:disabled { opacity: 0.7; cursor: default; }

/* ── Referral milestone progress ───────────────────────── */
.referral-milestone { margin-top: 8px; }
.ref-milestone-bar-wrap { position: relative; padding-bottom: 18px; }
.ref-milestone-track {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: visible;
  position: relative;
}
.ref-milestone-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #eab308);
  border-radius: 3px;
  transition: width 1s ease;
}
.ref-milestones-row {
  position: absolute;
  top: -7px;
  left: 0;
  right: 0;
  pointer-events: none;
}
.ref-ms {
  position: absolute;
  font-size: 14px;
  line-height: 1;
  transform: translateX(-50%);
  filter: grayscale(1);
  opacity: 0.4;
  transition: filter 0.3s, opacity 0.3s;
}
.ref-ms#ref-ms-bronze { left: 20%; }
.ref-ms#ref-ms-silver { left: 40%; }
.ref-ms#ref-ms-gold   { left: 100%; }
.ref-ms.is-unlocked { filter: none; opacity: 1; }
.ref-milestone-label { font-size: 10px; color: rgba(236,229,240,0.45); margin: 2px 0 0; }

/* ── Crash goal setter ─────────────────────────────────── */
.crash-goal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.crash-goal-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(236,229,240,0.55);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.crash-goal-inputs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.crash-goal-input {
  width: 72px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #ece5f0;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: right;
  outline: none;
  transition: border-color 0.15s;
}
.crash-goal-input:focus { border-color: rgba(99,102,241,0.5); }
.crash-goal-unit { font-size: 12px; font-weight: 700; color: rgba(236,229,240,0.4); }
.crash-goal-set {
  padding: 5px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.crash-goal-set:hover { background: rgba(99,102,241,0.35); color: #c7d2fe; }
.crash-goal-status { font-size: 10px; font-weight: 700; color: rgba(236,229,240,0.35); white-space: nowrap; }
.crash-goal-status.is-hit { color: #fbbf24; }
.crash-goal-status.is-today { color: rgba(236,229,240,0.45); }
@keyframes goal-flash-anim {
  0%   { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
  30%  { box-shadow: 0 0 0 12px rgba(251,191,36,0.45); background: rgba(251,191,36,0.07); }
  100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); background: transparent; }
}
.crash-card.goal-flash { animation: goal-flash-anim 0.9s ease-out; }
.goal-hit-toast {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.goal-hit-toast.is-in { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Diamond deposit rain ──────────────────────────────── */
.deposit-diamond-rain {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 180px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.deposit-diamond-rain.is-raining { opacity: 1; }
@keyframes gem-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  80%  { opacity: 0.9; }
  100% { transform: translateY(160px) rotate(180deg); opacity: 0; }
}
.deposit-rain-gem {
  position: absolute;
  top: 0;
  font-size: 18px;
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56,189,248,0.7);
  animation: gem-fall linear both;
  pointer-events: none;
}
.deposit-cta-btn:disabled {
  opacity: 0.7;
  cursor: default;
}
.deposit-drawer-panel { position: relative; overflow: hidden; }

/* ── Friend activity feed ──────────────────────────────── */
.sidebar-friends {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sidebar-friends-title { font-size: 11px; font-weight: 700; color: rgba(236,229,240,0.55); text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-friends-count {
  background: rgba(16,185,129,0.15);
  color: #34d399;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(16,185,129,0.25);
}
.friends-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.friend-item { display: flex; align-items: center; gap: 8px; }
.friend-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.friend-av-a { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.friend-av-b { background: linear-gradient(135deg, #ef4444, #f97316); }
.friend-av-c { background: linear-gradient(135deg, #10b981, #0891b2); }
.friend-av-d { background: linear-gradient(135deg, #f59e0b, #d97706); }
.friend-info { flex: 1; min-width: 0; }
.friend-name { display: block; font-size: 11px; font-weight: 700; color: rgba(236,229,240,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-status { display: block; font-size: 10px; color: rgba(236,229,240,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend-mult { color: #fbbf24; font-weight: 700; }
.friend-watch-btn {
  font-size: 10px;
  font-weight: 700;
  color: #60a5fa;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.friend-watch-btn:hover { background: rgba(96,165,250,0.2); color: #93c5fd; }

/* ── Global jackpot ticker ─────────────────────────────── */
.jackpot-ticker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(234,179,8,0.08), rgba(251,191,36,0.04));
  border-bottom: 1px solid rgba(234,179,8,0.15);
}
.jackpot-ticker-label { font-size: 10px; font-weight: 700; color: rgba(234,179,8,0.7); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.jackpot-ticker-value {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.jackpot-ticker-hint { font-size: 9px; color: rgba(234,179,8,0.45); font-weight: 600; white-space: nowrap; }

/* ── VIP upgrade celebration modal ────────────────────── */
.vip-upgrade-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3500;
  align-items: center;
  justify-content: center;
}
.vip-upgrade-modal.is-open { display: flex; }
.vip-upgrade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
}
.vip-upgrade-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(234,179,8,0.3);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 60px rgba(234,179,8,0.15), 0 20px 60px rgba(0,0,0,0.6);
  animation: vip-card-in 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes vip-card-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.vip-upgrade-close {
  position: absolute;
  top: 12px; right: 14px;
  background: transparent;
  border: none;
  color: rgba(236,229,240,0.4);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.vip-upgrade-close:hover { color: #ece5f0; }
.vip-upgrade-badge {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 8px;
  animation: vip-badge-bounce 0.6s 0.2s cubic-bezier(0.2,0.8,0.2,1) both;
}
@keyframes vip-badge-bounce {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  70%  { transform: scale(1.2) rotate(5deg); opacity: 1; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
.vip-upgrade-tier-label {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.vip-upgrade-title {
  font-size: 24px;
  font-weight: 900;
  color: #ece5f0;
  margin: 0 0 6px;
}
.vip-upgrade-sub { font-size: 13px; color: rgba(236,229,240,0.5); margin: 0 0 20px; }
.vip-upgrade-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.vip-upgrade-perks li {
  font-size: 13px;
  font-weight: 600;
  color: rgba(236,229,240,0.75);
  padding: 8px 12px;
  background: rgba(234,179,8,0.06);
  border: 1px solid rgba(234,179,8,0.15);
  border-radius: 8px;
}
.vip-upgrade-claim {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #b45309, #d97706, #f59e0b);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.vip-upgrade-claim:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Hot seat leaderboard ──────────────────────────────── */
.lb-hot-seat {
  position: relative;
  border: 2px solid rgba(234,179,8,0.5) !important;
  box-shadow: 0 0 18px rgba(234,179,8,0.18), 0 4px 20px rgba(0,0,0,0.4);
  animation: hot-seat-pulse 2.5s ease-in-out infinite;
}
@keyframes hot-seat-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(234,179,8,0.15), 0 4px 20px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 0 28px rgba(234,179,8,0.4),  0 4px 20px rgba(0,0,0,0.4); }
}
.lb-hot-seat.lb-hot-pulse { animation: hot-seat-flash 0.7s ease-out; }
@keyframes hot-seat-flash {
  0%   { box-shadow: 0 0 0px rgba(234,179,8,0.2); }
  35%  { box-shadow: 0 0 40px rgba(234,179,8,0.7); }
  100% { box-shadow: 0 0 10px rgba(234,179,8,0.15); }
}
.lb-hot-crown {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(234,179,8,0.7));
  animation: crown-bob 1.8s ease-in-out infinite;
}
@keyframes crown-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-3px); }
}
.lb-share-card-btn {
  margin-left: auto;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.1);
  color: #a5b4fc;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.lb-share-card-btn:hover { background: rgba(99,102,241,0.22); color: #c7d2fe; }

/* ── Cashout ladder ────────────────────────────────────── */
.cashout-ladder {
  position: absolute;
  left: 8px;
  top: 12px;
  bottom: 12px;
  width: 44px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}
.co-rung {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.15s;
}
.co-rung.is-active { opacity: 0.85; }
.co-rung.is-passed { opacity: 1; }
.co-rung.is-passed .co-check { color: #34d399; text-shadow: 0 0 6px rgba(52,211,153,0.8); }
.co-rung.is-active .co-check { color: #fbbf24; }
.co-check {
  font-size: 11px;
  font-weight: 900;
  color: rgba(236,229,240,0.35);
  line-height: 1;
  transition: color 0.2s, text-shadow 0.2s;
}
.co-mult {
  font-size: 9px;
  font-weight: 800;
  color: rgba(236,229,240,0.4);
  letter-spacing: 0.02em;
  line-height: 1;
}
.co-rung.is-passed .co-mult { color: #6ee7b7; }
.co-rung.is-active .co-mult { color: #fde68a; }
.crash-chart { position: relative; padding-left: 48px; }

/* ── Provably fair seed viewer ─────────────────────────── */
.crash-seed-verify-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.crash-seed-verify-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(99,102,241,0.35);
  background: rgba(99,102,241,0.12);
  color: #a5b4fc;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.crash-seed-verify-btn:hover:not(:disabled) { background: rgba(99,102,241,0.25); color: #c7d2fe; }
.crash-seed-verify-btn:disabled { opacity: 0.6; cursor: default; }
.crash-seed-verify-result {
  font-size: 11px;
  font-weight: 700;
  color: rgba(236,229,240,0.5);
}
.crash-seed-verify-result.is-ok { color: #34d399; }
.seed-revealed { color: #fbbf24 !important; }

/* ── Multiplier milestone fireworks ───────────────────── */
.crash-fireworks-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  border-radius: inherit;
}

/* ── Instant replay button ─────────────────────────────── */
.crash-replay-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(16,185,129,0.35);
  background: rgba(16,185,129,0.12);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  z-index: 20;
  transition: background 0.15s, opacity 0.15s;
  animation: replay-pop 0.3s cubic-bezier(0.2,0.8,0.2,1);
}
.crash-replay-btn:hover:not(:disabled) { background: rgba(16,185,129,0.22); }
.crash-replay-btn:disabled { opacity: 0.5; cursor: default; }
@keyframes replay-pop {
  from { transform: translateX(-50%) scale(0.8); opacity: 0; }
  to   { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ── Bet history heatmap ───────────────────────────────── */
.bet-heatmap {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}
.bet-heatmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bet-heatmap-title { font-size: 11px; font-weight: 700; color: rgba(236,229,240,0.6); text-transform: uppercase; letter-spacing: 0.05em; }
.bet-heatmap-legend { display: flex; align-items: center; gap: 8px; font-size: 10px; color: rgba(236,229,240,0.4); }
.bhm-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }
.bhm-dot.bhm-win { background: #34d399; }
.bhm-dot.bhm-loss { background: #f87171; }
.bet-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 3px;
}
.bhm-cell {
  aspect-ratio: 1;
  border-radius: 3px;
  transition: transform 0.1s;
}
.bhm-cell:hover { transform: scale(1.3); z-index: 1; }
.bhm-cell.bhm-win   { background: rgba(52,211,153,0.5); border: 1px solid rgba(52,211,153,0.3); }
.bhm-cell.bhm-loss  { background: rgba(248,113,113,0.45); border: 1px solid rgba(248,113,113,0.25); }
.bhm-cell.bhm-empty { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.07); }
.bet-heatmap-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 4px;
  font-size: 9px;
  color: rgba(236,229,240,0.35);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── VIP perks carousel ────────────────────────────────── */
.vip-carousel-section {
  margin: 32px 0;
}
.vip-carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.vip-carousel-title {
  font-size: 22px;
  font-weight: 900;
  color: #ece5f0;
  margin: 4px 0 0;
}
.vip-carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.vip-carousel-track::-webkit-scrollbar { display: none; }
.vip-perk-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  border-radius: 16px;
  padding: 20px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: default;
}
.vip-perk-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
.vip-perk-card-rakeback  { border-color: rgba(234,179,8,0.2); background: rgba(234,179,8,0.04); }
.vip-perk-card-support   { border-color: rgba(99,102,241,0.2); background: rgba(99,102,241,0.04); }
.vip-perk-card-flair     { border-color: rgba(167,139,250,0.2); background: rgba(167,139,250,0.04); }
.vip-perk-card-withdraw  { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.04); }
.vip-perk-card-bonus     { border-color: rgba(249,115,22,0.2); background: rgba(249,115,22,0.04); }
.vip-perk-card-games     { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.vip-perk-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.vip-perk-name { font-size: 11px; font-weight: 700; color: rgba(236,229,240,0.5); text-transform: uppercase; letter-spacing: 0.06em; }
.vip-perk-value { font-size: 18px; font-weight: 900; color: #ece5f0; line-height: 1.1; }
.vip-perk-desc { font-size: 11px; color: rgba(236,229,240,0.45); line-height: 1.5; margin: 4px 0 0; }
.vip-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.vpc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.vpc-dot.is-active { background: #fbbf24; transform: scale(1.35); }

/* ── Chat GIF animations ───────────────────────────────── */
.chat-gif {
  display: inline-block;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  vertical-align: middle;
}
@keyframes gif-spin { to { transform: rotate(360deg); } }
@keyframes gif-bounce { 0%,100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-10px) scale(1.15); } 70% { transform: translateY(-4px) scale(0.95); } }
@keyframes gif-hype { 0%,100% { letter-spacing: 0.05em; color: #fbbf24; } 50% { letter-spacing: 0.25em; color: #f97316; } }
@keyframes gif-rocket { 0% { transform: translateY(0) rotate(-45deg); } 50% { transform: translateY(-12px) rotate(-45deg); } 100% { transform: translateY(0) rotate(-45deg); } }
.chat-gif-diamond { animation: gif-spin 1.2s linear infinite; color: #38bdf8; }
.chat-gif-trophy  { animation: gif-bounce 0.9s ease-in-out infinite; }
.chat-gif-hype    { animation: gif-hype 0.6s ease-in-out infinite; }
.chat-gif-gg      { color: #34d399; animation: gif-bounce 0.8s ease-in-out infinite; font-size: 18px; }
.chat-gif-rocket  { animation: gif-rocket 0.7s ease-in-out infinite; font-size: 22px; }

/* ── Wager breakdown donut ─────────────────────────────── */
.bet-donut-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bet-donut-svg { width: 80px; height: 80px; flex-shrink: 0; }
.bet-donut-bg  { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 10; }
.bet-donut-win {
  fill: none;
  stroke: #34d399;
  stroke-width: 10;
  stroke-linecap: round;
  transform-origin: 40px 40px;
  transition: stroke-dasharray 0.6s ease;
}
.bet-donut-loss {
  fill: none;
  stroke: #f87171;
  stroke-width: 10;
  stroke-linecap: round;
  transform-origin: 40px 40px;
  transition: stroke-dasharray 0.6s ease;
}
.bet-donut-label {
  fill: #ece5f0;
  font-size: 13px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: system-ui, sans-serif;
}
.bet-donut-legend { display: flex; flex-direction: column; gap: 6px; }
.bet-donut-stat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(236,229,240,0.6); font-weight: 600; }
.bdl-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bdl-dot.bdl-win { background: #34d399; }
.bdl-dot.bdl-loss { background: #f87171; }
.bet-donut-pnl { font-weight: 700; color: rgba(236,229,240,0.55); margin-top: 2px; }
.bet-donut-pnl.is-pos { color: #34d399; }
.bet-donut-pnl.is-neg { color: #f87171; }

/* ── VIP flip card ─────────────────────────────────────── */
.vip-perk-flipper {
  flex: 0 0 180px;
  scroll-snap-align: start;
  height: 210px;
  perspective: 700px;
  cursor: pointer;
  position: relative;
}
.vip-perk-front,
.vip-perk-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 20px 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.4,0.2,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vip-perk-front {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transform: rotateY(0deg);
}
.vip-perk-back {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,23,42,0.96);
  transform: rotateY(180deg);
  overflow: hidden;
}
.vip-perk-flipper:hover .vip-perk-front { transform: rotateY(-180deg); }
.vip-perk-flipper:hover .vip-perk-back  { transform: rotateY(0deg); }
.vip-perk-card-rakeback .vip-perk-front  { border-color: rgba(234,179,8,0.2); background: rgba(234,179,8,0.04); }
.vip-perk-card-support .vip-perk-front   { border-color: rgba(99,102,241,0.2); background: rgba(99,102,241,0.04); }
.vip-perk-card-flair .vip-perk-front     { border-color: rgba(167,139,250,0.2); background: rgba(167,139,250,0.04); }
.vip-perk-card-withdraw .vip-perk-front  { border-color: rgba(16,185,129,0.2); background: rgba(16,185,129,0.04); }
.vip-perk-card-bonus .vip-perk-front     { border-color: rgba(249,115,22,0.2); background: rgba(249,115,22,0.04); }
.vip-perk-card-games .vip-perk-front     { border-color: rgba(239,68,68,0.2); background: rgba(239,68,68,0.04); }
.vip-flip-hint { font-size: 9px; color: rgba(236,229,240,0.25); margin-top: auto; letter-spacing: 0.05em; }
.vip-perk-back-title { font-size: 10px; font-weight: 800; color: rgba(236,229,240,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.vip-perk-tiers { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.vip-perk-tiers li { font-size: 11px; color: rgba(236,229,240,0.6); display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.vpt-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}
.vpt-bronze  { background: rgba(180,83,9,0.25); color: #fb923c; border: 1px solid rgba(180,83,9,0.3); }
.vpt-silver  { background: rgba(148,163,184,0.15); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.25); }
.vpt-gold    { background: rgba(234,179,8,0.15); color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.vpt-diamond { background: rgba(56,189,248,0.15); color: #7dd3fc; border: 1px solid rgba(56,189,248,0.25); }

/* ── Prediction accuracy badge ─────────────────────────── */
.pred-acc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(236,229,240,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.pred-acc-badge.is-good { background: rgba(52,211,153,0.12); border-color: rgba(52,211,153,0.3); color: #34d399; }
.pred-acc-badge.is-ok   { background: rgba(251,191,36,0.1);  border-color: rgba(251,191,36,0.25); color: #fbbf24; }
.pred-acc-badge.is-bad  { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.25); color: #f87171; }
@keyframes acc-flash { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.pred-acc-badge.is-flash { animation: acc-flash 0.4s ease-out; }
.pred-acc-icon { font-size: 12px; }

/* ── Sticky mini-chart bar ─────────────────────────────── */
.mini-chart-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  height: 36px;
  justify-self: center;
}
.mini-chart-canvas { display: block; }
.mini-chart-mult {
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Leaderboard volume banner ─────────────────────────── */
.lb-volume-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(99,102,241,0.08), rgba(139,92,246,0.05));
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 12px;
  margin-bottom: 18px;
}
.lb-vol-label { font-size: 11px; font-weight: 700; color: rgba(236,229,240,0.5); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.lb-vol-value {
  font-size: 16px;
  font-weight: 900;
  color: #ece5f0;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}
@keyframes vol-tick { 0%,100% { color: #ece5f0; } 50% { color: #a5b4fc; } }
.lb-vol-tick { animation: vol-tick 0.4s ease-out; }
.lb-vol-live { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; color: rgba(236,229,240,0.4); margin-left: auto; white-space: nowrap; }
.lb-vol-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; animation: pulse 2s infinite; }

/* ── Bet slip preset names ─────────────────────────────── */
.preset-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.preset-select {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.3);
  color: rgba(236,229,240,0.7);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s;
}
.preset-select:focus { border-color: rgba(99,102,241,0.5); }
.preset-select option { background: #1e293b; color: #ece5f0; }
.preset-save-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.1);
  color: #34d399;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}
.preset-save-btn:hover { background: rgba(16,185,129,0.22); }

/* ── Sound theme picker ────────────────────────────────── */
.sound-theme-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.sound-theme-label { font-size: 13px; margin-right: 4px; }
.sound-theme-btn {
  flex: 1;
  padding: 5px 0;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(236,229,240,0.45);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.sound-theme-btn:hover { background: rgba(255,255,255,0.09); color: rgba(236,229,240,0.7); }
.sound-theme-btn.is-active {
  background: rgba(99,102,241,0.18);
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
}

/* ── Chart zoom ────────────────────────────────────────── */
.crash-chart.is-zoomed { cursor: zoom-out; }
.crash-chart:not(.is-zoomed) { cursor: zoom-in; }
.crash-chart:not(.is-zoomed):hover::after {
  content: '⊕ Double-click to zoom';
  position: absolute;
  bottom: 6px;
  right: 50px;
  font-size: 9px;
  color: rgba(236,229,240,0.3);
  pointer-events: none;
}
.crash-chart.is-zoomed::after {
  content: '⊖ Double-click to reset';
  position: absolute;
  bottom: 6px;
  right: 50px;
  font-size: 9px;
  color: rgba(236,229,240,0.3);
  pointer-events: none;
}

/* ── Auto-cashout hit rate badge ───────────────────────── */
.auto-hit-rate {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.03em;
}
.ahr-good { background: rgba(52,211,153,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.3); }
.ahr-ok   { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.ahr-bad  { background: rgba(248,113,113,0.12); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }

/* ── Chat search ───────────────────────────────────────── */
.chat-search-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 5px;
  color: rgba(236,229,240,0.45);
  transition: color 0.12s, background 0.12s;
  line-height: 1;
}
.chat-search-btn:hover { color: #ece5f0; background: rgba(255,255,255,0.07); }
.chat-search-btn.is-active { color: #a5b4fc; }
.chat-search-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  animation: search-drop 0.2s ease-out;
}
@keyframes search-drop { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: none; } }
.chat-search-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 7px;
  padding: 5px 9px;
  color: #ece5f0;
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.chat-search-input:focus { border-color: rgba(99,102,241,0.5); }
.chat-search-clear {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(236,229,240,0.5);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.chat-search-clear:hover { background: rgba(255,255,255,0.15); color: #ece5f0; }

/* ── Rakeback tooltip ──────────────────────────────────── */
.balance-chip-wrap { position: relative; display: inline-flex; }
.rakeback-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid rgba(234,179,8,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 600;
  animation: tooltip-drop 0.15s ease-out;
}
@keyframes tooltip-drop { from { opacity:0; transform: translateX(-50%) translateY(-4px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.rbt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: rgba(236,229,240,0.7); font-weight: 600; }
.rbt-row strong { color: #fbbf24; font-size: 13px; }
.rbt-sub { margin-top: 6px; font-size: 10px; color: rgba(236,229,240,0.4); font-weight: 500; }


/* ── Crash quick-stats row ─────────────────────────────── */
.crash-stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.csr-item { display: flex; align-items: center; gap: 5px; }
.csr-label { color: rgba(236,229,240,0.4); font-weight: 600; letter-spacing: .03em; }
.csr-val { color: var(--floral-white); font-weight: 800; font-size: 13px; }
.csr-best { color: #10b981; }
.csr-bust { color: #f59e0b; }
.csr-sep { color: rgba(236,229,240,0.2); font-size: 14px; }

/* ── Streak bonus line ────────────────────────────────── */
.streak-bonus-line {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #fbbf24;
  margin-top: 4px;
  opacity: 0.9;
}

/* ── Animated balance counter ─────────────────────────── */
.balance-chip > span:nth-child(2) {
  transition: color 0.2s;
  font-variant-numeric: tabular-nums;
}
.balance-chip.is-counting { color: #34d399; }

/* ── User profile slide-out ───────────────────────────── */
.uprofile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 900;
  backdrop-filter: blur(2px);
}
.user-profile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: var(--surface-raised);
  border-left: 1px solid var(--line);
  z-index: 901;
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.22,.68,0,1.2);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
  overflow-y: auto;
}
.user-profile-panel.is-open { transform: translateX(0); }
.uprofile-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: rgba(236,229,240,0.5);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
}
.uprofile-close:hover { background: rgba(255,255,255,0.06); color: var(--floral-white); }
.uprofile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px 20px;
  border-bottom: 1px solid var(--line);
}
.uprofile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #3b82f6;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.uprofile-title { display: flex; flex-direction: column; gap: 5px; }
.uprofile-name { font-size: 18px; font-weight: 900; color: var(--floral-white); }
.uprofile-vip { font-size: 12px; }
.uprofile-stats {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.uprofile-stat { display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 14px; }
.uprofile-stat:last-child { border-bottom: none; padding-bottom: 0; }
.uprofile-stat-label { font-size: 11px; font-weight: 600; color: rgba(236,229,240,0.4); text-transform: uppercase; letter-spacing: .06em; }
.uprofile-stat-val { font-size: 15px; font-weight: 800; color: var(--floral-white); }
.uprofile-best { color: #10b981; }
.uprofile-footer { padding: 16px 20px; border-top: 1px solid var(--line); }
.uprofile-footer .soft-button { width: 100%; justify-content: center; }
.user-name-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--floral-white);
  font-weight: 900;
  font-size: inherit;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  text-decoration: underline dotted rgba(236,229,240,0.3);
  text-underline-offset: 3px;
}
.user-name-btn:hover { color: #93c5fd; }

/* ── HOT badge on lobby crash card ───────────────────── */
.crash-hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crash-hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(239,68,68,0.6);
  animation: hotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes hotPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(239,68,68,0.6); }
  50%       { box-shadow: 0 0 20px rgba(249,115,22,0.9); }
}


/* ── Mini-chart bar redesign ──────────────────────────── */
.mini-chart-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  height: 38px;
  justify-self: center;
  min-width: 240px;
  cursor: default;
}
.mcb-label {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.mcb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  transition: background 0.3s;
}
.mcb-dot[data-phase="run"]  { background: #10b981; box-shadow: 0 0 6px #10b981; animation: mcbPulse 1s ease-in-out infinite; }
.mcb-dot[data-phase="bet"]  { background: #f59e0b; box-shadow: none; animation: none; }
@keyframes mcbPulse { 0%,100%{opacity:1} 50%{opacity:0.45} }
.mcb-game {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  color: rgba(236,229,240,0.5);
}
.mini-chart-canvas { display: block; flex-shrink: 0; }
.mcb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
  min-width: 48px;
}
.mcb-phase {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(236,229,240,0.35);
  text-transform: uppercase;
  line-height: 1;
}
.mcb-phase[data-phase="run"] { color: #10b981; }
.mcb-phase[data-phase="bet"] { color: #f59e0b; }
.mini-chart-mult {
  font-size: 15px;
  font-weight: 900;
  color: var(--floral-white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ── Rounds sparkline ─────────────────────────────────── */
.rounds-sparkline-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rounds-sparkline { display: block; border-radius: 6px; flex: 1; min-width: 0; }
.rounds-spark-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.rss-item { display: flex; align-items: center; gap: 6px; }
.rss-label { font-size: 10px; font-weight: 600; color: rgba(236,229,240,0.35); text-transform: uppercase; letter-spacing: .05em; min-width: 32px; }
.rss-val  { font-size: 13px; font-weight: 900; color: var(--floral-white); }
.rss-best { color: #10b981; }
.rss-warn { color: #f59e0b; }

/* ── Profile VIP progress bar ─────────────────────────── */
.uprofile-vip-progress {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.uvp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.uvp-label { font-size: 11px; font-weight: 700; color: rgba(236,229,240,0.5); text-transform: uppercase; letter-spacing: .05em; }
.uvp-tier  { font-size: 11px; font-weight: 700; color: #eab308; }
.uvp-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.uvp-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.8s ease;
}
.uvp-sub { font-size: 11px; color: rgba(236,229,240,0.35); margin-top: 6px; }

/* ── Share win toast ──────────────────────────────────── */
.share-win-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-raised);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(16,185,129,0.15);
  font-size: 13px;
  font-weight: 700;
  color: var(--floral-white);
  z-index: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  pointer-events: none;
}
.share-win-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.swt-label { color: rgba(236,229,240,0.5); font-weight: 600; font-size: 12px; }
.swt-btn {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4);
  border-radius: 8px;
  color: #10b981;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  cursor: pointer;
  margin-left: 4px;
}
.swt-btn:hover { background: rgba(16,185,129,0.25); }


/* ── Leaderboard activity ticker ──────────────────────── */
.lb-activity-ticker {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 10px;
  padding: 0 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.lb-at-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #ef4444;
  flex-shrink: 0;
  animation: lbAtPulse 1.4s ease-in-out infinite;
}
@keyframes lbAtPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.lb-at-viewport { flex: 1; overflow: hidden; position: relative; }
.lb-at-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: lbAtScroll 28s linear infinite;
  white-space: nowrap;
}
.lb-at-track:hover { animation-play-state: paused; }
@keyframes lbAtScroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.lb-at-item { font-size: 12px; font-weight: 600; color: rgba(236,229,240,0.75); padding: 0 10px; }
.lb-at-item strong { color: var(--floral-white); }
.lb-at-sep { color: rgba(236,229,240,0.2); padding: 0 4px; font-size: 11px; }

/* ── Deposit promo banner ─────────────────────────────── */
.deposit-promo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, rgba(234,179,8,0.1) 0%, rgba(249,115,22,0.08) 100%);
  border: 1px solid rgba(234,179,8,0.3);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  transition: opacity 0.3s, max-height 0.3s;
  overflow: hidden;
}
.deposit-promo-banner.dpb-hiding { opacity: 0; max-height: 0; padding: 0; margin: 0; }
.dpb-icon { font-size: 18px; flex-shrink: 0; }
.dpb-text { flex: 1; color: rgba(236,229,240,0.85); font-weight: 600; }
.dpb-text strong { color: var(--floral-white); }
.dpb-timer { color: #f59e0b; font-variant-numeric: tabular-nums; }
.dpb-cta {
  background: rgba(234,179,8,0.15);
  border: 1px solid rgba(234,179,8,0.4);
  border-radius: 8px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.dpb-cta:hover { background: rgba(234,179,8,0.25); }
.dpb-close {
  background: none;
  border: none;
  color: rgba(236,229,240,0.35);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.dpb-close:hover { color: var(--floral-white); background: rgba(255,255,255,0.06); }

/* ── Keyboard shortcut legend ─────────────────────────── */
.crash-hotkey-legend {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: chlFadeIn 0.3s ease;
}
@keyframes chlFadeIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.chl-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(236,229,240,0.6); }
.chl-row kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--floral-white);
  padding: 0 5px;
  font-family: inherit;
}

/* ── Session summary overlay ──────────────────────────── */
.session-summary-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 800;
  display: grid;
  place-items: center;
}
.session-summary-overlay[hidden] {
  display: none;
}
.ss-panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  width: min(400px, 90vw);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  text-align: center;
}
.ss-title { font-size: 22px; font-weight: 900; margin-bottom: 20px; }
.ss-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.ss-stat { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 12px; }
.ss-label { display: block; font-size: 11px; font-weight: 600; color: rgba(236,229,240,0.4); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.ss-val { font-size: 22px; font-weight: 900; color: var(--floral-white); }
.ss-best { color: #10b981; }
.ss-actions { display: flex; justify-content: center; }
.ss-actions .soft-button { min-width: 160px; justify-content: center; }

/* ── Floating emoji reaction ──────────────────────────── */
.react-float {
  position: fixed;
  font-size: 20px;
  pointer-events: none;
  z-index: 1000;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition: none;
}
.react-float.is-flying {
  animation: reactFly 0.65s ease-out forwards;
}
@keyframes reactFly {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  60%  { opacity: 0.8; transform: translateX(-50%) translateY(-32px) scale(1.3); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-56px) scale(0.8); }
}


/* ── Round number slot-machine flip ──────────────────── */
#seed-round-num {
  display: inline-block;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
#seed-round-num.is-flipping {
  transform: translateY(-6px) scaleY(0.6);
  opacity: 0;
}

/* ── Bet input comma-formatted ───────────────────────── */
.crash-input input {
  font-variant-numeric: tabular-nums;
}

/* ── Upcoming game countdown ─────────────────────────── */
.upcoming-card-eta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.uca-label {
  font-size: 9px;
  font-weight: 600;
  color: rgba(236,229,240,0.35);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.uca-countdown {
  font-size: 13px;
  font-weight: 900;
  color: #f59e0b;
  font-variant-numeric: tabular-nums;
}

/* ── Chat /rekt gif ──────────────────────────────────── */
.chat-gif-rekt {
  display: inline-block;
  animation: rektShake 0.4s ease-in-out;
  color: #ef4444;
  font-size: 18px;
}
@keyframes rektShake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px) rotate(-5deg)} 75%{transform:translateX(4px) rotate(5deg)}
}
