/* 3-variant — "Jonli efir studiyasi": qum foni, o'rmon-yashil, terrakota urg'u, Onest.
   Tuzilish: raqamli tablo (navbar), efir oynasidagi ustoz (o'z foni bilan), dastur kartasi,
   sovg'alar shohsupasi, tablo takrorlangan final. */
:root {
  --bg: #F3EDE3;
  --card: #FFFDF9;
  --forest: #1E2B25;
  --forest-2: #2C3D34;
  --text: #1E2B25;
  --muted: #5F6A62;
  --line: rgba(30, 43, 37, .12);
  --terra: #C8553D;
  --terra-2: #D9694F;
  --terra-3: #A64330;
  --sage: #DDE6D5;
  --live: #E5483A;
  --wrap: 430px;
  --cw: min(100vw, 430px);
  --ch: clamp(250px, calc(100svh - 340px), 400px);
  --f: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 16px 34px -20px rgba(30, 43, 37, .45);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--f); background: var(--bg); color: var(--text); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
b { font-weight: 700; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- NAVBAR: raqamli tablo ---------- */
.board { background: var(--forest); color: #F3EDE3; }
.board__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.board__cells { display: flex; gap: 5px; }
.cell {
  display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 5px 8px 4px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); line-height: 1.05;
}
.cell b { font-size: 17px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.cell small { font-size: 9.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.cell--accent { background: var(--terra); border-color: var(--terra); }
.cell--accent small { opacity: .85; }
.board__tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: left; opacity: .9; }
.live-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(229, 72, 58, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(229, 72, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 58, 0); } }

/* ---------- HERO ---------- */
.hero { padding: 16px 0 32px; }
.hero__title { font-weight: 800; font-size: clamp(21px, calc(var(--cw) * .061), 25px); line-height: 1.18; letter-spacing: -.02em; text-align: center; }
.hero__kick {
  display: table; margin: 0 auto 8px; padding: 3px 10px; border-radius: 6px; background: var(--sage);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--forest-2);
}
.hero__hl { color: var(--terra); box-shadow: inset 0 -.28em 0 rgba(200, 85, 61, .16); }

/* efir oynasi — rasm o'z foni bilan, kesilmagan */
.stream {
  position: relative; width: min(100%, var(--ch)); aspect-ratio: 1; margin: 14px auto 0; border-radius: 20px; overflow: hidden;
  background: var(--forest); box-shadow: 0 24px 40px -22px rgba(30, 43, 37, .7), 0 0 0 6px var(--card);
}
.stream__img { width: 100%; height: 100%; object-fit: cover; }
.stream__top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stream__live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: var(--live); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.stream__live .live-dot { background: #fff; width: 6px; height: 6px; }
.stream__meta { padding: 4px 9px; border-radius: 6px; background: rgba(20, 28, 24, .6); color: #fff; font-size: 11px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stream__bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 10px 10px; background: linear-gradient(transparent, rgba(20, 28, 24, .75)); display: flex; justify-content: flex-start; }
.stream__gift { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--card); color: var(--terra-3); font-size: 12px; font-weight: 700; }

.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 18px 20px; border-radius: 14px; background: var(--terra); color: #fff; white-space: nowrap;
  font-size: clamp(17px, calc(var(--cw) * .048), 19px); font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 14px 28px -12px rgba(200, 85, 61, .75); transition: background .2s, transform .2s;
}
.btn svg { transition: transform .2s; }
.btn:hover { background: var(--terra-2); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.btn--sm { padding: 15px 20px; font-size: 16px; }
.timer { font-size: 13px; font-weight: 500; color: var(--muted); }
.timer b { margin-left: 6px; padding: 3px 9px; border-radius: 6px; background: var(--forest); color: #fff; font-variant-numeric: tabular-nums; }

/* ---------- DASTUR ---------- */
.learn { padding: 30px 0 20px; border-top: 1px solid var(--line); }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra); }
.h2 { font-weight: 800; font-size: clamp(28px, calc(var(--cw) * .08), 33px); line-height: 1.05; letter-spacing: -.03em; margin: 4px 0 16px; }

.feature { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 14px; }
.feature__num { flex: none; width: 76px; height: 76px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--forest); color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.feature__num sup { font-size: .5em; color: var(--terra-2); }
.feature h3 { font-size: 17px; font-weight: 700; line-height: 1.25; }
.feature p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.feature p b { color: var(--text); }

/* sovg'alar shohsupasi */
.prizes { padding: 18px 14px 14px; border-radius: 18px; background: var(--forest); color: #F3EDE3; }
.prizes .label { color: var(--terra-2); }
.prizes__sum { margin: 4px 0 16px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.prizes__sum b { display: block; font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; }
.podium__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; text-align: center; padding: 12px 6px 0; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, .07); }
.podium__col svg { width: 38px; height: 38px; color: var(--terra-2); }
.podium__col b { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.podium__col img { width: 58px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .45)); }
.podium__col--1 { background: var(--terra); padding-top: 14px; }
.podium__col--1 b { font-size: 14px; }
.podium__step { display: grid; place-items: center; width: calc(100% + 12px); margin: 0 -6px; font-size: 22px; font-weight: 800; background: rgba(0, 0, 0, .18); border-radius: 8px 8px 0 0; }
.podium__col--1 .podium__step { height: 58px; }
.podium__col--2 .podium__step { height: 40px; }
.podium__col--3 .podium__step { height: 26px; font-size: 18px; }
.prizes__extra { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; opacity: .9; }
.prizes__extra svg { color: var(--terra-2); }

/* ---------- FINAL ---------- */
.final { padding: 26px 0 40px; }
.final__card { padding: 22px 16px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-align: center; display: flex; flex-direction: column; align-items: center; }
.board__cells--light .cell { background: var(--bg); border-color: var(--line); color: var(--text); }
.board__cells--light .cell--accent { background: var(--terra); border-color: var(--terra); color: #fff; }
.final__title { margin-top: 14px; font-size: clamp(22px, calc(var(--cw) * .062), 26px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.final__text { margin: 8px 0 18px; font-size: 14px; color: var(--muted); }

.foot { height: 90px; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(243, 237, 227, .95); border-top: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .35s ease;
}
.sticky.is-on { transform: none; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 600px) {
  body { background: #E6DED1; }
  .page { max-width: var(--wrap); margin: 0 auto; min-height: 100vh; position: relative; background: var(--bg); box-shadow: 0 0 50px rgba(30, 43, 37, .12); }
  .sticky { left: 50%; right: auto; width: var(--wrap); transform: translate(-50%, 110%); }
  .sticky.is-on { transform: translate(-50%, 0); }
}
@media (max-width: 360px) {
  .cell { min-width: 46px; padding: 4px 6px 3px; }
  .cell b { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
