/*
 * Zažij dobrovolnictví – hravá eventová varianta vizuálu veřejného webu RDCJK:
 * Poppins, fialová paleta, pilulková tlačítka, linkové ikony.
 */
:root {
  --bg: #f4f0fb;
  --ink: #2b1b60;
  --secondary: #5a3db3;
  --accent: #b9a7e8;
  --soft: #e6ddf5;
  --muted: #6b5f8a;
  --card: #ffffff;
  --sun: #ffc94d;
  --success: #1aa58a;
  --danger: #e0457b;
  --radius: 24px;
  --shadow: 0 14px 32px rgba(43, 27, 96, .08);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; background: var(--bg); -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 8.500vw, 2.700rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: 1.250rem; line-height: 1.250; letter-spacing: -.02em; }
p { line-height: 1.600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.icon { width: 1.250em; height: 1.250em; flex: 0 0 auto; }

/* Kostra */
.offline-banner { position: sticky; top: 0; z-index: 40; padding: .6rem 1rem; text-align: center; background: var(--sun); color: var(--ink); font-size: .8rem; font-weight: 600; }
.app-header { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: auto; padding: calc(.9rem + env(safe-area-inset-top)) 1.250rem .6rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 40px; height: 40px; border-radius: 13px; }
.brand strong, .brand small { display: block; line-height: 1.150; }
.brand strong { font-size: .95rem; letter-spacing: .14em; }
.brand small { font-size: .68rem; color: var(--secondary); }
.brand-by { padding: .3rem .7rem; border-radius: 999px; background: var(--card); color: var(--secondary); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
#app { display: grid; gap: 1rem; align-content: start; max-width: 560px; margin: auto; padding: .5rem 1.250rem calc(2.500rem + env(safe-area-inset-bottom)); outline: 0; }
.has-tabbar #app { padding-bottom: calc(6.500rem + env(safe-area-inset-bottom)); }

.tabbar { position: fixed; left: 50%; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 30; display: flex; gap: .25rem; width: min(calc(100% - 2rem), 360px); padding: .35rem; border-radius: 999px; background: var(--ink); box-shadow: 0 12px 30px rgba(43, 27, 96, .3); transform: translateX(-50%); }
.tabbar[hidden] { display: none; }
.tabbar a { display: flex; flex: 1; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem 0 .35rem; border-radius: 999px; color: var(--accent); font-size: .68rem; font-weight: 600; text-decoration: none; }
.tabbar a.is-active { background: var(--secondary); color: #fff; }
.tabbar .icon { width: 1.350rem; height: 1.350rem; }
.tabbar__scan { display: flex; flex: 1.150; flex-direction: column; align-items: center; gap: .1rem; padding: .45rem 0 .35rem; border: 0; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .68rem; font-weight: 700; cursor: pointer; }
.tabbar__scan:active { transform: scale(.96); }

.app-toast { position: fixed; left: 50%; bottom: calc(5.800rem + env(safe-area-inset-bottom)); z-index: 60; width: max-content; max-width: calc(100% - 2rem); padding: .8rem 1.150rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .88rem; font-weight: 500; text-align: center; box-shadow: var(--shadow); transform: translateX(-50%); animation: rise .25s ease-out; }
.skeleton { min-height: 220px; border-radius: var(--radius); background: linear-gradient(90deg, #ebe3f7, #faf8fd, #ebe3f7); background-size: 200%; animation: shimmer 1.200s infinite; }
.no-script { padding: 2rem; }

/* Typografie a základní prvky */
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .6rem; color: var(--secondary); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow .icon { width: 1rem; height: 1rem; color: var(--accent); }
.lead { color: var(--muted); font-size: 1rem; }
.hl { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); border-radius: 4px; }
.card { display: grid; gap: .75rem; padding: 1.400rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card.center { justify-items: center; }
.card--invite { background: var(--ink); color: #fff; }
.card--invite p { color: var(--soft); }
.page-head { display: grid; gap: .5rem; padding: .75rem 0 .25rem; }
.hint { color: var(--muted); font-size: .8rem; text-align: center; }
.hint .icon { margin-right: .4rem; vertical-align: -.25em; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 54px; padding: .7rem 1.500rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.button:active { transform: scale(.97); }
.button.secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px var(--soft); }
.button.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 2px #f6c9d8; }
.button[disabled] { opacity: .55; cursor: wait; }
.button-stack { display: grid; gap: .65rem; }
.text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem; border: 0; background: none; color: var(--secondary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.icon-button[disabled] { opacity: .35; }
:is(.button, .text-link, .icon-button, .quiz__option, .map-node, .map-bonus, .map-finish, .tabbar a, .tabbar__scan, .type-chip, .sheet__close, .scanner__close):focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }

.form-stack { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .82rem; font-weight: 600; }
.input { width: 100%; min-height: 54px; padding: .8rem 1rem; border: 2px solid var(--soft); border-radius: 16px; background: #fff; }
.input::placeholder { color: #a79fc0; }
.input:focus { outline: 0; border-color: var(--secondary); }
.input--code { font-size: 1.600rem; font-weight: 700; letter-spacing: .4em; text-align: center; }
textarea.input { resize: vertical; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: start; min-height: 44px; color: var(--muted); font-size: .84rem; line-height: 1.500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--secondary); }
.form-note { color: var(--muted); font-size: .76rem; }
.error { padding: .8rem 1rem; border-radius: 14px; background: #fde8ef; color: #a02352; font-size: .86rem; font-weight: 500; }

/* Úvod */
.hero { display: grid; gap: .9rem; padding-top: .25rem; }
.hero-art { display: block; width: 100%; height: auto; margin-bottom: .25rem; }
.card .hero-art { max-width: 300px; }
.facts { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: .9rem; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: .55rem; }
.facts .icon { color: var(--secondary); }
.steps { display: grid; gap: .65rem; }
.step { display: grid; grid-template-columns: 48px 1fr; column-gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 20px; background: var(--card); }
.step__icon { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: #f1ebfb; color: var(--secondary); }
.step__icon--sun { background: #fff3d1; color: #b77a00; }
.step p { color: var(--muted); font-size: .84rem; line-height: 1.400; }

/* Mapa */
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .25rem; }
.map-head h1 { font-size: clamp(1.700rem, 7.500vw, 2.300rem); }
.map-head .eyebrow { margin-bottom: .3rem; }
.map-head__sub { margin-top: .35rem; color: var(--muted); font-size: .9rem; line-height: 1.400; }
.ring { position: relative; flex: 0 0 auto; width: 84px; height: 84px; }
.ring svg { width: 100%; height: 100%; }
.ring span { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; align-items: baseline; color: var(--muted); font-size: .85rem; font-weight: 600; }
.ring strong { color: var(--ink); font-size: 1.500rem; }
.type-chip { display: flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .5rem; border-radius: 999px; background: var(--card); color: var(--ink); font-size: .88rem; text-decoration: none; }
.type-chip > span { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--node, var(--secondary)); color: #fff; }
.type-chip strong { margin-left: -.25rem; }
.type-chip--cta { font-weight: 600; }
.type-chip--cta > .icon { margin-left: auto; color: var(--secondary); }

.map { position: relative; width: 100%; border-radius: 28px; background: #f9f6fd; box-shadow: var(--shadow); overflow: hidden; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-road-fresh { stroke-dasharray: 1; stroke-dashoffset: 1; animation: road-draw 1.100s ease-out .15s forwards; }
.map-flag, .map-node, .map-bonus, .map-finish { position: absolute; transform: translate(-50%, -50%); }
.map-flag { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.map-flag .icon { width: .9rem; height: .9rem; }

.map-node { display: block; width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; }
.map-node__dot { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 4px solid var(--node); border-radius: 50%; background: #fff; color: var(--node); box-shadow: 0 6px 0 rgba(43, 27, 96, .1); transition: transform .15s ease; }
.map-node:active .map-node__dot { transform: scale(.94); }
.map-node__dot > .icon { width: 28px; height: 28px; }
.map-node__dot > b { font-size: 1.350rem; }
.map-node__number, .map-node__badge { position: absolute; display: grid; place-items: center; border: 3px solid #f9f6fd; border-radius: 50%; }
.map-node__number { top: -9px; left: -9px; width: 26px; height: 26px; background: var(--ink); color: #fff; font-size: .7rem; font-weight: 700; }
.map-node__badge { right: -10px; bottom: -8px; width: 30px; height: 30px; background: var(--sun); color: var(--ink); }
.map-node__badge .icon { width: 15px; height: 15px; stroke-width: 3; }
.map-node__label { position: absolute; top: 50%; display: grid; gap: .1rem; width: 38vw; max-width: 190px; transform: translateY(-50%); }
.map-node.label-right .map-node__label { left: calc(100% + 16px); text-align: left; }
.map-node.label-left .map-node__label { right: calc(100% + 16px); text-align: right; }
.map-node__label strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: .9rem; line-height: 1.200; }
.map-node__label small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .7rem; line-height: 1.300; }
.map-node.is-completed .map-node__dot { background: var(--node); color: #fff; }
.map-node.is-completed .map-node__label small { color: var(--success); font-weight: 600; }
.map-node.is-waiting .map-node__dot { animation: node-pulse 1.600s ease-out infinite; }
.map-node.is-waiting .map-node__label small { color: var(--secondary); font-weight: 600; }
.map-node.is-failed .map-node__dot { border-style: dashed; }
.map-node.is-failed .map-node__badge { background: var(--danger); color: #fff; }
.map-node.is-failed .map-node__label small { color: var(--danger); font-weight: 600; }
.map-node.is-fresh .map-node__dot { animation: stamp-in .7s cubic-bezier(.2, 1.600, .4, 1) 1s backwards; }

.map-bonus { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 3px dashed var(--accent); border-radius: 50%; background: #fff; color: var(--accent); cursor: pointer; }
.map-bonus .icon { width: 20px; height: 20px; }
.map-bonus.is-open { border: 3px solid #fff; background: var(--sun); color: var(--ink); animation: bonus-glow 1.800s ease-in-out infinite; }
.map-bonus.is-waiting { border-style: solid; border-color: var(--sun); color: #b77a00; }
.map-bonus.is-completed { border: 3px solid #fff; background: var(--sun); color: var(--ink); }

.map-finish { display: grid; justify-items: center; gap: .35rem; padding: 0; border: 0; background: none; cursor: pointer; }
.map-finish__dot { display: grid; place-items: center; width: 76px; height: 76px; border: 4px dashed var(--accent); border-radius: 50%; background: #fff; color: var(--accent); }
.map-finish__dot .icon { width: 34px; height: 34px; }
.map-finish__label { padding: .25rem .8rem; border-radius: 999px; background: #fff; color: var(--muted); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.map-finish.is-complete .map-finish__dot { border: 4px solid #fff; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 8px rgba(255, 201, 77, .3); animation: bonus-glow 1.800s ease-in-out infinite; }
.map-finish.is-complete .map-finish__label { background: var(--ink); color: #fff; }

/* Pas s razítky */
.passport { display: grid; gap: .9rem; padding: 1.400rem; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.passport__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem .5rem; }
.stamp { display: grid; justify-items: center; gap: .4rem; text-align: center; }
.stamp__mark { display: grid; place-items: center; width: 62px; height: 62px; border: 2px dashed var(--accent); border-radius: 50%; color: var(--accent); font-weight: 700; }
.stamp small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .68rem; line-height: 1.250; }
.stamp.is-done .stamp__mark { border: 3px double var(--node); background: color-mix(in srgb, var(--node) 12%, #fff); color: var(--node); transform: rotate(var(--tilt)); }
.stamp.is-done .stamp__mark .icon { width: 28px; height: 28px; }
.stamp.is-done small { color: var(--ink); font-weight: 600; }

/* Dokončení a odměna */
.completion { justify-items: center; text-align: center; }
.completion__mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sun); color: var(--ink); }
.completion__mark .icon { width: 34px; height: 34px; }
.reward-code { display: grid; gap: .2rem; width: 100%; padding: 1rem; border: 2px dashed var(--accent); border-radius: 18px; }
.reward-code strong { font-size: 1.600rem; letter-spacing: .14em; }
.reward-code span, .reward-code small { color: var(--muted); font-size: .8rem; }
.badge-preview { display: block; width: 100%; border-radius: 16px; }

/* Spodní panel */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(43, 27, 96, .45); animation: fade .2s ease-out; }
.sheet-backdrop[hidden] { display: none; }
.sheet { position: relative; display: grid; gap: .6rem; width: min(100%, 560px); max-height: 85vh; overflow: auto; padding: 1.750rem 1.500rem calc(1.750rem + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--card); animation: sheet-up .28s cubic-bezier(.2, .9, .3, 1); }
.sheet .eyebrow { margin-bottom: 0; }
.sheet p { color: var(--muted); }
.sheet__close { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.sheet__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .25rem; border-radius: 50%; background: var(--node, var(--secondary)); color: #fff; }
.sheet__icon .icon { width: 30px; height: 30px; }
.sheet__icon b { font-size: 1.400rem; }
.sheet__icon--locked { background: var(--bg); color: var(--accent); }
.sheet__icon--sun { background: var(--sun); color: var(--ink); }
.sheet .sheet__state { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; padding: .85rem 1rem; border-radius: 16px; background: var(--bg); color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.350; }
.sheet .sheet__state.is-completed { background: #e3f6f1; color: #0c7a65; }
.sheet .sheet__state.is-failed { background: #fde8ef; color: #a02352; }

/* Skener QR */
.scanner { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #150c36; color: #fff; }
.scanner[hidden] { display: none; }
.scanner__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner__frame { position: relative; width: min(70vw, 300px); aspect-ratio: 1; border: 4px solid #fff; border-radius: 28px; box-shadow: 0 0 0 100vmax rgba(21, 12, 54, .55); }
.scanner__top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(1rem + env(safe-area-inset-top)) 1.250rem 1rem; font-size: 1rem; }
.scanner__close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.scanner__status { position: absolute; left: 1.250rem; right: 1.250rem; bottom: calc(2rem + env(safe-area-inset-bottom)); margin: auto; width: fit-content; max-width: calc(100% - 2.500rem); padding: .7rem 1.150rem; border-radius: 999px; background: rgba(21, 12, 54, .8); font-size: .88rem; font-weight: 500; text-align: center; }
.scanner__message { position: relative; display: grid; gap: .9rem; justify-items: center; max-width: 340px; padding: 2rem 1.500rem; text-align: center; }
.scanner__message p { color: var(--soft); }

/* Mise na stanovišti */
.mission { justify-items: center; text-align: center; }
.mission .eyebrow { margin-bottom: 0; }
.mission h1 { font-size: clamp(1.700rem, 7.500vw, 2.200rem); }
.mission__icon, .result__mark, .celebrate__stamp { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--node, var(--secondary)); color: #fff; }
.mission__icon .icon, .result__mark .icon, .celebrate__stamp .icon { width: 40px; height: 40px; }
.mission__task { display: grid; gap: .35rem; width: 100%; padding: 1rem 1.150rem; border-radius: 18px; background: var(--bg); text-align: left; }
.mission__task strong { display: inline-flex; align-items: center; gap: .4rem; color: var(--secondary); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.mission__note { color: var(--muted); font-size: .88rem; }
.mission [data-mission-status] { display: grid; gap: .75rem; width: 100%; text-align: left; }
.waiting { display: grid; justify-items: center; gap: .35rem; padding: 1.250rem 1rem; border-radius: 18px; background: #f1ebfb; text-align: center; }
.waiting p { color: var(--muted); font-size: .86rem; line-height: 1.450; }
.waiting__pulse { width: 18px; height: 18px; margin: .5rem 0 .75rem; border-radius: 50%; background: var(--secondary); animation: radar 1.500s ease-out infinite; }
.waiting--done { background: #e3f6f1; color: #0c7a65; }
.waiting--failed { background: #fde8ef; color: #a02352; }
.waiting--failed p { color: #a02352; }
.waiting--offline { background: #fff3d1; }
.waiting > .icon { width: 28px; height: 28px; }

.celebrate { position: relative; justify-items: center; overflow: hidden; padding: 2.250rem 1.400rem; text-align: center; }
.celebrate__stamp { width: 112px; height: 112px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--node) 18%, #fff); animation: stamp-in .7s cubic-bezier(.2, 1.600, .4, 1) both; }
.celebrate__stamp .icon { width: 52px; height: 52px; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; left: calc(var(--i) * 7.200% + 2%); width: 9px; height: 15px; border-radius: 3px; background: var(--secondary); animation: confetti 1.900s cubic-bezier(.3, .6, .5, 1) calc(var(--i) * 55ms) both; }
.confetti i:nth-child(3n) { background: var(--sun); }
.confetti i:nth-child(3n + 1) { background: var(--danger); width: 10px; height: 10px; border-radius: 50%; }
.confetti i:nth-child(4n) { background: var(--success); }

/* Test */
.quiz { display: grid; gap: 1.250rem; }
.quiz__top { display: flex; align-items: center; gap: .75rem; }
.quiz__bar { flex: 1; height: 10px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.quiz__bar span { display: block; height: 100%; border-radius: inherit; background: var(--secondary); transition: width .3s ease; }
.quiz__count { min-width: 2.500rem; color: var(--muted); font-size: .82rem; font-weight: 600; text-align: right; }
.quiz__question { font-size: clamp(1.500rem, 6.500vw, 2rem); animation: rise .3s ease-out; }
.quiz__options { display: grid; gap: .65rem; }
.quiz__option { display: grid; grid-template-columns: 36px 1fr; gap: .85rem; align-items: center; padding: .9rem 1rem; border: 2px solid transparent; border-radius: 20px; background: var(--card); color: var(--ink); font-weight: 500; line-height: 1.350; text-align: left; cursor: pointer; animation: rise .35s ease-out backwards; }
.quiz__option:nth-child(2) { animation-delay: 40ms; }
.quiz__option:nth-child(3) { animation-delay: 80ms; }
.quiz__option:nth-child(4) { animation-delay: 120ms; }
.quiz__option:nth-child(5) { animation-delay: 160ms; }
.quiz__option:nth-child(n + 6) { animation-delay: 200ms; }
.quiz__option span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f1ebfb; color: var(--secondary); font-size: .85rem; font-weight: 700; }
.quiz__option.is-selected { border-color: var(--secondary); background: #f1ebfb; }
.quiz__option.is-selected span { background: var(--secondary); color: #fff; }
.quiz-intro { padding: 2rem 1.400rem; }
.quiz-intro .result__mark { background: var(--sun); color: var(--ink); }
.result { justify-items: center; padding: 2rem 1.400rem; background: var(--node); color: #fff; text-align: center; }
.result .eyebrow { margin-bottom: 0; color: rgba(255, 255, 255, .8); }
.result .lead { color: rgba(255, 255, 255, .92); }
.result__mark { animation: stamp-in .7s cubic-bezier(.2, 1.600, .4, 1) both; }
.result .result__mark { background: #fff; color: var(--node); }

.result__motto { font-size: 1.150rem; font-weight: 600; line-height: 1.350; }
.mix { display: flex; align-items: center; gap: .85rem; padding: .9rem 1.150rem; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.mix__icon { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--node); color: #fff; }
.mix p { color: var(--muted); font-size: .88rem; line-height: 1.400; }
.mix strong { display: block; color: var(--ink); font-size: .95rem; }
.bars { display: flex; align-items: flex-end; gap: .5rem; padding-top: .25rem; }
.bars__col { display: grid; flex: 1; justify-items: center; gap: .35rem; min-width: 0; }
.bars__value { color: var(--muted); font-size: .7rem; font-weight: 600; }
.bars__track { position: relative; width: 100%; max-width: 44px; height: 110px; border-radius: 12px; background: var(--bg); overflow: hidden; }
.bars__track span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 12px; background: var(--node); }
.bars__name { max-width: 100%; overflow: hidden; color: var(--ink); font-size: .68rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* Profil */
.profile-head { display: flex; align-items: center; gap: 1rem; padding: .5rem 0; }
.profile-head h1 { font-size: 1.600rem; }
.profile-head p { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.profile-head__avatar { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%; background: var(--secondary); color: #fff; font-size: 1.600rem; font-weight: 700; }

@keyframes shimmer { to { background-position: -200%; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes stamp-in { from { opacity: 0; transform: scale(2.200) rotate(-18deg); } }
@keyframes node-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--node) 55%, transparent), 0 6px 0 rgba(43, 27, 96, .1); } 100% { box-shadow: 0 0 0 16px transparent, 0 6px 0 rgba(43, 27, 96, .1); } }
@keyframes bonus-glow { 50% { box-shadow: 0 0 0 9px rgba(255, 201, 77, .35); } }
@keyframes radar { 0% { box-shadow: 0 0 0 0 rgba(90, 61, 179, .5); } 100% { box-shadow: 0 0 0 22px rgba(90, 61, 179, 0); } }
@keyframes road-draw { to { stroke-dashoffset: 0; } }
@keyframes confetti { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(420px) rotate(540deg); } }
.app-toast { animation-name: toast-in; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

@media (min-width: 600px) {
  #app { padding-top: 1.250rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; row-gap: .5rem; }
  .step__icon { grid-row: auto; }
  .map-node__label { width: 190px; }
  .sheet { margin-bottom: 1.500rem; border-radius: 28px; }
}
@media (max-width: 360px) {
  #app, .app-header { padding-left: 1rem; padding-right: 1rem; }
  .map-node__label { width: 34vw; }
  .map-node__label strong { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .map-road-fresh { stroke-dashoffset: 0; }
}
@media (forced-colors: active) {
  .card, .input, .map-node__dot, .quiz__option { border: 1px solid CanvasText; }
}
