/* ==========================================================================
   StudYouth — oq-qora devoriy gazeta uslubi: tekis iliq ranglar, qo'lda yozilgan
   izohlar, skotch, shtamp. Gradient va "shisha" effektlar ataylab ishlatilmagan.
   Shriftlar: Cormorant Garamond (sarlavhalar), Onest (matn), JetBrains Mono (belgilar).
   ========================================================================== */

:root {
  /* Tekis, iliq tonlar: qog'oz → qum → grafit → siyoh */
  --ink: #1d1c1a;
  --ink-2: #292825;
  --ink-3: #3a3834;
  --graphite: #33312d;
  --paper: #f3efe6;
  --paper-2: #e7e1d3;
  --paper-3: #d9d2c2;
  --sand: #e7e1d3;
  --white: #fbf9f4;
  --muted: #6f6a60;
  --muted-on-ink: #a39e93;
  --line: #cdc6b6;
  --line-on-ink: rgba(243, 239, 230, 0.16);
  --pencil: #57534b;
  --pencil-on-ink: #d3ccbd;
  --tape: rgba(222, 213, 191, 0.82);
  --error: #a8392c;
  --error-on-ink: #f0917f;

  --hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;

  --serif: 'Cormorant Garamond', 'Cormorant', 'Times New Roman', serif;
  --sans: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html.i18n-wait body {
  opacity: 0;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: opacity 0.2s ease;
}

/* Qog'oz donadorligi — yengil shovqin */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.2 -0.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.dark ::selection {
  background: var(--paper);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.skip:focus {
  top: 12px;
}

[hidden] {
  display: none !important;
}

/* ---------- Tipografiya ---------- */

.serif {
  font-family: var(--serif);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 0.98;
  margin: 0;
}

h1 em,
h2 em,
h3 em,
.serif em {
  font-style: italic;
  font-weight: 500;
}

.h2 {
  font-size: clamp(2.5rem, 5.6vw, 5rem);
}

.h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  max-width: 40ch;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

.label--muted {
  color: var(--muted);
}

.dark .label--muted {
  color: var(--muted-on-ink);
}

.num-label::before {
  content: '(' attr(data-num) ')';
  margin-right: 0.9em;
}

/* ---------- Konteynerlar ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.dark {
  background: var(--ink);
  color: var(--paper);
}

.section {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
}

.section + .section:not(.dark) {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
}

.section-head .label {
  grid-column: 1 / 4;
  align-self: start;
  padding-top: 0.6em;
}

.section-head h2 {
  grid-column: 4 / 13;
}

.section-head .lead {
  grid-column: 4 / 11;
  margin-top: 8px;
}

/* ---------- Tugmalar ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 10px 0 26px;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn-fg);
  color: var(--btn-bg);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}

.btn__arrow svg {
  width: 14px;
  height: 14px;
}

.btn:hover .btn__arrow {
  transform: rotate(-45deg);
}

.btn:hover {
  background: transparent;
  color: var(--btn-bg);
}

.btn:hover .btn__arrow {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--btn-bg);
  padding: 0 26px;
}

.btn--ghost:hover {
  background: var(--btn-bg);
  color: var(--btn-fg);
}

.btn--ghost.btn--light {
  color: var(--paper);
  border-color: rgba(242, 240, 234, 0.4);
}

.btn--ghost.btn--light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  gap: 10px;
}

.btn--sm .btn__arrow {
  width: 26px;
  height: 26px;
}

.btn--sm.has-arrow {
  padding-right: 7px;
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.btn--block {
  width: 100%;
  justify-content: space-between;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.link:hover {
  text-decoration-thickness: 2px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.arrow-link svg {
  width: 0.8em;
  height: 0.8em;
  transition: transform 0.3s var(--ease);
}

.arrow-link:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-on-ink);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 44px;
  height: auto;
}

.brand__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand__by {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}

.nav a:hover::after,
.nav a[aria-current='page']::after {
  right: 0;
}

.lang {
  display: flex;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  padding: 3px;
}

.lang button {
  border: 0;
  background: transparent;
  color: var(--muted-on-ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang button:hover {
  color: var(--paper);
}

.lang button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-on-ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:nth-child(1) {
  top: 17px;
}

.burger span:nth-child(2) {
  top: 25px;
}

.nav-open .burger span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-open .burger span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(28px, 4vw, 48px);
}

.hero__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-on-ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-on-ink);
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}

.hero__title {
  grid-column: 1 / 9;
  font-size: clamp(3.6rem, 10.4vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.hero__title .ln {
  display: block;
  animation: rise 1s var(--ease) both;
}

.hero__title .ln:nth-child(2) {
  padding-left: 0.9em;
  animation-delay: 0.08s;
  position: relative;
}

.hero__title .ln:nth-child(3) {
  animation-delay: 0.16s;
}

.hero__title em {
  font-weight: 500;
}

.scribble {
  position: absolute;
  left: 0.85em;
  bottom: -0.08em;
  width: 3.75em;
  height: 0.28em;
  color: var(--paper);
  pointer-events: none;
}

.scribble path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.4s 0.7s var(--ease) forwards;
}

.hero__side {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.seal {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  margin-left: auto;
}

.seal__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 48s linear infinite;
}

.seal__ring text {
  font-family: var(--mono);
  font-size: 9.6px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  fill: var(--paper);
}

.seal__ring circle {
  fill: none;
  stroke: var(--line-on-ink);
}

.seal img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  transform: translate(-50%, -52%);
}

.hero__lead {
  color: rgba(242, 240, 234, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 28px;
}

.hero__more {
  color: var(--paper);
  font-size: 15px;
}

.hero__more svg {
  transform: rotate(90deg);
}

.hero__more:hover svg {
  transform: rotate(90deg) translate(2px, 0);
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line-on-ink);
  color: var(--muted-on-ink);
}

.hero__foot a {
  color: var(--paper);
}

/* Fanlar lentasi */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-on-ink);
  padding: 22px 0 24px;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee__track {
  display: inline-flex;
  animation: marquee 70s linear infinite;
}

.marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.marquee__item::after {
  content: '';
  width: 0.5em;
  height: 0.5em;
  margin: 0 0.8em;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- Manifest ---------- */

.manifest__text {
  grid-column: 4 / 13;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 500;
  text-indent: 2.4em;
}

.manifest__cols {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
}

.manifest__col {
  grid-column: span 3;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.manifest__col:first-child {
  grid-column: 4 / span 3;
}

.manifest__col h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.manifest__col p {
  color: var(--muted);
  font-size: 15.5px;
}

.manifest__col .arrow-link {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 14px;
}

/* ---------- Qanday ishlaydi ---------- */

.how {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.steps {
  grid-column: 1 / 8;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 0.8;
  font-weight: 500;
  font-style: italic;
}

.step h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  max-width: 46ch;
}

.demo {
  grid-column: 9 / 13;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.match-card {
  background: var(--ink);
  color: var(--paper);
  padding: 26px 26px 22px;
  transform: rotate(-1.2deg);
  box-shadow: 14px 14px 0 var(--paper-3);
}

.match-card__score {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-on-ink);
}

.match-card__score b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.4rem;
  line-height: 0.8;
}

.match-card__who {
  padding: 16px 0;
}

.match-card__who + .match-card__who {
  border-top: 1px dashed var(--line-on-ink);
}

.match-card__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 10px;
}

.match-card__row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}

.match-card__row span:first-child {
  color: var(--muted-on-ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}

.swap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px auto;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.swap svg {
  width: 18px;
  height: 18px;
}

.demo__note {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Teglar ---------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

.tag--solid {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.dark .tag--solid,
.match-card .tag--solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* ---------- Algoritm ---------- */

.factors {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-on-ink);
}

.factor {
  display: grid;
  grid-template-columns: 3fr 4fr 5fr;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-on-ink);
}

.factor h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  display: flex;
  gap: 18px;
  align-items: baseline;
}

.factor h3 .label {
  color: var(--muted-on-ink);
  font-size: 11px;
}

.factor p {
  color: rgba(242, 240, 234, 0.72);
  font-size: 15.5px;
}

.factor__bar {
  height: 1px;
  background: var(--line-on-ink);
  position: relative;
}

.factor__bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  height: 7px;
  width: var(--w);
  background: var(--paper);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease);
}

.is-in .factor__bar::after,
.no-js .factor__bar::after {
  transform: scaleX(1);
}

/* ---------- Statistika ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stat {
  padding: 28px 24px 30px;
}

.stat + .stat {
  border-left: 1px solid var(--ink);
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  font-variant-numeric: lining-nums;
}

.demand {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
}

.demand__head {
  grid-column: 1 / 4;
}

.demand__head h3 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.legend i {
  width: 22px;
  height: 8px;
  border: 1px solid var(--ink);
}

.legend i.fill {
  background: var(--ink);
}

.demand__list {
  grid-column: 4 / 13;
  list-style: none;
  margin: 0;
  padding: 0;
}

.demand__row {
  display: grid;
  grid-template-columns: minmax(140px, 1.2fr) 3fr;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.demand__row:last-child {
  border-bottom: 1px solid var(--line);
}

.demand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

.bars {
  display: grid;
  gap: 5px;
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
}

.bar i {
  height: 9px;
  min-width: 2px;
  border: 1px solid var(--ink);
}

.bar--teach i {
  background: var(--ink);
}

.demand__empty {
  grid-column: 4 / 13;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ---------- Telegram ---------- */

.tg {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}

.tg__text {
  grid-column: 1 / 6;
}

.tg__text h2 {
  margin: 18px 0 22px;
}

.tg__text p {
  color: rgba(242, 240, 234, 0.75);
  max-width: 38ch;
}

.tg__link {
  grid-column: 6 / 13;
  justify-self: end;
  text-align: right;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.6rem, 7.4vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.15em;
  border-bottom: 1px solid var(--line-on-ink);
  padding-bottom: 0.08em;
  transition: border-color 0.3s;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tg__link svg {
  width: 0.45em;
  height: 0.45em;
  flex-shrink: 0;
  margin-bottom: 0.18em;
  transition: transform 0.35s var(--ease);
}

.tg__link:hover {
  border-color: var(--paper);
}

.tg__link:hover svg {
  transform: translate(6px, -6px);
}

/* ---------- Qo'shilish ---------- */

.join {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}

.join h2 {
  grid-column: 1 / 10;
  font-size: clamp(2.8rem, 7vw, 6.8rem);
}

.join .btn {
  grid-column: 10 / 13;
  justify-self: end;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}

.footer__about {
  grid-column: 1 / 6;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.footer__about img {
  width: 70px;
  flex-shrink: 0;
}

.footer__about p {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.15;
}

.footer__about p + p {
  margin-top: 8px;
  font-style: italic;
  color: var(--muted-on-ink);
}

.footer__col {
  grid-column: span 2;
}

.footer__col:nth-child(2) {
  grid-column: 8 / span 2;
}

.footer__col .label {
  color: var(--muted-on-ink);
  margin-bottom: 14px;
  display: block;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer__col a {
  text-decoration: none;
}

.footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(5rem, 19.5vw, 20rem);
  line-height: 0.74;
  letter-spacing: -0.045em;
  white-space: nowrap;
  margin: 0 0 -0.1em -0.04em;
  user-select: none;
}

.wordmark em {
  font-style: italic;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 22px;
  border-top: 1px solid var(--line-on-ink);
  color: var(--muted-on-ink);
  position: relative;
  z-index: 1;
  background: var(--ink);
}

.footer__bar a {
  color: var(--paper);
  text-decoration: none;
}

/* ---------- Ikki ustunli sahifalar (ro'yxat, kirish) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: calc(100vh - var(--header-h));
}

.split__side {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
  display: flex;
  flex-direction: column;
}

.split__side h1 {
  font-size: clamp(3.2rem, 6.4vw, 6.4rem);
  line-height: 0.9;
  margin: 22px 0 26px;
}

.split__side .lead {
  color: rgba(242, 240, 234, 0.78);
}

.split__mark {
  position: absolute;
  right: -12%;
  bottom: -8%;
  width: 78%;
  opacity: 0.07;
  pointer-events: none;
}

.progress {
  list-style: none;
  margin: auto 0 0;
  padding: 48px 0 0;
  display: grid;
  gap: 0;
  position: relative;
}

.progress li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-on-ink);
  color: var(--muted-on-ink);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
}

.progress li:last-child {
  border-bottom: 1px solid var(--line-on-ink);
}

.progress li span {
  font-family: var(--mono);
  font-size: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
}

.progress li.is-active {
  color: var(--paper);
}

.progress li.is-active span {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.progress li.is-done {
  color: var(--paper);
}

.progress li.is-done span {
  font-size: 0;
}

.progress li.is-done span::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg) translate(1px, -1px);
}

.split__main {
  padding: clamp(40px, 6vw, 80px) var(--gutter) 80px;
  max-width: 820px;
  width: 100%;
}

/* ---------- Forma ---------- */

.form {
  display: grid;
  gap: 34px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field > .label,
.fieldset > legend {
  color: var(--muted);
}

.fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.fieldset > legend {
  padding: 0;
  margin-bottom: 12px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 8px 0 10px;
  font-size: 1.3rem;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder,
.textarea::placeholder {
  color: #a3a097;
}

.input:focus,
.select:focus,
.textarea:focus {
  box-shadow: 0 1px 0 0 currentColor;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%230d0d0c' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.textarea {
  resize: vertical;
  min-height: 120px;
  font-size: 1.05rem;
  line-height: 1.5;
  border: 1px solid var(--ink);
  padding: 14px 16px;
}

.field__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.field__error {
  color: var(--error);
  font-size: 13.5px;
  min-height: 0;
}

.field__error:empty {
  display: none;
}

.is-invalid .input,
.is-invalid .select,
.is-invalid .textarea {
  border-color: var(--error);
}

/* Segment tanlash */
.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
}

.segment label {
  position: relative;
  cursor: pointer;
}

.segment label + label {
  border-left: 1px solid var(--ink);
}

.segment input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 16px;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.segment input:checked + span {
  background: var(--ink);
  color: var(--paper);
}

.segment input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Chip tanlash */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.chip:hover span {
  border-color: var(--ink);
}

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.group-grid {
  display: grid;
  gap: 10px;
}

.group-grid__row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
}

.group-grid__row > .label {
  padding-top: 11px;
  color: var(--muted);
}

.grade-chips .chip span {
  width: 44px;
  padding: 0;
  border-radius: 50%;
  height: 44px;
}

.reveal-block {
  animation: rise 0.45s var(--ease) both;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.form__note {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 44ch;
}

.form__alt {
  font-size: 15px;
  color: var(--muted);
}

.form__alt a {
  color: var(--ink);
}

/* Holat ekranlari */
.state {
  display: grid;
  gap: 24px;
  max-width: 620px;
}

.state h2 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.state p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
}

.state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.waiting {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.waiting::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite;
}

.cmd {
  display: flex;
  align-items: stretch;
  border: 1px dashed var(--ink);
  max-width: 100%;
}

.cmd code {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.cmd button {
  border: 0;
  border-left: 1px dashed var(--ink);
  background: transparent;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.cmd button:hover {
  background: var(--ink);
  color: var(--paper);
}

.manual {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.code-digits {
  display: flex;
  gap: 10px;
}

.code-digits span {
  display: grid;
  place-items: center;
  width: clamp(58px, 9vw, 84px);
  height: clamp(74px, 11vw, 104px);
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 1;
}

.dev-btn {
  border: 1px dashed var(--muted);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px;
  cursor: pointer;
  justify-self: start;
}

/* ---------- Kabinet ---------- */

.cab-head {
  padding: clamp(40px, 5vw, 64px) 0 0;
  border-bottom: 1px solid var(--ink);
}

.cab-head__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.cab-head h1 {
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  margin-top: 16px;
}

.cab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 15px;
}

.cab-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cab-meta span + span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  margin-right: 14px;
  margin-left: -8px;
}

.tabs {
  display: flex;
  gap: 32px;
  margin-top: clamp(32px, 4vw, 48px);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  border: 0;
  background: none;
  padding: 0 0 16px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.tab[aria-selected='true'] {
  color: var(--ink);
}

.tab[aria-selected='true']::after {
  transform: scaleX(1);
}

.tab .count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  display: inline-grid;
  place-items: center;
}

.tab .count:empty {
  display: none;
}

.panel {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(72px, 8vw, 120px);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.panel__head h2 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
}

.panel__head p {
  color: var(--muted);
  max-width: 44ch;
}

/* Kartochka tahrirlovchisi */
.card-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  border: 1px solid var(--ink);
}

.card-side {
  padding: clamp(24px, 3vw, 40px);
  display: grid;
  gap: 26px;
  align-content: start;
}

.card-side--give {
  background: var(--ink);
  color: var(--paper);
}

.card-side__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.card-side__title h3 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-style: italic;
}

.card-side--give .field > .label {
  color: var(--muted-on-ink);
}

.card-side--give .select,
.card-side--give .textarea {
  border-color: var(--paper);
}

.card-side--give .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%23f2f0ea' stroke-width='1.4'/%3E%3C/svg%3E");
}

.card-side--give .select option {
  color: var(--ink);
  background: var(--paper);
}

.card-side--give .textarea::placeholder {
  color: #77746d;
}

.card-side--give .field__meta {
  color: var(--muted-on-ink);
}

.card-side--give .field__error {
  color: var(--error-on-ink);
}

.card-side--give .is-invalid .select,
.card-side--give .is-invalid .textarea {
  border-color: var(--error-on-ink);
}

.card-editor .swap {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -24px 0 0 -24px;
  width: 48px;
  height: 48px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
}

.card-actions__left {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.card-actions small {
  color: var(--muted);
  font-size: 13px;
}

/* Filtrlar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.filter:hover {
  border-color: var(--ink);
}

.filter[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.filter small {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.7;
}

/* Moslar ro'yxati */
.matches {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.match {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.match__score b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.2rem;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.match__score b small {
  font-size: 0.5em;
  margin-left: 2px;
}

.match__score .label {
  color: var(--muted);
  display: block;
  margin-top: 10px;
}

.meter {
  height: 3px;
  background: var(--paper-3);
  margin-top: 12px;
  max-width: 120px;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--ink);
}

.match__name {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 6px;
}

.match__where {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}

.match__offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  margin-bottom: 16px;
}

.offer {
  min-width: 0;
}

.offer .label {
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.offer b {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.offer p {
  font-size: 15px;
  color: #3c3a36;
  overflow-wrap: anywhere;
}

.offer--hit b {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.match__action {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 190px;
}

.status-pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

.status-pill--accepted::before {
  background: currentColor;
}

.empty {
  border: 1px dashed var(--ink);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.empty h3 {
  font-size: 2.2rem;
}

.empty p {
  color: var(--muted);
  max-width: 50ch;
}

/* So'rovlar */
.req-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}

.req-cols h3 {
  font-size: 2rem;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.req-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.req {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.req__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.req__name {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.05;
}

.req__where {
  color: var(--muted);
  font-size: 14px;
}

.req__swap {
  font-size: 15px;
}

.req__msg {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.3;
  border-left: 2px solid var(--ink);
  padding-left: 14px;
}

.req__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact p {
  font-size: 14px;
  color: var(--muted-on-ink);
}

.req-empty {
  color: var(--muted);
  padding: 22px 0;
}

/* Gate (kirish talab qilinadi) */
.gate {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  align-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.gate .state h2 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
}

/* Dialog */
.dialog {
  border: 0;
  padding: 0;
  max-width: min(560px, calc(100vw - 32px));
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.35);
}

.dialog::backdrop {
  background: rgba(13, 13, 12, 0.82);
}

.dialog__body {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 20px;
}

.dialog h2 {
  font-size: 2.6rem;
}

.dialog p {
  color: var(--muted);
}

.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

/* Toast */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 120;
  display: grid;
  gap: 8px;
  justify-items: center;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
  font-size: 15px;
  border-radius: 999px;
  animation: rise 0.35s var(--ease) both;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.toast--error {
  background: var(--error);
}

/* 404 */
.nf {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

.nf__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(9rem, 30vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
}

.nf h1 {
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  margin: 24px 0 16px;
}

.nf p {
  color: var(--muted-on-ink);
  margin-bottom: 30px;
}

/* Skeleton */
.loading-line {
  height: 14px;
  background: linear-gradient(90deg, var(--paper-2), var(--paper-3), var(--paper-2));
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  margin: 10px 0;
}

/* ---------- Animatsiyalar ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(0.7);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scribble path {
    stroke-dashoffset: 0;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Moslashuvchanlik ---------- */

@media (max-width: 1100px) {
  .nav {
    gap: 20px;
  }
  .hero__title {
    grid-column: 1 / 13;
  }
  .hero__side {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: 1fr 220px;
    align-items: end;
  }
  .seal {
    width: 220px;
    order: 2;
  }
  .steps {
    grid-column: 1 / 13;
  }
  .demo {
    grid-column: 2 / 12;
    position: static;
    max-width: 440px;
    margin: 32px auto 0;
  }
  .factor {
    grid-template-columns: 1fr 1fr;
  }
  .factor__bar {
    grid-column: 1 / 3;
  }
  .match {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .match__action {
    grid-column: 2;
    justify-items: start;
    min-width: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }
  body {
    font-size: 16px;
  }
  .nav,
  .site-header .btn,
  .site-header .lang {
    display: none;
  }
  .burger {
    display: block;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ink);
    color: var(--paper);
    padding: 28px var(--gutter) 32px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav-open .mobile-nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav-open {
    overflow: hidden;
  }
  .mobile-nav a {
    font-family: var(--serif);
    font-size: 2.6rem;
    line-height: 1.1;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-on-ink);
  }
  .mobile-nav .lang {
    display: flex;
    align-self: flex-start;
    margin-top: 28px;
  }
  .mobile-nav .lang button {
    font-size: 14px;
    padding: 9px 16px;
  }
  .mobile-nav .btn {
    display: inline-flex;
    margin-top: 28px;
    align-self: flex-start;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.2;
    padding: 0 10px 0 26px;
    border: 1px solid var(--btn-bg);
  }
  .brand img {
    width: 38px;
  }
  .brand__name {
    font-size: 23px;
  }
  .section-head {
    display: block;
  }
  .section-head .label {
    display: block;
    margin-bottom: 18px;
  }
  .section-head .lead {
    margin-top: 18px;
  }
  .hero__top span:last-child {
    display: none;
  }
  .hero__side {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .seal {
    width: 180px;
    margin: 0 0 0 auto;
    margin-top: -20px;
  }
  .manifest__text {
    grid-column: 1 / 13;
    text-indent: 1.2em;
  }
  .manifest__col,
  .manifest__col:first-child {
    grid-column: 1 / 13;
  }
  .step {
    grid-template-columns: 70px 1fr;
    gap: 16px;
  }
  .step__num {
    font-size: 3.4rem;
  }
  .demo {
    grid-column: 1 / 13;
  }
  .factor {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .factor__bar {
    grid-column: auto;
    margin-top: 8px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--ink);
  }
  .stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
  }
  .stat b {
    margin: 0;
    order: 2;
  }
  .demand__head,
  .demand__list,
  .demand__empty {
    grid-column: 1 / 13;
  }
  .demand__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tg__text,
  .tg__link {
    grid-column: 1 / 13;
  }
  .tg__link {
    justify-self: start;
    text-align: left;
    margin-top: 24px;
  }
  .join h2,
  .join .btn {
    grid-column: 1 / 13;
    justify-self: start;
  }
  .footer__about {
    grid-column: 1 / 13;
  }
  .footer__col,
  .footer__col:nth-child(2) {
    grid-column: span 6;
  }
  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .split__side h1 {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }
  .progress {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 32px;
    gap: 10px;
  }
  .progress li,
  .progress li:last-child {
    border: 0;
    border-top: 2px solid var(--line-on-ink);
    font-size: 1.05rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .progress li.is-active,
  .progress li.is-done {
    border-top-color: var(--paper);
  }
  .split__mark {
    width: 52%;
    right: -10%;
    bottom: auto;
    top: -6%;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .card-editor {
    grid-template-columns: 1fr;
  }
  .card-editor .swap {
    position: relative;
    left: auto;
    top: auto;
    margin: -24px auto;
  }
  .match {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .match__score {
    display: flex;
    align-items: flex-end;
    gap: 16px;
  }
  .match__score .label {
    margin: 0 0 4px;
  }
  .match__score .meter {
    display: none;
  }
  .match__action {
    grid-column: auto;
  }
  .match__offers {
    grid-template-columns: 1fr;
  }
  .req-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero__title {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }
  .hero__title .ln:nth-child(2) {
    padding-left: 0.5em;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .hero__actions .btn--ghost {
    justify-content: center;
  }
  .segment span {
    font-size: 1.3rem;
    min-height: 56px;
  }
  .group-grid__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .group-grid__row > .label {
    padding-top: 0;
  }
  .chip span {
    min-width: 0;
    padding: 0 10px;
  }
  .grade-chips .chip span {
    width: 40px;
    height: 40px;
  }
  .footer__col,
  .footer__col:nth-child(2) {
    grid-column: 1 / 13;
  }
  .footer__about img {
    width: 54px;
  }
  .footer__about p {
    font-size: 1.35rem;
  }
  .btn {
    padding-left: 22px;
  }
  .code-digits {
    gap: 6px;
  }
}

/* ---------- Qo'shimchalar ---------- */

.section-head--flush {
  margin-bottom: 0;
}

.dark .section-head .lead {
  color: rgba(242, 240, 234, 0.72);
}

.progress b {
  font-weight: 500;
}

.factor:nth-child(1) {
  --w: 94%;
}

.factor:nth-child(2) {
  --w: 70%;
}

.factor:nth-child(3) {
  --w: 52%;
}

.factor:nth-child(4) {
  --w: 30%;
}

.factor:nth-child(5) {
  --w: 14%;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 15px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
}

.nav-user::before {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper) url('/assets/emblem-black.png') center / 78% no-repeat;
}

.nav-user:hover {
  border-color: var(--paper);
}

@media (max-width: 860px) {
  .site-header .nav-user {
    display: none;
  }
  .mobile-nav .nav-user {
    display: inline-flex;
    font-family: var(--sans);
    font-size: 16px;
    align-self: flex-start;
    margin-top: 24px;
    border-bottom: 1px solid var(--line-on-ink);
    padding: 6px 14px 6px 6px;
  }
}

/* ==========================================================================
   Qo'lda qilingan detallar
   ========================================================================== */

.section--sand {
  background: var(--sand);
}

.section--graphite {
  background: var(--graphite);
  color: var(--paper);
}

.section--sand + .section,
.section + .section--sand {
  border-top: 0;
}

/* Qo'lda yozilgan izoh */
.note {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.05;
  color: var(--pencil);
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  transform: rotate(-3deg);
  pointer-events: none;
  white-space: nowrap;
}

.dark .note,
.section--graphite .note {
  color: var(--pencil-on-ink);
}

.note svg {
  width: 46px;
  height: 34px;
  flex-shrink: 0;
  overflow: visible;
}

.note path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Skotch bo'laklari */
.taped {
  position: relative;
}

.taped::before,
.taped::after {
  content: '';
  position: absolute;
  top: -13px;
  width: 92px;
  height: 26px;
  background: var(--tape);
  z-index: 2;
  clip-path: polygon(3% 8%, 97% 0, 100% 48%, 96% 100%, 2% 94%, 0 52%);
}

.taped::before {
  left: 14px;
  transform: rotate(-7deg);
}

.taped::after {
  right: 10px;
  transform: rotate(5deg);
}

/* Marker bilan belgilangan so'z */
.manifest__text em {
  font-style: italic;
  background: linear-gradient(transparent 58%, #ddd3b8 58%, #ddd3b8 90%, transparent 90%);
  padding: 0 0.08em;
}

/* Hero: tugma yonidagi izoh */
.hero__actions {
  position: relative;
}

.note--hero {
  position: absolute;
  left: 8px;
  top: calc(100% + 6px);
  transform: rotate(-4deg);
}

.note--hero svg {
  transform: scaleY(-1) rotate(-10deg);
  margin-bottom: 4px;
}

.hero__grid {
  padding-bottom: clamp(72px, 8vw, 110px);
}

/* Namuna kartochka atrofidagi izohlar */
.demo {
  padding-top: 24px;
}

.match-card {
  box-shadow: 12px 12px 0 var(--paper-3);
}

.note--you {
  position: absolute;
  left: -112px;
  top: 128px;
  transform: rotate(-6deg);
}

.note--match {
  position: absolute;
  right: -6px;
  top: -18px;
  z-index: 3;
  transform: rotate(7deg);
  color: var(--ink);
}

.section--sand .match-card {
  box-shadow: 12px 12px 0 #cfc6b1;
}

.note--stats {
  margin: 18px 0 0 6px;
}

.note--tg {
  grid-column: 6 / 13;
  justify-self: end;
  margin-top: 6px;
  transform: rotate(-2deg);
}

.note--reg {
  margin-top: 26px;
  font-size: 1.45rem;
  white-space: normal;
  max-width: 22ch;
  transform: rotate(-2deg);
}

.footer__sign {
  display: block;
  font-family: var(--hand);
  font-size: 1.6rem;
  color: var(--pencil-on-ink);
  margin-top: 10px;
  transform: rotate(-2deg);
  transform-origin: left;
}

/* ==========================================================================
   Ю-Coins
   ========================================================================== */

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.coin {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18));
}

.coin--spin {
  animation: coin-spin 1.4s cubic-bezier(0.3, 0.6, 0.3, 1) both;
}

@keyframes coin-spin {
  0% {
    transform: rotateY(0) scale(0.6);
  }
  60% {
    transform: rotateY(720deg) scale(1.08);
  }
  100% {
    transform: rotateY(720deg) scale(1);
  }
}

.coin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
}

.coin-badge .coin {
  font-size: 24px;
}

.coin-badge:hover {
  border-color: var(--paper);
}

/* Bosh sahifadagi tangalar bo'limi */
.coins {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.coins__art {
  grid-column: 1 / 5;
  position: relative;
  height: 340px;
}

.coins__art .coin {
  position: absolute;
}

.coins__art .coin:nth-child(1) {
  font-size: 230px;
  left: 6%;
  top: 30px;
  transform: rotate(-12deg);
}

.coins__art .coin:nth-child(2) {
  font-size: 120px;
  left: 62%;
  top: 0;
  transform: rotate(18deg);
}

.coins__art .coin:nth-child(3) {
  font-size: 84px;
  left: 66%;
  top: 210px;
  transform: rotate(-30deg);
}

.coins__art .note {
  position: absolute;
  left: 0;
  bottom: -18px;
}

.coins__text {
  grid-column: 6 / 13;
}

.coins__text h2 {
  margin: 18px 0 20px;
}

.coins__text .lead {
  max-width: 48ch;
}

/* Chek ko'rinishidagi qoidalar ro'yxati */
.receipt {
  list-style: none;
  margin: 34px 0 0;
  padding: 22px 24px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  font-size: 15.5px;
}

.receipt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 10px;
  background: radial-gradient(circle at 8px -2px, transparent 7px, var(--white) 7.5px) repeat-x;
  background-size: 16px 10px;
}

.receipt__title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.receipt li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
}

.receipt li span:first-child {
  flex: 0 1 auto;
}

.receipt li i {
  flex: 1 1 20px;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-4px);
  min-width: 20px;
}

.receipt li b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.coins__fine {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 52ch;
}

/* Tanga toast */
.toast--coin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
  perspective: 300px;
}

.toast--coin .coin {
  font-size: 28px;
}

/* Kabinetdagi tangalar paneli */
.cab-head__coins {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-left: auto;
}

.cab-head__coins .coin {
  font-size: 54px;
}

.cab-head__coins b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
}

.cab-head__coins small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cab-head__right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.wallet {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.wallet__card {
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
  position: relative;
  box-shadow: 10px 10px 0 var(--paper-3);
}

.wallet__balance {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wallet__balance .coin {
  font-size: 96px;
}

.wallet__balance b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.6rem;
  line-height: 0.85;
}

.wallet__balance span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-ink);
}

.wallet__invite {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-on-ink);
  display: grid;
  gap: 10px;
}

.wallet__invite h3 {
  font-size: 1.6rem;
}

.wallet__invite p {
  font-size: 14px;
  color: var(--muted-on-ink);
}

.wallet__invite .cmd {
  border-color: var(--line-on-ink);
}

.wallet__invite .cmd button {
  border-left-color: var(--line-on-ink);
  color: var(--paper);
}

.wallet__invite .cmd button:hover {
  background: var(--paper);
  color: var(--ink);
}

.wallet__rules {
  margin-top: 30px;
}

.wallet h3.wallet__h {
  font-size: 2rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 4px;
}

.ledger {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ledger time {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}

.ledger b {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--mono);
  font-weight: 500;
}

.leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.leaderboard li > span:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1;
}

.leaderboard small {
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
}

.leaderboard b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 500;
}

.leaderboard b .coin {
  font-size: 18px;
}

.leaderboard li.is-me {
  background: linear-gradient(transparent 12%, #e6dcc2 12%, #e6dcc2 88%, transparent 88%);
}

.leaderboard li:nth-child(-n + 3) > span:first-child {
  font-weight: 600;
}

/* ==========================================================================
   Baholar va faollik
   ========================================================================== */

.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}

.star {
  border: 0;
  background: none;
  padding: 2px;
  cursor: pointer;
  color: var(--paper-3);
  line-height: 0;
}

.star svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: var(--ink);
  stroke-width: 1;
}

.star.is-on,
.star.is-on ~ .star {
  color: var(--ink);
}

.stars:hover .star {
  color: var(--paper-3);
}

.star:hover,
.star:hover ~ .star {
  color: var(--ink) !important;
}

.rate-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.rate-box > span {
  font-family: var(--hand);
  font-size: 1.45rem;
  color: var(--pencil);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.rating::before {
  content: '★';
  font-size: 14px;
}

.rating--none {
  color: var(--muted);
}

.rating--none::before {
  content: '☆';
}

.seen {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.match__where .rating,
.match__where .seen,
.req__where .rating,
.req__where .seen {
  margin-left: 10px;
}

.cab-meta .rating {
  font-size: 14px;
}

/* Bosh sahifadagi so'nggi faollik */
.feed {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: clamp(56px, 7vw, 96px);
}

.feed__head {
  grid-column: 1 / 4;
}

.feed__head h3 {
  font-size: 2rem;
}

.feed__list {
  grid-column: 4 / 13;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed__list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.feed__list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feed__list time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-top: 3px;
}

.feed__empty {
  grid-column: 4 / 13;
  font-family: var(--hand);
  font-size: 1.8rem;
  color: var(--pencil);
}

/* ==========================================================================
   GPS
   ========================================================================== */

.geo-btn__icon {
  display: inline-grid;
  place-items: center;
}

.geo-btn__icon svg {
  width: 16px;
  height: 16px;
}

.geo-detect {
  display: grid;
  gap: 10px;
  justify-items: start;
  margin-top: -10px;
}

.geo-detect .btn,
.geo-panel__actions .btn {
  gap: 10px;
}

.geo-detect__note {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 52ch;
}

.geo-detect__note.is-error {
  color: var(--error);
}

.geo-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.geo-panel__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--ink);
}

.geo-panel.is-on .geo-panel__icon {
  background: var(--ink);
  color: var(--paper);
}

.geo-panel__icon svg {
  width: 20px;
  height: 20px;
}

.geo-panel__text b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}

.geo-panel__text p {
  font-size: 15px;
  margin-top: 2px;
}

.geo-panel__text small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
}

.geo-panel__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.distance {
  display: inline-flex;
  margin-left: 10px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
}

/* ==========================================================================
   Moslashuvchanlik (yangi bloklar)
   ========================================================================== */

@media (max-width: 1100px) {
  .note--you {
    left: auto;
    right: calc(100% - 40px);
    top: -36px;
  }
  .coins__art {
    grid-column: 1 / 6;
  }
  .coins__text {
    grid-column: 6 / 13;
  }
}

@media (max-width: 860px) {
  .site-header .coin-badge {
    display: none;
  }
  .mobile-nav .coin-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 14px;
    border-bottom: 1px solid var(--line-on-ink);
  }
  .note--you,
  .note--match {
    display: none;
  }
  .note--tg {
    grid-column: 1 / 13;
    justify-self: start;
  }
  .coins__art {
    grid-column: 1 / 13;
    height: 240px;
    margin-bottom: 20px;
  }
  .coins__art .coin:nth-child(1) {
    font-size: 170px;
    left: 0;
    top: 20px;
  }
  .coins__art .coin:nth-child(2) {
    font-size: 96px;
    left: 54%;
  }
  .coins__art .coin:nth-child(3) {
    font-size: 68px;
    left: 70%;
    top: 140px;
  }
  .coins__text {
    grid-column: 1 / 13;
  }
  .feed__head,
  .feed__list,
  .feed__empty {
    grid-column: 1 / 13;
  }
  .feed__list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .wallet {
    grid-template-columns: 1fr;
  }
  .cab-head__right {
    width: 100%;
    justify-content: space-between;
  }
  .cab-head__coins {
    margin-left: 0;
  }
  .geo-panel {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .geo-panel__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Hero ikkinchi havola (v2 dan) */
.hero__actions {
  align-items: center;
  gap: 14px 28px;
}

.hero__more {
  color: var(--paper);
  font-size: 15px;
}

.hero__more svg {
  transform: rotate(90deg);
}

.hero__more:hover svg {
  transform: rotate(90deg) translate(2px, 0);
}

/* Summalar yonidagi kichik tanga ("Ю" harfi mono shriftda "IO" ga o'xshab qoladi) */
.receipt b .coin,
.ledger b .coin {
  font-size: 18px;
  vertical-align: -4px;
}

.ledger b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-direction: row-reverse;
}

/* Uzun havola konteynerni kengaytirib yubormasin */
.cmd code {
  min-width: 0;
}

@media (max-width: 860px) {
  .wallet {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wallet__invite {
  grid-template-columns: minmax(0, 1fr);
}

.wallet__invite .cmd {
  min-width: 0;
}

.cab-meta span.cab-meta__rating::before {
  display: none;
}

/* ==========================================================================
   v4: ozgina rang. Asos — oq-qora; ko'k sharikli ruchka izohlari, olovning
   iliq ranglari va bir-ikki stiker. Boshqa hamma narsa siyoh va qog'oz.
   ========================================================================== */

:root {
  --pen: #2c4f9e;
  --pen-soft: #dfe6f4;
  --pen-on-ink: #9fb6ec;
  --fire-1: #e2470f;
  --fire-2: #ff8418;
  --fire-3: #ffc63d;
  --margin-red: #b5463c;
}

/* Qo'lda yozilgan izohlar — ko'k ruchkada */
.note {
  color: var(--pen);
}

.dark .note,
.section--graphite .note {
  color: var(--pen-on-ink);
}

:focus-visible {
  outline-color: var(--pen);
}

.arrow-link:hover {
  color: var(--pen);
}

.dark .arrow-link:hover {
  color: var(--pen-on-ink);
}

/* Pastdagi katta "StudYouth" — endi to'liq ko'rinadi */
.wordmark {
  line-height: 0.86;
  margin: 0 0 0.08em -0.04em;
  padding-top: 0.02em;
}

@media (max-width: 560px) {
  .wordmark {
    font-size: 18.5vw;
  }
}

/* ---------- Olov (seriya) ---------- */

.flame {
  display: inline-block;
  width: 0.8em;
  height: 1em;
  flex-shrink: 0;
  overflow: visible;
  vertical-align: -0.12em;
}

.flame__o {
  fill: var(--fire-1);
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-linejoin: round;
}

.flame__m {
  fill: var(--fire-2);
}

.flame__i {
  fill: var(--fire-3);
}

.flame__glow {
  fill: var(--fire-2);
}

.flame__spark {
  fill: var(--fire-3);
  stroke: var(--fire-1);
  stroke-width: 0.4;
}

/* 1–2 kun: hali "yosh" olov — sarg'ish. 3-kundan to'q sariq bo'ladi */
.flame--young {
  --fire-1: #eaa531;
  --fire-2: #ffd54f;
  --fire-3: #fff3c2;
}

/* Kichik belgilarda kontur yo'qolib qolmasin — nisbatan qalinroq */
.flame--sm .flame__o {
  stroke-width: 1.8;
}

.flame--off .flame__o {
  fill: #c8c1b1;
  stroke: #9d968a;
}

.flame--off .flame__m {
  fill: #dbd5c7;
}

.flame--off .flame__i {
  fill: #ece7dc;
}

.flame--off path {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .flame path,
  .ava__frame--stars path {
    animation: none !important;
  }
}

/* Sarlavhadagi tanga yonidagi olov */
.coin-badge__flame {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line-on-ink);
}

.coin-badge__flame .flame {
  font-size: 19px;
}

.coin-badge__flame[hidden] {
  display: none;
}

.toast--flame .flame {
  font-size: 26px;
}

.toast__flame {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Suriladigan qatorlar ---------- */

.swipe-ctl {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.swipe-ctl[hidden] {
  display: none !important;
}

.swipe-ctl__bar {
  flex: 1;
  height: 2px;
  background: var(--line);
  position: relative;
}

.swipe-ctl__bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--pen);
  transition: width 0.3s var(--ease);
}

.swipe-ctl__hint {
  font-family: var(--hand);
  font-size: 1.4rem;
  letter-spacing: 0;
  color: var(--pen);
  transition: opacity 0.4s;
}

.swipe-ctl.is-used .swipe-ctl__hint {
  opacity: 0;
}

.swipe-ctl__btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: none;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.swipe-ctl__btn svg {
  width: 14px;
  height: 14px;
}

.swipe-ctl__btn--prev svg {
  transform: rotate(180deg);
}

.swipe-ctl__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.dark .swipe-ctl__btn,
.section--graphite .swipe-ctl__btn {
  border-color: var(--line-on-ink);
}

.dark .swipe-ctl__bar,
.section--graphite .swipe-ctl__bar {
  background: var(--line-on-ink);
}

.dark .swipe-ctl__bar i,
.section--graphite .swipe-ctl__bar i {
  background: var(--pen-on-ink);
}

.dark .swipe-ctl__hint,
.section--graphite .swipe-ctl__hint {
  color: var(--pen-on-ink);
}

[data-swipe='always'] {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

[data-swipe='always']::-webkit-scrollbar {
  display: none;
}

[data-swipe='always'] > * {
  flex: 0 0 min(340px, 86%);
  scroll-snap-align: start;
  min-width: 0;
}

.swipe-ctl[data-mode='always'] {
  display: flex;
}

@media (max-width: 860px) {
  [data-swipe='mobile'] {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scroll-padding-left: var(--gutter);
    scroll-padding-right: var(--gutter);
  }
  [data-swipe='mobile']::-webkit-scrollbar {
    display: none;
  }
  [data-swipe='mobile'] > * {
    flex: 0 0 86%;
    scroll-snap-align: start;
    min-width: 0;
  }
  .swipe-ctl[data-mode='mobile'] {
    display: flex;
  }

  /* Bosh sahifa kartalari surilganda */
  .manifest__cols.swipe > .manifest__col {
    background: var(--white);
    border: 1px solid var(--ink);
    padding: 20px 20px 22px;
  }
  .steps.swipe {
    border: 0;
  }
  .steps.swipe > .step {
    display: block;
    background: var(--white);
    border: 1px solid var(--ink);
    padding: 20px 20px 24px;
  }
  .steps.swipe .step__num {
    display: block;
    margin-bottom: 10px;
  }
  .factors.swipe {
    border-top: 0;
  }
  .factors.swipe > .factor {
    display: block;
    border: 1px solid var(--line-on-ink);
    padding: 20px;
  }
  .factors.swipe .factor p {
    margin: 10px 0 18px;
  }
  .receipts.swipe > .receipt {
    margin: 0 0 12px;
  }
  .stats-cols.swipe > * {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 18px;
  }
}

/* ---------- Bosh sahifa: yangi bloklar ---------- */

.receipts {
  display: grid;
  gap: 0;
  margin-top: 34px;
}

.receipts .receipt {
  margin-top: 0;
}

.receipts .receipt + .receipt {
  margin-top: 26px;
}

.receipt li b.receipt__plain {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.stats-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 80px);
  align-items: start;
}

.stats-cols .demand,
.stats-cols .feed {
  display: block;
  margin-top: 0;
}

.stats-cols .demand__head,
.stats-cols .feed__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stats-cols .demand__head h3,
.stats-cols .feed__head h3 {
  margin: 0;
}

.stats-cols .legend {
  flex-direction: row;
  gap: 16px;
}

.stats-cols .feed__list li {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
}

.tg__app {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-on-ink);
}

.tg__app h3 {
  font-size: 1.9rem;
}

.tg__app p {
  color: var(--muted-on-ink);
  max-width: 52ch;
  font-size: 15px;
  flex: 1 1 280px;
}

@media (max-width: 860px) {
  .stats-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .coins__art {
    height: 170px;
  }
  .coins__art .coin:nth-child(1) {
    font-size: 130px;
    top: 10px;
  }
  .coins__art .coin:nth-child(2) {
    font-size: 78px;
  }
  .coins__art .coin:nth-child(3) {
    font-size: 54px;
    top: 104px;
  }
}

/* ---------- Avatar va ramkalar ---------- */

.ava {
  --s: 44px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  flex-shrink: 0;
  color: var(--ink);
  isolation: isolate;
}

.ava--xs {
  --s: 30px;
}

.ava--sm {
  --s: 44px;
}

.ava--md {
  --s: 62px;
}

.ava--lg {
  --s: clamp(112px, 15vw, 150px);
}

.ava__face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--s) * 0.4);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ava--lg .ava__face {
  border-width: 1.5px;
  background: var(--white);
}

.ava__frame {
  position: absolute;
  left: -17%;
  top: -17%;
  width: 134%;
  height: 134%;
  margin: 0;
  /* umumiy "svg { max-width: 100% }" qoidasi ramkani kichraytirib, chapga surib qo'ymasin */
  max-width: none;
  overflow: visible;
  fill: var(--ink);
  pointer-events: none;
}

.ava--frame_ring .ava__face {
  box-shadow:
    0 0 0 calc(var(--s) * 0.05) var(--paper),
    0 0 0 calc(var(--s) * 0.05 + 1.5px) var(--ink);
}

.dark .ava--frame_ring .ava__face {
  box-shadow:
    0 0 0 calc(var(--s) * 0.05) var(--ink),
    0 0 0 calc(var(--s) * 0.05 + 1.5px) var(--paper);
}

/* Pochta markasi: teshikchali qirra */
.ava--frame_stamp .ava__face {
  border-radius: 2px;
  border: 0;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.ava--frame_stamp::before {
  content: '';
  position: absolute;
  inset: calc(var(--s) * -0.1);
  z-index: -1;
  --hole: calc(var(--s) * 0.13);
  background:
    radial-gradient(circle at 50% 50%, transparent 32%, var(--white) 34%) calc(var(--hole) / -2) calc(var(--hole) / -2) / var(--hole) var(--hole);
  filter: drop-shadow(0 1px 1.5px rgba(29, 28, 26, 0.35));
}

.ava__frame--stars path {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 2.4s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.dark .ava__frame,
.cover--cover_ink .ava__frame {
  fill: var(--paper);
  color: var(--paper);
}

/* Ism shriftlari */
.nm--font_hand {
  font-family: var(--hand);
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1;
  letter-spacing: 0;
}

.nm--font_italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
}

.nm--font_type {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9em;
  letter-spacing: -0.02em;
}

/* Muqovalar */
.cover {
  background-color: var(--sand);
}

.cover--cover_grid {
  background-color: #f8f6f0;
  background-image:
    linear-gradient(rgba(44, 79, 158, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 79, 158, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
}

.cover--cover_lines {
  background-color: #f9f7f2;
  background-image:
    linear-gradient(90deg, transparent 52px, var(--margin-red) 52px, var(--margin-red) 53.5px, transparent 53.5px),
    repeating-linear-gradient(transparent 0 25px, rgba(44, 79, 158, 0.27) 25px 26px);
}

.cover--cover_dots {
  background-color: var(--paper);
  background-image: radial-gradient(circle, rgba(29, 28, 26, 0.38) 1.1px, transparent 1.7px);
  background-size: 15px 15px;
}

.cover--cover_news {
  background-color: #ede8dc;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 128px, #ede8dc 128px 146px),
    repeating-linear-gradient(transparent 0 7px, rgba(29, 28, 26, 0.2) 7px 9px);
}

.cover--cover_ink {
  background-color: var(--ink);
  color: var(--paper);
  background-image:
    radial-gradient(circle at 14% 32%, rgba(243, 239, 230, 0.16) 0 4px, transparent 4.5px),
    radial-gradient(circle at 17% 38%, rgba(243, 239, 230, 0.12) 0 1.6px, transparent 2px),
    radial-gradient(circle at 63% 22%, rgba(243, 239, 230, 0.12) 0 7px, transparent 7.5px),
    radial-gradient(circle at 66% 30%, rgba(243, 239, 230, 0.1) 0 2px, transparent 2.5px),
    radial-gradient(circle at 86% 70%, rgba(243, 239, 230, 0.14) 0 3px, transparent 3.5px),
    radial-gradient(circle at 40% 76%, rgba(243, 239, 230, 0.08) 0 12px, transparent 12.5px);
}

/* Stikerlar */
.sticker {
  width: 64px;
  height: 64px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(29, 28, 26, 0.24));
}

.sticker .st-outline * {
  fill: var(--white) !important;
  stroke: var(--white) !important;
  stroke-width: 9;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 1 !important;
}

.sticker .st-base {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 1.6;
}

.sticker .st-ink {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sticker .st-sea {
  fill: var(--pen-soft);
}

.sticker .st-land {
  stroke: var(--pen);
}

.sticker .st-dot {
  fill: var(--pen);
}

.sticker .st-dark {
  fill: var(--ink);
}

.sticker .st-light {
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sticker .st-gold {
  fill: #f2c14e;
}

/* Ro'yxatlardagi avatar + ism */
.person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.person .nm {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person:hover .nm {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.match__name .person,
.req__name .person {
  gap: 12px;
}

/* ---------- Kabinet: Y-Coins paneli ---------- */

.wallet__card .wallet__decor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--paper);
  font-size: 15px;
}

.streak-card {
  margin-top: 28px;
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 22px 22px 20px;
  position: relative;
}

.streak-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.streak-card__top .flame {
  font-size: 64px;
}

.streak-card__num b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.2rem;
  line-height: 0.9;
}

.streak-card__num span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.streak-card p {
  margin-top: 12px;
  font-size: 15px;
}

.streak-week {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.streak-week li {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.streak-week .flame {
  font-size: 24px;
}

.streak-week li.is-today {
  color: var(--ink);
  font-weight: 500;
}

.streak-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}

.streak-card__foot b {
  font-weight: 500;
}

.streak-card__foot span {
  color: var(--muted);
}

.task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  align-items: start;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.task__icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  grid-row: 1 / 3;
}

.task.is-done .task__icon {
  background: var(--ink);
  color: var(--paper);
}

.task__icon svg {
  width: 18px;
  height: 18px;
}

.task h3 {
  font-size: 1.45rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.task h3 b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.task h3 b .coin {
  font-size: 18px;
}

.task p {
  font-size: 14px;
  color: var(--muted);
}

.task__actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 8px;
}

.task__msg {
  grid-column: 2;
  font-size: 13.5px;
  color: var(--error);
}

.invite-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.invite-share .btn svg {
  width: 15px;
  height: 15px;
}

.ref-progress {
  margin-top: 6px;
  display: grid;
  gap: 8px;
}

.ref-progress__line {
  position: relative;
  height: 4px;
  background: var(--line-on-ink);
}

.ref-progress__line i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--pen-on-ink);
}

.ref-progress__marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-on-ink);
}

.ref-progress__marks .is-done {
  color: var(--paper);
}

.ref-friends {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.ref-friends li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line-on-ink);
}

.ref-friends small {
  color: var(--muted-on-ink);
  font-family: var(--mono);
  font-size: 11.5px;
}

.ref-friends .is-approved small {
  color: var(--pen-on-ink);
}

.board-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 6px;
  border-bottom: 1px solid var(--ink);
}

.board-tabs button {
  border: 0;
  background: none;
  padding: 10px 14px 10px 0;
  margin-right: 14px;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.board-tabs button[aria-selected='true'] {
  color: var(--ink);
}

.board-tabs button[aria-selected='true']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 14px;
  bottom: -1px;
  height: 3px;
  background: var(--ink);
}

.board-tabs .flame {
  font-size: 22px;
}

.leaderboard li {
  align-items: center;
}

.leaderboard .person {
  max-width: 100%;
}

.leaderboard .person small {
  display: block;
  margin: 0;
}

.leaderboard .person > span:last-child {
  min-width: 0;
}

.leaderboard b .flame {
  font-size: 18px;
}

/* So'rovlar: rahmat xati */
.thanks-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.thanks-form textarea {
  min-height: 0;
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--pen);
}

.thanks-form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Profil ---------- */

.pf-cover {
  height: clamp(150px, 20vw, 230px);
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.pf-cover__inner {
  position: relative;
  height: 100%;
  padding-top: 22px;
}

.pf-cover__label {
  display: inline-block;
  background: var(--paper);
  color: var(--ink);
  padding: 4px 8px;
  border: 1px solid var(--ink);
}

.pf-stickers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pf-stickers .sticker {
  position: absolute;
  width: clamp(54px, 7vw, 82px);
  height: auto;
}

.pf-stickers .sticker:nth-child(1) {
  right: 8%;
  top: 22%;
  transform: rotate(9deg);
}

.pf-stickers .sticker:nth-child(2) {
  right: 22%;
  top: 46%;
  transform: rotate(-12deg);
}

.pf-stickers .sticker:nth-child(3) {
  right: 36%;
  top: 14%;
  transform: rotate(6deg);
}

.pf-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px clamp(18px, 3vw, 36px);
  align-items: end;
  margin-top: calc(clamp(112px, 15vw, 150px) / -2);
  position: relative;
  z-index: 1;
}

.pf-ava {
  padding: clamp(18px, 2.6vw, 26px);
  background: var(--paper);
  border-radius: 50%;
  line-height: 0;
}

.pf-ava .ava--frame_stamp {
  margin: 6px;
}

.pf-name {
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.95;
  word-break: break-word;
}

.pf-name.nm--font_hand {
  font-size: clamp(3rem, 6.4vw, 5.4rem);
}

.pf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.pf-meta .rating {
  color: var(--ink);
}

.pf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding-bottom: 6px;
}

.pf-me {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--pen);
  transform: rotate(-2deg);
  display: inline-block;
}

.pf-body {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 7vw, 96px);
  align-items: start;
}

.pf-bio {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.3;
  max-width: 40ch;
}

.pf-bio__empty {
  color: var(--muted);
  font-style: italic;
}

.pf-bio__edit {
  display: grid;
  gap: 10px;
  max-width: 560px;
  font-family: var(--sans);
}

.pf-bio__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.pf-bio__row div {
  display: flex;
  gap: 10px;
}

.pf-bio .link {
  font-family: var(--sans);
  font-size: 14px;
  margin-top: 8px;
}

.pf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 32px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.pf-stats > div {
  padding: 18px 16px 18px 0;
}

.pf-stats > div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.pf-stats dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-stats dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pf-stats dd .flame,
.pf-stats dd .coin {
  font-size: 30px;
}

.pf-stats small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.pf-block {
  margin-top: clamp(36px, 5vw, 56px);
}

.pf-block > h2 {
  font-size: 2rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 16px;
}

.pf-side .pf-block:first-child {
  margin-top: 0;
}

.pf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.pf-card .offer {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
}

.pf-empty {
  color: var(--muted);
  font-size: 15px;
}

.badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.badge {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.badge__stamp {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  transform: rotate(-8deg);
  background: var(--white);
}

.badge b {
  display: block;
  font-weight: 500;
  font-size: 15px;
}

.badge small {
  font-size: 13px;
  color: var(--muted);
}

.badge.is-locked {
  opacity: 0.42;
}

.badge.is-locked .badge__stamp {
  border-style: dotted;
  background: transparent;
}

/* Rahmat devori */
.thanks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px 18px;
}

.thank {
  position: relative;
  background: #fbf8ef;
  padding: 22px 18px 14px;
  box-shadow: 0 1px 0 var(--line), 3px 4px 0 var(--paper-3);
  transform: rotate(-1.2deg);
}

.thank:nth-child(3n + 2) {
  transform: rotate(1.4deg);
  background: #f4f0e3;
}

.thank:nth-child(3n) {
  transform: rotate(-0.4deg);
}

/* Knopka */
.thank::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  width: 13px;
  height: 13px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--pen);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, 0.22), 0 2px 2px rgba(0, 0, 0, 0.2);
}

.thank p {
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--pen);
}

.thank footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.thank footer .person {
  font-size: 13.5px;
  color: var(--ink);
}

.thank.is-hidden {
  opacity: 0.5;
}

.thank__hide {
  font-size: 12px;
}

.thank__flag {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Do'kon ---------- */

.shop-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: end;
}

.shop-head p {
  max-width: 54ch;
  margin-top: 14px;
}

.shop-balance {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-balance .coin {
  font-size: 54px;
}

.shop-balance b {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.shop-balance span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 14px;
}

.shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.shop-item {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: 132px auto;
  position: relative;
}

.shop-item.is-on {
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}

.shop-item__preview {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.shop-item__preview .sticker {
  width: 76px;
  height: 76px;
}

.shop-item__font {
  font-size: 2.1rem;
  line-height: 1;
}

.shop-item__body {
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
}

.shop-item__name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
}

.shop-item__price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.shop-item__price .coin {
  font-size: 16px;
}

.shop-item__price.is-owned {
  color: var(--muted);
}

.shop-item .btn {
  width: 100%;
  justify-content: center;
}

.shop-item__need {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.shop-item__tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}

.shop-item__tick svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 860px) {
  .pf-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
  }
  .pf-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .pf-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pf-stats > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .pf-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .pf-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .shop-item {
    grid-template-rows: 108px auto;
  }
  .pf-stickers .sticker:nth-child(3) {
    display: none;
  }
}

@media (max-width: 560px) {
  .pf-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .pf-ava {
    justify-self: start;
  }
}

/* ---------- Telegram Mini App ---------- */

.in-tg a[href='/login'],
.in-tg #logout,
.in-tg [data-i18n-html='reg.already'],
.in-tg [data-i18n-html='login.noAccount'],
.in-tg .tg-hide {
  display: none !important;
}

.tg-only {
  display: none;
}

.in-tg .tg-only {
  display: revert;
}

.inapp-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--pen);
  color: var(--pen);
  background: var(--pen-soft);
  font-size: 14.5px;
  margin-bottom: 22px;
}

/* Karusel grid ichida ustunni kengaytirib yubormasin */
.how,
.coins,
.tg,
.manifest__cols {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.swipe {
  min-width: 0;
}

.swipe-ctl {
  grid-column: 1 / -1;
}

/* Telefonda statistika ixchamroq: uch raqam bir qatorda, fanlar — nom va chiziqlar yonma-yon */
@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 16px 10px 16px 0;
  }
  .stat + .stat {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 12px;
  }
  .stat b {
    order: 0;
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }
  .stat .label {
    font-size: 10px;
    line-height: 1.3;
  }
  .stats-cols .demand__row {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
    padding: 9px 0;
  }
  .stats-cols .demand__name {
    font-size: 1.15rem;
  }
}

@media (min-width: 861px) {
  .receipts {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      'a b'
      'a c';
    gap: 26px 22px;
    align-items: start;
  }
  .receipts .receipt + .receipt {
    margin-top: 0;
  }
  .receipts .receipt:nth-child(1) {
    grid-area: a;
  }
  .receipts .receipt:nth-child(2) {
    grid-area: b;
  }
  .receipts .receipt:nth-child(3) {
    grid-area: c;
  }
  .receipts .receipt {
    font-size: 14.5px;
    padding: 18px 18px 14px;
  }
}

.cab-head__flame {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.cab-head__flame[hidden] {
  display: none;
}

.cab-head__flame .flame {
  font-size: 46px;
}

.cab-head__flame b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
}

.cab-head__flame small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wallet__card .receipts,
.wallet > div > .receipts {
  margin-top: 30px;
}

@media (min-width: 861px) {
  .wallet .receipts {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }
  .wallet .receipts .receipt {
    grid-area: auto !important;
  }
}

.shop-item__preview {
  position: relative;
}

.shop-item__cover {
  position: absolute;
  inset: 0;
}

.pf-block > .pf-empty:first-of-type {
  margin: -4px 0 26px;
}

.pf-stats dd,
.leaderboard li > span:first-child,
.streak-card__num b,
.cab-head__flame b,
.shop-balance b {
  font-variant-numeric: lining-nums;
}

@media (max-width: 860px) {
  .cab-head__right {
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-start;
  }
  .cab-head__coins .coin {
    font-size: 44px;
  }
  .cab-head__flame .flame {
    font-size: 38px;
  }
  .cab-head__btns {
    margin-left: auto;
  }
}

.cab-head__btns {
  display: flex;
  gap: 10px;
}

.req__top {
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* ---------- Telegram ichida: ilova rejimi ---------- */

.in-tg {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  --tabbar-h: calc(62px + var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

/* Qog'oz donadorligi WebView'da sekinlashtiradi */
.in-tg body::after {
  display: none;
}

.in-tg body {
  padding-bottom: var(--tabbar-h);
}

/* Katta yozuv va havolalar ro'yxati ilovada ortiqcha */
.in-tg .wordmark,
.in-tg .footer__col,
.in-tg .hero__foot,
.in-tg .burger + .mobile-nav .btn {
  display: none;
}

.in-tg .site-footer {
  padding-top: 36px;
}

.in-tg .toasts {
  bottom: calc(var(--tabbar-h) + 12px);
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 6px 4px var(--tg-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--ink);
}

.tabbar__item {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 6px 2px 8px;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}

.tabbar__icon {
  display: grid;
  place-items: center;
  height: 24px;
}

.tabbar__icon svg {
  width: 24px;
  height: 24px;
}

.tabbar__icon .coin {
  width: 22px;
  height: 22px;
}

.tabbar__item[aria-current='true'] {
  color: var(--ink);
}

.tabbar__item[aria-current='true']::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 28%;
  right: 28%;
  height: 3px;
  background: var(--ink);
}

.ava__frame--stars g:nth-child(2) path {
  animation-delay: 0.4s;
}

.ava__frame--stars g:nth-child(3) path {
  animation-delay: 0.8s;
}

.ava__frame--stars g:nth-child(4) path {
  animation-delay: 1.2s;
}

.ava__frame--stars g:nth-child(5) path {
  animation-delay: 1.6s;
}

/* ==========================================================================
   v5: reyting sahifasi, do'stlar, QR, savol-javob
   ========================================================================== */

.page-head {
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--ink);
}

.page-head .h2 {
  margin: 16px 0 14px;
}

.page-head .lead {
  max-width: 58ch;
}

/* Reyting */
.top-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  background: var(--white);
}

.seg button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.seg button[aria-selected='true'] {
  background: var(--ink);
  color: var(--paper);
}

.seg .coin {
  font-size: 20px;
}

.seg .flame {
  font-size: 19px;
}

.top-switch .filters {
  margin: 0;
}

.seg .cap {
  width: 19px;
  height: 19px;
}

/* Ustozlar reytingi: izoh va fan filtri */
.top-teachers {
  padding-top: 18px;
}

.top-note {
  max-width: 62ch;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}

.top-subjects {
  margin-bottom: 0;
}

.top-value--lessons small {
  font-size: 0.72em;
  font-weight: 400;
  color: var(--muted);
}

.podium__meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
}

.top-who {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.is-teachers .top-body {
  padding-top: clamp(24px, 4vw, 40px);
}

@media (max-width: 480px) {
  .top-switch .seg {
    display: flex;
    width: 100%;
  }
  .top-switch .seg button {
    flex: 1 1 auto;
    justify-content: center;
    gap: 5px;
    padding: 8px 9px;
    font-size: 14px;
  }
}

.top-body {
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 22px);
  align-items: end;
  max-width: 720px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.podium__slot {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-decoration: none;
  text-align: center;
  min-width: 0;
}

.podium__name {
  font-weight: 500;
  font-size: 15px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 15px;
}

.top-value .coin {
  font-size: 18px;
}

.top-value .flame {
  font-size: 18px;
}

.podium__slot--1 .top-value {
  font-size: 18px;
}

.podium__slot--1 .top-value .flame {
  font-size: 30px;
}

.podium__step {
  width: 100%;
  display: grid;
  place-items: center;
  margin-top: 6px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.podium__slot--1 .podium__step {
  height: clamp(110px, 16vw, 150px);
}

.podium__slot--2 .podium__step {
  height: clamp(80px, 11vw, 110px);
  background: var(--graphite);
}

.podium__slot--3 .podium__step {
  height: clamp(60px, 8vw, 80px);
  background: var(--ink-3);
}

.podium__slot.is-me .podium__name {
  background: linear-gradient(transparent 55%, #e6dcc2 55%);
}

.top-list {
  max-width: 720px;
  margin: 0 auto;
}

.top-me {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--ink);
  color: var(--paper);
}

.in-tg .top-me {
  bottom: var(--tabbar-h);
}

.top-me .wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  max-width: 720px;
}

.top-me b {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.top-me span:last-child {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 13px;
}

.top-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.top-empty h3 {
  font-size: 2rem;
}

.board-all {
  display: inline-flex;
  margin-top: 16px;
}

/* Do'stlar */
.pf-count {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}

.friends {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.friend {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.friend .person {
  flex: 1;
  min-width: 0;
}

.friend__streak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 13px;
}

.friend__streak .flame {
  font-size: 16px;
}

.friend small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.friend-req {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--pen-soft);
  border: 1px dashed var(--pen);
}

.friend-req .label {
  color: var(--pen);
}

.friends--pending {
  margin-top: 10px;
  opacity: 0.7;
}

.friend-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 16px;
}

.qr-btn {
  gap: 8px;
}

.qr-btn svg {
  width: 16px;
  height: 16px;
}

.is-friend svg {
  width: 15px;
  height: 15px;
}

/* QR kartochka */
.qr-dialog .dialog__body {
  max-width: 400px;
}

.qr-card {
  margin: 14px 0 6px;
  background: var(--white);
  border: 1px solid var(--ink);
  padding: 16px;
  box-shadow: 6px 6px 0 var(--paper-3);
}

.qr-card__who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.qr-card__who .nm {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
}

.qr-card__who small {
  color: var(--muted);
  font-size: 13px;
}

.qr-card__code {
  padding: 12px 0;
}

.qr {
  display: block;
  width: 100%;
  height: auto;
}

.qr-card__foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.qr-hint {
  font-size: 13.5px;
  color: var(--muted);
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.qr-actions .link {
  margin-left: auto;
}

/* Skaner */
.scan .dialog__body {
  max-width: 420px;
}

.scan__frame {
  position: relative;
  margin: 14px 0 10px;
  aspect-ratio: 1;
  background: var(--ink);
  overflow: hidden;
}

.scan__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan__corners {
  position: absolute;
  inset: 16%;
  border: 3px solid var(--paper);
  border-radius: 14px;
  box-shadow: 0 0 0 999px rgba(29, 28, 26, 0.35);
}

.scan__note {
  font-size: 14.5px;
  margin: 10px 0;
}

/* Savol-javob */
.qa-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
}

.qa-list,
.qa-detail {
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(56px, 7vw, 96px);
  max-width: 860px;
}

.qa-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  gap: 10px;
}

.qa-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--ink);
  background: var(--white);
  padding: 0 14px;
  min-height: 48px;
}

.qa-search svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
}

.qa-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  outline: none;
  color: var(--ink);
}

.qa-list > .filters {
  margin: 14px 0 6px;
}

.qa-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qa-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.qa-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 14px;
  color: var(--muted);
}

.qa-meta .person {
  color: var(--ink);
  font-weight: 500;
}

.qa-meta time {
  font-family: var(--mono);
  font-size: 12px;
}

.qa-card__body {
  text-decoration: none;
  font-size: 17px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.qa-card__body:hover {
  color: var(--pen);
}

.qa-card__thumbs {
  display: flex;
  gap: 8px;
}

.qa-card__thumbs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.qa-card__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.qa-bounty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 4px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
}

.qa-bounty .coin {
  font-size: 16px;
}

/* "Hal qilindi" — siyoh shtampi */
.qa-stamp {
  display: inline-block;
  padding: 2px 8px;
  border: 1.5px solid var(--pen);
  color: var(--pen);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.qa-back {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 15px;
}

.qa-back svg {
  width: 14px;
  height: 14px;
}

.qa-q {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--paper-3);
  display: grid;
  gap: 14px;
}

.qa-body {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.qa-body--q {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.qa-photos {
  display: grid;
  gap: 8px;
}

.qa-photos--2 {
  grid-template-columns: 1fr 1fr;
}

.qa-photos--3 {
  grid-template-columns: repeat(3, 1fr);
}

.qa-photo {
  border: 1px solid var(--line);
  padding: 0;
  background: var(--paper-2);
  cursor: zoom-in;
  line-height: 0;
}

.qa-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.qa-photos--2 .qa-photo img,
.qa-photos--3 .qa-photo img {
  aspect-ratio: 1;
}

.qa-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 14px;
}

.qa-report {
  color: var(--muted);
  margin-left: auto;
}

.qa-answers-title {
  font-size: 2rem;
  margin: 40px 0 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.qa-answers-title small {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}

.qa-answers {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qa-a {
  position: relative;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.qa-a.is-best {
  padding: 22px 18px 18px;
  margin: 8px 0;
  border: 1.5px solid var(--pen);
  background: var(--pen-soft);
}

.qa-stamp--best {
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--paper);
}

.qa-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--white);
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--ink);
}

.qa-like svg {
  width: 15px;
  height: 15px;
}

.qa-like b {
  font-family: var(--mono);
  font-weight: 500;
}

.qa-like.is-on {
  border-color: var(--pen);
  color: var(--pen);
  background: var(--pen-soft);
}

.qa-like:disabled {
  cursor: default;
  opacity: 0.6;
}

.qa-answer-form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.qa-answer-form .btn {
  justify-self: start;
}

.qa-note {
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 15px;
}

.qa-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.qa-gate b {
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.qa-gate p {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 4px;
}

.qa-gate .task__icon {
  grid-row: 1 / 3;
}

.qa-gate .task__actions,
.qa-gate .task__msg {
  grid-column: 2;
}

.qa-dialog .dialog__body {
  max-width: 560px;
  width: 100%;
}

.qa-dialog #ask-fields {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.qa-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.chip.is-disabled {
  opacity: 0.4;
}

.chip .coin {
  font-size: 16px;
  vertical-align: -3px;
}

/* Rasm tanlash */
.photo-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.photo-pick__item {
  position: relative;
  width: 84px;
  height: 84px;
  border: 1px solid var(--line);
}

.photo-pick__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-pick__item.is-busy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(251, 249, 244, 0.6) linear-gradient(90deg, transparent, rgba(44, 79, 158, 0.25), transparent) 0 0 / 200% 100%;
  animation: busy 1s linear infinite;
}

@keyframes busy {
  to {
    background-position: -200% 0;
  }
}

.photo-pick__x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.photo-pick__add {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 11.5px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  padding: 4px;
}

.photo-pick__add svg {
  width: 24px;
  height: 24px;
}

.photo-pick__add[hidden] {
  display: none;
}

/* Rasmni kattalashtirish */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 92vh;
}

.lightbox::backdrop {
  background: rgba(29, 28, 26, 0.88);
}

.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .qa-tools {
    grid-template-columns: minmax(0, 1fr);
  }
  .qa-head .btn {
    width: 100%;
    justify-content: center;
  }
  .qa-q {
    padding: 16px;
  }
  .podium__name {
    font-size: 13px;
  }
  .tabbar__item {
    font-size: 10.5px;
  }
}

.friend-req .friend {
  flex-wrap: wrap;
}

.friend-req .friend .person {
  flex: 1 1 100%;
}

.in-tg .page-head {
  padding-top: 24px;
}

/* ==========================================================================
   v6: rangli taxalluslar, unvonlar, yangi ramkalar, muqovalar va stikerlar
   ========================================================================== */

.nc--color_blue {
  color: #1f5fd1;
}

.nc--color_red {
  color: #c3322b;
}

.nc--color_green {
  color: #1d7a4c;
}

.nc--color_amber {
  color: #a86200;
}

.nc--color_violet {
  color: #6b3fc4;
}

/* Tovlanuvchi ranglar: gradient harflar bo'ylab sekin oqadi */
.nc--color_sunset,
.nc--color_ocean,
.nc--color_gold,
.nc--color_rainbow {
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: nick-flow 4s linear infinite;
}

.nc--color_sunset {
  background-image: linear-gradient(90deg, #e8501f, #d8306f, #7b3df0, #d8306f, #e8501f);
}

.nc--color_ocean {
  background-image: linear-gradient(90deg, #0a5fb8, #0c9a9a, #2c4f9e, #0c9a9a, #0a5fb8);
}

.nc--color_gold {
  background-image: linear-gradient(90deg, #8a5a0a, #d9a531, #f5d47a, #d9a531, #8a5a0a);
  animation-duration: 2.6s;
}

.nc--color_rainbow {
  background-image: linear-gradient(90deg, #d12f2f, #e07b12, #c9a400, #2b9348, #1f6fd1, #6b3fc4, #d12f2f);
  animation-duration: 5s;
}

@keyframes nick-flow {
  to {
    background-position: 200% center;
  }
}

/* Unvon — kichik qiyshiq shtamp */
.title-chip {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 0 10px;
  padding: 3px 9px 2px;
  border: 1.5px solid currentColor;
  background: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--pen);
  transform: rotate(-3deg);
}

.title-chip--title_genius {
  color: #a86200;
}

.title-chip--title_owl {
  color: #6b3fc4;
}

.title-chip--title_polyglot {
  color: #1d7a4c;
}

.title-chip--title_olymp {
  color: #c3322b;
}

.title-chip--title_captain {
  color: var(--ink);
}

.pf-titlechip {
  display: block;
  margin: 10px 0 0;
}

.pf-titlechip .title-chip {
  margin-left: 0;
  font-size: 12.5px;
}

/* Neon halqa */
.ava--frame_neon .ava__face {
  border-color: #2f6bff;
  box-shadow:
    0 0 0 2px #2f6bff,
    0 0 12px 3px rgba(47, 107, 255, 0.55),
    inset 0 0 8px rgba(47, 107, 255, 0.3);
  animation: neon 2.6s ease-in-out infinite;
}

@keyframes neon {
  50% {
    box-shadow:
      0 0 0 2px #5b8cff,
      0 0 20px 6px rgba(47, 107, 255, 0.7),
      inset 0 0 10px rgba(47, 107, 255, 0.4);
  }
}

/* Orbita */
.orbit-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.7;
  stroke-dasharray: 1.6 1.8;
  opacity: 0.55;
}

.orbit-planet {
  fill: #2c4f9e;
  stroke: var(--ink);
  stroke-width: 0.8;
}

/* Yangi muqovalar */
.cover--cover_chalk {
  background-color: #2e4a3c;
  color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='200'%3E%3Cg fill='%23f3efe6' fill-opacity='.55' font-family='Caveat,Segoe Print,cursive' font-size='26'%3E%3Ctext x='18' y='48' transform='rotate(-4 18 48)'%3Ea%C2%B2+b%C2%B2=c%C2%B2%3C/text%3E%3Ctext x='230' y='40' transform='rotate(3 230 40)'%3EE=mc%C2%B2%3C/text%3E%3Ctext x='120' y='112'%3E%E2%88%AB x dx = x%C2%B2/2%3C/text%3E%3Ctext x='300' y='150' transform='rotate(-6 300 150)'%3E%CF%80%E2%89%883,14%3C/text%3E%3Ctext x='24' y='176' transform='rotate(2 24 176)'%3EH%E2%82%82O%3C/text%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(ellipse at 75% 70%, rgba(255, 255, 255, 0.06), transparent 55%);
  background-size: 420px 200px, cover, cover;
}

.cover--cover_stars {
  background-color: #141a38;
  color: var(--paper);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 28% 68%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 44% 34%, #ffe9a8, transparent),
    radial-gradient(1px 1px at 58% 78%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 71% 18%, #fff, transparent),
    radial-gradient(1px 1px at 86% 52%, #cfe0ff, transparent),
    radial-gradient(1.5px 1.5px at 93% 28%, #fff, transparent),
    radial-gradient(1px 1px at 6% 82%, #fff, transparent),
    radial-gradient(ellipse at 80% 120%, rgba(91, 140, 255, 0.35), transparent 60%);
}

.cover--cover_stars::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.8px 1.8px at 20% 40%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 52% 16%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 66% 60%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 90% 80%, #fff, transparent);
  animation: twinkle 3s ease-in-out infinite;
}

.cover--cover_waves {
  background-color: #f6f4ee;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24'%3E%3Cpath d='M0 12 Q 10 2 20 12 T 40 12 T 60 12 T 80 12' fill='none' stroke='%232c4f9e' stroke-opacity='.35' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 80px 24px;
}

.cover--cover_sunset {
  background-color: #f6c79c;
  background-image:
    radial-gradient(circle at 78% 115%, #ffe3a3 0 18%, transparent 18.5%),
    linear-gradient(170deg, #ffd9a8 0%, #f4a7a0 48%, #b9a3e6 100%);
}

/* Yangi stikerlar */
.sticker .st-window {
  fill: var(--pen-soft);
}

.sticker .st-flame {
  fill: var(--fire-2);
  stroke: var(--fire-1);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.sticker .st-dot-ink {
  fill: var(--ink);
}

.sticker .st-blush {
  fill: none;
  stroke: #e58aa0;
  stroke-width: 2;
  stroke-linecap: round;
}

.sticker .st-bolt {
  fill: #ffd45e;
}

/* Do'kondagi oldindan ko'rish: rangli ism va unvon */
.shop-item__nick {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
}

.shop-item__preview .title-chip {
  margin: 0;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .nc--color_sunset,
  .nc--color_ocean,
  .nc--color_gold,
  .nc--color_rainbow,
  .ava--frame_neon .ava__face,
  .cover--cover_stars::after {
    animation: none !important;
  }
}

/* Profil ustidan shikoyat */
.pf-report {
  font-size: 13px;
  color: var(--muted);
}

.report-reasons {
  display: grid;
  gap: 6px;
  margin: 14px 0 6px;
}

.report-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-size: 15px;
}

.report-reason:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 3px 0 0 var(--error);
}

.report-reason input {
  accent-color: var(--ink);
}

.qr-card__who .title-chip {
  margin: 4px 8px 4px 0;
  font-size: 10px;
}

/* Asoschilar */
.founders {
  container-type: inline-size;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.founders > div {
  display: grid;
  gap: 0;
}

.founders dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.founders dd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-family: var(--hand);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--pen);
  transform: rotate(-1.5deg);
  transform-origin: left;
}

/* Guruh — ism yonida kichik shtamp */
.grp {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  vertical-align: 0.25em;
  white-space: nowrap;
}

.founders .grp {
  flex: none;
  margin-left: 0;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--ink);
  transform: rotate(2deg);
}

/* Ism va guruh doim bir qatorda: tor ustunda ism shrifti biroz kichrayadi */
@supports (container-type: inline-size) {
  .founders dd span {
    white-space: nowrap;
  }
  .founders dd,
  .manifest__cols.swipe .founders dd {
    font-size: clamp(1rem, calc((100cqi - 70px) / 8.7), 1.6rem);
  }
}

.footer__founders .grp {
  color: var(--muted-on-ink);
  vertical-align: 0.15em;
}

.footer__founders {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-on-ink);
}

.footer__about p.footer__founders {
  font-size: 1.15rem;
  line-height: 1.45;
  font-variant-numeric: lining-nums;
}

.footer__founders b {
  color: var(--paper);
  font-weight: 500;
}

.footer__founders .nb {
  white-space: nowrap;
}

/* ==========================================================================
   STREAK mukofotlari: olovli bezaklar (sotib olinmaydi — seriya bilan beriladi)
   ========================================================================== */

/* Gulxan stikeri */
.sticker .st-wood {
  fill: #b8763e;
}

.sticker .st-fire-o {
  fill: var(--fire-1);
}

.sticker .st-fire-m {
  fill: var(--fire-2);
}

.sticker .st-fire-c {
  fill: var(--fire-3);
}

/* Olov ramkasi: yuz atrofida yonayotgan halqa */
.ava--frame_fire .ava__face {
  border-color: var(--fire-1);
  box-shadow: 0 0 calc(var(--s) * 0.16) calc(var(--s) * 0.02) rgba(255, 112, 20, 0.45);
  animation: fire-glow 1.8s ease-in-out infinite alternate;
}

@keyframes fire-glow {
  to {
    box-shadow: 0 0 calc(var(--s) * 0.24) calc(var(--s) * 0.05) rgba(255, 112, 20, 0.6);
  }
}

.fire-o {
  fill: var(--fire-1);
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.fire-m {
  fill: var(--fire-2);
}

.fire-c {
  fill: var(--fire-3);
}

.fire-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.6;
}

.fire-ring--in {
  stroke: var(--fire-2);
  stroke-width: 2;
}

/* Olovli muqova: pastdan ko'tarilayotgan alanga va uchqunlar */
.cover--cover_fire {
  background-color: #1f0e09;
  color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='120'%20height='34'%3E%3Cpath%20d='M-8%2034C-8%2023.2%202.9%2019.1%209.0%2010C13.1%2020.1%2026%2023.9%2026%2034ZM22%2034C22%2019.6%2031.6%2014.2%2037.0%202C40.6%2015.4%2052%2020.6%2052%2034ZM48%2034C48%2025.0%2059.5%2021.6%2066.0%2014C70.3%2022.4%2084%2025.6%2084%2034ZM80%2034C80%2020.5%2089.6%2015.4%2095.0%204C98.6%2016.6%20110%2021.4%20110%2034ZM112%2034C112%2023.2%20122.9%2019.1%20129.0%2010C133.1%2020.1%20146%2023.9%20146%2034Z'%20fill='%23ffc63d'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='64'%3E%3Cpath%20d='M-14%2064C-14%2041.5%202.0%2033.0%2011.0%2014C17.0%2035.0%2036%2043.0%2036%2064ZM26%2064C26%2036.1%2040.1%2025.6%2048.0%202C53.3%2028.0%2070%2038.0%2070%2064ZM60%2064C60%2046.0%2076.6%2039.2%2086.0%2024C92.2%2040.8%20112%2047.2%20112%2064ZM98%2064C98%2037.9%20112.7%2028.0%20121.0%206C126.5%2030.4%20144%2039.6%20144%2064ZM132%2064C132%2044.2%20145.4%2036.7%20153.0%2020C158.0%2038.5%20174%2045.5%20174%2064ZM146%2064C146%2041.5%20162.0%2033.0%20171.0%2014C177.0%2035.0%20196%2043.0%20196%2064Z'%20fill='%23ff7a14'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='220'%20height='96'%3E%3Cpath%20d='M-20%2096C-20%2056.4%202.4%2041.4%2015.0%208C23.4%2045.0%2050%2059.0%2050%2096ZM36%2096C36%2067.2%2055.2%2056.3%2066.0%2032C73.2%2058.9%2096%2069.1%2096%2096ZM82%2096C82%2053.7%20105.7%2037.7%20119.0%202C127.9%2041.5%20156%2056.5%20156%2096ZM140%2096C140%2069.9%20157.9%2060.0%20168.0%2038C174.7%2062.4%20196%2071.6%20196%2096ZM182%2096C182%2060.0%20202.5%2046.4%20214.0%2016C221.7%2049.6%20246%2062.4%20246%2096ZM200%2096C200%2056.4%20222.4%2041.4%20235.0%208C243.4%2045.0%20270%2059.0%20270%2096Z'%20fill='%23b8300c'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 90% 80% at 50% 115%, rgba(255, 132, 24, 0.75), rgba(226, 71, 15, 0.4) 45%, transparent 75%),
    linear-gradient(#1f0e09, #3b140a);
  background-repeat: repeat-x, repeat-x, repeat-x, no-repeat, no-repeat;
  background-position: 0 100%, 30px 100%, 70px 100%, center, center;
  background-size: 120px 30px, 160px 58px, 220px 88px, 100% 100%, 100% 100%;
  animation: fire-lick 2.4s ease-in-out infinite;
}

@keyframes fire-lick {
  50% {
    background-size: 120px 36px, 160px 50px, 220px 98px, 100% 100%, 100% 100%;
    background-position: 6px 100%, 24px 100%, 76px 100%, center, center;
  }
}

.cover--cover_fire::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 14% 30%, #ffd45e, transparent),
    radial-gradient(1.2px 1.2px at 38% 70%, #ff9a3c, transparent),
    radial-gradient(1.8px 1.8px at 61% 45%, #ffc63d, transparent),
    radial-gradient(1.2px 1.2px at 83% 82%, #ff9a3c, transparent),
    radial-gradient(1.4px 1.4px at 92% 20%, #ffd45e, transparent);
  background-size: 180px 160px;
  animation: embers 4.5s linear infinite;
}

@keyframes embers {
  to {
    background-position: 0 -160px;
  }
}

/* Olovli ism: rang pastdan tepaga "yonib" ko'tariladi, atrofida iliq nur */
.nc--color_fire {
  background-image: linear-gradient(0deg, #ffc63d 0%, #ff8418 22%, #e2470f 45%, #b8300c 52%, #ff8418 75%, #ffc63d 100%);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 0.18em rgba(255, 112, 20, 0.45));
  animation:
    fire-rise 1.6s linear infinite,
    fire-flicker 1.1s ease-in-out infinite alternate;
}

@keyframes fire-rise {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 -200%;
  }
}

@keyframes fire-flicker {
  to {
    filter: drop-shadow(0 -0.06em 0.3em rgba(255, 112, 20, 0.7));
  }
}

/* Do'kondagi STREAK bezaklari */
.shop-item--streak .shop-item__price {
  color: var(--fire-1);
}

.shop-item__price .flame {
  font-size: 15px;
  margin-right: 2px;
}

.shop-item__lock {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.shop-item__bar {
  height: 6px;
  border: 1px solid var(--ink);
  background: var(--white);
  overflow: hidden;
}

.shop-item__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--fire-3), var(--fire-1));
  transition: width 0.4s;
}

.shop-item__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px 2px 5px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-item__badge .flame {
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .ava--frame_fire .ava__face,
  .cover--cover_fire,
  .cover--cover_fire::after,
  .nc--color_fire {
    animation: none !important;
  }
}

/* STREAK sovg'asi — tabrik oynasi */
.gift .dialog__body {
  text-align: center;
  justify-items: center;
}

.gift h2 em {
  color: var(--fire-1);
}

.gift__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gift__label .flame {
  font-size: 16px;
}

.gift__stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  height: 150px;
  isolation: isolate;
}

.gift__rays {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg, rgba(255, 132, 24, 0.16) 0deg 9deg, transparent 9deg 22.5deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
  mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: spin 24s linear infinite;
}

.gift__stage .sticker {
  width: 112px;
  height: 112px;
}

.gift__stage .ava {
  --s: 92px;
}

.gift-cover {
  display: block;
  position: relative;
  width: 100%;
  height: 96px;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.gift__stage--cover .gift__rays {
  display: none;
}

.gift-nick {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 600;
}

.gift p {
  max-width: 34ch;
}

/* Kabinet: STREAK sovg'alari zinapoyasi */
.streak-gifts {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.streak-gifts h3 {
  font-size: 1.25rem;
}

.streak-gifts > p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.streak-gifts ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.streak-gift {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: center;
  position: relative;
}

.streak-gift__day {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.streak-gift__art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 54px;
  overflow: hidden;
}

.streak-gift__art .sticker {
  width: 46px;
  height: 46px;
}

.streak-gift__art .ava {
  --s: 34px;
}

.streak-gift__art .gift-cover {
  width: 86%;
  height: 40px;
}

.streak-gift__art .gift-nick {
  font-size: 1.15rem;
}

.streak-gift__name {
  font-size: 12px;
  line-height: 1.2;
}

.streak-gift__state {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.streak-gift:not(.is-owned) .streak-gift__art > * {
  filter: grayscale(0.7);
  opacity: 0.7;
}

.streak-gift.is-owned {
  border-color: var(--ink);
  background: var(--white);
}

.streak-gift.is-owned .streak-gift__state {
  color: var(--ink);
}

.streak-gift.is-next {
  border-color: var(--fire-1);
  border-style: dashed;
}

@media (prefers-reduced-motion: reduce) {
  .gift__rays {
    animation: none;
  }
}

/* Qorong'i muqovada ism muqova chetiga chiqib turadi — qog'oz rangli hoshiya bilan o'qiladi */
.pf-cover:is(.cover--cover_fire, .cover--cover_ink, .cover--cover_stars, .cover--cover_chalk) + .pf-head .pf-id {
  filter: drop-shadow(0 0 1px var(--paper)) drop-shadow(0 0 1px var(--paper)) drop-shadow(0 0 2.5px var(--paper));
}

/* ==========================================================================
   Bosh sahifa: "nima qilaman?" — birinchi soniyalarda aniq javob
   ========================================================================== */

/* Hero: almashinuv misoli — qog'oz chek, burchagida muhr */
.hero__side {
  justify-content: flex-end;
  gap: 34px;
}

.deal {
  position: relative;
  margin: 26px 0 0;
  padding: 20px 22px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: rotate(-1.4deg);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.35);
}

.deal__seal {
  position: absolute;
  top: -54px;
  right: -34px;
  width: 112px;
  margin: 0;
  border-radius: 50%;
  background: var(--ink);
  transform: rotate(10deg);
}

.deal__label {
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.deal__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.deal__row b {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
}

/* O'q: chiziq + uchi; ustida — qaysi fan beriladi (ko'k ruchkada) */
.deal__arrow {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
}

.deal__arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 2px;
  top: 50%;
  border-top: 1.5px solid var(--ink);
}

.deal__arrow::after {
  content: '';
  position: absolute;
  right: 1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
}

.deal__row--back .deal__arrow::before {
  left: 2px;
  right: 0;
}

.deal__row--back .deal__arrow::after {
  left: 1px;
  right: auto;
  transform: translateY(-50%) rotate(-135deg);
}

.deal__arrow span {
  position: relative;
  padding: 0 8px;
  background: var(--paper);
  font-family: var(--hand);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--pen);
  text-align: center;
}

.deal__foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* "Qanday o'tadi" — endi hero'dan keyin darhol */
.how__lead {
  margin-top: 16px;
  max-width: 52ch;
}

/* "Sinab ko'ring" */
.try__label {
  display: block;
  margin-bottom: 10px;
}

.try__pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 26px;
}

.try__field {
  display: grid;
  gap: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.try__field select {
  width: 100%;
  min-width: 0;
  padding: 9px 30px 9px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1c1a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

.try__live {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.try__live[hidden] {
  display: none;
}

.try__nums {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.try__nums > div {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.try__nums dt {
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-size: 2.4rem;
  line-height: 0.9;
  font-weight: 500;
}

.try__nums dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.try__nums .is-hit dt {
  color: var(--pen);
}

.try__msg {
  font-size: 14px;
}

.try .note--match {
  top: auto;
  right: 4px;
  margin-top: -30px;
}

@media (max-width: 1100px) {
  .hero__side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 40px;
  }
  .hero__side .seal {
    order: 0;
  }
}

@media (max-width: 860px) {
  .hero__side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .deal {
    margin: 30px 30px 0 0;
  }
  .hero__side .deal__seal {
    width: 92px;
    margin: 0;
    top: -44px;
    right: -26px;
  }
}

@media (max-width: 560px) {
  .deal__row b {
    font-size: 1.1rem;
  }
  .deal__arrow span {
    font-size: 1.25rem;
    padding: 0 5px;
  }
  .try__pick {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Almashinuv boshlandi: birinchi xabar namunasi */
.ice {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px dashed var(--ink);
  background: var(--white);
}

.ice__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.ice__head .link {
  font-size: 13px;
}

.ice__text {
  font-family: var(--hand);
  font-size: 1.3rem;
  line-height: 1.25;
  color: var(--pen);
}

/* ==========================================================================
   STREAK tiklash
   ========================================================================== */

.restore--dialog .dialog__body {
  justify-items: center;
  text-align: center;
}

.restore--dialog h2 em {
  color: var(--fire-1);
}

.restore--dialog p {
  max-width: 36ch;
}

.restore__big {
  display: grid;
  place-items: center;
  width: 110px;
  height: 120px;
  position: relative;
}

.restore__big .flame {
  font-size: 104px;
  transition: transform 0.4s var(--ease);
}

/* O'chgan olovdan "tutun" chiqib turadi */
.restore__big:not(.is-lit)::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 26px;
  height: 40px;
  margin-left: -13px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 70%, rgba(120, 112, 100, 0.35), transparent 70%);
  filter: blur(3px);
  animation: smoke 2.6s ease-in-out infinite;
}

@keyframes smoke {
  0% {
    transform: translateY(10px) scale(0.7);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(-18px) scale(1.3);
    opacity: 0;
  }
}

.restore__big.is-lit .flame {
  animation: relight 0.7s var(--ease);
}

@keyframes relight {
  0% {
    transform: scale(0.4);
    opacity: 0.2;
  }
  70% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.restore__left {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fire-1);
}

.restore__action {
  display: grid;
  gap: 6px;
  justify-items: inherit;
}

.restore__btn {
  gap: 8px;
}

.restore__btn .flame {
  font-size: 18px;
}

.restore__price,
.restore__need {
  font-size: 13px;
  color: var(--muted);
}

.restore__need {
  color: var(--error);
}

.restore.is-gone {
  opacity: 0.5;
  pointer-events: none;
}

/* Kabinetda: STREAK kartochkasi tepasida */
.restore--inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: -6px -6px 18px;
  padding: 14px;
  border: 1.5px dashed var(--fire-1);
  background: #fff6ee;
}

.restore--inline .restore__flame .flame {
  font-size: 46px;
}

.restore__body {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.restore__body b {
  font-weight: 500;
}

.restore--inline .restore__btn {
  margin-top: 4px;
  padding: 10px 18px;
  font-size: 14px;
}

.restore-rules {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}

.restore-rules summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}

.restore-rules p {
  margin-top: 8px;
}

.restore-rules__month {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .restore__big::after,
  .restore__big.is-lit .flame {
    animation: none !important;
  }
}

/* ==========================================================================
   Darslar: almashinuv ichida vaqt va joy, "bo'ldimi?"
   ========================================================================== */

.lesson {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  background: var(--white);
  display: grid;
  gap: 8px;
}

.lesson__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.lesson__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--pen);
}

.lesson__next {
  font-size: 16px;
}

.lesson__next b {
  font-weight: 600;
}

.lesson__hint {
  font-size: 13px;
  color: var(--muted);
}

.lesson__form {
  display: grid;
  gap: 10px;
}

.lesson__when {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 8px;
}

.lesson__form label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.lesson__form .input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.lesson__chips {
  gap: 6px;
}

.lesson__chips .filter {
  padding: 6px 12px;
  font-size: 13px;
}

.lesson__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

/* ==========================================================================
   Bo'sh vaqt: kartochkada 7 kun × 3 qism
   ========================================================================== */

.free {
  margin: 22px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px dashed var(--line);
  min-width: 0;
}

.free__title {
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.free__title small {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.free__grid {
  display: grid;
  grid-template-columns: minmax(74px, auto) repeat(7, minmax(30px, 1fr));
  gap: 4px;
  max-width: 560px;
}

.free__day {
  font-family: var(--mono);
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  text-transform: uppercase;
}

.free__part {
  display: grid;
  align-content: center;
  font-size: 13px;
  line-height: 1.1;
}

.free__part b {
  font-weight: 500;
}

.free__part small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}

.free__cell {
  height: 34px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.free__cell:hover {
  border-color: var(--ink);
}

.free__cell[aria-pressed='true'] {
  background: var(--pen);
  border-color: var(--pen);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 2.5px, transparent 3px);
}

.match__free {
  margin-top: 8px;
  font-size: 13px;
  color: var(--pen);
}

.tag--muted {
  opacity: 0.55;
}

/* ==========================================================================
   Tengdosh-ustoz sertifikatlari
   ========================================================================== */

.pf-certs .pf-empty {
  margin: -4px 0 16px;
}

.cert-levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cert-level {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
}

.cert-level::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--lvl, var(--line));
}

.cert-level--10 {
  --lvl: #8c6133;
}

.cert-level--25 {
  --lvl: #6b7887;
}

.cert-level--50 {
  --lvl: #b08d2e;
}

.cert-level.is-ready {
  border-color: var(--ink);
}

.cert-level.is-issued {
  border-color: var(--lvl);
  background: linear-gradient(180deg, #fffdf7, var(--white));
}

.cert-level__head {
  display: grid;
  gap: 2px;
}

.cert-level__head b {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}

.cert-level__head span,
.cert-level small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.cert-level__bar {
  height: 6px;
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
}

.cert-level__bar i {
  display: block;
  height: 100%;
  background: var(--lvl);
}

.cert-level__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.cert-level__left {
  font-size: 13px;
  color: var(--muted);
}

.cert-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-badge {
  display: inline-grid;
  gap: 1px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--ink);
  border-left: 4px solid var(--lvl, var(--ink));
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
}

.cert-badge--10 {
  --lvl: #8c6133;
}

.cert-badge--25 {
  --lvl: #6b7887;
}

.cert-badge--50 {
  --lvl: #b08d2e;
}

.cert-badge b {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.cert-badge small {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tekshirish sahifasi */
.cert-page {
  padding-top: clamp(32px, 6vw, 72px);
  padding-bottom: clamp(48px, 8vw, 96px);
  max-width: 820px;
}

.cert-check {
  margin-top: 18px;
  display: grid;
  gap: 22px;
}

.cert-verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1.5px solid #1d7a4c;
  background: #eef7f1;
}

.cert-verdict.is-bad {
  border-color: var(--error);
  background: #fbefec;
}

.cert-verdict__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1d7a4c;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
}

.cert-verdict.is-bad .cert-verdict__mark {
  background: var(--error);
}

.cert-verdict h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.05;
}

.cert-verdict p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.cert-card {
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--ink);
  background: #fbf8f1;
  box-shadow: 10px 10px 0 var(--paper-3);
  position: relative;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--lvl, var(--line));
  pointer-events: none;
}

.cert-card--10 {
  --lvl: #8c6133;
}

.cert-card--25 {
  --lvl: #6b7887;
}

.cert-card--50 {
  --lvl: #b08d2e;
}

.cert-card__level {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lvl);
}

.cert-card__name {
  margin-top: 6px;
  font-style: italic;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
}

.cert-card__school {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.cert-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.cert-card__facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.cert-card__facts dd {
  margin: 2px 0 0;
  font-size: 16px;
}

.cert-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 22px;
}

.cert-page__note {
  font-size: 13px;
  color: var(--muted);
}

.cert-find {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}

.cert-find .field {
  flex: 1 1 220px;
}

@media (max-width: 720px) {
  .cert-levels {
    grid-template-columns: minmax(0, 1fr);
  }
  .cert-card__facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Video qo'ng'iroq
   ========================================================================== */

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(242, 240, 234, 0.55);
}

.btn--ghost-light:hover {
  border-color: var(--paper);
}

.contact__cam {
  display: inline-block;
  width: 16px;
  height: 11px;
  margin-right: 8px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.contact__cam::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 1px;
  border: 3.5px solid transparent;
  border-left: 5px solid currentColor;
  transform: rotate(180deg);
}

.page-call .footer,
.page-call .tabbar {
  display: none;
}

.call {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  background: #0f0f0e;
  color: var(--paper);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.call__stage {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.call__remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f0f0e;
}

body:not([data-call-phase='live']) .call__remote {
  visibility: hidden;
}

.call__local {
  position: absolute;
  right: 14px;
  top: 14px;
  width: clamp(110px, 22vw, 220px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 2px solid rgba(242, 240, 234, 0.85);
  border-radius: 12px;
  background: #222;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.call__local.is-mirror {
  transform: scaleX(-1);
}

body[data-call-phase='pre'] .call__local,
body[data-call-phase='waiting'] .call__local {
  position: relative;
  right: auto;
  top: auto;
  width: min(78vw, 360px);
  aspect-ratio: 4 / 3;
  margin: 24px auto 0;
}

body[data-call-phase='pre'] .call__stage,
body[data-call-phase='waiting'] .call__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.call__status {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 460px;
  padding: 16px;
  text-align: center;
}

.call__status[hidden] {
  display: none;
}

.call__status h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.05;
}

.call__status p {
  color: rgba(242, 240, 234, 0.75);
  font-size: 15px;
}

.call__who .ava {
  --s: 96px;
}

.call__who .ava__face {
  background: #2a2926;
  color: var(--paper);
  border-color: var(--paper);
}

.call__who.is-pulse .ava__face {
  animation: call-pulse 1.8s ease-out infinite;
}

@keyframes call-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(159, 182, 236, 0.55);
  }
  100% {
    box-shadow: 0 0 0 26px rgba(159, 182, 236, 0);
  }
}

.call__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.call__actions .btn svg {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.call__again {
  color: var(--paper);
}

.call__bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: #171716;
  border-top: 1px solid #2a2926;
}

.call__bar[hidden] {
  display: none;
}

.call__btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #3b3a36;
  background: #2a2926;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.call__btn:active {
  transform: scale(0.94);
}

.call__btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.call__btn.is-off {
  background: var(--paper);
  color: var(--ink);
}

.call__btn.is-on {
  background: var(--pen);
  border-color: var(--pen);
}

.call__btn--hang {
  background: #c3322b;
  border-color: #c3322b;
}

.call__btn--hang svg {
  fill: currentColor;
  stroke: none;
}

.call__clock {
  font-family: var(--mono);
  font-size: 14px;
  min-width: 56px;
  color: rgba(242, 240, 234, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .call__who.is-pulse .ava__face {
    animation: none;
  }
}

body[data-call-phase='ended'] .call__local,
body[data-call-phase='error'] .call__local {
  display: none;
}

@media (max-width: 480px) {
  .call__bar {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .call__btn {
    width: 48px;
    height: 48px;
  }
  .call__btn svg {
    width: 21px;
    height: 21px;
  }
  .call__clock {
    min-width: 0;
    font-size: 12px;
  }
}

/* ==========================================================================
   Hafta fani
   ========================================================================== */

.theme-wrap {
  margin-top: -28px;
  margin-bottom: -28px;
  position: relative;
  z-index: 2;
}

.theme-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border: 1.5px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--pen);
}

.matches-body > .theme-strip,
#matches-body > .theme-strip {
  margin-bottom: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  box-shadow: 6px 6px 0 var(--pen-soft);
}

.theme-strip__stamp {
  display: block;
  width: 84px;
  height: 84px;
  flex: none;
  color: var(--pen);
  transform: rotate(-8deg);
}

.theme-strip__seal {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.theme-strip__seal .seal-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
}

.theme-strip__seal .seal-ring--in {
  stroke-width: 1.3;
}

.theme-strip__seal .seal-top,
.theme-strip__seal .seal-bottom {
  fill: currentColor;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 1.2px;
}

.theme-strip__seal .seal-top {
  font-size: 11.5px;
}

.theme-strip__seal .seal-bottom {
  font-size: 9.5px;
  letter-spacing: 2px;
  opacity: 0.8;
}

.theme-strip__seal .seal-star {
  fill: currentColor;
}

.theme-strip__seal .seal-x {
  fill: currentColor;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
}

.theme-strip__body b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.theme-strip__body p {
  margin-top: 2px;
  font-size: 14px;
}

.theme-strip__body small {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .theme-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .theme-strip > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .theme-strip__stamp {
    width: 76px;
    height: 76px;
  }
}

/* ==========================================================================
   Til sertifikatlari (IELTS / CEFR / SAT)
   ========================================================================== */

.cert-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 9px;
  border: 1.5px solid var(--pen);
  border-radius: 999px;
  background: var(--white);
  color: var(--pen);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}

.cert-chip.is-unverified {
  border-style: dashed;
  border-color: var(--muted);
  color: var(--muted);
}

.cert-chip i {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--pen);
  color: #fff;
  font-style: normal;
  font-size: 9px;
}

.match__name .cert-chip {
  margin-left: 8px;
}

.pf-certchip {
  display: block;
  margin-top: 8px;
}

.pf-certchip .cert-chip {
  font-size: 12.5px;
  padding: 4px 10px 4px 11px;
}

.lc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lc-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.lc-list small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--pen);
}

.lc-status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lc-status--approved {
  color: #1d7a4c;
}

.lc-status--rejected {
  color: var(--error);
}

.lc-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.lc-dialog .dialog__body {
  gap: 14px;
}

/* Grid ichidagi input/select o'z "tabiiy" kengligi bilan dialogni yorib chiqmasin */
.lc-form,
.lc-fields,
.lc-photo {
  grid-template-columns: minmax(0, 1fr);
}

.lc-form .input,
.lc-form .select,
.lc-file {
  min-width: 0;
  width: 100%;
}

.lc-types {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
}

.lc-types button {
  justify-content: center;
  text-align: center;
  line-height: 1.15;
  padding: 8px 14px;
}

.lc-fields {
  display: grid;
  gap: 10px;
}

.lc-row2,
.lc-row3,
.lc-row4 {
  display: grid;
  gap: 8px;
}

.lc-row2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lc-row3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lc-row4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lc-form .label {
  font-size: 10.5px;
}

.lc-photo {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px dashed var(--ink);
  background: var(--white);
}

.lc-photo small {
  font-size: 12px;
  color: var(--muted);
}

.lc-photo__preview {
  display: grid;
  gap: 4px;
}

.lc-photo__preview img {
  max-height: 160px;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--line);
}

.lc-photo__preview small {
  color: #1d7a4c;
}

.lc-result {
  padding: 12px 14px;
  border: 1.5px solid var(--error);
  background: #fbefec;
  font-size: 14px;
}

.lc-result ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.lc-check--warn {
  color: var(--muted);
}

@media (max-width: 560px) {
  .lc-row4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lc-row3 {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* =====================================================================
   Tungi rejim. Oq qog'oz o'rniga — iliq grafit, siyoh o'rniga — krem.
   Qora bloklar (sarlavha, footer, .dark bo'limlar) yanada chuqurroq qora bo'lib qoladi
   va ichida kunduzgi ranglar ishlaydi — shuning uchun ulardagi qog'oz kartochkalar o'zgarmaydi.
   ===================================================================== */
:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #ebe6da;
  --ink-2: #dcd6c9;
  --ink-3: #bdb6a7;
  --graphite: #cfc8b9;
  --paper: #1a1917;
  --paper-2: #24231f;
  --paper-3: #2f2d29;
  --sand: #22211e;
  --white: #23221f;
  --muted: #a49e92;
  --line: #3b3934;
  --pencil: #bab3a4;
  --tape: rgba(150, 140, 116, 0.4);
  --error: #f08f7c;
  --pen: #93adf1;
  --pen-soft: #252f4a;
  --margin-red: #db7569;
  --surface-sunk: #151413;
}

:root[data-theme='dark'] :is(.dark, .site-footer, .contact, .toast, .wallet__card, .card-side--give, .top-me, .scan__frame, .match-card, .call) {
  color-scheme: dark;
  --ink: #0f0e0d;
  --ink-2: #1b1a18;
  --ink-3: #2a2925;
  --graphite: #171614;
  --paper: #ece7dc;
  --paper-2: #e7e1d3;
  --paper-3: #d9d2c2;
  --sand: #e7e1d3;
  --white: #fbf9f4;
  --muted: #6f6a60;
  --line: #cdc6b6;
  --pencil: #57534b;
  --tape: rgba(222, 213, 191, 0.82);
  --error: #a8392c;
  --pen: #2c4f9e;
  --pen-soft: #dfe6f4;
  --margin-red: #b5463c;
}

:root[data-theme='dark'] body::after {
  opacity: 0.04;
}

/* Kunduzgi / tungi rejim tugmasi (sarlavhada) */
.theme-toggle {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-on-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

.theme-toggle:hover {
  border-color: var(--paper);
}

.theme-toggle:active {
  transform: rotate(-25deg) scale(0.94);
}

@media (max-width: 860px) {
  .site-header .theme-toggle {
    width: 44px;
    height: 44px;
    margin-right: -16px; /* burger bilan oraliq — 12px */
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* --- Tungi rejim: qattiq yozilgan ranglar uchun moslashtirish --- */
:root[data-theme='dark'] .offer p {
  color: var(--ink-3);
}

:root[data-theme='dark'] .textarea::placeholder {
  color: #77726a;
}

:root[data-theme='dark'] .manifest__text em {
  background: linear-gradient(transparent 58%, rgba(147, 173, 241, 0.26) 58%, rgba(147, 173, 241, 0.26) 90%, transparent 90%);
}

:root[data-theme='dark'] .section--sand .match-card {
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.45);
}

:root[data-theme='dark'] .leaderboard li.is-me {
  background: linear-gradient(transparent 12%, rgba(222, 205, 160, 0.13) 12%, rgba(222, 205, 160, 0.13) 88%, transparent 88%);
}

:root[data-theme='dark'] .podium__slot.is-me .podium__name {
  background: linear-gradient(transparent 55%, rgba(222, 205, 160, 0.22) 55%);
}

:root[data-theme='dark'] .flame--off .flame__o {
  fill: #3f3c37;
  stroke: #6c675e;
}

:root[data-theme='dark'] .flame--off .flame__m {
  fill: #4b4842;
}

:root[data-theme='dark'] .flame--off .flame__i {
  fill: #58554e;
}

/* Muqovalar: qog'oz — qorong'i qog'oz, chiziqlar — yorug'roq */
:root[data-theme='dark'] .cover--cover_grid {
  background-color: #1e1d1a;
  background-image:
    linear-gradient(rgba(147, 173, 241, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 173, 241, 0.16) 1px, transparent 1px);
}

:root[data-theme='dark'] .cover--cover_lines {
  background-color: #1e1d1a;
  background-image:
    linear-gradient(90deg, transparent 52px, var(--margin-red) 52px, var(--margin-red) 53.5px, transparent 53.5px),
    repeating-linear-gradient(transparent 0 25px, rgba(147, 173, 241, 0.2) 25px 26px);
}

:root[data-theme='dark'] .cover--cover_dots {
  background-image: radial-gradient(circle, rgba(235, 230, 218, 0.26) 1.1px, transparent 1.7px);
}

:root[data-theme='dark'] .cover--cover_news {
  background-color: #22201c;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 128px, #22201c 128px 146px),
    repeating-linear-gradient(transparent 0 7px, rgba(235, 230, 218, 0.1) 7px 9px);
}

:root[data-theme='dark'] .cover--cover_ink {
  background-color: #0f0e0d;
  color: #ece7dc;
}

:root[data-theme='dark'] .cover--cover_waves {
  background-color: #1e1d1a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='24'%3E%3Cpath d='M0 12 Q 10 2 20 12 T 40 12 T 60 12 T 80 12' fill='none' stroke='%2393adf1' stroke-opacity='.3' stroke-width='1.6'/%3E%3C/svg%3E");
}

:root[data-theme='dark'] .cover--cover_sunset {
  filter: saturate(0.85) brightness(0.82);
}

/* Rahmat xatlari — qorong'i qog'oz varaqlar */
:root[data-theme='dark'] .thank {
  background: #282622;
  box-shadow: 0 1px 0 #11100f, 3px 4px 0 #11100f;
}

:root[data-theme='dark'] .thank:nth-child(3n + 2) {
  background: #2d2a25;
}

/* Rangli taxalluslar va unvonlar: qorong'i fonda o'qiladigan ochroq tuslar */
:root[data-theme='dark'] .nc--color_blue {
  color: #7ea6ff;
}

:root[data-theme='dark'] .nc--color_red,
:root[data-theme='dark'] .title-chip--title_olymp {
  color: #ff7d70;
}

:root[data-theme='dark'] .nc--color_green,
:root[data-theme='dark'] .title-chip--title_polyglot {
  color: #62d39a;
}

:root[data-theme='dark'] .nc--color_amber,
:root[data-theme='dark'] .title-chip--title_genius {
  color: #f2a948;
}

:root[data-theme='dark'] .nc--color_violet,
:root[data-theme='dark'] .title-chip--title_owl {
  color: #b99bff;
}

:root[data-theme='dark'] .nc--color_sunset {
  background-image: linear-gradient(90deg, #ff7a45, #ff5c9a, #a685ff, #ff5c9a, #ff7a45);
}

:root[data-theme='dark'] .nc--color_ocean {
  background-image: linear-gradient(90deg, #58a8ff, #3fd0d0, #93adf1, #3fd0d0, #58a8ff);
}

:root[data-theme='dark'] .nc--color_gold {
  background-image: linear-gradient(90deg, #c9952f, #f0c25a, #ffe7a6, #f0c25a, #c9952f);
}

:root[data-theme='dark'] .nc--color_rainbow {
  background-image: linear-gradient(90deg, #ff6b6b, #ff9f43, #f7d038, #4fd17c, #5aa2ff, #b18cff, #ff6b6b);
}

:root[data-theme='dark'] .orbit-planet {
  fill: #93adf1;
}

/* Xabar va natija bloklari */
:root[data-theme='dark'] .restore--inline {
  background: #2b221b;
}

:root[data-theme='dark'] .cert-level.is-issued {
  background: linear-gradient(180deg, #2b2823, var(--white));
}

:root[data-theme='dark'] .cert-verdict {
  border-color: #4fbf86;
  background: #15261d;
}

:root[data-theme='dark'] .cert-verdict.is-bad {
  border-color: var(--error);
  background: #2d1a17;
}

:root[data-theme='dark'] .cert-card {
  background: var(--white);
}

:root[data-theme='dark'] .cert-chip i {
  color: var(--paper);
}

:root[data-theme='dark'] :is(.lc-status--approved, .lc-photo__preview small) {
  color: #62d39a;
}

:root[data-theme='dark'] .lc-result {
  background: #2d1a17;
}

:root[data-theme='dark'] :is(.match-card, .wallet__card) {
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.45);
}

/* Oyna fon ustida "ko'tarilgan" ko'rinsin */
:root[data-theme='dark'] .dialog {
  background: #201f1c;
  box-shadow: 0 0 0 1px #34322d, 18px 18px 0 rgba(0, 0, 0, 0.5);
}


/* O'quv joyi: 4 variant (telefonda 2×2) */
.segment--edu {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.segment--edu label + label {
  border-left: 1px solid var(--ink);
}

.segment--edu span {
  font-size: 1.35rem;
  padding: 10px 8px;
  text-align: center;
}

@media (max-width: 560px) {
  .segment--edu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .segment--edu label:nth-child(3) {
    border-left: 0;
  }
  .segment--edu label:nth-child(n + 3) {
    border-top: 1px solid var(--ink);
  }
  .segment--edu span {
    min-height: 56px;
  }
}

/* Tug'ilgan sana: kun / oy / yil */
.birth {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 10px;
}

.field__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* =====================================================================
   Sovg'alar (Telegram'dagi kabi) va tug'ilgan kun
   ===================================================================== */
.pr-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 80%;
}

/* Sovg'a paydo bo'lishi: yengil "sakrash" bilan kattalashadi (ichki harakat — SVG ning o'zida) */
@keyframes pr-pop {
  0% { transform: scale(0.55) rotate(-8deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

@keyframes pr-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4%) rotate(-2deg); }
}

/* Devor */
.pr-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.pr-tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  background: color-mix(in srgb, var(--pr-tint) 14%, var(--white));
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.2s;
}

.pr-tile:hover {
  transform: translateY(-3px);
  border-color: var(--pr-tint);
}

.pr-tile__art {
  width: 70px;
  height: 70px;
}

.pr-tile .pr-art {
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.pr-tile:hover .pr-art {
  transform: scale(1.08);
}

.pr-view__stage .pr-art,
.pr-pick__stage .pr-art,
.pr-bday__art .pr-art {
  animation: pr-pop 0.55s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.pr-tile__from {
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  font-size: 11.5px;
  color: var(--muted);
}

.pr-tile__from > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pr-tile__from .ava {
  --s: 18px;
  flex: none;
}

.pr-tile__ribbon {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 14px;
}

.pr-tile.is-hidden {
  opacity: 0.45;
  border-style: dashed;
}

.pr-wall__give {
  margin-top: 14px;
}

.pr-empty {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.pr-empty__art {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  opacity: 0.85;
}

.pr-empty p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.pr-empty .btn {
  justify-self: start;
}

/* Sovg'a oynalari */
.pr-dialog {
  max-width: min(460px, calc(100vw - 24px));
  border-radius: 22px;
  overflow: hidden;
}

.pr-view__body {
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.pr-view__stage,
.pr-pick__stage {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--pr-tint) 34%, transparent) 0, transparent 68%);
}

.pr-view__stage svg,
.pr-pick__stage svg {
  width: 116px;
  height: 116px;
}

.pr-view__name {
  font-size: 2rem;
  margin: 0;
}

.pr-view__from {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.pr-view__from .nm {
  color: var(--ink);
  font-weight: 500;
}

.pr-view__msg {
  margin: 4px 0 0;
  padding: 10px 14px;
  max-width: 34ch;
  border-left: 3px solid var(--pr-tint, var(--pen));
  background: var(--paper-2);
  font-family: var(--hand);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--pen);
  text-align: left;
}

.pr-view__date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.pr-view .dialog__actions {
  justify-content: center;
}

.pr-pick__body {
  gap: 14px;
}

.pr-pick__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pr-pick__head b {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.1;
}

.pr-pick__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pr-pick__stage {
  flex: none;
  width: 120px;
  height: 120px;
}

.pr-pick__stage svg {
  width: 96px;
  height: 96px;
}

.pr-pick__name {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.05;
}

.pr-pick__bal {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.pr-pick__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pr-pick__item {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 2px 5px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--white);
  background: color-mix(in srgb, var(--pr-tint) 13%, var(--white));
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.pr-pick__item > span {
  width: 44px;
  height: 44px;
}

.pr-pick__item small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--mono);
  font-size: 11px;
}

.pr-pick__item small .coin {
  width: 12px;
  height: 12px;
}

.pr-pick__item[aria-checked='true'] {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--pr-tint) 45%, transparent);
}

.pr-pick__item.is-poor {
  opacity: 0.45;
}

.pr-pick__msg {
  min-height: 0;
  resize: none;
}

.pr-pick__count {
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.pr-pick__note {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.pr-pick .btn .coin {
  width: 18px;
  height: 18px;
}

@media (max-width: 420px) {
  .pr-pick__item > span {
    width: 38px;
    height: 38px;
  }
  .pr-pick__grid {
    gap: 6px;
  }
}

/* Profil: "Sovg'a qilish" tugmasi tug'ilgan kunda — bayramona */
.pr-give svg {
  width: 16px;
  height: 16px;
}

.pr-give.is-bday {
  background: #e2456a;
  border-color: #e2456a;
  color: #fff;
}

/* Tug'ilgan kun lentasi (profil) */
.pf-bday {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0 8px;
  padding: 10px 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  font-size: 14px;
}

.pf-bday p {
  margin: 0;
  color: var(--muted);
}

.pf-bday b {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.pf-bday.is-today {
  border: 0;
  padding: 14px 16px;
  background: linear-gradient(110deg, color-mix(in srgb, #ff8fb1 26%, var(--white)), color-mix(in srgb, #ffc93c 22%, var(--white)));
}

.pf-bday.is-today .btn {
  margin-left: auto;
  flex: none;
}

.pf-bday__art {
  flex: none;
  width: 58px;
  height: 58px;
}

.pf-bday__icon {
  font-size: 22px;
}

@media (max-width: 560px) {
  .pf-bday.is-today {
    flex-wrap: wrap;
  }
  .pf-bday.is-today > div {
    flex: 1 1 60%;
  }
  .pf-bday.is-today .btn {
    margin-left: 72px;
  }
}

/* Tug'ilgan sanani kiritish (eski a'zolar) */
.pf-birth {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1.5px dashed var(--pen);
  border-radius: 16px;
  background: var(--pen-soft);
}

.pf-birth__art {
  width: 64px;
  height: 64px;
}

.pf-birth b {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
}

.pf-birth p {
  margin: 2px 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.pf-birth__form {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.pf-birth__form .birth {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
}

.pf-birth .select {
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .pf-birth {
    grid-template-columns: 1fr;
  }
  .pf-birth__art {
    width: 52px;
    height: 52px;
  }
}

/* Do'stlar ro'yxatida tort belgisi */
.friend__bday {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}

.friend__bday.is-today {
  font-size: 18px;
  animation: pr-bob 2.4s ease-in-out infinite;
}

/* Kabinet: bugun tug'ilgan do'stlar */
.cab-bdays {
  margin: 14px 0 6px;
}

.fbday {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(110deg, color-mix(in srgb, #3d8bff 16%, var(--white)), color-mix(in srgb, #ff8fb1 18%, var(--white)));
}

.fbday__art {
  flex: none;
  width: 46px;
  height: 46px;
}

.fbday__body b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.fbday__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
}

.fbday__who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 14px;
}

.fbday__who small {
  color: var(--pen);
  font-size: 12px;
  text-decoration: underline;
}

/* O'z tug'ilgan kuni: tabrik oynasi */
.pr-bday {
  max-width: min(420px, calc(100vw - 24px));
  overflow: hidden;
}

.pr-bday__body {
  position: relative;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.pr-bday__art {
  width: 150px;
  height: 150px;
}

.pr-bday h2 {
  font-size: 2.3rem;
  margin: 0;
}

.pr-bday__coins {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  font-family: var(--mono);
  font-size: 1.3rem;
}

.pr-bday__coins .coin {
  width: 26px;
  height: 26px;
}

.pr-bday .dialog__actions {
  justify-content: center;
}

.pr-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pr-confetti i {
  position: absolute;
  top: -12px;
  width: 7px;
  height: 12px;
  border-radius: 2px;
  opacity: 0.9;
  animation: pr-fall linear infinite;
}

@keyframes pr-fall {
  from { transform: translateY(-20px) rotate(0); }
  to { transform: translateY(620px) rotate(540deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pr-art,
  .friend__bday.is-today {
    animation: none !important;
  }
}

/* Tungi rejimda yorug' fonlarni yumshatamiz */
:root[data-theme='dark'] .pf-bday.is-today {
  background: linear-gradient(110deg, #3a2430, #3a3020);
}

:root[data-theme='dark'] .fbday {
  background: linear-gradient(110deg, #1f2a40, #3a2430);
}

:root[data-theme='dark'] .pr-tile,
:root[data-theme='dark'] .pr-pick__item {
  background: color-mix(in srgb, var(--pr-tint) 16%, var(--white));
}

/* Sovg'a yuborilganda: sakrab, uchqunlar bilan yuqoriga uchib ketadi */
.pr-pick__stage {
  position: relative;
}

.pr-pick.is-sent .pr-pick__stage .pr-art {
  animation: pr-send 0.75s cubic-bezier(0.3, 0.7, 0.4, 1) forwards;
}

@keyframes pr-send {
  0% { transform: scale(1); }
  30% { transform: scale(1.28) rotate(-8deg); }
  100% { transform: translateY(-90px) scale(0.5) rotate(12deg); opacity: 0; }
}

.pr-burst {
  position: absolute;
  inset: 50% auto auto 50%;
  pointer-events: none;
}

.pr-burst i {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  animation: pr-burst 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

.pr-burst i:nth-child(3n) {
  width: 5px;
  height: 11px;
  border-radius: 2px;
}

@keyframes pr-burst {
  0% { transform: translate(0, 0) scale(0.4); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1) rotate(200deg); opacity: 0; }
}

/* ---------- Yillik medal ---------- */
.md-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.md-tile {
  --md: #e9b437;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--md) 14%, var(--white));
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.2s;
}

.md-tile:hover {
  transform: translateY(-3px);
  border-color: var(--md);
}

.md--silver {
  --md: #a9b2c0;
}

.md--bronze {
  --md: #c47a3c;
}

.md-tile__art {
  width: 52px;
  height: 61px;
  flex: none;
}

.md-tile__art svg,
.md-view__stage svg,
.md-ny__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.md-tile__text {
  display: grid;
  gap: 2px;
}

.md-tile__text b {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.md-tile__text small {
  color: var(--muted);
  font-size: 12.5px;
}

.md-view__body,
.md-ny__body {
  position: relative;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.md-view__stage {
  width: 150px;
  height: 175px;
  background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--md) 40%, transparent) 0, transparent 62%);
}

.md-view__stage svg,
.md-ny__art svg {
  animation: pr-pop 0.6s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.md-view__title,
.md-ny h2 {
  margin: 0;
  font-size: 2.1rem;
}

.md-view__lead,
.md-ny__lead {
  margin: 0;
  text-wrap: balance;
  color: var(--muted);
  max-width: 34ch;
}

.md-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 4px 0 0;
}

.md-stat {
  display: grid;
  gap: 2px;
  padding: 9px 6px;
  border-radius: 12px;
  background: var(--paper-2);
  min-width: 0;
}

.md-stat dt {
  order: 2;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--muted);
}

.md-stat dd {
  order: 1;
  margin: 0;
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 500;
}

.md-stat dd small {
  font-size: 0.7em;
  color: var(--muted);
}

.md-stat--place {
  background: color-mix(in srgb, var(--md, #e9b437) 26%, var(--paper-2));
}

/* Oxirgi qatordagi yolg'iz kataklar qatorni to'ldiradi */
.md-stat:last-child:nth-child(3n + 1) {
  grid-column: span 3;
}

.md-stat:last-child:nth-child(3n + 2) {
  grid-column: span 2;
}

.md-view__coins {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.md-view__coins .coin {
  width: 18px;
  height: 18px;
}

.md-view .dialog__actions,
.md-ny .dialog__actions {
  justify-content: center;
}

/* Yangi yil tabrigi: tungi osmon, mushaklar va qor */
.md-ny {
  max-width: min(440px, calc(100vw - 24px));
  background: linear-gradient(180deg, #0d1430 0%, #1b1a48 52%, #2e1a3c 100%);
  color: #f6f1e6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.md-ny .label--muted,
.md-ny .md-ny__lead,
.md-ny .md-stat dt,
.md-ny .md-stat dd small {
  color: rgba(246, 241, 230, 0.68);
}

.md-ny h2 em {
  color: #ffd45c;
}

.md-ny__art {
  width: 104px;
  height: 121px;
  filter: drop-shadow(0 0 22px rgba(255, 212, 92, 0.35));
}

.md-ny .md-stat {
  background: rgba(255, 255, 255, 0.07);
}

.md-ny .md-stat--place {
  background: rgba(255, 212, 92, 0.18);
}

.md-ny .pr-bday__coins {
  background: rgba(255, 212, 92, 0.16);
  color: #ffe7a0;
}

.md-ny .btn {
  background: #ffd45c;
  border-color: #ffd45c;
  color: #1c1505;
}

.md-ny .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #f6f1e6;
}

.md-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.md-ny__body {
  z-index: 1;
}

.md-sky > b {
  position: absolute;
  top: -10px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #fff;
  opacity: 0.75;
  animation: md-snow linear infinite;
}

@keyframes md-snow {
  from { transform: translate(0, -10px); }
  50% { transform: translate(14px, 320px); }
  to { transform: translate(-6px, 660px); }
}

.md-firework {
  position: absolute;
  width: 0;
  height: 0;
  animation: md-fw 2.7s ease-out infinite both;
}

.md-firework i {
  position: absolute;
  left: -1.5px;
  top: 0;
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(var(--c), transparent);
  transform: rotate(var(--a)) translateY(8px);
  transform-origin: 50% 0;
}

@keyframes md-fw {
  0% { transform: scale(0.1); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: scale(1.4); opacity: 1; }
  70%, 100% { transform: scale(1.7) translateY(6px); opacity: 0; }
}

@media (max-width: 420px) {
  .md-stat {
    padding: 8px 4px;
  }

  .md-stat dd {
    font-size: 1.1rem;
  }
}

.md-ny .dialog__body {
  gap: 8px;
  padding: 22px 18px 20px;
}

.md-ny h2 {
  font-size: 1.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .md-view__stage svg,
  .md-ny__art svg {
    animation: none !important;
  }
}

:root[data-theme='dark'] .md-tile {
  background: color-mix(in srgb, var(--md) 14%, var(--white));
}

/* ==========================================================================
   v7: qishki va bahorgi bezaklar — ramkalar, muqovalar, stikerlar, ranglar, unvonlar
   ========================================================================== */

/* Muqova: qutb shafag'i — yulduzli osmonda sekin to'lqinlanayotgan yashil-binafsha nur */
.cover--cover_aurora {
  background-color: #071226;
  color: var(--paper);
  background-image:
    radial-gradient(1.2px 1.2px at 10% 18%, #fff, transparent),
    radial-gradient(1px 1px at 31% 10%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 57% 22%, #e6f6ff, transparent),
    radial-gradient(1px 1px at 76% 8%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 91% 30%, #fff, transparent),
    radial-gradient(1px 1px at 44% 40%, #cfe9ff, transparent),
    linear-gradient(180deg, #050d1f 0%, #0a2340 62%, #123a52 100%);
}

.cover--cover_aurora::before,
.cover--cover_aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Nur "pardalari": yashil-moviy-binafsha dog'lar, ustida tik chiziqlar */
.cover--cover_aurora::before {
  background:
    radial-gradient(ellipse 26% 75% at 16% 70%, rgba(62, 240, 166, 0.85), transparent 70%),
    radial-gradient(ellipse 22% 85% at 38% 55%, rgba(52, 230, 190, 0.7), transparent 70%),
    radial-gradient(ellipse 26% 75% at 62% 62%, rgba(110, 120, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 18% 65% at 86% 50%, rgba(255, 107, 208, 0.55), transparent 70%);
  filter: blur(8px);
  mix-blend-mode: screen;
  transform-origin: 50% 100%;
  animation: aurora-sway 11s ease-in-out infinite alternate;
}

.cover--cover_aurora::after {
  background:
    repeating-linear-gradient(90deg, rgba(220, 255, 240, 0.1) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, transparent 20%, rgba(5, 13, 31, 0.55) 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 55%, #000 30%, transparent 75%);
  animation: aurora-sway 11s ease-in-out infinite alternate;
}

@keyframes aurora-sway {
  0% { transform: translateX(-5%) skewX(-10deg) scaleY(0.95); opacity: 0.85; }
  50% { opacity: 1; }
  100% { transform: translateX(5%) skewX(10deg) scaleY(1.08); opacity: 0.9; }
}

/* Muqova: qishki tepaliklar — archalar va yog'ayotgan qor */
.cover--cover_snow {
  background-color: #b9d7f1;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='480'%20height='90'%3E%3Cpath%20d='M0%2050%20Q80%2020%20170%2044%20T340%2036%20T480%2046%20V90%20H0Z'%20fill='%23c4dcf2'/%3E%3Cpath%20d='M70%2014.8%20L78.1%2027.4%20L74.5%2027.4%20L80.8%2037.3%20L59.2%2037.3%20L65.5%2027.4%20L61.9%2027.4Z'%20fill='%234b7aa3'/%3E%3Crect%20x='68.56'%20y='37.3'%20width='2.8800000000000003'%20height='3.6'%20fill='%234b7aa3'/%3E%3Cpath%20d='M70%2014.8%20L73.6%2020.2%20L66.4%2020.2Z%20M65.5%2027.4%20L74.5%2027.4%20L72.7%2030.1%20L67.3%2030.1Z'%20fill='%23fff'%20fill-opacity='.85'/%3E%3Cpath%20d='M96%2024.400000000000002%20L102.3%2034.2%20L99.5%2034.2%20L104.4%2041.9%20L87.6%2041.9%20L92.5%2034.2%20L89.7%2034.2Z'%20fill='%235b88b0'/%3E%3Crect%20x='94.88'%20y='41.9'%20width='2.2399999999999998'%20height='2.8'%20fill='%235b88b0'/%3E%3Cpath%20d='M96%2024.400000000000002%20L98.8%2028.6%20L93.2%2028.6Z%20M92.5%2034.2%20L99.5%2034.2%20L98.1%2036.3%20L93.9%2036.3Z'%20fill='%23fff'%20fill-opacity='.85'/%3E%3Cpath%20d='M300%2010%20L309%2024%20L305%2024%20L312%2035%20L288%2035%20L295%2024%20L291%2024Z'%20fill='%234b7aa3'/%3E%3Crect%20x='298.4'%20y='35'%20width='3.2'%20height='4'%20fill='%234b7aa3'/%3E%3Cpath%20d='M300%2010%20L304%2016%20L296%2016Z%20M295%2024%20L305%2024%20L303%2027%20L297%2027Z'%20fill='%23fff'%20fill-opacity='.85'/%3E%3Cpath%20d='M410%2023.0%20L416.75%2033.5%20L413.75%2033.5%20L419.0%2041.75%20L401.0%2041.75%20L406.25%2033.5%20L403.25%2033.5Z'%20fill='%235b88b0'/%3E%3Crect%20x='408.8'%20y='41.75'%20width='2.4000000000000004'%20height='3.0'%20fill='%235b88b0'/%3E%3Cpath%20d='M410%2023.0%20L413.0%2027.5%20L407.0%2027.5Z%20M406.25%2033.5%20L413.75%2033.5%20L412.25%2035.75%20L407.75%2035.75Z'%20fill='%23fff'%20fill-opacity='.85'/%3E%3Cpath%20d='M0%2070%20Q90%2046%20200%2064%20T400%2058%20T480%2066%20V90%20H0Z'%20fill='%23fff'/%3E%3Cpath%20d='M150%2033.800000000000004%20L160.35%2049.900000000000006%20L155.75%2049.900000000000006%20L163.8%2062.55%20L136.2%2062.55%20L144.25%2049.900000000000006%20L139.65%2049.900000000000006Z'%20fill='%232f5f86'/%3E%3Crect%20x='148.16'%20y='62.55'%20width='3.6799999999999997'%20height='4.6'%20fill='%232f5f86'/%3E%3Cpath%20d='M150%2033.800000000000004%20L154.6%2040.7%20L145.4%2040.7Z%20M144.25%2049.900000000000006%20L155.75%2049.900000000000006%20L153.45%2053.35%20L146.55%2053.35Z'%20fill='%23fff'%20fill-opacity='.85'/%3E%3Cpath%20d='M178%2046.2%20L185.65%2058.1%20L182.25%2058.1%20L188.2%2067.45%20L167.8%2067.45%20L173.75%2058.1%20L170.35%2058.1Z'%20fill='%233c6c93'/%3E%3Crect%20x='176.64'%20y='67.45'%20width='2.72'%20height='3.4'%20fill='%233c6c93'/%3E%3Cpath%20d='M178%2046.2%20L181.4%2051.3%20L174.6%2051.3Z%20M173.75%2058.1%20L182.25%2058.1%20L180.55%2060.65%20L175.45%2060.65Z'%20fill='%23fff'%20fill-opacity='.85'/%3E%3Cpath%20d='M450%2036%20L459%2050%20L455%2050%20L462%2061%20L438%2061%20L445%2050%20L441%2050Z'%20fill='%232f5f86'/%3E%3Crect%20x='448.4'%20y='61'%20width='3.2'%20height='4'%20fill='%232f5f86'/%3E%3Cpath%20d='M450%2036%20L454%2042%20L446%2042Z%20M445%2050%20L455%2050%20L453%2053%20L447%2053Z'%20fill='%23fff'%20fill-opacity='.85'/%3E%3Cpath%20d='M0%2080%20Q120%2068%20260%2080%20T480%2078%20V90%20H0Z'%20fill='%23eef6fd'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 80% at 80% 0%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(180deg, #9cc6ec 0%, #cfe4f6 70%, #e8f3fc 100%);
  background-repeat: repeat-x, no-repeat, no-repeat;
  background-position: 0 100%, center, center;
  background-size: 480px 90px, 100% 100%, 100% 100%;
}

.cover--cover_snow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='140'%3E%3Cg%20fill='%23fff'%3E%3Ccircle%20cx='14'%20cy='12'%20r='2.2'/%3E%3Ccircle%20cx='62'%20cy='34'%20r='1.4'/%3E%3Ccircle%20cx='118'%20cy='18'%20r='2.6'/%3E%3Ccircle%20cx='40'%20cy='78'%20r='1.8'/%3E%3Ccircle%20cx='96'%20cy='96'%20r='2.2'/%3E%3Ccircle%20cx='146'%20cy='70'%20r='1.4'/%3E%3Ccircle%20cx='22'%20cy='122'%20r='1.4'/%3E%3Ccircle%20cx='130'%20cy='128'%20r='2'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='160'%20height='140'%3E%3Cg%20fill='%23fff'%3E%3Ccircle%20cx='14'%20cy='12'%20r='2.2'/%3E%3Ccircle%20cx='62'%20cy='34'%20r='1.4'/%3E%3Ccircle%20cx='118'%20cy='18'%20r='2.6'/%3E%3Ccircle%20cx='40'%20cy='78'%20r='1.8'/%3E%3Ccircle%20cx='96'%20cy='96'%20r='2.2'/%3E%3Ccircle%20cx='146'%20cy='70'%20r='1.4'/%3E%3Ccircle%20cx='22'%20cy='122'%20r='1.4'/%3E%3Ccircle%20cx='130'%20cy='128'%20r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 140px, 110px 96px;
  background-position: 0 0, 40px 20px;
  opacity: 0.95;
  animation: snow-fall 9s linear infinite;
}

@keyframes snow-fall {
  to { background-position: 30px 140px, 18px 116px; }
}

/* Muqova: gullagan sakura — burchakdagi shox va uchib yurgan barglar */
.cover--cover_sakura {
  background-color: #ffeef3;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='140'%3E%3Cdefs%3E%3Cg%20id='f'%3E%3Cg%20fill='%23ffc2d4'%20stroke='%23e786a6'%20stroke-width='.4'%3E%3Cpath%20d='M0%200C-2.4%20-1.8%20-2.8%20-5%20-1.1%20-6.8L0%20-5.9L1.1%20-6.8C2.8%20-5%202.4%20-1.8%200%200Z'%20transform='rotate(0)'/%3E%3Cpath%20d='M0%200C-2.4%20-1.8%20-2.8%20-5%20-1.1%20-6.8L0%20-5.9L1.1%20-6.8C2.8%20-5%202.4%20-1.8%200%200Z'%20transform='rotate(72)'/%3E%3Cpath%20d='M0%200C-2.4%20-1.8%20-2.8%20-5%20-1.1%20-6.8L0%20-5.9L1.1%20-6.8C2.8%20-5%202.4%20-1.8%200%200Z'%20transform='rotate(144)'/%3E%3Cpath%20d='M0%200C-2.4%20-1.8%20-2.8%20-5%20-1.1%20-6.8L0%20-5.9L1.1%20-6.8C2.8%20-5%202.4%20-1.8%200%200Z'%20transform='rotate(216)'/%3E%3Cpath%20d='M0%200C-2.4%20-1.8%20-2.8%20-5%20-1.1%20-6.8L0%20-5.9L1.1%20-6.8C2.8%20-5%202.4%20-1.8%200%200Z'%20transform='rotate(288)'/%3E%3C/g%3E%3Ccircle%20r='1.3'%20fill='%23d84a7a'/%3E%3Cg%20fill='%23b0275a'%3E%3Ccircle%20cx='2.1'%20cy='0.7'%20r='.45'/%3E%3Ccircle%20cx='0.0'%20cy='2.2'%20r='.45'/%3E%3Ccircle%20cx='-2.1'%20cy='0.7'%20r='.45'/%3E%3Ccircle%20cx='-1.3'%20cy='-1.8'%20r='.45'/%3E%3Ccircle%20cx='1.3'%20cy='-1.8'%20r='.45'/%3E%3C/g%3E%3C/g%3E%3C/defs%3E%3Cpath%20d='M300%206%20C250%2018%20220%2030%20180%2058%20S120%2092%2092%2096'%20fill='none'%20stroke='%236b4232'%20stroke-width='5'%20stroke-linecap='round'/%3E%3Cpath%20d='M226%2030%20C214%2014%20200%2010%20186%2012%20M172%2064%20C176%2082%20168%2096%20156%20106%20M252%2018%20C262%2034%20262%2048%20256%2060'%20fill='none'%20stroke='%236b4232'%20stroke-width='2.6'%20stroke-linecap='round'/%3E%3Cuse%20href='%23f'%20transform='translate(186%2012)%20scale(2.2)%20rotate(10)'/%3E%3Cuse%20href='%23f'%20transform='translate(206%2028)%20scale(1.8)%20rotate(30)'/%3E%3Cuse%20href='%23f'%20transform='translate(156%20106)%20scale(2)%20rotate(5)'/%3E%3Cuse%20href='%23f'%20transform='translate(178%2082)%20scale(1.5)%20rotate(40)'/%3E%3Cuse%20href='%23f'%20transform='translate(256%2060)%20scale(2.1)%20rotate(20)'/%3E%3Cuse%20href='%23f'%20transform='translate(244%2036)%20scale(1.4)%20rotate(50)'/%3E%3Cuse%20href='%23f'%20transform='translate(120%2084)%20scale(1.7)%20rotate(0)'/%3E%3Cuse%20href='%23f'%20transform='translate(94%2096)%20scale(1.6)%20rotate(25)'/%3E%3Cuse%20href='%23f'%20transform='translate(282%2020)%20scale(1.6)%20rotate(12)'/%3E%3Cg%20fill='%23f5a8c0'%3E%3Cellipse%20cx='140'%20cy='70'%20rx='3'%20ry='4.2'%20transform='rotate(30%20140%2070)'/%3E%3Cellipse%20cx='214'%20cy='62'%20rx='2.6'%20ry='3.8'/%3E%3Cellipse%20cx='272'%20cy='44'%20rx='2.6'%20ry='3.6'%20transform='rotate(-20%20272%2044)'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 50% 70% at 10% 100%, rgba(255, 196, 214, 0.55), transparent 70%),
    linear-gradient(160deg, #fff6f8 0%, #ffe4ec 55%, #fbd3e0 100%);
  background-repeat: no-repeat;
  background-position: 100% 0, center, center;
  background-size: 300px 140px, 100% 100%, 100% 100%;
}

.cover--cover_sakura::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='150'%3E%3Cpath%20d='M0%200C-3%20-2.4%20-3.4%20-6.4%20-1.2%20-8.4L0%20-7.3L1.2%20-8.4C3.4%20-6.4%203%20-2.4%200%200Z'%20transform='translate(20%2024)%20rotate(30)%20scale(1)'%20fill='%23f7a6bf'/%3E%3Cpath%20d='M0%200C-3%20-2.4%20-3.4%20-6.4%20-1.2%20-8.4L0%20-7.3L1.2%20-8.4C3.4%20-6.4%203%20-2.4%200%200Z'%20transform='translate(96%2014)%20rotate(-40)%20scale(0.8)'%20fill='%23ffc7d7'/%3E%3Cpath%20d='M0%200C-3%20-2.4%20-3.4%20-6.4%20-1.2%20-8.4L0%20-7.3L1.2%20-8.4C3.4%20-6.4%203%20-2.4%200%200Z'%20transform='translate(150%2058)%20rotate(70)%20scale(1.1)'%20fill='%23f29cb7'/%3E%3Cpath%20d='M0%200C-3%20-2.4%20-3.4%20-6.4%20-1.2%20-8.4L0%20-7.3L1.2%20-8.4C3.4%20-6.4%203%20-2.4%200%200Z'%20transform='translate(48%2092)%20rotate(120)%20scale(0.9)'%20fill='%23ffd0dd'/%3E%3Cpath%20d='M0%200C-3%20-2.4%20-3.4%20-6.4%20-1.2%20-8.4L0%20-7.3L1.2%20-8.4C3.4%20-6.4%203%20-2.4%200%200Z'%20transform='translate(122%20118)%20rotate(-15)%20scale(1)'%20fill='%23f7a6bf'/%3E%3Cpath%20d='M0%200C-3%20-2.4%20-3.4%20-6.4%20-1.2%20-8.4L0%20-7.3L1.2%20-8.4C3.4%20-6.4%203%20-2.4%200%200Z'%20transform='translate(170%20140)%20rotate(200)%20scale(0.8)'%20fill='%23ffc7d7'/%3E%3Cpath%20d='M0%200C-3%20-2.4%20-3.4%20-6.4%20-1.2%20-8.4L0%20-7.3L1.2%20-8.4C3.4%20-6.4%203%20-2.4%200%200Z'%20transform='translate(8%20136)%20rotate(80)%20scale(0.7)'%20fill='%23f29cb7'/%3E%3C/svg%3E");
  background-size: 180px 150px;
  animation: petals-drift 16s linear infinite;
}

@keyframes petals-drift {
  to { background-position: -180px 150px; }
}

/* Muqova: tungi Toshkent — teleminora, gumbazlar, chiroqlar va tog'lar */
.cover--cover_city {
  background-color: #141a42;
  color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='600'%20height='120'%3E%3Cg%20fill='%230b0f26'%3E%3Crect%20x='0'%20y='62'%20width='46'%20height='58'/%3E%3Crect%20x='46'%20y='80'%20width='28'%20height='40'/%3E%3Crect%20x='74'%20y='46'%20width='40'%20height='74'/%3E%3Crect%20x='114'%20y='70'%20width='22'%20height='50'/%3E%3Crect%20x='186'%20y='58'%20width='34'%20height='62'/%3E%3Crect%20x='220'%20y='76'%20width='26'%20height='44'/%3E%3Crect%20x='246'%20y='34'%20width='44'%20height='86'/%3E%3Crect%20x='290'%20y='66'%20width='30'%20height='54'/%3E%3Crect%20x='392'%20y='50'%20width='36'%20height='70'/%3E%3Crect%20x='428'%20y='72'%20width='24'%20height='48'/%3E%3Crect%20x='452'%20y='28'%20width='48'%20height='92'/%3E%3Crect%20x='500'%20y='62'%20width='30'%20height='58'/%3E%3Crect%20x='530'%20y='44'%20width='38'%20height='76'/%3E%3Crect%20x='568'%20y='68'%20width='32'%20height='52'/%3E%3Crect%20x='136'%20y='74'%20width='48'%20height='46'/%3E%3Cpath%20d='M140%2074%20Q140%2048%20160%2040%20Q180%2048%20180%2074Z'/%3E%3Crect%20x='159'%20y='32'%20width='2'%20height='9'/%3E%3Crect%20x='128'%20y='36'%20width='6'%20height='84'/%3E%3Cpath%20d='M127%2036%20L131%2026%20L135%2036Z'/%3E%3Crect%20x='126.5'%20y='50'%20width='9'%20height='3'/%3E%3Crect%20x='188'%20y='36'%20width='6'%20height='84'/%3E%3Cpath%20d='M187%2036%20L191%2026%20L195%2036Z'/%3E%3Crect%20x='186.5'%20y='50'%20width='9'%20height='3'/%3E%3Cpath%20d='M330%20120%20L342.5%2076%20L345.5%2076%20L358%20120%20L353%20120%20L344%2090%20L335%20120Z'/%3E%3Crect%20x='342.4'%20y='8'%20width='3.2'%20height='80'/%3E%3Cellipse%20cx='344'%20cy='40'%20rx='9'%20ry='3.6'/%3E%3Cellipse%20cx='344'%20cy='34'%20rx='6'%20ry='2.4'/%3E%3Cellipse%20cx='344'%20cy='54'%20rx='4.5'%20ry='2'/%3E%3Crect%20x='343.4'%20y='0'%20width='1.2'%20height='10'/%3E%3C/g%3E%3Cg%20fill='%23ffd27a'%20fill-opacity='.85'%3E%3Crect%20x='11'%20y='68'%20width='3'%20height='4'/%3E%3Crect%20x='25'%20y='68'%20width='3'%20height='4'/%3E%3Crect%20x='4'%20y='76'%20width='3'%20height='4'/%3E%3Crect%20x='18'%20y='76'%20width='3'%20height='4'/%3E%3Crect%20x='32'%20y='76'%20width='3'%20height='4'/%3E%3Crect%20x='39'%20y='76'%20width='3'%20height='4'/%3E%3Crect%20x='18'%20y='84'%20width='3'%20height='4'/%3E%3Crect%20x='25'%20y='84'%20width='3'%20height='4'/%3E%3Crect%20x='25'%20y='92'%20width='3'%20height='4'/%3E%3Crect%20x='39'%20y='92'%20width='3'%20height='4'/%3E%3Crect%20x='4'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='11'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='18'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='32'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='25'%20y='108'%20width='3'%20height='4'/%3E%3Crect%20x='32'%20y='108'%20width='3'%20height='4'/%3E%3Crect%20x='39'%20y='108'%20width='3'%20height='4'/%3E%3Crect%20x='64'%20y='86'%20width='3'%20height='4'/%3E%3Crect%20x='64'%20y='94'%20width='3'%20height='4'/%3E%3Crect%20x='64'%20y='102'%20width='3'%20height='4'/%3E%3Crect%20x='85'%20y='52'%20width='3'%20height='4'/%3E%3Crect%20x='99'%20y='52'%20width='3'%20height='4'/%3E%3Crect%20x='85'%20y='60'%20width='3'%20height='4'/%3E%3Crect%20x='99'%20y='60'%20width='3'%20height='4'/%3E%3Crect%20x='99'%20y='68'%20width='3'%20height='4'/%3E%3Crect%20x='92'%20y='84'%20width='3'%20height='4'/%3E%3Crect%20x='92'%20y='92'%20width='3'%20height='4'/%3E%3Crect%20x='78'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='92'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='99'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='106'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='85'%20y='108'%20width='3'%20height='4'/%3E%3Crect%20x='92'%20y='108'%20width='3'%20height='4'/%3E%3Crect%20x='118'%20y='76'%20width='3'%20height='4'/%3E%3Crect%20x='118'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='197'%20y='64'%20width='3'%20height='4'/%3E%3Crect%20x='204'%20y='64'%20width='3'%20height='4'/%3E%3Crect%20x='211'%20y='64'%20width='3'%20height='4'/%3E%3Crect%20x='190'%20y='72'%20width='3'%20height='4'/%3E%3Crect%20x='211'%20y='72'%20width='3'%20height='4'/%3E%3Crect%20x='190'%20y='80'%20width='3'%20height='4'/%3E%3Crect%20x='197'%20y='96'%20width='3'%20height='4'/%3E%3Crect%20x='190'%20y='112'%20width='3'%20height='4'/%3E%3Crect%20x='204'%20y='112'%20width='3'%20height='4'/%3E%3Crect%20x='211'%20y='112'%20width='3'%20height='4'/%3E%3Crect%20x='224'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='231'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='224'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='231'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='238'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='224'%20y='98'%20width='3'%20height='4'/%3E%3Crect%20x='238'%20y='98'%20width='3'%20height='4'/%3E%3Crect%20x='238'%20y='106'%20width='3'%20height='4'/%3E%3Crect%20x='250'%20y='40'%20width='3'%20height='4'/%3E%3Crect%20x='271'%20y='40'%20width='3'%20height='4'/%3E%3Crect%20x='264'%20y='48'%20width='3'%20height='4'/%3E%3Crect%20x='271'%20y='48'%20width='3'%20height='4'/%3E%3Crect%20x='285'%20y='48'%20width='3'%20height='4'/%3E%3Crect%20x='257'%20y='56'%20width='3'%20height='4'/%3E%3Crect%20x='264'%20y='56'%20width='3'%20height='4'/%3E%3Crect%20x='285'%20y='56'%20width='3'%20height='4'/%3E%3Crect%20x='257'%20y='64'%20width='3'%20height='4'/%3E%3Crect%20x='250'%20y='72'%20width='3'%20height='4'/%3E%3Crect%20x='264'%20y='72'%20width='3'%20height='4'/%3E%3Crect%20x='257'%20y='80'%20width='3'%20height='4'/%3E%3Crect%20x='264'%20y='88'%20width='3'%20height='4'/%3E%3Crect%20x='285'%20y='88'%20width='3'%20height='4'/%3E%3Crect%20x='250'%20y='96'%20width='3'%20height='4'/%3E%3Crect%20x='257'%20y='96'%20width='3'%20height='4'/%3E%3Crect%20x='264'%20y='96'%20width='3'%20height='4'/%3E%3Crect%20x='278'%20y='104'%20width='3'%20height='4'/%3E%3Crect%20x='285'%20y='104'%20width='3'%20height='4'/%3E%3Crect%20x='250'%20y='112'%20width='3'%20height='4'/%3E%3Crect%20x='257'%20y='112'%20width='3'%20height='4'/%3E%3Crect%20x='308'%20y='72'%20width='3'%20height='4'/%3E%3Crect%20x='294'%20y='88'%20width='3'%20height='4'/%3E%3Crect%20x='301'%20y='104'%20width='3'%20height='4'/%3E%3Crect%20x='308'%20y='104'%20width='3'%20height='4'/%3E%3Crect%20x='315'%20y='104'%20width='3'%20height='4'/%3E%3Crect%20x='308'%20y='112'%20width='3'%20height='4'/%3E%3Crect%20x='396'%20y='64'%20width='3'%20height='4'/%3E%3Crect%20x='403'%20y='64'%20width='3'%20height='4'/%3E%3Crect%20x='403'%20y='80'%20width='3'%20height='4'/%3E%3Crect%20x='410'%20y='80'%20width='3'%20height='4'/%3E%3Crect%20x='417'%20y='80'%20width='3'%20height='4'/%3E%3Crect%20x='396'%20y='88'%20width='3'%20height='4'/%3E%3Crect%20x='410'%20y='88'%20width='3'%20height='4'/%3E%3Crect%20x='396'%20y='96'%20width='3'%20height='4'/%3E%3Crect%20x='417'%20y='112'%20width='3'%20height='4'/%3E%3Crect%20x='439'%20y='78'%20width='3'%20height='4'/%3E%3Crect%20x='446'%20y='78'%20width='3'%20height='4'/%3E%3Crect%20x='439'%20y='86'%20width='3'%20height='4'/%3E%3Crect%20x='432'%20y='110'%20width='3'%20height='4'/%3E%3Crect%20x='446'%20y='110'%20width='3'%20height='4'/%3E%3Crect%20x='456'%20y='34'%20width='3'%20height='4'/%3E%3Crect%20x='456'%20y='58'%20width='3'%20height='4'/%3E%3Crect%20x='484'%20y='58'%20width='3'%20height='4'/%3E%3Crect%20x='491'%20y='58'%20width='3'%20height='4'/%3E%3Crect%20x='463'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='470'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='477'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='463'%20y='74'%20width='3'%20height='4'/%3E%3Crect%20x='484'%20y='74'%20width='3'%20height='4'/%3E%3Crect%20x='463'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='463'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='491'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='456'%20y='98'%20width='3'%20height='4'/%3E%3Crect%20x='470'%20y='98'%20width='3'%20height='4'/%3E%3Crect%20x='491'%20y='98'%20width='3'%20height='4'/%3E%3Crect%20x='477'%20y='106'%20width='3'%20height='4'/%3E%3Crect%20x='511'%20y='68'%20width='3'%20height='4'/%3E%3Crect%20x='518'%20y='68'%20width='3'%20height='4'/%3E%3Crect%20x='525'%20y='68'%20width='3'%20height='4'/%3E%3Crect%20x='511'%20y='76'%20width='3'%20height='4'/%3E%3Crect%20x='518'%20y='76'%20width='3'%20height='4'/%3E%3Crect%20x='518'%20y='84'%20width='3'%20height='4'/%3E%3Crect%20x='525'%20y='84'%20width='3'%20height='4'/%3E%3Crect%20x='525'%20y='92'%20width='3'%20height='4'/%3E%3Crect%20x='504'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='525'%20y='100'%20width='3'%20height='4'/%3E%3Crect%20x='525'%20y='108'%20width='3'%20height='4'/%3E%3Crect%20x='541'%20y='50'%20width='3'%20height='4'/%3E%3Crect%20x='548'%20y='58'%20width='3'%20height='4'/%3E%3Crect%20x='555'%20y='58'%20width='3'%20height='4'/%3E%3Crect%20x='534'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='541'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='548'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='555'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='562'%20y='66'%20width='3'%20height='4'/%3E%3Crect%20x='534'%20y='74'%20width='3'%20height='4'/%3E%3Crect%20x='541'%20y='74'%20width='3'%20height='4'/%3E%3Crect%20x='555'%20y='74'%20width='3'%20height='4'/%3E%3Crect%20x='534'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='548'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='555'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='562'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='548'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='534'%20y='98'%20width='3'%20height='4'/%3E%3Crect%20x='579'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='586'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='593'%20y='82'%20width='3'%20height='4'/%3E%3Crect%20x='579'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='586'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='593'%20y='90'%20width='3'%20height='4'/%3E%3Crect%20x='593'%20y='98'%20width='3'%20height='4'/%3E%3Crect%20x='572'%20y='106'%20width='3'%20height='4'/%3E%3Crect%20x='579'%20y='106'%20width='3'%20height='4'/%3E%3Crect%20x='593'%20y='106'%20width='3'%20height='4'/%3E%3C/g%3E%3Ccircle%20cx='344'%20cy='0'%20r='1.8'%20fill='%23ff4d4d'/%3E%3Cg%20fill='%239fe0ff'%20fill-opacity='.9'%3E%3Crect%20x='336'%20y='39'%20width='16'%20height='1.4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='600'%20height='80'%3E%3Cpath%20d='M0%2080%20L0%2052%20L60%2030%20L110%2046%20L170%2018%20L230%2044%20L300%2026%20L360%2048%20L430%2022%20L500%2042%20L560%2028%20L600%2040%20L600%2080Z'%20fill='%232b2d63'%20fill-opacity='.75'/%3E%3Cpath%20d='M170%2018%20L182%2025%20L176%2026%20L170%2022%20L162%2027%20L158%2025Z%20M430%2022%20L441%2028%20L435%2029%20L430%2026%20L423%2030%20L419%2028Z'%20fill='%23d9dcff'%20fill-opacity='.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='60'%20height='60'%3E%3Cpath%20d='M38%2010a20%2020%200%201%200%2012%2030a16%2016%200%201%201%20-12%20-30Z'%20fill='%23ffe9b0'/%3E%3C/svg%3E"),
    radial-gradient(1.2px 1.2px at 8% 20%, #fff, transparent),
    radial-gradient(1px 1px at 22% 8%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 38% 26%, #fff5d6, transparent),
    radial-gradient(1px 1px at 52% 12%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 67% 30%, #fff, transparent),
    radial-gradient(ellipse 90% 60% at 50% 115%, rgba(255, 150, 90, 0.45), transparent 70%),
    linear-gradient(180deg, #0c1233 0%, #1d2156 55%, #4a3466 100%);
  background-repeat: repeat-x, repeat-x, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-position: 0 100%, 0 100%, 86% 12px, center, center, center, center, center, center, center;
  background-size: 400px 80px, 450px 60px, 38px 38px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.cover--cover_city::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 14% 14%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 46% 20%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 61% 6%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 74% 24%, #fff, transparent);
  animation: twinkle 3.4s ease-in-out infinite;
}

.cover--cover_city .ava__frame,
.cover--cover_aurora .ava__frame {
  fill: var(--paper);
  color: var(--paper);
}

/* Rangli ismlar */
.nc--color_mint {
  color: #13866f;
}

.nc--color_ice,
.nc--color_aurora {
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: nick-flow 4.5s linear infinite;
}

.nc--color_ice {
  background-image: linear-gradient(90deg, #1c5f9e, #3fa3e0, #7ccaf2, #3fa3e0, #1c5f9e);
  filter: drop-shadow(0 0 0.12em rgba(63, 163, 224, 0.35));
}

.nc--color_aurora {
  background-image: linear-gradient(90deg, #0f9d74, #1aa6c9, #6b4fe0, #c03fa8, #6b4fe0, #1aa6c9, #0f9d74);
  animation-duration: 6s;
}

/* Neon: pushti yorug'lik, vaqti-vaqti bilan "lipillaydi" */
.nc--color_neon {
  color: #e0157f;
  text-shadow: 0 0 0.25em rgba(255, 46, 151, 0.55);
  animation: neon-flicker 4s linear infinite;
}

@keyframes neon-flicker {
  0%, 18%, 22%, 62%, 64%, 100% { text-shadow: 0 0 0.25em rgba(255, 46, 151, 0.55), 0 0 0.6em rgba(255, 46, 151, 0.3); opacity: 1; }
  20%, 63% { text-shadow: none; opacity: 0.72; }
}

/* Unvonlar */
.title-chip--title_artist {
  color: #c2185b;
}

.title-chip--title_scientist {
  color: #0f7c8c;
}

.title-chip--title_star {
  color: #a86200;
}

.title-chip--title_star::before {
  content: '★ ';
}

.title-chip--title_bookworm {
  color: #6d4c2f;
}

.title-chip--title_legend {
  border-color: #c99a2e;
  background: linear-gradient(120deg, #1d1c1a 0%, #3a2d12 50%, #1d1c1a 100%);
  background-size: 200% 100%;
  color: #f2c14e;
  animation: legend-shine 3.5s ease-in-out infinite;
}

@keyframes legend-shine {
  50% { background-position: 100% 0; }
}

/* Ramkalar */
.snow-halo {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.snow-flake {
  fill: none;
  stroke: #3b8fd6;
  stroke-width: 1.15;
  stroke-linecap: round;
}

.snow-core {
  fill: #3b8fd6;
}

.snow-ring {
  fill: none;
  stroke: #3b8fd6;
  stroke-opacity: 0.55;
}

.sakura-wood {
  fill: none;
  stroke: #6b4232;
  stroke-linecap: round;
}

.heart-a {
  fill: #e8335a;
}

.heart-b {
  fill: #ff7aa2;
}

.heart-shine {
  fill: #fff;
  opacity: 0.7;
}

.ava--frame_aurora .ava__face {
  box-shadow: 0 0 14px 2px rgba(62, 240, 166, 0.25);
}

/* Stikerlar */
.sticker .st-carrot {
  fill: #f08a24;
  stroke: #b85d0e;
  stroke-width: 0.8;
}

.sticker .st-scarf {
  fill: #d6453d;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.sticker .st-pine {
  fill: #2f8a4c;
}

.sticker .st-trunk {
  fill: #8a5a3c;
}

.sticker .st-ball-r {
  fill: #e0403a;
}

.sticker .st-ball-b {
  fill: #2f6bff;
}

.sticker .st-garland {
  fill: none;
  stroke: #ffd45e;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.sticker .st-planet {
  fill: #f4b860;
}

.sticker .st-ring {
  fill: none;
  stroke: #7b52d6;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.sticker .st-band {
  fill: none;
  stroke: #b5652a;
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.6;
}

.sticker .st-cup-c {
  fill: #2f6bff;
}

.sticker .st-dna-a {
  stroke: #e0403a;
}

.sticker .st-dna-b {
  stroke: #2f6bff;
}

.sticker .st-dna-c {
  stroke: #e3a21a;
}

.sticker .st-dna-d {
  stroke: #2f8a4c;
}

.sticker .st-fold {
  fill: #e3eaf6;
}

.sticker .st-keel {
  fill: #b9c8e2;
}

/* Do'kon: yangi bezaklar belgisi */
/* Hali sotuvda emas: sotuv boshlanadigan kun */
.shop-item__badge--soon {
  padding: 2px 8px 2px 6px;
  border-color: #2c6fb0;
  background: #e6f2fc;
  color: #1d5a93;
}

.shop-item__badge--soon svg {
  width: 12px;
  height: 12px;
}

.shop-item__soon {
  margin: 0;
  padding: 9px 12px;
  border: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  color: var(--muted);
}

:root[data-theme='dark'] .shop-item__badge--soon {
  border-color: #7cc4f2;
  background: #17304a;
  color: #b9e1ff;
}

@media (prefers-reduced-motion: reduce) {
  .cover--cover_aurora::before,
  .cover--cover_aurora::after,
  .cover--cover_snow::after,
  .cover--cover_sakura::after,
  .cover--cover_city::after,
  .nc--color_ice,
  .nc--color_aurora,
  .nc--color_neon,
  .title-chip--title_legend {
    animation: none !important;
  }
}

/* Tungi rejim */
:root[data-theme='dark'] .nc--color_mint {
  color: #5fe0c0;
}

:root[data-theme='dark'] .nc--color_ice {
  background-image: linear-gradient(90deg, #7cc4f2, #c9ecff, #ffffff, #c9ecff, #7cc4f2);
}

:root[data-theme='dark'] .nc--color_aurora {
  background-image: linear-gradient(90deg, #3ef0a6, #2fd8e8, #9b86ff, #ff7ad0, #9b86ff, #2fd8e8, #3ef0a6);
}

:root[data-theme='dark'] .nc--color_neon {
  color: #ff5fb4;
}

:root[data-theme='dark'] .title-chip--title_artist {
  color: #ff7fb0;
}

:root[data-theme='dark'] .title-chip--title_scientist {
  color: #4fd1e0;
}

:root[data-theme='dark'] .title-chip--title_star {
  color: #f2a948;
}

:root[data-theme='dark'] .title-chip--title_bookworm {
  color: #d9a679;
}

:root[data-theme='dark'] .snow-flake,
:root[data-theme='dark'] .snow-ring {
  stroke: #9fd6ff;
}

:root[data-theme='dark'] .snow-core {
  fill: #9fd6ff;
}

:root[data-theme='dark'] .snow-halo {
  stroke: rgba(255, 255, 255, 0.25);
}

:root[data-theme='dark'] .sakura-wood {
  stroke: #a77a5e;
}

:root[data-theme='dark'] .cover--cover_snow {
  filter: brightness(0.82) saturate(0.9);
}

:root[data-theme='dark'] .cover--cover_sakura {
  filter: brightness(0.86);
}

/* ---------- MOCK-testlar: "Jarayonda" ---------- */
.mock-soon {
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 110px);
}

.mock-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}

.mock-card__body {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.mock-card__body h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.mock-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 44ch;
}

.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1.5px solid #c27a00;
  border-radius: 999px;
  background: #fff3d6;
  color: #8a5300;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e39200;
  animation: mock-pulse 1.6s ease-in-out infinite;
}

@keyframes mock-pulse {
  50% { box-shadow: 0 0 0 5px rgba(227, 146, 0, 0.18); opacity: 0.6; }
}

.mock-sheet {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  overflow: visible;
}

.mock-sheet__paper {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.mock-sheet__head {
  fill: var(--ink);
}

.mock-sheet__title {
  fill: var(--paper);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.mock-sheet__num {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.mock-sheet__dot {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.1;
  opacity: 0.55;
}

.mock-sheet__dot.is-on {
  fill: var(--pen);
  stroke: var(--pen);
  opacity: 1;
}

.mock-sheet__ab {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  text-anchor: middle;
}

.mock-sheet__track {
  fill: var(--line);
}

.mock-sheet__bar {
  fill: #e39200;
  transform-box: fill-box;
  transform-origin: 0 50%;
  animation: mock-progress 3.2s ease-in-out infinite;
}

@keyframes mock-progress {
  0% { transform: scaleX(0.08); }
  60%, 100% { transform: scaleX(0.68); }
}

.mock-sheet__pencil {
  transform-box: view-box;
  transform-origin: 150px 124px;
  animation: mock-write 2.4s ease-in-out infinite;
}

@keyframes mock-write {
  50% { transform: translate(-6px, 3px) rotate(-4deg); }
}

.mock-sheet__wood {
  fill: #f2c14e;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.mock-sheet__eraser {
  fill: #e58aa0;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.mock-sheet__tip {
  fill: #f6e2c0;
  stroke: var(--ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.mock-sheet__lead {
  fill: #33302b;
}

.mock-sheet__metal {
  fill: #c9ced6;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.mock-sheet__facet {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.8;
  opacity: 0.35;
}

@media (max-width: 760px) {
  .mock-card {
    grid-template-columns: minmax(0, 1fr);
    box-shadow: 4px 4px 0 var(--ink);
  }

  .mock-sheet {
    max-width: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock-badge i,
  .mock-sheet__bar,
  .mock-sheet__pencil {
    animation: none !important;
  }

  .mock-sheet__bar {
    transform: scaleX(0.6);
  }
}

:root[data-theme='dark'] .mock-badge {
  border-color: #f2a948;
  background: #3a2c14;
  color: #f7c77a;
}

/* Shapka: menyuda 5 ta bo'lim — o'rta ekranlarda ixchamroq, "Bosh sahifa" o'rniga logotip */
@media (max-width: 1320px) and (min-width: 861px) {
  .site-header__inner {
    gap: 18px;
  }
  .nav {
    gap: 18px;
  }
  .brand__by {
    display: none;
  }
}

@media (max-width: 1140px) and (min-width: 1025px) {
  .nav a[href='/'] {
    display: none;
  }
  .nav a {
    font-size: 14px;
  }
  .site-header .lang button {
    padding-left: 9px;
    padding-right: 9px;
  }
}

/* 861–1024px: menyu sig'maydi — telefondagidek "burger" menyu (shriftlar va bo'shliqlar kattaroq ekran uchun) */
@media (max-width: 1024px) and (min-width: 861px) {
  .nav,
  .site-header .btn,
  .site-header .lang {
    display: none;
  }
  .burger {
    display: block;
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--ink);
    color: var(--paper);
    padding: 32px var(--gutter) 40px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .nav-open .mobile-nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav-open {
    overflow: hidden;
  }
  .mobile-nav a {
    font-family: var(--serif);
    font-size: 2.8rem;
    line-height: 1.1;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-on-ink);
  }
  .mobile-nav .lang {
    display: flex;
    align-self: flex-start;
    margin-top: 28px;
  }
  .mobile-nav .lang button {
    font-size: 14px;
    padding: 9px 16px;
  }
  .mobile-nav .btn {
    display: inline-flex;
    margin-top: 28px;
    align-self: flex-start;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.2;
    padding: 0 10px 0 26px;
    border: 1px solid var(--btn-bg);
  }
  .site-header .nav-user,
  .site-header .coin-badge {
    display: none;
  }
  .mobile-nav .nav-user {
    display: inline-flex;
    font-family: var(--sans);
    font-size: 16px;
    align-self: flex-start;
    margin-top: 24px;
    border-bottom: 1px solid var(--line-on-ink);
    padding: 6px 14px 6px 6px;
  }
  .mobile-nav .coin-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 14px;
    border-bottom: 1px solid var(--line-on-ink);
  }
}

/* Admin: a'zo ma'lumotlarini tahrirlash (ro'yxatdan o'tish formasi asosida) */
.is-admin-edit .progress,
.is-admin-edit .note--reg,
.is-admin-edit .inapp-note,
.is-admin-edit .geo-detect,
.is-admin-edit .form__alt,
.is-admin-edit .form__note,
.is-admin-edit [data-field='birthDate'] .field__hint {
  display: none !important;
}

.is-admin-edit .split__side h1 em {
  color: #f2c14e;
}

.pf-admin-edit svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
}

.pf-admin-edit {
  border-style: dashed;
}

/* Do'kon filtrlari va tartib */
.shop-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0 0 22px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.shop-tools__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter--sm {
  padding: 6px 12px;
  font-size: 13px;
  gap: 6px;
}

.shop-tools__f[aria-pressed='true'] {
  background: var(--pen);
  border-color: var(--pen);
  color: #fff;
}

:root[data-theme='dark'] .shop-tools__f[aria-pressed='true'] {
  color: #10141f;
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-sort__box {
  position: relative;
  display: inline-flex;
  color: var(--ink);
}

/* Strelka — currentColor, tungi rejimda ham ko'rinadi */
.shop-sort__box::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}

.shop-sort__select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.shop-sort__select:hover,
.shop-sort__select:focus-visible {
  border-color: var(--ink);
}

.shop-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 40px 16px;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
}

.shop-empty p {
  margin: 0;
}

@media (max-width: 600px) {
  .shop-tools {
    align-items: stretch;
    flex-direction: column;
  }
  /* Telefonda filtrlar bir qatorda suriladi */
  .shop-tools__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 2px;
    scrollbar-width: none;
  }
  .shop-tools__filters::-webkit-scrollbar {
    display: none;
  }
  .shop-tools__f {
    flex: none;
  }
}

/* ---------- Ilova (PWA): o'rnatish taklifi va "Internet yo'q" sahifasi ---------- */
.app-install--menu {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 18px 10px 14px;
  border: 1px solid var(--line-on-ink);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.app-install--menu svg {
  width: 20px;
  height: 20px;
}

.app-install[hidden],
li[hidden] {
  display: none !important;
}

.app-install--footer {
  color: inherit;
  font: inherit;
}

.app-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 8px 14px 14px;
  border: 1px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(20, 18, 14, 0.22), 4px 4px 0 var(--ink);
  animation: app-banner-in 0.35s cubic-bezier(0.2, 1.1, 0.4, 1) both;
}

.app-banner.is-leaving {
  animation: app-banner-out 0.25s ease-in forwards;
}

@keyframes app-banner-in {
  from { transform: translateY(120%); opacity: 0; }
}

@keyframes app-banner-out {
  to { transform: translateY(120%); opacity: 0; }
}

.app-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.app-banner__text {
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}

.app-banner__text b {
  font-size: 15px;
  color: var(--ink);
}

.app-banner__install {
  justify-self: start;
  margin-top: 8px;
  gap: 8px;
}

.app-banner__install svg {
  width: 17px;
  height: 17px;
}

.app-banner__close {
  margin-top: -6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.app-guide {
  max-width: min(420px, calc(100vw - 24px));
  border-radius: 22px;
}

.app-guide .dialog__body {
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.app-guide__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.app-guide h2 {
  margin: 0;
  font-size: 1.9rem;
}

.app-guide__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
  text-align: left;
}

.app-guide__steps li {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--paper-2);
  font-size: 14.5px;
}

.app-guide__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.app-guide__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--white);
  color: #2f6bff;
}

.app-guide__icon svg {
  width: 22px;
  height: 22px;
}

.app-guide .dialog__actions {
  justify-content: center;
}

/* "Internet yo'q" sahifasi */
.offline-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
}

.offline {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 420px;
  padding: 40px 24px;
  text-align: center;
}

.offline__mark {
  position: absolute;
  inset: 0 0 auto;
  margin: 0 auto;
  width: 260px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.offline__art {
  width: 120px;
  height: 96px;
  margin-bottom: 6px;
}

.offline__wave,
.offline__cross {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
}

.offline__wave--2 {
  opacity: 0.6;
}

.offline__wave--3 {
  opacity: 0.35;
}

.offline__dot {
  fill: currentColor;
}

.offline__cross {
  stroke: #f2a948;
  stroke-width: 5;
}

.offline h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
}

.offline p {
  margin: 0;
  color: var(--muted-on-ink);
  font-size: 1.05rem;
}

.offline .btn {
  margin-top: 8px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.offline__hint {
  color: var(--muted-on-ink);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .app-banner,
  .app-banner.is-leaving {
    animation: none;
  }
}
