/* =====================================================================
   БОЛЬШЕ / МЕНЬШЕ — тёмный премиум-казино
   ===================================================================== */

:root {
  --felt-1: #123a52;
  --felt-2: #07202e;
  --bg-0: #07090c;
  --bg-1: #0e1116;
  --bg-2: #151a22;
  --bg-3: #1d242e;
  --line: #2a323f;
  --line-soft: #202834;

  --gold: #e5b95c;
  --gold-dim: #8f7233;
  --gold-bright: #ffd782;
  --text: #e8ecf2;
  --text-dim: #8e99a8;
  --text-faint: #5d6675;
  --red: #e0524a;
  --green: #43c9a0;
  --blue: #4fa3e0;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 46px rgba(0, 0, 0, .55);

  --card-w: 108px;
  --card-h: 152px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 50% -10%, #16232a 0%, transparent 60%),
    var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

/* ------------------------------- ШАПКА ------------------------------- */

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(24, 30, 39, .95), rgba(14, 17, 22, .95));
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 17px;
}

.brand .pips { color: var(--gold); letter-spacing: -2px; font-size: 20px; }
.brand .pips .red { color: var(--red); }

.jackpot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, rgba(229, 185, 92, .16), rgba(229, 185, 92, .05));
  box-shadow: 0 0 26px rgba(229, 185, 92, .13);
}

.jackpot .label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 700;
}

.jackpot .value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--gold-bright);
  font-size: 16px;
}

.balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.balance .label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
}

.balance .value {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 17px;
}

.balance .value.flash { animation: valueFlash .7s ease; }
@keyframes valueFlash {
  0% { color: var(--gold-bright); transform: scale(1.16); }
  100% { color: var(--text); transform: scale(1); }
}

.topup {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: .16s;
}
.topup:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ------------------------------- СЕТКА ------------------------------- */

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: 16px;
  padding: 16px;
  max-width: 1580px;
  margin: 0 auto;
  align-items: start;
}

.col { display: flex; flex-direction: column; gap: 16px; }

.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel > h2 {
  margin: 0;
  padding: 13px 15px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 800;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel > h2 .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* ------------------------------- СТОЛ ------------------------------- */

.table-wrap {
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 12%, var(--felt-1) 0%, var(--felt-2) 62%, #041420 100%);
  box-shadow: var(--shadow), inset 0 0 80px rgba(0, 0, 0, .5);
  padding: 26px 22px 22px;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.table-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.014) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px);
  pointer-events: none;
}

.table-rail {
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(229, 185, 92, .14);
  pointer-events: none;
}

/* ------------------------------ ДИЛЕР-МАСКОТ ------------------------------ */

.dealer-strip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dealer-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 40px;
  background: radial-gradient(circle at 35% 30%, #2e3a4a, #171d26 70%);
  border: 2px solid var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .5);
  transition: border-color .3s, box-shadow .3s;
}

.dealer-strip[data-mood="cheer"] .dealer-avatar,
.dealer-strip[data-mood="win"] .dealer-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .35), 0 0 22px rgba(229, 185, 92, .55);
}

.dealer-strip[data-mood="lose"] .dealer-avatar {
  border-color: rgba(224, 82, 74, .55);
}

.dealer-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
}

.dealer-bubble::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: rgba(0, 0, 0, .38);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 3px;
}

.dealer-strip[data-mood="win"] .dealer-bubble {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
}
.dealer-strip[data-mood="win"] .dealer-bubble::before { border-color: var(--gold-dim); }

.dealer-strip[data-mood="lose"] .dealer-bubble {
  border-color: rgba(224, 82, 74, .35);
}

.dealer-strip.bump .dealer-avatar { animation: dealerBump .5s ease; }
@keyframes dealerBump { 30% { transform: scale(1.08) rotate(-3deg); } 60% { transform: scale(1.02) rotate(2deg); } }

.dealer-strip.bump .dealer-bubble { animation: bubbleIn .35s ease; }
@keyframes bubbleIn { from { opacity: 0; transform: translateX(-6px); } }

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--gold-bright);
  clip-path: polygon(50% 0%, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0% 50%, 37% 37%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.spark-1 { top: -2px; left: -2px; }
.spark-2 { top: 4px; right: -4px; width: 8px; height: 8px; }
.spark-3 { bottom: 2px; right: 8px; width: 7px; height: 7px; }

.dealer-strip[data-mood="win"] .spark { animation: sparkTwinkle 1.1s ease-in-out infinite; }
.dealer-strip[data-mood="win"] .spark-2 { animation-delay: .25s; }
.dealer-strip[data-mood="win"] .spark-3 { animation-delay: .5s; }
@keyframes sparkTwinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.duel-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.duel-vs {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  color: rgba(229, 185, 92, .5);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .3);
  flex: 0 0 auto;
}

.stage-label {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: rgba(229, 185, 92, .55);
  font-weight: 800;
  text-align: center;
}

.row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------- КАРТЫ ------------------------------- */

.card {
  width: var(--card-w);
  height: var(--card-h);
  perspective: 1000px;
  flex: 0 0 auto;
  transition: transform .25s;
}

.card.slot {
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .16);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .58s cubic-bezier(.3, 1.25, .4, 1);
  border-radius: var(--radius-sm);
}

.card.faceup .card-inner { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5);
}

.card-back {
  background:
    repeating-linear-gradient(45deg, #123a52 0 6px, #0d2c3e 6px 12px),
    #123a52;
  border: 2px solid #f2efe6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .32);
}

.card-back .mono {
  color: rgba(255, 255, 255, .55);
  font-size: calc(var(--card-w) * .26);
  font-weight: 900;
  letter-spacing: -1px;
  z-index: 1;
}

.card-front {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #ffffff, #f0eee8);
  border: 1px solid #cfcabb;
  color: #16181c;
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: 800;
}

.card-front.red { color: #cf2233; }

.card-front .corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: .92;
  font-size: calc(var(--card-w) * .22);
}

.card-front .corner .s { font-size: calc(var(--card-w) * .19); }
.card-front .corner.br { transform: rotate(180deg); align-self: flex-end; }

.card-front .pip {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: calc(var(--card-w) * .5);
  opacity: .92;
}

.card.dealing { animation: dealIn .42s cubic-bezier(.2, .9, .3, 1.3) backwards; }
@keyframes dealIn {
  from { opacity: 0; transform: translate(-160px, -120px) rotate(-22deg) scale(.7); }
  to { opacity: 1; transform: none; }
}

.card.win .card-front {
  box-shadow: 0 0 0 3px var(--gold), 0 0 30px rgba(229, 185, 92, .65);
  animation: winPop .5s ease;
}
@keyframes winPop { 40% { transform: rotateY(180deg) translateY(-10px); } }

.card.lose .card-front {
  box-shadow: 0 0 0 3px rgba(224, 82, 74, .55);
  filter: saturate(.7);
}

/* --------------------------- ПАНЕЛЬ УПРАВЛЕНИЯ --------------------------- */

.controls {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.draw-timer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .3);
  transition: border-color .2s, background .2s;
}

.dt-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
}

.dt-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 800;
}

.dt-value {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  font-size: 21px;
  color: var(--gold-bright);
  min-width: 64px;
}

.dt-bar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.dt-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  width: 100%;
  transition: width .25s linear;
}

.draw-timer.urgent {
  border-color: rgba(224, 82, 74, .5);
  background: rgba(224, 82, 74, .1);
}
.draw-timer.urgent .dt-value { color: var(--red); animation: dtPulse .6s ease-in-out infinite; }
.draw-timer.urgent .dt-bar-fill { background: linear-gradient(90deg, #e0524a, #ff8a7a); }
@keyframes dtPulse { 50% { opacity: .45; } }

.draw-timer.live {
  border-color: var(--gold-dim);
  background: rgba(229, 185, 92, .08);
}
.draw-timer.live .dt-value { color: var(--gold-dim); }

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-row .cap {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  font-weight: 800;
  min-width: 74px;
}

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

.chip {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: .16s;
}

.chip:hover:not(:disabled) { border-color: var(--gold-dim); }

.chip.active {
  border-color: var(--gold);
  color: #1a1408;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 18px rgba(229, 185, 92, .4);
}

.chip:disabled { opacity: .35; }

/* ------------------------------ СТАВКА НА СТОРОНУ ------------------------------ */

.bet-row { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; }

.bet-btn {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  transition: .16s;
}

.bet-btn .bb-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.bet-btn .bb-pay {
  font-size: 17px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
}

.bet-btn .bb-chance {
  font-size: 10px;
  color: var(--text-faint);
}

.bet-btn:hover:not(:disabled) { border-color: var(--gold-dim); }

.bet-btn.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(229, 185, 92, .22), rgba(229, 185, 92, .06));
  box-shadow: 0 0 18px rgba(229, 185, 92, .25);
}
.bet-btn.active .bb-name { color: var(--gold-bright); }
.bet-btn.active .bb-pay { color: var(--gold-bright); }

.bet-btn:disabled { opacity: .32; }
.bet-btn:disabled .bb-pay::after { content: '—'; }
.bet-btn:disabled .bb-pay { visibility: hidden; position: relative; }
.bet-btn:disabled .bb-pay::after { visibility: visible; position: absolute; left: 50%; transform: translateX(-50%); }

.action-row { display: flex; gap: 12px; align-items: center; }

.btn-primary {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #1a1408;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #c99a3c);
  box-shadow: 0 8px 26px rgba(229, 185, 92, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: .16s;
}

.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(229, 185, 92, .45); }
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { background: #2b323d; color: var(--text-faint); box-shadow: none; }

.hint {
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
  text-align: center;
  min-height: 16px;
}

/* ------------------------------- ИТОГ ------------------------------- */

.result {
  position: relative;
  z-index: 3;
  margin-top: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .4);
  padding: 16px 20px;
  display: none;
  text-align: center;
  animation: resultIn .45s cubic-bezier(.2, .9, .3, 1.25) both;
}

.result.show { display: block; }
@keyframes resultIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }

.result.win {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(229, 185, 92, .16), rgba(0, 0, 0, .45));
  box-shadow: 0 0 40px rgba(229, 185, 92, .22);
}

.result .combo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .4px;
  margin-bottom: 3px;
}
.result.win .combo { color: var(--gold-bright); }

.result .sub { font-size: 12px; color: var(--text-dim); }

.result .amount {
  font-size: 34px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  margin-top: 8px;
  text-shadow: 0 0 30px rgba(229, 185, 92, .5);
}

/* ---------------------------- ТАБЛИЦА ВЫИГРЫШЕЙ ---------------------------- */

.pt-head {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 1fr;
  gap: 4px;
  padding: 8px 14px 6px;
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 800;
  text-align: center;
}
.pt-head span:first-child { text-align: left; }

.pt-row {
  display: grid;
  grid-template-columns: 44px 1fr 1fr 1fr;
  gap: 4px;
  align-items: center;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: .2s;
  text-align: center;
}

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

.pt-row .card-tag {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
}
.pt-row .card-tag.red { color: var(--red); }

.pt-row .pay {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 12px;
  color: var(--gold);
  white-space: nowrap;
}
.pt-row .pay.dash { color: var(--text-faint); font-weight: 600; }

.pt-row.current {
  background: linear-gradient(90deg, rgba(229, 185, 92, .2), transparent);
  box-shadow: inset 3px 0 0 var(--gold);
}
.pt-row.current .card-tag { color: var(--gold-bright); }

.pt-row.hit-less .pay.less,
.pt-row.hit-more .pay.more,
.pt-row.hit-equal .pay.equal {
  color: var(--green);
  text-shadow: 0 0 10px rgba(67, 201, 160, .6);
}

.pt-foot {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--text-faint);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
}

/* ------------------------------- ЛЕНТЫ ------------------------------- */

.feed { max-height: 250px; overflow-y: auto; }

.feed-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  animation: slideIn .35s ease both;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-14px); } }

.feed-item.mine { background: rgba(229, 185, 92, .08); box-shadow: inset 3px 0 0 var(--gold); }

.avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
  color: #0d0f13;
}

.feed-item .who { flex: 1; min-width: 0; }
.feed-item .nick { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .combo { font-size: 10px; color: var(--text-faint); }
.feed-item .amt { font-size: 13px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.feed-item .amt.lose { color: var(--text-faint); }

/* --------------------------- ИСТОРИЯ СВОИХ ИГР --------------------------- */

.hist { max-height: 230px; overflow-y: auto; }

.hist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}

.minicards { display: flex; gap: 4px; align-items: center; }

.mc {
  width: 20px; height: 26px;
  border-radius: 3px;
  background: #f2efe8;
  color: #16181c;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 1px solid #c9c3b4;
}
.mc.red { color: #cf2233; }
.mc.win { box-shadow: 0 0 0 1.5px var(--gold); }
.mc.arrow { width: auto; height: auto; background: none; border: none; color: var(--text-faint); font-size: 11px; }

.hist-item .h-combo { flex: 1; color: var(--text-dim); font-size: 11px; }
.hist-item .h-amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.hist-item .h-amt.plus { color: var(--green); }
.hist-item .h-amt.minus { color: var(--text-faint); }

.empty { padding: 18px 14px; text-align: center; color: var(--text-faint); font-size: 12px; }

/* -------------------------------- ЧАТ -------------------------------- */

.chat-log {
  height: 250px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.msg { font-size: 12px; line-height: 1.45; animation: slideIn .3s ease both; }
.msg .nick { font-weight: 800; margin-right: 5px; }
.msg .txt { color: var(--text-dim); }
.msg.system .txt { color: var(--gold-dim); font-style: italic; }
.msg.me .nick { color: var(--gold); }

.chat-input {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
}

.chat-input input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 12px;
  font-family: inherit;
  outline: none;
}
.chat-input input:focus { border-color: var(--gold-dim); }

.chat-input button {
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 9px;
  padding: 0 14px;
  font-weight: 800;
  font-size: 14px;
}
.chat-input button:hover { border-color: var(--gold-dim); }

/* ------------------------------ СКРОЛЛБАРЫ ------------------------------ */

.feed::-webkit-scrollbar, .hist::-webkit-scrollbar, .chat-log::-webkit-scrollbar { width: 6px; }
.feed::-webkit-scrollbar-thumb, .hist::-webkit-scrollbar-thumb, .chat-log::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 3px;
}
.feed::-webkit-scrollbar-track, .hist::-webkit-scrollbar-track, .chat-log::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------- КОНФЕТТИ ------------------------------- */

.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 9px;
  height: 14px;
  opacity: .95;
  animation: fall linear forwards;
}

@keyframes fall {
  to { transform: translateY(105vh) rotate(720deg); opacity: 0; }
}

/* ------------------------------ АДАПТИВ ------------------------------ */

@media (max-width: 1280px) {
  .layout { grid-template-columns: 1fr 300px; }
  .col.left { grid-column: 1 / -1; order: 3; flex-direction: row; }
  .col.left .panel { flex: 1; }
}

@media (max-width: 900px) {
  :root { --card-w: 84px; --card-h: 118px; }
  .layout { grid-template-columns: 1fr; padding: 10px; gap: 12px; }
  .col.left { flex-direction: column; }
  .table-wrap { padding: 18px 12px 16px; min-height: auto; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .jackpot { order: 3; margin-left: 0; width: 100%; justify-content: center; }
  .brand { font-size: 15px; }
  .action-row { flex-direction: column; }
  .control-row .cap { min-width: 100%; }
  .bet-btn { min-width: 100px; }
}
