/* Sekcja na gradiencie na górze stron (karty Nauka i Powtórka, podstrony) — grafiki 3D z assets/ */

html,
body { overflow-x: clip; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* pełna szerokość okna (bez paska przewijania — --sbw ustawia app.js) */
  margin: -14px calc(50% - 50vw + var(--sbw, 0px) / 2) 10px;
  padding: 14px max(16px, calc(50vw - var(--sbw, 0px) / 2 - 500px)) 22px;
  border-radius: 0 0 36px 36px;
  color: #131d4c;
  background:
    radial-gradient(38% 55% at 14% 62%, rgba(212, 215, 254, 0.85) 0%, rgba(212, 215, 254, 0) 72%),
    radial-gradient(55% 70% at 0% 100%, rgba(221, 213, 254, 0.95) 0%, rgba(221, 213, 254, 0) 70%),
    radial-gradient(45% 60% at 100% 55%, rgba(167, 233, 231, 0.9) 0%, rgba(167, 233, 231, 0) 70%),
    linear-gradient(115deg, #cbe0fd 0%, #c6e3fa 45%, #b7f3ec 100%);
}
.hero::before,
.hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 760px; height: 760px; left: -420px; bottom: -560px; border: 70px solid rgba(255, 255, 255, 0.2); }
.hero::after { width: 640px; height: 640px; right: -320px; top: -400px; border: 56px solid rgba(255, 255, 255, 0.18); }
.hero-inner { max-width: 1000px; margin: 0 auto; }

/* ---- górny pasek: ikony + kolorowe liczby ---- */
.statusbar .pill-stat { height: 46px; padding: 0 12px 0 0; gap: 8px; background: transparent; box-shadow: none; font-family: var(--display); font-size: 25px; font-weight: 800; }
.statusbar .pill-stat:hover { transform: none; box-shadow: none; }
.pill-stat .stat-img { width: 38px; height: 38px; object-fit: contain; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.pill-stat:hover .stat-img { transform: scale(1.15) rotate(-6deg); }
.pill-stat:active .stat-img { transform: scale(0.9); }
.statusbar .stat-known b { color: #27adb3; }
.statusbar .stat-gems b { color: #9061e3; }
.statusbar .pill-stat.flame b,
.statusbar .pill-stat.flame.hot b { color: #ed7a18; }
.statusbar .flag { width: 52px; height: 52px; border-width: 4px; box-shadow: 0 6px 16px rgba(40, 60, 120, 0.2); }

/* ---- karta Plan dnia ---- */
.plan-hero { display: flex; flex-direction: column; }
.ph-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 2px 6px; }
.ph-title { font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; color: #131d4c; }
.ph-mode {
  margin-left: 10px; padding: 4px 12px; border: 0; border-radius: 999px; cursor: pointer; vertical-align: middle;
  font-family: var(--display); font-size: 15px; font-weight: 700; color: #5a3fe0; background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(40, 70, 140, 0.12); transition: transform 0.2s ease, background 0.2s ease;
}
.ph-mode:hover { background: #fff; transform: translateY(-2px); }
.ph-mode:active { transform: scale(0.95); }
.ph-settings {
  width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #131d4c; background: rgba(255, 255, 255, 0.7); box-shadow: 0 6px 16px rgba(40, 70, 140, 0.14);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ph-settings svg { width: 22px; height: 22px; transition: transform 0.3s ease; }
.ph-settings:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(40, 70, 140, 0.2); }
.ph-settings:hover svg { transform: scaleY(-1); }
.ph-settings:active { transform: scale(0.94); }

.ph-grid { display: grid; gap: 6px; align-items: center; }
.ph-art { display: flex; justify-content: center; }
.ph-art img { width: 100%; max-width: 300px; height: auto; animation: ph-float 5s ease-in-out infinite; }
.ph-art.launched img { animation-duration: 2.4s; }
@keyframes ph-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.ph-tasks { display: flex; flex-direction: column; gap: 12px; }
.ph-task {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 8px 18px 8px 9px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; font: inherit;
  background: #fff;
  box-shadow: 0 8px 22px rgba(60, 100, 170, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ph-task:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(60, 100, 170, 0.18); }
.ph-task:active { transform: translateY(0) scale(0.985); box-shadow: 0 6px 14px rgba(60, 100, 170, 0.12); }
.ph-icon { width: 48px; height: 48px; flex-shrink: 0; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ph-task:hover .ph-icon { transform: scale(1.1) rotate(-8deg); }
.ph-task:active .ph-icon { transform: scale(0.92); }
.ph-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.ph-label { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.2; color: #1b1f3e; }
.ph-num { font-family: var(--display); font-size: 19px; font-weight: 600; color: #9696a2; font-variant-numeric: tabular-nums; }
.ph-num b { font-weight: 800; color: #9696a2; transition: color 0.3s ease; }
.ph-task.going .ph-num b { color: var(--ink); }

/* ---- pasek postępu: kolor ikony, połysk, przelatujący błysk, pulsujący czubek ---- */
.ph-bar { position: relative; display: block; height: 9px; border-radius: 99px; background: rgba(var(--tint), 0.16); }
.ph-bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill); min-width: 0; border-radius: inherit;
  background:
    linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%) no-repeat,
    linear-gradient(90deg, rgba(var(--tint), 0.7), rgb(var(--tint)));
  background-size: 250% 100%, 100% 100%;
  box-shadow: 0 2px 10px rgba(var(--tint), 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.07);
  animation: ph-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) calc(0.15s + var(--i, 0) * 0.12s) both, ph-shine 2.8s ease-in-out calc(1.3s + var(--i, 0) * 0.12s) infinite;
  transition: box-shadow 0.25s ease;
}
.ph-bar i::before { content: ""; position: absolute; left: 4px; right: 4px; top: 2px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.55); }
.ph-task.going .ph-bar i::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%;
  background: #fff; border: 3.5px solid rgb(var(--tint)); box-sizing: border-box;
  animation: ph-pulse 1.8s ease-out 1.3s infinite;
}
.ph-task:hover .ph-bar i { box-shadow: 0 2px 16px rgba(var(--tint), 0.85), inset 0 -2px 0 rgba(0, 0, 0, 0.07); }
@keyframes ph-grow { from { width: 0; } }
@keyframes ph-shine { 0% { background-position: 150% 0, 0 0; } 60%, 100% { background-position: -50% 0, 0 0; } }
@keyframes ph-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--tint), 0.6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--tint), 0); } }
.ph-done { width: 30px; height: 30px; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ph-task:hover .ph-done { transform: scale(1.15); }

/* ---- przycisk „Ucz się”: przejście koloru, błysk, uniesienie, fala po kliknięciu ---- */
.ph-cta,
.hero .plan-focus .btn.pill {
  position: relative; overflow: hidden; isolation: isolate; height: 62px; margin-top: 4px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--display); font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #38a5f1 0%, #5981f3 50%, #715bfa 100%);
  box-shadow: 0 14px 28px -10px rgba(89, 110, 245, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ph-cta > span { position: relative; z-index: 2; }
.ph-cta::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, #4f8ff6 0%, #6a6cfb 45%, #8a4dff 100%); opacity: 0; transition: opacity 0.35s ease; }
.ph-cta::after { content: ""; position: absolute; top: 0; left: -70%; z-index: 1; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-20deg); transition: left 0.75s ease; }
.ph-cta:hover,
.hero .plan-focus .btn.pill:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 20px 36px -10px rgba(113, 91, 250, 0.8); background: linear-gradient(90deg, #38a5f1 0%, #5981f3 50%, #715bfa 100%); }
.ph-cta:hover::before { opacity: 1; }
.ph-cta:hover::after { left: 125%; }
.ph-cta:active,
.hero .plan-focus .btn.pill:active:not(:disabled) { transform: translateY(1px) scale(0.98); box-shadow: 0 8px 18px -8px rgba(89, 110, 245, 0.6); }

.ripple { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, 0.45); transform: scale(0); animation: ripple 0.6s ease-out forwards; }
.ph-task .ripple { background: rgba(var(--tint), 0.22); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.ph-task:focus-visible,
.ph-cta:focus-visible,
.ph-settings:focus-visible,
.pill-stat:focus-visible,
.flag:focus-visible { outline: 3px solid #5a4dff; outline-offset: 3px; }

/* ---- druga karta karuzeli na tym samym tle ---- */
.hero .plan-focus { background: rgba(255, 255, 255, 0.55); border: 0; box-shadow: 0 10px 30px rgba(60, 100, 170, 0.12); backdrop-filter: blur(8px); }
.hero .plan-focus .focus-top .card-title { font-size: 26px; color: #131d4c; }
.hero .carousel-dots { margin: 14px 0 0; }
.hero .dot { background: rgba(19, 29, 76, 0.18); }
.hero .dot.active { background: #5981f3; }

@media (min-width: 720px) {
  .ph-title { font-size: 40px; }
  .ph-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; }
  .ph-art img { max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-bar i,
.ph-task.going .ph-bar i::after { animation: none; }
}
@media (max-width: 380px) {
  .ph-label,
.ph-num { font-size: 17px; }
  .ph-icon { width: 42px; height: 42px; }
}

/* ---- sekcje na gradiencie w zakładkach Audio, Słownictwo, Profil (views.js: pageHero, heroRow; grafiki assets/hero-*.png z Muse) ---- */
.ph-sq {
  display: grid; place-items: center; border-radius: 14px; color: #fff;
  background: linear-gradient(160deg, var(--g1) 0%, var(--g2) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 4px 10px rgba(40, 60, 120, 0.18);
}
.ph-sq svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15)); }
.ph-art-icon { display: grid; place-items: center; border-radius: 14px; background: #fff4d6; }
.ph-art-icon svg { width: 34px; height: 34px; }
.ph-sub { margin-top: -3px; font-size: 14px; font-weight: 600; line-height: 1.25; color: #7a7f95; }
.ph-task.static { cursor: default; }
.ph-task.static:hover { transform: none; box-shadow: 0 8px 22px rgba(60, 100, 170, 0.1); }
.ph-task.static:hover .ph-icon { transform: none; }
.ph-task.sel { box-shadow: 0 0 0 3px rgb(var(--tint)), 0 12px 26px rgba(60, 100, 170, 0.16); }
.ph-task:disabled { cursor: default; opacity: 0.6; }
.ph-task:disabled:hover { transform: none; }
.ph-cta:disabled { opacity: 0.55; cursor: default; }
.ph-mode.static { cursor: default; }
.ph-mode.static:hover { transform: none; background: rgba(255, 255, 255, 0.75); }

/* wybór „co odtwarzać” — szklana karta w sekcji */

/* filtry pod sekcją Słownictwa */

/* kolumna nie może być szersza niż ekran (lista wyboru z długimi nazwami tematów rozpychała siatkę) */
.page-hero .ph-grid { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 720px) { .page-hero .ph-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

/* ---- podstrony (views.js: subHero) — ta sama sekcja co Plan dnia, z powrotem ---- */
.sub-hero { padding-top: 18px; }
.sh-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sh-back svg { width: 24px; height: 24px; }
.sh-back:hover svg { transform: translateX(-2px); }
.sh-sub { margin: -2px 2px 6px 60px; font-family: var(--display); font-size: 16px; font-weight: 600; color: #4b5170; }
.sub-hero .ph-label { overflow-wrap: anywhere; }
.sub-hero .ph-label b { color: #5a3fe0; }
@media (max-width: 719px) { .sub-hero .ph-art img { max-width: 230px; } }

/* ---- karta Nauka (views.js: learnSlide) — jak „Plan dzienny” w WRD: następne słowo w dużym kafelku ---- */
.ln-art { position: relative; display: grid; place-items: center; padding: 16px 0 10px; animation: ph-float 5s ease-in-out infinite; }
.ln-art::before { content: ""; position: absolute; z-index: 0; width: min(330px, 86vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); pointer-events: none; }
.ln-tile {
  position: relative; z-index: 1; width: min(236px, 62vw); aspect-ratio: 1; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50px; cursor: pointer;
  background: linear-gradient(160deg, #ffffff -20%, var(--tint, #efeaff) 60%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.95), inset 0 -5px 0 rgba(30, 40, 90, 0.05), 0 8px 0 color-mix(in srgb, var(--tint, #efeaff) 76%, #9c6a4c 24%), 0 26px 40px -14px rgba(40, 60, 120, 0.4);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.ln-tile:hover { transform: translateY(-4px) rotate(-2deg) scale(1.03); }
.ln-tile:active { transform: scale(0.97); }
.ln-tile:has(.wa-img) { overflow: visible; }
.ln-tile .wa-img { width: 100%; height: 100%; border-radius: inherit; box-shadow: none; }
.ln-tile .wa-emoji { font-size: 118px; }
.ln-tile.done { cursor: default; background: linear-gradient(160deg, #ffffff -20%, #fff1c9 60%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.95), 0 8px 0 #f1d68c, 0 26px 40px -14px rgba(40, 60, 120, 0.4); }
.ln-trophy { width: 72%; height: auto; }
.ln-new {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 14px 6px 11px; border-radius: 999px; font-family: var(--display); font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, #38a5f1 0%, #5981f3 50%, #715bfa 100%); box-shadow: 0 8px 16px -6px rgba(89, 110, 245, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ln-new svg { width: 16px; height: 16px; }
.ln-info { gap: 14px; }
.ln-word { text-align: center; }
.ln-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ln-cefr { padding: 3px 12px; border-radius: 999px; font-family: var(--display); font-size: 14px; font-weight: 800; letter-spacing: 0.05em; color: #fff; background: linear-gradient(180deg, #8b6cff, #6143ff); box-shadow: 0 4px 10px rgba(97, 67, 255, 0.3); }
.ln-topic { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 12px; border-radius: 999px; font-family: var(--display); font-size: 14px; font-weight: 700; color: #4b5170; background: rgba(255, 255, 255, 0.78); box-shadow: 0 4px 12px rgba(40, 70, 140, 0.1); }
.ln-en { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1.1; color: #131d4c; }
.ln-en > span { min-width: 0; overflow-wrap: anywhere; }
.ln-say {
  flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #5981f3; background: #ffffff; box-shadow: 0 6px 16px rgba(40, 70, 140, 0.16); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.ln-say svg { width: 22px; height: 22px; }
.ln-say:hover { transform: scale(1.1); box-shadow: 0 10px 22px rgba(40, 70, 140, 0.22); }
.ln-say:active { transform: scale(0.92); }
.ln-pl { margin: 6px 0 0; font-family: var(--display); font-size: 24px; font-weight: 600; color: #667090; }
.ln-tile:focus-visible,
.ln-say:focus-visible { outline: 3px solid #5a4dff; outline-offset: 4px; }
@media (min-width: 720px) {
  .ln-tile { width: min(290px, 100%); }
  .ln-tile .wa-emoji { font-size: 140px; }
  .ln-word { text-align: left; }
  .ln-chips,
.ln-en { justify-content: flex-start; }
  .ln-en { font-size: 48px; }
}
@media (prefers-reduced-motion: reduce) { .ln-art { animation: none; } }
/* ciemny motyw: kafelek w kolorze tematu, ale przygaszony (jak kafelek wyboru słów) */
:root[data-theme="dark"] .ln-tile { background: linear-gradient(160deg, color-mix(in srgb, var(--tint, #efeaff) 42%, #2c2842) 0%, color-mix(in srgb, var(--tint, #efeaff) 24%, #1f1c2b) 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 8px 0 color-mix(in srgb, var(--tint, #efeaff) 14%, #120f1e), 0 26px 40px -14px rgba(0, 0, 0, 0.6); }
:root[data-theme="dark"] .ln-tile.done { --tint: #fff1c9; }
:root[data-theme="dark"] .ln-art::before { background: radial-gradient(closest-side, rgba(140, 120, 255, 0.22), rgba(140, 120, 255, 0)); }
/* słowa na karcie Nauka zmieniają się co 5 s (views.js: lnTick): kafelek się obraca i błyska, tekst wjeżdża, kropki odliczają */
.ln-pic { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; }
.ln-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%) no-repeat; background-size: 250% 100%; }
.ln-tile.ln-flip { animation: ln-flip 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.ln-tile.ln-flip::after { animation: ln-shine 0.9s ease 0.4s; }
.ln-tile.ln-flip .ln-new { animation: ln-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both; }
@keyframes ln-flip { 0% { transform: perspective(900px) rotateY(-100deg) scale(0.85); opacity: 0.2; } 60% { transform: perspective(900px) rotateY(12deg) scale(1.04); opacity: 1; } 100% { transform: none; } }
@keyframes ln-shine { from { opacity: 1; background-position: 150% 0; } to { opacity: 1; background-position: -50% 0; } }
@keyframes ln-pop { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }
.ln-word.ln-in > * { animation: ln-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.ln-word.ln-in > :nth-child(2) { animation-delay: 0.08s; }
.ln-word.ln-in > :nth-child(3) { animation-delay: 0.16s; }
@keyframes ln-in { from { opacity: 0; transform: translateX(26px); filter: blur(4px); } }
.ln-dots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.ln-dots i { position: relative; overflow: hidden; width: 8px; height: 8px; border-radius: 99px; background: rgba(19, 29, 76, 0.15); transition: width 0.35s ease, background 0.35s ease; }
.ln-dots i.on { width: 30px; background: rgba(89, 129, 243, 0.25); }
.ln-dots i.on::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, #38a5f1, #715bfa); animation: ln-fill var(--every, 5s) linear forwards; }
@keyframes ln-fill { to { width: 100%; } }
@media (hover: hover) { .learn-hero:hover .ln-dots i.on::after { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .ln-tile.ln-flip,
.ln-tile.ln-flip::after,
.ln-tile.ln-flip .ln-new,
.ln-word.ln-in > * { animation: none; } }

/* ---- pod „Ucz się” na karcie Nauka: Pomyłki i Wyuczone z „Powtórz” (views.js: lnReviewRows) ---- */
.ln-rvs { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.ln-rv { display: flex; align-items: center; gap: 12px; padding: 8px 6px 8px 8px; border-radius: 20px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 6px 16px rgba(60, 100, 170, 0.08); }
.ln-rv-ic { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; }
.ln-rv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; font-family: var(--display); font-size: 18px; line-height: 1.2; color: #1b1f3e; }
.ln-rv-text b { font-weight: 700; }
.ln-rv-open { padding: 0; border: 0; background: none; cursor: pointer; font: 600 14px Nunito, sans-serif; color: #6b7390; }
.ln-rv-open:hover { color: #5a3fe0; text-decoration: underline; }
.ln-rv-title { display: inline-flex; align-items: center; gap: 2px; }
.ln-rv-name { padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--display); font-size: 18px; font-weight: 700; color: #1b1f3e; text-align: left; }
.ln-rv-name:hover { color: #5a3fe0; }
.ln-rv-sel { position: relative; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1f3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 14px; }
.ln-rv-sel:hover { background-color: rgba(97, 67, 255, 0.1); }
.ln-rv-sel select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ln-rv-go { flex-shrink: 0; padding: 8px 18px; border: 2.5px solid #7c4dff; border-radius: 999px; cursor: pointer; background: #ffffff; font-family: var(--display); font-size: 16px; font-weight: 800; color: #6d3df0; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.ln-rv-go:hover:not(:disabled) { background: #7c4dff; color: #ffffff; transform: translateY(-1px); }
.ln-rv-go:active:not(:disabled) { transform: scale(0.96); }
.ln-rv-go:disabled { opacity: 0.45; cursor: default; }
/* ramka kafelka na karcie Nauka: gradientowy obrys w kolorach aplikacji, jasne passe-partout, obrazek z zaokrągleniem i połyskiem */
.ln-tile {
  padding: 10px; border: 4px solid transparent;
  background: linear-gradient(160deg, #ffffff 10%, color-mix(in srgb, var(--tint, #efeaff) 60%, #ffffff)) padding-box,
              linear-gradient(135deg, #8b6cff 0%, #38a5f1 50%, #6fdc2a 100%) border-box;
  box-shadow: 0 9px 0 -1px rgba(97, 67, 255, 0.28), 0 28px 44px -16px rgba(60, 50, 160, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}
.ln-tile .ln-pic { position: relative; overflow: hidden; border-radius: 38px; box-shadow: inset 0 0 0 1px rgba(20, 30, 80, 0.08), 0 6px 14px -4px rgba(30, 40, 90, 0.25); }
.ln-tile .ln-pic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(170deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0) 38%); }
.ln-tile .wa-img { border-radius: 38px; }
.ln-tile:hover { box-shadow: 0 9px 0 -1px rgba(97, 67, 255, 0.34), 0 34px 50px -16px rgba(60, 50, 160, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.9); }
.ln-tile.done { border-color: transparent; background: linear-gradient(160deg, #ffffff 10%, #fff1c9) padding-box, linear-gradient(135deg, #ffd24d, #ff9a1f) border-box; }
:root[data-theme="dark"] .ln-tile { background: linear-gradient(160deg, color-mix(in srgb, var(--tint, #efeaff) 30%, #2c2842), #1f1c2b) padding-box, linear-gradient(135deg, #8b6cff 0%, #38a5f1 50%, #6fdc2a 100%) border-box; }
/* bez białego passe-partout: grafika sięga do kolorowego obrysu */
.ln-tile { padding: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--tint, #efeaff) 70%, #ffffff), var(--tint, #efeaff)) padding-box, linear-gradient(135deg, #8b6cff 0%, #38a5f1 50%, #6fdc2a 100%) border-box; }
.ln-tile .ln-pic,
.ln-tile .wa-img { border-radius: 46px; box-shadow: none; }
/* grafika dokładnie w ramce: zaokrąglenie = wnętrze obrysu, lekkie powiększenie chowa jasny brzeg samej ikony */
.ln-tile { border-width: 5px; }
.ln-tile .ln-pic { width: 100%; height: 100%; overflow: hidden; border-radius: 45px; }
.ln-tile .wa-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transform: scale(1.07); }
/* plakietki nad słowem na karcie Nauka: połysk jak przyciski aplikacji */
.ln-cefr { padding: 4px 13px; background: linear-gradient(180deg, #9d82ff 0%, #6a4cff 100%); box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(40, 20, 140, 0.25), 0 5px 12px -3px rgba(97, 67, 255, 0.55); text-shadow: 0 1px 1px rgba(40, 20, 120, 0.35); }
.ln-topic { padding: 4px 13px; background: linear-gradient(180deg, #ffffff, #f1f3fb); border: 1px solid rgba(97, 67, 255, 0.12); box-shadow: inset 0 1.5px 0 #ffffff, 0 5px 12px -4px rgba(40, 70, 140, 0.25); color: #3d4466; }
/* przyciski z ikonami 3D (Ming): ustawienia i odsłuch */
.ph-settings .btn-3d,
.ln-say .btn-3d { width: 30px; height: 30px; object-fit: contain; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ph-settings:hover .btn-3d { transform: rotate(-8deg) scale(1.1); }
.ln-say .btn-3d { width: 28px; height: 28px; }
.ln-say:hover .btn-3d { transform: scale(1.12); }

/* karta Nauka: kontynuacja pakietu / tematu (nazwa + ✕) */
.ph-cont { display: inline-flex; align-items: center; gap: 6px; max-width: 60vw; padding: 4px 6px 4px 10px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-cont-ic { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.ph-cont-x { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: rgba(97, 67, 255, 0.12); color: #5a3fe0; font-size: 11px; font-weight: 800; }
.ph-cont-x:hover { background: #5a3fe0; color: #fff; }
.path-hero .path { margin: 4px auto 0; max-height: 470px; } /* Ścieżka Języka w karuzeli na górze */
.path-hero { padding-bottom: 26px; } /* trofeum egzaminu próbnego nie ucięte na dole */

/* ---- Ścieżka Języka: droga lekcji (views.js: lessonRoad) ---- */
.path-hero { padding-bottom: 10px; }
.rd-tests { display: flex; gap: 10px; margin: 2px 0 10px; }
.rd-test { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; font: inherit; background: rgba(255, 255, 255, 0.8); box-shadow: 0 8px 18px -8px rgba(40, 70, 140, 0.3); transition: transform 0.2s ease; }
.rd-test:hover { transform: translateY(-2px); }
.rd-test span:last-child { min-width: 0; display: flex; flex-direction: column; }
.rd-test b { font-family: var(--display); font-size: 15px; color: #1b1f3e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-test small { font-size: 12px; font-weight: 700; color: #7a7f95; }
.rd-test-ic { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 18px; background: linear-gradient(160deg, #ffb347, #ff8a1f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4); }
.rd-test-ic svg { width: 18px; height: 18px; }
.rd-test.gold .rd-test-ic { background: linear-gradient(160deg, #ffe27a, #f2b705); }
.rd-scroll { position: relative; height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; margin: 0 -8px; border-radius: 24px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 22px, #000 calc(100% - 28px), transparent 100%); }
.rd-scroll::-webkit-scrollbar { display: none; }
.rd { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.rd-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-node { position: absolute; z-index: 2; width: 66px; height: 66px; margin: -33px 0 0 -33px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: none; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.rd-node:hover { transform: scale(1.08); }
.rd-circle { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; border: 5px solid #fff; color: #fff; box-shadow: 0 7px 0 rgba(0, 0, 0, 0.12), 0 12px 22px -8px rgba(40, 50, 120, 0.45); }
.rd-circle svg { width: 28px; height: 28px; }
.rd-node.done .rd-circle { background: linear-gradient(160deg, #6fdc2a, #2fae0c); }
.rd-node.cur { width: 82px; height: 82px; margin: -41px 0 0 -41px; }
.rd-node.cur .rd-circle { background: linear-gradient(160deg, #ffb347, #ff7a00); box-shadow: 0 0 0 10px rgba(255, 170, 60, 0.28), 0 8px 0 rgba(0, 0, 0, 0.12), 0 14px 26px -8px rgba(255, 122, 0, 0.6); animation: rd-pulse 2s ease-in-out infinite; }
.rd-node.cur .rd-circle svg { width: 34px; height: 34px; }
.rd-node.lock .rd-circle { background: #d9d6e8; color: #8a86a3; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08); }
.rd-node.lock .rd-circle svg { width: 22px; height: 22px; }
@keyframes rd-pulse { 50% { box-shadow: 0 0 0 16px rgba(255, 170, 60, 0.12), 0 8px 0 rgba(0, 0, 0, 0.12), 0 14px 26px -8px rgba(255, 122, 0, 0.6); } }
.rd-score { position: absolute; right: -12px; bottom: -6px; padding: 2px 7px; border-radius: 999px; background: #fff; font-family: var(--display); font-size: 12px; font-weight: 800; color: #1fa45a; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); }
.rd-label { position: absolute; z-index: 1; transform: translateY(-50%); width: 128px; line-height: 1.15; pointer-events: none; }
.rd-label.r { text-align: left; }
.rd-label.l { text-align: right; }
.rd-label small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #6b7390; }
.rd-label b { font-family: var(--display); font-size: 15px; font-weight: 800; color: #131d4c; }
.rd-label.lock b { color: #8a86a3; }
.rd-here { position: absolute; z-index: 3; transform: translateX(-50%); padding: 4px 10px; border-radius: 10px; background: #131d4c; color: #fff; font-family: var(--display); font-size: 13px; font-weight: 800; white-space: nowrap; animation: ph-float 2.4s ease-in-out infinite; }
.rd-here::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.rd-sticker { position: absolute; z-index: 1; width: 60px; height: 60px; margin-left: -30px; pointer-events: none; animation: ph-float 5s ease-in-out infinite; }
.rd-sticker > * { width: 100%; height: 100%; }
.rd-finish { position: absolute; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #2ec4b6; color: #fff; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15); }
.rd-finish svg { width: 20px; height: 20px; }
.rd-empty { margin: 30px 0; text-align: center; color: #6b7390; }
@media (prefers-reduced-motion: reduce) { .rd-node.cur .rd-circle,
.rd-here,
.rd-sticker { animation: none; } }
/* odblokowane lekcje (jeszcze nie zrobione): fioletowe z numerem rozdziału */
.rd-node.open .rd-circle { background: linear-gradient(160deg, #a58bff, #6a4cff); }
.rd-num { font-family: var(--display); font-size: 24px; font-weight: 800; color: #fff; }
.ln-rv-sub { font: 600 14px Nunito, sans-serif; color: #6b7390; }
.ph-title .ph-mode.static { display: inline-block; white-space: nowrap; font-size: 14px; }
