/* ── Tasdiqlash oynasi ── */
#confirm { position: fixed; inset: 0; z-index: 95; background: rgba(5, 4, 12, .82); display: none; align-items: center; justify-content: center; padding: 20px; }
#confirm.on { display: flex; }
.cf-box { width: 100%; max-width: 340px; background: #17132e; border: 1px solid var(--line); border-radius: 22px; padding: 20px 18px 16px; text-align: center; animation: pop .22s ease; }
.cf-icon { font-size: 42px; margin-bottom: 6px; animation: ring 1s ease-in-out 2; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(18deg); } 40% { transform: rotate(-16deg); } 60% { transform: rotate(10deg); } 80% { transform: rotate(-6deg); } }
.cf-text { font-size: 15.5px; line-height: 1.5; }
.cf-av { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; background: #2b2450; border: 2px solid var(--gold); }
.cf-av svg { width: 100%; height: 100%; display: block; }
.cf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ── Do'stlar ── */
.my-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: linear-gradient(135deg, rgba(246, 196, 83, .15), rgba(246, 196, 83, .04)); border: 1px solid rgba(246, 196, 83, .35); border-radius: 16px; padding: 12px 14px; }
.id-code { font-size: 26px; font-weight: 900; letter-spacing: .18em; color: var(--gold); }
.fr-add { display: flex; gap: 8px; margin-top: 12px; }
.fr-add input { flex: 1; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.full-w { width: 100%; margin-top: 10px; }
.fr-list { display: grid; gap: 8px; }
.fr-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.fr-av { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #2b2450; flex: none; }
.fr-av svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.fr-av i { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--good); border: 2px solid #13102a; }
.fr-row:not(.on) .fr-av { opacity: .6; }
.fr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fr-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-info small { color: var(--muted); font-size: 12px; }
.bell-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: linear-gradient(135deg, #f6c453, #e88a1a); font-size: 20px; cursor: pointer; flex: none; box-shadow: 0 4px 14px rgba(246, 196, 83, .3); }
.bell-btn:active, .bell-btn.rung { animation: ring .8s ease; }
.bell-btn:disabled { opacity: .5; }
.small-btn { padding: 8px 12px; font-size: 13px; }
.fr-rm { border: none; background: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 6px; }
.seat.empty { cursor: pointer !important; opacity: .75 !important; }
.seat.empty .ring { position: relative; }
.seat.empty .bell { position: absolute; right: -4px; bottom: -2px; font-size: 14px; background: var(--gold); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; animation: ring 2.5s ease-in-out infinite; }
.seat.empty:active .ring { transform: scale(.94); }

/* ── O'yin oxiri: kartalar ── */
.reveal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 10px; perspective: 900px; }
.mini-card { position: relative; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, var(--c1), var(--c2)); border: 2px solid rgba(255, 255, 255, .12); text-align: center; padding-bottom: 8px;
  animation: cardIn .7s cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: center; }
@keyframes cardIn { from { transform: rotateY(90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.mini-card.won { border-color: var(--gold); box-shadow: 0 0 16px rgba(246, 196, 83, .45); }
.mini-card.died .mc-art { filter: grayscale(.7) brightness(.8); }
.mc-crown { position: absolute; top: 4px; right: 6px; font-size: 16px; z-index: 1; }
.mc-art { height: 92px; display: grid; place-items: end center; background: radial-gradient(circle at 50% 75%, rgba(255, 255, 255, .15), transparent 70%); }
.mc-art .portrait { height: 100%; width: auto; display: block; }
.mc-name { font-weight: 800; font-size: 13.5px; margin-top: 6px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-name small { font-weight: 500; color: var(--muted); }
.mc-role { font-size: 12.5px; color: var(--gold); font-weight: 700; }
.mc-prof { font-size: 11px; color: #cfc7e8; }

/* ── Mavzular ── */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.themes button { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 700; font-size: 12.5px; color: #fff; opacity: .6; transition: .2s; }
.themes button span { font-size: 24px; }
.themes button.th-city { background: linear-gradient(160deg, #2a1d4d, #0d0b1a); }
.themes button.th-west { background: linear-gradient(160deg, #8a4b1c, #3b1d0a); }
.themes button.th-village { background: linear-gradient(160deg, #2c5a2e, #0f2412); }
.themes button.on { opacity: 1; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.themes.ro button { cursor: default; }
/* Yovvoyi G'arb */
.th-west.ph-Menu #bg, .th-west.ph-Lobby #bg { background: radial-gradient(120% 70% at 50% 0%, #6b3a14 0%, #1a0d05 62%); }
.th-west.ph-Day #bg, .th-west.ph-Voting #bg, .th-west.ph-Defense #bg { background: radial-gradient(120% 70% at 50% 0%, #a8601f 0%, #2a1408 65%); }
.th-west.ph-Night #bg { background: radial-gradient(120% 70% at 50% 0%, #2a1a3a 0%, #0a0508 65%); }
/* Qishloq */
.th-village.ph-Lobby #bg { background: radial-gradient(120% 70% at 50% 0%, #24502a 0%, #071208 62%); }
.th-village.ph-Day #bg, .th-village.ph-Voting #bg, .th-village.ph-Defense #bg { background: radial-gradient(120% 70% at 50% 0%, #3f7a2e 0%, #10200b 65%); }
.th-village.ph-Night #bg { background: radial-gradient(120% 70% at 50% 0%, #0f2a2a 0%, #020808 65%); }
.ph-Defense #bg { background: radial-gradient(90% 60% at 50% 18%, #4a1a1a 0%, #120707 60%); }

/* ── Ayblash / himoya ── */
.nom-hint { font-size: 13.5px; background: rgba(232, 51, 95, .1); border: 1px solid rgba(232, 51, 95, .3); border-radius: 12px; padding: 8px 10px; }
.nom-hint small { color: var(--muted); }
.seat.accuse .ring { border-color: #ff8a3d; box-shadow: 0 0 0 4px rgba(255, 138, 61, .35), 0 0 20px rgba(255, 138, 61, .5); }
.ph-Day .seat.sel::after { content: '☝️'; }
.cands { margin-top: 10px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.cands b { background: rgba(255, 255, 255, .08); color: var(--text); border-radius: 10px; padding: 3px 9px; }
.cands b.now { background: rgba(246, 196, 83, .25); color: var(--gold); }
.earned { display: inline-block; margin: -4px 0 14px; background: rgba(246, 196, 83, .18); color: var(--gold); border-radius: 999px; padding: 5px 14px; font-weight: 800; animation: pop .5s .4s both; }

/* ── Reaksiyalar ── */
.float-react { position: fixed; z-index: 85; pointer-events: none; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; animation: floatUp 2.2s ease-out forwards; }
.float-react span { font-size: 40px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.float-react small { font-size: 10.5px; font-weight: 700; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 8px; padding: 1px 6px; margin-top: -4px; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.4); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 30% { transform: translate(-50%, -70%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(.9); } }
#react-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h) + 12px + var(--safe-b)); z-index: 30; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; background: rgba(20, 16, 40, .95); border: 1px solid var(--line); border-radius: 20px; padding: 6px 8px; max-width: calc(100% - 24px); animation: up .2s ease; }
#react-bar button { border: none; background: none; font-size: 24px; cursor: pointer; border-radius: 12px; padding: 3px 5px; transition: .15s; }
#react-bar button.on { background: rgba(246, 196, 83, .25); transform: scale(1.15); }
#react-bar .rb-hint { font-size: 11px; color: var(--muted); width: 100%; text-align: center; order: 10; }
#react-bar .rb-x { font-size: 14px; color: var(--muted); }
.reacting .seat .ring, .reacting .spot-av { cursor: crosshair; }
.reacting .seat:not(.empty) .ring { animation: wiggle 1.2s ease-in-out infinite; }
@keyframes wiggle { 50% { transform: rotate(3deg) scale(1.03); } }
.dk.on { background: rgba(246, 196, 83, .15); border-radius: 14px; }

/* ── Reyting ── */
.st-head { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(246, 196, 83, .16), rgba(246, 196, 83, .03)); border: 1px solid rgba(246, 196, 83, .3); border-radius: 18px; padding: 12px; }
.st-head > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.st-head small { color: var(--muted); font-size: 12px; }
.st-av { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #2b2450; border: 2px solid var(--gold); flex: none; }
.st-av svg { width: 100%; height: 100%; display: block; }
.st-pts { text-align: right; flex: none !important; }
.st-pts b { font-size: 28px; font-weight: 900; color: var(--gold); line-height: 1; }
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.st-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; }
.st-grid b { font-size: 19px; }
.st-grid small { font-size: 10.5px; color: var(--muted); }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ach { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; opacity: .4; filter: grayscale(1); }
.ach span { font-size: 26px; }
.ach b { font-size: 11.5px; }
.ach small { font-size: 9.5px; color: var(--muted); line-height: 1.25; }
.ach.has { opacity: 1; filter: none; border-color: rgba(246, 196, 83, .5); background: rgba(246, 196, 83, .08); }
.lb-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.lb-tabs button { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 8px; cursor: pointer; font-weight: 600; }
.lb-tabs button.on { background: rgba(246, 196, 83, .2); border-color: rgba(246, 196, 83, .5); }
.lb { display: grid; gap: 6px; }
.lb-row { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 7px 10px; }
.lb-row.me { border-color: var(--gold); background: rgba(246, 196, 83, .08); }
.lb-place { width: 26px; text-align: center; font-weight: 800; color: var(--muted); font-size: 15px; }
.lb-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #2b2450; flex: none; }
.lb-av svg { width: 100%; height: 100%; display: block; }
.lb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 700; }
.lb-name small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.lb-pts { color: var(--gold); font-size: 17px; }

/* ── Sahnalar (umumiy) ── */
#scene { position: fixed; inset: 0; z-index: 75; overflow: hidden; opacity: 0; transition: opacity .35s; cursor: pointer; }
#scene.on { opacity: 1; }
.sc-skip { position: absolute; bottom: calc(14px + var(--safe-b)); left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .35); z-index: 5; }

/* ── Quyosh chiqishi ── */
.sunrise .sr-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #0b0a24 0%, #1a1446 60%, #2b1d55 100%); animation: dawn 3.2s ease forwards; }
@keyframes dawn {
  0% { background: linear-gradient(180deg, #0b0a24 0%, #1a1446 60%, #2b1d55 100%); }
  45% { background: linear-gradient(180deg, #2a2366 0%, #b34a6b 55%, #ff9a52 100%); }
  100% { background: linear-gradient(180deg, #5ab0f0 0%, #a9dbff 55%, #ffe3a8 100%); }
}
.sr-sun { position: absolute; left: 50%; bottom: 18%; width: 120px; height: 120px; margin-left: -60px; border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, #fffbe0, #ffd34d 55%, #ff9f1a); box-shadow: 0 0 80px 30px rgba(255, 190, 60, .55);
  transform: translateY(140px) scale(.85); animation: sunUp 2.6s .3s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes sunUp { to { transform: translateY(-120px) scale(1); } }
.sr-rays { position: absolute; inset: -90px; border-radius: 50%; opacity: 0;
  background: repeating-conic-gradient(rgba(255, 220, 120, .35) 0 8deg, transparent 8deg 24deg); animation: rays 12s linear infinite, fadeRays 1.5s 1.4s forwards; }
@keyframes rays { to { transform: rotate(360deg); } }
@keyframes fadeRays { to { opacity: 1; } }
.sr-city { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; }
.sr-city svg { width: 100%; height: 100%; display: block; }
.sr-city .bld { fill: #0b0a14; animation: bldDay 3.2s ease forwards; }
@keyframes bldDay { to { fill: #3a2f4f; } }
.sr-city .win { fill: #ffd36e; opacity: .9; animation: winOff .4s forwards; }
@keyframes winOff { to { opacity: 0; } }
.sr-birds { position: absolute; top: 30%; left: -20%; font-size: 18px; color: #333; opacity: 0; animation: birds 4s 1.6s linear forwards; letter-spacing: 14px; }
@keyframes birds { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: .7; } 100% { opacity: .7; transform: translateX(160vw) translateY(-40px); } }
.sr-text { position: absolute; left: 16px; right: 16px; top: 12%; text-align: center; }
.sr-title { font-size: 40px; font-weight: 900; color: #fff; text-shadow: 0 3px 20px rgba(120, 40, 0, .6); opacity: 0; animation: letter .8s 1.2s forwards; }
.sr-sub { font-size: 16px; color: #fff; opacity: 0; animation: letter .6s 1.6s forwards; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.sr-line { margin: 10px auto 0; max-width: 420px; background: rgba(10, 8, 30, .72); color: #fff; border-radius: 12px; padding: 8px 12px; font-size: 14.5px; opacity: 0; animation: letter .5s forwards; }
.sr-line.death { background: rgba(120, 10, 30, .7); font-weight: 700; }

/* ── Eshik sahnasi ── */
.doorscene { background: radial-gradient(70% 55% at 50% 45%, #241a2e 0%, #0b0810 70%, #050307 100%); }
.ds-title { position: absolute; top: calc(30px + env(safe-area-inset-top, 0px)); left: 0; right: 0; text-align: center; color: #b9a8d6; font-style: italic; letter-spacing: .1em; }
.ds-room { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); }
.ds-frame { position: relative; width: 190px; height: 300px; border: 12px solid #3b2516; border-bottom: none; border-radius: 6px 6px 0 0; background: #050307; perspective: 700px;
  box-shadow: 0 0 0 3px #1c110a, 0 30px 60px #000; }
.ds-frame::after { content: ''; position: absolute; left: -40px; right: -40px; bottom: -14px; height: 14px; background: #1c140f; border-radius: 4px; }
.ds-light { position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 60%, rgba(255, 230, 170, .55), transparent 70%); opacity: 0; transition: opacity .6s; }
.ds-visitor { position: absolute; left: 0; right: 0; bottom: 0; height: 88%; display: grid; place-items: end center; opacity: 0; transform: translateY(16px) scale(.95); transition: .7s .25s; filter: brightness(.25); }
.ds-visitor .portrait { height: 100%; width: auto; }
.ds-door { position: absolute; inset: 0; background: linear-gradient(90deg, #6b4226, #8a5a33 40%, #6b4226); transform-origin: left center; transition: transform .9s cubic-bezier(.5, 0, .3, 1);
  display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; box-shadow: inset 0 0 0 2px #3b2516; }
.ds-panel { flex: 1; border: 3px solid #4f301b; border-radius: 4px; box-shadow: inset 0 0 14px rgba(0, 0, 0, .35); }
.ds-knob { position: absolute; right: 16px; top: 52%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #b8860b); box-shadow: 0 2px 4px #000a; }
.ds-frame.open .ds-door { transform: rotateY(-108deg); }
.ds-frame.open .ds-light { opacity: 1; }
.ds-frame.open .ds-visitor { opacity: 1; transform: none; filter: none; }
.ds-frame.red .ds-light { background: radial-gradient(60% 70% at 50% 60%, rgba(255, 60, 60, .55), transparent 70%); }
.ds-frame.green .ds-light { background: radial-gradient(60% 70% at 50% 60%, rgba(80, 255, 160, .5), transparent 70%); }
.ds-frame.blue .ds-light { background: radial-gradient(60% 70% at 50% 60%, rgba(110, 160, 255, .55), transparent 70%); }
.ds-frame.pink .ds-light { background: radial-gradient(60% 70% at 50% 60%, rgba(255, 110, 190, .55), transparent 70%); }
.ds-frame.shake { animation: shake .2s linear 6; }
@keyframes shake { 25% { transform: translateX(-4px) rotate(-.6deg); } 75% { transform: translateX(4px) rotate(.6deg); } }
.ds-knock { position: absolute; left: 50%; top: -54px; transform: translateX(-50%) scale(.6); white-space: nowrap; font-weight: 900; font-size: 26px; color: #ffcf7a; letter-spacing: .08em; opacity: 0; transition: .2s; text-shadow: 0 3px 12px #000; }
.ds-knock.on { opacity: 1; transform: translateX(-50%) scale(1); animation: knockText .4s ease infinite alternate; }
@keyframes knockText { to { transform: translateX(-50%) scale(1.12); } }
.ds-caption { position: absolute; left: 16px; right: 16px; bottom: calc(60px + var(--safe-b)); text-align: center; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(10px); transition: .4s; }
.ds-caption.on { opacity: 1; transform: none; }
.ds-caption b { font-size: 24px; }
.ds-caption span { color: #ddd; font-size: 15px; }
.ds-caption.red b { color: #ff6b6b; }
.ds-caption.green b { color: #69f0ae; }
.ds-caption.blue b { color: #8fb4ff; }
.ds-caption.pink b { color: #ff8fc8; }
.ds-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.ds-flash.on { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.ds-blood { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(150, 0, 20, .55) 75%, rgba(90, 0, 10, .9) 100%); }
.ds-blood.on { opacity: 1; animation: pulseRed 1.4s ease-in-out infinite; }
@keyframes pulseRed { 50% { opacity: .7; } }

/* ── Rasmli avatar (qatlamlar) va Telegram rasmi ── */
.pavatar { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; }
.pavatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.pavatar.crop img { object-fit: cover; object-position: center 18%; transform: scale(1.35); transform-origin: center 22%; }
.portrait.photo { object-fit: cover; }
.rc-art .pavatar { width: 82%; }
.rank-b { margin-left: 3px; font-size: 11px; }
.mute-ind { position: absolute; top: 46px; left: calc(50% - 40px); font-size: 12px; background: #2a1020; border: 1.5px solid #ff6b8b; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; z-index: 2; }
.mbtn.practice { background: linear-gradient(135deg, rgba(62, 207, 142, .18), rgba(62, 207, 142, .05)); border-color: rgba(62, 207, 142, .35); }

/* ── O'yinchi menyusi ── */
.pm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pm-av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #2f2758, #15112a); flex: none; border: 2px solid var(--line); }
.pm-av > * { width: 100%; height: 100%; display: block; }
.pm-head b { font-size: 18px; display: block; }
.pm-head small { color: var(--muted); }
.pm-actions { display: grid; gap: 8px; }
.pm-report .chip { opacity: .85; }

/* ── O'yin tarixi ── */
.hist { display: grid; gap: 10px; }
.hist-e { border-left: 3px solid var(--phase); background: var(--card); border-radius: 0 12px 12px 0; padding: 8px 10px; }
.hist-e.night { border-color: #7b8cff; }
.hist-e.vote { border-color: #f6a93b; }
.hist-t { font-weight: 800; margin-bottom: 4px; }
.hist-l { font-size: 13px; color: #d6cfee; line-height: 1.45; }

/* ── Unvon va vazifalar ── */
.rank-card { display: flex; align-items: center; gap: 12px; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.rank-e { font-size: 34px; }
.rank-i { flex: 1; min-width: 0; }
.rank-i small { color: var(--muted); font-size: 12px; }
.rank-bar { height: 7px; background: rgba(255, 255, 255, .1); border-radius: 4px; overflow: hidden; margin: 5px 0 3px; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e88a1a); border-radius: 4px; }
.quests { display: grid; gap: 6px; }
.quest { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.quest.done { border-color: rgba(62, 207, 142, .5); background: rgba(62, 207, 142, .08); }
.q-e { font-size: 22px; }
.q-i { flex: 1; min-width: 0; }
.q-i b { font-size: 13.5px; }
.quest small { color: var(--muted); font-weight: 700; }
.lb-tabs.three { grid-template-columns: 1fr 1fr 1fr; }

/* ── Mashq: murabbiy ── */
.coach { display: flex; gap: 10px; align-items: center; background: linear-gradient(135deg, rgba(62, 207, 142, .16), rgba(62, 207, 142, .05)); border: 1px solid rgba(62, 207, 142, .45); border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.45; animation: pop .3s; }
.coach-e { font-size: 26px; }
.coach div { flex: 1; }
.coach .btn { padding: 8px 10px; font-size: 12.5px; flex: none; }

/* ── Kiyintirish ── */
.wd-preview { display: flex; gap: 12px; align-items: flex-end; }
.wd-main { width: 130px; height: 150px; flex: none; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #3a3170, #15112a); border: 2px solid rgba(246, 196, 83, .5); display: grid; place-items: end center; }
.wd-main > * { width: 100%; height: 100%; display: block; }
.wd-roles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wd-roles > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wd-roles span { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #2b2450; display: block; }
.wd-roles span > * { width: 100%; height: 100%; display: block; }
.wd-roles small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); cursor: pointer; }
.sw.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 196, 83, .35); transform: scale(1.08); }
.hair-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hg { border: 2px solid var(--line); background: var(--card); border-radius: 14px; padding: 6px 4px 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hg svg { width: 58px; height: 58px; border-radius: 50%; background: #2b2450; }
.hg small { font-size: 11px; color: var(--muted); }
.hg.on { border-color: var(--gold); background: rgba(246, 196, 83, .1); }
.img-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ig { border: 2px solid var(--line); background: var(--card); border-radius: 12px; padding: 4px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.ig img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.ig small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ig.on { border-color: var(--gold); }
.wd-btns { display: flex; gap: 8px; margin-top: 16px; }
