/* Odtwarzacz quizu — marka lokalu steruje zmiennymi --qp (akcent), --qs (drugi), --qbg (tło), --qtx (tekst), --qfont */
.qp-body { margin: 0; }
.qp {
  --qp: #e8402a; --qs: #2e7d4f; --qbg: #fff4e0; --qtx: #1b1a17; --qfont: 'Outfit', system-ui, sans-serif;
  --qline: color-mix(in srgb, var(--qtx) 90%, transparent);
  --qsoft: color-mix(in srgb, var(--qtx) 8%, var(--qbg));
  --qmuted: color-mix(in srgb, var(--qtx) 62%, var(--qbg));
  --qon: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem) 1rem;
  background-color: var(--qbg);
  background-image: radial-gradient(color-mix(in srgb, var(--qtx) 11%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  color: var(--qtx);
  font-family: var(--qfont);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
.qp *, .qp *::before, .qp *::after { box-sizing: border-box; }
.qp-shell { width: min(100%, 640px); display: flex; flex-direction: column; gap: 1.1rem; }
.qp-head { display: flex; align-items: center; gap: 0.8rem; min-height: 3.2rem; }
.qp-logo { width: 3.4rem; height: 3.4rem; object-fit: contain; border-radius: 14px; background: #fff; border: 2px solid var(--qline); }
.qp-venue { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.qp-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.qp-foot { text-align: center; font-size: 0.78rem; color: var(--qmuted); padding: 0.5rem 0; }
.qp-foot a { color: inherit; text-underline-offset: 3px; }

.qp-card {
  position: relative;
  background: var(--qcard, color-mix(in srgb, #fff 82%, var(--qbg)));
  border: 2.5px solid var(--qline);
  border-radius: 24px;
  box-shadow: 7px 7px 0 var(--qline);
  padding: clamp(1.3rem, 5vw, 2.2rem);
  overflow: hidden;
}
.qp-card--center { text-align: center; display: grid; justify-items: center; gap: 0.9rem; }
.qp-in { animation: qpIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes qpIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 26px)) scale(0.985); } to { opacity: 1; transform: none; } }

.qp-kicker { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--qp); margin-bottom: 0.6rem; }
.qp-title { margin: 0 0 0.8rem; font-size: clamp(2rem, 8vw, 3.1rem); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.qp-intro { color: var(--qmuted); font-size: 1.08rem; margin-bottom: 1rem; }
.qp-meta { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 0.25rem 0.75rem; border: 2px solid var(--qline); border-radius: 99px; background: var(--qsoft); margin-bottom: 1.4rem; }
.qp-friend { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 1rem; margin-bottom: 1.2rem; border: 2px dashed var(--qline); border-radius: 16px; background: var(--qsoft); font-size: 0.95rem; }
.qp-friend span { font-size: 1.8rem; }
.qp-limitnote { color: var(--qp); font-weight: 700; margin-bottom: 0.8rem; }

.qp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.1rem; padding: 0.7rem 1.5rem;
  font: 800 1.05rem/1.1 var(--qfont);
  color: var(--qon);
  background: var(--qp);
  border: 2.5px solid var(--qline);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--qline);
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.qp-btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--qline); }
.qp-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--qline); }
.qp-btn--ghost { background: var(--qcard, #fff); color: var(--qtx); min-height: 2.7rem; font-size: 0.92rem; padding: 0.5rem 1rem; }
.qp-btn--fb { background: #1877f2; color: #fff; min-height: 2.7rem; font-size: 0.92rem; padding: 0.5rem 1rem; }
.qp-btn--cta { background: var(--qs); color: var(--qson, #fff); margin: 1.1rem 0 0.4rem; font-size: 1.15rem; }
.qp-btn:focus-visible, .qp-answer:focus-visible, .qp-back:focus-visible { outline: 3px solid var(--qs); outline-offset: 3px; }

.qp-progress { height: 0.75rem; border: 2px solid var(--qline); border-radius: 99px; background: var(--qsoft); overflow: hidden; }
.qp-progress i { display: block; height: 100%; width: 0; background: var(--qp); transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); border-right: 2px solid var(--qline); }
.qp-count { margin: 0.9rem 0 0.4rem; font-weight: 700; font-size: 0.85rem; color: var(--qmuted); }
.qp-q { margin: 0 0 1.2rem; font-size: clamp(1.45rem, 5.4vw, 2rem); line-height: 1.14; font-weight: 800; letter-spacing: -0.025em; }
.qp-answers { display: grid; gap: 0.75rem; }
.qp-answer {
  display: flex; align-items: center; gap: 0.85rem; text-align: left; width: 100%;
  padding: 0.85rem 1rem; min-height: 3.4rem;
  font: 700 1.05rem/1.25 var(--qfont); color: var(--qtx);
  background: var(--qcard, #fff); border: 2.5px solid var(--qline); border-radius: 16px;
  box-shadow: 3px 3px 0 var(--qline); cursor: pointer;
  animation: qpAns 0.4s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
@keyframes qpAns { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.qp-answer:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--qline); background: color-mix(in srgb, var(--qp) 12%, var(--qcard, #fff)); }
.qp-answer:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--qline); }
.qp-answer__key { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; font-weight: 800; font-size: 0.9rem; border: 2px solid var(--qline); border-radius: 10px; background: var(--qsoft); }
.qp-answer.is-chosen { background: var(--qp); color: var(--qon); }
.qp-answer.is-chosen .qp-answer__key { background: #fff; color: var(--qtx); }
.qp-back { margin-top: 1.1rem; background: none; border: 0; color: var(--qmuted); font: 700 0.92rem var(--qfont); cursor: pointer; padding: 0.4rem 0; text-underline-offset: 3px; }
.qp-back:hover { color: var(--qtx); text-decoration: underline; }
.qp-back--again { display: block; margin: 1.2rem auto 0; }

.qp-card--result { text-align: center; }
.qp-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qp-emoji { font-size: clamp(3.5rem, 16vw, 5.4rem); line-height: 1; margin: 0.2rem 0 0.6rem; animation: qpPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes qpPop { from { transform: scale(0.2) rotate(-18deg); opacity: 0; } to { transform: none; opacity: 1; } }
.qp-result { margin: 0 0 0.8rem; font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.qp-resulttext { color: var(--qmuted); font-size: 1.08rem; white-space: pre-line; max-width: 34rem; margin-inline: auto; }
.qp-ctahint { font-weight: 800; color: var(--qs); margin: 1rem 0 0.4rem; }
.qp-share { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 2px dashed var(--qline); }
.qp-share__t { font-weight: 800; margin-bottom: 0.8rem; }
.qp-share__row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.qp-limit { margin-top: 0.4rem; padding: 1rem 1.1rem; border: 2px solid var(--qline); border-radius: 16px; background: color-mix(in srgb, var(--qp) 10%, var(--qcard, #fff)); display: grid; gap: 0.8rem; justify-items: center; font-weight: 600; }
.qp-spin { width: 2.6rem; height: 2.6rem; border: 4px solid var(--qsoft); border-top-color: var(--qp); border-radius: 50%; animation: qpSpin 0.8s linear infinite; }
@keyframes qpSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .qp-in, .qp-answer, .qp-emoji { animation: none; }
  .qp-progress i { transition: none; }
}

/* podgląd wewnątrz ramki telefonu w panelu */
.pv .qp { min-height: 0; height: 100%; padding: 0.9rem 0.8rem; overflow: auto; }
.pv .qp-card { box-shadow: 4px 4px 0 var(--qline); border-radius: 18px; padding: 1.1rem; }
.pv .qp-title { font-size: 1.8rem; }
.pv .qp-q { font-size: 1.3rem; }
.pv .qp-result { font-size: 1.5rem; }
.pv .qp-answer { padding: 0.65rem 0.8rem; min-height: 2.9rem; font-size: 0.95rem; }

/* demo na stronie głównej */
.demo__frame .qp { min-height: 560px; padding: 1.2rem 1rem; }

.qp-dish { display: flex; align-items: center; gap: 0.9rem; text-align: left; margin: 1.1rem auto 0; max-width: 28rem; padding: 0.7rem 0.9rem; border: 2.5px solid var(--qline); border-radius: 18px; background: var(--qsoft); }
.qp-dish img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 12px; border: 2px solid var(--qline); flex: none; }
.qp-dish__k { font-weight: 800; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--qp); }
.qp-dish strong { display: block; font-size: 1.15rem; line-height: 1.2; }
.qp-dish__p { display: inline-block; margin-top: 0.2rem; font-weight: 800; color: var(--qs); }
