/* Journey picker / onboarding (public/journey.js), Procvičování and Opakování hubs, Profile,
   journey Rescue packs, style guide (#/styl). */

.onboarding { min-height: calc(100dvh - 40px); display: grid; align-content: start; gap: 6px; padding-bottom: 12px; }
.onb-top { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin: 0 0 4px; }
.onb-back { margin: 0; }
.onb-spacer { width: 48px; }
.steps { display: flex; gap: 6px; justify-content: center; }
.steps span { width: 28px; height: 8px; border-radius: 4px; background: var(--color-line); transition: background-color var(--motion-base) ease, width var(--motion-base) var(--motion-spring); }
.steps span.on { background: var(--color-primary); width: 36px; }
.onb-head { text-align: center; }
.onb-head h1 { font-size: var(--size-xxl); margin: 8px 0 6px; }
.onb-head p { margin: 0 auto 10px; max-width: 36ch; }
.onb-mini { width: 120px; height: 77px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-line); margin-top: 4px; }

.journey-cards, .level-cards { display: grid; gap: 14px; margin-top: 6px; }
.journey-card, .level-card {
  --btn-bg: var(--color-surface);
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  min-height: 0;
  text-align: left;
  border-radius: var(--radius-lg);
  font-weight: 400;
  animation: card-in 420ms var(--motion-spring) both;
  margin-bottom: var(--edge-button);
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.journey-card.selected, .level-card.selected { --btn-border: var(--color-primary); --btn-edge: var(--color-primary-edge); background: var(--color-primary-soft); }
.jc-art { width: 128px; height: 82px; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px var(--color-line); }
.jc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-text { display: grid; gap: 2px; }
.jc-text strong { font-family: var(--font-heading); font-size: var(--size-xl); font-weight: 800; line-height: 1.1; }
.jc-text span { color: var(--color-ink-soft); font-size: var(--size-sm); line-height: 1.35; }
.jc-text small { color: var(--color-secondary-ink); font-weight: 800; font-size: var(--size-xs); }
.jc-text .jc-active { color: var(--color-primary-ink); }
/* A private course (Správa → Kurzy): "soukromý". */
.jc-text .badge.jc-private { justify-self: start; background: var(--color-reward-soft); color: var(--color-reward-ink); }
@media (max-width: 360px) {
  .journey-card { grid-template-columns: 96px 1fr; }
  .jc-art { width: 96px; height: 64px; }
}
@media (min-width: 520px) {
  .journey-card { grid-template-columns: 1fr; padding: 10px; }
  .jc-art { width: 100%; height: auto; aspect-ratio: 14 / 9; }
  .journey-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

.level-card { grid-template-columns: 44px 1fr; padding: 14px 16px; }
.level-card.text-only { grid-template-columns: 1fr; }
.lv-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.lv-bars i { width: 6px; border-radius: 3px; background: var(--color-line); }
.lv-bars i:nth-child(1) { height: 9px; }
.lv-bars i:nth-child(2) { height: 14px; }
.lv-bars i:nth-child(3) { height: 19px; }
.lv-bars i:nth-child(4) { height: 24px; }
.lv-bars i:nth-child(5) { height: 29px; }
.lv-bars i:nth-child(6) { height: 34px; }
.lv-bars i.on { background: var(--color-secondary); }
.lv-text { display: grid; gap: 2px; }
/* "Nevím – vyzkoušej mě": the placement conversation card above the six levels. */
.level-card.try-me { border-style: dashed; background: var(--color-paper-2); }
.lv-try { width: 40px; height: 40px; }
.placement { display: grid; gap: 14px; }
.placement .ci-level strong { font-size: var(--size-xl); }
.lv-text strong { font-family: var(--font-heading); font-size: var(--size-xl); font-weight: 800; line-height: 1.1; }
.lv-example { margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: var(--color-paper-2); font-weight: 700; font-size: var(--size-sm); justify-self: start; }

/* "Kdo se bude učit?" of the beginner journey (journey.js stepAudience, docs/ZACATECNIK.md §6.3). */
.audience-age { display: grid; gap: 10px; margin-top: 4px; padding: 14px; border-radius: var(--radius-lg); background: var(--color-paper-2); animation: card-in 360ms var(--motion-spring) both; }
.audience-age-q { margin: 0; font-weight: 800; }
.audience-ages { display: flex; flex-wrap: wrap; gap: 8px; }
.age-chip { min-width: 48px; min-height: 48px; margin: 0; padding: 0 12px; border-radius: var(--radius-pill); font-weight: 800; box-shadow: none; }
.age-chip[aria-pressed="true"] { --btn-bg: var(--color-secondary); --btn-fg: var(--color-on-secondary); --btn-border: var(--color-secondary); background: var(--color-secondary); color: var(--color-on-secondary); }
.audience-go { margin-top: 4px; }

.onb-start { display: grid; justify-items: center; text-align: center; gap: 6px; padding-top: 10px; }
.start-stage { position: relative; width: min(320px, 90%); margin: 10px auto 6px; animation: card-in 600ms var(--motion-spring) both; }
.start-art { width: 100%; border-radius: 24px; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--color-line), var(--shadow-raised); display: block; }
.start-avatar { position: absolute; left: 50%; bottom: -26px; width: 70px; transform: translateX(-50%); animation: start-walk 1.6s var(--motion-spring) 300ms both; }
@keyframes start-walk { from { opacity: 0; transform: translate(-160%, 20px) rotate(-10deg); } to { opacity: 1; transform: translateX(-50%); } }
.start-star { position: absolute; width: 56px; animation: fx-pop 600ms var(--motion-spring) both; }
.start-star.s1 { right: -16px; top: -18px; animation-delay: 500ms; }
.start-star.s2 { left: -14px; top: 40%; width: 46px; animation-delay: 700ms; }
.onb-start h1 { font-size: var(--size-display); margin: 26px 0 0; animation: card-in 500ms var(--motion-spring) 400ms both; }
.start-story { max-width: 34ch; color: var(--color-ink-soft); animation: card-in 500ms ease 600ms both; }
.onb-start .button { max-width: 360px; animation: card-in 500ms ease 800ms both; }

/* --- Procvičování --- */
.practice .page-head { margin-top: 0; }
.practice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.practice-tile {
  --tone: var(--color-secondary);
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--tone) 14%, var(--color-surface));
  border: 2px solid color-mix(in srgb, var(--tone) 45%, var(--color-line));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--tone) 55%, var(--color-line));
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 400;
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.practice-tile:active { transform: translateY(4px); box-shadow: 0 0 0 transparent; }
.practice-tile[data-tone="gold"] { --tone: var(--color-reward); }
.practice-tile[data-tone="plum"] { --tone: var(--area-campus-main); }
.practice-tile[data-tone="blue"] { --tone: var(--area-airport-main); }
.practice-tile[data-tone="teal"] { --tone: var(--color-secondary); }
.practice-tile img { width: 52px; height: 52px; margin: -4px 0 4px -4px; }
.practice-tile strong { font-family: var(--font-heading); font-size: var(--size-lg); font-weight: 800; line-height: 1.1; }
.practice-tile span { color: var(--color-ink-soft); font-size: var(--size-xs); font-weight: 700; }

/* --- Opakování --- */
.review-hero { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 22px 18px; }
.review-hero .big-num { font-family: var(--font-heading); font-size: 4rem; font-weight: 800; line-height: 0.9; color: var(--color-primary-ink); }
.review-hero .sticker { width: 88px; height: 88px; }
.review-hero .button { width: 100%; margin-top: 8px; }
.review-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.review-stats .tile { text-align: center; }

/* --- Profile --- */
.profile-hero { display: flex; align-items: center; gap: 16px; padding: 10px 0 4px; }
.profile-hero h1 { margin: 0; }
.profile-hero p { margin: 0; }
.profile-avatar { width: 72px; height: 90px; padding: 6px; border-radius: 24px; background: var(--color-secondary-soft); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--color-line); }
.profile-journey { display: grid; gap: 12px; }
.profile-journey-row { display: flex; gap: 14px; align-items: center; }
/* Moje učebnice: the finished lessons' sheets (pdf-links.js) */
.book-sheets { display: grid; gap: 10px; }
.book-sheets-journey { border: 2px solid var(--color-line); border-radius: 14px; padding: 10px 12px; }
.book-sheets-journey summary { font-weight: 800; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.book-sheets-chapter { font-size: 0.95rem; margin: 12px 0 4px; color: var(--color-ink-soft); }
.book-sheets-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.book-sheet-link { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-ink); text-decoration: none; font-weight: 600; }
.book-sheet-link svg { flex: none; color: var(--color-primary); }
.profile-journey-row img { width: 112px; height: 72px; border-radius: 14px; object-fit: cover; box-shadow: 0 0 0 2px var(--color-line); }
.profile-journey-row div { display: grid; }
.profile-journey-row strong { font-family: var(--font-heading); font-size: var(--size-xl); font-weight: 800; line-height: 1.1; }
.settings { display: grid; gap: 14px; }
.settings .check { margin: 0; }

/* --- Rescue: packs of the journey --- */
.rescue-journey { display: grid; gap: 10px; margin: 6px 0 18px; }
.rescue-journey h2 { margin: 6px 0 0; }
.rescue-lesson {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-line);
  box-shadow: 0 3px 0 var(--color-line);
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 400;
}
.rescue-lesson.current { border-color: var(--color-primary); box-shadow: 0 4px 0 var(--color-primary-edge); background: color-mix(in srgb, var(--color-primary-soft) 55%, var(--color-surface)); }
.rescue-lesson .rl-icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 26px; border-radius: 16px; background: var(--color-paper-2); }
.rescue-lesson strong { display: block; font-family: var(--font-heading); font-size: var(--size-lg); font-weight: 800; line-height: 1.15; }
.rescue-lesson small { color: var(--color-ink-soft); font-weight: 700; }
.rescue-lesson .badge { background: var(--color-primary); color: var(--color-on-primary); }
.rescue-chapter { color: var(--color-ink-soft); font-weight: 800; font-size: var(--size-xs); text-transform: uppercase; letter-spacing: 0.08em; margin: 10px 0 -2px; }

/* --- style guide (#/styl) --- */
.sg h2 { border-top: 2px dashed var(--color-line); padding-top: 18px; }
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.sg-swatch { border-radius: 12px; overflow: hidden; border: 2px solid var(--color-line); font-size: var(--size-xs); background: var(--color-surface); }
.sg-swatch i { display: block; height: 44px; }
.sg-swatch span { display: block; padding: 4px 6px; font-weight: 700; word-break: break-all; }
.sg-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sg-area { border-radius: 14px; overflow: hidden; border: 2px solid var(--color-line); background: var(--color-surface); }
.sg-area img { display: block; width: 100%; aspect-ratio: 3 / 2; }
.sg-area span { display: flex; gap: 4px; align-items: center; padding: 4px 6px; font-size: var(--size-xs); font-weight: 800; }
.sg-area b { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.sg-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.sg-icons figure { margin: 0; display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; background: var(--color-surface); border: 2px solid var(--color-line); font-size: 0.66rem; font-weight: 700; color: var(--color-ink-soft); }
.sg-icons .icon { color: var(--color-ink); }
.sg-stickers { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-stickers img { width: 80px; height: 80px; }
.sg-type p { margin: 4px 0; }
.sg-pic-tools { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 700; margin-bottom: 8px; }
.sg-pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sg-pic-grid figure { margin: 0; display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-radius: 12px; background: var(--color-surface); border: 2px solid var(--color-line); }
.sg-pic-grid img { width: 96px; height: 96px; }
.sg-pic-grid figcaption { font-size: var(--size-xs); font-weight: 700; text-align: center; white-space: pre-line; line-height: 1.2; color: var(--color-ink-soft); }
.sg-pictures.small .sg-pic-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.sg-pictures.small .sg-pic-grid img { width: 48px; height: 48px; }
.sg-pictures.bw img { filter: grayscale(1); }
.sg-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-nodes { position: relative; display: flex; gap: 30px; padding: 16px 8px 34px; border-radius: 16px; background: var(--area-park-light); --a-main: var(--area-park-main); --a-dark: var(--area-park-dark); --a-light: var(--area-park-light); }
.sg-nodes .node-slot { position: relative; }

/* Daily review card on the map (review.js renderReviewCard): count due today, one tap to start. */
.review-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 var(--edge-card) 0 var(--color-primary-edge);
  color: var(--color-ink);
  text-decoration: none;
}
.review-card:active { transform: translateY(2px); box-shadow: none; }
.review-card-num {
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-ink);
  font: 800 1.35rem/1 var(--font-heading);
}
.review-card-text { display: grid; gap: 1px; min-width: 0; }
.review-card-text strong { font-family: var(--font-heading); font-size: var(--size-md); line-height: 1.2; }
.review-card-text span { color: var(--muted); font-size: var(--size-xs); }
.review-card-go {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 var(--edge-button) 0 var(--color-primary-edge);
  font-weight: 800;
  font-size: var(--size-sm);
}

/* Sound drills "Hlásky" (pairs.js): the list of groups. */
.pairs-group { display: grid; gap: 6px; }
.pairs-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.pairs-group h2 { margin: 0; font-size: var(--size-lg); }
.pairs-example { color: var(--color-primary-ink); font-weight: 800; }
.pairs-group p { margin: 0; }
