:root {
  color-scheme: dark;
  --bg: #07111d;
  --panel: #0d1828;
  --panel-2: #122136;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #99a5b3;
  --green: #46dfff;
  --blue: #4f7dff;
  --yellow: #ffc857;
  --red: #ff6474;
  --ink: #07100c;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --button-glow: 0 14px 34px rgba(79, 125, 255, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.88), rgba(7, 17, 29, 0.96)),
    linear-gradient(120deg, rgba(79, 125, 255, 0.14), rgba(70, 223, 255, 0.06) 48%, rgba(7, 17, 29, 0.94) 100%);
  color: var(--text);
  font-family: "Segoe UI Variable", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
.ghost-button,
.admin-link,
.text-button,
#logoutButton,
#closeAdmin,
.user-menu-button,
.mini-button,
.tab,
.admin-tab,
.choice,
.bet-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0;
}

.phone-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 29, 0.9);
  backdrop-filter: blur(14px);
}

.user-menu-wrap {
  position: relative;
  justify-self: end;
}

.user-menu-button {
  min-height: 40px;
  border: 1px solid rgba(70, 223, 255, 0.36);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79, 125, 255, 0.28), rgba(70, 223, 255, 0.16));
  color: var(--text);
  padding: 0 14px;
}

.user-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
  display: grid;
  width: 190px;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 13, 22, 0.96);
  box-shadow: var(--shadow);
}

.user-menu-panel button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
  text-align: left;
  justify-content: flex-start;
  padding: 0 12px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark,
.topbar-logo-mark,
.game-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(70, 223, 255, 0.42);
  background: rgba(7, 17, 29, 0.72);
  color: var(--ink);
  font-weight: 900;
  overflow: hidden;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
}

.topbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.lang-switch {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-switch button {
  min-width: 36px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.lang-switch button.active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--ink);
}

.topbar-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.brand-mark img,
.topbar-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-block strong,
.brand-block small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-block small,
.eyebrow,
label span,
.balance-strip span,
.game-title p,
.panel p,
.history-item span {
  color: var(--muted);
  font-size: 12px;
}

.ghost-button,
.admin-link,
.text-button,
#logoutButton,
#closeAdmin,
.mini-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: var(--text);
  padding: 0 12px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost-button:hover,
.admin-link:hover,
.text-button:hover,
#logoutButton:hover,
#closeAdmin:hover,
.mini-button:hover,
.tab:hover,
.choice:hover,
.bet-buttons button:hover {
  border-color: rgba(70, 223, 255, 0.42);
  transform: translateY(-1px);
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr) 380px;
  gap: 18px;
  align-items: end;
  min-height: calc(100vh - 92px);
  padding: 22px 0;
}

.auth-visual {
  display: grid;
  align-items: end;
  min-height: 580px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.1), rgba(7, 17, 29, 0.76)),
    url("assets/hero-blue.png") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.auth-visual-copy {
  display: grid;
  gap: 10px;
  max-width: 320px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 17, 29, 0.62);
  backdrop-filter: blur(12px);
}

.auth-visual-copy strong {
  font-size: 28px;
  line-height: 1;
}

.auth-visual-copy span {
  color: #d7dee7;
  line-height: 1.5;
  font-size: 13px;
}

.auth-copy {
  display: grid;
  align-content: end;
  gap: 16px;
}

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

.auth-tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 0 14px;
  font-weight: 700;
}

.auth-tab.active {
  border-color: rgba(70, 223, 255, 0.52);
  background: linear-gradient(180deg, rgba(70, 223, 255, 0.2), rgba(79, 125, 255, 0.12));
  color: var(--text);
}

.auth-copy h1,
.admin-head h1 {
  margin: 0;
  max-width: 700px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: 0;
}

.admin-login-screen {
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: center;
  padding: 24px 0;
}

.admin-login-card {
  width: min(430px, 100%);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 580px;
  line-height: 1.6;
  color: #d7dee7;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}

.hero-points span {
  min-height: 42px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(70, 223, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(79, 125, 255, 0.12);
  color: #d7e3ff;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.license-mini {
  display: grid;
  gap: 4px;
  max-width: 560px;
  border: 1px solid rgba(70, 223, 255, 0.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(70, 223, 255, 0.16), rgba(79, 125, 255, 0.14)),
    rgba(13, 24, 40, 0.82);
  padding: 12px;
}

.license-mini span {
  color: var(--muted);
  font-size: 12px;
}

.auth-card,
.panel,
.bet-widget,
.game-card,
.balance-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(17, 22, 27, 0.9);
  box-shadow: var(--shadow);
}

.auth-card,
.panel,
.bet-widget {
  display: grid;
  gap: 14px;
  padding: 16px;
}

label {
  display: grid;
  gap: 7px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1216;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.primary-button,
.play-button {
  min-height: 46px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #4f7dff, #46dfff 52%, #8ab2ff);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--button-glow);
  transition: transform 160ms ease, filter 160ms ease;
}

.primary-button:hover,
.play-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.text-link {
  color: var(--green);
  text-align: center;
  text-decoration: none;
}

.casino-screen {
  padding: 18px 0 36px;
}

.balance-strip {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.balance-strip strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#playerStatus {
  display: block;
  margin-top: 3px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.tab,
.subtab,
.admin-tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  padding: 0 14px;
}

.tab.active,
.subtab.active,
.admin-tab.active {
  border-color: rgba(70, 223, 255, 0.52);
  background: linear-gradient(180deg, rgba(70, 223, 255, 0.22), rgba(79, 125, 255, 0.12));
  color: var(--text);
}

.casino-subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.subtab {
  color: var(--muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 0 14px;
  font-weight: 800;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.bet-widget {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 14px;
}

.bet-buttons {
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 8px;
}

.bet-buttons button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1216;
  color: var(--text);
  padding: 0 10px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.choice {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1216;
  color: var(--text);
  padding: 0 14px;
}

.payment-card {
  overflow: hidden;
}

.payment-hero {
  min-height: 160px;
  display: grid;
  align-items: end;
  margin: -16px -16px 0;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.12), rgba(7, 17, 29, 0.9)),
    url("assets/slot-covers.png") 0 0 / 400% 300% no-repeat;
}

.withdraw-hero {
  background-position: 66.666% 50%;
}

.payment-hero h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
}

.payment-hero p {
  max-width: 420px;
}

.payment-switch .choice {
  min-height: 104px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
  text-align: left;
}

.payment-switch .choice small,
.payment-switch .choice strong {
  display: block;
}

.payment-switch .choice img {
  width: 100%;
  max-width: 128px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 4px;
}

.method-icon {
  display: grid;
  min-width: 64px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(70, 223, 255, 0.22), rgba(79, 125, 255, 0.26));
  color: #d7e3ff;
  font-size: 11px;
  font-weight: 900;
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

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

.provider-choice {
  display: grid;
  gap: 6px;
  min-height: 108px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1216;
  color: var(--text);
  padding: 10px;
}

.provider-choice.active {
  border-color: rgba(70, 223, 255, 0.62);
  background: rgba(79, 125, 255, 0.16);
}

.provider-choice img,
.network-preview img,
.partner-card img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

.network-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(70, 223, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(79, 125, 255, 0.12);
  padding: 10px;
}

.network-preview strong {
  display: block;
}

.network-preview small {
  color: var(--muted);
}

.payment-route {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(70, 223, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(79, 125, 255, 0.12);
  padding: 12px;
}

.payment-route span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-route code {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1216;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.large-action {
  min-height: 72px;
  font-size: 16px;
}

.wallet-wide {
  grid-column: span 2;
}

.plinko-stage {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(70, 223, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(70, 223, 255, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(13, 24, 40, 0.96), #080c10);
}

.plinko-chip {
  position: absolute;
  left: 50%;
  top: 18px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, var(--cyan));
  box-shadow: 0 0 22px rgba(70, 223, 255, 0.8);
  transform: translateX(-50%);
}

.plinko-peg {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(215, 227, 255, 0.85);
  box-shadow: 0 0 12px rgba(70, 223, 255, 0.4);
  transform: translate(-50%, -50%);
}

.plinko-buckets {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.plinko-buckets span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(79, 125, 255, 0.16);
  font-weight: 900;
}

.plinko-buckets span.active {
  border-color: rgba(56, 228, 143, 0.8);
  background: rgba(56, 228, 143, 0.22);
  color: #fff;
}

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

.choice.active {
  border-color: rgba(70, 223, 255, 0.62);
  background: rgba(79, 125, 255, 0.16);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 14px;
}

.game-card.large {
  grid-column: span 2;
}

.game-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.game-title h2,
.panel h2 {
  margin: 0 0 4px;
}

.game-title p,
.panel p {
  margin: 0;
  line-height: 1.5;
}

.game-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 13px;
}

.game-result {
  display: grid;
  min-height: 78px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080c10;
  text-align: center;
  padding: 10px;
}

.slot-focus,
.plinko-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.slot-focus {
  margin-top: 14px;
  border-color: rgba(70, 223, 255, 0.34);
  background:
    radial-gradient(circle at 16% 0%, rgba(70, 223, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(21, 36, 57, 0.96), rgba(12, 18, 28, 0.98));
}

.slot-focus-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.slot-picker {
  display: grid;
  gap: 10px;
}

.slot-picker-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.slot-picker-row select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1216;
  color: var(--text);
  padding: 0 10px;
}

.slot-stake-pill {
  min-width: max-content;
  padding: 9px 12px;
  border: 1px solid rgba(70, 223, 255, 0.28);
  border-radius: 999px;
  background: rgba(79, 125, 255, 0.12);
  color: #b8d8ff;
  font-size: 12px;
  font-weight: 800;
}

.slot-stake-pill strong {
  color: #fff;
  margin-left: 6px;
}

.slot-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(70, 223, 255, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 20%, rgba(70, 223, 255, 0.18), transparent 42%),
    #080c10;
}

.slot-cell {
  display: grid;
  min-height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 -10px 22px rgba(79, 125, 255, 0.12);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.slot-payline {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(79, 125, 255, 0.12);
  color: #d7e3ff;
  font-weight: 800;
  text-align: center;
  padding: 8px 12px;
}

.slot-rail {
  display: grid;
  gap: 14px;
}

.slot-rail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.slot-rail-head h2 {
  margin: 0;
}

.slot-counter {
  min-width: max-content;
  padding: 8px 12px;
  border: 1px solid rgba(70, 223, 255, 0.32);
  border-radius: 999px;
  background: rgba(79, 125, 255, 0.12);
  color: #d7e3ff;
  font-size: 12px;
  font-weight: 800;
}

.slot-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.slot-chip {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.04), rgba(7, 17, 29, 0.86)),
    url("assets/slot-covers.png") 0 0 / 400% 300% no-repeat,
    rgba(13, 24, 40, 0.92);
  color: var(--text);
  padding: 14px;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  justify-items: start;
  align-content: end;
  gap: 8px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.slot-chip:hover,
.slot-chip.active {
  border-color: rgba(70, 223, 255, 0.62);
  box-shadow: 0 14px 34px rgba(79, 125, 255, 0.22);
  transform: translateY(-1px);
}

.slot-chip span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 17, 29, 0.72);
  font-size: 18px;
  backdrop-filter: blur(8px);
}

.slot-chip strong {
  overflow-wrap: anywhere;
  line-height: 1.12;
  font-size: 16px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.slot-chip small {
  display: -webkit-box;
  overflow: hidden;
  color: #d7e3ff;
  font-size: 11px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.slot-chip em {
  width: 100%;
  display: grid;
  place-items: center;
  min-height: 38px;
  margin-top: 4px;
  border: 1px solid rgba(70, 223, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79, 125, 255, 0.42), rgba(70, 223, 255, 0.24));
  color: #fff;
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0;
}

.slot-spin-button {
  min-height: 52px;
}

.mobile-menu {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.menu-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 24, 40, 0.92);
  color: var(--text);
  font-weight: 700;
}

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

code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080c10;
  color: var(--green);
  padding: 12px;
}

.tx-code {
  max-width: 210px;
  padding: 8px;
  font-size: 12px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.landing-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 0 20px;
}

.info-band {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.info-band h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.info-band p {
  margin: 0;
  color: #d7e3ff;
  line-height: 1.55;
}

.license-grid {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px 10px;
  align-items: center;
}

.license-grid span {
  color: var(--muted);
  font-size: 12px;
}

.license-grid strong {
  overflow-wrap: anywhere;
  color: #d7e3ff;
  font-size: 13px;
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-list > span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(79, 125, 255, 0.14);
  color: var(--text);
  font-size: 13px;
}

.photo-partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  overflow: hidden;
  border-radius: var(--radius) !important;
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.12), rgba(7, 17, 29, 0.9)),
    linear-gradient(135deg, rgba(79, 125, 255, 0.2), rgba(70, 223, 255, 0.08)) !important;
  padding: 12px !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.partner-card img {
  height: 56px;
  margin-bottom: 10px;
}

.sponsor-logo {
  display: grid;
  min-height: 58px;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(7, 17, 29, 0.64);
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.sponsor-logo img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.sponsor-logo img::before {
  content: attr(alt);
}

.sponsor-red .sponsor-logo {
  color: #ff6474;
}

.sponsor-stake .sponsor-logo {
  color: #46dfff;
}

.sponsor-drake .sponsor-logo {
  color: #ffc857;
}

.sponsor-red {
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.16), rgba(7, 17, 29, 0.92)),
    linear-gradient(135deg, rgba(255, 100, 116, 0.28), rgba(79, 125, 255, 0.1)) !important;
}

.sponsor-stake {
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.16), rgba(7, 17, 29, 0.92)),
    linear-gradient(135deg, rgba(70, 223, 255, 0.28), rgba(79, 125, 255, 0.12)) !important;
}

.sponsor-drake {
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.16), rgba(7, 17, 29, 0.92)),
    linear-gradient(135deg, rgba(255, 200, 87, 0.24), rgba(79, 125, 255, 0.12)) !important;
}

.partner-card strong,
.partner-card small {
  display: block;
}

.partner-card strong {
  font-size: 18px;
}

.partner-card small {
  margin-top: 4px;
  color: #d7e3ff;
  line-height: 1.35;
}

.partner-studio {
  background-position: 33.333% 100% !important;
}

.partner-music {
  background-position: 66.666% 0 !important;
}

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

.profile-stat-grid div {
  display: grid;
  gap: 6px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.profile-stat-grid span {
  color: var(--muted);
  font-size: 12px;
}

.profile-stat-grid strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.history-item,
.empty-state,
.stack-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.history-item div:first-child {
  display: grid;
  gap: 3px;
}

.domain-ns-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(70, 223, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(79, 125, 255, 0.12);
  padding: 12px;
}

.domain-ns-card span {
  color: #d7e3ff;
  font-size: 12px;
  font-weight: 800;
}

.win {
  color: var(--green);
}

.loss {
  color: var(--red);
}

.admin-screen {
  padding: 22px 0 36px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(120px, 1fr);
  grid-template-columns: unset;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: grid;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.stats-grid article {
  display: grid;
  gap: 8px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 13px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 12px;
}

.stats-grid strong {
  line-height: 1.45;
}

.span-2 {
  grid-column: span 2;
}

.wide {
  grid-column: span 2;
}

.stack-list {
  display: grid;
  gap: 8px;
}

.stack-row strong {
  text-align: right;
}

.domain-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(90px, auto) repeat(4, auto);
  align-items: center;
}

.domain-row span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}

.domain-row i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 94, 113, 0.7);
}

.domain-row.online i {
  background: var(--green);
  box-shadow: 0 0 14px rgba(56, 228, 143, 0.7);
}

.domain-row.selected {
  border-color: rgba(70, 223, 255, 0.46);
  background: rgba(79, 125, 255, 0.12);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-section-head p {
  color: var(--muted);
}

.promo-row {
  align-items: stretch;
}

.promo-row > div:first-child {
  display: grid;
  gap: 4px;
  align-content: center;
}

.promo-row small {
  color: var(--muted);
  font-size: 12px;
}

.promo-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(80px, 1fr));
  gap: 8px;
  min-width: min(430px, 100%);
  text-align: right;
}

.promo-metrics strong,
.promo-metrics small {
  display: block;
}

.promo-metrics strong {
  text-align: right;
}

.promo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

td .mini-button + .mini-button {
  margin-left: 6px;
}

th {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  max-width: min(380px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #121920;
  box-shadow: var(--shadow);
  padding: 13px 14px;
  transform: translateY(130%);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
}

.support-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--ink);
  padding: 0 18px;
  font-weight: 900;
  box-shadow: var(--button-glow);
}

.support-widget {
  position: fixed;
  right: 14px;
  bottom: 76px;
  z-index: 6;
  display: grid;
  width: min(420px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 100px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 22, 27, 0.96);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.support-head,
.support-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.support-compose {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.support-agent,
.assistant-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-agent strong,
.support-agent small {
  display: block;
}

.support-agent small {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.avatar.female {
  background: linear-gradient(135deg, #ff8fd1, #ffc857);
}

.avatar.male {
  background: linear-gradient(135deg, #4fa3ff, #38e48f);
}

.support-messages {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 260px;
  overflow-y: auto;
  padding: 12px;
}

.support-empty {
  color: var(--muted);
  font-size: 13px;
}

.support-bubble {
  max-width: 82%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px;
}

.support-bubble span {
  color: var(--muted);
  font-size: 11px;
}

.support-bubble p {
  margin: 4px 0 0;
}

.from-user {
  justify-self: end;
  background: rgba(56, 228, 143, 0.13);
}

.from-agent {
  justify-self: start;
}

.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.28fr);
  gap: 14px;
}

.support-active-user {
  min-height: 42px;
  display: grid;
  align-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(70, 223, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(79, 125, 255, 0.12);
  color: #d7e3ff;
  padding: 0 12px;
  font-weight: 800;
}

.support-user-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
}

.support-user-button {
  min-height: 70px;
  display: grid;
  justify-items: start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px;
  text-align: left;
}

.support-user-button.active {
  border-color: rgba(70, 223, 255, 0.58);
  background: rgba(79, 125, 255, 0.16);
}

.support-user-button span,
.support-user-button small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-admin-message {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  max-width: min(92%, 760px);
}

.support-admin-message p {
  margin: 0;
  line-height: 1.45;
}

.support-admin-message small {
  color: var(--muted);
  font-size: 11px;
}

.from-user-admin {
  background: rgba(70, 223, 255, 0.1);
  justify-self: end;
}

.from-agent-admin {
  background: rgba(79, 125, 255, 0.08);
  justify-self: start;
}

.support-thread-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.user-modal {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(10px);
}

.user-modal-card {
  width: min(760px, 100%);
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.98), rgba(10, 15, 23, 0.98));
  box-shadow: var(--shadow);
}

.user-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.user-modal-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
}

.user-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.user-detail-grid article,
.user-detail-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
}

.user-detail-grid span,
.user-detail-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.user-detail-grid strong,
.user-detail-block strong {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.user-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-thread-list .history-item,
.assistant-row,
.stats-grid article,
.stack-row,
.history-item {
  backdrop-filter: blur(6px);
}

.assistant-list,
.support-thread-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.assistant-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
}

.hidden {
  display: none;
}

@media (max-width: 860px) {
  .auth-screen,
  .bet-widget,
  .panel-grid,
  .admin-grid,
  .support-admin-layout,
  .landing-bands,
  .user-detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .game-card.large,
  .wide {
    grid-column: auto;
  }

  .auth-screen {
    align-items: stretch;
    min-height: auto;
  }

  .auth-visual {
    min-height: 340px;
  }

  .admin-tabs {
    grid-auto-columns: minmax(110px, 1fr);
  }

  .mobile-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .payment-switch {
    grid-template-columns: 1fr;
  }

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

  .domain-row {
    grid-template-columns: 1fr 1fr;
  }

  .domain-row > div,
  .domain-row > strong {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .phone-shell {
    padding: 10px;
  }

  .topbar {
    grid-template-columns: 40px 1fr auto;
  }

  .user-menu-wrap {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .user-menu-button {
    width: 100%;
  }

  .user-menu-panel {
    width: 100%;
  }

  .admin-link,
  .ghost-button {
    padding-inline: 9px;
  }

  .auth-copy h1,
  .admin-head h1 {
    font-size: 42px;
  }

  .balance-strip {
    grid-template-columns: 1fr;
  }

  .bet-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .slot-picker-row {
    grid-template-columns: 1fr;
  }

  .tabbar {
    grid-template-columns: repeat(3, minmax(96px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .casino-subtabs,
  .photo-partners,
  .profile-cta,
  .amount-row {
    grid-template-columns: 1fr;
  }

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

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

  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .promo-row {
    display: grid;
  }

  .promo-metrics {
    min-width: 0;
    text-align: left;
  }

  .promo-metrics strong {
    text-align: left;
  }

  .span-2 {
    grid-column: auto;
  }

  .game-card {
    min-height: 190px;
  }

  .topbar-logo {
    padding-inline: 10px;
  }

  .mobile-menu,
  .slot-theme-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .topbar-logo {
    display: none;
  }

  .lang-switch {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .payment-card {
    padding: 12px;
  }

  .payment-hero {
    min-height: auto;
    margin: -12px -12px 0;
    padding: 14px;
  }

  .payment-hero h2 {
    font-size: 24px;
  }

  .payment-switch .choice,
  .provider-choice {
    min-height: 86px;
  }

  .network-preview {
    grid-template-columns: 48px 1fr;
  }

  .network-preview img {
    height: 48px;
  }

  .amount-row {
    grid-template-columns: 1fr;
  }

  .plinko-stage {
    min-height: 300px;
  }

  .plinko-buckets {
    gap: 5px;
  }

  .plinko-buckets span {
    min-height: 36px;
    font-size: 12px;
  }

  .slot-board {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .slot-chip {
    min-height: 148px;
  }

  .user-modal {
    padding: 10px;
  }

  .user-modal-head {
    flex-direction: column;
  }

  .tabbar,
  .balance-strip {
    gap: 8px;
  }
}
