
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0812;
  --panel: #15101e;
  --line: #ffffff12;
  --text: #f7f1ff;
  --muted: #91839f;
  --purple: #a16af7;
  --green: #19c982;
  --red: #ed3e59;
}

* { box-sizing: border-box; }

body.roulette-page {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  background:
    radial-gradient(ellipse at 50% -20%, #6632a733, transparent 55%),
    var(--bg);
}

.roulette-app {
  max-width: 1600px;
  margin: auto;
  padding: 24px clamp(14px, 3vw, 42px);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: #b9a9cb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover { color: white; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font: 700 18px 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, #bd9aff, #7138c7);
  box-shadow: 0 5px 24px #914ce855;
}

.brand small {
  display: block;
  color: #82728f;
  font-size: 8px;
  letter-spacing: 3px;
}

.wallet {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.wallet > span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 800;
}

.wallet strong {
  color: #c6a5ff;
  font: 700 18px 'Space Grotesk', sans-serif;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b28be9;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.eyebrow span,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px #19c98288;
}

.page-heading h1 {
  margin: 10px 0 4px;
  font: 700 clamp(36px, 4vw, 52px) 'Space Grotesk', sans-serif;
  letter-spacing: -2px;
}

.page-heading h1 span { color: var(--purple); }

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.table-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: #c6b7d2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(360px, .88fr) minmax(540px, 1.12fr);
  align-items: start;
  gap: 20px;
}

.card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #1b1427, #120d1a);
  box-shadow: 0 18px 55px #0002;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-label {
  color: #a98ad4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.card-heading h2 {
  margin: 6px 0 0;
  font: 600 20px 'Space Grotesk', sans-serif;
}

.pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #c4b2d5;
  font-size: 10px;
  font-weight: 800;
}

/* Колесо */

.wheel-stage {
  width: min(100%, 530px);
  aspect-ratio: 1;
  margin: 26px auto 22px;
  position: relative;
  display: grid;
  place-items: center;
}

.wheel-light {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: #9a53ef24;
  filter: blur(35px);
}

.wheel-pointer {
  position: absolute;
  z-index: 5;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 28px solid #f4d99b;
  border-bottom: 0;
  filter: drop-shadow(0 3px 5px #000b);
}

.wheel-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 11px;
  border-radius: 50%;
  background: linear-gradient(
    145deg, #f3dda2, #77512b 22%,
    #f1d99c 39%, #5b3c1e 65%, #c8a164
  );
  box-shadow:
    0 0 0 2px #d3b16c55,
    0 18px 45px #0009,
    inset 0 0 0 5px #38251b;
}

#rouletteWheel {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid #d7b777;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #50356a, #160f21 70%);
  box-shadow: 0 0 0 3px #49311d, inset 0 0 15px #000b;
  pointer-events: none;
}

.wheel-center span {
  color: #f1d29a;
  font: 700 clamp(23px, 3vw, 36px) 'Space Grotesk', sans-serif;
  text-shadow: 0 2px 10px #000;
}

.wheel-center small {
  color: #c6b6d4;
  font-size: 7px;
  letter-spacing: 2px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff04;
}

.result-number {
  width: 49px;
  height: 52px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff22;
  border-radius: 10px;
  color: white;
  font: 700 23px 'Space Grotesk', sans-serif;
}

.result-number.red { background: #a72239; }
.result-number.black { background: #29232f; }
.result-number.green { background: #117448; }

.result-description {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.result-description span,
.result-money span {
  color: #94859f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.result-description strong {
  font-size: 12px;
  line-height: 1.4;
}

.result-money {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.result-money strong {
  color: #aef2ce;
  font: 700 16px 'Space Grotesk', sans-serif;
}

.history-section { margin-top: 20px; }

.history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-top: 11px;
}

.history-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.history-number.red { background: #b62c43; }
.history-number.black { background: #2b2532; }
.history-number.green { background: #14754b; }

.history-empty {
  color: #766a82;
  font-size: 11px;
}

/* Панель ставок */

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #0c0912;
}

.stats-row > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.stats-row > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.stats-row span {
  color: #847790;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.stats-row strong {
  overflow: hidden;
  color: #f5efff;
  font: 700 19px 'Space Grotesk', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-row > div + div strong { color: #aef2ce; }

.chip-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chip-title strong { font-size: 12px; }
.chip-title span { color: #786b85; font-size: 10px; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.chip {
  width: 43px;
  height: 43px;
  border: 2px dashed #ffffffa0;
  border-radius: 50%;
  cursor: pointer;
  color: #261833;
  font: 800 12px 'Space Grotesk', sans-serif;
  transition: transform .15s, outline .15s;
}

.chip-1 { background: radial-gradient(circle at 30% 20%, #fff, #bba2e8); }
.chip-5 { background: radial-gradient(circle at 30% 20%, #fff1c7, #d8a64d); }
.chip-10 { background: radial-gradient(circle at 30% 20%, #ffdce8, #d75c8a); }
.chip-25 { background: radial-gradient(circle at 30% 20%, #d5ffea, #45bc8d); }
.chip-50 { background: radial-gradient(circle at 30% 20%, #dceaff, #6597e3); }
.chip-100 { background: radial-gradient(circle at 30% 20%, #ffdec0, #e98940); }

.chip:hover { transform: translateY(-2px); }

.chip.active {
  outline: 2px solid white;
  outline-offset: 3px;
  transform: translateY(-2px);
}

.selected-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 19px;
  color: #91839f;
  font-size: 10px;
}

.mini-chip {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 2px dashed #ffffffa0;
  border-radius: 50%;
  background: #8c5bd5;
  color: white;
  font-size: 9px;
  font-weight: 800;
}

.selected-chip strong {
  margin-left: auto;
  color: #d9c5ff;
  font: 700 13px 'Space Grotesk', sans-serif;
}

/* Стол */

.roulette-table {
  padding: 10px;
  border: 1px solid #35765b;
  border-radius: 12px;
  background: linear-gradient(145deg, #124333, #0a2a20);
  box-shadow: inset 0 0 0 3px #ffffff05;
}

.table-layout {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 5px;
}

.bet-cell {
  position: relative;
  min-width: 0;
  border: 1px solid #ffffff25;
  border-radius: 4px;
  color: white;
  font: 800 11px 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: filter .12s, transform .12s, box-shadow .12s;
}

.bet-cell:hover {
  z-index: 2;
  filter: brightness(1.28);
  box-shadow: 0 0 0 2px #f0d28c;
}

.bet-cell:active { transform: scale(.97); }
.bet-cell:disabled { cursor: not-allowed; }

.zero-cell {
  grid-row: 1 / span 3;
  min-height: 144px;
  border-color: #6bdfa6;
  background: linear-gradient(135deg, #27aa70, #08683f);
  font-size: 20px;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
}

.number-cell { height: 44px; }

.number-cell.red-cell {
  background: linear-gradient(145deg, #ec5266, #a71e36);
}

.number-cell.black-cell {
  background: linear-gradient(145deg, #38313f, #18141d);
}

.outside-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-top: 5px;
}

.outside {
  height: 37px;
  background: #174d39;
  font-size: 9px;
}

.outside.red-cell { background: #a9253d; }
.outside.black-cell { background: #27212e; }

.dozen-grid,
.column-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 5px;
}

.dozen-cell,
.column-cell {
  min-height: 32px;
  background: #124632;
  font-size: 9px;
}

.column-grid { margin-top: 4px; }

.table-hint {
  margin: 10px 1px 0;
  color: #91b4a2;
  font-size: 9px;
  line-height: 1.6;
}

/* Маркеры ставок */

.bet-cell.has-bet::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid #f6d58d;
  border-radius: 3px;
  pointer-events: none;
}

.table-chip {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: auto;
  min-width: 21px;
  max-width: calc(100% - 2px);
  height: 21px;
  padding: 0 4px;

  display: grid;
  place-items: center;

  border: 2px dashed white;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 20%,
    #fff0bc,
    #dca84d
  );

  box-shadow: 0 2px 5px #0009;
  color: #3a260b;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}

/* Список ставок */

.bets-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 19px 0 10px;
}

.bets-heading > span {
  color: #857790;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.bets-heading button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #ae8cdb;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.bets-heading button:hover { color: white; }

.bets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
}

.empty-bets {
  padding: 15px;
  border: 1px dashed #ffffff20;
  border-radius: 10px;
  color: #766a82;
  font-size: 11px;
  text-align: center;
}

.bet-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff03;
}

.bet-badge {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.bet-badge.red { background: #a72239; }
.bet-badge.black { background: #302936; }
.bet-badge.green { background: #14764c; }
.bet-badge.purple { background: #4a2b70; }

.bet-name {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bet-multiplier {
  margin-left: auto;
  color: #8b7c98;
  font-size: 9px;
  white-space: nowrap;
}

.bet-amount {
  color: #f1e7ff;
  font: 700 11px 'Space Grotesk', sans-serif;
  white-space: nowrap;
}

.remove-bet {
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #746681;
  cursor: pointer;
  font-size: 16px;
}

.remove-bet:hover { color: #ff7188; }

/* Кнопка вращения */

.spin-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-top: 15px;
  padding: 16px;
  border: 1px solid #bd9aff55;
  border-radius: 12px;
  background: linear-gradient(105deg, #8147ce, #a16af7 52%, #7440c5);
  box-shadow: 0 9px 25px #7e43d333, inset 0 1px #ffffff25;
  color: white;
  text-align: left;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}

.spin-button:hover:not(:disabled) {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.spin-button:disabled {
  opacity: .42;
  cursor: not-allowed;
  box-shadow: none;
}

.spin-star { font-size: 23px; }

.spin-button-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spin-button-text strong {
  font-size: 11px;
  letter-spacing: 1.2px;
}

.spin-button-text small {
  color: #e5d4ff;
  font-size: 9px;
}

.spin-arrow {
  margin-left: auto;
  font-size: 21px;
}

.error-box {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #ff6c8055;
  border-radius: 9px;
  background: #7d1f302b;
  color: #ffabb6;
  font-size: 11px;
  line-height: 1.5;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 21px;
  padding: 17px 2px 0;
  border-top: 1px solid var(--line);
  color: #70647c;
  font-size: 9px;
}

.page-footer span:first-child {
  color: #a68dbd;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Адаптивность */

@media (max-width: 1100px) {
  .game-layout {
    grid-template-columns: minmax(300px, .8fr) minmax(460px, 1.2fr);
    gap: 14px;
  }

  .card { padding: 18px; }
  .number-cell { height: 38px; }
  .outside { font-size: 8px; }
}

@media (max-width: 850px) {
  .game-layout { grid-template-columns: 1fr; }
  .wheel-stage { max-width: 480px; }
}

@media (max-width: 520px) {
  .roulette-app { padding: 14px 10px 20px; }
  .topbar { gap: 8px; padding-bottom: 14px; }
  .back-link span { display: none; }
  .brand { font-size: 15px; }
  .brand-icon { width: 30px; height: 30px; }
  .wallet strong { font-size: 14px; }
  .wallet > span { font-size: 8px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; padding: 24px 0 18px; }
  .page-heading h1 { font-size: 39px; }
  .card { padding: 14px; border-radius: 16px; }
  .card-heading h2 { font-size: 18px; }
  .wheel-stage { margin: 19px auto; }
  .wheel-frame { padding: 7px; }
  .wheel-center { border-width: 3px; }
  .result-number { width: 42px; height: 45px; }
  .result-description strong { font-size: 10px; }
  .result-money strong { font-size: 13px; }
  .result-money span { font-size: 7px; }
  .stats-row strong { font-size: 15px; }
  .chip { width: 39px; height: 39px; }
  .roulette-table { padding: 6px; }
  .table-layout { grid-template-columns: 29px minmax(0, 1fr); gap: 3px; }
  .number-grid,
  .outside-grid,
  .dozen-grid,
  .column-grid { gap: 3px; }
  .number-cell { height: 32px; font-size: 9px; }
  .zero-cell { min-height: 111px; font-size: 16px; }
  .outside { height: 30px; font-size: 7px; }
  .dozen-cell,
  .column-cell { min-height: 27px; font-size: 7px; }
  .page-footer { flex-direction: column; gap: 9px; }
}

/* =========================================================
   KENO ROULETTE — КНОПКИ УПРАВЛЕНИЯ СТАВКАМИ
========================================================= */

.bets-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.bet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.bet-actions button {
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(190, 158, 238, 0.25);
  border-radius: 12px;
  background: rgba(112, 72, 158, 0.15);
  color: #e9def8;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.bet-actions button:hover:not(:disabled) {
  background: rgba(142, 92, 201, 0.28);
  border-color: rgba(202, 166, 255, 0.65);
  transform: translateY(-2px);
}

.bet-actions button:active:not(:disabled) {
  transform: translateY(0);
}

.bet-actions button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

#undoBet,
#repeatBets {
  min-width: 125px;
}

#clearBets {
  min-width: 120px;
  border-color: rgba(255, 112, 132, 0.25);
  background: rgba(180, 48, 70, 0.12);
  color: #ffb6c0;
}

#clearBets:hover:not(:disabled) {
  background: rgba(180, 48, 70, 0.25);
  border-color: rgba(255, 112, 132, 0.65);
}

@media (max-width: 520px) {
  .bets-heading {
    align-items: flex-start;
  }

  .bet-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bet-actions button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 8px;
    font-size: 12px;
  }

  #clearBets {
    grid-column: 1 / -1;
  }
}
/* Убираем стрелку рулетки */
.wheel-pointer {
    display: none !important;
}



/* ==========================================
   KENO — PREMIUM ROULETTE CHIPS
========================================== */

.chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
}

.chip,
.chip[data-chip] {
    box-sizing: border-box;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 43px;
    min-width: 43px;
    max-width: none;
    height: 43px;
    min-height: 43px;
    flex: 0 0 auto;

    padding: 0;
    border: 2px dashed #ffffffb8;
    border-radius: 50%;

    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.4px;
    white-space: nowrap;

    box-shadow:
        inset 0 0 0 3px #0003,
        inset 0 2px 5px #ffffff40,
        0 3px 7px #0005;

    cursor: pointer;
    transition:
        filter .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

/* 1 — лаванда */
.chip[data-chip="1"] {
    color: #fff;
    background: radial-gradient(
        circle at 32% 25%,
        #d9c6ff, #8860d9 65%, #50318e
    );
}

/* 5 — золото */
.chip[data-chip="5"] {
    color: #352400;
    background: radial-gradient(
        circle at 32% 25%,
        #fff0a6, #d6a52e 65%, #85530c
    );
}

/* 10 — розовый */
.chip[data-chip="10"] {
    background: radial-gradient(
        circle at 32% 25%,
        #ffb7d8, #e65391 65%, #922454
    );
}

/* 25 — зелёный */
.chip[data-chip="25"] {
    background: radial-gradient(
        circle at 32% 25%,
        #b2ffd0, #35b979 65%, #176343
    );
}

/* 50 — синий */
.chip[data-chip="50"] {
    background: radial-gradient(
        circle at 32% 25%,
        #b9e8ff, #398de0 65%, #174b91
    );
}

/* 100 — оранжевый */
.chip[data-chip="100"] {
    background: radial-gradient(
        circle at 32% 25%,
        #ffd0a1, #ed812e 65%, #963c13
    );
}

/* 1 000 — премиальное золото */
.chip[data-chip="1000"] {
    width: 54px;
    min-width: 54px;
    border-color: #fff0b4;
    border-radius: 50%;

    color: #392600;
    background: radial-gradient(
        circle at 32% 25%,
        #fff5be, #e5b83f 60%, #94600e
    );

    box-shadow:
        inset 0 0 0 3px #a97518,
        inset 0 0 0 5px #ffe9a0,
        0 3px 7px #0005;
}

/* 10 000 — бирюзовая премиальная */
.chip[data-chip="10000"] {
    width: 66px;
    min-width: 66px;
    border-color: #b2fff3;
    border-radius: 24px;

    color: #062b2b;
    background: radial-gradient(
        circle at 32% 25%,
        #c4fff4, #35d6c2 60%, #087d79
    );

    font-size: 10px;
    letter-spacing: -0.5px;

    box-shadow:
        inset 0 0 0 3px #087d79,
        inset 0 0 0 5px #a6fff0,
        0 3px 7px #0005;
}

/* 100 000 — рубиновая */
.chip[data-chip="100000"] {
    width: 76px;
    min-width: 76px;
    border-color: #ffd4df;
    border-radius: 24px;

    color: #fff;
    background: radial-gradient(
        circle at 32% 25%,
        #ffb8c9, #d52f59 60%, #76152f
    );

    font-size: 10px;
    letter-spacing: -0.6px;

    box-shadow:
        inset 0 0 0 3px #76152f,
        inset 0 0 0 5px #ffb8c9,
        0 3px 7px #0005;
}

/* 1 000 000 — чёрно-золотая VIP */
.chip[data-chip="1000000"] {
    width: 88px;
    min-width: 88px;
    border-color: #f2d18b;
    border-radius: 24px;

    color: #fff3c4;
    background: radial-gradient(
        circle at 32% 25%,
        #71604a, #28202d 60%, #100d16
    );

    font-size: 10px;
    letter-spacing: -0.6px;

    box-shadow:
        inset 0 0 0 3px #45321f,
        inset 0 0 0 5px #c4a15e,
        0 3px 7px #0005;
}

/* Наведение */
.chip:hover {
    filter: brightness(1.16);
    transform: translateY(-2px);
}

/* Выбранная фишка */
.chip.active,
.chip[data-chip].active {
    outline: 2px solid #fff;
    outline-offset: 3px;
    filter: brightness(1.12);
    transform: translateY(-1px);

    box-shadow:
        inset 0 0 0 3px #0003,
        0 0 0 1px #ffffff55,
        0 0 12px #c7a1ff66;
}

/* Убираем маленькую иконку возле выбранного номинала */
.selected-chip .mini-chip,
#selectedChipIcon {
    display: none !important;
}

.selected-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

#selectedChipText {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Мобильная версия */
@media (max-width: 520px) {
    .chip-list {
        gap: 8px;
    }

    .chip,
    .chip[data-chip] {
        width: 39px;
        min-width: 39px;
        height: 39px;
        min-height: 39px;
        font-size: 11px;
    }

    .chip[data-chip="1000"] {
        width: 50px;
        min-width: 50px;
    }

    .chip[data-chip="10000"] {
        width: 62px;
        min-width: 62px;
        font-size: 9px;
    }

    .chip[data-chip="100000"] {
        width: 70px;
        min-width: 70px;
        font-size: 9px;
    }

    .chip[data-chip="1000000"] {
        width: 80px;
        min-width: 80px;
        font-size: 9px;
    }
}
.chip-all-in {
  background: linear-gradient(135deg, #b98a45, #f0cf83, #9c682b) !important;
  color: #211508 !important;
  border: 1px solid #f5d99b !important;
  font-weight: 900 !important;
  letter-spacing: .5px;
  min-width: 76px;
}

.chip-all-in.active {
  box-shadow:
    0 0 0 2px #f5d99b,
    0 0 18px rgba(240, 207, 131, .45) !important;
  transform: translateY(-2px);
}