/* /strelka/style.css — Strelkalar: sokin, minimal ko'rinish. Nuqtali taxta, siyoh rangli chiziq-strelkalar, bitta urg'u rangi (kit --acc).
   Taxta (canvas) butun ekran ortida: strelka taxtadan chiqib, ekran chetigacha sirg'alib ketadi, yuqori panel ostidan o'tadi. */
:root, :root[data-theme="dark"] { --ink: #e6e9f0; --ink2: #b9c0cf; --dot: rgba(255,255,255,.2); --scrim: rgba(6,8,12,.62); --card: #151821; }
:root[data-theme="light"] { --ink: #1b1f27; --ink2: #4a5262; --dot: rgba(20,26,38,.24); --scrim: rgba(236,238,243,.72); --card: #ffffff; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { position: fixed; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; touch-action: none; }
#cv { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: block; z-index: 1; touch-action: none; outline: none; }
.gu-bar { z-index: 6; flex: none; }
.gu-bar h1 { display: flex; align-items: center; gap: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.scr { position: relative; flex: 1 1 auto; min-height: 0; }
.scr[hidden] { display: none !important; }

/* ---------- o'yin ekrani */
#game { z-index: 2; display: flex; flex-direction: column; pointer-events: none; }
#hud { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
#hearts { display: flex; gap: 6px; align-items: center; pointer-events: auto; }
#hearts svg { width: 22px; height: 22px; display: block; color: var(--red); transition: transform .25s cubic-bezier(.3,1.6,.5,1), opacity .25s; }
#hearts svg.off { color: var(--mut); opacity: .45; }
#hearts svg.lose { animation: hlose .55s ease forwards; }
@keyframes hlose { 0% { transform: scale(1); color: var(--red); } 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
#left { font-size: 14px; font-weight: 650; color: var(--mut); font-variant-numeric: tabular-nums; white-space: nowrap; }
#left b { color: var(--fg); font-weight: 750; }
#tag { font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); padding: 3px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); }
#stage { flex: 1 1 auto; min-height: 0; position: relative; }
#tip { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); max-width: calc(100% - 28px); padding: 8px 14px; border-radius: 999px; background: var(--sur2); border: 1px solid var(--line); color: var(--fg); font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 24px var(--shadow); animation: tipin .35s ease; z-index: 3; }
@keyframes tipin { from { opacity: 0; transform: translate(-50%, -6px); } }
#ctl { flex: none; display: flex; justify-content: center; gap: 10px; padding: 8px max(14px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); pointer-events: none; }
#ctl .gu-btn { pointer-events: auto; min-height: 50px; min-width: 132px; border-radius: 14px; font-size: 15.5px; background: color-mix(in srgb, var(--sur) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#ctl .gu-btn.ghost { background: transparent; border-color: transparent; color: var(--mut); min-width: 0; }
#ctl .gu-btn.ghost:hover { color: var(--fg); background: var(--sur); }
#ctl .gu-btn svg { width: 19px; height: 19px; }
#bHint.on { border-color: color-mix(in srgb, var(--acc) 60%, transparent); color: var(--acc-text); }
#bHint small { font-size: 12.5px; color: var(--mut); font-weight: 650; font-variant-numeric: tabular-nums; }

/* telefon landshaft: panel pastroq, yuraklar chapda, tugmalar o'ngda — taxtaga butun balandlik */
@media (orientation: landscape) and (max-height: 520px) {
  .gu-bar { height: calc(44px + env(safe-area-inset-top)); }
  #game { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 3fr) minmax(150px, 1fr); grid-template-rows: minmax(0, 1fr); }
  #hud { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; justify-content: center; height: auto; gap: 12px; padding: 0 8px 0 max(16px, env(safe-area-inset-left)); }
  #stage { grid-column: 2; grid-row: 1; }
  #ctl { grid-column: 3; grid-row: 1; flex-direction: column; justify-content: center; align-items: flex-end; padding: 0 max(16px, env(safe-area-inset-right)) env(safe-area-inset-bottom) 8px; }
  #ctl .gu-btn { min-width: 138px; }
  #ctl .gu-btn.ghost { min-width: 138px; }
}
/* katta ekran: yon panellar kengroq, tugmalar markazda */
@media (min-width: 900px) and (min-height: 600px) {
  #hud { height: 54px; }
  #ctl { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  #ctl .gu-btn { min-width: 150px; }
}
#keys { position: fixed; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: var(--mut); opacity: .8; pointer-events: none; z-index: 2; }

/* ---------- menyu */
#menu { z-index: 3; overflow-y: auto; overflow-x: hidden; background: var(--bg); touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.mwrap { max-width: 460px; margin: 0 auto; padding: 8px max(18px, env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.hero { text-align: center; padding-top: 4px; }
#demo { display: block; width: 100%; height: 190px; margin: 0 auto 2px; }
.hero h2 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 820; letter-spacing: -.03em; }
.hero .lead { margin: 8px auto 0; max-width: 340px; color: var(--mut); font-size: 15px; line-height: 1.45; }
.mbtns { display: grid; gap: 10px; margin-top: 4px; }
.gu-btn.big { min-height: 58px; font-size: 17.5px; border-radius: 16px; gap: 10px; }
.gu-btn.big small { font-weight: 650; font-size: 13.5px; opacity: .72; }
.dcard { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 66px; padding: 10px 14px; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: var(--sur); color: var(--fg); cursor: pointer; transition: background .15s, border-color .15s, transform .08s; }
.dcard:hover { background: var(--sur2); border-color: var(--line2); }
.dcard:active { transform: scale(.99); }
.dcard .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sur2); color: var(--acc-text); position: relative; }
.dcard .ic svg { width: 22px; height: 22px; }
.dcard .ic.cal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; border: 1px solid var(--line2); background: var(--sur2); overflow: hidden; }
.dcard .ic.cal em { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--acc-text); line-height: 1; margin-top: 2px; }
.dcard .ic.cal i { font-style: normal; font-size: 19px; font-weight: 800; line-height: 1.05; color: var(--fg); font-variant-numeric: tabular-nums; }
.dcard b { display: block; font-size: 15.5px; font-weight: 720; }
.dcard small { display: block; font-size: 13px; color: var(--mut); line-height: 1.35; }
.dcard .st { font-size: 12.5px; font-weight: 700; color: var(--mut); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.dcard .st.ok { color: var(--green); }
.dcard .st svg { width: 15px; height: 15px; }
.mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mstats > div { background: var(--sur); border: 1px solid var(--line); border-radius: 13px; padding: 9px 10px; min-width: 0; }
.mstats small { display: block; font-size: 11.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mstats b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mlinks { display: flex; justify-content: center; }
.mlinks .gu-btn svg { width: 17px; height: 17px; }
.mfoot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 13px; }
.mfoot a { color: var(--mut); text-decoration: none; }
.mfoot a:hover { color: var(--fg); text-decoration: underline; }
@media (min-width: 900px) and (min-height: 700px) { #demo { height: 250px; } .hero h2 { font-size: 40px; } .mwrap { gap: 16px; padding-top: 18px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .mwrap { max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; padding-top: 10px; }
  .hero { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
  #demo { height: 150px; }
  .mbtns, .mstats, .mlinks, #spons { grid-column: 2; }
  .mfoot { grid-column: 1 / -1; }
}

/* ---------- natija oynasi */
.ovl { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; display: grid; place-items: center; padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom)); background: var(--scrim); animation: gu-fade .25s ease; }
@media (pointer: fine) { .ovl { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); } }
.ovl[hidden] { display: none; }
.ovl .card { width: min(400px, 100%); max-height: 100%; overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 30px 80px var(--shadow); animation: rise .38s cubic-bezier(.2,.8,.25,1); text-align: center; touch-action: pan-y; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.card .kick { font-size: 11.5px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--mut); }
.card h2 { margin: 6px 0 2px; font-size: 27px; line-height: 1.15; font-weight: 820; letter-spacing: -.025em; }
.card .sub { margin: 4px 0 0; color: var(--mut); font-size: 14.5px; }
.card .sub.good { color: var(--acc-text); font-weight: 650; }
.card .hrow { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px; }
.card .hrow svg { width: 28px; height: 28px; color: var(--red); }
.card .hrow svg.off { color: var(--mut); opacity: .35; }
.card .gu-stats { margin: 14px 0 4px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card .gu-stats > div { text-align: left; }
.card .acts { display: grid; gap: 8px; margin-top: 16px; }
.card .acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.card .acts .gu-btn { min-height: 50px; }
.card .acts .gu-btn.primary { min-height: 54px; font-size: 16.5px; }
.card .acts .gu-btn.ghost { border-color: transparent; color: var(--mut); min-height: 46px; }
.gu-btn:focus { outline: none; }
.gu-btn:focus-visible, .dcard:focus-visible, #ctl .gu-btn:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.card .acts .gu-btn.ghost:hover { color: var(--fg); background: var(--sur2); }
.card .nd { margin-top: 10px; font-size: 13px; color: var(--mut); font-variant-numeric: tabular-nums; }
.card .ad { margin-top: 14px; text-align: left; }
.card .ad[hidden] { display: none; }
@media (orientation: landscape) and (max-height: 520px) {
  .ovl .card { width: min(640px, 100%); display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; align-items: center; text-align: left; padding: 16px 18px; }
  .ovl .card > .head { grid-column: 1; }
  .ovl .card > .acts, .ovl .card > .ad, .ovl .card > .nd { grid-column: 2; }
  .card .hrow { justify-content: flex-start; }
  .card .acts { margin-top: 0; }
}

/* ---------- qoidalar oynasi */
.rules { text-align: left; }
.rules ol { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; color: var(--fg); font-size: 14.5px; line-height: 1.4; }
.rules li svg { width: 64px; height: 48px; display: block; }
.rules .keys { margin: 14px 0 0; font-size: 13px; color: var(--mut); }
.gu-modal .rules + .gu-acts2 { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { #tip { animation: none; } }
/* skrinshot rejimi (?shot=…&bare=1): faqat taxta — muqova va SEO rasmlari uchun */
.bare .gu-bar, .bare #hud, .bare #ctl, .bare #tip { display: none !important; }
.bare #game { display: block !important; }
.bare #stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.bare body { background: radial-gradient(120% 90% at 50% 18%, color-mix(in srgb, var(--acc) 7%, var(--bg)) 0%, var(--bg) 62%); }
