/* Szkic: "Czego naprawdę TY potrzebujesz?" — mapa myśli z pięcioma kafelkami. Korzysta ze zmiennych strony (styles.css). */
.quiz-page { background: radial-gradient(1200px 600px at 50% -10%, #1d2719 0%, var(--bg) 60%);  }

.quiz { max-width: 760px; margin: 0 auto; padding: 8px 20px 64px; color: var(--text-strong); font-family: var(--sans); text-align: center; }
.quiz [hidden] { display: none !important; }

.quiz__kicker { margin: 28px 0 10px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); }
.quiz__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 7vw, 58px); line-height: 1.08; color: var(--cream); }
.quiz__title em { font-style: italic; color: var(--brass-bright); }
.quiz__lead { margin: 22px auto 30px; max-width: 560px; font-size: 18px; line-height: 1.6; }
.quiz__start, .quiz__again, .quiz__cta { display: inline-block; border: 1px solid var(--brass); background: var(--brass); color: var(--bg); font: 600 17px/1 var(--sans); letter-spacing: .04em; padding: 16px 38px; border-radius: 2px; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.quiz__start:hover, .quiz__cta:hover, .quiz__start:focus-visible, .quiz__cta:focus-visible { background: var(--brass-bright); border-color: var(--brass-bright); transform: translateY(-1px); }
.quiz__privacy { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* Mapa myśli */
.quiz__map { margin: 8px auto 0; max-width: 460px; }
.quiz__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.m-line { stroke: var(--brass); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset .9s cubic-bezier(.4, 0, .2, 1); }
.m-slot.is-on .m-line { stroke-dashoffset: 0; }
.m-ghost { fill: none; stroke: var(--line-dotted); stroke-width: 1.2; stroke-dasharray: 3 5; transition: opacity .5s; }
.m-slot.is-on .m-ghost { opacity: 0; }
.m-node { fill: #1b2418; stroke: var(--brass); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) .55s, opacity .3s .55s; }
.m-slot.is-on .m-node { transform: scale(1); opacity: 1; }
.m-num { fill: var(--brass-bright); font: 600 13px var(--sans); text-anchor: middle; dominant-baseline: central; opacity: 0; transition: opacity .3s .9s; }
.m-slot.is-on .m-num { opacity: 1; }
.m-q { fill: var(--dim); font: 400 15px var(--serif); text-anchor: middle; dominant-baseline: central; transition: opacity .3s; }
.m-slot.is-on .m-q { opacity: 0; }
.m-label { fill: var(--cream); font: 500 12.5px var(--sans); text-anchor: middle; opacity: 0; transition: opacity .5s 1s; }
.m-slot.is-on .m-label { opacity: 1; }
.m-glow { transform-box: fill-box; transform-origin: center; transition: transform 1s ease, opacity 1s ease; }
.m-core { fill: #1b2418; stroke: var(--brass); stroke-width: 1.8; }
.m-you { fill: var(--cream); font: italic 500 26px var(--serif); text-anchor: middle; dominant-baseline: central; }
.quiz__map.is-done .m-core { stroke: var(--brass-bright); stroke-width: 2.4; }

.quiz__vision { min-height: 3.4em; margin: 6px auto 0; max-width: 520px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3.6vw, 24px); line-height: 1.35; color: var(--cream); transition: opacity .35s; }
.quiz__vision.is-fading { opacity: 0; }
.quiz__progress { height: 3px; max-width: 260px; margin: 12px auto 26px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brass), var(--brass-bright)); transition: width .7s cubic-bezier(.4, 0, .2, 1); }

/* Pytanie i kafelki */
.quiz__panel { transition: opacity .28s ease, transform .28s ease; }
.quiz__panel.is-leaving { opacity: 0; transform: translateX(-26px); }
.quiz__panel.is-entering { opacity: 0; transform: translateX(26px); }
.quiz__step { margin: 0 0 6px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.quiz__question { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 5vw, 36px); line-height: 1.15; color: var(--cream); outline: none; }
.quiz__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.quiz__tile { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 84px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: 4px; background: rgba(27, 36, 24, .7); color: var(--cream); font: 500 17px/1.3 var(--sans); cursor: pointer; text-align: left; opacity: 0; transform: translateY(10px); animation: tile-in .5s ease forwards; animation-delay: calc(var(--i) * 70ms); transition: border-color .2s, background .2s, transform .2s; }
.quiz__tile small { font-weight: 400; font-size: 14px; color: var(--muted); }
@media (hover: hover) { .quiz__tile:hover { border-color: var(--brass); background: #223020; transform: translateY(-2px); } }   /* not on touch screens: there :hover stays on the spot the finger left, so the next question would show an answer as chosen */
.quiz__tile:focus-visible { border-color: var(--brass); background: #223020; transform: translateY(-2px); }
.quiz__tile.is-picked { border-color: var(--brass-bright); background: #2a3a26; box-shadow: 0 0 0 1px var(--brass-bright) inset; }
@keyframes tile-in { to { opacity: 1; transform: none; } }
.quiz__back { margin: 20px 0 0; background: none; border: 0; color: var(--muted); font: 15px var(--sans); cursor: pointer; padding: 10px; }
.quiz__back:hover { color: var(--brass); }

/* Wynik */
.quiz__result { animation: result-in .8s ease both; }
@keyframes result-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.quiz__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.quiz__chips li { padding: 6px 14px; border: 1px solid var(--line-soft); border-radius: 99px; font-size: 14px; color: var(--text-strong); }
.quiz__card { margin: 0 0 18px; padding: 28px 24px; border: 1px solid var(--brass); border-radius: 4px; background: rgba(27, 36, 24, .85); text-align: left; }
.quiz__card--alt { border-color: var(--line-soft); background: rgba(15, 20, 13, .6); }
.quiz__card h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 5vw, 34px); color: var(--cream); }
.quiz__card .tag { margin: 0 0 12px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.quiz__card p { margin: 0 0 12px; line-height: 1.6; }
.quiz__meta { color: var(--muted); font-size: 15px; }
.quiz__cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 8px; }
.quiz__cta--alt { background: transparent; color: var(--brass); }
.quiz__cta--alt:hover, .quiz__cta--alt:focus-visible { background: rgba(194, 163, 91, .12); color: var(--brass-bright); }
.quiz__again { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 15px; padding: 12px; }
.quiz__note { margin: 36px auto 0; max-width: 560px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

@media (max-width: 560px) {
  .quiz__tiles { grid-template-columns: 1fr; }
  .quiz__tile { min-height: 68px; }
  .quiz__cta-row .quiz__cta { width: 100%; text-align: center; }
  .quiz__card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz *, .quiz *::before, .quiz *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .quiz__tile { opacity: 1; transform: none; }
}


/* Na dużym ekranie mapa jest mniejsza, żeby kafelki były widać bez przewijania */
@media (min-width: 900px) { .quiz__map { max-width: 330px; } .quiz__vision { min-height: 2.8em; } .quiz__progress { margin-bottom: 18px; } }

/* The page fills the whole window: the quiz is centred between the top bar and the footer, the footer sits at the bottom */
body.quiz-page { display: flex; flex-direction: column; min-height: 100vh; }
.quiz-main { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.quiz-main .quiz { width: 100%; }
body.quiz-page .footer { margin-top: auto; }

@media (min-width: 1100px) {
  .quiz-main .quiz { max-width: 1280px; padding: 40px 60px 56px; }
  .quiz__kicker { font-size: 15px; margin-bottom: 16px; }
  .quiz__title { font-size: clamp(64px, 5.4vw, 96px); line-height: 1.04; }
  .quiz__lead { max-width: 820px; font-size: 22px; margin: 30px auto 40px; }
  .quiz__start { padding: 22px 64px; font-size: 20px; }
  .quiz__privacy { font-size: 16px; margin-top: 22px; }
  .quiz__note { max-width: 760px; font-size: 15px; margin-top: 48px; }

  /* During the questions: the map on the left, the questions on the right */
  .quiz__play { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(520px, 1fr); column-gap: 96px; align-items: center; }
  .quiz__side { grid-column: 1; grid-row: 1; }
  .quiz__side .quiz__map { width: 100%; max-width: 560px; margin: 0 auto; }
  .quiz__side .quiz__vision { font-size: 28px; min-height: 3.6em; }
  .quiz__play .quiz__panel, .quiz__play .quiz__result { grid-column: 2; grid-row: 1; text-align: left; }
  .quiz__question { font-size: clamp(34px, 2.8vw, 46px); }
  .quiz__tile { min-height: 112px; font-size: 20px; }
  .quiz__tile small { font-size: 15px; }
  .quiz__chips { justify-content: flex-start; }
  .quiz__cta-row { justify-content: flex-start; }
}

/* Phone: after the last answer the tree moves down between the suggestions and the buttons */
.quiz__side--result { margin: 30px 0 6px; }
.quiz__side--result .quiz__map { max-width: 340px; }
.quiz__side--result .quiz__progress { display: none; }
.quiz__side--result .quiz__vision { min-height: 0; margin-bottom: 8px; }
