/* pr.posh.kz — как билет: тёмный фон, золото, один шрифт.
   Крупные надписи — картинкой с самого билета; мелкий текст — Noto Serif Condensed
   (свой woff2 с казахскими буквами). Другого шрифта на сайте нет — Дамир против разнобоя. */
@font-face {
  font-family: "PoshSerif";
  src: url("/static/fonts/posh-serif.woff2?v=1") format("woff2");
  font-weight: 500 800;
  font-display: block;  /* без мелькания запасного шрифта: файл маленький и в preload */
}
:root {
  --bg: #0c0a07;
  --gold: #e6c171;
  --gold-deep: #b98a35;
  --cream: #f1e3c0;
  --ink: #1c130a;
  --muted: #a8956b;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(120% 70% at 50% 0%, #2a1f10 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--cream);
  font-family: "PoshSerif", Georgia, serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.page-center .wrap { min-height: 100dvh; justify-content: center; }

.ticket { width: 100%; height: auto; border-radius: 6px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.6)); }
.ticket-dim { opacity: .45; filter: grayscale(.5); }
.card {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.65), 0 0 0 1px rgba(230,193,113,.25);
}
/* приз уже выдан: поздравление приглушено — открывший чужой билет не должен думать, что выиграл */
.card-dim { opacity: .45; filter: grayscale(.5); }

.rule { width: 100%; display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; color: var(--gold); font-size: 14px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep)); }
.rule::after { background: linear-gradient(90deg, var(--gold-deep), transparent); }

.title {
  margin: 0 0 10px;
  font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: .2px;
  background: linear-gradient(180deg, #f7dc96 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 600; color: var(--cream); max-width: 22em; }
.lead-prize { margin: 20px 0 14px; font-size: 21px; color: var(--gold); font-weight: 700; }
.scan { width: 72px; height: 72px; margin-top: 28px; color: var(--gold); }

.actions { width: 100%; display: grid; gap: 10px; }
.page-center .actions { margin-top: 24px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 18px; border-radius: 14px;
  font-family: inherit; font-size: 21px; font-weight: 800; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, filter .12s ease;
}
.btn:active { transform: scale(.98); filter: brightness(.95); }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, #f6d98f 0%, #dcb05a 50%, #b4852f 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 22px rgba(185,138,53,.35);
}
.btn-line { color: var(--gold); border: 1.5px solid var(--gold-deep); background: rgba(230,193,113,.06); }

.code { margin: 20px 0 4px; font-size: 16px; color: var(--muted); font-weight: 500; }
.code b { color: var(--cream); font-weight: 700; letter-spacing: 1.5px; }
.note { margin: 6px 0 0; font-size: 16px; line-height: 1.35; color: var(--muted); font-weight: 500; max-width: 24em; }
.issued {
  margin: 22px 0 6px; padding: 12px 22px; border: 1.5px solid var(--gold-deep); border-radius: 999px;
  font-size: 22px; font-weight: 800; color: var(--gold);
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
