:root {
  --bg: #07090a;
  --bg-2: #101314;
  --grass-1: #0a3017;
  --grass-2: #0e391a;
  --line: rgba(255, 255, 255, 0.32);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.66);
  --gold: #b8ff05;
  --gold-2: #d4ff5e;
  --gold-deep: #80be00;
  --display: "Oswald", "Bebas Neue", Impact, "Arial Narrow", "Arial Black", sans-serif;
  --text: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, #0d3a1e 0%, rgba(13, 58, 30, 0) 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 70%);
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; }

/* ---------- Stadion projektorlari ---------- */
.stadium {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.beam {
  position: absolute;
  top: -20vh;
  width: 60vw;
  height: 90vh;
  background: linear-gradient(180deg, rgba(173, 255, 79, 0.13), rgba(173, 255, 79, 0));
  filter: blur(18px);
  opacity: 0.8;
}
.beam--left  { left: -18vw;  transform: rotate(-22deg); transform-origin: top left; }
.beam--right { right: -18vw; transform: rotate(22deg);  transform-origin: top right; }

/* ---------- SPORTZIVO brend qatori ---------- */
.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 484px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 16px 6px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
}
.brand__z {
  display: inline-grid;
  place-items: center;
  width: 1.02em;
  height: 1.18em;
  margin: 0 0.1em 0 0.06em;
  border-radius: 3px;
  font-size: 1.1em;
  letter-spacing: 0;
  color: #101805;
  background: linear-gradient(160deg, var(--gold-2), var(--gold) 55%, var(--gold-deep));
  transform: skewX(-12deg);
  box-shadow: 0 2px 10px rgba(184, 255, 5, 0.3);
}
.brand:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 4px; }
.brand__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Sport turlari ---------- */
.sports {
  position: relative;
  z-index: 1;
  max-width: 484px;
  margin: 0 auto;
}
.sports__list {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 16px 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
          mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.sports__list::-webkit-scrollbar { display: none; }
.sports__list li { flex: none; }
.sport {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.sport.is-active {
  color: #101805;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.sport.is-active:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.sport.is-soon {
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
}
.sports__soon {
  padding-left: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Sarlavha ---------- */
.hero {
  position: relative;
  z-index: 1;
  padding: 8px 16px 10px;
  text-align: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 13.5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}
.hero__subtitle {
  display: inline-block;
  margin: 6px 0 0;
  padding: 3px 12px 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 5.2vw, 24px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #101805;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 30%, var(--gold-2) 50%, var(--gold) 70%, var(--gold-deep));
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

/* ---------- Asosiy ---------- */
.main {
  position: relative;
  z-index: 1;
  padding: 4px 12px calc(24px + env(safe-area-inset-bottom));
}

/* ---------- Maydon ---------- */
.pitch {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 68 / 100;
  border-radius: 14px;
  overflow: hidden;
  background:
    repeating-linear-gradient(180deg, var(--grass-1) 0 10%, var(--grass-2) 10% 20%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 80px rgba(0, 0, 0, 0.55);
}
@supports not (aspect-ratio: 1) {
  .pitch { height: 0; padding-top: 147%; }
}
.pitch__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--line);
  stroke-width: 0.35;
  vector-effect: non-scaling-stroke;
}
.pitch__lines * { vector-effect: non-scaling-stroke; stroke-width: 1.2px; }
.pitch__lines .dot { fill: var(--line); }
.pitch__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 38% at 18% -4%, rgba(185, 255, 115, 0.22), transparent 70%),
    radial-gradient(70% 38% at 82% -4%, rgba(185, 255, 115, 0.18), transparent 70%),
    radial-gradient(90% 50% at 50% 110%, rgba(0, 0, 0, 0.45), transparent 70%);
}
.pitch__arrow {
  position: absolute;
  top: 3.2%;
  right: 4.5%;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Pozitsiyalar: --x / --y markazi bo‘yicha joylashadi */
.slot,
.player-card {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
}

/* ---------- Bo‘sh pozitsiya ---------- */
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 23%;
  max-width: 96px;
  text-align: center;
}
.slot__dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.28);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.slot__label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  overflow-wrap: anywhere;
}

/* ---------- Faol oltin joy (O‘ng yarim himoya) ---------- */
.slot--active {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 6px 2px 4px;
  width: 26%;
  max-width: 112px;
  background: none;
  cursor: pointer;
  border-radius: 12px;
}
.slot__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle, rgba(184, 255, 5, 0.28), rgba(184, 255, 5, 0.06) 70%);
  box-shadow: 0 0 0 0 rgba(184, 255, 5, 0);
  animation: glowOnce 2.6s ease-in-out 0.7s 1 both;
}
.slot__plus {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-2);
  transform: translateY(-1px);
}
.slot__ask {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold-2);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}
.slot__label--gold { color: rgba(212, 255, 94, 0.85); }
.slot--active:active .slot__ring { transform: scale(0.94); }
.slot--active:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

@keyframes glowOnce {
  0%   { box-shadow: 0 0 0 0 rgba(184, 255, 5, 0);    border-color: var(--gold); }
  45%  { box-shadow: 0 0 22px 8px rgba(184, 255, 5, 0.55), 0 0 0 7px rgba(184, 255, 5, 0.18); border-color: var(--gold-2); }
  100% { box-shadow: 0 0 10px 1px rgba(184, 255, 5, 0.28); border-color: var(--gold); }
}

/* ---------- Ronaldu kartasi ---------- */
.player-card {
  appearance: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 29%;
  min-width: 92px;
  max-width: 124px;
  padding: 6px 4px 7px;
  border-radius: 10px;
  border: 2px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(212, 255, 94, 0.16), rgba(0, 0, 0, 0) 45%),
    linear-gradient(180deg, #10291a, #050d08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(184, 255, 5, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s var(--ease-out);
}
.player-card:active { transform: translate(-50%, -50%) scale(0.96); }
.player-card:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.player-card__pos {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.player-card__first {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}
.player-card__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}
.player-card__pct {
  margin-top: 3px;
  padding: 1px 8px 2px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: #101805;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

/* ---------- Maydondagi qisqa xabar ---------- */
.pitch-toast {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 5;
  width: max-content;
  max-width: 88%;
  padding: 11px 16px 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  background: rgba(4, 14, 8, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 18px rgba(184, 255, 5, 0.25);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.pitch-toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #101805;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.pitch-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.note {
  max-width: 460px;
  margin: 14px auto 0;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--muted);
}

/* ---------- Pastdan chiqadigan panel ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.backdrop.is-open { opacity: 1; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  max-height: 85vh;
  overflow-y: auto;
  padding: 6px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  border-top: 2px solid var(--gold);
  background: linear-gradient(180deg, #0f1b10 0%, #080c0a 100%);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(105%);
  transition: transform 0.42s var(--ease-out);
  visibility: hidden;
}
.sheet.is-open { transform: translateY(0); visibility: visible; }
.sheet.is-closing { visibility: visible; }

.sheet__handle {
  display: block;
  width: 100%;
  padding: 8px 0 12px;
  border: 0;
  background: none;
  cursor: pointer;
}
.sheet__handle span {
  display: block;
  width: 44px;
  height: 5px;
  margin: 0 auto;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
}
.sheet__kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.sheet__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  text-transform: uppercase;
}
.sheet__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}
.sheet__text--soon {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(184, 255, 5, 0.55);
  background: rgba(184, 255, 5, 0.07);
  color: var(--gold-2);
  font-weight: 600;
}
.sheet__close {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.result { margin: 2px 0 12px; }
.result__pct {
  display: block;
  font-family: var(--display);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-2);
}
.result__bar {
  height: 8px;
  margin-top: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.result__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform-origin: left;
  animation: barGrow 0.9s var(--ease-out) 0.25s both;
}
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.candidates {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}
.cand {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #0d170b;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s var(--ease-out);
}
.cand:active { transform: scale(0.98); }
.cand:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.cand__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(184, 255, 5, 0.5);
}
.cand__name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
}
.cand__name small {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.cand__check {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
  font-weight: 700;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.cand[aria-checked="true"] {
  border-color: var(--gold);
  background:
    linear-gradient(180deg, rgba(184, 255, 5, 0.18), rgba(184, 255, 5, 0.04)),
    #102009;
  box-shadow: 0 0 18px rgba(184, 255, 5, 0.28);
}
.vote-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #101805;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 6px 20px rgba(184, 255, 5, 0.3);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s var(--ease-out);
}
.vote-btn:active:not(:disabled) { transform: scale(0.98); }

/* ---------- Instagram bosqichi: oddiy ro‘yxat va havola ---------- */
.cand-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.cand--static {
  min-height: 0;
  padding: 7px 12px;
  border-width: 1px;
  cursor: default;
}
.cand--static .cand__num { width: 28px; height: 28px; font-size: 14px; }
.cand--static .cand__name { font-size: 19px; }
.cand--static:active { transform: none; }
.ig-hint {
  margin: 12px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}
.ig-btn {
  margin-top: 10px;
  padding: 14px 10px;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}
.ig-btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
.vote-btn:disabled { opacity: 0.4; box-shadow: none; cursor: default; }
.vote-btn.is-busy { opacity: 0.7; }
.vote-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}
.vote-status.is-ok { color: #7ee2a0; }
.vote-status.is-error { color: #ff9a8a; }
.ghost-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border-radius: 12px;
  border: 1.5px solid rgba(184, 255, 5, 0.6);
  background: rgba(184, 255, 5, 0.06);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-2);
  cursor: pointer;
}
.ghost-btn:active { transform: scale(0.98); }

/* ---------- Natijalar ---------- */
.results__total {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.results__total strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-right: 4px;
}
.results__empty {
  padding: 18px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.results__list { display: grid; gap: 12px; }
.res__row { display: grid; gap: 6px; }
.res__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.res__name {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.res__count {
  flex: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.res__pct {
  flex: none;
  min-width: 52px;
  text-align: right;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-2);
}
.res__bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.res__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transform-origin: left;
  animation: barGrow 0.7s var(--ease-out) both;
}
.res__row.is-mine .res__name::after {
  content: " · siz";
  font-family: var(--text);
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: #7ee2a0;
}
.results__note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.cand[aria-checked="true"] .cand__check {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #101805;
  transform: scale(1.08);
}

body.sheet-open { overflow: hidden; }

/* ---------- Kichik ekranlar ---------- */
@media (max-width: 374px) {
  .slot__dot { width: 30px; height: 30px; font-size: 9px; }
  .slot__label { font-size: 9.5px; }
  .player-card__name { font-size: 17px; }
  .player-card__pct { font-size: 18px; }
  .slot__ring { width: 40px; height: 40px; }
  .slot__ask { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .slot__ring { animation: none; box-shadow: 0 0 10px 1px rgba(184, 255, 5, 0.28); }
  .sheet, .backdrop { transition: none; }
  .result__bar span { animation: none; }
}


/* =============================================================
   SPORTZIVO NEON EDITION — 2026/11
   Tasdiqlangan dizayn: qora fon, oq matn, neon-yashil Z.
   Mavjud ID/data-sheet, panel va tugmalar logikasi o'zgarmagan.
   ============================================================= */
:root {
  --neon: #b8ff05;
  --neon-soft: #d4ff5e;
  --surface: #0b0e0e;
}

body {
  background: radial-gradient(ellipse 95% 38% at 50% 45%, rgba(25,72,29,.16),transparent 74%),
              radial-gradient(ellipse 80% 29% at 50% -8%,rgba(23,32,30,.8),transparent 72%),
              #07090a;
}
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 20% 0 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 12% 18% at 1% 22%,rgba(255,255,255,.09),transparent),
    radial-gradient(ellipse 12% 18% at 99% 22%,rgba(255,255,255,.09),transparent),
    linear-gradient(180deg, transparent 50%,rgba(27,64,24,.06) 75%,transparent);
}
.stadium { opacity: .85; }
.stadium::before,.stadium::after {
  content: "";
  position: absolute;
  top: 15%;
  width: min(34vw,480px);
  height: 180px;
  background: linear-gradient(95deg,rgba(184,255,5,.9),rgba(143,233,0,.3),transparent);
  filter: drop-shadow(0 0 22px rgba(184,255,5,.35));
  opacity: .75;
}
.stadium::before { left:-8%; clip-path: polygon(0 0,100% 0,0 65%); }
.stadium::after { right:-8%; transform: scaleX(-1); clip-path: polygon(0 0,100% 0,0 65%); }

.site-header { max-width: 1160px; padding: 20px 28px 12px; }
.brand { flex: 0 1 auto; min-width: 0; line-height: 0; }
.brand__image { display: block; width: clamp(185px, 28vw, 340px); max-width: 100%; height: auto; }
.brand__tag { font-size: 12px; letter-spacing: .18em; font-style: italic; }
.sports { max-width: 1160px; }
.sports__list {
  gap: 12px;
  margin: 0 28px;
  padding: 9px 0 13px;
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(184,255,5,.18);
}
.sport { font-size: 15px; padding: 9px 22px; }
.sport.is-active { box-shadow: 0 5px 18px rgba(184,255,5,.15); }
.sport.is-soon { border: 0; color: rgba(255,255,255,.78); padding: 9px 14px; }
.sports__soon { padding-left: 14px; text-transform: none; font-size: 13px; letter-spacing: 0; }
.hero { padding: 28px 16px 18px; }
.hero__kicker { font-size: 15px; letter-spacing: .2em; margin-bottom: 9px; }
.hero__title { font-size: clamp(48px,8vw,112px); font-style: italic; line-height: 1.02; letter-spacing: -.02em; }
.hero__subtitle { font-size: clamp(22px,3.4vw,37px); padding: 6px 24px; box-shadow: 0 5px 35px rgba(184,255,5,.18); }
.main { padding: 7px 18px calc(42px + env(safe-area-inset-bottom)); }
.pitch {
  max-width: 1035px;
  aspect-ratio: 1.86 / 1;
  border: 1.5px solid rgba(184,255,5,.83);
  border-radius: 19px;
  background: repeating-linear-gradient(180deg,var(--grass-1) 0 12.5%,var(--grass-2) 12.5% 25%);
  box-shadow: 0 0 0 1px rgba(184,255,5,.1),0 0 28px rgba(184,255,5,.12),0 22px 65px rgba(0,0,0,.65),inset 0 0 80px rgba(0,0,0,.35);
}
.pitch__lines { stroke: rgba(255,255,255,.49); }
.pitch__glow { background:
  radial-gradient(60% 60% at 45% 0%,rgba(167,255,94,.06),transparent),
  radial-gradient(80% 50% at 50% 110%,rgba(0,0,0,.47),transparent);
}
.pitch__arrow { color: rgba(255,255,255,.82); font-size: 12px; }
.slot { width: 22%; max-width: 160px; gap: 7px; }
.slot__dot { width: 57px; height: 57px; font-size: 17px; border-color: rgba(255,255,255,.72); }
.slot__label { font-size: 15px; }
.slot--active { max-width: 190px; }
.slot__ring { width: 65px; height: 65px; border-width: 3px; }
.slot__plus { font-size: 36px; }
.slot__ask { font-size: 19px; font-style: italic; }
.slot__label--gold { color: rgba(255,255,255,.9); }
.player-card {
  width: 31%; max-width: 280px; min-height: 142px;
  border-radius: 18px;
  padding: 14px 12px 12px 128px;
  overflow: hidden;
  align-items: flex-end;
  background: linear-gradient(125deg,rgba(184,255,5,.06),transparent 45%),
              linear-gradient(180deg,#132710,#070d0b);
  box-shadow: 0 0 22px rgba(184,255,5,.21),0 12px 28px rgba(0,0,0,.55);
}
.player-card__photo {
  position: absolute; left: -2%; bottom: -3%; width: 49%; height: 100%;
  object-fit: contain; object-position: left bottom;
  mask-image: linear-gradient(90deg,#000 67%,transparent 100%);
  pointer-events: none;
}
.player-card__pos,.player-card__first,.player-card__name,.player-card__pct { position: relative; z-index:1; text-align: right; }
.player-card__pos { font-size: 14px; }
.player-card__first { font-size: 16px; margin-top: 6px; }
.player-card__name { font-size: 28px; }
.player-card__pct { font-size: 26px; padding: 3px 10px; }
.note { max-width: 1035px; font-size: 13px; }
.sheet { background: linear-gradient(180deg,#101913,#080c0c 100%); }
.sheet__title { letter-spacing: .01em; }
.cand--static { background: #121a13; }

@media (max-width: 700px) {
  .site-header { padding: 15px 17px 8px; }
  .brand__image { width: clamp(164px,47vw,235px); }
  .brand__tag { font-size: 9px; letter-spacing: .08em; }
  .sports__list { margin: 0 16px; padding: 5px 0 8px; gap: 3px; }
  .sports__soon { font-size: 10px; padding-left: 7px; }
  .sport { font-size: 13px; padding: 7px 13px; }
  .sport.is-soon { font-size: 12px; padding: 7px 10px; }
  .hero { padding: 16px 9px 10px; }
  .hero__kicker { font-size: 10px; letter-spacing: .12em; margin-bottom: 7px; }
  .hero__title { font-size: clamp(43px,12.8vw,73px); letter-spacing: -.012em; font-style: normal; }
  .hero__subtitle { font-size: clamp(18px,5.4vw,27px); padding: 4px 14px; }
  .main { padding: 7px 11px calc(32px + env(safe-area-inset-bottom)); }
  .pitch { max-width: 460px; aspect-ratio: 68 / 100; border-radius: 14px; }
  .pitch__arrow { font-size: 9px; }
  .slot { width: 23%; max-width: 96px; gap: 4px; }
  .slot__dot { width: 34px; height: 34px; font-size: 10px; }
  .slot__label { font-size: 10px; }
  .slot--active { width: 26%; max-width: 112px; }
  .slot__ring { width: 46px; height: 46px; border-width: 2px; }
  .slot__plus { font-size: 26px; }
  .slot__ask { font-size: 13px; }
  .player-card {
    width: 30%; min-width: 93px; max-width: 132px; min-height: 0;
    padding: 7px 4px 8px;
    align-items: center;
    border-radius: 10px;
  }
  .player-card__photo { opacity: .27; left: -2%; width: 68%; height: 96%; }
  .player-card__pos,.player-card__first,.player-card__name,.player-card__pct { text-align: center; }
  .player-card__pos { font-size: 8.5px; }
  .player-card__first { font-size: 10px; margin-top: 3px; }
  .player-card__name { font-size: 19px; }
  .player-card__pct { font-size: 20px; padding: 1px 8px 2px; }
  .note { font-size: 12px; }
  .stadium::before,.stadium::after { top: 15%; height: 90px; width: 40vw; opacity: .45; }
}
@media (max-width: 374px) {
  .brand__image { width: 159px; }
  .brand__tag { font-size: 8px; }
  .hero__title { font-size: 12.2vw; }
  .slot__dot { width: 30px; height: 30px; font-size: 9px; }
  .slot__label { font-size: 9px; }
  .player-card__name { font-size: 17px; }
  .player-card__pct { font-size: 18px; }
  .slot__ring { width: 40px; height: 40px; }
  .slot__ask { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .slot__ring { animation: none; box-shadow: 0 0 10px 1px rgba(184,255,5,.23); }
}


/* ===============================================================
   SPORTZIVO · 4-3-3 ixcham g‘olib kartasi, barcha 11 o‘rin uchun.
   Maydonda doim bitta standart: doira surat + familiya + foiz.
   Batafsil rasm va natija allaqachon ishlaydigan panelda ochiladi.
   =============================================================== */
.player-card {
  /* Eski keng gorizontal kartochkadan voz kechamiz. */
  left: var(--x);
  top: var(--y);
  width: 15%;
  min-width: 0;
  max-width: 122px;
  min-height: 0;
  margin: 0;
  padding: 2px;
  gap: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transform: translate(-50%, -50%);
}
.player-card__photo {
  position: relative;
  inset: auto;
  display: block;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  max-width: 100%;
  border: 2px solid var(--neon, #b8ff05);
  border-radius: 50%;
  opacity: 1;
  object-fit: cover;
  object-position: center 28%;
  background-color: #122018;
  box-shadow: 0 0 0 3px rgba(10, 18, 12, .82), 0 0 14px rgba(184,255,5,.3);
  -webkit-mask-image: none;
  mask-image: none;
  pointer-events: none;
}
.player-card__pos,
.player-card__first { display: none; }
.player-card__name {
  display: block;
  max-width: 100%;
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 6px #020807;
}
.player-card__pct {
  display: inline-block;
  margin: 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  color: #101805;
  background: var(--gold, #b8ff05);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.player-card:focus-visible {
  outline: 2px solid var(--neon, #b8ff05);
  outline-offset: 4px;
}
/* Natija panelida maydondagi kichik portret o‘rniga katta surat. */
.result--with-photo { display: flex; align-items: center; gap: 15px; }
.result__portrait {
  width: 86px;
  height: 100px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 12px;
  border: 1.5px solid var(--neon, #b8ff05);
  background: #102018;
}
.result__summary { flex: 1; min-width: 0; }

@media (max-width: 700px) {
  .player-card {
    left: var(--x);
    top: var(--y);
    width: 22.5%;
    min-width: 0;
    max-width: 86px;
    min-height: 0;
    padding: 2px 0;
    gap: 2px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .player-card__photo {
    position: relative;
    inset: auto;
    width: 43px;
    height: 43px;
    opacity: 1;
    object-fit: cover;
    object-position: center 28%;
    border-radius: 50%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .player-card__pos, .player-card__first { display: none; }
  .player-card__name {
    font-size: clamp(10px, 3.05vw, 13px);
    text-align: center;
  }
  .player-card__pct {
    font-size: clamp(10px, 2.9vw, 12px);
    padding: 1px 6px;
    text-align: center;
  }
}
@media (max-width: 374px) {
  .player-card { width: 23%; max-width: 78px; }
  .player-card__photo { width: 36px; height: 36px; }
  .player-card__name { font-size: 10px; }
  .player-card__pct { font-size: 10px; }
}


/* SPORTZIVO · Portret markazlashtirish (2026-11-23)
   Maydondagi rasm maxsus kvadrat avatardan olinadi.
   Barcha pozitsiyalar uchun bir xil .player-card__photo ishlatiladi. */
.player-card__photo {
  object-fit: cover;
  object-position: center center;
}

/* International player names — avoid clipping accents in condensed display font. */
.player-card__name, .cand__name { overflow: visible; }
.cand__name { line-height: 1.18; }

/* SPORTZIVO o‘yinlar sahifasiga kirish */
.sport.sport--scores {color:#b7ff16; border:1px solid rgba(183,255,22,.45); background:rgba(20,32,12,.74);}
.sport.sport--scores:hover {background:rgba(183,255,22,.15);}
