/* Lahza — страница предрегистрации. Тема Tun palak: ночное небо, бирюза, лунно-жёлтые кнопки.
   Оранжевый только в знаке. Шрифты системные: без запросов к чужим серверам. */
:root {
  --bg: #05252A; --bg2: #0B3338; --bg3: #124349;
  --line: rgba(79, 220, 207, .42);
  --fq: #4FDCCF; --oy: #FFE76A; --fg: #EEF8F2; --mut: #A5CCC6;
  --err: #FFB4A8;
  --ff-d: 'Ysabeau Infant', Georgia, 'Times New Roman', serif;
  --ff-b: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--fg); font: 500 16px/1.45 var(--ff-b);
  background:
    radial-gradient(ellipse 80% 45% at 50% -5%, rgba(79, 220, 207, .16), transparent 70%),
    radial-gradient(circle at 85% 12%, rgba(255, 231, 106, .10), transparent 18%),
    var(--bg);
}
/* Тонкая полоса-икат сверху: ромбы двух цветов, едва заметные. */
body::before {
  content: ''; display: block; height: 6px;
  background:
    linear-gradient(135deg, transparent 33%, var(--fq) 33% 40%, transparent 40%) 0 0 / 12px 6px,
    linear-gradient(45deg, transparent 60%, rgba(255, 231, 106, .7) 60% 67%, transparent 67%) 0 0 / 12px 6px;
  opacity: .55;
}
.page { max-width: 460px; margin: 0 auto; padding: 18px 16px 28px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.word { height: 38px; width: auto; }
.langs { display: flex; gap: 8px; }
.lang {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--mut); font: 700 13px var(--ff-b); cursor: pointer;
}
.lang[aria-pressed="true"] { background: var(--oy); border-color: var(--oy); color: #0A2A2E; }

.hero { text-align: center; padding: 34px 0 20px; }
.slogan {
  margin: 0; font: 600 clamp(32px, 9vw, 44px)/1.08 var(--ff-d); color: var(--oy);
  text-wrap: balance;
}
.lead { margin: 14px auto 0; max-width: 34ch; color: var(--mut); }
.gift {
  display: inline-flex; align-items: center; gap: 10px; text-align: left; margin: 22px 0 0; padding: 9px 18px 9px 10px;
  border-radius: 999px; background: var(--bg2); border: 1px dashed var(--oy); font-weight: 700;
}
.coin {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFF6C2, var(--oy) 55%, #C9AE2E);
  box-shadow: 0 0 12px rgba(255, 231, 106, .45);
}
.count { margin: 14px 0 0; color: var(--fq); font-weight: 700; font-variant-numeric: tabular-nums; }

.card {
  background: rgba(11, 51, 56, .82); border: 1px solid var(--line); border-radius: 26px; padding: 20px 18px 18px;
}
.label { display: block; margin: 0 0 6px 6px; color: var(--mut); font-size: 14px; }
.label + .field, .field + .label { margin-top: 0; }
.field + .label { display: block; margin-top: 16px; }
.field {
  display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px;
  border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
}
.field:focus-within { border-color: var(--oy); box-shadow: 0 0 0 2px rgba(255, 231, 106, .35); }
.cc { color: var(--fq); font-weight: 700; font-size: 18px; }
.field input, .field select {
  flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: var(--fg);
  font: 700 18px var(--ff-b); font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: rgba(165, 204, 198, .55); }
.field select { appearance: none; cursor: pointer; font-size: 16px; }
.field select option { background: var(--bg2); color: var(--fg); }
.field.select { position: relative; }
.field.select::after {
  content: ''; position: absolute; right: 20px; width: 9px; height: 9px; pointer-events: none;
  border-right: 2px solid var(--fq); border-bottom: 2px solid var(--fq); transform: translateY(-3px) rotate(45deg);
}
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 4px 4px; font-size: 14px; color: var(--mut); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--oy); }
.error { margin: 12px 4px 0; color: var(--err); font-size: 14px; font-weight: 600; }
.btn {
  display: block; width: 100%; min-height: 54px; margin-top: 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--oy); color: #0A2A2E; font: 800 17px var(--ff-b);
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, .lang:focus-visible, .consent input:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.note { margin: 14px 4px 0; color: var(--mut); font-size: 13px; text-align: center; }

.done { text-align: center; }
.done-title { margin: 4px 0 10px; font: 600 30px/1.1 var(--ff-d); color: var(--oy); }
.done p { margin: 8px 0; }
.friends { color: var(--fq); font-weight: 700; }
.field.link { margin-top: 14px; }
.field.link input { font-size: 15px; text-align: center; }
.copied { color: var(--fq); font-weight: 700; }

.foot { margin-top: 28px; text-align: center; color: var(--mut); font-size: 13px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--fq); }

@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .5s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } }
}
