.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.center-row { justify-content: center; margin: 20px 0 40px; }
.muted { color: var(--muted); font-size: 14px; }
.dark .muted { color: rgba(255,255,255,.75); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px; }
.wrap.narrow { max-width: 840px; }
h2 { margin: 6px 0 6px; font-size: 26px; letter-spacing: -.4px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 38px 0 16px; }
.section-title .ic { color: var(--yellow); }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.hero p { margin: 0; max-width: 560px; }
.card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.card-title .ic { color: var(--brand); }
.me-chip { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; padding: 0 6px; }

/* ---- Kirish ---- */
.auth-tabs { display: flex; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 800; padding: 10px; border-radius: 9px; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s; }
.auth-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.panel input.left { text-align: left; font-size: 17px; }

/* ---- Yuqori menyu ---- */
.navtabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.navtabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 15px; padding: 8px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s; }
.navtabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.navtabs button.on .ic { color: var(--brand); }
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; }
  .navtabs { order: 3; width: 100%; }
  .navtabs button { flex: 1; justify-content: center; }
}

/* ---- Kutubxona kartalari ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.qcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), box-shadow .25s; animation: cardIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.qcard .cover { position: relative; height: 104px; display: flex; align-items: flex-end; padding: 12px 14px; color: #fff; font-weight: 900; font-size: 14px; background: linear-gradient(135deg, var(--c1, #0b3c6b), var(--c2, #0a7c86)); overflow: hidden; }
.qcard .cover::before { content: ''; position: absolute; inset: -30px; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='white' stroke-width='3'%3E%3Crect x='27' y='27' width='42' height='42'/%3E%3Crect x='27' y='27' width='42' height='42' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E"); transition: transform 6s linear; }
.qcard:hover .cover::before { transform: translate(-24px, 12px); }
.qcard .cover .big-ic { position: absolute; right: -6px; top: -8px; width: 96px; height: 96px; opacity: .22; transform: rotate(-12deg); transition: transform .4s var(--ease-back); }
.qcard:hover .cover .big-ic { transform: rotate(0) scale(1.08); }
.qcard .cover .chip { position: relative; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 99px; }
.qcard .body { padding: 14px; flex: 1; }
.qcard h3 { margin: 0 0 4px; font-size: 18px; }
.qcard p { margin: 0; color: var(--muted); font-size: 14px; }
.qcard .actions { display: flex; gap: 6px; padding: 0 14px 14px; }
.qcard .actions .btn { flex: 1; padding: 10px; font-size: 14px; }
.qcard .actions .btn.green { flex: 3; }
.empty { grid-column: 1 / -1; text-align: center; padding: 44px 16px; color: var(--muted); border: 2px dashed var(--line); border-radius: 18px; animation: cardIn .5s var(--ease-out) both; }
.empty .ic { width: 44px; height: 44px; color: var(--brand); }
.empty h3 { color: var(--ink); margin: 8px 0 6px; }

/* ---- Muharrir ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); animation: cardIn .45s var(--ease-out) both; }
.card input, .card textarea, .card select { font: inherit; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; outline: none; background: var(--field); transition: border-color .2s, box-shadow .2s; }
.card input:focus, .card textarea:focus, .card select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,153,181,.16); }
.title-input { width: 100%; font-size: 24px !important; font-weight: 900 !important; margin-bottom: 10px; }
.desc-input { width: 100%; }
.qe-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.qe-head .num { font-weight: 900; background: var(--navy); color: #fff; border-radius: 9px; padding: 6px 11px; }
[data-theme="dark"] .qe-head .num { background: var(--brand); }
.qe-head .type { display: inline-flex; align-items: center; gap: 6px; }
.qe-head .spacer { flex: 1; }
.qe-head select { padding: 6px 8px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; border: 0; background: var(--surface-2); color: var(--ink); border-radius: 9px; width: 34px; height: 34px; cursor: pointer; transition: background-color .15s, color .15s, transform .12s; }
.icon-btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.icon-btn.danger:hover { background: var(--red); color: #fff; }
.icon-btn .ic { width: 17px; height: 17px; }
.qe-text { width: 100%; resize: vertical; min-height: 60px; font-size: 18px !important; font-weight: 800; text-align: center; }
.qe-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.qe-opt { display: flex; align-items: center; gap: 8px; border-radius: 12px; padding: 6px 8px 6px 10px; transition: transform .15s; }
.qe-opt:focus-within { transform: scale(1.01); }
.qe-opt .shape { width: 22px; height: 22px; }
.qe-opt input[type=text] { flex: 1; min-width: 0; border: 0 !important; border-radius: 9px; padding: 8px 10px; font-weight: 800; background: #fff !important; color: var(--navy) !important; }
.qe-opt .tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: transparent; color: transparent; cursor: pointer; flex: none; padding: 0; transition: background-color .2s; }
.qe-opt .tick .ic { width: 18px; height: 18px; stroke-width: 3; }
.qe-opt .tick:hover { color: rgba(255,255,255,.75); }
.qe-opt .tick.on { background: #fff; color: var(--green); animation: pop .35s var(--ease-back); }
.qe-opt.tf input[type=text] { pointer-events: none; }
@media (max-width: 600px) { .qe-opts { grid-template-columns: 1fr; } }

.img-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.img-row .qe-img { flex: 1; min-width: 180px; font-size: 14px !important; }
.img-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); animation: pop .4s var(--ease-back); }

/* ---- Oyna (dialog) ---- */
dialog { border: 0; border-radius: 20px; padding: 0; background: transparent; max-width: calc(100% - 32px); overflow: visible; }
dialog[open] .panel { animation: rise .35s var(--ease-back) both; }
dialog::backdrop { background: rgba(5,12,28,.6); backdrop-filter: blur(3px); }
dialog .panel { max-width: 460px; }
.field { display: block; text-align: left; font-weight: 800; margin: 8px 0 6px; font-size: 14px; color: var(--muted); }

/* ---- Uy vazifalari ---- */
.hw-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease-out), border-color .2s, box-shadow .2s; animation: cardIn .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.hw-item:hover { border-color: var(--brand); transform: translateX(4px); box-shadow: var(--shadow-md); }
.hw-item .hw-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand); flex: none; }
.hw-item h3 { margin: 0 0 2px; font-size: 17px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: #e3f6e8; color: #127a2a; white-space: nowrap; }
.status.closed { background: #fde5e8; color: #a3162d; }
[data-theme="dark"] .status { background: rgba(30,181,58,.16); color: #6be38a; }
[data-theme="dark"] .status.closed { background: rgba(226,27,60,.16); color: #ff8a9d; }
.share { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.share .qr { width: 140px; height: 140px; border: 1px solid var(--line); }
.share-link { font-weight: 900; font-size: 18px; word-break: break-all; margin: 4px 0 10px; color: var(--brand); }
.deadline-line { display: flex; align-items: center; gap: 6px; }
#hw-results { overflow-x: auto; margin-top: 10px; }
.qstat { display: grid; grid-template-columns: 28px 1fr 56px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qstat:last-child { border-bottom: 0; }
.qstat .track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.qstat .track div { height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width 1s var(--ease-out); }
.qstat .track div.mid { background: var(--yellow); }
.qstat .track div.low { background: var(--red); }
.qstat .pct { font-weight: 900; text-align: right; }

table.results { width: 100%; border-collapse: collapse; background: var(--surface); color: var(--ink); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
table.results th, table.results td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.results th { background: var(--surface-2); font-size: 14px; color: var(--muted); }
table.results tr:last-child td { border-bottom: 0; }
table.results td .ic { color: var(--green); }
table.results td .ic.wait { color: var(--yellow); }

/* ================= Katta ekran ================= */
.dark { color: #fff; }
.join-banner { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 22px 16px; background: rgba(0,0,0,.2); flex-wrap: wrap; }
.join-info { text-align: center; }
.join-step { font-size: 20px; opacity: .95; }
.join-step b { color: var(--gold); }
.pin { font-size: clamp(56px, 10vw, 110px); font-weight: 900; letter-spacing: 6px; line-height: 1.05; background: #fff; color: var(--navy); border-radius: 18px; padding: 4px 28px; margin-top: 8px; box-shadow: 0 8px 0 rgba(0,0,0,.18); animation: pinIn .7s var(--ease-back) both; }
@keyframes pinIn { from { transform: scale(.6) rotate(-4deg); opacity: 0; } }
.qr { width: 170px; height: 170px; background: #fff; border-radius: 14px; padding: 8px; animation: pop .6s var(--ease-back) .15s both; }
.lobby-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; gap: 12px; flex-wrap: wrap; }
.count { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 900; background: rgba(0,0,0,.25); padding: 8px 16px; border-radius: 12px; }
.lobby-title { font-size: 22px; font-weight: 900; text-align: center; flex: 1; }
.lobby-bar select { font: inherit; font-weight: 800; border: 0; border-radius: 10px; padding: 9px 10px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.lobby-bar select option { color: var(--navy); background: #fff; }
.players { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 10px 20px 40px; align-content: flex-start; flex: 1; }
.player { background: #fff; color: var(--navy); font-weight: 900; font-size: 20px; padding: 10px 18px; border-radius: 12px; cursor: pointer; box-shadow: var(--shadow); animation: playerIn .55s var(--ease-back) both; transition: transform .15s, background-color .15s; }
.player:hover { text-decoration: line-through; background: #ffe3e7; transform: rotate(-2deg) scale(1.04); }
.player.off { opacity: .45; }
@keyframes playerIn { 0% { transform: translateY(-30px) scale(.4); opacity: 0; } 70% { transform: translateY(4px) scale(1.05); } }
.waiting { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 24px; opacity: .85; margin-top: 40px; width: 100%; }
.waiting .ic { width: 54px; height: 54px; animation: bob 2.4s ease-in-out infinite; }

.q-counter { display: inline-block; background: rgba(0,0,0,.25); border-radius: 99px; padding: 8px 18px; font-weight: 900; font-size: 18px; }
.ready-text { font-size: clamp(30px, 5vw, 56px); max-width: 1000px; margin: 24px 0; animation: rise .6s var(--ease-out) both; }
.double { display: inline-flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 900; color: var(--gold); margin-bottom: 20px; animation: pulse .6s infinite alternate; }
.ready-bar { width: min(600px, 80vw); height: 14px; background: rgba(255,255,255,.2); border-radius: 99px; overflow: hidden; }
.ready-bar div { height: 100%; background: linear-gradient(90deg, #fff, var(--gold)); width: 0; border-radius: 99px; }
.ready-bar.go div { width: 100%; transition: width 3s linear; }

.q-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); color: var(--ink); box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.q-head > :last-child, .q-head .btn { justify-self: end; }
.q-head .btn.light { background: var(--btn); color: #fff; }
.q-head .q-counter { background: var(--surface-2); justify-self: start; }
.q-text { margin: 0; font-size: clamp(22px, 3.2vw, 40px); text-align: center; max-width: 1100px; }
.q-middle { flex: 1; display: grid; grid-template-columns: 150px 1fr 150px; align-items: center; padding: 16px 20px; gap: 16px; min-height: 0; }

/* Taymer halqasi: vaqt kamaygan sari halqa boʻshaydi */
@property --p { syntax: '<number>'; inherits: false; initial-value: 100; }
.timer-ring { --p: 100; --ring: var(--gold); position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; justify-self: center; background: conic-gradient(var(--ring) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); transition: --p .25s linear; }
.timer-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--stage-1); }
.timer-ring span { position: relative; font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums; }
.timer-ring.low { --ring: var(--red); animation: pulse .5s infinite alternate; }

.q-media { display: flex; justify-content: center; align-items: center; height: 100%; min-height: 160px; }
.q-media img { max-height: 38vh; max-width: 100%; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: pop .55s var(--ease-back) both; }
.ans-count { text-align: center; justify-self: center; }
.ans-count b { display: block; font-size: 52px; }
.ans-count b.bump { animation: pop .35s var(--ease-back); }
.ans-count span { font-size: 18px; opacity: .85; }

.chart { display: flex; gap: 18px; align-items: flex-end; height: 34vh; min-height: 160px; }
.bar { width: 90px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar .fill { width: 100%; border-radius: 10px 10px 0 0; min-height: 8px; transition: height .8s var(--ease-out); height: 0; }
.bar .lbl { width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; font-weight: 900; font-size: 22px; border-radius: 0 0 10px 10px; }
.bar .lbl .shape { width: 20px; height: 20px; }
.bar.dim { opacity: .35; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 20px 20px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); font-size: clamp(18px, 2.2vw, 28px); font-weight: 900; box-shadow: var(--shadow); min-height: 90px; transition: opacity .4s, transform .4s var(--ease-back); animation: tileIn .5s var(--ease-back) both; }
.tile:nth-child(2) { animation-delay: .08s; }
.tile:nth-child(3) { animation-delay: .16s; }
.tile:nth-child(4) { animation-delay: .24s; }
.tile .shape { width: 40px; height: 40px; }
.tile .txt { flex: 1; word-break: break-word; }
.tile .mark-ic .ic { width: 40px; height: 40px; stroke-width: 3; }
.tile.dim { opacity: .28; transform: scale(.97); }
.tile.win { animation: win 1s var(--ease-out) both; box-shadow: 0 0 0 5px #fff, var(--shadow); }
@keyframes win { 30% { transform: scale(1.04); } 60% { transform: scale(.99); } }

.board { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 840px; margin: 30px auto; padding: 0 16px; }
.brow { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); padding: 16px 22px; border-radius: 14px; font-size: 26px; font-weight: 900; box-shadow: var(--shadow); animation: slidein .55s var(--ease-back) both; }
.brow:first-child { background: var(--gold); color: var(--navy); }
.brow .rk { width: 48px; opacity: .6; }
.brow .nm { flex: 1; display: flex; align-items: center; gap: 10px; }
.brow .sc { font-variant-numeric: tabular-nums; }
.brow.team { color: #fff; }
.brow.team.a0 { background: var(--red); }
.brow.team.a1 { background: var(--blue); }
.brow.team.a2 { background: var(--yellow); }
.brow.team.a3 { background: var(--emerald); }
.team-members { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; opacity: .85; font-weight: 800; }
@keyframes slidein { from { transform: translateX(-60px); opacity: 0; } }

.podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; padding: 30px 16px 0; flex: 1; min-height: 0; }
.step { width: min(220px, 30vw); display: flex; flex-direction: column; align-items: center; animation: riseUp .9s var(--ease-back) both; }
.step .who { font-size: clamp(18px, 2.4vw, 28px); font-weight: 900; text-align: center; margin-bottom: 4px; word-break: break-word; }
.step .pts { opacity: .9; margin-bottom: 10px; text-align: center; }
.step .block { width: 100%; border-radius: 14px 14px 0 0; display: flex; justify-content: center; padding-top: 14px; box-shadow: inset 0 -10px 30px rgba(0,0,0,.12); }
.step .block .medal { animation: swing 2.4s ease-in-out infinite; transform-origin: 50% 0; }
.step.p1 .block { height: min(240px, 30vh); background: linear-gradient(180deg, #ffe680, #ffc400); }
.step.p2 .block { height: min(170px, 21vh); background: linear-gradient(180deg, #eef1f5, #c3cad6); }
.step.p3 .block { height: min(120px, 15vh); background: linear-gradient(180deg, #f5c79a, #d8925a); }
.step.p1 { animation-delay: 1.4s; }
.step.p2 { animation-delay: .7s; }
.step.p1 .who { color: var(--gold); text-shadow: 0 0 24px rgba(255,216,77,.6); }
@keyframes riseUp { from { transform: translateY(80px); opacity: 0; } }
@keyframes swing { 50% { transform: rotate(6deg); } }

@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .q-middle { grid-template-columns: 1fr 1fr; }
  .q-media { grid-column: 1 / -1; order: 3; }
  .q-head { grid-template-columns: 1fr auto; }
  .q-head .q-text { grid-column: 1 / -1; order: 3; }
  .bar { width: 60px; }
}

/* ================= Zakovat ================= */
.zk-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; letter-spacing: .3px; padding: 5px 12px; border-radius: 99px; background: linear-gradient(135deg, #5b3f9e, #16213a); color: #fff; vertical-align: middle; }
.zk-badge.light { margin-bottom: 10px; }
.q-head .zk-badge { justify-self: center; }
.zk-hint { text-align: center; opacity: .8; margin: 0 16px 8px; font-size: 15px; }
.zk-hint .ic { color: var(--gold); }

/* Muharrir */
.zk-text { min-height: 90px; font-size: 17px !important; text-align: left; font-weight: 700; }
.zk-fields { display: grid; gap: 8px; margin-top: 10px; }
.zk-field { display: grid; grid-template-columns: 22px 104px 1fr; align-items: center; gap: 8px; }
.zk-field > span { font-weight: 800; font-size: 14px; color: var(--muted); }
.zk-field .ic { color: var(--muted); }
.zk-field.ok .ic, .zk-field.ok > span { color: var(--green); }
.zk-field.no .ic, .zk-field.no > span { color: var(--red); }
.zk-field input, .zk-field textarea { width: 100%; min-width: 0; resize: vertical; }
.zk-field.ok input { font-weight: 900; border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.zk-note { margin: 8px 0 0; font-size: 13px; }
@media (max-width: 600px) { .zk-field { grid-template-columns: 22px 1fr; } .zk-field input, .zk-field textarea { grid-column: 1 / -1; } }

/* Oʻyinni ochish oynasi */
#f-zk select { text-align: left; font-size: 17px; }
.zk-opt { display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.zk-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.zk-opt input { width: 20px !important; height: 20px; margin: 0 !important; accent-color: var(--brand); flex: none; }
.zk-opt span { display: flex; flex-direction: column; }
.zk-opt small { color: var(--muted); font-weight: 700; }

/* Kutish zali: jamoalar ustunlari */
.zk-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 8px 20px 40px; align-items: start; }
.zk-team { background: rgba(0,0,0,.2); border-radius: 16px; overflow: hidden; animation: cardIn .45s var(--ease-out) both; }
.zk-team-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 20px; font-weight: 900; }
.zk-team-head .n { font-size: 16px; display: inline-flex; gap: 6px; align-items: center; opacity: .9; }
.zk-members { display: flex; flex-direction: column; gap: 6px; padding: 10px; min-height: 56px; }
.zk-empty { opacity: .6; font-size: 15px; text-align: center; padding: 8px; }
.zk-member { display: flex; align-items: center; gap: 4px; background: #fff; color: var(--navy); border-radius: 10px; padding: 6px 6px 6px 12px; font-weight: 900; font-size: 17px; animation: playerIn .55s var(--ease-back) both; }
.zk-member .nm { flex: 1; display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-member.cap .nm .ic { color: #e0a800; fill: #ffd84d; }
.zk-member.off { opacity: .5; }
.zk-member button { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .15s, background-color .15s, color .15s; }
.zk-member:hover button, .zk-member button:focus-visible { opacity: 1; }
.zk-member button[data-act="cap"]:hover { background: #fff3c4; color: #b07d00; }
.zk-member button[data-act="kick"]:hover { background: var(--red); color: #fff; }
@media (hover: none) { .zk-member button { opacity: 1; } }
.zk-unassigned { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; padding: 0 20px 8px; }
.zk-unassigned .lbl { display: inline-flex; gap: 6px; align-items: center; opacity: .85; }
.zk-unassigned .zk-member { font-size: 15px; }

/* Savol */
.zk-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 20px; }
.zk-qtext { font-size: clamp(22px, 2.8vw, 38px); font-weight: 800; line-height: 1.35; max-width: 1100px; text-align: center; animation: rise .6s var(--ease-out) both; white-space: pre-line; }
.zk-img { max-height: 34vh; max-width: 100%; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: pop .55s var(--ease-back) both; }
.zk-timer-row { display: flex; align-items: center; gap: 22px; }
.zk-timer-row .timer-ring { width: 130px; height: 130px; }
.timer-ring.extra { --ring: var(--red); }
.timer-ring.extra span { font-size: 38px; color: #ff8a9d; }
.zk-status { font-size: 22px; font-weight: 800; max-width: 420px; }
.zk-sent { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; min-height: 44px; }
.zk-chip { display: inline-flex; align-items: center; gap: 6px; color: #fff; padding: 6px 14px; border-radius: 99px; font-weight: 900; font-size: 16px; margin: 2px; transition: opacity .3s, filter .3s, transform .3s var(--ease-back); }
.zk-chip.big { font-size: 22px; padding: 10px 20px; animation: pop .5s var(--ease-back) both; }
.zk-sent .zk-chip { font-size: 19px; padding: 8px 16px; }
.zk-chip.idle { opacity: .35; filter: grayscale(.6); }
.zk-chip.sent { transform: scale(1.06); box-shadow: 0 0 0 3px #fff; }

/* Baholash */
.zk-key { background: rgba(0,0,0,.25); border-radius: 16px; padding: 16px 20px; font-size: 22px; margin-bottom: 16px; }
.zk-key b { color: var(--gold); font-size: 28px; }
.zk-key-sub { font-size: 16px; opacity: .8; margin-top: 4px; }
.zk-group { display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; border-left: 8px solid var(--line); animation: slidein .45s var(--ease-back) both; transition: border-color .2s; }
.zk-group.ok { border-left-color: var(--green); }
.zk-group.no { border-left-color: var(--red); }
.zk-group.pending { border-left-color: var(--gold); box-shadow: 0 0 0 3px var(--gold); }
.zk-ans { font-size: 24px; font-weight: 900; word-break: break-word; }
.zk-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.zk-by .zk-chip { font-size: 13px; padding: 3px 10px; }
.zk-how { font-size: 13px; color: var(--muted); margin-left: 6px; }
.zk-v { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; border: 3px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; flex: none; transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.zk-v .ic { width: 26px; height: 26px; stroke-width: 3; }
.zk-v:hover { transform: translateY(-1px); }
.zk-v.ok:hover, .zk-v.ok.on { border-color: var(--green); color: var(--green); }
.zk-v.no:hover, .zk-v.no.on { border-color: var(--red); color: var(--red); }
.zk-v.ok.on { background: var(--green); color: #fff; }
.zk-v.no.on { background: var(--red); color: #fff; }
.zk-missing { opacity: .85; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.zk-missing .zk-chip { font-size: 13px; padding: 3px 10px; opacity: .7; }

/* Toʻgʻri javob */
.zk-reveal { gap: 12px; }
.zk-answer { font-size: clamp(44px, 8vw, 96px); font-weight: 900; color: var(--gold); letter-spacing: 2px; text-shadow: 0 6px 0 rgba(0,0,0,.2); animation: pinIn .7s var(--ease-back) both; word-break: break-word; }
.zk-accept { font-size: 20px; opacity: .85; }
.zk-comment { display: flex; gap: 12px; align-items: flex-start; text-align: left; max-width: 900px; background: rgba(0,0,0,.22); border-radius: 16px; padding: 16px 20px; font-size: clamp(17px, 1.8vw, 22px); line-height: 1.45; animation: rise .6s var(--ease-out) .2s both; }
.zk-comment .ic { color: var(--gold); margin-top: 4px; }
.zk-source { opacity: .7; font-size: 15px; }
.zk-found { margin-top: 10px; }
.zk-found-title { font-size: 22px; font-weight: 900; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; justify-content: center; color: #8ff0a4; }
.zk-found-title.none { color: #ff8a9d; }

/* Jadval */
.zk-table-wrap { overflow-x: auto; }
.zk-grid { border-collapse: separate; border-spacing: 0; margin: 0 auto; background: var(--surface); color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md); font-variant-numeric: tabular-nums; animation: rise .5s var(--ease-out) both; }
.zk-grid th, .zk-grid td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: 22px; }
.zk-grid th { background: var(--surface-2); color: var(--muted); font-size: 15px; }
.zk-grid .tn { text-align: left; font-weight: 900; white-space: nowrap; }
.zk-grid .rk { font-weight: 900; color: var(--muted); }
.zk-grid .dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.zk-grid td.c { font-weight: 900; min-width: 40px; }
.zk-grid td.ok { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.zk-grid td.no { color: var(--muted); opacity: .6; }
.zk-grid td.edit { cursor: pointer; transition: background-color .15s; }
.zk-grid td.edit:hover { background: color-mix(in srgb, var(--gold) 35%, transparent); opacity: 1; }
.zk-grid td.sum { font-weight: 900; font-size: 26px; color: var(--brand); }
.zk-grid tr.foot td { background: var(--surface-2); color: var(--muted); font-size: 15px; border-bottom: 0; }
#s-zk-table .zk-table-wrap { padding-top: 30px; }
#zk-end-table { padding-bottom: 40px; }

/* ================= Oʻz oʻyini ================= */
/* Muharrir */
.bd-ed .bd-ed-name { flex: 1; min-width: 180px; font-size: 18px !important; font-weight: 900 !important; }
.bd-ed-cells { display: flex; flex-direction: column; gap: 8px; }
.bd-ed-cell { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: var(--surface-2); }
.bd-ed-cell.cat { border-color: #8b5cf6; }
.bd-ed-cell.luck { border-color: #d89e00; }
.bd-ed-val { display: grid; place-items: center; height: 100%; min-height: 56px; border-radius: 10px; background: linear-gradient(135deg, #b45309, #7c2d12); color: #ffd84d; font-weight: 900; font-size: 20px; }
.bd-ed-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bd-ed-body textarea { width: 100%; resize: vertical; font-weight: 800; }
.bd-ed-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bd-ed-row input { flex: 1; min-width: 140px; }
.bd-ed-row input[data-cf="answer"] { font-weight: 900; border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.bd-ed-row.small select { padding: 6px 8px; font-size: 14px; }
.bd-ed-row .spacer { flex: 1; }
.bd-ed-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.bd-ed-luck { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 10px; background: color-mix(in srgb, #ffd84d 22%, transparent); font-weight: 800; }
.bd-ed-luck .ic { color: #b07d00; }
@media (max-width: 600px) { .bd-ed-cell { grid-template-columns: 1fr; } .bd-ed-val { min-height: 34px; } }

/* Oʻyinni ochish oynasi */
#f-bd select { text-align: left; font-size: 16px; }
.bd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-weight: 700; font-size: 15px; margin-bottom: 8px; cursor: pointer; }
.bd-check input { width: 20px !important; height: 20px; margin: 2px 0 0 !important; accent-color: var(--brand); flex: none; }
.bd-check:has(input:disabled) { opacity: .5; }
.remote-panel { text-align: center; }
.remote-panel .qr { width: 220px; height: 220px; margin: 6px auto 4px; display: block; }
.remote-panel .share-link { font-size: 14px; }

/* Doska */
.bd-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(0,0,0,.2); flex-wrap: wrap; }
.bd-scores { display: flex; gap: 10px; flex-wrap: wrap; }
.bd-score { display: flex; flex-direction: column; align-items: flex-start; min-width: 130px; padding: 8px 16px; border-radius: 14px; color: #fff; box-shadow: var(--shadow); opacity: .78; transition: opacity .3s, transform .3s var(--ease-back), box-shadow .3s; }
.bd-score .nm { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 900; }
.bd-score .sc { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bd-score .sc.neg { color: #ffd0d7; }
.bd-score.turn { opacity: 1; transform: translateY(-2px) scale(1.06); box-shadow: 0 0 0 4px #fff, var(--shadow); }
.bd-turn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px 0; font-size: 22px; font-weight: 900; }
.bd-turn span { opacity: .85; }
.bd-grid { flex: 1; display: grid; gap: 10px; padding: 14px 20px 22px; align-content: stretch; grid-auto-rows: minmax(64px, 1fr); }
.bd-topic { display: flex; align-items: center; padding: 8px 16px; border-radius: 14px; background: rgba(0,0,0,.28); font-size: clamp(16px, 1.7vw, 24px); font-weight: 900; line-height: 1.15; animation: slidein .5s var(--ease-back) both; }
.bd-cell { border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: clamp(24px, 3vw, 44px); color: #ffd84d; text-shadow: 0 3px 0 rgba(0,0,0,.25); cursor: pointer;
  background: linear-gradient(160deg, #1d4ed8, #1e3a8a); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15), var(--shadow);
  transition: transform .15s var(--ease-out), filter .15s, opacity .3s; animation: tileIn .45s var(--ease-back) both; }
.bd-cell:hover:not([disabled]) { transform: translateY(-3px) scale(1.04); filter: brightness(1.15); }
.bd-cell.played { background: rgba(0,0,0,.18); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); cursor: default; }
.bd-cell.empty { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.05); cursor: default; }

/* Savol */
.bd-answering { display: inline-flex; align-items: center; gap: 8px; justify-self: center; font-weight: 900; font-size: 18px; color: var(--ink); }
.bd-answering .zk-chip.big, .bd-turn .zk-chip.big { font-size: 20px; padding: 8px 18px; animation: pop .45s var(--ease-back) both; }
.bd-special { display: flex; align-items: center; gap: 18px; padding: 18px 26px; border-radius: 20px; font-size: 22px; text-align: left; animation: pinIn .6s var(--ease-back) both; }
.bd-special .ic { width: 64px; height: 64px; flex: none; }
.bd-special b { display: block; font-size: 40px; }
.bd-special span { display: block; opacity: .95; }
.bd-special.cat { background: linear-gradient(135deg, #6d28d9, #4c1d95); }
.bd-special.luck { background: linear-gradient(135deg, #d89e00, #b45309); }
.bd-special span b { display: inline; font-size: inherit; }
.bd-special.small { padding: 8px 16px; font-size: 16px; }
.bd-special.small .ic { width: 28px; height: 28px; }
.bd-judge { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bd-judge .bd-ok { background: var(--green); font-size: 22px; padding: 16px 26px; }
.bd-judge .bd-no { background: var(--red); font-size: 22px; padding: 16px 26px; }
.bd-catpick { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.bd-catbtn { font-size: 24px; padding: 18px 30px; }
.bd-results { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bd-res { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.25); border-radius: 99px; padding: 4px 14px 4px 4px; font-size: 18px; animation: pop .4s var(--ease-back) both; }
.bd-res.plus b { color: #8ff0a4; }
.bd-res.minus b { color: #ff8a9d; }
.bd-results.big .bd-res { font-size: 28px; padding: 6px 20px 6px 6px; }
.bd-results.big .zk-chip { font-size: 22px; padding: 8px 18px; }
.bd-peek { font-size: 20px; font-weight: 900; background: #fff; color: var(--navy); padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); }
.zk-grid.bd-log { margin-top: 20px; }
.zk-grid.bd-log td { font-size: 17px; }
.zk-grid.bd-log .bd-none { color: var(--muted); }
.zk-grid.bd-log .bd-res { background: transparent; font-size: 15px; padding: 0 8px 0 0; }
.zk-grid.bd-log .zk-chip { font-size: 13px; padding: 3px 10px; }
.zk-grid.bd-log .bd-res.plus b { color: var(--green); }
.zk-grid.bd-log .bd-res.minus b { color: var(--red); }
@media (max-width: 760px) { .bd-grid { gap: 6px; padding: 10px; } .bd-cell { font-size: 20px; } .bd-score { min-width: 100px; } }
