/* «Chiz va top»: sokin «qog‘oz va siyoh» uslubi — kanvas iliq qog‘oz (ikkala mavzuda ham bir xil ranglar: hamma bir xil rasmni ko‘radi), atrofi kit ranglari.
   Joylashuv JS da tanlanadi (body.lay-p — telefon portret, lay-l — telefon landshaft, lay-d — keng ekran); kanvas o‘lchami bo‘sh joyga moslashadi (app.js fit). */
:root, :root[data-theme="dark"] {
  --paper: #ece6da; --paper-hi: #f3eee4; --paper-edge: rgba(0,0,0,.35); --paper-ink: #23262d; --grain: .05;
  --ok: #3ddc84; --ok-bg: rgba(61,220,132,.12); --close: #f2b84b; --close-bg: rgba(242,184,75,.12); --sys: #8b93a5;
  --av1: #e9a28a; --av2: #9ec7a0; --av3: #93b9e6; --av4: #e6c562; --av5: #c3a6e6; --av6: #ec9fb8; --av7: #8fd0c8; --av8: #d9b38c;
  --tile: #1b1f2a; --tile-hi: #252a38;
}
:root[data-theme="light"] {
  --paper: #fbf8f2; --paper-hi: #ffffff; --paper-edge: rgba(30,25,15,.16); --paper-ink: #23262d; --grain: .04;
  --ok: #1d9e55; --ok-bg: rgba(31,184,96,.1); --close: #b07a0e; --close-bg: rgba(201,138,18,.1); --sys: #6b7385;
  --tile: #ffffff; --tile-hi: #eceef3;
}
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { display: flex; flex-direction: column; height: 100vh; height: var(--vvh, 100dvh); }
#app { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scr { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scr[hidden] { display: none !important; }
.intro { max-width: 640px; margin: 0 auto; padding: 24px 18px; color: var(--mut); }
.intro h1 { color: var(--fg); margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.intro a { color: var(--acc-text); }
button { -webkit-user-select: none; user-select: none; }
.ic svg, .tb svg { display: block; }

/* ---------- menyu */
.mwrap { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mpage { max-width: 560px; margin: 0 auto; padding: 14px max(14px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.mleft, .mright { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) and (min-height: 620px) { .mwrap { display: grid; align-content: center; } }
@media (min-width: 900px) { .mpage { max-width: 1060px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; align-items: start; padding-top: 30px; } .mright { padding-top: 4px; } .tagline { font-size: 16px; } }
.hero { position: relative; display: grid; grid-template-columns: 1fr; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--sur); }
.hero .sheet { position: relative; margin: 12px 12px 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--paper-edge); aspect-ratio: 16 / 9; overflow: hidden; }
.hero .sheet::before, #paper::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero canvas { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56%; aspect-ratio: 1; height: auto; }
.hero .cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px 12px; min-height: 44px; }
.hero .who { display: inline-flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13.5px; font-weight: 600; min-width: 0; }
.hero .who span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .ans { font-weight: 750; font-size: 15px; letter-spacing: .02em; color: var(--fg); white-space: nowrap; transition: opacity .3s; }
.hero .ans.hid { opacity: 0; }
.tagline { margin: 2px 2px 0; font-size: 15px; color: var(--mut); line-height: 1.45; }
.tagline b { color: var(--fg); font-weight: 700; }
.mmenu > button .end { display: inline-flex; align-items: center; gap: 6px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px 0; color: var(--mut); font-size: 14px; flex-wrap: wrap; }
.mrow .me { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mrow .me b { color: var(--fg); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--acc-text); font-weight: 650; font-size: 14px; cursor: pointer; border-radius: 10px; }
.linkbtn:hover { background: var(--sur); }
.linkbtn svg { width: 17px; height: 17px; }
.mfoot { text-align: center; color: var(--mut); font-size: 12.5px; padding-top: 8px; }
.mfoot a { color: var(--mut); margin: 0 6px; }
.av { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #1c1d22; font-weight: 800; font-size: 12.5px; letter-spacing: -.02em; background: var(--av1); }
.av.bot { background: var(--sur3); color: var(--fg); }
.av.bot svg { width: 17px; height: 17px; }
.tag-bot { display: inline-block; padding: 1px 5px; border-radius: 5px; background: var(--sur3); color: var(--mut); font-size: 10px; font-weight: 800; letter-spacing: .06em; vertical-align: 1px; }

/* ---------- lobbi */
.lwrap { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.lpage { max-width: 560px; margin: 0 auto; padding: 14px max(14px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 12px; }
.lcol { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 900px) { .lpage { max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 16px; padding-top: 22px; } }
.codecard { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--sur); border: 1px solid var(--line); }
.codecard .lbl { color: var(--mut); font-size: 13px; font-weight: 650; }
.codecard .code { font-size: 38px; font-weight: 800; letter-spacing: .22em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.codecard .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.codecard .acts .gu-btn { flex: 1 1 140px; }
.status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--sur); border: 1px solid var(--line); }
.status b { display: block; font-size: 16px; }
.status small { display: block; color: var(--mut); font-size: 13.5px; }
.pulse { flex: none; position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sur2); color: var(--acc-text); }
.pulse svg { width: 20px; height: 20px; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; animation: ring 1.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.8); opacity: .5; } 100% { transform: scale(1.35); opacity: 0; } }
.count { margin-left: auto; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--acc-text); }
.plist-l { display: grid; gap: 6px; }
.prow { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 12px; border-radius: 12px; background: var(--sur); border: 1px solid var(--line); }
.prow .nm { flex: 1; min-width: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .nm small { color: var(--mut); font-weight: 600; margin-left: 6px; }
.prow .hb { color: var(--amber); }
.prow .hb svg { width: 17px; height: 17px; display: block; }
.empty-slot { min-height: 46px; border-radius: 12px; border: 1px dashed var(--line2); display: grid; place-items: center; color: var(--mut); font-size: 13px; }
.settings { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--sur); border: 1px solid var(--line); }
.settings .srow { display: grid; gap: 6px; }
.settings .srow > span { font-size: 12.5px; color: var(--mut); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.settings .gu-seg { width: 100%; }
.settings .gu-seg button { flex: 1; min-height: 40px; }
.settings .ro { color: var(--mut); font-size: 13.5px; }
.offer { display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--sur); border: 1px solid var(--line2); animation: gu-rise .25s ease; }
.offer p { margin: 0; color: var(--mut); font-size: 14px; }
.offer b { color: var(--fg); }
.tips { display: grid; gap: 10px; padding: 4px 2px; }
.tip { display: flex; gap: 12px; align-items: flex-start; color: var(--mut); font-size: 14px; line-height: 1.4; }
.tip i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--sur2); color: var(--fg); font-style: normal; font-weight: 800; font-size: 13px; }

/* ---------- o‘yin */
#game { position: relative; }
.gwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); max-width: 1320px; width: 100%; margin: 0 auto; }
#hud { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; min-height: 44px; }
#rnd { display: inline-block; line-height: 32px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--sur2); color: var(--mut); font-size: 12.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
#rnd b { color: var(--fg); }
#pat { min-width: 0; text-align: center; font-weight: 800; font-size: 22px; letter-spacing: .14em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
#pat small { display: block; font-size: .52em; font-weight: 700; letter-spacing: .06em; color: var(--mut); text-transform: uppercase; }
#pat .w { color: var(--acc-text); letter-spacing: .04em; }
#pat.hint-pop { animation: pop .35s ease; }
@keyframes pop { 40% { transform: scale(1.06); } }
#clock { position: relative; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; }
#clock svg { position: absolute; inset: 0; width: 44px; height: 44px; transform: rotate(-90deg); }
#clock circle { fill: none; stroke-width: 3.5; }
#clock .bg { stroke: var(--sur3); }
#clock .fg { stroke: var(--acc); stroke-linecap: round; transition: stroke .3s; }
#clock.low .fg { stroke: var(--red); }
#clock.low b { color: var(--red); }
#plist { flex: none; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-height: 44px; padding: 1px; }
#plist::-webkit-scrollbar { display: none; }
.pchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--sur); border: 1px solid var(--line); color: var(--fg); cursor: pointer; font-size: 13px; font-weight: 650; max-width: 196px; transition: background .2s, border-color .2s; }
.pchip .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pchip .sc { color: var(--mut); font-variant-numeric: tabular-nums; font-weight: 700; }
.pchip.me { border-color: var(--line2); }
.pchip.dr { border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 10%, var(--sur)); }
.pchip.ok { border-color: color-mix(in srgb, var(--ok) 60%, transparent); background: var(--ok-bg); }
.pchip.off { opacity: .5; }
.pchip.muted .nm { text-decoration: line-through; color: var(--mut); }
.pchip .st { display: inline-grid; place-items: center; width: 18px; height: 18px; color: var(--acc-text); }
.pchip.ok .st { color: var(--ok); }
.pchip .st svg { width: 15px; height: 15px; }
#stage { flex: none; align-self: center; position: relative; }
#paper { position: absolute; inset: 0; border-radius: 14px; background: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 10px 28px var(--shadow), inset 0 0 0 1px var(--paper-edge); overflow: hidden; touch-action: none; }
#cv { position: absolute; left: 0; top: 0; display: block; touch-action: none; }
#cv.draw { cursor: crosshair; }
#ov { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: gu-fade .2s ease; color: var(--paper-ink); }
#ov[hidden] { display: none; }
.ovc { width: min(340px, 100%); display: grid; gap: 10px; text-align: center; }
.ovc h3 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5d6372; }
.ovc .big { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; word-break: break-word; }
.ovc p { margin: 0; color: #5d6372; font-size: 14px; }
.ovc .wbtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 13px; border: 1px solid rgba(0,0,0,.12); background: #fff; color: #1d2026; font-size: 17px; font-weight: 750; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: transform .08s, box-shadow .15s; }
.ovc .wbtn:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.ovc .wbtn:active { transform: scale(.98); }
.ovc .wbtn small { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #7a8090; }
.ovc .wbtn small i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: 2px; background: #c5c9d2; vertical-align: 1px; }
.ovc .wbtn small i.on { background: #2f3542; }
.gains { display: grid; gap: 4px; margin-top: 4px; text-align: left; }
.gains div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #2b2f38; }
.gains div .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gains div b { font-variant-numeric: tabular-nums; color: #178a4c; }
.gains div b.z { color: #9298a6; }
.gains .av { width: 24px; height: 24px; font-size: 11px; }
.spin { width: 26px; height: 26px; margin: 0 auto; border-radius: 50%; border: 3px solid rgba(0,0,0,.12); border-top-color: #2f3542; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden-note { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: #5d6372; font-size: 14px; font-weight: 600; }
/* chizish asboblari */
#tools { flex: none; display: grid; gap: 8px; min-width: 0; }
#tools[hidden] { display: none; }
.trow { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.tb { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--sur); color: var(--fg); cursor: pointer; flex: none; }
.tb svg { width: 21px; height: 21px; }
.tb[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: transparent; }
.tb:disabled { opacity: .4; cursor: default; }
.tb .sz { display: block; border-radius: 50%; background: currentColor; }
.tsep { width: 1px; height: 26px; background: var(--line2); margin: 0 3px; flex: none; }
.pal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.sw { position: relative; height: 38px; border-radius: 10px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.sw::after { content: ""; position: absolute; inset: -3px 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
/* taxminlar lentasi */
#feed { flex: 1 1 60px; min-height: 40px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 3px; padding: 8px 6px 6px; font-size: 14.5px; line-height: 1.35; scrollbar-width: thin; border-radius: 14px; background: var(--sur); border: 1px solid var(--line); }
#feed .sp { flex: 1 0 0; }
.fl { padding: 2px 8px; border-radius: 9px; word-break: break-word; animation: fin .18s ease-out; }
@keyframes fin { from { opacity: 0; transform: translateY(4px); } }
.fl b { font-weight: 700; margin-right: 6px; }
.fl svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
.fl.sys { color: var(--sys); font-size: 13px; }
.fl.ok { color: var(--ok); background: var(--ok-bg); font-weight: 650; }
.fl.close { color: var(--close); background: var(--close-bg); font-weight: 650; }
.fl.k1 { color: var(--ok); }
.fl.k1 b { color: var(--ok); }
.fl.mine b { color: var(--acc-text); }
.fl.note { color: var(--mut); font-size: 13px; font-style: italic; }
#inbar { flex: none; display: flex; gap: 8px; align-items: center; }
#inbar[hidden] { display: none; }
#guess { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line2); background: var(--sur); color: var(--fg); font-size: 16px; outline: none; -webkit-user-select: text; user-select: text; }
#guess:focus { border-color: var(--acc); }
#guess:disabled { opacity: .6; }
#send { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
#send svg { width: 21px; height: 21px; }
#send:disabled { opacity: .45; }
/* o‘yin oxiri */
#over { position: absolute; inset: calc(52px + env(safe-area-inset-top)) 0 0 0; z-index: 15; display: flex; flex-direction: column; background: var(--bg); overflow-y: auto; animation: gu-fade .25s ease; }
#over[hidden] { display: none; }
.opage { width: 100%; max-width: 560px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; }
.opage h2 { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; text-align: center; }
.opage .sub { margin: -8px 0 0; color: var(--mut); text-align: center; font-size: 14px; }
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; gap: 8px; padding: 8px 0 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pod .nm { max-width: 100%; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod .pts { color: var(--mut); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pod .blk { width: 100%; border-radius: 12px 12px 4px 4px; background: var(--sur2); display: grid; place-items: start center; padding-top: 10px; font-size: 22px; font-weight: 800; color: var(--mut); animation: grow .6s cubic-bezier(.2,.8,.3,1) both; transform-origin: bottom; }
.pod.p1 .blk { height: 118px; background: color-mix(in srgb, var(--amber) 26%, var(--sur2)); color: var(--fg); animation-delay: .15s; }
.pod.p2 .blk { height: 86px; animation-delay: .05s; }
.pod.p3 .blk { height: 64px; animation-delay: .25s; }
.pod .av { width: 44px; height: 44px; font-size: 16px; }
.pod.p1 .av { width: 52px; height: 52px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px color-mix(in srgb, var(--amber) 70%, transparent); }
.pod.me .nm { color: var(--acc-text); }
.pod.empty { visibility: hidden; }
@keyframes grow { from { transform: scaleY(.2); opacity: 0; } }
.rank { display: grid; gap: 6px; }
.rank .prow .i { width: 22px; color: var(--mut); font-weight: 700; font-variant-numeric: tabular-nums; }
.rank .prow .v { font-weight: 750; font-variant-numeric: tabular-nums; }
.rank .prow.me { border-color: var(--line2); background: var(--glow); }
.solo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.solo-stats div { background: var(--sur); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.solo-stats small { display: block; color: var(--mut); font-size: 12px; font-weight: 650; }
.solo-stats b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.oacts { display: grid; gap: 8px; }
.oacts .gu-btn { min-height: 50px; }
.auto { text-align: center; color: var(--mut); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.adslot:empty { display: none; }

/* ---------- landshaft telefon: chapda kanvas, o‘ngda hammasi */
body.lay-l .gwrap, body.lay-d .gwrap { display: grid; align-content: start; }
body.lay-l .gwrap { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; grid-template-areas: "stage hud" "stage plist" "stage tools" "stage feed" "stage inbar"; column-gap: 12px; row-gap: 6px; }
body.lay-l #stage { grid-area: stage; align-self: start; }
body.lay-l #hud { grid-area: hud; min-height: 40px; }
body.lay-l #pat { font-size: 19px; }
body.lay-l #plist { grid-area: plist; }
body.lay-l .pchip { height: 36px; }
body.lay-l .pchip .av { width: 26px; height: 26px; font-size: 11px; }
body.lay-l #tools { grid-area: tools; }
body.lay-l #feed { grid-area: feed; }
body.lay-l #inbar { grid-area: inbar; }
body.lay-l .pal { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
body.lay-l .sw { height: 30px; }
body.lay-l .trow { justify-content: flex-start; flex-wrap: wrap; }
body.lay-l .tb { width: 40px; height: 40px; }
body.lay-l .tb::after { content: ""; position: absolute; inset: -2px; }
/* ---------- keng ekran: chapda o‘yinchilar, markazda kanvas, o‘ngda lenta */
body.lay-d .gwrap { grid-template-columns: minmax(190px, 240px) auto minmax(260px, 340px); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "plist hud feed" "plist stage feed" "plist tools inbar"; column-gap: 16px; row-gap: 10px; padding-top: 14px; justify-content: center; }
body.lay-d #hud { grid-area: hud; }
body.lay-d #stage { grid-area: stage; align-self: start; }
body.lay-d #tools { grid-area: tools; }
body.lay-d #plist { grid-area: plist; flex-direction: column; overflow-y: auto; overflow-x: hidden; align-self: start; max-height: 100%; }
body.lay-d .pchip { height: 50px; max-width: none; border-radius: 14px; padding: 0 12px 0 8px; }
body.lay-d .pchip .nm { flex: 1; }
body.lay-d #feed { grid-area: feed; padding: 10px 8px; }
body.lay-d #inbar { grid-area: inbar; align-self: end; }
body.lay-d #tools { align-self: start; }
body.lay-d .pchip { text-align: left; }
body.lay-d .pal { grid-template-columns: repeat(12, minmax(0, 1fr)); }
body.lay-d #pat { font-size: 26px; }
body.kb #plist { display: none; }
body.lay-p .pchip { height: 38px; padding: 0 9px 0 4px; gap: 5px; font-size: 12.5px; max-width: 172px; }
body.lay-p .pchip .av { width: 28px; height: 28px; font-size: 11.5px; }
body.lay-p #plist { min-height: 40px; }
.recap { display: grid; gap: 6px; }
.recap .prow { min-height: 42px; }
.recap .prow .nm { font-weight: 650; }
.recap .prow .v { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ok); }
.recap .prow .v.z { color: var(--mut); font-weight: 650; }
.recap .prow .wd { color: var(--mut); font-size: 13px; } /* klaviatura ochiq: joy kanvas va lentaga */
@media (hover: hover) { .pchip:hover { background: var(--sur2); } .tb:hover { background: var(--sur2); } .tb[aria-pressed="true"]:hover { background: var(--fg); } }
@media (max-width: 440px) { #game .gu-bar h1 { visibility: hidden; } } /* o‘yinda sarlavha HUD da — tor telefonda belgilar sig‘sin */
.shot .gu-bar { display: none; } /* skrinshot rejimi: muqova uchun yaqinlashtirilgan, sal qiya ko‘rinish */
.shot #app { overflow: hidden; }
.shot .gwrap, .shot .lpage { transform: scale(var(--shot-z, 1)) rotate(var(--shot-tilt, 0deg)); transform-origin: 50% var(--shot-oy, 40%); }
/* telefon portret: 8 ta asbob 360 px ga ham sig‘adi (ko‘rinishi 38–40 px, teginish maydoni 44 px) */
body.lay-p .trow { gap: 3px; }
body.lay-p .tb { width: min(42px, calc((100vw - 40px) / 8.6)); height: 42px; }
body.lay-p .tb::after { content: ""; position: absolute; inset: -1px -2px; }
body.lay-p .tsep { margin: 0 1px; height: 24px; }
body.lay-p .sw { height: 36px; }
