/* Shahar poygasi (do'stlar xonasi). Umumiy o'yin ekrani uslublari app.css dagi .poyga-toliq / .p-* dan keladi. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xato-quti { background: var(--stop-xira); border: 1px solid rgba(255,61,61,.35); color: #FFB3B3; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.sh-ochish form { margin: 0; }
.sh-kod { display: flex; gap: 8px; }
.sh-kod input { flex: 1; min-width: 0; font: 700 16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--matn);
  background: var(--kuzov); border: 1px solid var(--chiziq); border-radius: 12px; padding: 10px 12px; }

/* o'yin ekrani */
.sh .p-kartalar .sh-joy { max-width: 220px; }
.sh .p-kartalar .sh-joy b { font: 600 13px var(--body); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh #xona-btn { position: relative; }
.sh-soni { position: absolute; right: -4px; top: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--povorot); color: #1A1200;
  font: 700 11px/18px var(--mono); text-align: center; padding: 0 4px; }
.sh-kombo { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: calc(74px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 8px; pointer-events: none; }
.sh-kombo b { font: 800 18px var(--mono); color: var(--povorot); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.sh-kombo i { width: 80px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.sh-kombo i b { display: block; height: 100%; width: 0; background: var(--povorot); }
.sh-teskari { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); top: calc(104px + env(safe-area-inset-top, 0px));
  background: var(--stop); color: #fff; font: 800 12px var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.sh-yonalish { position: absolute; z-index: 3; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: 34px; height: 34px;
  margin-left: -17px; color: var(--yashil); filter: drop-shadow(0 2px 6px rgba(0,0,0,.8)); pointer-events: none; }
.sh-yonalish svg { width: 100%; height: 100%; display: block; }
.sh-sanoq { position: absolute; z-index: 5; left: 50%; top: 42%; transform: translate(-50%, -50%); font: 800 clamp(64px, 16vw, 130px)/1 var(--mono);
  color: var(--matn); text-shadow: 0 4px 30px rgba(0,0,0,.8); pointer-events: none; }
.sh-sanoq.ket { color: var(--yashil); }

/* xona paneli */
.sh-panel { position: absolute; z-index: 7; inset: 0; display: grid; justify-items: end; background: rgba(6,7,8,.45); }
.sh-panel-ichi { width: min(440px, 100%); height: 100%; overflow: auto; background: rgba(18,20,24,.97); border-left: 1px solid var(--chiziq);
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; align-content: start; }
.sh-bosh { display: flex; align-items: center; justify-content: space-between; }
.sh-bosh small, .sh-taklif small { font-size: 11px; color: var(--xira); text-transform: uppercase; letter-spacing: .08em; }
.sh-bosh h2 { font: 800 26px var(--mono); letter-spacing: .12em; }
.sh-panel h3 { font-size: 14px; margin: 0; }
.sh-taklif { display: grid; gap: 8px; background: var(--kuzov); border: 1px solid var(--chiziq); border-radius: 14px; padding: 12px; }
.sh-havola { display: flex; gap: 6px; }
.sh-havola input { flex: 1; min-width: 0; font: 13px var(--mono); color: var(--matn); background: var(--kuzov-2); border: 1px solid var(--chiziq);
  border-radius: 10px; padding: 9px 10px; }
.sh-tg { text-align: center; text-decoration: none; }
.sh-azolar { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sh-azolar li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; background: var(--kuzov); border: 1px solid var(--chiziq);
  border-radius: 12px; padding: 8px 10px; }
.sh-azolar .rang { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.sh-azolar b { font-size: 13.5px; display: block; }
.sh-azolar small { font-size: 11.5px; color: var(--xira); }
.sh-azolar em { font-style: normal; font-size: 11px; color: var(--xira); }
.sh-azolar li.onlayn em { color: var(--yashil); }
.sh-azolar li.men { border-color: rgba(255,176,32,.45); }
.sh-katta { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--chiziq); background: #15181c; cursor: crosshair; touch-action: none; }
.sh-katta.faqat-korish { cursor: default; }
.sh-qator { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-qator select { flex: 1 1 130px; min-width: 0; font: 600 13px var(--body); color: var(--matn); background: var(--kuzov-2); border: 1px solid var(--chiziq);
  border-radius: 10px; padding: 9px; }
.sh-masofa { margin: 0; font-size: 14px; color: var(--xira); }
.sh-mualliflar { font-size: 11px !important; }
@media (min-width: 900px) { .sh-panel-ichi { width: 480px; } }

/* patrul, radar, chat, mikrofon */
.sh-mik[aria-pressed="true"] { color: var(--yashil); border-color: var(--yashil); }
.sh-mik[aria-pressed="true"] .mik-yoq { display: none; }
.sh-qidiruv { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); top: calc(132px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: rgba(12,13,16,.8);
  border: 1px solid rgba(255,61,61,.5); animation: sh-miltilla 0.9s steps(2) infinite; pointer-events: none; }
.sh-qidiruv b { font: 800 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.sh-qidiruv span { font: 700 16px var(--mono); color: var(--povorot); letter-spacing: .1em; }
.sh-qidiruv small { font-size: 11.5px; color: var(--xira); }
@keyframes sh-miltilla { 0% { box-shadow: 0 0 18px rgba(255,40,40,.55); } 100% { box-shadow: 0 0 18px rgba(40,90,255,.55); } }
@media (prefers-reduced-motion: reduce) { .sh-qidiruv { animation: none; } }
.sh-chaqnash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s ease-out; }
.sh-chat { position: absolute; z-index: 4; left: 10px; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100% - 20px)); display: grid; gap: 6px; }
.sh-chat ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sh-chat li { font-size: 13px; line-height: 1.35; background: rgba(12,13,16,.72); border-radius: 10px; padding: 5px 9px; overflow-wrap: anywhere;
  transition: opacity .6s; }
.sh-chat li.eski { opacity: 0; }
.sh-chat li b { color: var(--povorot); margin-right: 6px; }
.sh-chat input { width: 100%; font: 14px var(--body); color: var(--matn); background: rgba(12,13,16,.92); border: 1px solid var(--povorot);
  border-radius: 10px; padding: 9px 10px; }
.sh-gapiryapti { display: flex; gap: 6px; flex-wrap: wrap; }
.sh-gapiryapti span { font: 600 12px var(--body); background: rgba(61,214,140,.18); border: 1px solid rgba(61,214,140,.5); color: var(--yashil);
  border-radius: 999px; padding: 3px 9px; }
.sh-azolar .eshit { border: 1px solid var(--chiziq); background: var(--kuzov-2); color: var(--xira); border-radius: 8px; font-size: 11px; padding: 4px 7px; }
.sh-azolar .eshit[aria-pressed="true"] { color: var(--stop); border-color: rgba(255,61,61,.5); }
.sh-azolar li.gapiryapti { border-color: var(--yashil); }
.sh-azolar li { grid-template-columns: 12px 1fr auto auto; }
@media (pointer: coarse) { .sh-chat { bottom: calc(200px + env(safe-area-inset-bottom, 0px)); } }

/* guruh surati */
.sh-surat { position: absolute; z-index: 9; inset: 0; display: grid; place-items: center; background: rgba(6,7,8,.78); padding: 16px; }
.sh-surat-ichi { width: min(1100px, 100%); display: grid; gap: 12px; }
.sh-surat-ichi img { width: 100%; height: auto; max-height: calc(100vh - 150px); object-fit: contain; display: block; border-radius: 12px; border: 1px solid var(--chiziq); background: #111; }
.sh-surat-tugma { display: flex; gap: 8px; justify-content: center; }
.sh-surat-tugma .btn { min-width: 150px; text-align: center; text-decoration: none; }

/* vazifa kartasi */
.sh-vazifa { position: absolute; z-index: 3; left: 10px; top: calc(112px + env(safe-area-inset-top, 0px)); max-width: min(340px, calc(100% - 24px));
  display: grid; gap: 2px; padding: 9px 12px; border-radius: 12px; background: rgba(12,13,16,.82); border: 1px solid rgba(255,176,32,.45); pointer-events: none; }
.sh-vazifa small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--povorot); }
.sh-vazifa b { font: 600 13.5px var(--body); line-height: 1.3; }
.sh-vazifa span { font-size: 12px; color: var(--xira); }
.sh-vazifa.bajarildi { border-color: rgba(61,214,140,.55); }
.sh-vazifa.bajarildi small, .sh-vazifa.bajarildi span { color: var(--yashil); }

/* halokat oynasi */
.sh-halok { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(40,0,0,.15), rgba(0,0,0,.72)); opacity: 0; transition: opacity 1.6s ease 1.2s; }
.sh-halok.kor { opacity: 1; }
.sh-halok-ichi { width: min(420px, 100%); display: grid; gap: 10px; text-align: center; }
.sh-halok small { font: 700 11px var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--stop); }
.sh-halok h1 { font: 900 clamp(34px, 8vw, 58px)/1 var(--display); color: #fff; letter-spacing: .02em; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.sh-halok p { margin: 0; color: #d7d9dc; font-size: 14.5px; }
.sh-halok .sh-halok-kmh { font: 700 16px var(--mono); color: var(--povorot); }
.sh-halok .btn { margin-top: 8px; font-size: 16px; padding: 13px; }
@media (prefers-reduced-motion: reduce) { .sh-halok { transition: none; } }

/* Xona paneli: do'stlarni chaqirish */
.sh-dostlar h3 { display: flex; align-items: baseline; justify-content: space-between; }
.sh-dost-hav { font: 600 12px var(--body); color: var(--povorot); text-decoration: none; }
.sh-dost-royxat { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; max-height: 232px; overflow-y: auto; }
.sh-dost-royxat li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: var(--kuzov);
  border: 1px solid var(--chiziq); border-radius: 12px; padding: 6px 8px; }
.sh-dost-royxat li.bosh { display: block; font-size: 12.5px; color: var(--xira); text-align: center; padding: 12px; }
.sh-dost-royxat .dost-avatar { width: 30px; height: 30px; font-size: 12px; }
.sh-dost-royxat b { font-size: 13.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-dost-royxat small { font-size: 11px; color: var(--xira); }
.sh-dost-royxat li.onlayn small { color: var(--yashil); }
.sh-dost-royxat button { border: 1px solid var(--povorot); background: var(--povorot); color: #1A1200; font: 700 12px var(--body);
  border-radius: 9px; padding: 6px 10px; cursor: pointer; }
.sh-dost-royxat button:disabled { background: transparent; color: var(--xira); border-color: var(--chiziq); cursor: default; }
.sh-dost-royxat .xonada { font-size: 11.5px; color: var(--yashil); font-weight: 600; }
.sh-dostlar .dost-avatar { position: relative; border-radius: 50%; display: grid; place-items: center; background: var(--kuzov-2);
  border: 1px solid var(--chiziq); font-weight: 700; color: var(--povorot); }
.sh-dostlar .dost-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.sh-dostlar .dost-avatar.onlayn::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--yashil); box-shadow: 0 0 0 2px var(--kuzov); }

/* jamoaviy o'yinlar (jamoaviy.js): o'yin turi, jamoa kartasi, YPX qamog'i */
.sh-rejim { display: grid; gap: 8px; }
.sh-rejim-tanlov { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sh-rejim-tanlov .btn { padding: 9px 6px; font-size: 12.5px; }
.sh-rejim-izoh { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12.5px; color: var(--xira); }
.sh-jamoa { position: absolute; z-index: 3; left: 10px; top: calc(112px + env(safe-area-inset-top, 0px)); max-width: min(300px, calc(100% - 24px));
  display: grid; gap: 3px; padding: 8px 11px; border-radius: 12px; background: rgba(12,13,16,.84); border: 1px solid rgba(255,197,61,.5); }
.sh-jamoa small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #FFC53D; }
.sh-jamoa b { font: 600 13px var(--body); }
.sh-jamoa span { font-size: 12px; color: var(--xira); }
.sh-jamoa span.qamoqda { color: #FF3D3D; }
.sh-jamoa-sorov { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding: 5px 5px 5px 9px; border-radius: 10px; background: rgba(40,8,8,.9); border: 1px solid rgba(255,61,61,.7); }
.sh-jamoa-sorov span { flex: 1; color: #fff; font-size: 12px; font-weight: 600; }
.sh-jamoa-sorov .btn { padding: 6px 10px; font-size: 12px; }
.sh-qamoq { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(140px + env(safe-area-inset-bottom, 0px)); width: min(380px, calc(100% - 24px));
  display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px; border-radius: 16px; background: rgba(18,8,8,.94); border: 1.5px solid #FF3D3D; }
.sh-qamoq b { font: 800 12px var(--display); letter-spacing: .2em; text-transform: uppercase; color: #FF3D3D; }
.sh-qamoq p { margin: 0; font-size: 13.5px; color: #fff; }
.sh-qamoq small { font-size: 12px; color: var(--xira); }
.sh-qamoq .btn { width: 100%; }
