/* mods/tuynuk/public/style.css — o'yinning o'z ko'rinishi: to'q shisha plitalar, qalin Nunito, o'yinchi rangidagi urg'u */
:root { --pc: #2d7dff; --pt: #fff; --glass: rgba(14, 17, 30, .62); --glass2: rgba(14, 17, 30, .78); --fontG: Nunito, "Nunito Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px); }
html, body { margin: 0; height: 100%; overflow: hidden; background: #cfe0ea; font-family: var(--fontG); overscroll-behavior: none; touch-action: none; -webkit-tap-highlight-color: transparent; color: #fff; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; touch-action: none; outline: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
#splash { position: fixed; inset: 0; z-index: 51; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #f3ead9; color: #161a33; font-weight: 1000; font-size: 34px; transition: opacity .3s ease-out; }
#splash svg { animation: spP 1s ease-in-out infinite alternate; }
@keyframes spP { to { transform: scale(1.1); } }
body.ready #splash { opacity: 0; pointer-events: none; }
body::after { content: ""; position: fixed; inset: 0; background: #fff8ea; opacity: 0; pointer-events: none; transition: opacity .32s ease-out; z-index: 50; }
body.going::after { opacity: .92; transition: opacity .05s; }

/* ---- yorliqlar */
#labels, #pops { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; padding: 3px 9px 3px 9px; border-radius: 999px; background: var(--glass); color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; will-change: transform; box-shadow: 0 0 0 1.5px var(--c); }
.tag em, .row em, .pname em { font-style: normal; font-weight: 900; font-size: 9.5px; letter-spacing: .04em; padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); color: #fff; }
.arr { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 0; will-change: transform; }
.arr svg { width: 30px; height: 30px; fill: var(--c); stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .4)); }
.arr span { margin-top: 1px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 900; color: #fff; background: var(--glass2); white-space: nowrap; max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
.arr.danger svg { animation: arrP .7s ease-in-out infinite alternate; }
@keyframes arrP { to { filter: drop-shadow(0 0 7px #ff3b3b); } }

/* ---- ochko */
.pop { position: absolute; font-weight: 1000; font-size: 22px; color: #fff; text-shadow: 0 2px 0 rgba(10, 12, 26, .85), 0 0 12px rgba(10, 12, 26, .5); white-space: nowrap; will-change: transform, opacity; opacity: 0; }
.pop.mid { font-size: 29px; color: #ffe066; }
.pop.big { font-size: 44px; color: #ffd21f; text-shadow: 0 3px 0 rgba(10, 12, 26, .9), 0 0 20px rgba(255, 170, 0, .55); }

/* ---- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 6; }
#hudL { position: absolute; left: calc(10px + var(--sal)); top: calc(10px + var(--sat)); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px 5px 9px; border-radius: 999px; background: var(--glass); font-weight: 900; font-variant-numeric: tabular-nums; font-size: 22px; line-height: 1.15; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.pill svg { width: 20px; height: 20px; opacity: .92; }
#tmBox { font-size: 26px; }
#tmBox svg { width: 23px; height: 23px; }
#tmBox.urgent { background: #e8332e; animation: tmU 1s ease-in-out infinite; }
@keyframes tmU { 50% { transform: scale(1.09); } }
#klBox { font-size: 17px; padding: 3px 11px 3px 8px; }
#klBox svg { width: 17px; height: 17px; }
#grow { display: flex; align-items: center; gap: 0; height: 26px; }
#grow b { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pc); color: var(--pt); font-weight: 1000; font-size: 16px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 2px 8px rgba(0, 0, 0, .35); }
#grow i { display: block; width: 104px; height: 13px; margin-left: -6px; border-radius: 0 999px 999px 0; background: var(--glass2); overflow: hidden; }
#grow u { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--pc), #fff 180%); transform-origin: left; transform: scaleX(0); transition: transform .16s linear; }
#hudR { position: absolute; right: calc(8px + var(--sar)); top: calc(10px + var(--sat)); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 58vw; }
#lead { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.row { display: flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--glass); font-weight: 800; font-size: 14.5px; line-height: 1.32; }
.row u { text-decoration: none; font-weight: 900; font-size: 12.5px; opacity: .75; min-width: 9px; text-align: center; }
.row i { flex: none; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85); }
.row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 86px; }
.row.me span { max-width: 104px; }
.row b { font-weight: 1000; font-variant-numeric: tabular-nums; }
.row.me { background: rgba(255, 255, 255, .94); color: #12152a; }
.row.me u { opacity: .6; }
.hudBtns { display: flex; gap: 6px; pointer-events: auto; opacity: .78; }
.hudBtns .ib { width: 34px; height: 34px; }
.hudBtns .ib svg { width: 18px; height: 18px; }
.ib { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--glass); color: #fff; cursor: pointer; text-decoration: none; }
.ib svg { width: 21px; height: 21px; }
.ib.txt { width: auto; min-width: 40px; padding: 0 11px; border-radius: 999px; font-weight: 900; font-size: 14px; }
#roomChip { position: absolute; left: calc(10px + var(--sal)); bottom: calc(12px + var(--sab)); pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 13px; border-radius: 999px; background: var(--glass2); color: #fff; font-weight: 900; font-size: 14px; }
#roomChip svg { width: 18px; height: 18px; }
#banner { position: fixed; left: 50%; top: calc(19% + var(--sat)); transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; pointer-events: none; z-index: 7; text-align: center; white-space: nowrap; opacity: 0; }
#banner b { padding: 3px 18px 4px; border-radius: 999px; background: var(--pc); color: var(--pt); font-weight: 1000; font-size: 24px; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
#banner small { margin-top: 5px; padding: 2px 12px; border-radius: 999px; background: var(--glass2); font-weight: 800; font-size: 15px; }
#hint { position: absolute; left: 50%; bottom: calc(15% + var(--sab)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; animation: hintIn .4s ease-out; }
@keyframes hintIn { from { opacity: 0; transform: translate(-50%, 10px); } }
#hint b { padding: 5px 18px; border-radius: 999px; background: var(--glass2); font-weight: 1000; font-size: 21px; }
#hint small { margin-top: 5px; padding: 2px 12px; border-radius: 999px; background: var(--glass); font-weight: 800; font-size: 14px; }
#hint .hand { width: 54px; height: 54px; margin-bottom: 6px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 10px rgba(255, 255, 255, .26); animation: hand 1.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes hand { 0%, 100% { transform: translateX(-46px) scale(.92); } 50% { transform: translateX(46px) scale(1); } }
#dead { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; animation: hintIn .25s ease-out; }
#dead b { padding: 7px 22px; border-radius: 16px; background: rgba(12, 8, 20, .86); font-weight: 1000; font-size: 26px; }
#dead small { margin-top: 6px; padding: 3px 12px; border-radius: 999px; background: var(--glass2); font-weight: 800; font-size: 15px; }
#net { position: absolute; left: 50%; bottom: calc(14px + var(--sab)); transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--glass2); font-weight: 800; font-size: 14px; }
#joy { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 4; }
#joy::before { content: ""; position: absolute; left: -62px; top: -62px; width: 124px; height: 124px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .42); background: rgba(10, 12, 26, .13); }
#joyK { position: absolute; left: 0; top: 0; display: block; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .62); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* ---- menyu */
#menu { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; pointer-events: none; padding: calc(10px + var(--sat)) calc(12px + var(--sar)) calc(12px + var(--sab)) calc(12px + var(--sal)); box-sizing: border-box; background: linear-gradient(180deg, rgba(10, 18, 38, .42) 0, rgba(10, 18, 38, 0) 34%, rgba(10, 18, 38, 0) 54%, rgba(10, 18, 38, .62) 100%); }
#menu > * { pointer-events: auto; }
.topbar { display: flex; align-items: center; gap: 7px; width: 100%; }
.sp { flex: 1; }
.sp2 { flex: 1; pointer-events: none !important; }
.logoBox { margin-top: 4px; width: min(92vw, 560px); text-align: center; pointer-events: none !important; }
#logo { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 10px rgba(8, 14, 34, .35)); }
#logo .fg { stroke: #fff; }
#logo .ex { stroke: #152251; }
#logo .rg, #logo .lip { stroke: var(--pc); }
#logo .hole { transform-origin: 311px 186px; animation: lgP 1.7s ease-in-out infinite alternate; }
@keyframes lgP { from { transform: scale(.97); } to { transform: scale(1.04); } }
.tagline { margin: 0; font-weight: 900; font-size: 19px; text-shadow: 0 2px 6px rgba(8, 14, 34, .65); }
.panel { width: min(92vw, 400px); display: flex; flex-direction: column; align-items: center; gap: 10px; }
#nameIn { width: 76%; box-sizing: border-box; height: 42px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .95); color: #14182c; font: 800 17px var(--fontG); text-align: center; outline: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .2); user-select: text; -webkit-user-select: text; touch-action: manipulation; }
#nameIn::placeholder { color: #6b7088; opacity: 1; }
#nameIn:focus { box-shadow: 0 0 0 3px var(--pc); }
#colors { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 342px; }
.sw { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
.sw::before { content: ""; position: absolute; left: 3px; top: 8px; width: 38px; height: 28px; border-radius: 50%; background: #0a0a12; box-shadow: 0 0 0 4px var(--c), 0 2px 5px 4px rgba(0, 0, 0, .28); transition: transform .14s; }
.sw.on::before { transform: scale(1.12); box-shadow: 0 0 0 4px var(--c), 0 0 0 7px #fff, 0 3px 8px 7px rgba(0, 0, 0, .28); }
.bigBtn { width: 100%; height: 72px; border: 0; border-radius: 22px; background: var(--pc); color: var(--pt); font: 1000 34px/1 var(--fontG); letter-spacing: .005em; cursor: pointer; box-shadow: 0 7px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .28), 0 12px 26px rgba(0, 0, 0, .3); touch-action: manipulation; transition: transform .07s, box-shadow .07s; }
.bigBtn:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .28), 0 5px 12px rgba(0, 0, 0, .3); }
.row2 { display: flex; align-items: center; justify-content: center; gap: 8px; }
.smallBtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--glass2); color: #fff; font: 900 16px var(--fontG); cursor: pointer; touch-action: manipulation; }
.smallBtn svg { width: 19px; height: 19px; }
.tiny { border: 0; background: none; color: rgba(255, 255, 255, .78); font: 800 12.5px var(--fontG); padding: 2px 8px; cursor: pointer; }
#sponsors { max-width: 100%; }

/* ---- tugash */
#end { position: fixed; inset: 0; z-index: 8; display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-sizing: border-box; padding: calc(16px + var(--sat)) 14px calc(14px + var(--sab)); background: linear-gradient(180deg, rgba(10, 14, 32, .78), rgba(10, 14, 32, .45) 50%, rgba(10, 14, 32, .8)); animation: endIn .35s ease-out; }
@keyframes endIn { from { opacity: 0; } }
.endTop { text-align: center; }
#endRank { font-weight: 1000; font-size: 56px; line-height: 1.05; text-shadow: 0 3px 12px rgba(0, 0, 0, .45); }
.endStats { display: flex; justify-content: center; gap: 12px; margin-top: 8px; }
.endStats div { min-width: 118px; padding: 7px 14px; border-radius: 16px; background: var(--glass2); }
.endStats small { display: block; font-weight: 800; font-size: 13px; opacity: .8; }
.endStats b { display: block; font-weight: 1000; font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.12; }
#endNote { min-height: 19px; margin-top: 8px; font-weight: 800; font-size: 14.5px; opacity: .92; }
#podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; width: min(94vw, 460px); flex: 1 1 auto; max-height: 340px; min-height: 180px; padding-top: 10px; }
.pod { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.pname { display: flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; font-weight: 900; font-size: 15px; margin-bottom: 7px; }
.pname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod.me .pname { color: #ffe066; }
.phole { width: 66%; aspect-ratio: 1.9; border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #1b1830, #000 70%); box-shadow: 0 0 0 5px var(--c); box-shadow: 0 0 0 5px var(--c), 0 0 18px 5px color-mix(in srgb, var(--c) 60%, transparent); margin-bottom: 9px; }
.pblock { width: 100%; border-radius: 16px 16px 6px 6px; background: var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 86%, #fff), color-mix(in srgb, var(--c) 70%, #000)); display: flex; flex-direction: column; align-items: center; padding: 6px 2px 8px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 8px 20px rgba(0, 0, 0, .3); }
.pblock b { font-weight: 1000; font-size: 34px; line-height: 1.05; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.pblock small { font-weight: 1000; font-size: 16px; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); font-variant-numeric: tabular-nums; }
.pod.p1 .pblock { height: 58%; } .pod.p2 .pblock { height: 42%; } .pod.p3 .pblock { height: 30%; }
.endBtns { width: min(92vw, 400px); display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }

/* ---- oyna (kit modal) */
.gu-modal { z-index: 60; font-family: var(--fontG); touch-action: pan-y; }
.gu-modal * { touch-action: pan-y; }
.top-list { max-height: 58vh; overflow: auto; }
.top-seg { display: flex; gap: 6px; margin-bottom: 10px; }
.top-seg button { flex: 1; height: 40px; border: 0; border-radius: 12px; background: var(--sur2, #1b1f2b); color: var(--fg, #fff); font-weight: 800; font-size: 15px; }
.top-seg button.on { background: var(--pc); color: var(--pt); }

/* ---- yotiq telefon va kompyuter */
@media (min-aspect-ratio: 1/1) {
  #menu { flex-direction: column; }
  .logoBox { width: min(52vw, 560px); margin-top: -36px; }
  .panel { width: min(46vw, 420px); }
  .bigBtn { height: 64px; font-size: 30px; }
}
@media (max-height: 520px) {
  .logoBox { width: min(40vw, 340px); margin-top: -44px; }
  .tagline { display: none; }
  .panel { gap: 6px; flex-direction: column; }
  #nameIn { height: 34px; font-size: 15px; }
  .sw { width: 34px; height: 30px; }
  .sw::before { left: 3px; top: 4px; width: 28px; height: 21px; }
  #colors { max-width: 92vw; gap: 3px; flex-wrap: nowrap; }
  .bigBtn { height: 52px; font-size: 25px; border-radius: 16px; }
  .tiny { display: none; }
  #end { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 8px 18px; padding: 10px 18px; }
  #endRank { font-size: 34px; }
  .endStats b { font-size: 22px; }
  #podium { height: 86vh; max-height: none; width: 44vw; min-height: 120px; flex: none; padding-top: 0; }
  .endBtns { width: 42vw; margin: 0; }
  .pblock b { font-size: 21px; } .pblock small { font-size: 13px; }
  .pname { font-size: 12.5px; margin-bottom: 4px; }
  .phole { width: 46%; margin-bottom: 7px; box-shadow: 0 0 0 3.5px var(--c); }
  .pod.p1 .pblock { height: 54%; } .pod.p2 .pblock { height: 38%; } .pod.p3 .pblock { height: 26%; }
  .endTop, .endBtns { position: static; }
  #endRank { margin-top: 0; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .pill { font-size: 24px; } #tmBox { font-size: 30px; }
  #grow i { width: 150px; }
  .row { font-size: 17px; padding: 3px 13px 3px 10px; }
  .row span { max-width: 130px; }
  .tag { font-size: 14px; }
  #banner b { font-size: 30px; }
}
