/* Firemní barvy MINDOK – měňte jen zde */
:root {
  --primary: #f5472e;      /* hlavní – tlačítka a prvky */
  --secondary: #03664d;    /* vedlejší */
  --accent: #fbb13c;       /* doplňková */
  --bg-dark: #f7edf0;      /* akcent tmavší na pozadí */
  --navy: #2b4162;         /* doplňková vedlejší – text */
  --soft-red: #ff9787;
  --soft-yellow: #ffeba8;
  --bg: #fbf6f7;           /* hlavní pozadí */
  --soft-blue: #9ebce9;
  --mint: #6ae7c8;         /* zvýrazňující boxy (s tmavě modrým textem) */
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 65, 98, .06), 0 8px 24px -12px rgba(43, 65, 98, .25);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--navy); font: 15px/1.5 var(--font); }
.embed body { background: transparent; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px 48px; }
.center { text-align: center; }
.hint { margin: 2px 0 12px; font-size: 14px; color: color-mix(in srgb, var(--navy) 80%, transparent); }

/* ---------- Úvodní pás ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 40px 16px 88px;
  background:
    radial-gradient(circle at 8% 20%, var(--soft-yellow) 0 70px, transparent 71px),
    radial-gradient(circle at 92% 30%, color-mix(in srgb, var(--mint) 70%, transparent) 0 90px, transparent 91px),
    radial-gradient(circle at 80% 105%, color-mix(in srgb, var(--soft-blue) 60%, transparent) 0 110px, transparent 111px),
    radial-gradient(circle at 18% 110%, color-mix(in srgb, var(--soft-red) 55%, transparent) 0 80px, transparent 81px),
    var(--bg-dark);
}
.hero::before, .hero::after {
  content: ""; position: absolute; width: 46px; height: 46px; border-radius: 10px;
  background: var(--white); box-shadow: var(--shadow); opacity: .9;
  background-image: radial-gradient(circle, var(--primary) 0 4px, transparent 5px), radial-gradient(circle, var(--primary) 0 4px, transparent 5px);
  background-size: 100% 100%; background-position: -10px -10px, 10px 10px; background-repeat: no-repeat;
}
.hero::before { left: 12%; top: 58%; transform: rotate(-14deg); }
.hero::after { right: 14%; top: 14%; transform: rotate(18deg); background-image: radial-gradient(circle, var(--secondary) 0 4px, transparent 5px), radial-gradient(circle, var(--secondary) 0 4px, transparent 5px), radial-gradient(circle, var(--secondary) 0 4px, transparent 5px); background-position: -12px -12px, 0 0, 12px 12px; }
.hero-in { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 5px 14px; border-radius: 999px;
  background: var(--white); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.hero h1 { font-size: clamp(26px, 4.6vw, 42px); font-weight: 800; letter-spacing: -.01em; }
.hl { color: var(--primary); }
.lead { margin: 12px auto 18px; max-width: 560px; font-size: 17px; }
.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.perks li { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--white) 80%, transparent); font-size: 13px; font-weight: 600; }
.embed .hero { padding-top: 24px; }

/* ---------- Dotazník ---------- */
.wizard {
  position: relative; margin-top: -60px; background: var(--white);
  border-radius: 20px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 28px);
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.step-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 600; color: color-mix(in srgb, var(--navy) 65%, transparent); cursor: pointer; text-align: left;
}
.step-btn .dot {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-dark); color: var(--navy); font-size: 13px; font-weight: 800; transition: background-color .15s, color .15s;
}
.step-btn.done .dot { background: var(--mint); }
.step-btn.done .dot::after { content: "✓"; }
.step-btn.done .dot { font-size: 0; }
.step-btn.done .dot::after { font-size: 14px; }
.step-btn.active { color: var(--navy); }
.step-btn.active .dot { background: var(--primary); color: var(--white); font-size: 13px; }
.step-btn.active .dot::after { content: none; }
.step-btn:focus-visible { outline: 3px solid var(--accent); border-radius: 8px; }
.progress { height: 4px; margin: 8px 0 20px; border-radius: 4px; background: var(--bg-dark); overflow: hidden; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 4px; transition: width .3s ease; }

.step { animation: fade .2s ease-out; }
.step h2 { font-size: 22px; margin-bottom: 14px; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
legend small { font-weight: 400; }
.cols { display: grid; gap: 4px 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* Výběrové „čipy“ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 7px 14px; cursor: pointer; user-select: none;
  background: var(--bg); border: 1.5px solid var(--bg-dark); border-radius: 12px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--navy);
  transition: background-color .12s, border-color .12s, color .12s, transform .08s;
}
.chip:hover { border-color: var(--soft-red); background: var(--white); }
.chip:active { transform: scale(.97); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip .ico { font-size: 18px; line-height: 1; }
.chip .txt { display: flex; flex-direction: column; line-height: 1.2; }
.chip small { font-weight: 500; font-size: 12px; opacity: .75; }
.chip:has(input:checked), .chip-on { background: var(--primary); border-color: var(--primary); color: var(--white); }
.chip:has(input:checked) small { opacity: .9; }
.chip:has(input:focus-visible), .chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips-sm .chip { min-width: 44px; justify-content: center; padding: 6px 12px; }
.chips-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.chips-tiles .chip { padding: 10px 12px; }
.chips-tiles .ico { font-size: 22px; }
.chips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }

input[type=search], input[type=text], input[type=number] {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1.5px solid var(--bg-dark); border-radius: 10px; background: var(--white);
  font: inherit; color: var(--navy);
}
input:focus { outline: none; border-color: var(--soft-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--soft-blue) 45%, transparent); }
.owned { margin-bottom: 16px; }
.owned input { margin-bottom: 8px; }
.box { background: var(--mint); color: var(--navy); border-radius: var(--radius); padding: 14px 16px; }
.bgg label { display: block; margin-bottom: 8px; font-size: 14px; }
.bgg .hint { margin: 8px 0 0; font-size: 12.5px; }
.row { display: flex; gap: 8px; align-items: center; }
.price-row { max-width: 220px; }

.wizard-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--bg-dark); }
.wizard-nav .spacer { flex: 1; }

/* Tlačítka */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .08s, filter .12s, background-color .12s;
}
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn:active { transform: translateY(1px); }
.btn:hover { filter: brightness(.94); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn[hidden] { display: none; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 6px 14px -8px var(--primary); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-ghost { background: var(--bg-dark); color: var(--navy); }
.btn-link { background: none; color: var(--navy); text-decoration: underline; font-weight: 600; padding-inline: 6px; }

/* ---------- Výsledky ---------- */
.results { margin-top: 32px; scroll-margin-top: 12px; }
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.summary span { padding: 3px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--bg-dark); font-size: 13px; font-weight: 600; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr)); align-items: start; }
.game {
  display: flex; flex-direction: column; overflow: hidden; height: 100%;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1.5px solid transparent;
  animation: pop .3s ease-out both; animation-delay: var(--d, 0ms);
  transition: transform .15s, box-shadow .15s;
}
.game:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(43, 65, 98, .08), 0 16px 32px -14px rgba(43, 65, 98, .4); }
.game.top { border-color: var(--accent); }
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 10px; background: linear-gradient(160deg, var(--bg) 0%, var(--bg-dark) 100%); }
.thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(43, 65, 98, .18)); transition: transform .2s; }
.game:hover .thumb img { transform: scale(1.04); }
.ph { font-size: 44px; opacity: .5; }
.badge, .match {
  position: absolute; top: 8px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
}
.badge { left: 8px; background: var(--accent); color: var(--navy); }
.match { right: 8px; background: var(--secondary); color: var(--white); }
.body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px 14px 14px; }
.game h3 { font-size: 16px; font-weight: 800; }
.game h3 a { color: inherit; text-decoration: none; }
.game h3 a:hover { color: var(--primary); }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.level { padding: 2px 8px; border-radius: 999px; background: var(--soft-yellow); font-size: 12px; font-weight: 700; }
.facts { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 12.5px; font-weight: 600; }
.reasons { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.35; }
.reasons li { position: relative; padding-left: 18px; margin-bottom: 3px; }
.reasons li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary); font-weight: 800; }
.more { font-size: 13px; }
.more summary { cursor: pointer; color: var(--secondary); font-weight: 700; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ▾"; }
.more[open] summary::after { content: " ▴"; }
.more .desc { margin: 6px 0; }
.buy { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 17px; font-weight: 800; }
.empty { grid-column: 1 / -1; text-align: center; font-weight: 600; }
.note { margin: 0; padding: 18px; border-radius: var(--radius); background: var(--white); border: 1.5px dashed var(--bg-dark); color: color-mix(in srgb, var(--navy) 80%, transparent); }
.summary em { font-style: normal; font-size: 14px; color: color-mix(in srgb, var(--navy) 80%, transparent); }
#more { margin-top: 20px; }

@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 640px) {
  .hero { padding-bottom: 76px; }
  .hero::before, .hero::after { display: none; }
  .step-btn { flex-direction: column; gap: 3px; font-size: 11.5px; text-align: center; }
  .chips-grid { grid-template-columns: repeat(2, 1fr); }
  .chips-tiles { grid-template-columns: repeat(2, 1fr); }
  .chips-grid .chip { padding: 7px 10px; font-size: 13px; }
  .wizard-nav .spacer { display: none; }
  .wizard-nav #next, .wizard-nav .btn-primary { flex: 1 1 40%; }
  .wizard-nav .btn-link { order: 5; margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .body { padding: 10px; }
  .game h3 { font-size: 14.5px; }
  .buy { flex-direction: column; align-items: stretch; }
  .buy .btn { width: 100%; }
}
@media (max-width: 340px) { .grid { grid-template-columns: 1fr; } }
