/* AI Cheatcode (/cheatcode) — stílusok.
 *
 * Az alap tokenek a styles.css :root-jából jönnek. A vizuális nyelv az 5+1
 * carouselé, hogy a DM-ből érkező ugyanazt a világot lássa: padlizsán tér,
 * Poppins, a kulcsszó lila kiemelődobozban, dőlt vékony + félkövér váltás.
 * Az AI-kimenet nem chat-buborék, hanem szerkesztett riport. */

:root {
  --cc-bg: #1b1623;
  --cc-hl: #5e43a0;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

.cc [hidden] {
  display: none !important;
}

/* Mikrolanding, majd rövid onboarding. A tanítás a saját feladatnál indul. */
.cc .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.assessment-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 1.4rem;
  list-style: none;
}
.assessment-steps li {
  padding: 0.55rem 0;
  font-size: 0.73rem;
  line-height: 1.4;
  color: var(--muted);
  border-top: 3px solid var(--line);
}
.assessment-steps [aria-current] { border-color: var(--accent); color: #fff; }
.assessment-steps .is-done { border-color: var(--cc-hl); }
.assessment-situation {
  margin: 0 0 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text);
  line-height: 1.6;
}
.assessment-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.assessment-options > div { display: grid; gap: 0.55rem; }
.assessment-option {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(211, 188, 255, 0.04);
  cursor: pointer;
  font-size: 0.94rem;
  line-height: 1.5;
}
.assessment-option input { flex-shrink: 0; accent-color: var(--accent); }
.assessment-option:hover { border-color: var(--accent-soft); }
.assessment-option:has(:checked) { border-color: var(--accent); background: rgba(94, 67, 160, 0.35); }
.assessment-option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.assessment-option:has(:disabled) { cursor: default; }
.lesson summary { display: flex; align-items: center; gap: 0.45rem; cursor: pointer; font-size: 0.85rem; color: var(--accent); list-style: none; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson summary::before { content: ''; flex-shrink: 0; width: 0.7rem; height: 0.7rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 0.2s ease; }
.lesson[open] summary::before { transform: rotate(90deg); }
.lesson p { margin: 0.65rem 0 0; }
.lesson summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 360px) {
  .cc-header { gap: 0.5rem; padding-inline: 0.75rem; }
  .cc-mark { letter-spacing: 0.15em; }
}

html:has(body.cc),
body.cc {
  background: var(--cc-bg);
}

.cc-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(90% 55% at 15% 0%, rgba(110, 69, 188, 0.3), transparent 70%),
    radial-gradient(70% 45% at 100% 100%, rgba(110, 69, 188, 0.14), transparent 70%);
}

/* ---- fejléc ------------------------------------------------------------------ */

.cc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: rgba(27, 22, 35, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cc-back {
  justify-self: start;
  padding: 0.45rem 0.1rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.cc-back:hover {
  color: var(--text);
}

.cc-back.is-hidden {
  visibility: hidden;
}

.cc-mark {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.cc-progress {
  justify-self: end;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

.cc-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

/* ---- képernyők ------------------------------------------------------------------ */

.cc-main {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 1.3rem 3rem;
}

.cc .screen {
  display: none;
}

.cc .screen.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - 58px);
  padding: 2.2rem 0 2.6rem;
}

.cc .screen.is-active > * {
  animation: cc-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.cc .screen.is-active > *:nth-child(2) { animation-delay: 0.04s; }
.cc .screen.is-active > *:nth-child(3) { animation-delay: 0.08s; }
.cc .screen.is-active > *:nth-child(n+4) { animation-delay: 0.12s; }

@keyframes cc-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---- tipográfia ------------------------------------------------------------------ */

.cc h1,
.cc h2 {
  margin: 0 0 1rem;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  letter-spacing: -0.01em;
  outline: none;
}

.cc h1 {
  font-size: clamp(2.7rem, 12vw, 4.4rem);
  line-height: 1.22;
  font-weight: 700;
}

.cc h2 {
  font-size: clamp(1.5rem, 6.2vw, 2.25rem);
  line-height: 1.22;
  font-weight: 600;
}

.t-light {
  font-weight: 400;
  font-style: italic;
}

.hl {
  padding: 0.02em 0.3em;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
  background: var(--cc-hl);
  border-radius: 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  margin: 0 0 0.8rem;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text);
}

.sub {
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
}

.fine {
  margin: 1.2rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--soft);
}

.fine a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.privacy {
  max-width: 34rem;
  margin: 2.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--soft);
}

/* ---- gombok --------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.btn-primary,
.btn-ghost {
  min-height: 3.2rem;
  padding: 0.8rem 1.9rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft);
}

.btn-primary:hover:not([disabled]) {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  color: var(--text);
  background: none;
  border: 1px solid rgba(211, 188, 255, 0.24);
}

.btn-ghost:hover:not([disabled]) {
  border-color: var(--accent-soft);
  color: var(--accent);
}

.btn-link {
  padding: 0.4rem 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: rgba(211, 188, 255, 0.3);
  text-underline-offset: 4px;
  cursor: pointer;
}

.btn-link:hover {
  color: var(--text);
}

.cc button:focus-visible,
.cc a:focus-visible,
.cc input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- választók ---------------------------------------------------------------- */

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.choices.is-single {
  grid-template-columns: 1fr;
}

.choice {
  min-height: 4.3rem;
  padding: 0.9rem 1rem;
  text-align: left;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  background: rgba(211, 188, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.choices.is-single .choice {
  min-height: 3.6rem;
}

.choice:hover {
  border-color: var(--accent-soft);
  background: rgba(211, 188, 255, 0.09);
}

.choice.is-selected {
  border-color: var(--accent);
  background: rgba(94, 67, 160, 0.45);
}

/* ---- szabad szöveges válasz: nem űrlap, hanem egy vonal ----------------------- */

.answer {
  display: block;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.6rem 0 0.7rem;
  font: inherit;
  font-size: 1.22rem;
  line-height: 1.5;
  color: #fff;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(211, 188, 255, 0.3);
  border-radius: 0;
  resize: none;
  overflow: hidden;
}

.answer:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.answer::placeholder {
  color: var(--soft);
}

.q-hint {
  margin-top: 0.55rem;
}

/* ---- build-up ------------------------------------------------------------------ */

.build-lines {
  display: grid;
  gap: 0.7rem;
  margin: 0.4rem 0 2.2rem;
  padding: 0;
  list-style: none;
}

.build-lines li {
  font-size: 1.12rem;
  color: var(--muted);
  opacity: 0;
  animation: cc-line-in 0.5s ease forwards;
}

.build-lines li::before {
  content: '—';
  margin-right: 0.6rem;
  color: var(--accent);
}

.build-lines li:nth-child(1) { animation-delay: 0.5s; }
.build-lines li:nth-child(2) { animation-delay: 1.2s; }
.build-lines li:nth-child(3) { animation-delay: 1.9s; }

@keyframes cc-line-in {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: none; }
}

.build-bar {
  height: 2px;
  overflow: hidden;
  background: var(--line);
  border-radius: 2px;
}

.build-bar span {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--accent);
  animation: cc-bar 1.4s ease-in-out infinite;
}

@keyframes cc-bar {
  from { transform: translateX(-100%); }
  to { transform: translateX(300%); }
}

/* ---- az ütés: egy mondat, egyedül ---------------------------------------------- */

.punch-line {
  margin: 0.4rem 0 0;
  font-size: clamp(1.9rem, 8.2vw, 2.9rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.cc .screen[data-screen="punch"].is-active .punch-line {
  animation: cc-punch 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s backwards;
}

@keyframes cc-punch {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cc .screen[data-screen="punch"].is-active .punch-line { animation: none; }
}

/* ---- v2: beillesztés, nyitó olvasat, trükk ------------------------------------- */

.answer.paste {
  min-height: 6.5rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  background: rgba(211, 188, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 14px;
  resize: vertical;
  overflow: auto;
}

.answer.paste:focus {
  border-color: var(--accent);
}

.missing {
  margin: 0.2rem 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.missing li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.02rem;
  line-height: 1.5;
}

.missing li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.missing li b {
  color: #fff;
}

.t-label {
  display: block;
  margin: 1.1rem 0 0.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
}

.field {
  display: block;
}

/* ---- v3: egy dolog, mozdulatok ---------------------------------------------------- */

.chip {
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: left;
  color: var(--text);
  background: rgba(211, 188, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chip:hover {
  border-color: var(--accent-soft);
}

.k-missing {
  margin: 0.9rem 0 0.2rem;
}

.k-missing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.k-missing-list li {
  padding: 0.3rem 0.7rem;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--muted);
  background: rgba(211, 188, 255, 0.04);
  border: 1px dashed var(--line);
  border-radius: 999px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.chip.is-on {
  color: #fff;
  background: rgba(94, 67, 160, 0.55);
  border-color: var(--accent);
}

.chip.is-on::before {
  content: '✓ ';
  font-weight: 700;
}

.moves {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.moves li {
  padding: 0.25rem 0.6rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.moves li.is-done {
  color: var(--accent);
  border-color: rgba(167, 123, 255, 0.4);
}

.moves li.is-done::before {
  content: '✓ ';
}

.moves li.is-current {
  color: #fff;
  background: var(--cc-hl);
  border-color: var(--cc-hl);
}

.answer-card {
  margin: 0.2rem 0 1rem;
  padding: 1.2rem 1.3rem;
  background: rgba(211, 188, 255, 0.06);
  border: 1px solid rgba(167, 123, 255, 0.3);
  border-radius: 16px;
}

.answer-card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.62;
  white-space: pre-line;
  color: var(--text);
}

.answer-card.is-plain {
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--line);
}

.answer-card.is-plain p {
  color: var(--muted);
}

.changed {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #fff;
}

.changed-label {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.1rem 0.5rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: #fff;
  background: var(--cc-hl);
  border-radius: 6px;
}

.prompt pre .is-new {
  padding: 0 0.15em;
  color: #fff;
  background: rgba(94, 67, 160, 0.6);
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.method {
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid rgba(167, 123, 255, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(94, 67, 160, 0.32), rgba(94, 67, 160, 0.08));
}

.method-list {
  display: grid;
  gap: 0.6rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: move;
}

.method-list li {
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.96rem;
  line-height: 1.5;
  counter-increment: move;
}

.method-list li::before {
  content: counter(move);
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--cc-hl);
  border-radius: 50%;
}

.method-list b {
  color: #fff;
}

.lap-final {
  margin-top: 1.6rem;
}

/* ---- v4: belépés ---------------------------------------------------------------- */

.own-goal {
  margin-top: 1rem;
}

.own-goal-body {
  padding: 0.2rem 1rem 1rem;
}

.own-goal-body .actions {
  margin-top: 1rem;
}

/* ---- v4: tanítás, hiány, mondatra koppintás, szempontok ---------------------------- */

.teach {
  margin: 0 0 1.1rem;
  padding: 0.85rem 1.05rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #fff;
  background: linear-gradient(135deg, rgba(94, 67, 160, 0.4), rgba(94, 67, 160, 0.12));
  border: 1px solid rgba(167, 123, 255, 0.3);
  border-radius: 14px;
}

.teach:empty {
  display: none;
}

.gapbox {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1.05rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(211, 188, 255, 0.05);
}

.gap-note {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.gap-quote {
  display: block;
  margin-bottom: 0.3rem;
  font-style: italic;
  color: #fff;
}

.gap-quote:empty {
  display: none;
}

.hintbox {
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  border: 1px dashed rgba(211, 188, 255, 0.3);
  border-radius: 12px;
}

.hintbox p {
  margin: 0 0 0.3rem;
}

.sentences {
  display: grid;
  gap: 0.5rem;
  margin: 0.2rem 0 1rem;
}

.sentence {
  padding: 0.75rem 0.95rem;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(211, 188, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sentence:hover {
  border-color: var(--accent-soft);
}

.sentence.is-picked {
  border-color: var(--accent);
  background: rgba(94, 67, 160, 0.4);
}

.sentence.is-key {
  border-color: var(--accent);
  background: rgba(94, 67, 160, 0.5);
  color: #fff;
}

.sentence.is-wrong {
  border-color: rgba(255, 159, 159, 0.6);
  text-decoration: line-through;
  color: var(--muted);
}

.sentence[disabled] {
  cursor: default;
}

.t-ask {
  margin-bottom: 0.6rem;
  color: #fff;
}

.reveal {
  margin-top: 0.4rem;
}

.request {
  margin: 0 0 1rem;
  padding: 0.9rem 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--line);
  border-radius: 0 12px 12px 0;
  white-space: pre-line;
}


.method-list .state {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
  color: var(--accent);
  border: 1px solid rgba(167, 123, 255, 0.4);
  border-radius: 999px;
}

.method-list .example-line {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-style: italic;
  color: var(--muted);
}

.t-feedback {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e9dfff;
  background: rgba(94, 67, 160, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.t-feedback:empty {
  display: none;
}

.t-mech {
  margin: 1.4rem 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
}

.compare {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.compare summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

/* Vonalas chevron a ▸ karakter helyett; nyitva lefelé fordul. */
.compare summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.8rem;
  height: 0.8rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.compare[open] summary::after { transform: rotate(90deg); }

.compare summary::-webkit-details-marker {
  display: none;
}

.compare[open] summary {
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.compare-plain {
  margin: 0;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--soft);
}

.compare .prompt {
  margin: 0.8rem;
}

.compare .btn-ghost {
  margin: 0 0.8rem 0.8rem;
}

.r-title {
  margin-top: 0.4rem;
}

.r-save.is-saved {
  border-color: var(--accent-soft);
  color: var(--accent);
}

/* ---- a lap ------------------------------------------------------------------------ */

.lap-label {
  margin-top: 2rem;
}

.lap-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.lap-item {
  padding: 1rem 1.1rem;
  background: rgba(211, 188, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.lap-item.is-missing {
  border-style: dashed;
  color: var(--soft);
}

.lap-item a {
  font-size: 0.86rem;
  color: var(--accent);
  text-underline-offset: 3px;
}

.lap-item-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}

.lap-item.is-missing .lap-item-title {
  color: var(--soft);
}

.lap-item-body {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cfc6dd;
}

.lap-copy {
  min-height: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.78rem;
}

/* ---- riport: az AI-kimenet ------------------------------------------------------ */

.report {
  margin-top: 0.3rem;
}

.rep-block {
  padding: 1.05rem 0 1.1rem;
  border-top: 1px solid var(--line);
}

.rep-label {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.rep-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--text);
  white-space: pre-line;
}

.rep-key {
  margin-top: 1rem;
  padding: 1.3rem 1.3rem 1.4rem;
  border: 1px solid rgba(167, 123, 255, 0.32);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(94, 67, 160, 0.42), rgba(94, 67, 160, 0.12));
}

.rep-key .rep-text {
  font-size: 1.24rem;
  line-height: 1.45;
  font-style: italic;
  font-weight: 500;
  color: #fff;
}

.rep-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 1.1rem;
}

.fine-top {
  margin: 0 0 0.6rem;
}

/* ---- irányválasztás ------------------------------------------------------------ */

.dive-list {
  display: grid;
  gap: 0.75rem;
}

.dive {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem 1.3rem;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: rgba(211, 188, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.dive:hover {
  border-color: var(--accent-soft);
  background: rgba(211, 188, 255, 0.09);
}

.dive.is-selected {
  border-color: var(--accent);
}

.dive-name {
  font-size: 1.02rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}

.dive-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- leleplezés ---------------------------------------------------------------- */

.code-steps {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}

.code-steps li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.step-n {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--cc-hl);
  border-radius: 50%;
}

.step-name {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.step-q {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.step-you {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--accent);
}

.step-you:empty {
  display: none;
}

.statement {
  margin: 2.2rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.statement-a {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 6.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
}

.statement-b {
  margin: 0;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

.share {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 2rem 0 0;
}

.share-preview {
  flex-shrink: 0;
  width: 38%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #231c2e;
  border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}

.share figcaption {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---- prompt-blokk ---------------------------------------------------------------- */

.prompt {
  margin-top: 0.3rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.prompt pre {
  max-height: 46vh;
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: #ddd3ea;
}

.howto {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.howto p {
  margin: 0 0 0.4rem;
}

.fallback-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.7;
}

/* ---- holnaptól ------------------------------------------------------------------ */

.tomorrow {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.tm {
  padding: 1rem 1.2rem;
  background: rgba(211, 188, 255, 0.04);
  border-left: 3px solid var(--cc-hl);
  border-radius: 0 12px 12px 0;
}

.tm-when {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.tm-say {
  margin: 0;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.55;
}

/* ---- biztonság ------------------------------------------------------------------- */

.help {
  margin: 1.2rem 0;
  padding: 1.2rem 1.3rem;
  background: rgba(94, 67, 160, 0.18);
  border: 1px solid rgba(167, 123, 255, 0.32);
  border-radius: 14px;
}

.help p {
  margin: 0 0 0.5rem;
  line-height: 1.55;
}

.help p:last-child {
  margin: 0;
}

/* ---- mobil és mozgás ----------------------------------------------------------------- */

@media (max-width: 560px) {
  .rep-row {
    grid-template-columns: 1fr;
  }

  .actions > .btn-primary,
  .actions > .btn-ghost {
    flex: 1 1 100%;
  }

  .cc .screen.is-active {
    padding-top: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc .screen.is-active > *,
  .build-lines li,
  .build-bar span {
    animation: none;
  }

  .build-lines li {
    opacity: 1;
  }

  .cc-line {
    transition: none;
  }
}

/* v18 landing. A tágabb elrendezés csak a nyitóoldalon aktív. */
.landing-brand-icon { display: none; }
.cc:has(.landing.is-active) { --cc-bg: #141019; }
.cc:has(.landing.is-active) .cc-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1240px; margin-inline: auto;
  padding: 1.2rem 2rem; background: transparent; position: relative;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.cc:has(.landing.is-active) .cc-back,
.cc:has(.landing.is-active) .cc-progress,
.cc:has(.landing.is-active) .cc-line { display: none; }
.cc:has(.landing.is-active) .cc-mark {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.875rem; color: var(--text); letter-spacing: 0.13em;
}
.cc:has(.landing.is-active) .landing-brand-icon { display: block; border-radius: 8px; }
.cc:has(.landing.is-active) .cc-main { max-width: 1240px; padding: 0 2rem; }
.cc .landing.is-active { padding: 3.3rem 0 0; min-height: 0; }
.landing-hero {
  display: grid; grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.landing-copy { min-width: 0; }
.landing-eyebrow {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.6rem;
  font-size: 0.875rem; line-height: 1.5; color: #d3c6e5;
}
.landing-eyebrow > span {
  width: 6px; height: 6px; flex-shrink: 0; background: #b890ff;
  box-shadow: 0 0 12px #a77bff80; border-radius: 50%;
}
.cc h1.landing-title {
  margin-bottom: 1.6rem; font-size: clamp(2.65rem, 4.35vw, 3.75rem);
  font-weight: 600; line-height: 1.12; letter-spacing: -0.055em; text-wrap: balance;
}
.landing-title em { color: #bb96ff; font-style: normal; }
.landing-promise {
  margin: 0 0 1rem; color: #f3eef8; font-size: 1.2rem;
  font-weight: 500; line-height: 1.5; letter-spacing: -0.025em;
}
.landing-description { max-width: 32rem; margin: 0; font-size: 1rem; line-height: 1.75; color: #b9b0c5; }
.landing-action { margin-top: 1.8rem; }
.landing .landing-start {
  display: inline-flex; align-items: center; justify-content: center; gap: 1.8rem;
  padding: 1rem 1.4rem; min-height: 3.65rem; font-size: 1rem; line-height: 1.4;
  font-weight: 600; letter-spacing: -0.02em; text-transform: none;
  border: 1px solid #c6a9ff; border-radius: 10px; background: #c6a9ff; color: #231333;
  box-shadow: 0 4px 28px #a77bff20;
}
.landing-start .ico { width: 1.25rem; height: 1.25rem; }
.landing .landing-start:hover { background: #d7c2ff; border-color: #d7c2ff; box-shadow: 0 7px 34px #a77bff38; }
.landing-fine { margin: 0.7rem 0 0; color: #aba1b8; font-size: 0.8125rem; line-height: 1.6; }
.landing-return { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.landing-return:has(button:not([hidden])) { margin-top: 0.85rem; }
.landing-return .btn-link { text-align: left; }
.landing-demo {
  position: relative; margin: 1rem 0 0; padding: 1.65rem;
  border: 1px solid #b48df537; border-radius: 18px;
  background: linear-gradient(150deg, #30223e 0%, #1c1625 65%);
  box-shadow: 0 25px 90px #0004, 0 0 100px #955fea0d;
}
.landing-demo-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1.8rem; }
.landing-demo-kicker { color: #e2d5f6; font-size: 0.8125rem; }
.landing-demo-tag { color: #b6a7c8; font-size: 0.75rem; }
.cc .landing-demo h2 { margin: 0 0 1.5rem; font-size: 1.6rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.035em; }
.landing-demo h2 span { color: #b8a6cd; }
.landing-demo-label { display: block; font-size: 0.75rem; line-height: 1.5; color: #baadc9; }
.landing-demo p { font-size: 1rem; line-height: 1.55; margin: 0.6rem 0 0; letter-spacing: -0.015em; }
.landing-demo-before { padding: 0 0 1.3rem; }
.landing-demo-before p { color: #c3b7d1; }
.landing-demo-question { padding: 1rem 1.15rem; border-radius: 10px; border: 1px solid #a77bff59; background: #7a4db82b; }
.landing-demo-question .landing-demo-label { display: flex; align-items: center; gap: 0.5rem; color: #d2b7ff; }
.landing-ai-symbol { display: inline-flex; width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 6px; background: #a77bff2e; color: #d2b7ff; }
.landing-ai-symbol .ico { width: 1rem; height: 1rem; }
.landing-demo-question p { color: #f2e9ff; }
.landing-demo-after { padding: 1.4rem 0 0 1.15rem; margin-left: 0.6rem; position: relative; }
.landing-demo-after::before { content: ''; position: absolute; top: 0; left: 0; height: 2.2rem; width: 0.65rem; border-left: 1px solid #8e6cac; border-bottom: 1px solid #8e6cac; border-bottom-left-radius: 6px; }
.landing-demo-after p { color: #f7f0ff; }
.landing-demo-after strong { color: #d3b7ff; font-weight: 500; }
.landing-demo .landing-demo-note { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #b48df524; color: #b6a7c8; font-size: 0.75rem; letter-spacing: 0; }
.landing-how { border-top: 1px solid #b48df52b; margin-top: 4.5rem; padding-top: 2rem; }
.landing-how-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.landing-section-label { font-size: 0.75rem; color: #b9a7cf; letter-spacing: 0.12em; margin: 0; }
.cc .landing-how h2 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.landing-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; list-style: none; padding: 0; margin: 1.7rem 0 0; }
.landing-flow li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.6rem; }
.landing-number { font-family: var(--mono); font-size: 0.8125rem; color: #b890ff; padding-top: 0.2rem; }
.landing-flow b { font-size: 1rem; font-weight: 500; line-height: 1.5; }
.landing-flow p { margin: 0.5rem 0 0; font-size: 0.875rem; line-height: 1.7; color: #b6adbf; }
.landing-bottom-start { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0; margin: 1.4rem auto 0; border: 0; border-bottom: 1px solid #b48df557; background: none; color: #d5beff; font: inherit; font-size: 0.9375rem; cursor: pointer; }
.landing-bottom-start:hover { color: #fff; border-color: #d5beff; }
.landing-bottom-start .ico { width: 1.1rem; height: 1.1rem; }
.landing-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0 1.5rem; margin-top: 2rem; color: #a398ae; font-size: 0.75rem; border-top: 1px solid #b48df51c; }
@media (max-width: 1000px) {
  .landing-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; }
  .cc h1.landing-title { font-size: 2.75rem; }
  .landing-demo { padding: 1.25rem; }
  .landing-flow { gap: 1.4rem; }
}
@media (max-width: 760px) {
  .cc:has(.landing.is-active) .cc-header { padding: 1rem 1.25rem; }
  .cc:has(.landing.is-active) .cc-main { max-width: 590px; padding-inline: 1.25rem; }
  .cc:has(.landing.is-active) .cc-mark { font-size: 0.75rem; letter-spacing: 0.09em; gap: 0.5rem; }
  .landing-brand-icon { width: 28px; height: 28px; }
  .cc .landing.is-active { padding-top: 2rem; }
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .landing-eyebrow { font-size: 0.8125rem; margin-bottom: 1.25rem; }
  .cc h1.landing-title { font-size: clamp(2.25rem, 8.6vw, 3.4rem); line-height: 1.12; margin-bottom: 1.4rem; }
  .landing-promise { font-size: 1.125rem; }
  .landing-description { font-size: 1rem; line-height: 1.65; }
  .landing-action { margin-top: 1.5rem; }
  .landing .landing-start { width: 100%; justify-content: space-between; }
  .landing-fine { text-align: center; font-size: 0.75rem; }
  .landing-demo { margin: 0; padding: 1.5rem; }
  .landing-demo-heading { margin-bottom: 1.4rem; }
  .landing-how { margin-top: 2.5rem; padding-top: 1.6rem; }
  .landing-how-heading { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
  .landing-flow { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .landing-flow li { gap: 0.8rem; }
  .landing-flow p { margin-top: 0.35rem; }
  .landing-bottom-start { margin-top: 1.1rem; }
  .landing-footer { margin-top: 1.5rem; padding-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.cc) { scroll-behavior: auto; }
  .cc .screen.is-active > * { animation: none; }
  .landing button { transition: none; }
}

/* Nyolc érdeklődési terület, legfeljebb három kijelölés. */
.area-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.area-option { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.9rem 0.75rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(211, 188, 255, 0.04); cursor: pointer; }
.area-option input { flex-shrink: 0; margin: 0.2rem 0 0; accent-color: var(--accent); }
.area-option b { display: block; font-size: 0.88rem; line-height: 1.4; overflow-wrap: anywhere; }
.area-option small { display: block; font-size: 0.74rem; line-height: 1.45; margin-top: 0.4rem; color: var(--muted); }
.area-option:has(:checked) { border-color: var(--accent); background: rgba(94, 67, 160, 0.35); }
.area-option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.area-option:has(:disabled) { opacity: 0.5; cursor: default; }
.area-count { margin: 1rem 0 0; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.other-tasks { margin-top: 1rem; }
.other-tasks .dive-list { padding: 0.8rem; }

.own-draft-wrap {
  margin-top: 0.9rem;
}

.own-draft-wrap .fine {
  margin: 0 0 0.6rem;
}

.r-delayed {
  margin-top: 0.6rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: rgba(211, 188, 255, 0.05);
}

/* Vonalas SVG-ikonok emoji helyett: a színt a szövegtől öröklik. */
.ico { display: inline-block; flex-shrink: 0; vertical-align: -0.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-spark { fill: currentColor; stroke: none; width: 0.85rem; height: 0.85rem; vertical-align: -0.1em; }

/* ---- v23: létra, kontraszt, közjáték, ítélet, előtte–utána ------------------- */
.ladder { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.15rem; }
.rung { position: relative; display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.75rem; align-items: start; padding: 0.55rem 0.6rem; border-radius: 12px; color: var(--muted); }
.rung + .rung::before { content: ''; position: absolute; left: calc(0.6rem + 0.85rem - 1px); top: -0.4rem; height: 0.6rem; width: 2px; background: rgba(211, 188, 255, 0.14); }
.rung-mark { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--line); font-size: 0.78rem; color: var(--soft); background: rgba(0, 0, 0, 0.2); }
.rung.is-done { color: var(--text); }
.rung.is-done .rung-mark { border-color: var(--accent); background: rgba(94, 67, 160, 0.45); color: #fff; }
.rung-check { width: 0.95rem; height: 0.95rem; stroke-width: 2.6; }
.rung-body { display: grid; gap: 0.2rem; font-size: 0.93rem; line-height: 1.45; }
.rung-body b { font-weight: 600; color: inherit; }
.rung.is-done .rung-body b { color: #fff; }
.rung-ev { font-style: italic; color: #d2b7ff; font-size: 0.88rem; }
.rung-note { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.rung.is-new { animation: cc-rung-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rung.is-new .rung-mark { animation: cc-rung-mark 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: inherit; }
.rung.is-new .rung-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: cc-draw 0.45s ease-out forwards; animation-delay: inherit; }
.rung.is-new .rung-ev, .rung.is-new .rung-note { animation: cc-rise 0.5s ease-out both; animation-delay: inherit; }
@keyframes cc-rung-in { 0% { background: rgba(167, 123, 255, 0); } 35% { background: rgba(167, 123, 255, 0.22); } 100% { background: rgba(167, 123, 255, 0.07); } }
@keyframes cc-rung-mark { 0% { transform: scale(0.6); box-shadow: 0 0 0 0 rgba(167, 123, 255, 0.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(167, 123, 255, 0); } }
@keyframes cc-draw { to { stroke-dashoffset: 0; } }
@keyframes cc-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rung.is-new .rung-ev { animation-delay: 0.35s; }
.rung.is-new .rung-note { animation-delay: 0.5s; }
.rung.is-done:not(.is-new) { background: rgba(167, 123, 255, 0.07); }

.l-teach { margin-top: 1.4rem; padding: 1rem 1.1rem; border: 1px solid rgba(167, 123, 255, 0.3); border-radius: 14px; background: linear-gradient(135deg, rgba(94, 67, 160, 0.4), rgba(94, 67, 160, 0.12)); animation: cc-rise 0.6s ease-out both; }
.l-teach .rep-label { margin: 0 0 0.35rem; }
.l-teach-text { margin: 0; font-size: 1.02rem; line-height: 1.55; color: #fff; }

.k-quote { margin-top: 0.4rem; }
.k-plain p { color: var(--muted); }
.k-after { margin-top: 1.2rem; animation: cc-rise 0.6s ease-out both; }
.k-after .sub { margin-top: 0.9rem; }
.k-ai-card { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid rgba(167, 123, 255, 0.45); border-radius: 14px; background: linear-gradient(135deg, rgba(94, 67, 160, 0.45), rgba(94, 67, 160, 0.15)); animation: cc-rung-in 0.9s ease-out both; }
.k-ai-card p { margin: 0; font-size: 1.05rem; line-height: 1.5; color: #fff; }
.k-ai-card .landing-ai-symbol { flex-shrink: 0; margin-top: 0.1rem; }

.gap-judge { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-top: 0.6rem; }
.gap-judge .btn-link { font-size: 0.86rem; }

.beforeafter { margin: 1.4rem 0 1.6rem; }
.ba-grid { display: grid; gap: 0.7rem; margin-top: 0.6rem; }
@media (min-width: 640px) { .ba-grid { grid-template-columns: 1fr 1fr; } }
.ba-card { padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.ba-card p { margin: 0.35rem 0 0; font-size: 0.95rem; line-height: 1.5; color: var(--text); white-space: pre-wrap; }
.ba-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ba-after { border-color: rgba(167, 123, 255, 0.45); background: rgba(94, 67, 160, 0.18); }
.ba-after .ba-label { color: #d2b7ff; }

@media (prefers-reduced-motion: reduce) {
  .rung.is-new, .rung.is-new .rung-mark, .rung.is-new .rung-check path, .rung.is-new .rung-ev, .rung.is-new .rung-note, .l-teach, .k-after, .k-ai-card { animation: none; }
  .rung.is-new .rung-check path { stroke-dashoffset: 0; }
}

/* ---- v25: mentés fiókkal (jobb felül), lap ------------------------------------- */
.cc-save { display: inline-flex; align-items: center; gap: 0.4rem; justify-self: end; padding: 0.35rem 0.7rem; font: inherit; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); background: rgba(211, 188, 255, 0.05); border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.cc-save .ico { width: 0.95rem; height: 0.95rem; }
.cc-save:hover { color: #fff; border-color: var(--accent-soft); }
.cc-save.is-saved { color: #d2b7ff; border-color: rgba(167, 123, 255, 0.45); }
.cc-save.is-error { color: #ffb4b4; border-color: rgba(255, 120, 120, 0.4); }
@media (max-width: 480px) { .cc-save-label { display: none; } .cc-save { padding: 0.45rem; } }
.cc-sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
.cc-sheet-backdrop { position: absolute; inset: 0; background: rgba(9, 8, 13, 0.7); backdrop-filter: blur(4px); animation: cc-rise 0.25s ease-out both; }
.cc-sheet { position: relative; max-width: var(--column); width: 100%; margin: 0 auto; padding: 1.5rem 1.4rem calc(1.6rem + env(safe-area-inset-bottom)); background: #1b1623; border: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4); animation: cc-sheet-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; box-sizing: border-box; }
@media (min-width: 640px) { .cc-sheet-wrap { align-items: center; padding: 1rem; } .cc-sheet { border-radius: 18px; } }
@keyframes cc-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-sheet h2 { margin: 0.3rem 0 0.5rem; font-size: 1.35rem; }
.cc-sheet .field { display: block; margin-top: 0.9rem; }
.cc-sheet input.answer { width: 100%; box-sizing: border-box; }
.cc-sheet-close { position: absolute; top: 0.9rem; right: 0.9rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.cc-sheet-close .ico { width: 0.9rem; height: 0.9rem; }
.sheet-feedback { min-height: 1.2em; margin: 0.6rem 0 0; font-size: 0.88rem; color: #d2b7ff; }
.sheet-feedback.is-error { color: #ffb4b4; }
@media (prefers-reduced-motion: reduce) { .cc-sheet, .cc-sheet-backdrop { animation: none; } }
.cc-right { display: flex; align-items: center; gap: 0.7rem; justify-self: end; }
.cc:has(.landing.is-active) .cc-right { gap: 1rem; }
.cc-sheet input:-webkit-autofill, .cc-sheet input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #1b1623 inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); transition: background-color 9999s ease-out; }
.rung.is-extra { opacity: 0.7; }
.rung.is-extra .rung-mark { border-style: dashed; }
.practice { margin-top: 1.2rem; padding: 1rem 1.1rem; border: 1px dashed rgba(211, 188, 255, 0.3); border-radius: 14px; }
.practice .rep-label { margin-top: 0; }
.practice .sub { margin: 0.4rem 0 0; }
.practice .actions { margin-top: 0.8rem; }

/* ---- v30: AI-használat kérdései, beépített segítő ---------------------------- */
.cc h2.u-second { margin-top: 1.8rem; font-size: 1.1rem; }
.cc-help { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; font: inherit; font-size: 0.85rem; font-weight: 600; color: #231333; background: #c6a9ff; border: 0; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); cursor: pointer; }
.cc-help .ico { width: 1.05rem; height: 1.05rem; }
.cc-help:hover { background: #d7c2ff; }
.assist-sheet { max-height: 88vh; display: flex; flex-direction: column; }
.assist-log { flex: 1; overflow-y: auto; max-height: 44vh; margin: 0.9rem 0 0; display: flex; flex-direction: column; gap: 0.5rem; }
.assist-msg { margin: 0; padding: 0.7rem 0.9rem; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; max-width: 92%; }
.assist-msg.is-ai { background: rgba(94, 67, 160, 0.35); border: 1px solid rgba(167, 123, 255, 0.3); color: #fff; align-self: flex-start; }
.assist-msg.is-me { background: rgba(211, 188, 255, 0.08); border: 1px solid var(--line); color: var(--text); align-self: flex-end; }
.assist-do { margin-top: 0.4rem; align-self: flex-start; }
.assist-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.assist-quick .chip { font-size: 0.8rem; padding: 0.4rem 0.7rem; }
.assist-row { display: flex; gap: 0.5rem; align-items: flex-end; margin-top: 0.7rem; }
.assist-row .assist-input { flex: 1; margin: 0; }
.assist-row .btn-primary { flex-shrink: 0; min-height: 2.8rem; padding-inline: 1rem; }
@media (max-width: 480px) { .cc-help span { display: none; } .cc-help { padding: 0.8rem; } }

/* v32: a címek ne törjenek csúnyán */
.cc h1, .cc h2 { text-wrap: balance; }
.ico-bot { stroke-width: 1.7; }
.cc-help .ico-bot { width: 1.2rem; height: 1.2rem; }
.assist-eyebrow { display: flex; align-items: center; gap: 0.4rem; }
.assist-eyebrow .ico-bot { width: 1rem; height: 1rem; }
.assist-msg.is-ai { position: relative; }
/* A lebegő asszisztens-gomb ne takarja az utolsó gombot. */
.cc-main { padding-bottom: 6rem; }

/* A saját feladat kimenete és az aktuális teendő végig követhető. */
.practice-context { margin-top: 1.1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(167, 123, 255, 0.045); }
.practice-context b { color: #d2b7ff; font-size: 0.875rem; font-weight: 500; }
.practice-context p { margin: 0.25rem 0 0; color: #b9b0c5; font-size: 0.875rem; line-height: 1.5; }
.cc-main:has(.practice-context:not([hidden])) .screen.is-active { min-height: calc(100dvh - 185px); justify-content: flex-start; padding-top: 1.5rem; }
.practice-instruction { margin: 0 0 1.25rem; padding-left: 0.8rem; border-left: 2px solid var(--accent); font-size: 0.9375rem; line-height: 1.6; color: #d7c9e8; }
[data-screen="lepcso"] .ladder { margin-top: 0.5rem; }
[data-screen="lepcso"] .l-teach { margin-top: 1rem; }
.examples { margin-top: 1.4rem; }
.examples > .sub { margin: 0 0 0.9rem; }
.example-group + .example-group { margin-top: 1.1rem; }
.example-group .rep-label { margin: 0 0 0.5rem; }
.example {
  display: block; width: 100%; margin-top: 0.4rem; padding: 0.7rem 0.95rem;
  font: inherit; font-size: 0.92rem; line-height: 1.45; text-align: left;
  color: var(--text); background: rgba(211, 188, 255, 0.05);
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.example:hover { border-color: var(--accent-soft); background: rgba(211, 188, 255, 0.09); }
.landing-privacy { margin: 0.7rem 0 0; max-width: 34rem; font-size: 0.75rem; line-height: 1.6; color: #8c8497; }
.cc-nudge { position: fixed; right: 1rem; bottom: calc(4.6rem + env(safe-area-inset-bottom)); z-index: 39; max-width: 17rem; padding: 0.8rem 0.95rem; background: #241c31; border: 1px solid rgba(167, 123, 255, 0.4); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); animation: cc-rise 0.35s ease-out both; }
.cc-nudge p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: #fff; }
.cc-nudge-actions { display: flex; gap: 1rem; margin-top: 0.5rem; }
.cc-nudge-actions .btn-link { font-size: 0.82rem; }
@media (prefers-reduced-motion: reduce) { .cc-nudge { animation: none; } }

/* v43: a tanulság és a következő lépés férjen el a hosszú válasz mellett. */
.k-plain { padding: 0.85rem 1rem; }
.k-plain p { font-size: 0.95rem; line-height: 1.5; }
.k-plain:has(details[open]:not([hidden])) > [data-fill="k-preview"] { display: none; }
.k-plain summary { color: var(--accent-soft); cursor: pointer; font-size: 0.85rem; padding: 0.5rem 0; }
.k-plain details[open] p { margin-top: 0.5rem; white-space: pre-wrap; }
.k-missing-list { display: grid; gap: 0.45rem; }
.k-missing-list li { border: 0; border-radius: 0; border-left: 2px solid var(--accent); padding: 0.25rem 0.7rem; color: var(--text); font-size: 0.95rem; line-height: 1.4; }
[data-screen="kontraszt"] .fine { color: var(--text); font-size: 1rem; line-height: 1.5; }
.k-after { scroll-margin-top: 1.5rem; }
