/* Vánoční bingo: barvy a tvary letáku z balíčku (tmavě modrá, žlutý nadpis, krémová políčka). */
:root {
  --navy: #17375a;
  --navy-deep: #112b47;
  --yellow: #ffdc4a;
  --cream: #f7ecd0;
  --ink: #17375a;
  --muted: #5b6f85;
  --danger: #b3261e;
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font: 500 17px/1.45 Barlow, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page { max-width: 34rem; margin: 0 auto; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.brand { font: 800 22px/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .14em; text-decoration: none; color: var(--cream); }

h1 {
  margin: 0 0 10px;
  color: var(--yellow);
  font: 800 clamp(3.4rem, 17vw, 5.6rem)/.88 "Barlow Condensed", Barlow, sans-serif;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.lead { margin: 0 0 20px; font-size: 1.2rem; font-weight: 600; }
.lead strong { color: var(--yellow); }

.prizes { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 8.2rem; padding: 14px 12px 12px; border-radius: 2px; background: var(--cream); color: var(--ink); font-size: .92rem; line-height: 1.3; }
.tile strong { font-size: 1.08rem; font-weight: 700; padding-right: 22px; }
.tile--win { background: var(--yellow); }
.tile__check { position: absolute; top: 9px; right: 9px; width: 15px; height: 15px; border: 2px solid var(--ink); border-radius: 2px; }
.tile--win .tile__check { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.3 2.3 2.3 4.7-5.3' fill='none' stroke='%23ffdc4a' stroke-width='2'/%3E%3C/svg%3E") center/11px no-repeat; }

.steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding-left: 2.5rem; min-height: 1.9rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -1px; width: 1.85rem; height: 1.85rem; display: grid; place-items: center; border: 2px solid var(--yellow); border-radius: 2px; color: var(--yellow); font: 800 1.15rem/1 "Barlow Condensed", Barlow, sans-serif; }

.card { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 20px 16px 22px; }
.card h2 { margin: 0 0 4px; font: 800 2rem/1 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; }
.deadline { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }

.field { margin-bottom: 14px; }
.field > label { display: block; margin-bottom: 5px; font-weight: 700; font-size: .95rem; }
.field input[type="email"], .field input[type="tel"] {
  width: 100%; height: 50px; padding: 0 13px;
  border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink);
  font: inherit; font-size: 17px; /* pod 16 px iPhone stránku při psaní přiblíží */
}
.field input::placeholder { color: #9aa7b5; }
.field input:focus-visible, .drop:focus-within, .button:focus-visible, .consent input:focus-visible { outline: 3px solid #2f7de1; outline-offset: 2px; }
.field input.invalid, .drop.invalid { border-color: var(--danger); }

.field > label.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; margin: 0; border: 2px dashed var(--ink); border-radius: var(--radius); background: rgba(255, 255, 255, .55); text-align: center; cursor: pointer; }
.drop svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.drop__title { font-weight: 700; font-size: 1.08rem; }
.drop__hint { font-weight: 500; color: var(--muted); font-size: .9rem; }
.preview { display: grid; gap: 8px; justify-items: center; }
.preview img { display: block; max-width: 100%; max-height: 22rem; border-radius: var(--radius); border: 2px solid var(--ink); background: #fff; }
.preview > label.link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; margin: 0; }

.trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 16px; font-size: .95rem; line-height: 1.35; cursor: pointer; }
.consent input { flex: none; appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border: 2px solid var(--ink); border-radius: 3px; background: #fff; cursor: pointer; }
.consent input:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.3 6.3 2.4 2.4 5-5.6' fill='none' stroke='%23ffdc4a' stroke-width='2'/%3E%3C/svg%3E") center/18px no-repeat; }
.consent.invalid input { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(179, 38, 30, .25); }

.error { margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius); border: 2px solid var(--danger); background: #fff; color: var(--danger); font-weight: 600; font-size: .95rem; }
.button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 10px 16px; border: 0; border-radius: var(--radius); background: var(--navy); color: var(--yellow); font: 800 1.45rem/1 "Barlow Condensed", Barlow, sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--navy-deep); }
.button[disabled] { opacity: .65; cursor: progress; }
.button--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.button--ghost:hover { background: rgba(23, 55, 90, .08); }
.small { margin: 12px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }

.done { text-align: center; padding: 8px 0 2px; }
.done:focus { outline: none; }
.done h2 { margin: 12px 0 8px; }
.done p { margin: 0 0 14px; }
.done .small { margin: 0 0 16px; }
.done__check { display: inline-block; width: 64px; height: 64px; border-radius: 4px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.3 6.3 2.4 2.4 5-5.6' fill='none' stroke='%2317375a' stroke-width='1.6'/%3E%3C/svg%3E") center/44px no-repeat; border: 2px solid var(--ink); }

.foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: .85rem; color: rgba(247, 236, 208, .75); }
.foot a { text-underline-offset: 3px; }

/* pravidla */
.rules { background: var(--cream); color: var(--ink); border-radius: var(--radius); padding: 20px 16px; }
.rules h2 { margin: 22px 0 6px; font: 800 1.5rem/1.05 "Barlow Condensed", Barlow, sans-serif; text-transform: uppercase; }
.rules h2:first-child { margin-top: 0; }
.rules p, .rules li { font-size: .98rem; }
.rules ul { padding-left: 1.2rem; margin: 6px 0; }
.back { display: inline-block; margin: 0 0 14px; font-weight: 700; text-underline-offset: 3px; }
h1.h1--small { font-size: clamp(2.6rem, 12vw, 4rem); margin-bottom: 16px; }

@media (min-width: 40rem) {
  .page { padding-top: 36px; }
  .card { padding: 26px 26px 28px; }
  .tile { min-height: 7.4rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color .15s ease; }
}
