/* Казино-фишки KAPSULAS и режим валюты. Подключается последним. */
/* Режим $: иконка-звезда рядом с суммами скрыта, число уже содержит «$» (moneyNum в app.js). */
html[data-cur="usd"] .star:not(.tg-star) { display: none !important; }   /* .tg-star — настоящие Telegram Stars, остаются */
.amounts .amt-eq { display: block; width: 100%; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 2px; }
html[data-cur="usd"] .bet-input::before { content: '$'; font: 700 15px var(--display); color: var(--gold, #f7c948); margin-right: 2px; }

.kchips { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 11px 7px 9px; margin: -11px -7px -5px; scroll-snap-type: x proximity; }
.kchips::-webkit-scrollbar { display: none; }
.kchip { flex: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; position: relative; scroll-snap-align: center;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .14s cubic-bezier(.3,.7,.4,1), filter .14s; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.kchip .kchip-svg { display: block; width: 100%; height: 100%; }
.kchip:active { transform: scale(.93); }
.kchip[aria-checked="true"] { transform: translateY(-3px) scale(1.12); filter: drop-shadow(0 0 0 transparent) drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.kchip[aria-checked="true"]::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px #f7c948, 0 0 16px 2px rgba(247, 201, 72, .6); pointer-events: none;
  animation: kchipGlow 1.6s ease-in-out infinite; }
.kchip:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }
.kchip[disabled] { filter: grayscale(.8) brightness(.55); cursor: default; }
@keyframes kchipGlow { 50% { box-shadow: 0 0 0 2px #fde68a, 0 0 22px 4px rgba(247, 201, 72, .75); } }
.kchip-ghost { position: fixed; z-index: 9999; pointer-events: none; margin: 0; }
/* сумма ставки «подпрыгивает» при изменении */
.kbump { animation: kbump .28s ease-out; }
@keyframes kbump { 40% { transform: scale(1.14); } }

html.lite .kchip, html.lite .kchip[aria-checked="true"] { filter: none; transition: none; }
html.lite .kchip[aria-checked="true"]::after { animation: none; box-shadow: 0 0 0 2px #f7c948; }
@media (prefers-reduced-motion: reduce) {
  .kchip, .kchip[aria-checked="true"] { transition: none; }
  .kchip[aria-checked="true"] { transform: scale(1.08); }
  .kchip[aria-checked="true"]::after { animation: none; }
  .kbump { animation: none; }
}
@media (max-width: 360px) { .kchip { width: 42px; height: 42px; } }

/* Stock Market: ряд фишек вместо текстовых кнопок */
.sm-side .kchips { padding-top: 8px; }
/* Ice Fishing */
.if-kchips { justify-content: flex-start; }
/* настройки «Валюта и фишки»: без анимации выбора / без блеска */
html.kc-noanim .kchip, html.kc-noanim .kchip[aria-checked="true"] { transition: none; transform: none; }
html.kc-noglow .kchip[aria-checked="true"]::after { animation: none; box-shadow: 0 0 0 2px #f7c948; }
html[data-cur="usd"] .amounts button { flex-wrap: wrap; justify-content: center; align-content: center; }

/* ---------- лоток выбора фишки: одинаковый во всех играх с фишками ----------
   Все фишки набора в один ряд на всю ширину (без прокрутки и скрытых номиналов), над ними — подпись и сумма. */
.ktray { background: var(--m-surface-2, #1e1a2e); border-radius: 18px; padding: 8px 10px 9px; box-shadow: inset 0 0 0 1px var(--m-hair, rgba(255, 255, 255, .08)); }
.ktray-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 0; }
.ktray-head span { font-size: 13px; font-weight: 600; color: var(--muted); }
.ktray-head b { font-size: 17px; color: var(--text); }
.ktray .kchips { display: grid; grid-template-columns: repeat(var(--kn, 7), minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 7px 0 0; margin: 0; scroll-snap-type: none; }
.ktray .kchip { width: 100%; height: auto; aspect-ratio: 1; max-width: 50px; justify-self: center; }
.ktray .kchip[aria-checked="true"] { transform: translateY(-4px) scale(1.08); }
.ktray .kchip[aria-checked="true"]::after { inset: -3px; box-shadow: 0 0 0 2px var(--m-text, #fff); animation: none; }
.ktray .kchip[aria-checked="true"] + .kchip, .ktray .kchip { z-index: 0; }
.ktray .kchip[aria-checked="true"] { z-index: 1; }
@media (max-width: 360px) { .ktray { padding: 8px 6px 10px; } .ktray .kchips { gap: 4px; } }
html.kc-noanim .ktray .kchip[aria-checked="true"] { transform: none; }
.sm-tools { justify-content: flex-end; }
.sm-side .ktray .kchips { padding-top: 7px; }
/* Stock Market на телефоне: лоток фишек выше — компактнее портфель и кнопки, чтобы UP/DOWN и фишки были над меню */
@media (max-width: 899px) {
  #view .sm .btn.sm-cash { min-height: 46px; }
  .sm-pf { padding: 8px 12px 10px; }
  .sm-pf-sub { margin-bottom: 4px; }
  .sm-up, .sm-down { min-height: 54px; }
  .sm-side, .sm-grid { gap: 8px; }
}
@media (max-height: 700px) and (max-width: 899px) { .sm-chart { height: 104px; } .sm-up, .sm-down { min-height: 48px; } #view .sm .btn.sm-cash { min-height: 42px; } .ktray-head b { font-size: 15px; } }
