/* Soutěž KFC v OC FRÝDA — vzhled podle nového webu ocfryda.cz (švestková, slonovinová, Plus Jakarta Sans + Inter). */

@font-face { font-family: 'Plus Jakarta Sans Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/inter-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --plum: #6e3250;
  --plum-surface: #2b0f25;
  --plum-soft: rgb(110 50 80 / 0.08);
  --cream: #f3efe6;
  --brass: #a88b5c;
  --brass-light: #d9b97f;
  --mauve: #e8c9da;
  --orb-on-dark: rgb(255 255 255 / 0.045);
  --orb-on-light: rgb(168 139 92 / 0.09);

  --accent: #1c1519;
  --bg: #f6f4ef;
  --paper: #ece7dd;
  --surface: #fffdf9;
  --ink: #1b1619;
  --ink-2: #4a4246;
  --ink-3: #7f777b;
  --line: rgb(27 22 25 / 0.09);
  --line-strong: rgb(27 22 25 / 0.2);
  --lift: 0 24px 48px -28px rgb(43 15 37 / 0.35);

  --gutter: clamp(16px, 4vw, 32px);
  --font-display: 'Plus Jakarta Sans Variable', 'Inter Variable', system-ui, sans-serif;
  --font-body: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink-2);
  font: 1rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--plum); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--ink-3); font-size: 0.92rem; }

.wrap { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }

.eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--plum); margin: 0 0 1rem; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; flex: none; width: 28px; height: 1px; background: var(--brass); }

/* Krémový štítek za klíčovým slovem (jako v kampaních) */
.label { display: inline-block; padding: 0.02em 0.28em 0.08em; margin-inline: -0.04em; border-radius: 0.14em; background: var(--cream); color: var(--plum-surface); }

/* Velké průsvitné kruhy — motiv kampaní OC FRÝDA */
.orbs { position: relative; isolation: isolate; overflow: hidden; }
.orbs::before, .orbs::after { content: ''; position: absolute; z-index: -1; aspect-ratio: 1; border-radius: 50%; background: var(--orb, var(--orb-on-dark)); pointer-events: none; }
.orbs::before { width: var(--orb-a, 46vw); right: var(--orb-a-x, -12vw); top: var(--orb-a-y, -26%); }
.orbs::after { width: var(--orb-b, 30vw); right: var(--orb-b-x, 16vw); bottom: var(--orb-b-y, -34%); }

/* ---------- úvod ---------- */
.hero {
  background: var(--plum-surface); color: var(--cream);
  padding: calc(24px + env(safe-area-inset-top)) 0 96px;
  --orb-a: max(520px, 60vw); --orb-a-x: -30vw; --orb-a-y: -40%;
  --orb-b: max(320px, 34vw); --orb-b-x: 40vw; --orb-b-y: -20%;
}
.brands { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(28px, 6vw, 48px); }
.brand-oc img { width: 56px; height: 56px; }
.brands-x { color: var(--brass-light); font-size: 1.3rem; font-weight: 300; line-height: 1; }
.brand-kfc { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.brand-kfc img { width: 34px; height: auto; }
.hero .eyebrow { color: var(--brass-light); }
.hero .eyebrow::before { background: var(--brass-light); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 11vw, 4.6rem); margin-bottom: 0.4em; }
.hero h1 .label { margin-top: 0.08em; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); color: rgb(243 239 230 / 0.86); max-width: 34ch; margin: 0; }

/* ---------- karta s otázkou ---------- */
.card {
  position: relative; margin-top: -64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--lift);
  padding: clamp(22px, 5vw, 44px);
}
.card h2 { font-size: clamp(1.45rem, 5.4vw, 2.1rem); }
.loading { color: var(--ink-3); margin: 0; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

.options { display: grid; gap: 10px; margin-top: 22px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px 10px 10px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--ink);
  font: 600 1.05rem/1.3 var(--font-body); text-align: left; cursor: pointer;
  transition: border-color 0.2s, background 0.25s, color 0.25s, opacity 0.25s, transform 0.2s var(--ease);
}
.option:hover:not(:disabled) { border-color: var(--ink); }
.option:active:not(:disabled) { transform: scale(0.99); }
.option:disabled { cursor: default; }
.option-letter {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); color: var(--plum); font: 800 0.95rem/1 var(--font-display);
}
.option.is-pending { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum); }
.option.is-correct { background: var(--plum); border-color: var(--plum); color: #fff; }
.option.is-correct .option-letter { background: var(--cream); color: var(--plum-surface); }
.option.is-wrong { border-style: dashed; color: var(--ink-3); }
.option.is-wrong .option-text { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.option.is-muted { opacity: 0.45; }
.hint { margin: 14px 0 0; font-size: 0.88rem; color: var(--ink-3); }

.result { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.result-head h3 { margin: 0; font-size: clamp(1.3rem, 4.6vw, 1.6rem); }
.result p { margin: 0; }
.result-icon, .done-icon { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--plum); }
.result-icon::after, .done-icon::after {
  content: ''; position: absolute; left: 50%; top: 46%; width: 30%; height: 52%;
  border: solid #fff; border-width: 0 3px 3px 0; transform: translate(-50%, -50%) rotate(45deg);
}
.result.is-wrong .result-icon { background: var(--paper); }
.result.is-wrong .result-icon::after { content: '×'; border: 0; transform: translate(-50%, -54%); width: auto; height: auto; top: 50%; color: var(--plum); font: 800 1.4rem/1 var(--font-display); }

/* ---------- formulář ---------- */
.form { margin-top: 22px; }
.fields { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input {
  width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 1rem var(--font-body);
}
.field input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-soft); }
.field input[aria-invalid='true'] { border-color: #a3263a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 0.9rem; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--plum); }
.check a { color: var(--plum); }
.form-error { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; background: #fbeef0; color: #8a1f30; font-size: 0.9rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: #fff; font: 600 0.98rem/1 var(--font-body); cursor: pointer;
  transition: background 0.25s, transform 0.2s var(--ease), opacity 0.2s;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn-full { width: 100%; margin-top: 8px; min-height: 56px; }

/* ---------- hotovo ---------- */
.done { text-align: center; padding-block: 8px; }
.done .done-icon { width: 64px; height: 64px; margin: 0 auto 20px; }
.done .done-icon::after { border-width: 0 4px 4px 0; }
.done p { max-width: 44ch; margin-inline: auto; }

/* ---------- jak to funguje ---------- */
.how { padding: clamp(48px, 9vw, 80px) 0 clamp(56px, 10vw, 96px); }
.how-title { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 28px; }
.steps { list-style: none; counter-reset: krok; margin: 0; padding: 0; display: grid; gap: 22px; }
.steps li { counter-increment: krok; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(krok); grid-row: span 2; font: 800 2.6rem/0.9 var(--font-display); color: var(--plum); letter-spacing: -0.04em;
}
.steps strong { font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; letter-spacing: -0.02em; }
.steps span { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- patička ---------- */
.footer {
  background: var(--plum-surface); color: rgb(243 239 230 / 0.82); font-size: 0.9rem;
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
  --orb-a: 420px; --orb-a-x: -160px; --orb-a-y: -60%; --orb-b: 220px; --orb-b-x: 50%; --orb-b-y: -70%;
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.footer-inner p { margin: 0; line-height: 1.45; }
.footer strong { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; padding-top: 14px; border-top: 1px solid rgb(217 185 127 / 0.25); }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- pravidla (podstránka) ---------- */
.page-head { padding-bottom: 56px; }
.page-head h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
.doc { padding: 40px 0 72px; }
.doc h2 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); margin-top: 2em; letter-spacing: -0.02em; }
.doc h2:first-child { margin-top: 0; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc a { color: var(--plum); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; font-size: 0.9rem; margin-bottom: 28px; }
.back:hover { color: #fff; }

@media (min-width: 760px) {
  .hero { padding-top: 40px; padding-bottom: 120px; }
  .card { margin-top: -80px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
