/* TEZTAP Атырау — в стиле сайтов TEZTAP (ranking/play), красный вариант: Geologica, белые карточки,
   пилюли, волны в шапке. Макеты: .superpowers/brainstorm/5953-1795302332/content/ */

@font-face {
  font-family: 'Geologica';
  src: url('/fonts/geologica-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0492-04FF;
}
@font-face {
  font-family: 'Geologica';
  src: url('/fonts/geologica-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --red: #ed1c24;
  --ink: #1a1a1a;
  --bg: #f5f5f5;
  --muted: #4a4a4a;
  --soft: #6b6b6b;
  --line: #e0e0e0;
  --chip: #f0f0f0;
  --card: #fff;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geologica', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.ic { width: 14px; height: 14px; flex: none; color: var(--red); }

/* шапка */
.hero, .bar { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.hero::before, .bar::before {
  content: ''; position: absolute; inset: 0;
  background: url('/brand/hero-waves.svg') center 40% / cover; opacity: .10; pointer-events: none;
}
.hero > *, .bar > * { position: relative; }
.hero { padding: 14px 18px 24px; }
.hero .logo { height: 34px; display: block; margin-bottom: 8px; }
.kicker { margin: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.hero h1 { margin: 2px 0 0; font-size: 32px; font-weight: 900; line-height: 1.05; }

/* список */
.list { padding: 12px 12px 4px; margin-top: -10px; display: flex; flex-direction: column; gap: 10px; }
.gcard { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.game { padding: 10px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.game.locked { cursor: default; }
.game .top { display: flex; gap: 12px; }
.cover { width: 88px; height: 110px; flex: none; border-radius: 14px; object-fit: cover; background: var(--chip); }
.cover.empty { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--red); }
.game .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.game .day { font-size: 20px; font-weight: 800; line-height: 1.1; }
.chip { align-self: flex-start; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; background: var(--chip); color: var(--muted); }
.chip.theme { background: var(--red); color: #fff; }
.meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 13px; }
.meta li { display: flex; align-items: flex-start; gap: 6px; line-height: 1.3; }
.meta .ic { margin-top: 1px; }
.note { margin: 0 0 -4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--red); }
.state-msg { text-align: center; color: var(--soft); font-size: 14px; padding: 28px 12px; margin: 0; }

/* кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  border: 0; border-radius: 999px; padding: 12px; font: inherit; font-size: 15px; font-weight: 700;
  background: var(--red); color: #fff; cursor: pointer;
}
.btn .ic { color: currentColor; width: 18px; height: 18px; }
.btn.outline { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.btn.disabled, .btn:disabled { background: var(--line); color: var(--soft); cursor: default; box-shadow: none; }
.btn.busy { opacity: .75; }

.foot, .acts { padding: 12px 12px 22px; display: flex; flex-direction: column; gap: 8px; }
.pill {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
}
.pill .ic { width: 20px; height: 20px; color: var(--ink); }
.pill .ic.wa { color: #25d366; }
.pill .ic.red { color: var(--red); }

/* форма */
.bar { padding: 12px 16px 16px; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.back .ic { color: #fff; width: 16px; height: 16px; }
.bar h1 { margin: 6px 0 0; font-size: 26px; font-weight: 900; }
.mini { margin: 12px 12px 0; padding: 8px; display: flex; gap: 10px; align-items: center; }
.mini .cover { width: 54px; height: 68px; border-radius: 10px; }
.mini .day { font-size: 16px; font-weight: 800; }
.mini .chip { margin: 3px 0; }
.mini .meta { flex-direction: row; flex-wrap: wrap; column-gap: 10px; font-size: 12px; }
.form { margin: 10px 12px 18px; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 16px; }
.field label, .field .label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.field i { color: var(--red); font-style: normal; }
.hint { margin: 0 0 7px; font-size: 12px; color: var(--soft); line-height: 1.3; }
.field input, .inp {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; outline: none;
}
.field input:focus, .inp:focus-within { border-color: var(--red); }
.inp { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.inp .pre { font-weight: 700; padding-right: 8px; border-right: 1.5px solid var(--line); }
.inp input { border: 0; padding: 11px 0; border-radius: 0; }
.field.bad input, .field.bad .inp, .field.bad .seg button { border-color: var(--red); }
.seg { display: flex; flex-wrap: wrap; gap: 7px; }
.seg button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 13px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.seg button[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.menu { margin: 0; display: flex; gap: 9px; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.menu .ic { width: 18px; height: 18px; }
.error { margin: 0; text-align: center; color: var(--red); font-size: 13.5px; font-weight: 700; }
.saved { margin: -6px 0 0; display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: var(--soft); line-height: 1.35; }

/* после отправки */
.done { padding: 34px 16px 8px; text-align: center; }
.ok { width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(237, 28, 36, .35); }
.ok .ic { width: 36px; height: 36px; color: #fff; }
.done h1 { margin: 14px 0 2px; font-size: 30px; font-weight: 900; }
.done p { margin: 0; font-size: 14px; color: var(--muted); }
.done b { color: var(--ink); }
.ticket { margin: 16px 12px 0; padding: 14px 16px; }
.ticket .day { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.ticket .meta { font-size: 13.5px; gap: 6px; }
.bye { text-align: center; color: var(--muted); font-size: 14px; margin: 2px 16px 24px; }
