/* Лингора growth 2026-09-30: onboarding, costumes, trophy shelf, celebrations */
.brand-mark svg, .onb-lori svg, .fx-lori svg, .gx-lori svg { overflow: visible; }
.lc { pointer-events: none; }
.lc .lc-wig { transform-box: fill-box; transform-origin: 50% 100%; animation: lcWig 3.6s var(--ease-out, ease) infinite; }
.lc .lc-swing { animation: lcSwing 2.4s ease-in-out infinite; }
.lc .lc-feather { transform-box: fill-box; transform-origin: 0% 100%; animation: lcFeather 2.8s ease-in-out infinite; }
.lc .lc-ribbon { transform-box: fill-box; transform-origin: 0% 0%; animation: lcFeather 2.2s ease-in-out infinite; }
.lc .lc-bloom { animation: lcBloom 3s ease-in-out infinite; }
.lc .lc-bloom:nth-of-type(2) { animation-delay: .4s; } .lc .lc-bloom:nth-of-type(3) { animation-delay: .8s; }
@keyframes lcWig { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-5deg); } 86% { transform: rotate(4deg); } 93% { transform: rotate(-1.5deg); } }
@keyframes lcSwing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes lcFeather { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-9deg); } }
@keyframes lcBloom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- onboarding ---------- */
body.onb-open { overflow: hidden; }
.onb { position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; background: var(--bg);
  background-image: radial-gradient(120% 60% at 0% 0%, var(--bg-glow-1), transparent 60%), radial-gradient(100% 50% at 100% 100%, var(--bg-glow-2), transparent 60%);
  padding: max(8px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); animation: onbIn .35s var(--ease-out, ease) both; }
.onb.out { animation: onbOut .25s ease both; }
@keyframes onbIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes onbOut { to { opacity: 0; transform: scale(.98); } }
.onb-top { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.onb-back { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; }
.onb-bar { flex: 1 1 auto; min-width: 0; height: 14px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.onb-bar > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--iris), var(--pink)); transition: width .5s var(--spring, ease);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.28); }
.onb-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 8px 2px 16px; -webkit-overflow-scrolling: touch; }
.onb-step { animation: onbStep .32s var(--ease-out, ease) both; }
@keyframes onbStep { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.onb-say { display: flex; align-items: flex-end; gap: 10px; margin: 6px 0 18px; }
.onb-lori.mascot { width: 76px; height: 76px; flex: 0 0 76px; animation: onbBob 2.6s ease-in-out infinite; }
.onb-say.big { flex-direction: column; align-items: center; text-align: center; margin-top: 8vh; }
.onb-say.big .onb-lori.mascot { width: 150px; height: 150px; flex-basis: 150px; order: 2; margin-top: 12px; }
@keyframes onbBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.onb-bubble { position: relative; min-width: 0; flex: 1 1 auto; background: var(--surface); border: 2px solid var(--line-2); border-radius: 18px; padding: 12px 14px;
  font-weight: 800; font-size: clamp(16px, 4.6vw, 19px); line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.onb-say:not(.big) .onb-bubble { margin-bottom: 18px; }
.onb-say:not(.big) .onb-bubble::before { content: ""; position: absolute; left: -9px; bottom: 14px; width: 14px; height: 14px; background: var(--surface);
  border-left: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); transform: rotate(45deg); }
.onb-say.big .onb-bubble { flex: 0 1 auto; font-size: clamp(20px, 6vw, 26px); padding: 16px 20px; }
.onb-say.big .onb-bubble::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 14px; height: 14px; margin-left: -7px; background: var(--surface);
  border-right: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); transform: rotate(45deg); }
.onb-opts { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.onb-opts.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.onb-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; min-width: 0; width: 100%; padding: 12px 14px; text-align: left;
  border-radius: 18px; border: 2px solid var(--line-2); border-bottom-width: 4px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700;
  font-size: clamp(14px, 4vw, 16px); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .18s var(--spring, ease), border-color .15s, background-color .15s;
  animation: onbCard .38s var(--ease-out, ease) both; }
.onb-card:nth-child(2) { animation-delay: .03s; } .onb-card:nth-child(3) { animation-delay: .06s; } .onb-card:nth-child(4) { animation-delay: .09s; }
.onb-card:nth-child(5) { animation-delay: .12s; } .onb-card:nth-child(6) { animation-delay: .15s; } .onb-card:nth-child(n+7) { animation-delay: .18s; }
@keyframes onbCard { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.onb-card:active { transform: translateY(2px) scale(.98); border-bottom-width: 2px; }
.onb-card.on { border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 0 0 3px rgba(255, 111, 181, .18); }
.onb-card.on .onb-ico { transform: scale(1.12) rotate(-6deg); }
.onb-ico { flex: 0 0 auto; display: grid; place-items: center; min-width: 34px; height: 34px; font-size: 26px; line-height: 1; transition: transform .25s var(--spring, ease); }
.onb-opts.test .onb-ico { width: 34px; border-radius: 10px; background: var(--surface-3); font-size: 15px; font-weight: 800; color: var(--ink-2); }
.onb-opts.test .onb-card.on .onb-ico { background: var(--pink); color: #fff; }
.onb-lbl { min-width: 0; flex: 1 1 auto; overflow-wrap: break-word; word-break: normal; hyphens: auto; line-height: 1.25; }
.onb-opts.test .onb-lbl { overflow-wrap: anywhere; }
.onb-opts.grid .onb-card { flex-direction: column; justify-content: center; gap: 6px; min-height: 92px; padding: 12px 8px; text-align: center; font-size: clamp(13px, 3.9vw, 15.5px); }
.onb-opts.grid .onb-ico { font-size: 30px; height: 36px; }
.onb-opts.grid .onb-lbl { flex: 0 0 auto; width: 100%; }
.onb-lbl small { display: block; margin-top: 2px; font-weight: 600; font-size: .86em; color: var(--muted); }
.onb-opts.list.big .onb-card { min-height: 76px; font-size: clamp(16px, 4.6vw, 18px); }
.onb-sub { margin-top: 14px; }
.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.onb-chip { min-height: 48px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.onb-chip.on { border-color: var(--pink); background: var(--pink-soft); }
.onb-foot { padding-top: 10px; border-top: 1px solid var(--line); }
.onb-go.btn { min-height: 56px; font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.onb-go.btn:disabled { opacity: .45; filter: saturate(.3); }
.onb-result { text-align: center; }
.onb-level { display: inline-grid; place-items: center; min-width: 140px; height: 96px; margin: 8px auto 0; padding: 0 24px; border-radius: 28px; background: var(--grad);
  color: #fff; font-size: 52px; font-weight: 900; letter-spacing: .03em; box-shadow: 0 12px 30px rgba(194, 38, 142, .38); animation: onbPop .6s var(--spring, ease) .2s both; }
@keyframes onbPop { from { opacity: 0; transform: scale(.4) rotate(-8deg); } to { opacity: 1; transform: none; } }
@media (max-width: 340px) { .onb-opts.grid .onb-card { padding: 10px 6px; } .onb-opts.grid { gap: 8px; } .onb-lori.mascot { width: 64px; height: 64px; flex-basis: 64px; } }

/* ---------- trophy shelf ---------- */
.gx-shelf { animation: onbCard .4s var(--ease-out, ease) both; }
.gx-head { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 4px 2px; }
.gx-head .grow { min-width: 0; flex: 1 1 auto; }
.gx-status { flex: 0 0 64px; width: 64px; height: 64px; display: block; filter: drop-shadow(0 6px 12px rgba(194, 38, 142, .3)); animation: gxFloat 3.2s ease-in-out infinite; }
.gx-status svg { width: 100%; height: 100%; }
@keyframes gxFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(3deg); } }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px 6px; margin-top: 16px; }
.gx-ach { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.gx-t { font-size: 11px; line-height: 1.2; font-weight: 700; color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }
.gx-ach.got .gx-t { color: var(--ink-2); }
.gx-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-3); color: var(--muted); opacity: .55; filter: grayscale(1); }
.gx-badge svg { width: 28px; height: 28px; }
.gx-badge.got { opacity: 1; filter: none; color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(194, 38, 142, .3), inset 0 3px 0 rgba(255,255,255,.25); }
.gx-ach.got:nth-child(3n+1) .gx-badge { background: linear-gradient(135deg, #FFB547, #FF6FB5); }
.gx-ach.got:nth-child(3n+2) .gx-badge { background: linear-gradient(135deg, #3EDBB0, #8B5CF6); }
.gx-badge.big { width: 96px; height: 96px; border-radius: 28px; } .gx-badge.big svg { width: 54px; height: 54px; }
.gx-count { text-align: right; margin-top: 8px; }

/* ---------- celebration ---------- */
.gx-cele { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(12, 2, 28, .62); animation: onbIn .25s ease both; }
.gx-cele.out { animation: onbOut .2s ease both; }
.gx-cele-card { width: min(360px, 100%); padding: 22px 18px 18px; border-radius: 28px; background: var(--surface); border: 2px solid var(--line-2); text-align: center; box-shadow: var(--shadow);
  animation: onbPop .5s var(--spring, ease) both; }
.gx-cele-card .h2 { margin: 4px 0 16px; overflow-wrap: anywhere; }
.gx-lori.mascot { width: 72px; height: 72px; margin: 0 auto 4px; display: block; animation: onbBob 1.6s ease-in-out infinite; }
.gx-art { display: grid; place-items: center; margin: 4px 0 12px; }
.gx-art .gx-status { width: 96px; height: 96px; flex-basis: 96px; }
.gx-art > * { animation: onbPop .7s var(--spring, ease) .15s both; }

@media (prefers-reduced-motion: reduce) {
  .lc *, .onb, .onb-step, .onb-card, .onb-lori.mascot, .onb-level, .gx-status, .gx-shelf, .gx-cele, .gx-cele-card, .gx-lori.mascot, .gx-art > * { animation: none !important; }
  .onb-bar > i { transition: none; }
}
/* placement start level on the course map */
.course-lvl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.course-lvl .lvl-badge { min-width: 34px; height: 34px; font-size: 13px; }
.course-lvl .small { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.level-head.placed .lvl-badge { background: linear-gradient(135deg, #3EDBB0, #0EA5A0); }
.level-head.cur .h3 { color: var(--pink); }
