/* Phone view of "Wyzwanie AI" (wyzwanie-view.js) in the style of Julia's #2 pages, round two: a navy night, soft yellow,
   lime and blue light drifting slowly behind glass cards (translucent, a thin light edge, a blur only on the few big
   cards, so a cheap phone keeps up). "> label_" top left, #2 top right. Colours come from q.css; only the challenge uses
   these classes, and body.wz-page is set by the #2 build of q.html and by the view. Every tap target is 48 px or more.
   Text contrast on the glass is measured in test/voices-2-awatary.test.mjs (4.5:1 or more). */
:root {
  --wz-zolty: #ffcc00; --wz-limonka: #d7f25c; --wz-granat: #121633; --wz-noc: #0c0f24;
  --wz-szklo: rgba(255, 255, 255, .075); --wz-szklo-mocne: rgba(255, 255, 255, .12); --wz-krawedz: rgba(255, 255, 255, .18);
  --wz-blask: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .28);
  --wz-tekst2: #d2d9e6; --wz-tekst3: #cdd5e2;
}
body.wz-page { background: transparent; color: var(--tekst1); }
/* two lights that drift: transform only, so the phone moves layers instead of repainting */
body.wz-page::before, body.wz-page::after { content: ''; position: fixed; z-index: -1; pointer-events: none; width: 120vmax; height: 120vmax; border-radius: 50%; will-change: transform; }
body.wz-page::before { left: -60vmax; top: -60vmax;
  background: radial-gradient(circle, rgba(255, 204, 0, .20), rgba(215, 242, 92, .10) 30%, transparent 60%);
  animation: wz-drift-a 26s ease-in-out infinite alternate; }
body.wz-page::after { right: -60vmax; bottom: -60vmax;
  background: radial-gradient(circle, rgba(215, 242, 92, .24), rgba(74, 106, 255, .20) 32%, transparent 62%);
  animation: wz-drift-b 32s ease-in-out infinite alternate; }
@keyframes wz-drift-a { to { transform: translate(14vmax, 22vmax) scale(1.08); } }
@keyframes wz-drift-b { to { transform: translate(-18vmax, -16vmax) scale(1.1); } }
html:has(body.wz-page) { background: var(--wz-noc); }
.wz-page main { gap: 18px; }

/* line breaks: balanced headings, no lone last word in running text */
.wz-page h1, .wz-page h2, .wz-lead, .wz-myname, .wz-task-h, .wz-final, .wz-points { text-wrap: balance; }
.wz-page p, .wz-option, .wz-step, .wz-feedback li, .wz-lessons li { text-wrap: pretty; }

.wz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; }
.wz-cmd { color: var(--wz-zolty); font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.wz-logo { display: block; height: 18px; width: auto; }
.wz-mark img { display: block; width: min(320px, 78vw); height: auto; }
.wz-right { display: flex; align-items: center; gap: 4px; }
.wz-ed { font-family: var(--naglowek); font-weight: 800; font-size: 30px; line-height: 1; }
/* the language switch stays quiet: small text, a 48 px tap area */
.wz-lang { min-height: 48px; min-width: 48px; padding: 0 12px; background: none; border: 0; color: var(--wz-tekst3); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* glass: every card and button of the challenge */
.wz-me, .wz-email, .wz-remember, .wz-option, .wz-order li, .wz-feedback li, .wz-top10 li, .wz-lessons li, .wz-empty, .wz-done, .wz-topbadge, .wz-secondary, .wz-arrows button, .wz-late, .wz-offline {
  background: var(--wz-szklo); border: 1px solid var(--wz-krawedz); box-shadow: var(--wz-blask); }
/* the blur only where a card is big and few: the player, the e-mail, the key point */
.wz-me, .wz-email, .wz-remember, .wz-empty, .wz-topbadge { -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }

/* the brand block of the first screens */
.wz-hero { padding: 6vh 0 2vh; }
.wz-mark { margin: 0; font-family: var(--naglowek); font-weight: 800; font-size: clamp(40px, 13vw, 56px); line-height: 1; color: var(--tekst1); letter-spacing: -.5px; }
.wz-edition { margin: 10px 0 0; font-size: 20px; color: var(--wz-limonka); font-weight: 600; }
.wz-lead { font-family: var(--naglowek); font-weight: 800; font-size: 24px; line-height: 1.25; margin: 0; }
.wz-empty { border-radius: 22px; padding: 20px; display: grid; gap: 10px; }
.wz-empty p { margin: 0; color: var(--wz-tekst2); font-size: 17px; line-height: 1.45; }
.wz-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--wz-tekst3); font-size: 14px; }
.wz-foot a { color: var(--wz-zolty); min-height: 48px; min-width: 48px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: flex-end; }
.wz-link { display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: 16px; background: var(--wz-limonka); color: #07090d; font-weight: 800; font-size: 20px; text-decoration: none; box-shadow: 0 0 30px rgba(215, 242, 92, .35); }

/* three calm dots: we are waiting, nothing is wrong */
.wz-wait { display: flex; gap: 8px; margin: 0; }
.wz-wait i { width: 10px; height: 10px; border-radius: 50%; background: var(--wz-limonka); animation: wz-dot 1.4s ease-in-out infinite; }
.wz-wait i:nth-child(2) { animation-delay: .2s; } .wz-wait i:nth-child(3) { animation-delay: .4s; }
@keyframes wz-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* lines that say what is going on: joined mid-game, no network */
.wz-late, .wz-offline { margin: 0; border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.4; }
.wz-late { color: var(--wz-limonka); border-color: rgba(215, 242, 92, .45); }
.wz-offline { color: #ffd59a; border-color: rgba(245, 179, 92, .55); }

/* the player: a big avatar in a ring and the name under it */
.wz-me { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 16px; border-radius: 26px; }
.wz-symbol { --h: 124px; width: var(--h); height: var(--h); border-radius: 50%; overflow: hidden; background: #0c0f24; box-shadow: 0 0 0 3px var(--wz-limonka), 0 0 44px rgba(215, 242, 92, .4); }
.wz-symbol .av { font-size: var(--h); box-shadow: none; }
.wz-reel { display: flex; flex-direction: column; transform: translateY(calc(-1 * var(--h) * var(--n))); }
.wz-reel > span { height: var(--h); display: block; }
/* the draw: the reel runs past other avatars and stops on the player's own, then the ring flashes and the avatar pops */
.wz-burst { position: absolute; left: 50%; top: 24px; width: 124px; height: 124px; margin-left: -62px; border-radius: 50%; pointer-events: none; opacity: 0; }
.wz-draw .wz-reel { animation: wz-reel .95s cubic-bezier(.2, .7, .2, 1) both; }
.wz-draw .wz-symbol { animation: wz-pop .45s .9s cubic-bezier(.3, 1.6, .5, 1) both; }
.wz-draw .wz-burst { animation: wz-burst .8s .9s ease-out both;
  background: radial-gradient(circle, transparent 52%, rgba(215, 242, 92, .9) 55%, rgba(255, 204, 0, .5) 62%, transparent 70%); }
@keyframes wz-reel { from { transform: translateY(0); } to { transform: translateY(calc(-1 * var(--h) * var(--n))); } }
@keyframes wz-pop { 0% { transform: scale(.86); } 100% { transform: scale(1); } }
@keyframes wz-burst { 0% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.9); } }
.wz-label { margin: 6px 0 0; color: var(--wz-tekst3); font-size: 14px; }
.wz-myname { margin: 0; color: var(--tekst1); font-family: var(--naglowek); font-weight: 800; font-size: 28px; line-height: 1.15; }
.wz-calm .wz-symbol { --h: 92px; }
.wz-calm + .wz-burst, .wz-calm .wz-burst { display: none; }

/* the player on task screens: one quiet line */
.wz-chip { display: flex; align-items: center; gap: 10px; color: var(--wz-tekst2); font-size: 15px; margin-top: -8px; }
.wz-chip .av { font-size: 30px; }

.wz-secondary { min-height: 48px; color: var(--tekst1); border-radius: 14px; padding: 12px 16px; font: inherit; font-size: 16px; width: 100%; }
.wz-reroll { display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.wz-reroll-icon { flex: none; transition: transform .4s ease; }
.wz-reroll:active .wz-reroll-icon { transform: rotate(180deg); }
.wz-hint { color: var(--wz-tekst3); font-size: 15px; margin-top: -6px; }
.wz-task-h { font-size: 24px; line-height: 1.22; }
.wz-prompt { font-size: 16px; color: var(--wz-tekst2); margin-top: -6px; }
.wz-instr { font-size: 16px; font-weight: 800; color: var(--wz-zolty); margin-top: -6px; }

.wz-options { display: grid; gap: 10px; }
.wz-option { display: flex; gap: 12px; align-items: center; text-align: left; color: var(--tekst1); border-radius: 16px; padding: 12px 14px; font: inherit; font-size: 16px; line-height: 1.35; min-height: 56px; width: 100%; transition: background .15s, border-color .15s; }
.wz-option.wz-on { border-color: var(--wz-limonka); background: rgba(215, 242, 92, .14); box-shadow: 0 0 0 1px var(--wz-limonka), 0 0 24px rgba(215, 242, 92, .22); }
.wz-letter { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid var(--wz-krawedz); color: var(--wz-tekst2); font-weight: 800; font-size: 15px; }
.wz-on .wz-letter { background: var(--wz-limonka); border-color: var(--wz-limonka); color: #121633; }
.wz-group { margin: 6px 0 -2px; font-size: 18px; line-height: 1.3; }

/* pairs: a problem and its fix share one colour, on the badge and on the edge of both cards */
.wz-p0 { --para: #ffcc00; } .wz-p1 { --para: #a8cfff; } .wz-p2 { --para: #f5b35c; }
.wz-letter.wz-p0, .wz-letter.wz-p1, .wz-letter.wz-p2 { background: var(--para); border-color: var(--para); color: #121633; }
.wz-option.wz-paired { border-left: 8px solid var(--para); }
.wz-problem.wz-on { border-color: var(--wz-limonka); border-left-width: 8px; }
.wz-split { margin: 4px 0 -2px; color: var(--wz-tekst3); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

/* order: a numbered handle on the left, two 48 px arrows on the right */
.wz-order { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wz-order li { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 6px 6px 6px 0; touch-action: none; min-height: 60px; cursor: grab; user-select: none; -webkit-user-select: none; }
.wz-order li.wz-dragging { outline: 2px solid var(--wz-limonka); background: rgba(215, 242, 92, .14); }
.wz-handle { flex: none; align-self: stretch; width: 48px; display: grid; grid-template-rows: auto auto; align-content: center; place-items: center; cursor: grab; touch-action: none; border-right: 1px solid var(--wz-krawedz); }
.wz-handle b { font-family: var(--naglowek); font-weight: 800; font-size: 22px; color: var(--wz-limonka); line-height: 1; }
.wz-handle::after { content: ''; width: 14px; height: 6px; margin-top: 4px; background: radial-gradient(circle, var(--wz-tekst3) 1.2px, transparent 1.6px) 0 0 / 5px 3px; opacity: .8; }
.wz-step { flex: 1; font-size: 15px; line-height: 1.3; }
.wz-arrows { display: flex; gap: 4px; }
.wz-arrows button { width: 48px; height: 48px; border-radius: 12px; color: var(--tekst1); font-size: 18px; }
.wz-arrows button:disabled { opacity: .25; }

/* Zatwierdź under the thumb: fixed to the bottom, on a frosted strip so the last card never hides under it */
.wz-bar { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; padding: 16px 18px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(12, 15, 36, 0), rgba(12, 15, 36, .92) 38%); }
.wz-bar > * { max-width: 444px; margin-left: auto; margin-right: auto; }
.wz-bar .wz-note { margin-bottom: 8px; text-align: center; }
.wz-submit { display: block; width: 100%; min-height: 60px; box-shadow: 0 0 28px rgba(255, 204, 0, .3); }
.wz-submit.wz-waiting { opacity: .45; box-shadow: none; }
/* task 5: three questions one under another */
.wz-decision + .wz-decision { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.wz-decision.wz-missing { margin-left: -10px; margin-right: -10px; padding: 10px; border: 2px solid #ffcc00; border-radius: 16px; }
.wz-decision.wz-missing + .wz-decision { border-top: 0; }
.wz-bar-room { height: 132px; flex: none; }
body:has(.wz-bar) .net { top: max(10px, env(safe-area-inset-top)); bottom: auto; }

.wz-note { color: var(--uwaga); font-size: 16px; }
.wz-feedback { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wz-feedback li { border-radius: 14px; padding: 12px 14px; border-left: 5px solid var(--obwodka); line-height: 1.35; font-size: 16px; }
.wz-feedback li span { font-weight: 800; display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.wz-good { border-left-color: #6fdc8c !important; } .wz-good span { color: #7fe39a; }
.wz-bad { border-left-color: #ff8a8a !important; } .wz-bad span { color: #ff9c9c; }
.wz-missed { border-left-color: var(--akcent) !important; } .wz-missed span { color: var(--akcent); }
.wz-points { font-size: 30px; }
.wz-points b { color: var(--wz-limonka); font-size: 44px; }
.wz-remember { margin: 0; border-color: rgba(215, 242, 92, .45); border-radius: 18px; padding: 16px; font-size: 18px; line-height: 1.4; color: var(--tekst1); font-weight: 600; }
.wz-remember small { display: block; margin-bottom: 6px; color: var(--wz-limonka); font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }

/* the TOP 10 badge: a glowing medal with the place */
.wz-topbadge { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; border-color: rgba(215, 242, 92, .6); box-shadow: var(--wz-blask), 0 0 34px rgba(215, 242, 92, .28); animation: wz-glow 2.4s ease-in-out infinite alternate; }
.wz-topbadge b { display: block; font-family: var(--naglowek); font-weight: 800; font-size: 20px; color: var(--wz-limonka); }
.wz-topbadge small { display: block; color: var(--wz-tekst2); font-size: 15px; margin-top: 2px; }
.wz-medal { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-family: var(--naglowek); font-weight: 800; font-size: 26px; color: #121633; background: radial-gradient(circle at 35% 30%, #fff8c9, #ffcc00 55%, #c99600); box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 0 22px rgba(255, 204, 0, .6); }
.wz-podium2 .wz-medal { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd8e6 55%, #8e9bb0); }
.wz-podium3 .wz-medal { background: radial-gradient(circle at 35% 30%, #ffe2c2, #f5a35c 55%, #b56a2a); }
@keyframes wz-glow { to { box-shadow: var(--wz-blask), 0 0 46px rgba(215, 242, 92, .42); } }

/* score and the top ten, compact enough for 360 x 640 */
.wz-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.wz-score b { font-family: var(--naglowek); font-weight: 800; font-size: 48px; line-height: 1; color: var(--wz-limonka); }
.wz-score span { color: var(--wz-tekst2); font-size: 17px; }
.wz-top10 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.wz-top10 li { display: flex; gap: 10px; align-items: center; border-radius: 12px; padding: 6px 12px; font-size: 15px; }
.wz-top10 li .av { font-size: 30px; }
.wz-top10 li.wz-me-row { border-color: var(--wz-limonka); background: rgba(215, 242, 92, .14); }
.wz-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-place { font-weight: 800; width: 22px; color: var(--wz-zolty); }
.wz-pts { margin-left: auto; font-weight: 800; display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; font-variant-numeric: tabular-nums; }
.wz-tie { font-size: .75em; font-weight: 600; color: var(--wz-tekst3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wz-tie::before { content: "· "; }
.wz-tie:empty::before { content: none; }
.wz-pts .wz-tie { display: inline-block; min-width: 5.8em; text-align: right; }
.wz-place, .wz-pts { flex: none; }
@media (max-width: 380px) { .wz-top10 li { gap: 6px; padding: 6px 8px; } }
.wz-final { font-size: 26px; }

.wz-email { display: grid; gap: 12px; padding: 18px 16px; border-radius: 22px; }
.wz-email h2 { margin: 0; font-size: 20px; line-height: 1.25; color: var(--wz-limonka); }
.wz-email > p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--wz-tekst2); }
.wz-email label { display: grid; gap: 6px; font-size: 15px; color: var(--wz-tekst2); }
.wz-email input[type=email] { font: inherit; font-size: 17px; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--wz-krawedz); background: rgba(12, 15, 36, .6); color: var(--tekst1); }
.wz-email label.wz-consent { grid-template-columns: 28px 1fr; align-items: start; gap: 10px; min-height: 48px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.wz-email .wz-consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--wz-limonka); }
.wz-check { display: flex !important; gap: 12px; align-items: center; min-height: 48px; }
/* the box is drawn 26 px inside a 48 px tap area */
.wz-check input { appearance: none; -webkit-appearance: none; flex: none; width: 48px; height: 48px; margin: -6px 0 -6px -11px; border-radius: 12px; cursor: pointer;
  background: no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='1' y='1' width='24' height='24' rx='6' fill='%23121633' stroke='%23b4bfd0' stroke-width='2'/%3E%3C/svg%3E"); }
.wz-check input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect width='26' height='26' rx='7' fill='%23d7f25c'/%3E%3Cpath d='M7 13.5l4 4 8-9' fill='none' stroke='%23121633' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wz-check input:focus-visible { outline: 2px solid var(--wz-limonka); outline-offset: -8px; }
.wz-small { margin: 0; font-size: 13px; line-height: 1.4; color: var(--wz-tekst3); }
.wz-small a { color: var(--wz-tekst2); display: inline-block; padding: 14px 0; margin: -14px 0; }
.wz-done { border-radius: 14px; padding: 16px; color: var(--wz-limonka); font-weight: 700; }

/* "Co warto zapamiętać": one glass card per task, its points on the right */
.wz-lessons h2 { margin: 6px 0 10px; font-size: 22px; }
.wz-lessons ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wz-lessons li { border-radius: 16px; padding: 12px 14px; border-left: 5px solid var(--wz-limonka); }
.wz-lessons li p { margin: 0; font-size: 16px; line-height: 1.4; }
.wz-lesson-h { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; color: var(--wz-tekst3); font-size: 13px !important; margin-bottom: 4px !important; }
.wz-lesson-h b { flex: none; color: var(--wz-limonka); }

@media (prefers-reduced-motion: reduce) {
  body.wz-page::before, body.wz-page::after { animation: none; }
  .wz-draw .wz-reel, .wz-draw .wz-symbol, .wz-draw .wz-burst, .wz-topbadge { animation: none; }
  .wz-wait i { animation: none; opacity: .7; }
}

/* E2: order and pairs in the reveal, one compact row per item so all of it fits on 360 x 640 */
.wz-score-line { font-size: 22px; line-height: 1.25; }
.wz-rows { gap: 6px; }
.wz-rows li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; font-size: 15px; }
.wz-rows li.wz-good { background: rgba(111, 220, 140, .14); border-left-color: #6fdc8c; }
.wz-rows li.wz-bad { background: rgba(255, 107, 107, .14); border-left-color: #ff6b6b; }
.wz-rows .wz-pos { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-size: 13px; }
.wz-rows .wz-txt small { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: #ffb3b3; }

/* E3: the dragged card lifts and follows the finger, the others slide apart */
.wz-order li { transition: transform .15s ease; }
.wz-order li.wz-lift { transition: none; position: relative; z-index: 2; box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.wz-order .wz-handle b.wz-flash { animation: wz-flash .5s ease; }
@keyframes wz-flash { 0% { color: var(--wz-limonka); transform: scale(1.4); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .wz-order li { transition: none; } .wz-order .wz-handle b.wz-flash { animation: none; } }

/* G5: the e-mail card does not jump; the field keeps its size, the saved line fades in */
.wz-email input[type=email] { box-sizing: border-box; width: 100%; height: 52px; }
.wz-email button[type=submit] { min-height: 52px; transition: opacity .2s ease; }
.wz-email.wz-sending button[type=submit], .wz-email button[disabled] { opacity: .7; }
.wz-done-in { animation: wz-done-in .45s ease both; }
@keyframes wz-done-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wz-done-in { animation: none; } }

/* C10: the five reactions, one row at the bottom of the explanation and the ranking */
.wz-react-row { display: flex; justify-content: space-between; gap: 8px; }
.wz-react-row button { flex: 1 1 0; min-height: 56px; font-size: 28px; line-height: 1; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .18); background: #1f2240; color: inherit; }
.wz-react-row button:active { transform: scale(.92); }
.wz-react-row button:disabled { opacity: .35; }
.wz-submit-note { display: block; margin-top: 8px; text-align: center; font-size: 13px; color: var(--tekst2, rgba(255, 255, 255, .72)); }
/* the reactions stay pinned to the bottom like the Zatwierdź bar (they never show together: the bar is the open task,
   the reactions the explanation and the ranking); the room under the content keeps its last line above them */
.wz-bar.wz-react { padding-top: 22px; }
.wz-bar-room.wz-react-room { height: calc(90px + max(14px, env(safe-area-inset-bottom))); }
/* the sample AI chat of the stage (public/quiz/rozmowy.js) */
.wz-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--wz-szklo); border: 1px solid var(--wz-krawedz); }
.wz-chat + .wz-chat { margin-top: 12px; }
.wz-chat-label { margin: 0; font-weight: 800; font-size: 14px; letter-spacing: 1.5px; color: var(--wz-limonka); }
.wz-chat-worse .wz-chat-label { color: #ff9c8f; }
.wz-msg { max-width: 90%; padding: 10px 14px; border-radius: 16px; }
.wz-msg p { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.wz-who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--wz-tekst3); }
.wz-msg-user { align-self: flex-end; background: #3a3846; border-bottom-right-radius: 4px; }
.wz-msg-ai { align-self: flex-start; background: rgba(255, 204, 0, .1); border: 1px solid rgba(255, 204, 0, .35); border-bottom-left-radius: 4px; }
.wz-msg-ai .wz-who { color: var(--wz-zolty); }
.wz-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wz-links li { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--wz-tekst2); }
.wz-links b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 204, 0, .2); color: var(--wz-zolty); font-size: 13px; }
.wz-chat-above { margin-bottom: 18px; }
.wz-onscreen { margin: 8px 0 0; color: var(--wz-limonka); font-size: 17px; font-weight: 600; line-height: 1.4; }
.wz-time { margin: 14px 0 0; font-family: var(--naglowek); font-weight: 800; font-size: 22px; color: var(--tekst1); font-variant-numeric: tabular-nums; }

/* a short phone (360×640): a smaller card after the submit, so the time and the tie rule show without scrolling */
@media (max-height: 700px) {
  .wz-calm { padding: 12px 16px; gap: 4px; }
  .wz-calm .wz-symbol { --h: 64px; }
  .wz-calm .wz-myname { font-size: 22px; }
}
