/* Zakovat — umumiy tokenlar. Qizil · oq · qora. */
:root {
  /* Ziyolilar palitrasi: siyoh-ko'k, fil suyagi, vino-bordo, oltin */
  --red: #8E1F33;
  --red-hot: #A82B42;
  --red-deep: #5C1220;
  --gold: #C9A55C;
  --gold-soft: #E6D3A3;
  --ink: #0E1A2B;
  --ink-2: #16243A;
  --ink-3: #22324D;
  --stage: #08111F;
  --stage-2: #0F1B2E;
  --stage-3: #17263F;
  --stage-line: #24375A;
  --paper: #FCFBF8;
  --smoke: #F2F0EA;
  --line: #E2DFD6;
  --mute: #5E6778;
  --steel: #BFC3C7;
  --ok: #1E7A50;
  --display: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --r-sm: 4px;
  --r-md: 10px;
  --shadow-lift: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px -12px rgba(0,0,0,.25);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

/* ---------- tugmalar ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--b-bd); border-radius: 6px;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: transform .15s var(--ease-out), background .15s, box-shadow .2s, opacity .2s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn[disabled] { opacity: .38; pointer-events: none; }
.btn--red { --b-bg: var(--red); --b-bd: var(--red); }
.btn--red:hover { --b-bg: var(--red-hot); --b-bd: var(--red-hot); box-shadow: 0 10px 28px -10px rgba(142,31,51,.7); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line); }
.btn--ghost:hover { --b-bd: var(--ink); }
.btn--line { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--ink); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn--icon { padding: 0; width: 44px; }
.btn--icon.btn--sm { width: 34px; }
.on-dark .btn--ghost { --b-fg: var(--paper); --b-bd: rgba(255,255,255,.22); }
.on-dark .btn--ghost:hover { --b-bd: var(--paper); }
.on-dark .btn--line { --b-fg: var(--paper); --b-bd: var(--paper); }
.on-dark .btn:not(.btn--red):not(.btn--ghost):not(.btn--line):not(.btn--gold) { --b-bg: var(--paper); --b-fg: var(--ink); --b-bd: var(--paper); }
kbd { font-family: var(--text); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; border: 1px solid currentColor; opacity: .55; }

/* ---------- maydonlar ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--mute); }
.input, .textarea, .select {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.input:hover, .textarea:hover { border-color: #c9c9c9; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14,26,43,.08); }
.hint { font-size: 13px; color: var(--mute); }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; width: min(92vw, 440px); }
.toast {
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); display: flex; gap: 10px; align-items: center;
  animation: toast-in .35s var(--ease-spring);
}
.toast--err { background: var(--red); }
.toast.out { animation: toast-out .25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 900; background: rgba(8,17,31,.6); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
.modal { background: var(--paper); color: var(--ink); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 12px; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); animation: modal-in .35s var(--ease-spring); }
.modal h3 { font-size: 20px; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- baraban ---------- */
.drum { position: relative; width: 100%; aspect-ratio: 1; user-select: none; }
.drum svg { width: 100%; height: 100%; overflow: visible; }
.drum .sector-env { transition: opacity .5s, transform .5s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.drum .sector.played .sector-env { opacity: .0; }
.drum .sector.played .sector-ghost { opacity: 1; }
.drum .sector-ghost { opacity: 0; transition: opacity .5s; }
.drum .sector.empty .sector-env { opacity: .28; }
.drum .sector.hit .sector-glow { opacity: 1; }
.drum .sector-glow { opacity: 0; transition: opacity .18s; }
.drum .sector.target .sector-env { animation: env-pop 1.1s var(--ease-spring) infinite alternate; }
@keyframes env-pop { to { transform: scale(1.14); } }
.drum .bulb { fill: #2a3550; transition: fill .35s ease; }
.drum .bulb.on { fill: #FFF1C9; stroke: rgba(246,226,176,.45); stroke-width: 7; transition-duration: .08s; } /* SVG filtr o'rniga yengil nur — GPU'ni qiynamaydi */
.drum svg { transition: transform .6s var(--ease-out); transform-style: preserve-3d; }
.drum .arrow-wrap { transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- konvert (savol ochilishi) ---------- */
.env { position: relative; width: 220px; aspect-ratio: 1.46; perspective: 900px; }
.env-back, .env-front, .env-flap, .env-letter { position: absolute; inset: 0; border-radius: 4px; }
.env-back { background: #e9e9e9; }
.env-letter { inset: 8px 12px; background: var(--paper); border: 1px solid #ddd; display: grid; place-items: start center; padding-top: 10px; transition: transform .7s var(--ease-out) .35s; z-index: 1; }
.env-letter .num { font-size: 22px; font-weight: 900; color: var(--red); }
.env-seal { border: 2px solid var(--gold); }
.env-front { background: linear-gradient(to top right, #fafafa 49.6%, transparent 50%) left / 50.5% 100% no-repeat, linear-gradient(to top left, #f4f4f4 49.6%, transparent 50%) right / 50.5% 100% no-repeat; z-index: 2; }
.env-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#ffffff, #f0f0f0) bottom / 100% 52% no-repeat; clip-path: polygon(0 100%, 50% 42%, 100% 100%); }
.env-flap { height: 58%; background: #ffffff; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .55s var(--ease-out); z-index: 3; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.env-seal { position: absolute; left: 50%; top: 58%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #c0475c, var(--red) 55%, var(--red-deep)); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 900; z-index: 4; box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: transform .4s var(--ease-out), opacity .3s; }
.env.open .env-seal { transform: scale(1.6) rotate(-18deg); opacity: 0; }
.env.open .env-flap { transform: rotateX(180deg); z-index: 0; transition-delay: .15s; }
.env.open .env-letter { transform: translateY(-46%); }
.env.landing { animation: env-arrive .8s var(--ease-spring); }
@keyframes env-arrive { from { opacity: 0; transform: translateY(40px) scale(.6) rotate(-8deg); } }

/* ---------- taymer halqasi ---------- */
.ring { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(127,127,127,.22); }
.ring .bar { fill: none; stroke: var(--red); stroke-linecap: round; transition: stroke .3s; }
.ring .val { font-family: var(--display); font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.ring .lbl { font-size: 13px; opacity: .65; margin-top: 4px; text-align: center; }
.ring.warn .bar { stroke: var(--red-hot); }
.ring.warn .val { animation: pulse-red 1s ease-in-out infinite; }
.ring.write .bar { stroke: var(--gold); }
.ring.light.write .bar { stroke: var(--ink); }
@keyframes pulse-red { 50% { color: var(--red-hot); } }
[hidden] { display: none !important; }
.on-dark .modal .btn--ghost { --b-fg: var(--ink); --b-bd: var(--line); }
.on-dark .modal .btn--line { --b-fg: var(--ink); --b-bd: var(--ink); }
.on-dark .modal .btn:not(.btn--red):not(.btn--ghost):not(.btn--line):not(.btn--gold) { --b-bg: var(--ink); --b-fg: var(--paper); --b-bd: var(--ink); }

/* ---------- silliq sahifa o'tishlari ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
.enter > * { animation: rise .6s var(--ease-out) both; }
.enter > *:nth-child(2) { animation-delay: .06s; } .enter > *:nth-child(3) { animation-delay: .12s; } .enter > *:nth-child(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
html { scroll-behavior: smooth; }
::selection { background: var(--gold-soft); color: var(--ink); }
.btn { position: relative; overflow: hidden; }
.btn .rip { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .22; animation: rip .6s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(2.6); opacity: 0; } }
.btn--gold { --b-bg: var(--gold); --b-fg: var(--ink); --b-bd: var(--gold); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: #1f1f1f; font-weight: 600; font-size: 15px; cursor: pointer; transition: border-color .2s, box-shadow .25s, transform .2s var(--ease-out); }
.btn-google:hover { border-color: var(--ink); box-shadow: 0 8px 22px -12px rgba(14,26,43,.45); transform: translateY(-1px); }
.btn-google svg { width: 20px; height: 20px; }

/* ---------- QORA QUTI ---------- */
.bbox { position: relative; width: 200px; aspect-ratio: 1.1; perspective: 900px; }
.bbox-body { position: absolute; inset: 22% 6% 0; background: linear-gradient(160deg, #1b2335, #02060D 60%); border: 2px solid var(--gold); border-radius: 6px; display: grid; place-items: end center; padding-bottom: 10%; box-shadow: 0 30px 50px -20px rgba(0,0,0,.8), inset 0 0 30px rgba(201,165,92,.08); z-index: 2; }
.bbox-body .num { font-size: 18px; font-weight: 900; color: var(--gold); letter-spacing: .06em; }
.bbox-lid { position: absolute; left: 2%; right: 2%; top: 10%; height: 18%; background: linear-gradient(#232c40, #050B16); border: 2px solid var(--gold); border-radius: 6px; transform-origin: 0% 100%; z-index: 3; transition: transform .9s var(--ease-spring); box-shadow: 0 10px 20px -8px rgba(0,0,0,.7); }
.bbox-q { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-family: var(--display); font-weight: 900; font-size: 56px; color: var(--gold-soft); z-index: 4; text-shadow: 0 0 24px rgba(201,165,92,.6); transition: opacity .4s, transform .6s var(--ease-out); }
.bbox-glow { position: absolute; left: 10%; right: 10%; top: 0; height: 60%; z-index: 1; background: conic-gradient(from 200deg at 50% 100%, transparent 0 20deg, rgba(246,226,176,.0) 20deg, rgba(246,226,176,.75) 60deg, transparent 100deg 140deg); filter: blur(6px); opacity: 0; transform: scaleY(.3); transform-origin: bottom; transition: opacity .6s .5s, transform 1s var(--ease-out) .5s; }
.bbox.shake { animation: bshake .12s linear 14; }
@keyframes bshake { 25% { transform: translate(-2px, 1px) rotate(-1deg); } 75% { transform: translate(2px, -1px) rotate(1deg); } }
.bbox.open .bbox-lid { transform: translateY(-6%) rotate(-62deg); }
.bbox.open .bbox-q { opacity: 0; transform: translate(-50%, -140%) scale(1.6); }
.bbox.open .bbox-glow { opacity: 1; transform: scaleY(1); }
.bbox.landing { animation: env-arrive .8s var(--ease-spring); }

/* ---------- SURGUN kartasi ---------- */
.skcard { --w: 54px; position: relative; width: var(--w); aspect-ratio: .68; border-radius: 6px; background: linear-gradient(150deg, #1E2C48, #08111F); border: 1.5px solid var(--gold); display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); flex: 0 0 auto; }
.skcard::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(201,165,92,.45); border-radius: 4px; }
.skcard svg { width: 46%; height: auto; color: var(--gold); margin-top: -14%; }
.skcard .sk-name { position: absolute; bottom: 9%; font-family: var(--display); font-weight: 900; font-size: calc(var(--w) * .14); letter-spacing: .08em; color: var(--gold-soft); }
.skcard.big { --w: 150px; border-width: 2px; animation: card-flip 1.1s var(--ease-spring) both; }
@keyframes card-flip { from { transform: rotateY(180deg) scale(.4); opacity: 0; } }
.skcard.used { opacity: .28; filter: grayscale(1); }
.sk-banner { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 10px; background: linear-gradient(90deg, rgba(201,165,92,.18), rgba(30,44,72,.6)); border: 1px solid rgba(201,165,92,.5); color: #fff; animation: sk-in .7s var(--ease-spring) both; }
.sk-banner b { color: var(--gold-soft); }
.sk-banner .t { font-family: var(--display); font-weight: 900; letter-spacing: .08em; font-size: 12px; color: var(--gold); }
@keyframes sk-in { from { opacity: 0; transform: translateY(-14px) rotateX(40deg); } }

canvas.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2000; }
.mode-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 99px; background: var(--ink); color: var(--gold-soft); font-weight: 700; font-size: 14px; white-space: nowrap; }
.mode-badge b { color: #fff; font-family: var(--display); }

.on-dark .btn.btn--gold { --b-bg: var(--gold); --b-fg: var(--ink); --b-bd: var(--gold); }

.toast.nudge { animation: toast-nudge .4s var(--ease-spring); }
@keyframes toast-nudge { 30% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }

/* =====================================================================
   FORMA ELEMENTLARI — yagona tizim (yorug' va qorong'i sahna uchun)
   ===================================================================== */
:root {
  --f-bg: #FFFFFF; --f-bd: #DCD6C8; --f-bd-h: #BDB5A3; --f-fg: var(--ink); --f-ph: #A39C8C;
  --f-ring: rgba(201,165,92,.32); --f-pop: #FFFFFF; --f-hi: #F5EFE1; --f-r: 10px; --f-h: 46px;
}
.lv, .on-dark .modal-back .judge-form, .judge-form, .sg-overlay {
  --f-bg: #0F1B2E; --f-bd: #2A3D5F; --f-bd-h: #3E5580; --f-fg: #F3EFE6; --f-ph: #6F7E99;
  --f-ring: rgba(201,165,92,.28); --f-pop: #13213A; --f-hi: #1D3050;
}
.lv .modal { --f-bg: #FFFFFF; --f-bd: #DCD6C8; --f-bd-h: #BDB5A3; --f-fg: var(--ink); --f-ph: #A39C8C; --f-ring: rgba(201,165,92,.32); --f-pop: #FFFFFF; --f-hi: #F5EFE1; }

.field { gap: 8px; }
.field > span { font-size: 13px; font-weight: 600; color: #3B4458; letter-spacing: .005em; }
.lv .field > span { color: #A9B3C6; }
.input, .textarea, .select, .zs-btn {
  width: 100%; min-height: var(--f-h); padding: 11px 14px; border-radius: var(--f-r);
  border: 1px solid var(--f-bd); background: var(--f-bg); color: var(--f-fg);
  box-shadow: inset 0 1px 2px rgba(14,26,43,.05);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.input::placeholder, .textarea::placeholder { color: var(--f-ph); }
.input:hover, .textarea:hover, .zs-btn:hover { border-color: var(--f-bd-h); }
.input:focus, .textarea:focus, .select:focus, .zs-btn:focus-visible, .zs.open .zs-btn {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--f-ring);
}
.judge-form .input, .judge-form .textarea, .judge-form .select { background: var(--f-bg); border-color: var(--f-bd); color: var(--f-fg); }
.judge-form .input:focus, .judge-form .textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--f-ring); }
.textarea { line-height: 1.6; }

/* ---- ochiladigan ro'yxat ---- */
.zs { position: relative; min-width: 0; }
.zs-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.zs-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; font-weight: 500; }
.zs-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zs-val.ph { color: var(--f-ph); font-weight: 400; }
.zs-chev { width: 18px; height: 18px; flex: 0 0 18px; opacity: .6; transition: transform .25s var(--ease-out); }
.zs.open .zs-chev { transform: rotate(180deg); opacity: 1; }
.zs-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 180px;
  max-height: 280px; overflow: auto; padding: 6px; border-radius: 12px;
  background: var(--f-pop); color: var(--f-fg); border: 1px solid var(--f-bd);
  box-shadow: 0 24px 48px -16px rgba(8,17,31,.45), 0 2px 6px rgba(8,17,31,.08);
  animation: zs-in .18s var(--ease-out);
}
.zs.up .zs-list { top: auto; bottom: calc(100% + 6px); animation-name: zs-in-up; }
@keyframes zs-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes zs-in-up { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.zs-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.zs-opt.ph { color: var(--f-ph); }
.zs-opt.hi { background: var(--f-hi); }
.zs-opt.sel { font-weight: 700; }
.zs-opt svg { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; }

/* ---- raqam: − [ 60 ] + ---- */
.zn { display: inline-flex; align-items: stretch; height: var(--f-h); border-radius: var(--f-r); border: 1px solid var(--f-bd); background: var(--f-bg); overflow: hidden; transition: border-color .18s, box-shadow .18s; vertical-align: middle; }
.zn:hover { border-color: var(--f-bd-h); }
.zn:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--f-ring); }
.zn .input, .tier .zn .input, .inline .zn .input { width: 64px !important; min-height: 0; height: 100%; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 0 4px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; }
.zn-b { width: 38px; border: 0; background: transparent; color: var(--f-fg); font-size: 20px; line-height: 1; cursor: pointer; opacity: .55; transition: opacity .15s, background .15s; }
.zn-b:hover { opacity: 1; background: var(--f-hi); }
.zn-b:active { background: var(--f-bd); }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- slayder ---- */
input.zr { -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; accent-color: auto; }
input.zr::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--red) 0, var(--gold) var(--p, 50%), var(--f-bd) var(--p, 50%)); }
input.zr::-moz-range-track { height: 6px; border-radius: 99px; background: var(--f-bd); }
input.zr::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--gold)); }
input.zr::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); box-shadow: 0 3px 10px rgba(8,17,31,.25); transition: transform .15s var(--ease-spring); }
input.zr::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); box-shadow: 0 3px 10px rgba(8,17,31,.25); }
input.zr:active::-webkit-slider-thumb { transform: scale(1.15); }
input.zr:focus-visible { outline: none; }
input.zr:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--f-ring); }

/* ---- belgilash katagi ---- */
.check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check > span { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; border: 1.5px solid var(--f-bd-h); background: var(--f-bg); display: grid; place-items: center; transition: background .18s, border-color .18s, transform .15s var(--ease-spring); }
.check > span::after { content: ""; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease-spring); }
.check input:checked + span { background: var(--ink); border-color: var(--ink); }
.check input:checked + span::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:active > span { transform: scale(.92); }
.check input:focus-visible + span { box-shadow: 0 0 0 4px var(--f-ring); }

/* ---------- jamoa / odam avatari ---------- */
.av-t, .av-p { --s: 36px; width: var(--s); height: var(--s); flex: 0 0 var(--s); border-radius: 50%; display: inline-grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--av) 70%, #fff), var(--av) 60%, color-mix(in srgb, var(--av) 70%, #000)); color: #fff; font-weight: 800; font-size: calc(var(--s) * .38); letter-spacing: .02em; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.18), 0 2px 6px rgba(8,17,31,.25); text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.av-t { border-radius: 30%; }

/* ---------- SURGUN kartasi ---------- */
.sgc { --w: 180px; width: var(--w); aspect-ratio: 300 / 430; perspective: 1200px; flex: 0 0 auto; }
.sgc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.2,.9,.25,1.15); }
.sgc.flipped .sgc-in { transform: rotateY(180deg); transition: none; }
.sgc-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: calc(var(--w) * .075); box-shadow: 0 calc(var(--w) * .1) calc(var(--w) * .2) calc(var(--w) * -.06) rgba(0,0,0,.6), 0 0 0 1px rgba(201,165,92,.25); overflow: hidden; }
.sgc-back { transform: rotateY(180deg); }
.sgc-svg { width: 100%; height: 100%; display: block; }
.sgc.float .sgc-in { animation: sgc-float 5s ease-in-out infinite; }
.sgc.flipped.float .sgc-in { animation: none; }
@keyframes sgc-float { 0%, 100% { transform: translateY(0) rotateY(-8deg) rotateX(4deg); } 50% { transform: translateY(-10px) rotateY(8deg) rotateX(-2deg); } }
.sgc-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,240,200,.22) 45%, transparent 60%); transform: translateX(-120%); animation: sgc-shine 4.5s ease-in-out infinite 1s; pointer-events: none; }
@keyframes sgc-shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
