/* O'yinlar App — "stiker albom". To'q ko'k albom sahifasi, oq konturli stikerlar, top-3 folga. */
:root {
  --page: #14215a;
  --page-2: #0e1844;
  --panel: #1d2d72;
  --panel-2: #26398a;
  --line: rgba(160, 180, 255, .16);
  --ink: #f5f7ff;
  --soft: #b7c2f0;
  --mute: #8d9ad4;
  --paper: #ffffff;
  --paper-ink: #1a2350;
  --gold: #ffc93c;
  --gold-2: #f2a516;
  --gold-ink: #3d2700;
  --silver: #dfe6f3;
  --bronze: #f0a46b;
  --pink: #ff5c8a;
  --green: #36d483;
  --keyline: 0 0 0 3px var(--paper);
  --lift: 0 6px 14px rgba(4, 10, 40, .45), 0 2px 3px rgba(4, 10, 40, .35);
  --r: 18px;
  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font: 15px/1.45 var(--body);
  /* albom qog'ozidagi bosma nuqtalar */
  background:
    radial-gradient(rgba(170, 190, 255, .07) 1.1px, transparent 1.3px) 0 0 / 14px 14px,
    radial-gradient(120% 60% at 50% -10%, #23358a 0%, var(--page) 55%) fixed,
    var(--page);
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--gold-ink); }
button { font: inherit; color: inherit; }
input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }

h1 { font: 800 30px/1.05 var(--display); margin: 6px 0 14px; letter-spacing: -.01em; }
h2 { font: 700 19px/1.15 var(--display); margin: 0; }
.sub { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 18px; }
.count { font: 700 13px/1 var(--body); padding: 4px 8px; border-radius: 99px; background: var(--panel-2); color: var(--soft); }
.count:empty { display: none; }
.count.hot { background: var(--pink); color: #fff; }
.hint { color: var(--mute); font-size: 13.5px; text-align: center; padding: 8px; margin: 0; }
main { padding: 0 16px; }

.ic { width: 20px; height: 20px; flex: 0 0 auto; }
.coin { width: 20px; height: 20px; flex: 0 0 auto; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25)); }

/* ------------------------------------------------------------ stikerlar */
.stk {
  position: relative; display: inline-block; flex: 0 0 auto;
  border-radius: 50%; background: var(--paper);
  box-shadow: var(--keyline), var(--lift);
}
.stk img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #e8ecff; }
.stk .dot { position: absolute; right: -1px; bottom: -1px; }
.stk-xs { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--paper), 0 2px 4px rgba(4, 10, 40, .4); }
.stk-sm { width: 42px; height: 42px; }
.stk-md { width: 52px; height: 52px; }
.stk-lg { width: 76px; height: 76px; box-shadow: 0 0 0 4px var(--paper), var(--lift); }
.stk-xl { width: 96px; height: 96px; box-shadow: 0 0 0 5px var(--paper), var(--lift); }
.stk-hero { width: 128px; height: 128px; box-shadow: 0 0 0 6px var(--paper), 0 14px 30px rgba(4, 10, 40, .55); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2.5px var(--page); }

/* ------------------------------------------------------------ yuqori panel */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px 12px;
  background: linear-gradient(var(--page) 70%, rgba(20, 33, 90, 0));
}
.me { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.me .stk { transform: rotate(-5deg); }
.me span:last-child { min-width: 0; display: flex; flex-direction: column; }
.me b { font: 700 17px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me small { color: var(--mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coins {
  display: flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 6px 13px 6px 8px; border-radius: 99px;
  background: linear-gradient(180deg, #ffe07a, var(--gold) 55%, var(--gold-2));
  color: var(--gold-ink); box-shadow: 0 0 0 2.5px var(--paper), var(--lift);
}
.coins b { font: 800 17px/1 var(--display); font-variant-numeric: tabular-nums; padding-top: 2px; }

/* ------------------------------------------------------------ onlayn do'stlar */
.online-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: -4px 0 14px; padding: 9px 12px 9px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line);
}
.strip-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--soft); }
.strip-label .dot { width: 9px; height: 9px; box-shadow: none; }
.strip-faces { display: flex; }
.strip-faces .stk + .stk { margin-left: -7px; }

/* ------------------------------------------------------------ o'yin paketlari */
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.pack {
  position: relative; display: flex; flex-direction: column; padding: 0; border: 0; cursor: pointer; text-align: left;
  border-radius: 20px; background: var(--c);
  box-shadow: 0 0 0 3px var(--paper), var(--lift);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.pack.tilt-l { transform: rotate(-1.2deg); }
.pack.tilt-r { transform: rotate(1deg); }
.pack:active { transform: rotate(0) scale(.96); box-shadow: 0 0 0 3px var(--paper), 0 2px 6px rgba(4, 10, 40, .4); }
.pack[aria-disabled="true"] .pack-art > :first-child { filter: grayscale(.85) brightness(.85); }
.pack-art {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, .2) 1.6px, transparent 1.9px) 0 0 / 11px 11px,
    radial-gradient(90% 90% at 30% 20%, rgba(255, 255, 255, .35), transparent 60%),
    var(--c);
}
.pack-cover { width: 100%; height: 100%; object-fit: cover; }
.pack-icon { width: 58%; aspect-ratio: 1; object-fit: cover; border-radius: 24%; box-shadow: 0 0 0 3px var(--paper), var(--lift); }
.pack-emoji { font-size: 58px; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .18)); }
.pack-mp {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--paper); color: var(--paper-ink); box-shadow: var(--lift);
}
.pack-mp .ic { width: 17px; height: 17px; }
.tape {
  position: absolute; left: -6px; right: -6px; bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 5px 0; transform: rotate(-4deg);
  background: repeating-linear-gradient(-45deg, #ffd23f 0 12px, #ffe377 12px 24px);
  color: var(--gold-ink); font: 800 13px/1 var(--display); letter-spacing: .02em; text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
}
.tape .ic { width: 15px; height: 15px; }
.plate { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; background: var(--paper); color: var(--paper-ink); }
.plate b { font: 800 16.5px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.mine .coin { width: 16px; height: 16px; }
.mine em { font-style: normal; font-weight: 500; color: #6670a0; }
.mine.new { color: #1f8a55; font-weight: 600; }

/* ------------------------------------------------------------ boshqaruv */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 4px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  display: flex; align-items: center; gap: 7px; flex: 0 0 auto; border: 0; cursor: pointer;
  padding: 7px 14px 7px 9px; border-radius: 99px; background: var(--panel); color: var(--soft);
  font-weight: 650; font-size: 14px; transition: background .2s, color .2s;
}
.chips button img, .chips button > span { width: 22px; height: 22px; border-radius: 7px; object-fit: cover; font-size: 17px; line-height: 22px; text-align: center; }
.chips button .ic { width: 18px; height: 18px; }
.chips button.on { background: var(--paper); color: var(--paper-ink); box-shadow: var(--lift); }
.filters { display: flex; gap: 8px; margin-bottom: 18px; }
.seg { flex: 1; display: flex; padding: 3px; border-radius: 14px; background: var(--page-2); border: 1px solid var(--line); }
.seg button { flex: 1; border: 0; background: none; padding: 7px 4px; border-radius: 11px; font-weight: 650; font-size: 13.5px; color: var(--mute); cursor: pointer; }
.seg button.on { background: var(--panel-2); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 14px; padding: 12px 18px; cursor: pointer;
  background: var(--panel-2); color: var(--ink); font-weight: 700;
  transition: transform .15s var(--ease), filter .15s;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ic { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(180deg, #ffe07a, var(--gold) 55%, var(--gold-2)); color: var(--gold-ink); box-shadow: 0 0 0 2.5px var(--paper), var(--lift); }
.btn-ghost { background: none; color: var(--soft); font-weight: 600; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 11px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-icon { padding: 7px; }
.btn-block { width: 100%; }
#share-ref { padding: 14px; font: 800 17px/1 var(--display); }

.search { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; padding: 0 14px; border-radius: 14px; background: var(--page-2); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--gold); }
.search-ic { display: flex; color: var(--mute); }
.search input { flex: 1; min-width: 0; padding: 13px 0; border: 0; background: none; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--mute); }
.results { padding: 6px; border-radius: 18px; background: var(--page-2); }
.results .row { background: var(--panel); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--green); }
.tag .ic { width: 15px; height: 15px; }

/* ------------------------------------------------------------ qatorlar */
.row {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 10px 12px; margin-bottom: 8px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.who { flex: 1; min-width: 0; }
.who b, .who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b { font-weight: 650; }
.who small { color: var(--mute); font-size: 12.5px; }
.act { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.pts { font: 800 18px/1 var(--display); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ reyting: podium + albom slotlari */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 6px; margin: 4px 0 18px; }
.podium:empty { display: none; }
.foil { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.foil.gold { padding-bottom: 14px; }
.foil-stk { position: relative; }
.holo { --sheen: conic-gradient(from var(--a, 0deg), #ffe9a8, #fff, #c9f2ff, #ffd0f0, #fff7c2, #ffe9a8); }
.gold .holo { box-shadow: 0 0 0 5px var(--gold), 0 0 0 7px var(--paper), var(--lift); }
.silver .holo { box-shadow: 0 0 0 4px var(--silver), 0 0 0 6px var(--paper), var(--lift); }
.bronze .holo { box-shadow: 0 0 0 4px var(--bronze), 0 0 0 6px var(--paper), var(--lift); }
/* folga yaltirashi — yagona imzo harakati */
.holo::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .75) 45%, rgba(255, 240, 200, .35) 52%, transparent 65%) no-repeat;
  background-size: 260% 100%; mix-blend-mode: soft-light;
  animation: sheen 3.6s var(--ease) infinite;
}
.silver .holo::after { animation-delay: .5s; }
.bronze .holo::after { animation-delay: 1s; }
@keyframes sheen { 0%, 35% { background-position: 130% 0; } 75%, 100% { background-position: -40% 0; } }
.medal {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  min-width: 28px; height: 28px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  font: 800 16px/1 var(--display); color: var(--gold-ink); background: var(--gold); box-shadow: 0 0 0 2.5px var(--paper), var(--lift);
}
.silver .medal { background: var(--silver); color: #2c3550; }
.bronze .medal { background: var(--bronze); color: #4a2108; }
.foil-name { margin-top: 10px; max-width: 100%; font: 700 14.5px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foil-pts { font: 800 19px/1 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.silver .foil-pts { color: var(--silver); }
.bronze .foil-pts { color: var(--bronze); }
.foil.is-me .foil-name { color: var(--gold); }

.slots { list-style: none; margin: 0; padding: 0; }
.slots li { display: flex; align-items: center; gap: 8px; }
.slots li .row { flex: 1; margin-bottom: 8px; }
.slot-no { width: 30px; flex: 0 0 auto; text-align: center; font: 800 16px/1 var(--display); color: var(--mute); font-variant-numeric: tabular-nums; }
.slots li.me .row { background: var(--panel-2); border: 2px dashed var(--gold); }
.slots li.me .slot-no { color: var(--gold); }
.loading { display: flex; flex-direction: column; gap: 8px; }
.loading span { height: 62px; border-radius: 16px; background: linear-gradient(90deg, var(--panel) 30%, var(--panel-2) 50%, var(--panel) 70%) 0 0 / 300% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.my-rank {
  position: fixed; left: 16px; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 6;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px;
  background: linear-gradient(180deg, #ffe07a, var(--gold) 55%, var(--gold-2)); color: var(--gold-ink);
  box-shadow: 0 0 0 2.5px var(--paper), 0 10px 24px rgba(4, 10, 40, .5); font-weight: 650; font-size: 14px;
}
.my-rank b { font: 800 22px/1 var(--display); }
.mr-pts { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
#view-top { padding-bottom: 70px; }

/* ------------------------------------------------------------ bo'sh holat */
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 18px; text-align: center; border-radius: 18px; border: 2px dashed var(--line); color: var(--soft); list-style: none; grid-column: 1 / -1; }
.empty b { font: 700 17px/1.2 var(--display); color: var(--ink); }
.empty span { font-size: 13.5px; max-width: 30ch; }
.empty-ic { width: 34px; height: 34px; color: var(--mute); margin-bottom: 4px; }

/* ------------------------------------------------------------ profil */
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 10px; }
.hero-stk { transform: rotate(-4deg); margin: 6px 0 14px; }
.p-name { margin: 0; font-size: 28px; }
.p-user { margin: 2px 0 12px; color: var(--mute); }
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 20px; }
.plates div { padding: 12px 6px 10px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); box-shadow: var(--lift); }
.plates b { display: block; font: 800 24px/1 var(--display); font-variant-numeric: tabular-nums; }
.plates small { color: #6670a0; font-size: 12px; font-weight: 600; }
.profile > .sub, .profile > .row, .profile > .ref, .profile > .empty { align-self: stretch; text-align: left; }
.stat-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; background: var(--c); font-size: 22px; box-shadow: 0 0 0 2px var(--paper); overflow: hidden; }
.stat-ic img { width: 100%; height: 100%; object-fit: cover; }
.ref { display: flex; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--page-2); border: 1px dashed var(--line); }
.ref code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--soft); }

/* ------------------------------------------------------------ pastki tablar */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: var(--page-2); border-top: 1px solid var(--line);
}
.tabs button {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0 5px; border: 0; border-radius: 14px; background: none; cursor: pointer;
  color: var(--mute); font-size: 11.5px; font-weight: 650; transition: background .25s var(--ease), color .25s;
}
.tabs .ic { width: 23px; height: 23px; }
.tabs button.on { background: var(--paper); color: var(--paper-ink); box-shadow: var(--lift); }
.badge { position: absolute; top: 1px; left: calc(50% + 7px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font: 800 11px/18px var(--body); box-shadow: 0 0 0 2px var(--page-2); }

/* ------------------------------------------------------------ sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: rgba(5, 10, 35, .62); animation: fade .2s ease-out; }
.sheet {
  width: 100%; max-height: 92vh; overflow-y: auto;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: 26px 26px 0 0; background: var(--page);
  border-top: 1px solid var(--line); animation: up .35s var(--ease);
}
.sheet::before { content: ''; display: block; width: 40px; height: 5px; margin: 0 auto 14px; border-radius: 9px; background: var(--line); }
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.pick button {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border: 0; border-radius: 18px; cursor: pointer;
  background: var(--c); color: #fff; font: 700 15px/1.1 var(--display); text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  box-shadow: 0 0 0 3px var(--paper), var(--lift);
}
.pick img { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; }
.pick-emoji { font-size: 36px; line-height: 46px; }

/* profil tahrirlash */
.edit-preview { position: relative; display: grid; place-items: center; height: 96px; margin-bottom: 14px; }
.edit-preview .stk { grid-area: 1 / 1; transform: rotate(-4deg); }
.edit-preview .peel { animation: peel .42s var(--ease) forwards; transform-origin: 85% 15%; }
.edit-preview .drop { animation: drop .45s var(--ease); }
@keyframes peel { to { transform: translate(40px, -46px) rotate(28deg) scale(.85); opacity: 0; } }
@keyframes drop { from { transform: translateY(-18px) rotate(-14deg) scale(1.15); opacity: 0; } }
.av-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 320px; margin: 0 auto 12px; padding: 8px; }
.pick-av { aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--paper); box-shadow: 0 0 0 3px var(--paper), 0 3px 6px rgba(4, 10, 40, .4); transition: transform .2s var(--ease), box-shadow .2s; }
.pick-av img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.pick-av.on { transform: scale(1.06) rotate(-4deg); box-shadow: 0 0 0 3px var(--paper), 0 0 0 7px var(--gold), var(--lift); }
.av-actions { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span:first-child { font-weight: 700; font-size: 13.5px; color: var(--soft); }
.field input, .at-input { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--page-2); color: var(--ink); outline: none; }
.field input:focus, .at-input:focus-within { border-color: var(--gold); }
.at-input { display: flex; align-items: center; gap: 2px; padding: 0 14px; }
.at-input i { font-style: normal; color: var(--mute); font-weight: 700; }
.at-input input { padding: 12px 0; border: 0; background: none; }
.field small { color: var(--mute); font-size: 12.5px; }
.field small.bad { color: #ff8fa9; }

/* ------------------------------------------------------------ xabar va to'siq */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 40;
  padding: 12px 16px; border-radius: 16px; text-align: center; font-weight: 600;
  background: var(--paper); color: var(--paper-ink); box-shadow: 0 12px 30px rgba(4, 10, 40, .55);
  animation: up .3s var(--ease); pointer-events: none;
}
.toast.good { box-shadow: 0 0 0 3px var(--green), 0 12px 30px rgba(4, 10, 40, .55); }
.toast.bad { box-shadow: 0 0 0 3px var(--pink), 0 12px 30px rgba(4, 10, 40, .55); }
.blocker { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--page); }
.blocker-art { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--paper); color: var(--paper-ink); box-shadow: var(--lift); transform: rotate(-6deg); }
.blocker-art .ic { width: 46px; height: 46px; }
.blocker h2 { margin: 18px 0 6px; font-size: 24px; }
.blocker p { margin: 0; color: var(--soft); }

@media (min-width: 560px) {
  main, .top { max-width: 560px; margin-left: auto; margin-right: auto; }
  .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------ qidiruv, filtr, saqlash, baho */
.game-search { margin: 0 0 10px; }
.filter-chips { margin-bottom: 16px; }
.filter-chips button .ic { width: 17px; height: 17px; }
.pack { outline-offset: 4px; }
.pack:focus-visible { outline: 3px solid var(--gold); }
.pack-save {
  position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; background: var(--paper); color: var(--paper-ink); box-shadow: var(--lift); cursor: pointer;
  transition: transform .2s var(--ease);
}
.pack-save .ic { width: 17px; height: 17px; }
.pack-save:active { transform: scale(.85); }
.pack-save.on { background: var(--gold); color: var(--gold-ink); }
.pack-save.on .ic { fill: currentColor; }
.pack-meta { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #6670a0; font-weight: 600; min-width: 0; white-space: nowrap; overflow: hidden; }
.dot-sep { opacity: .6; }
.rate-chip { display: inline-flex; align-items: center; gap: 3px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--paper-ink); font: inherit; }
.rate-chip b { font-weight: 800; }
.rate-chip span { color: #6670a0; text-decoration: underline; text-underline-offset: 2px; }
.star-ic { width: 15px; height: 15px; color: var(--gold-2); fill: var(--gold); }
.star-ic.off { fill: none; color: #9aa3c8; }

.rate-sheet { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.rate-art { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; overflow: hidden; background: var(--c); font-size: 40px; box-shadow: 0 0 0 4px var(--paper), var(--lift); transform: rotate(-4deg); margin-bottom: 14px; }
.rate-art img { width: 100%; height: 100%; object-fit: cover; }
.rate-sheet h2 { font-size: 21px; }
.rate-sub { margin: 4px 0 14px; color: var(--mute); font-size: 13.5px; }
.rate-stars { display: flex; gap: 6px; margin-bottom: 6px; }
.rate-star { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: #5d6aa8; transition: transform .25s var(--ease); }
.rate-star .ic { width: 40px; height: 40px; stroke-width: 1.4; }
.rate-star.on { color: var(--gold-2); transform: scale(1.08); }
.rate-star.on .ic { fill: var(--gold); }
.rate-star:active { transform: scale(.88); }
.rate-label { min-height: 22px; margin: 0 0 12px; font: 700 16px/1.3 var(--display); color: var(--gold); }

/* ------------------------------------------------------------ o'yin sahifasi (sheet) */
video.pack-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet.tall { max-height: 94vh; padding-bottom: 0; }
.gsheet { display: flex; flex-direction: column; gap: 14px; }
.gs-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 8px; scrollbar-width: none; }
.gs-strip::-webkit-scrollbar { display: none; }
.gs-media { flex: 0 0 auto; width: calc(100% - 8px); max-width: 520px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: var(--c); scroll-snap-align: center; box-shadow: 0 0 0 3px var(--paper), var(--lift); }
.gs-shot { flex: 0 0 auto; height: 260px; max-width: 70vw; object-fit: cover; border-radius: 16px; scroll-snap-align: center; box-shadow: 0 0 0 3px var(--paper), var(--lift); background: var(--panel); }
.gs-head { display: flex; align-items: center; gap: 14px; }
.gs-icon { width: 60px; height: 60px; border-radius: 18px; font-size: 32px; margin: 0; flex: 0 0 auto; }
.gs-title { flex: 1; min-width: 0; }
.gs-title h2 { font-size: 23px; }
.gs-title p { margin: 2px 0 0; color: var(--soft); font-size: 13.5px; }
.gs-save { position: static; width: 40px; height: 40px; flex: 0 0 auto; }
.gs-save .ic { width: 20px; height: 20px; }
.gs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gs-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border: 0; border-radius: 16px; background: var(--panel); color: var(--ink); font: inherit; }
button.gs-stat { cursor: pointer; }
.gs-stat .ic { width: 20px; height: 20px; color: var(--soft); }
.gs-stat b { font: 800 19px/1.1 var(--display); }
.gs-stat small { color: var(--mute); font-size: 12px; }
.gs-mine { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--page-2); border: 1px dashed var(--line); font-size: 13px; color: var(--soft); }
.gs-mine b { font: 800 18px/1 var(--display); color: var(--gold); }
.gs-desc { margin: 0; color: var(--soft); line-height: 1.55; white-space: pre-line; }
.gs-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--gold); font-weight: 600; }
.gs-play { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--page) 30%); }
.gs-play { display: flex; gap: 10px; }
.gs-play .btn { padding: 15px; font: 800 19px/1 var(--display); }
.gs-play-btn { flex: 1; }
.gs-share { flex: 0 0 auto; padding: 15px 16px !important; font: 700 15px/1 var(--display) !important; background: var(--panel-2); box-shadow: 0 0 0 2.5px var(--paper), var(--lift); }
.gs-play .btn .ic { width: 20px; height: 20px; }
.mine { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mine em { overflow: hidden; text-overflow: ellipsis; }

/* Kartadagi GIF/video: kesilmaydi (iOS'da ham) — absolute + contain, orqada xira nusxa */
.media-frame { position: absolute; inset: 0; display: block; overflow: hidden; background: var(--c); }
.media-frame > img, .media-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-frame > .media-bg { object-fit: cover; filter: blur(16px) brightness(.75) saturate(1.2); transform: scale(1.2); }
.sheet { overscroll-behavior: contain; will-change: transform; }
