/* ПОПУТКА — база: шрифты, токены, кнопки, поля. Стиль как у SMENA Radio и игр SMENA:
   светлый фон, графит, голубой — только активное. Akira для заголовков (кириллица — SMENA AKIRA CYR), Onest для текста.
   Иконки только контуром (SVG, currentColor). Эмодзи на экранах нет. */

@font-face { font-family: 'Akira'; src: url('/fonts/Akira_Expanded.otf') format('opentype'); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122; }
@font-face { font-family: 'Akira'; src: url('/fonts/SMENA-AKIRA-CYR.ttf') format('truetype'); font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url('/fonts/onest-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: 'Onest'; font-weight: 400 700; font-display: swap; src: url('/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }
@font-face { font-family: 'Onest'; font-weight: 400 700; font-display: swap; src: url('/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0; }

:root {
  --bg: #FFFFFF;
  --bg-soft: #FAFBFC;
  --bg-elevated: #F4F5F8;
  --graphite: #1E2230;
  --graphite-soft: #2B2D42;
  --accent: #4DA8FF;
  --accent-hover: #2E93F5;
  --accent-soft: #EAF4FF;
  --text: #1E2230;
  --text-secondary: #8A8FA3;
  --text-muted: #B8BCC8;
  --line: #ECEDF2;
  --border: #E2E4EC;
  --icon-idle: #5A5F70;
  --danger: #E63946;
  --danger-soft: #FDECEE;

  --r-sheet: 28px;
  --r-card: 22px;
  --r-md: 14px;
  --r-pill: 999px;
  --stroke: 1.5px;
  --shadow: 0 10px 30px rgba(30, 34, 48, .14);
  --shadow-sm: 0 4px 14px rgba(30, 34, 48, .12);

  --font-display: 'Akira', 'Impact', sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
body { overflow: hidden; }
a { color: var(--accent-hover); text-decoration: none; }
svg { display: block; flex-shrink: 0; }

.display { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-weight: 400; }
h1, h2, h3 { margin: 0; }
.title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .03em; font-size: 20px; line-height: 1.15; }
.title.sm { font-size: 15px; }
.muted { color: var(--text-secondary); font-size: 13px; }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }

/* ---------- кнопки ---------- */
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  border: var(--stroke) solid var(--border); background: var(--bg); color: var(--text);
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.primary { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); border-color: var(--danger-soft); background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: var(--bg-elevated); }
.btn.hero {
  min-height: 60px; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .06em; font-size: 15px; font-weight: 400;
}
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btns { display: flex; gap: 10px; }
.btns > .btn { flex: 1; }
.link { color: var(--accent-hover); font-weight: 600; font-size: 14px; min-height: 36px; }
.link.danger { color: var(--danger); }

/* ---------- поля ---------- */
input, textarea { font: inherit; font-size: 16px; color: var(--text); }
.field {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 52px; padding: 0 14px; border-radius: var(--r-md);
  background: var(--bg-elevated); border: var(--stroke) solid transparent; color: var(--icon-idle);
  text-align: left;
}
.field:focus-within { border-color: var(--accent); background: var(--bg); }
.field input, .field textarea { flex: 1; min-width: 0; border: none; outline: none; background: transparent; padding: 14px 0; }
.field textarea { resize: none; min-height: 72px; }
.field .ph { color: var(--text-secondary); }
.field .val { color: var(--text); font-weight: 600; }
.label { font-size: 13px; color: var(--text-secondary); margin: 0 0 6px 2px; font-weight: 500; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  flex: 1; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--r-md);
  border: var(--stroke) solid var(--border); background: var(--bg); font-weight: 600; font-size: 14px;
}
.chip.on { border-color: var(--accent); color: var(--accent-hover); background: var(--accent-soft); }
.chips.wrap .chip { flex: 0 0 auto; }
