/* /kit/kit.css — yangi o'yinlarning umumiy ko'rinishi: portal bilan bir xil ranglar (qorong'i/yorug'), tizim shrifti, sokin va jiddiy uslub.
   Bolalarcha emas: emoji o'rniga SVG belgilar (GU.icon), yorqin konfetti yo'q, bitta urg'u rangi. Telefon birinchi o'rinda: tugma kamida 44 px, safe-area. */
:root, :root[data-theme="dark"] {
  --bg: #0b0d12; --sur: #13161e; --sur2: #1b1f2a; --sur3: #252a38; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.16);
  --fg: #eef0f5; --mut: #9aa3b5; --acc: #19d3c5; --acc-ink: #04201e; --acc-text: #19d3c5; --green: #3ddc84; --red: #ff5a6e; --amber: #f2b84b; --glow: rgba(25,211,197,.14); --head: rgba(11,13,18,.82); --shadow: rgba(0,0,0,.45);
  --r: 14px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f5f8; --sur: #ffffff; --sur2: #eceef3; --sur3: #dfe2ea; --line: rgba(15,20,30,.09); --line2: rgba(15,20,30,.2);
  --fg: #111419; --mut: #5f6779; --acc: #19d3c5; --acc-ink: #04201e; --acc-text: #0e9c91; --green: #1fb860; --red: #e23c52; --amber: #c98a12; --glow: rgba(25,211,197,.2); --head: rgba(244,245,248,.85); --shadow: rgba(20,30,50,.14);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; touch-action: manipulation; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.gu-noselect { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* yuqori panel */
.gu-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left)); background: var(--head); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.gu-bar .gu-home { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none; text-decoration: none; color: var(--mut); }
.gu-bar .gu-home:hover { color: var(--fg); background: var(--sur); }
.gu-bar .gu-home svg { width: 20px; height: 20px; }
.gu-bar .gu-logo { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.gu-bar h1 { margin: 0; font-size: 17px; font-weight: 750; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gu-bar .gu-sp { flex: 1; min-width: 4px; }
.gu-bar .gu-acts { display: flex; align-items: center; gap: 4px; flex: none; }
.gu-tb { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--mut); cursor: pointer; font-weight: 700; font-size: 12.5px; }
.gu-tb:hover { color: var(--fg); background: var(--sur); }
.gu-tb svg { width: 20px; height: 20px; }
.gu-tb[aria-pressed="true"] { color: var(--acc-text); }
/* ko'rinishi 38 px, teginish maydoni 44 px */
.gu-tb, .gu-bar .gu-home { position: relative; }
.gu-tb::after, .gu-bar .gu-home::after { content: ""; position: absolute; inset: -3px; }

/* tugmalar */
.gu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line2); border-radius: 12px; background: var(--sur); color: var(--fg); font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s, border-color .15s, opacity .15s; }
.gu-btn:hover { background: var(--sur2); }
.gu-btn:active { transform: scale(.975); }
.gu-btn:disabled { opacity: .45; cursor: default; transform: none; }
.gu-btn svg { width: 18px; height: 18px; flex: none; }
.gu-btn.primary { background: var(--acc); border-color: transparent; color: var(--acc-ink); font-weight: 750; }
.gu-btn.primary:hover { filter: brightness(1.07); }
.gu-btn.ghost { background: transparent; border-color: var(--line); }
.gu-btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); background: transparent; }
.gu-btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.gu-btn.wide { width: 100%; }
.gu-btn.icon { width: 44px; padding: 0; }

/* bloklar */
.gu-page { max-width: 720px; margin: 0 auto; padding: 16px max(14px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.gu-card { background: var(--sur); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.gu-title { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.gu-sub { margin: 0; color: var(--mut); font-size: 14px; }
.gu-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); }
.gu-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gu-grid { display: grid; gap: 10px; }
/* asosiy menyu tugmalari: katta qator — belgi, nom, izoh */
.gu-menu { display: grid; gap: 10px; }
.gu-menu > button, .gu-menu > a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; text-align: left; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--sur); color: var(--fg); cursor: pointer; transition: border-color .15s, background .15s, transform .08s; }
.gu-menu > button:hover, .gu-menu > a:hover { border-color: var(--line2); background: var(--sur2); }
.gu-menu > button:active, .gu-menu > a:active { transform: scale(.99); }
.gu-menu .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--sur2); color: var(--acc-text); }
.gu-menu .ic svg { width: 21px; height: 21px; }
.gu-menu b { display: block; font-weight: 700; font-size: 15.5px; }
.gu-menu small { display: block; color: var(--mut); font-size: 13px; line-height: 1.35; }
.gu-menu .end { color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }
/* tanlov (segment) */
.gu-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--sur2); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.gu-seg::-webkit-scrollbar { display: none; }
.gu-seg button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--mut); font-weight: 650; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.gu-seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.gu-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--sur2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gu-chip svg { width: 14px; height: 14px; }
.gu-chip b { color: var(--fg); font-weight: 700; }
.gu-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.gu-stats > div { background: var(--sur2); border-radius: 11px; padding: 9px 11px; }
.gu-stats small { display: block; font-size: 11.5px; color: var(--mut); }
.gu-stats b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.gu-field { display: grid; gap: 5px; }
.gu-field input { min-height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line2); background: var(--sur2); outline: none; }
.gu-field input:focus { border-color: var(--acc); }
/* reyting jadvali */
.gu-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.gu-table td, .gu-table th { padding: 7px 6px; border-top: 1px solid var(--line); text-align: left; }
.gu-table th { border-top: 0; font-size: 11.5px; color: var(--mut); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.gu-table .n { text-align: right; }
.gu-table .i { width: 30px; color: var(--mut); }
.gu-table tr.me td { background: var(--glow); font-weight: 700; }
.gu-empty { padding: 18px 8px; text-align: center; color: var(--mut); font-size: 14px; }

/* oyna */
.gu-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); background: rgba(5,7,11,.62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: gu-fade .16s ease; }
.gu-modal > div { width: min(440px, 100%); max-height: 100%; overflow: auto; background: var(--sur); border: 1px solid var(--line2); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px var(--shadow); animation: gu-rise .2s cubic-bezier(.2,.8,.3,1); }
.gu-modal h2 { margin: 0 0 8px; font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.gu-modal p { margin: 0 0 10px; color: var(--mut); }
.gu-modal .gu-acts2 { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gu-modal .gu-acts2 > * { flex: 1 1 130px; }
@keyframes gu-fade { from { opacity: 0; } }
@keyframes gu-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.gu-toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; max-width: min(92vw, 440px); padding: 10px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 650; font-size: 14px; text-align: center; box-shadow: 0 10px 30px var(--shadow); animation: gu-rise .18s ease; pointer-events: none; }
.gu-toast.err { background: var(--red); color: #fff; }
.gu-menu2 { position: absolute; right: 8px; top: calc(100% + 4px); min-width: 130px; padding: 4px; background: var(--sur); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 14px 34px var(--shadow); z-index: 30; }
.gu-menu2 button { display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: transparent; text-align: left; font-weight: 600; font-size: 14px; cursor: pointer; }
.gu-menu2 button:hover { background: var(--sur2); }
.gu-menu2 button[aria-current] { color: var(--acc-text); }
.gu-sponsors { margin-top: 12px; }
.gu-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--mut); font-size: 12.5px; text-align: center; }
.gu-foot a { color: var(--mut); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
