/* Рекламные страницы приложения (/ru/, /en/). Палитра и шрифты взяты из самого приложения: синий фон, золотая кнопка,
   карточка стола и фишка с суммой. Заметный элемент один: живая карточка с выплатой в первом экране. */
/* Roboto Condensed 700 рядом с сайтом, без запросов к Google */
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-condensed-700-latin.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: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-condensed-700-latin-ext.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-condensed-700-cyrillic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-condensed-700-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/roboto-condensed-700-vietnamese.woff2') format('woff2'); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

:root {
  --navy: #2c4968;
  --navy-deep: #223c55;
  --blue: #355980;
  --gold: #e8c97a;
  --paper: #f2f5f9;
  --ink: #17283a;
  --muted: #566679;
  --line: #cdd7e2;
  --felt-edge: #b8a27a;
  --chip-red: #c4302b;
  --chip-green: #16804a;
  --chip-black: #1c1f1e;
  --chip-purple: #7a3ea0;
  --chip-orange: #c9791b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--blue); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.top, .hero-in, .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 16px; }

/* Шапка и первый экран на синем фоне приложения */
.band { background: var(--navy); color: #fff; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }

.brand { color: #fff; text-decoration: none; line-height: 1; }
.brand img { display: block; width: 143px; height: auto; }

.langs { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: flex-end; font-size: 14px; }
.langs a { color: #cfdbe8; text-decoration: none; padding: 6px 2px; }
.langs a[aria-current="page"] { color: var(--gold); font-weight: 700; }

.hero-in { display: grid; gap: 28px; padding-block: 20px 40px; }
.hero-in > * { min-width: 0; }

h1, h2, h3 { font-family: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif; font-weight: 700; text-wrap: balance; }

h1 { margin: 0 0 14px; font-size: clamp(36px, 10vw, 62px); line-height: 1.02; letter-spacing: -0.01em; }

.lead { margin: 0 0 22px; max-width: 34ch; font-size: 19px; line-height: 1.5; color: #d6e1ec; }

.cta {
  display: inline-block;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--navy);
  font: 700 20px/1.2 "Roboto Condensed", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}
.cta:hover { background: #f0d48a; }

.fine { margin: 12px 0 0; max-width: 36ch; font-size: 14px; color: #b9c9da; }

/* Живая карточка: так выглядит ставка в приложении */
.demo { align-self: start; }

.demo h2 { margin: 0 0 10px; font-size: 20px; color: #fff; }

.table {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  border: 3px solid var(--felt-edge);
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, #f4f1ea, #e3ddd0);
  color: var(--navy);
}

.spot {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 3px solid #e8a317;
  border-radius: 50%;
  background: rgba(232, 201, 122, 0.28);
}

.chip {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 4px dashed rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--chip-black);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 3px 5px rgba(0, 0, 0, 0.45), inset 0 0 0 4px rgba(0, 0, 0, 0.12);
  color: #fff;
  font: 700 22px/1 "Roboto Condensed", system-ui, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.chip.drop { animation: chip-drop 0.28s ease-out; }

@keyframes chip-drop {
  from { transform: translateY(-10px) scale(1.06); }
  to { transform: none; }
}

.spot-label { margin: 0; font: 700 24px/1.1 "Roboto Condensed", system-ui, sans-serif; letter-spacing: 0.02em; text-align: center; }

.ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 14px; }

.ask label { font-size: 16px; color: #e8eff7; }

.ask-row { display: flex; gap: 10px; }

.ask input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 8px 14px;
  border: 2px solid #8fa6bf;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 700 24px/1 "Roboto Condensed", system-ui, sans-serif;
}

.ask button {
  min-height: 54px;
  padding: 0 20px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: transparent;
  color: var(--gold);
  font: 700 18px/1 "Roboto Condensed", system-ui, sans-serif;
  cursor: pointer;
}
.ask button:hover { background: rgba(232, 201, 122, 0.14); }

.verdict { min-height: 3.2em; margin: 10px 0 0; font-size: 16px; color: #e8eff7; }
.verdict b { color: var(--gold); }
.verdict.fail b { color: #ffb3a8; }

/* Светлая часть страницы: разделы идут сплошными полосами, витрина — на белой, блок для школ — на синей */
section.block { padding-block: 40px; }

h2 { margin: 0 0 14px; font-size: clamp(28px, 7vw, 38px); line-height: 1.08; }
h3 { margin: 0 0 4px; font-size: 21px; line-height: 1.2; }

.block p { max-width: 62ch; margin: 0 0 12px; }

/* Разделы игр — карточки; в каждой ссылки на правила своих игр */
.groups { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.groups > li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 6px 12px; padding: 16px; border: 1px solid #d5dee8; border-radius: 16px; background: #fff; }
.groups h3 { align-self: center; margin: 0; }
.groups p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.game-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.game-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 20px; background: #eaf0f6; color: var(--blue); font-size: 15px; font-weight: 600; line-height: 1.25; text-decoration: none; }
.game-links a:hover { background: #dce6f0; color: var(--navy); }

.dot {
  width: 28px;
  height: 28px;
  border: 3px dashed rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.steps { display: grid; gap: 18px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-inline-start: 50px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px dashed rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  color: #fff;
  font: 700 18px/1 "Roboto Condensed", system-ui, sans-serif;
}
.steps p { margin: 0; color: var(--muted); }

/* Для школ: что получает преподаватель и пример страницы клуба */
.schools { padding-block: 44px; background: var(--navy); color: #fff; }
.schools .wrap { display: grid; gap: 28px; }
.schools .wrap > * { min-width: 0; }
.schools h2 { color: #fff; }
.schools-lead { margin: 0 0 16px; max-width: 46ch; font-size: 18px; color: #d6e1ec; }
.schools-points { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; color: #d6e1ec; }
.schools-points li { position: relative; padding-inline-start: 22px; }
.schools-points li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.schools-points b { color: #fff; }
.schools-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.schools-actions .cta { flex: 1 1 260px; }
.ghost { display: inline-flex; flex: 1 1 160px; align-items: center; justify-content: center; min-height: 54px; padding: 12px 22px; border: 2px solid rgba(255, 255, 255, 0.6); border-radius: 14px; color: #fff; font: 700 18px/1.2 "Roboto Condensed", system-ui, sans-serif; text-decoration: none; }
.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.schools .fine { max-width: none; }

.club-mock { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: #e3e9ee; color: var(--ink); font-size: 15px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5); }
.club-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.club-head b { font: 700 20px/1.2 "Roboto Condensed", system-ui, sans-serif; }
.club-head span { padding: 3px 9px; border-radius: 8px; background: #fff; color: var(--muted); font-size: 13px; white-space: nowrap; }
.club-task { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.club-task span { color: var(--muted); font-size: 13px; }
.club-task b { font: 700 17px/1.3 "Roboto Condensed", system-ui, sans-serif; }
.club-task > i { display: block; height: 8px; border-radius: 4px; background: #d5dee8; overflow: hidden; }
.club-task > i i { display: block; height: 100%; background: var(--blue); }
.club-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 8px 12px; border-radius: 10px; background: #fff; }
.club-row span { grid-row: 2; color: var(--muted); font-size: 13px; }
.club-row .st-ok, .club-row .st-mid, .club-row .st-no { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.st-ok { color: #1f6b43; }
.st-mid { color: #9a5418; }
.st-no { color: #b23b2e; }
.club-mock small { color: var(--muted); font-size: 12px; }

.faq details { border-bottom: 1px solid var(--line); padding-block: 4px; }
/* Строка вопроса — под палец (44 px), стрелка справа поворачивается, когда ответ открыт */
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-block: 8px; cursor: pointer; list-style: none; font: 700 20px/1.3 "Roboto Condensed", system-ui, sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 10px; height: 10px; margin-inline-end: 4px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg) translateY(-3px); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: 0 0 12px; color: var(--muted); }

/* В конце страницы та же золотая главная кнопка, что и в первом экране */
.more { text-align: center; }
section.more { padding-block: 24px 16px; }

/* Кнопка «Открыть приложение» в шапке — на широком экране, где первый экран быстро уходит из вида */
.top-cta { display: none; margin-inline-start: auto; min-height: 40px; padding: 9px 16px; border-radius: 10px; background: var(--gold); color: var(--navy); font: 700 16px/1.2 "Roboto Condensed", system-ui, sans-serif; text-decoration: none; }
.top-cta:hover { background: #f0d48a; }

/* Кнопка внизу экрана телефона (landing.js показывает её, когда кнопок первого экрана и конца страницы не видно) */
.sticky-cta {
  position: fixed;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: block;
  min-height: 54px;
  padding: 15px 20px;
  border-radius: 14px;
  background: var(--gold);
  box-shadow: 0 6px 20px rgba(20, 40, 70, 0.35);
  color: var(--navy);
  font: 700 19px/1.2 "Roboto Condensed", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
}
.sticky-cta[hidden] { display: none; }

/* После пары ответов в живой карточке — в полную игру того же вида */
.demo-full { display: block; margin-top: 4px; min-height: 48px; padding: 13px 16px; border-radius: 12px; background: var(--gold); color: var(--navy); font: 700 18px/1.2 "Roboto Condensed", system-ui, sans-serif; text-align: center; text-decoration: none; }
.demo-full[hidden] { display: none; }
.demo-full:hover { background: #f0d48a; }

/* Точки под лентой экранов на телефоне: сколько экранов и какой сейчас виден */
.phone-dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
.phone-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.15s, width 0.15s; }
.phone-dots i.on { width: 22px; border-radius: 4px; background: var(--blue); }

/* Снизу место под кнопку, прилипающую к низу экрана телефона, чтобы она не закрывала подвал */
footer { margin-top: 24px; padding: 22px 16px 96px; background: var(--navy-deep); color: #b9c9da; font-size: 14px; }
footer .wrap { padding: 0; }
footer a { color: #d6e1ec; }
footer ul { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0 0 4px; padding: 0; list-style: none; }
/* Ссылки подвала — под палец: высота строки 44 px */
footer ul a, .foot-langs a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 860px) {
  body { font-size: 18px; }
  .top-cta { display: inline-block; }
  footer { padding-bottom: 36px; }
  .sticky-cta, .sticky-cta[hidden] { display: none; }
  .phone-dots { display: none; }
  .hero-in { grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding-block: 36px 64px; }
  .demo { max-width: 440px; justify-self: end; width: 100%; }
  section.block { padding-block: 64px; }
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .groups > li { padding: 22px; border-radius: 18px; }
  /* Шаги в ряд: номер над заголовком */
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .steps li { padding-inline-start: 0; padding-top: 52px; }
  .schools { padding-block: 72px; }
  .schools .wrap { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .club-mock { padding: 22px; font-size: 16px; }
  .faq .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
  section.more { padding-block: 24px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip.drop { animation: none; }
  .faq summary::after, .phone-dots i { transition: none; }
}

/* Экраны приложения в рамках телефона: нарисованы разметкой, данные вымышленные */
section.showcase { background: #fff; }
.showcase .note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.phones {
  display: flex;
  gap: 22px;
  margin: 24px -16px 0;
  padding: 4px 16px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.phones figure { flex: none; width: 236px; margin: 0; scroll-snap-align: center; }

.phones figcaption h3 { margin: 14px 0 4px; font-size: 20px; }
.phones figcaption p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }

.phone {
  width: 236px;
  padding: 7px;
  border-radius: 32px;
  background: #0f1e2c;
  box-shadow: 0 10px 26px rgba(20, 40, 70, 0.28);
}

.m-screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 452px;
  padding: 0 0 10px;
  overflow: hidden;
  border-radius: 25px;
  background: var(--blue);
  color: #fff;
  font: 12px/1.3 system-ui, -apple-system, "Segoe UI", sans-serif;
}

.m-screen.m-light { background: #e6ecf3; color: var(--ink); padding: 14px 12px; }

.m-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 12px 4px; font-size: 11px; }
.m-head b { font: 700 14px/1 "Roboto Condensed", system-ui, sans-serif; text-transform: uppercase; }
.m-head span { min-width: 44px; }
.m-right { text-align: right; }
.m-timer { padding: 3px 8px; border-radius: 12px; background: #e8a317; color: #fff; font-style: normal; font-weight: 700; }

.m-progress { display: flex; justify-content: space-between; padding: 0 12px; font-size: 10px; color: #cfdbe8; }
.m-bar { margin: 0 12px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); }
.m-bar i { display: block; height: 100%; border-radius: 2px; background: var(--gold); }
.m-bar.light { margin: 8px 0 6px; background: #cdd7e2; }
.m-bar.light i { background: var(--blue); }

.m-table {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin: 4px 12px 0;
  padding: 12px 8px;
  border: 2px solid var(--felt-edge);
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, #f4f1ea, #e3ddd0);
  color: var(--navy);
}
.m-table b { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.m-spot { display: grid; place-items: center; width: 62px; height: 62px; border: 2px solid #e8a317; border-radius: 50%; background: rgba(232, 201, 122, 0.28); }
.m-chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 3px dashed rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.45);
  color: #fff;
  font: 700 14px/1 "Roboto Condensed", system-ui, sans-serif;
}
.m-cards { display: flex; gap: 3px; margin-top: 2px; }
.m-cards img { width: 34px; height: 48px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

.m-answer { display: flex; align-items: center; justify-content: space-between; margin: 2px 12px 0; padding: 8px 12px; border: 2px solid #8fa6bf; border-radius: 10px; background: #fff; color: var(--ink); font: 700 18px/1 "Roboto Condensed", system-ui, sans-serif; }
.m-answer em { padding: 5px 9px; border-radius: 8px; background: #d5dee8; color: var(--navy); font-size: 11px; font-style: normal; }

.m-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 0 12px; }
.m-keys i { display: grid; place-items: center; height: 28px; border-radius: 8px; background: #fff; color: var(--navy); font: 700 14px/1 "Roboto Condensed", system-ui, sans-serif; font-style: normal; }
.m-keys i.ok { background: var(--gold); }

.m-task { display: grid; justify-items: center; gap: 2px; padding: 8px 12px 2px; text-align: center; }
.m-task span { font-size: 12px; color: #cfdbe8; }
.m-task b { font: 700 40px/1 "Roboto Condensed", system-ui, sans-serif; color: var(--gold); }
.m-task small { font-size: 11px; color: #cfdbe8; }

.m-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 6px 10px 0; }
.m-grid i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: #fff; color: var(--navy); font: 700 17px/1 "Roboto Condensed", system-ui, sans-serif; font-style: normal; }
.m-grid i.gone { background: rgba(255, 255, 255, 0.12); }

.m-hero { display: grid; justify-items: center; gap: 8px; padding: 10px 0 4px; }
.m-ring { display: grid; place-items: center; align-content: center; width: 92px; height: 92px; border: 5px solid var(--gold); border-radius: 50%; background: var(--blue); color: #fff; }
.m-ring b { font: 700 26px/1 "Roboto Condensed", system-ui, sans-serif; }
.m-ring span { font-size: 10px; }
.m-hero p { margin: 0; font-weight: 700; }
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m-tiles div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: #fff; }
.m-tiles span { font-size: 10px; color: var(--muted); }
.m-tiles b { font: 700 16px/1 "Roboto Condensed", system-ui, sans-serif; }
.m-record { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: #fdf3d6; color: #5b4400; }
.m-list { display: grid; gap: 6px; }
.m-list div { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: #fff; border-inline-start: 4px solid #d9534f; }
.m-list b { color: #b23b2e; }

.m-title { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding-bottom: 4px; }
.m-title b { font: 700 16px/1.1 "Roboto Condensed", system-ui, sans-serif; }
.m-title span { color: var(--muted); font-size: 11px; }
.m-rows { display: grid; gap: 6px; }
.m-row { display: grid; grid-template-columns: 22px 1fr auto auto; align-items: center; gap: 8px; padding: 8px 8px; border-radius: 10px; background: #fff; }
.m-row i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #d5dee8; font-style: normal; font-weight: 700; font-size: 11px; }
.m-row.p1 i { background: #f3c64c; }
.m-row.p2 i { background: #cfd5dc; }
.m-row.p3 i { background: #d9a06b; }
.m-row span { display: grid; min-width: 0; font-weight: 700; }
.m-row em { margin-top: 2px; width: fit-content; padding: 1px 6px; border-radius: 8px; background: #dff0e6; color: #1f6b43; font-size: 9px; font-style: normal; font-weight: 700; }
.m-row b { font-variant-numeric: tabular-nums; }
.m-row u { text-decoration: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-row.me { margin-top: 6px; border: 2px solid var(--blue); }

.m-card { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: #fff; }
.m-card small { color: var(--muted); font-size: 10px; }
.m-rank { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.m-rank b { font: 700 17px/1.1 "Roboto Condensed", system-ui, sans-serif; }
.m-rank span { color: var(--muted); font-size: 11px; }
.m-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding-top: 6px; }
.m-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.m-bars i { width: 100%; border-radius: 4px 4px 0 0; background: var(--blue); }
.m-bars span { font-size: 9px; color: var(--muted); }

@media (min-width: 860px) {
  .phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); justify-items: center; gap: 34px 20px; margin-inline: 0; padding-inline: 0; overflow: visible; }
}

/* Баккара: стол с двумя руками, третья карта лежит горизонтально */
.m-bac { display: flex; justify-content: space-between; gap: 6px; margin: 4px 12px 0; padding: 12px 10px; border: 2px solid var(--felt-edge); border-radius: 12px; background: radial-gradient(circle at 50% 35%, #f4f1ea, #e3ddd0); color: var(--navy); }
.m-hand { display: grid; justify-items: center; gap: 5px; }
.m-hand b { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.m-slot { display: grid; place-items: center; width: 52px; height: 36px; border: 2px dashed var(--felt-edge); border-radius: 6px; }
.m-slot.filled { border-style: solid; border-color: transparent; }
.m-slot img { width: 27px; height: 38px; border-radius: 3px; transform: rotate(90deg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.m-two { display: flex; gap: 3px; }
.m-two img { width: 34px; height: 48px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.m-streak { margin: 2px 12px 0; color: var(--gold); font-size: 11px; font-weight: 700; text-align: center; }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px; }
.m-actions i { padding: 9px 4px; border-radius: 10px; background: #fff; color: var(--navy); font-size: 11px; font-style: normal; font-weight: 700; text-align: center; }
.m-actions i.on { background: var(--gold); }
.m-points { padding: 8px 10px; border: 1px solid rgba(31, 107, 67, 0.4); border-radius: 10px; background: #e3f3ea; color: #1f6b43; font-size: 11px; font-weight: 700; }
.m-row em.up { background: #dff0e6; }
.m-badges { display: flex; justify-content: space-around; gap: 6px; padding: 4px 0; }
.m-badges div { display: grid; justify-items: center; gap: 4px; font-size: 10px; font-weight: 700; color: var(--muted); }
.m-badges i { width: 38px; height: 38px; border: 3px dashed rgba(255, 255, 255, 0.92); border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.shot { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-inline-end: 10px; border: 3px dashed rgba(255, 255, 255, 0.92); border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); color: #fff; font-size: 15px; line-height: 1; vertical-align: 2px; }

/* Выбор языка списком */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lang-pick select { min-height: 40px; max-width: 160px; padding: 6px 30px 6px 12px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 10px; background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%277%27 viewBox=%270 0 12 7%27%3E%3Cpath fill=%27none%27 stroke=%27%23e8c97a%27 stroke-width=%272%27 d=%27M1 1l5 5 5-5%27/%3E%3C/svg%3E") no-repeat right 10px center; color: #fff; font: 600 15px/1.2 system-ui, sans-serif; cursor: pointer; appearance: none; -webkit-appearance: none; }
.lang-pick select option { color: var(--ink); background: #fff; }
html[dir="rtl"] .lang-pick select { padding: 6px 12px 6px 30px; background-position: left 10px center; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 0 16px; margin: 0 0 8px; }
/* Экраны приложения не зеркалим в языках справа налево: так выглядит и само приложение */
.phone { direction: ltr; }
