/* ==========================================================================
   Chicken Train Syria — стили игры.
   Размеры — из макета Figma «Landing CH2» (десктоп 1440×900, телефон 390×844),
   цвета — палитра макета (переменные ниже). Шрифт макета — Inter Bold;
   арабский текст Inter не поддерживает, для него — Rubik.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-aa4c26661f.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-8ca0a51552.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("../fonts/rubik-arabic-fa1623ef55.woff2") format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ---------- Палитра макета ---------- */
:root {
  --ui: 'Inter', 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bg: #080F24; /* тёмный фон */
  --surface: #0B1730; /* основная поверхность */
  --panel: #0B1830; /* панель управления */
  --input: #0C152A; /* поле ввода */
  --btn: #1A2943; /* вторичные кнопки */
  --btn-line: #4E6380; /* обводки кнопок */
  --text: #FFFFFF; /* основной текст */
  --text-2: #B4C6DE; /* вторичный текст */
  --gold: #F7D455; /* золотой акцент */
  --balance: #FFD263; /* значение баланса */
  --online: #14EF81; /* индикатор онлайн */
  --go: linear-gradient(180deg, #C7FFDB 0%, #60E999 30%, #14B962 70%, #047338 100%); /* зелёная кнопка */
  --mult: linear-gradient(180deg, #0EBC76 0%, #1C8F63 50%, #034B38 100%); /* множители */
  --picked: linear-gradient(180deg, #746345 0%, #24394C 100%); /* выбранная ставка / сложность */
  --shell-line: #526071;
  --stage-line: #52647A;
  --panel-line: #3D536E;
  --picked-line: #D4AC58;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

html {
  background: var(--bg);
}

/* фон: ночной город + затемнение #080F24 16% */
body {
  background: linear-gradient(rgba(8, 15, 36, .16), rgba(8, 15, 36, .16)), var(--bg) url("../img/bg-b8e57acea2.webp") center / cover no-repeat fixed;
  color: var(--text);
  font: 700 15px/1.2 var(--ui);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.root {
  position: relative;
  height: 100%;
  height: 100dvh;
  overflow: hidden auto;
  display: grid;
  padding: 22px 0 30px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- Лоадер ---------- */
.load {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: var(--bg);
  transition: opacity .8s, visibility 0s .8s;
}

/* pointer-events сразу: пока лоадер гаснет, он не должен перехватывать тап по кнопке игры */
.root.is-ready .load {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.load-logo {
  max-width: 78%;
}

.load-logo img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  margin: 0 auto;
}

.load-bar {
  width: 62%;
  max-width: 260px;
  height: 18px;
  padding: 3px;
  border-radius: 9px;
  background: var(--input);
  border: 2px solid var(--btn-line);
}

.load-bar>i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 5px;
  background: var(--go);
  transition: width .15s ease-out;
}

/* ---------- Каркас: карточка игры 1300×848 ---------- */
.app {
  position: relative;
  z-index: 1;
  width: min(1300px, 100vw - 32px);
  /* по макету 848; на низких экранах сцена сжимается, но карточка не меньше своего содержимого */
  height: min(848px, 100dvh - 52px);
  min-height: min-content;
  margin: auto;
  padding: 22px 27px 13px;
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  background: rgba(11, 23, 48, .92);
  border: 3px solid var(--shell-line);
}

/* ---------- Шапка ---------- */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-right: 3px;
}

/* пилюля приложения 245×67 */
.app-id {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 67px;
  min-width: min(245px, 60%);
  padding: 4px 16px 4px 6px;
  border-radius: 18px;
  background: #0D2040;
  border: 2px solid #33516C;
}

.app-icon {
  width: 55px;
  height: 55px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
}

.app-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
}

.app-name {
  font-size: 20px;
  line-height: 24px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  line-height: 17px;
  color: #D0E1ED;
  white-space: nowrap;
}

.app-online b {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.app-online span {
  overflow: hidden;
  text-overflow: ellipsis;
  margin-inline-start: -3px;
}

.live-dot {
  position: relative;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin-inline-start: 2px;
  border-radius: 50%;
  background: var(--online);
  flex: none;
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--online);
  opacity: 0;
  animation: livePing 1.8s ease-out infinite;
}

@keyframes livePing {
  0% {
    transform: scale(.4);
    opacity: .9;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* пилюля баланса 187×66 */
.bal-pill {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 66px;
  min-width: 187px;
  max-width: 50%;
  padding: 0 16px 0 8px;
  margin-top: 1px;
  border-radius: 18px;
  flex: 0 1 auto;
  background: #0C2040;
  border: 2px solid #856D40;
}

/* монета 40×40 с «$» */
.bal-coin {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #E2AE3F;
  border: 4px solid #FFE084;
  color: #6B3C12;
  font-style: normal;
  font-size: 23px;
  line-height: 1;
}

.bal-pill>div {
  display: grid;
  gap: 1px;
  min-width: 0;
  max-width: 100%;
}

.bal-pill span {
  font-size: 13px;
  line-height: 16px;
  color: #BDCFEA;
  text-transform: uppercase;
}

.bal-pill b {
  font-size: 22px;
  line-height: 27px;
  color: var(--balance);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
}

.bal-pill.bump {
  animation: bump .35s ease-out;
}

@keyframes bump {
  40% {
    transform: scale(1.08);
    box-shadow: 0 0 22px rgba(255, 210, 99, .6);
  }
}

/* ---------- Логотип 300×150 ---------- */
.top {
  display: flex;
  justify-content: center;
  margin: 5px 0 0;
  flex: none;
}

.logo {
  display: block;
  height: clamp(90px, 16.7dvh, 150px);
  width: auto;
}

/* ---------- Сцена 1240×426 ---------- */
.stage {
  position: relative;
  /* занимает остаток карточки: при высоте 848 — ровно 426, как в макете */
  flex: 1 1 0;
  min-height: 240px;
  margin-top: 9px;
  border-radius: 14px;
  overflow: hidden;
  background: #29303A;
}

/* обводка сцены 3px — поверх картинки */
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 9;
  border: 3px solid var(--stage-line);
  border-radius: inherit;
  pointer-events: none;
}

/* Мир высотой 1000 масштабируется app.js под высоту сцены; ширину и позиции частей задаёт applyLayout() */
.world {
  position: absolute;
  left: 0;
  top: 0;
  height: 1000px;
  transform-origin: 0 0;
  transition: transform .55s cubic-bezier(.3, .7, .3, 1);
  will-change: transform;
}

.world.no-anim,
.world.no-anim .hen {
  transition: none;
}

/* дворик: картинка 1418×1024 при высоте 1000 — 1385 в ширину; видна только левая часть */
.court-clip {
  position: absolute;
  left: 0;
  top: 0;
  height: 1000px;
  overflow: hidden;
}

.court {
  position: absolute;
  left: 0;
  top: 0;
  width: 1385px;
  height: 1000px;
  display: block;
}

/* тот же дворик зеркально — платформа с призом за последним путём */
.court-end {
  transform: scaleX(-1);
}

.rails {
  position: absolute;
  top: 0;
  height: 1000px;
  display: block;
}

/* золотая полоса между двориком и путями */
.divider {
  position: absolute;
  top: 0;
  z-index: 1;
  height: 1000px;
  background: #D6AB3E;
}

/* ---------- Жетон-множитель 122×122 (как в макете, слоями) ----------
   app.js задаёт размер жетона и font-size = 0,195 размера (цифра 23,79px при 122px). */
.token {
  position: absolute;
  z-index: 2;
  border-radius: 50%;
  background: #111920;
  box-shadow: inset 0 0 0 .168em var(--gold);
  transition: transform .3s, filter .3s;
}

/* золотые полосы: кольцо 111×111 толщиной 13,4 */
.token::before {
  content: '';
  position: absolute;
  inset: 4.5%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 10deg, #F6C94B 0 26.7deg, transparent 0 45deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(87.9% - 1px), #000 87.9%);
  mask: radial-gradient(farthest-side, transparent calc(87.9% - 1px), #000 87.9%);
}

/* внутренний обод 92,7×92,7 */
.token::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: #0C563B;
  box-shadow: inset 0 0 0 .126em #E7F6A3;
}

/* изумрудная середина 83×83 с цифрой */
.mult {
  position: absolute;
  inset: 16%;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mult);
  box-shadow: inset 0 0 0 .084em #7BE6A0;
  font-size: 1em;
  line-height: 1;
  color: var(--text);
  white-space: nowrap;
  direction: ltr;
  unicode-bidi: isolate;
  transition: color .3s;
}

/* блик 44×44 */
.mult::before {
  content: '';
  position: absolute;
  left: 10.3%;
  top: 7.4%;
  width: 52.9%;
  height: 52.9%;
  border-radius: 50%;
  background: rgba(160, 255, 194, .12);
  pointer-events: none;
}

.token.next {
  animation: tokenPulse 1.4s ease-in-out infinite;
}

@keyframes tokenPulse {
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 22px rgba(247, 212, 85, .9));
  }
}

.token.done .mult {
  color: var(--balance);
}

/* шлагбаум 2:1 над жетоном */
.barrier {
  position: absolute;
  z-index: 4;
  transform: translateY(-60%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, 1.5, .4, 1), opacity .2s;
  pointer-events: none;
}

.barrier.on {
  transform: translateY(0);
  opacity: 1;
}

.prize {
  position: absolute;
  animation: bob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(255, 210, 99, .55));
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.car {
  position: absolute;
  top: 0;
  z-index: 3;
  will-change: transform;
  pointer-events: none;
}

.hen {
  position: absolute;
  transition: left .46s cubic-bezier(.3, .7, .4, 1);
  z-index: 5;
  pointer-events: none;
}

.hen.hop {
  animation: hop .46s ease-out;
}

@keyframes hop {
  0% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-120px);
  }

  100% {
    transform: translateY(0);
  }
}

.hen.shake {
  animation: shake .45s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-16px) rotate(-6deg);
  }

  40% {
    transform: translateX(14px) rotate(5deg);
  }

  60% {
    transform: translateX(-10px);
  }

  80% {
    transform: translateX(6px);
  }
}

.hen.cheer {
  animation: cheer .7s ease-in-out infinite;
}

@keyframes cheer {

  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  30% {
    transform: translateY(-70px) rotate(-6deg);
  }

  60% {
    transform: translateY(0) rotate(4deg);
  }
}

/* «пуф» в месте столкновения с поездом */
.burst {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 7;
  pointer-events: none;
}

.poof {
  position: absolute;
  left: -170px;
  top: -170px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 250, 235, .95) 0 28%, rgba(220, 210, 190, .55) 48%, rgba(200, 190, 170, 0) 70%);
  animation: poof .7s ease-out forwards;
}

@keyframes poof {
  0% {
    transform: scale(.2);
    opacity: 1;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.stage-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, rgba(255, 90, 70, .5), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}

.stage-flash.on {
  opacity: 1;
  transition: none;
}

/* ---------- Лента «Live wins» 304×62 ---------- */
.lw {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: 304px;
  height: 62px;
  padding: 4px 14px;
  border-radius: 14px;
  background: rgba(29, 41, 68, .9);
  border: 2px solid #648164;
  pointer-events: none;
  font-size: 15px;
  line-height: 18px;
  direction: ltr;
}

.lw-h {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--text);
  white-space: nowrap;
}

.lw-h>i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35E783;
  animation: lwDot 1.6s ease-in-out infinite;
}

@keyframes lwDot {
  50% {
    opacity: .45;
  }
}

.lw-list {
  position: relative;
  width: 100%;
  height: 18px;
}

.lw-row {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  white-space: nowrap;
  color: #DFF8DF;
  transform: translateX(-115%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.2, .9, .3, 1.15), opacity .3s;
}

.lw-row.in {
  transform: none;
  opacity: 1;
}

.lw-row.out {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .35s ease-in, opacity .35s;
}

/* аватар: «голова и плечи» на цветном круге, оттенок задаёт app.js через --h */
.lw-av {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #ffe3d8 0 21%, transparent 22%), radial-gradient(ellipse 62% 46% at 50% 100%, #ffe3d8 0 97%, transparent 100%), hsl(var(--h, 8) 72% 56%);
}

/* флажок страны (фон задаёт app.js из liveWinsFeed.currencies) */
.lw-fl {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 10px;
  height: 7px;
  border-radius: 1.5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}

.lw-row>b {
  flex: 0 1 auto;
  min-width: 38px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.lw-row>em {
  flex: none;
  font-style: normal;
  unicode-bidi: isolate;
  direction: ltr;
}

/* ---------- Кнопка звука 44×44 ---------- */
.sound-btn {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 8;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: #1D2A3D;
  border: 2px solid #E0BD66;
  color: #F9CB55;
  transition: transform .15s;
}

/* в конфиге выключены и музыка, и эффекты */
.sound-btn[hidden] {
  display: none;
}

.sound-ico {
  position: relative;
  font-size: 26px;
  line-height: 1;
}

.sound-btn:active {
  transform: scale(.94);
}

.sound-btn:focus-visible {
  outline: 2px solid var(--online);
  outline-offset: 2px;
}

/* звук выключен: нота тусклее и перечёркнута */
.sound-btn[aria-pressed="false"] .sound-ico {
  opacity: .55;
}

.sound-btn[aria-pressed="false"]::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 2px;
  border-radius: 1px;
  background: #FF5A4A;
  transform: rotate(45deg);
}

/* ---------- Падающие цветы жасмина ---------- */
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 6;
}

.petal {
  position: absolute;
  top: -24px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  opacity: var(--o);
  rotate: var(--r);
  background: radial-gradient(circle, #FFF6C0 0 18%, #FFFFFF 20% 62%, rgba(255, 255, 255, 0) 66%);
  animation: petalY var(--d) linear var(--del) infinite, petalX var(--w) ease-in-out var(--del) infinite alternate;
}

.petal:nth-child(3n) {
  background: radial-gradient(circle, #FFE08A 0 16%, #FFFFFF 18% 60%, rgba(255, 255, 255, 0) 64%);
}

.petal.big {
  border-radius: 0;
  opacity: .9;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
  background: url("../img/73961e94506602202b816230632933920317ddd7.svg") center / contain no-repeat;
  animation: petalY var(--d) linear var(--del) infinite, petalX var(--w) ease-in-out var(--del) infinite alternate, petalSpin 6s linear infinite;
}

/* параметры каждого цветка */
.petal:nth-child(1) { --x: 35%; --s: 16px; --d: 13.5s; --w: 4.5s; --del: -12.5s; --o: .85; --r: 170deg; }
.petal:nth-child(2) { --x: 20%; --s: 9px; --d: 11.8s; --w: 3s; --del: -1s; --o: .9; --r: 75deg; }
.petal:nth-child(3) { --x: 5%; --s: 8px; --d: 13s; --w: 4s; --del: -.2s; --o: .73; --r: 37deg; }
.petal:nth-child(4) { --x: 12%; --s: 9px; --d: 12.9s; --w: 4.5s; --del: -11.6s; --o: .87; --r: 35deg; }
.petal:nth-child(5) { --x: 34%; --s: 7px; --d: 9.4s; --w: 4.7s; --del: -7.7s; --o: .94; --r: 171deg; }
.petal:nth-child(6) { --x: 48%; --s: 19px; --d: 11.8s; --w: 4.1s; --del: -4.8s; --o: .83; --r: 162deg; }
.petal:nth-child(7) { --x: 35%; --s: 9px; --d: 11.3s; --w: 4.4s; --del: -1.9s; --o: .85; --r: 113deg; }
.petal:nth-child(8) { --x: 70%; --s: 7px; --d: 9.2s; --w: 3.8s; --del: -3.5s; --o: .79; --r: 155deg; }
.petal:nth-child(9) { --x: 37%; --s: 8px; --d: 8.8s; --w: 3.7s; --del: -3.3s; --o: .72; --r: 49deg; }
.petal:nth-child(10) { --x: 91%; --s: 7px; --d: 8.4s; --w: 4.1s; --del: -13.4s; --o: .77; --r: 108deg; }
.petal:nth-child(11) { --x: 7%; --s: 15px; --d: 11s; --w: 4.2s; --del: -6.2s; --o: .73; --r: 105deg; }
.petal:nth-child(12) { --x: 96%; --s: 9px; --d: 13.3s; --w: 4.5s; --del: -2.8s; --o: .91; --r: 95deg; }
.petal:nth-child(13) { --x: 68%; --s: 9px; --d: 8.8s; --w: 4.9s; --del: -8.4s; --o: .87; --r: 54deg; }
.petal:nth-child(14) { --x: 81%; --s: 6px; --d: 12.2s; --w: 2.6s; --del: -8.2s; --o: .82; --r: 46deg; }
.petal:nth-child(15) { --x: 39%; --s: 7px; --d: 12.7s; --w: 3.9s; --del: -12.6s; --o: .7; --r: 109deg; }
.petal:nth-child(16) { --x: 84%; --s: 18px; --d: 12.8s; --w: 4.2s; --del: -13.6s; --o: .9; --r: 165deg; }
.petal:nth-child(17) { --x: 13%; --s: 8px; --d: 8.8s; --w: 3.3s; --del: -5.7s; --o: .92; --r: 144deg; }
.petal:nth-child(18) { --x: 78%; --s: 9px; --d: 13.6s; --w: 3.8s; --del: -11.9s; --o: .66; --r: 81deg; }

@keyframes petalY {
  from {
    top: -24px;
  }

  to {
    top: calc(100% + 24px);
  }
}

@keyframes petalX {
  from {
    translate: -14px 0;
  }

  to {
    translate: 14px 0;
  }
}

@keyframes petalSpin {
  to {
    rotate: 360deg;
  }
}

/* ---------- Панель управления 1240×135 ---------- */
.panel {
  position: relative;
  flex: none;
  display: grid;
  /* колонки 383 · 410 · 341 с промежутками 33 и 27, как в макете */
  grid-template-columns: minmax(0, 383fr) 33px minmax(0, 410fr) 27px minmax(0, 341fr);
  min-height: 135px;
  margin-top: 15px;
  padding: 12px 25px 19px 17px;
  border-radius: 22px;
  background: var(--panel);
  border: 2px solid var(--panel-line);
}

.block {
  display: grid;
  gap: 11px;
  align-content: end;
  min-width: 0;
}

.panel>.block:nth-child(1) {
  grid-column: 1;
  padding-top: 3px;
}

.panel>.block:nth-child(2) {
  grid-column: 3;
}

.panel>.block:nth-child(3) {
  grid-column: 5;
}

.block-title {
  font-size: 14px;
  line-height: 17px;
  color: #B9C9E2;
  text-transform: uppercase;
  padding-left: 5px;
}

/* MIN 80×45 · поле 199×45 · MAX 80×45 */
.bet-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 80px;
  gap: 12px;
}

.pill {
  min-height: 45px;
  padding: 0 8px;
  border-radius: 14px;
  border: 2px solid var(--btn-line);
  background: var(--btn);
  font-size: 18px;
  color: #C0D0E7;
  transition: border-color .2s, background .2s;
}

.pill:hover:not(:disabled) {
  border-color: var(--picked-line);
}

.pill:disabled,
.seg button:disabled {
  opacity: .45;
  cursor: default;
}

.bet-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 45px;
  border-radius: 14px;
  background: var(--input);
  border: 2px solid var(--btn-line);
  min-width: 0;
}

.bet-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 34px;
  background: none;
  text-align: center;
  font-size: 25px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.bet-field i {
  position: absolute;
  right: 13px;
  font-style: normal;
  font-size: 21px;
  color: #FFCF48;
}

/* пресеты 86×41, промежуток 10 */
.presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 374px;
}

.presets .pill {
  min-height: 41px;
  border-radius: 12px;
  font-size: 17px;
  color: #F8FBFF;
  direction: ltr;
  unicode-bidi: isolate;
}

.presets .pill.on,
.seg button.on {
  color: var(--text);
  background: var(--picked);
  border-color: var(--picked-line);
}

/* сложность: рамка 410×72, пункты 97×56 */
.seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 6px;
  border-radius: 18px;
  background: #0D1930;
  border: 2px solid #52647E;
}

.seg button {
  min-height: 56px;
  padding: 0 4px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: none;
  font-size: 18px;
  color: var(--text-2);
}

.seg button[data-level="hardcore"] {
  font-size: 16px;
}

.pill:focus-visible,
.seg button:focus-visible,
.bet-field:focus-within {
  outline: 2px solid var(--online);
  outline-offset: 2px;
}

/* Блок действий: по макету — одна кнопка «انطلق» */
.act-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  padding-top: 19px;
}

/* ---------- Игровая кнопка: зелёная 341×76, тень снизу 11px ---------- */
.skin-btn {
  --lip: #064926;
  --lip-y: 11px;
  position: relative;
  display: flex;
  height: 76px;
  min-width: 0;
  padding: 0;
  border: 3px solid #A1FFBF;
  border-radius: 22px;
  color: var(--text);
  background: var(--go);
  box-shadow: 0 var(--lip-y) 0 var(--lip);
  transition: transform .12s, filter .2s, opacity .2s;
}

.skin-btn .label {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  padding: 0 10px;
  text-align: center;
  pointer-events: none;
}

.skin-btn b {
  font-size: 32px;
  line-height: 1;
  color: var(--text);
}

.skin-btn:not(:disabled):hover {
  filter: brightness(1.05);
}

.skin-btn:not(:disabled):active {
  transform: translateY(calc(var(--lip-y) - 2px));
  box-shadow: 0 2px 0 var(--lip);
}

.skin-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 4px;
}

/* неактивная — та же кнопка, приглушённая */
.skin-btn:disabled {
  opacity: .55;
  filter: saturate(.7);
  cursor: default;
}

/* ---------- Модальные окна (в макете их нет — в цветах макета) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(8, 15, 36, .78);
  backdrop-filter: blur(4px);
  animation: fade .25s;
}

.modal.is-open {
  display: grid;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  margin-top: 12%;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}

@keyframes pop {
  from {
    transform: scale(.7);
    opacity: 0;
  }
}

.modal-card.win {
  animation: winPop .7s cubic-bezier(.2, 1.6, .35, 1);
}

@keyframes winPop {
  0% {
    transform: scale(.3) rotate(-8deg);
    opacity: 0;
  }

  60% {
    transform: scale(1.06) rotate(1.5deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0);
  }
}

.frame {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 60px 28px 34px;
  border-radius: 26px;
  text-align: center;
  background: var(--surface);
  border: 3px solid var(--shell-line);
}

.win .frame {
  border-color: var(--gold);
  animation: glowPulse 1.8s ease-in-out .7s infinite;
}

@keyframes glowPulse {
  50% {
    box-shadow: 0 0 50px rgba(247, 212, 85, .45);
  }
}

.frame h2 {
  margin: 0;
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1;
  color: var(--text);
}

.frame p {
  margin: 4px 0 14px;
  max-height: 2.6em;
  font-size: clamp(13px, 3.6vw, 16px);
  color: var(--text-2);
}

.frame .skin-btn {
  height: 56px;
  width: min(240px, 70vw);
  --lip-y: 6px;
}

.frame .skin-btn b {
  font-size: 22px;
}

.win-title {
  white-space: nowrap;
}

/* app.js разбивает заголовок на буквы и задаёт каждой задержку анимации */
.win-title span {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
  animation: letterPop .55s cubic-bezier(.2, 1.8, .4, 1) both;
}

@keyframes letterPop {
  0% {
    transform: translateY(40px) scale(.2) rotate(-20deg);
    opacity: 0;
  }

  100% {
    transform: none;
    opacity: 1;
  }
}

.win-x {
  font-size: clamp(36px, 10vw, 58px);
  line-height: 1;
  color: var(--balance);
  animation: xPulse 1.2s ease-in-out .9s infinite;
  direction: ltr;
  unicode-bidi: isolate;
}

@keyframes xPulse {
  50% {
    transform: scale(1.08);
  }
}

.win-sum {
  font-size: clamp(17px, 4.4vw, 22px);
  color: var(--online);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.win-rays {
  position: fixed;
  left: 50%;
  top: 46%;
  width: 180vmax;
  height: 180vmax;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(247, 212, 85, .14) 0deg 6deg, rgba(247, 212, 85, 0) 6deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 10%, transparent 40%);
  mask: radial-gradient(circle, #000 0, #000 10%, transparent 40%);
  animation: rays 14s linear infinite, raysIn .6s ease-out;
}

@keyframes rays {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes raysIn {
  from {
    opacity: 0;
  }
}

/* холст для конфетти при выигрыше */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* декор окон: курица над окном выигрыша, уд и апельсиновое дерево по углам, поезд над окном проигрыша */
.deco-hero {
  left: 50%;
  top: 0;
  width: 40%;
  transform: translate(-50%, -70%);
  z-index: 3;
  animation: heroBob 2.4s ease-in-out .8s infinite;
}

@keyframes heroBob {
  50% {
    transform: translate(-50%, -76%) rotate(-3deg);
  }
}

.deco-oud {
  left: -7%;
  bottom: -4%;
  width: 15%;
  z-index: 3;
  transform: rotate(-18deg);
}

.deco-tree {
  right: -8%;
  bottom: -5%;
  width: 22%;
  z-index: 3;
  animation: treeSway 3s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes treeSway {
  50% {
    transform: rotate(2.5deg);
  }
}

.deco-loco {
  left: 50%;
  top: 0;
  height: 150px;
  transform: translate(-50%, -66%) rotate(90deg);
  z-index: 3;
}

/* кнопка-«билет» в окне выигрыша */
.cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
  filter: drop-shadow(0 5px 0 #6A4200) drop-shadow(0 0 18px rgba(247, 212, 85, .45));
  animation: ticketBob 2.2s ease-in-out 1s infinite;
}

@keyframes ticketBob {
  50% {
    transform: translateY(-3px) scale(1.02);
  }
}

.cta-wrap:has(.ticket:focus-visible) {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 12px;
}

.ticket {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  width: min(260px, 72vw);
  margin: 0;
  border: 0;
  font: inherit;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #FFF1B8 0%, var(--gold) 45%, #E2AE3F 100%);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
}

.ticket:focus {
  outline: none;
}

.ticket::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 7px;
  border: 2px solid rgba(110, 60, 0, .4);
  pointer-events: none;
}

/* блик, пробегающий по билету */
.ticket::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  z-index: 1;
  width: 30%;
  border-radius: 40px;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg);
  animation: sweep 2.2s ease-in-out 1s infinite;
  pointer-events: none;
}

@keyframes sweep {
  0% {
    left: -40%;
  }

  55%,
  100% {
    left: 120%;
  }
}

.t-stub {
  flex: none;
  width: 54px;
  height: 100%;
  display: grid;
  place-items: center;
  border-right: 2px dashed rgba(110, 60, 0, .5);
}

.t-stub img {
  width: 32px;
  height: auto;
}

.t-body {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.t-body b {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  color: #5A2A00;
  white-space: nowrap;
}

.t-arrow {
  flex: none;
  width: 26px;
  height: 26px;
  margin-right: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #14B962;
  box-shadow: 0 2px 0 #064926;
}

.t-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: nudge 1.1s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translateX(3px);
  }
}

/* ---------- Эффекты поверх страницы ---------- */
.page-flash {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 246, 200, .95), rgba(247, 212, 85, .5) 40%, rgba(247, 212, 85, 0) 75%);
}

.page-flash.on {
  animation: pageFlash .7s ease-out;
}

@keyframes pageFlash {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.fly-layer {
  position: fixed;
  inset: 0;
  z-index: 61;
  pointer-events: none;
}

.fly-coin {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: auto;
  will-change: transform;
}

/* ---------- Границы текстов для autoFontSize.js ----------
   Скрипт уменьшает шрифт, только если текст шире (или выше) своего блока.
   Поэтому тексты здесь однострочные и не шире своего контейнера. */
.pill,
.seg button,
.block-title,
.app-name,
.app-online span,
.bal-pill span,
.bal-pill b,
.lw-h>span,
.skin-btn b,
.t-body b,
.frame h2,
.win-x,
.win-sum {
  white-space: nowrap;
  max-width: 100%;
  min-width: 0;
}

/* У текстов с line-height: 1 буквы чуть выступают за строку — autoFontSize.js принял бы
   это за переполнение. Невидимый отступ вмещает буквы, отрицательный margin его компенсирует. */
.skin-btn b,
.frame h2,
.win-title span,
.win-x,
.t-body b {
  padding-block: .25em;
  margin-block: -.25em;
}

.frame>* {
  max-width: 100%;
}

/* ---------- Невысокий экран: логотип меньше, чтобы сцене хватило места ---------- */
@media (min-width: 641px) and (max-height: 760px) {
  .logo {
    height: clamp(60px, 11dvh, 150px);
  }
}

/* ---------- Узкий десктоп: три колонки панели, но компактнее ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .bet-row {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: 8px;
  }

  .pill {
    font-size: 16px;
  }

  .bet-field input {
    padding: 0 26px 0 8px;
    font-size: 22px;
  }

  .bet-field i {
    right: 10px;
    font-size: 19px;
  }

  .presets {
    gap: 8px;
  }

  .presets .pill {
    font-size: 15px;
  }

  .seg button,
  .seg button[data-level="hardcore"] {
    font-size: 15px;
  }
}

/* ---------- Узкий десктоп / планшет ---------- */
@media (max-width: 900px) {
  /* на планшете карточка — на всю высоту экрана, лишнее место отдаём сцене */
  .app {
    height: calc(100dvh - 52px);
  }

  /* панель в один столбец: ставка, пресеты, сложность, кнопка */
  .panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px 17px 22px;
  }

  .panel>.block:nth-child(n) {
    grid-column: auto;
    padding-top: 0;
  }

  .presets {
    max-width: none;
  }

  .block-title {
    display: none;
  }

  .skin-btn {
    height: 60px;
    --lip-y: 8px;
  }

  .skin-btn b {
    font-size: 28px;
  }
}

/* ---------- Телефон: макет 390×844 ---------- */
@media (max-width: 640px) {
  body {
    background-image: linear-gradient(rgba(8, 15, 36, .13), rgba(8, 15, 36, .13)), url("../img/bg-m-1fd2f4f316.webp");
    background-attachment: scroll;
  }

  .root {
    padding: 9px 10px;
  }

  /* карточка 370×826 */
  .app {
    width: 100%;
    height: calc(100dvh - 18px);
    min-height: 0;
    padding: 15px 11px calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
    background: rgba(11, 23, 48, .93);
    border-color: #536171;
  }

  .topbar {
    gap: 6px;
    margin-right: -3px;
  }

  /* пилюля приложения 174×47 */
  .app-id {
    gap: 7px;
    min-height: 47px;
    min-width: min(174px, 55%);
    padding: 3px 10px 3px 4px;
    border-radius: 13px;
    border-width: 1px;
    background: #0B2040;
    border-color: #355373;
  }

  .app-icon {
    width: 37px;
    height: 37px;
    border-radius: 9px;
  }

  .app-text {
    gap: 5px;
  }

  .app-name {
    font-size: 13px;
    line-height: 16px;
  }

  .app-online {
    font-size: 9px;
    line-height: 11px;
    gap: 6px;
    color: #CEE2DF;
  }

  .live-dot {
    width: 7px;
    height: 7px;
    margin-inline-start: 1px;
    background: #1CF886;
  }

  /* пилюля баланса 91×43 */
  .bal-pill {
    gap: 5px;
    min-height: 43px;
    min-width: 91px;
    padding: 0 3px 0 4px;
    margin-top: 2px;
    border-radius: 12px;
    border-width: 1.4px;
    border-color: #8A7044;
    background: #0B2040;
  }

  .bal-coin {
    width: 24px;
    height: 24px;
    border-width: 2px;
    background: #E4AE3E;
    border-color: #FFDC76;
    color: #76440F;
    font-size: 13px;
  }

  .bal-pill span {
    font-size: 8px;
    line-height: 10px;
    color: #BDD0E5;
  }

  .bal-pill b {
    font-size: 13px;
    line-height: 16px;
    color: #FFD161;
  }

  /* логотип 164×82 */
  .top {
    margin-top: 9.5px;
  }

  .logo {
    height: clamp(56px, 9.7dvh, 82px);
  }

  /* сцена 342×472 */
  .stage {
    flex: 1 1 472px;
    min-height: 200px;
    max-height: calc((100vw - 48px) * 1.38);
    margin-top: 7.5px;
    border-radius: 12px;
  }

  .stage::after {
    border-width: 2px;
    border-color: #55667A;
  }

  /* «Live wins» 187×49 */
  .lw {
    top: 9px;
    inset-inline-start: 7px;
    width: 187px;
    height: 49px;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    border-width: 1px;
    border-color: #6D8B65;
    background: rgba(28, 41, 66, .9);
    font-size: 10px;
    line-height: 12px;
  }

  .lw-h>i {
    width: 7px;
    height: 7px;
    background: #39ED8B;
  }

  .lw-list {
    height: 12px;
  }

  .lw-row {
    color: #D7F9DB;
  }

  .lw-av {
    width: 11px;
    height: 11px;
  }

  .lw-fl {
    width: 7px;
    height: 5px;
  }

  /* звук 32×32 */
  .sound-btn {
    top: 5px;
    right: 9px;
    width: 32px;
    height: 32px;
    border-width: 1.5px;
    border-color: #DAB75F;
    background: #202B39;
    color: #FFD067;
  }

  .sound-ico {
    font-size: 19px;
  }

  /* панель 342×170 */
  .panel {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
    min-height: 0;
    margin-top: 5px;
    padding: 8px 6px 3px;
    border-radius: 16px;
    background: #0A1830;
    border-color: #405570;
  }

  .block {
    gap: 6px;
  }

  .panel>.block:nth-child(n) {
    grid-column: auto;
    padding-top: 0;
  }

  .block-title {
    display: none;
  }

  /* MIN 55×41 · поле 204×41 · MAX 55×41 */
  .bet-row {
    grid-template-columns: 55px minmax(0, 1fr) 55px;
    gap: 6px;
  }

  .pill {
    min-height: 41px;
    padding: 0 4px;
    border-radius: 10px;
    border-width: 1px;
    font-size: 13px;
    background: #1B2A45;
    border-color: #536784;
    color: #C5D4E9;
  }

  .bet-field {
    min-height: 41px;
    border-radius: 10px;
    border-width: 1px;
    background: #0C1429;
    border-color: #526986;
  }

  .bet-field input {
    font-size: 18px;
    padding: 0 26px;
  }

  .bet-field i {
    right: 12px;
    font-size: 16px;
    color: #FFCD47;
  }

  /* пресеты 77×29 */
  .presets {
    gap: 6px;
    max-width: none;
  }

  .presets .pill {
    min-height: 29px;
    border-radius: 8px;
    font-size: 12px;
    background: var(--btn);
    border-color: var(--btn-line);
    color: #F8FBFF;
  }

  .presets .pill.on {
    border-color: #D6AE55;
  }

  /* сложность 326×33, пункты 77×25 */
  .seg {
    padding: 3px;
    border-radius: 10px;
    border-width: 1px;
    background: #0C1830;
    border-color: #51647F;
  }

  .seg button {
    min-height: 25px;
    border-width: 1px;
    border-radius: 8px;
    font-size: 11px;
    color: #BBCAE1;
  }

  .seg button.on {
    font-size: 12px;
    border-color: #D8AE58;
  }

  .seg button[data-level="hardcore"] {
    font-size: 10px;
  }

  .act-block {
    margin-top: -2px;
  }

  /* кнопка 326×36, тень снизу 4px */
  .skin-btn {
    --lip: #06552C;
    --lip-y: 4px;
    height: 36px;
    border-width: 2px;
    border-color: #BBFFD0;
    border-radius: 12px;
  }

  .skin-btn b {
    font-size: 21px;
  }

  .frame .skin-btn {
    height: 48px;
  }
}

@media (max-width: 640px) and (max-height: 640px) {
  .presets {
    display: none;
  }
}

/* ---------- Телефон горизонтально: всё должно помещаться без прокрутки ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  .root {
    padding: 6px;
  }

  .app {
    width: 100%;
    height: calc(100dvh - 12px);
    min-height: 0;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
  }

  .topbar {
    position: relative;
  }

  .app-id,
  .bal-pill {
    min-height: 44px;
  }

  .app-icon {
    width: 34px;
    height: 34px;
  }

  /* логотип — по центру строки с плашками, а не отдельной строкой */
  .top {
    position: absolute;
    left: 50%;
    top: 6px;
    margin: 0;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
  }

  .logo {
    height: 48px;
  }

  .stage {
    flex: 1 1 auto;
    min-height: 120px;
    margin-top: 6px;
  }

  .panel {
    grid-template-columns: minmax(0, 383fr) minmax(0, 410fr) minmax(0, 341fr);
    margin-top: 6px;
    min-height: 0;
    padding: 6px 10px 11px;
    gap: 12px;
  }

  .panel>.block:nth-child(n) {
    grid-column: auto;
    padding-top: 0;
  }

  .act-block {
    align-content: center;
  }

  .block-title,
  .presets {
    display: none;
  }

  .app-name {
    font-size: 15px;
    line-height: 18px;
  }

  .app-text {
    gap: 4px;
  }

  .app-online {
    font-size: 11px;
  }

  .bal-coin {
    width: 30px;
    height: 30px;
    border-width: 3px;
    font-size: 17px;
  }

  .bal-pill span {
    font-size: 10px;
    line-height: 12px;
  }

  .bal-pill b {
    font-size: 17px;
    line-height: 20px;
  }

  .bet-row {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    gap: 6px;
  }

  .pill,
  .bet-field {
    min-height: 36px;
    border-radius: 10px;
  }

  .pill {
    font-size: 13px;
  }

  .bet-field input {
    padding: 0 22px 0 6px;
    font-size: 18px;
  }

  .bet-field i {
    right: 8px;
    font-size: 16px;
  }

  .seg {
    padding: 3px;
    border-radius: 12px;
  }

  .seg button,
  .seg button[data-level="hardcore"] {
    min-height: 30px;
    border-radius: 9px;
    font-size: 13px;
  }

  .skin-btn {
    --lip-y: 5px;
    height: 44px;
  }

  .skin-btn b {
    font-size: 22px;
  }
}

@media (max-width: 370px) {
  .app-online span {
    display: none;
  }
}

/* ---------- Пониженная анимация ---------- */
@media (prefers-reduced-motion: reduce) {

  .prize,
  .token.next,
  .live-dot::after,
  .lw-h>i,
  .win-rays,
  .modal-card.win,
  .win .frame,
  .win-title span,
  .win-x,
  .ticket::after,
  .cta-wrap,
  .t-arrow svg,
  .deco-hero,
  .deco-tree,
  .hen.cheer,
  .page-flash.on {
    animation: none;
  }

  .world,
  .hen,
  .skin-btn {
    transition: none;
  }

  .lw-row {
    transition: opacity .2s;
  }

  .petals {
    display: none;
  }
}
