/* Колесо призов — win.ozimqilaman.uz.

   Тот же язык, что EDU и букинг: светлая тема, Onest, цифры — IBM Plex Mono,
   акцент #2962FF, стекло только у навигации (шапка). Карточки «в оправе»:
   поддон .tray и ядро .core со своим радиусом. Страница одна колонка —
   её открывают из Telegram на телефоне. */

:root {
  --ink: #0B0D12; --ink-2: #3D4453; --ink-3: #7A8290; --muted: #949BA8;
  --hair: rgba(11,13,18,.07); --hair-2: rgba(11,13,18,.045); --tray: rgba(11,13,18,.035);
  --card: #fff; --page: #F5F7FA;
  --accent: #2962FF; --accent-ink: #1F55EE; --accent-bg: #EEF3FF;
  --ok: #12805C; --ok-bg: #E9F6F0; --warn: #A9762A; --warn-bg: #FBF4E6; --bad: #C2412D;
  --silver: #6B7686; --gold: #B07C1F; --diamond: #3C5BDB;
  --r-lg: 30px; --r: 22px; --r-sm: 14px;
  --lift: 0 1px 2px rgba(11,13,18,.04), 0 12px 28px -14px rgba(11,13,18,.16);
  --ease: cubic-bezier(.32,.72,0,1);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lot {
  margin: 0; min-height: 100dvh; color: var(--ink); background: var(--page);
  font-family: 'Onest', system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.lot::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 640px;
  background:
    radial-gradient(70% 80% at 80% -12%, rgba(41,98,255,.14), transparent 62%),
    radial-gradient(55% 60% at 8% 0%, rgba(91,124,255,.08), transparent 60%);
  pointer-events: none; z-index: 0;
}
a { color: inherit; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- Шапка ---------- */
.lot-top {
  position: sticky; top: 10px; z-index: 20;
  width: min(560px, calc(100% - 24px)); margin: 10px auto 0;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(11,13,18,.05), 0 16px 34px -18px rgba(11,13,18,.3);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; min-width: 0; }
.brand b { font-family: 'Inter Tight', 'Onest', sans-serif; font-style: italic; font-weight: 700;
           font-size: 16px; letter-spacing: -.035em; white-space: nowrap; }
.brand span { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--accent);
              background: var(--accent-bg); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.lang { margin-left: auto; display: flex; gap: 2px; padding: 2px; background: var(--tray); border-radius: 999px; }
.lang a { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; color: var(--ink-3); text-decoration: none; }
.lang a.on { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(11,13,18,.07); }

/* ---------- Каркас ---------- */
main.lot-main {
  position: relative; z-index: 1; overflow-x: clip;
  width: min(560px, 100%); margin: 0 auto; padding: 34px 16px 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 6px 13px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--hair), 0 1px 2px rgba(11,13,18,.04);
  font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.eyebrow .sep { width: 3px; height: 3px; border-radius: 9px; background: var(--muted); }
.st { font-weight: 700; letter-spacing: .04em; font-size: 11.5px; }
.st-silver { color: var(--silver); } .st-gold { color: var(--gold); } .st-diamond { color: var(--diamond); }
h1.h1 { margin: 16px 0 0; font-size: clamp(30px, 8.4vw, 42px); font-weight: 700;
        letter-spacing: -.045em; line-height: 1.04; text-wrap: balance; }
.lead { margin: 12px 0 0; font-size: 16px; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.note.num { font-size: 12.5px; }

.tray { width: 100%; padding: 6px; border-radius: var(--r-lg); background: var(--tray);
        box-shadow: inset 0 0 0 1px var(--hair-2); }
.tray > .core { border-radius: calc(var(--r-lg) - 6px); background: var(--card);
                box-shadow: var(--lift), inset 0 1px 0 rgba(255,255,255,.9); padding: 22px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 7px 7px 7px 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; cursor: pointer;
  font-family: inherit; font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: 0 1px 2px rgba(41,98,255,.25), 0 16px 30px -16px rgba(41,98,255,.85);
  transition: transform .5s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn > span:first-child { flex: 1; text-align: left; }
.btn .ico { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center;
            background: rgba(255,255,255,.16); transition: transform .5s var(--ease); }
.btn:hover { background: var(--accent-ink); }
.btn:hover .ico { transform: translateX(2px) rotate(-12deg); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-soft {
  background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hair), 0 1px 2px rgba(11,13,18,.05);
}
.btn-soft:hover { background: #FAFBFC; }
.btn-soft .ico { background: var(--tray); }
.btn small { display: block; font-size: 12.5px; font-weight: 500; opacity: .62; margin-top: 1px; }
.actions { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------- Колесо ---------- */
.wheel-wrap { --wsize: min(340px, 86vw); position: relative; width: var(--wsize); aspect-ratio: 1; margin: 30px auto 4px; }
/* Выпал приз: колесо меньше, чтобы приз и кнопки влезли в экран телефона. */
.wheel-wrap.is-small { --wsize: min(244px, 64vw); margin-top: 24px; }
.wheel-bezel {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(160deg, #1B2233, #0B0D12 60%);
  box-shadow: 0 2px 4px rgba(11,13,18,.12), 0 34px 60px -26px rgba(11,13,18,.55),
              inset 0 1px 0 rgba(255,255,255,.14);
}
/* Огоньки по ободу — как у настоящего барабана; горят по очереди, пока крутится. */
.wheel-bezel i {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px;
  border-radius: 9px; background: rgba(255,255,255,.28);
  transform: rotate(var(--a)) translateY(calc(var(--wsize) / -2 + 8px));
}
.is-spinning .wheel-bezel i { animation: blink 1s steps(2) infinite; animation-delay: calc(var(--k) * -125ms); }
@keyframes blink { 50% { background: #FFD66B; box-shadow: 0 0 8px rgba(255,214,107,.8); } }
.wheel {
  position: absolute; inset: 16px; border-radius: 50%; overflow: hidden;
  transform: rotate(var(--rot, 0deg));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
  will-change: transform;
}
.wheel.go { transition: transform var(--dur, 5.6s) cubic-bezier(.11,.66,.06,1); }
.seg { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: 50% 100%;
       transform: rotate(var(--a)); }
.seg em { position: absolute; left: 0; top: 9%; transform: translateX(-50%);
          font-style: normal; font-size: calc(var(--wsize) * .085); line-height: 1;
          filter: drop-shadow(0 2px 3px rgba(11,13,18,.18)); }
.seg.is-hit em { animation: pop .7s var(--ease) both; }
@keyframes pop { 40% { transform: translateX(-50%) scale(1.32); } }
.hub {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255,255,255,.35), 0 10px 22px -8px rgba(11,13,18,.5);
  font-family: 'Inter Tight', 'Onest', sans-serif; font-style: italic; font-weight: 700;
  font-size: 13px; letter-spacing: -.04em; color: var(--accent);
}
.pointer {
  position: absolute; left: 50%; top: -6px; width: 30px; height: 38px; margin-left: -15px; z-index: 2;
  transform-origin: 50% 8px; transition: transform .12s var(--ease);
  filter: drop-shadow(0 6px 8px rgba(11,13,18,.3));
}
.pointer.tick { transform: rotate(-16deg); transition: none; }

/* ---------- Приз ---------- */
.prize { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.prize-emoji { font-size: 60px; line-height: 1; filter: drop-shadow(0 8px 14px rgba(11,13,18,.16)); }
.prize-name { font-size: 24px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
.prize-what { font-size: 14.5px; color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.prize-kicker { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.reveal { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(4px); } }

.warn { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
        background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; color: var(--ink-2); }
.chip.is-gone { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(11,13,18,.25); }

/* ---------- Что может выпасть ---------- */
.pool { width: 100%; margin-top: 36px; text-align: left; }
.pool h2 { margin: 0 0 10px 6px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
           text-transform: uppercase; color: var(--ink-3); }
.pool ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pool li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm);
           background: var(--card); box-shadow: inset 0 0 0 1px var(--hair-2); min-width: 0; }
.pool li b { font-size: 20px; line-height: 1; flex: none; }
.pool li span { font-size: 13px; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Причины ---------- */
.why-ico { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; font-size: 34px;
           background: var(--card); box-shadow: var(--lift), inset 0 0 0 1px var(--hair-2); margin-top: 6px; }
.bar { width: 100%; height: 10px; border-radius: 99px; background: var(--tray); overflow: hidden; margin-top: 14px; }
.bar i { display: block; height: 100%; border-radius: inherit;
         background: linear-gradient(90deg, var(--accent), #6E8DFF); transform-origin: left;
         animation: grow 1.2s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }
.left-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Ступени статусов ---------- */
.tiers { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tier { padding: 14px 8px 12px; border-radius: var(--r-sm); background: var(--card);
        box-shadow: inset 0 0 0 1px var(--hair-2); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tier .st { font-size: 11px; }
.tier b { font-size: 26px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.tier span { font-size: 12px; color: var(--ink-3); }
.tier.is-you { box-shadow: inset 0 0 0 1.5px var(--accent), 0 10px 22px -14px rgba(41,98,255,.6); }

/* ---------- Форма номера ---------- */
.code-form { width: 100%; margin-top: 26px; text-align: left; }
.code-form label { display: block; margin: 0 0 8px 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.code-input {
  width: 100%; height: 64px; padding: 0 22px; border: 0; border-radius: 20px; outline: none;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--hair), 0 1px 2px rgba(11,13,18,.04);
  font-family: var(--mono); font-size: 26px; letter-spacing: .14em; color: var(--ink);
  transition: box-shadow .3s var(--ease);
}
.code-input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px rgba(41,98,255,.12); }
.code-hint { margin: 8px 0 0 6px; font-size: 12.5px; color: var(--ink-3); }
.err { width: 100%; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm);
       background: #FDF0EE; color: var(--bad); font-size: 14px; text-align: left; }
.steps { width: 100%; list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.steps li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm);
            background: var(--card); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 14px; color: var(--ink-2); }
.steps li i { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
              background: var(--accent-bg); color: var(--accent); font-family: var(--mono); font-style: normal;
              font-size: 12px; font-weight: 600; }
.foot { margin-top: 40px; font-size: 12.5px; color: var(--muted); }
.foot a { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .wheel.go { --dur: 1.2s !important; }
  .reveal, .bar i, .seg.is-hit em, .is-spinning .wheel-bezel i { animation: none; }
}
@media (max-width: 380px) {
  .pool ul { grid-template-columns: 1fr; }
  .brand span { display: none; }
}
