/* Recenzný formulár podniku (templates/review.html).

   Farby podniku a pozadie (--accent-l/-d, --bg-light, --emoji-on) sú
   inline v šablóne — počítajú sa z podniku (theme.py). */

/* --- pridané pre backend verziu: odkazy majú rovnaký vzhľad ako pôvodné divy --- */
a.social-circle { text-decoration: none; }
img.logo-restaurant { object-fit: cover; }
.success-cta {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.success-cta:active { background: var(--accent-dark); }
.copy-hint {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
    opacity: 0;
    transition: opacity .25s ease;
}
.copy-hint.show { opacity: 1; }
/* Skrytie bloku „Zobraziť ostatné recenzie“: filtrom odkazu na Google
   (gate-hidden) a vo viacvrstvovom formulári, kde sa ukáže až na konci
   a len spokojnému hosťovi (layer-hidden).
   Selektor MUSÍ obsahovať .other-reviews: samotné .gate-hidden má
   rovnakú špecifickosť ako .other-reviews { display: flex } nižšie,
   takže by rozhodovalo poradie v súbore — a blok by ostal viditeľný. */
.other-reviews.gate-hidden, .other-reviews.layer-hidden { display: none; }

/* smajlíky namiesto hviezdičiek (html.rating-emoji) */
.emoji-row { display: none; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
html.rating-emoji .emoji-row { display: flex; }
html.rating-emoji #stars, html.rating-emoji #ratingLabel { display: none; }
.emoji-option {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--muted);
}
.emoji-face {
    position: relative; --face-rest: 1.08;
    /* Šírka podľa stĺpca, nie napevno: na úzkom telefóne je stĺpec
       (jedna pätina riadka) užší než 52 px a zväčšený krúžok by liezol
       na susedné smajlíky. */
    width: min(52px, 100%); aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 28px; line-height: 1; background: var(--bg);
    transition: background .18s ease, transform .25s var(--ease);
}
.emoji-label { font-size: 11.5px; font-weight: 700; }
.emoji-option[aria-checked="true"] .emoji-face { background: var(--emoji-on); transform: scale(1.08); }
.emoji-option[aria-checked="true"] .emoji-label { color: var(--ink); }
.emoji-option:focus-visible { outline: none; }
.emoji-option:focus-visible .emoji-face { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .emoji-option:hover .emoji-face { transform: scale(1.06); } }
@media (max-width: 360px) { .emoji-face { width: min(44px, 100%); font-size: 24px; } }

/* Odozva na ťuknutie: smajlík má charakter podľa hodnotenia — nespokojný
   pokrúti hlavou, spokojný poskočí. Trieda .react ju spustí (JS nižšie),
   takže sa dá prehrať aj pri opakovanom ťuknutí na ten istý smajlík.
   Obal je <img> s Fluent SVG (emoji.py), preto sa animuje krúžok.
   --face-rest je veľkosť vybraného smajlíka, aby animácia skončila
   presne tam, kde ho drží aria-checked (52 px riadok 1.08, karta 1.1). */
@keyframes face-wobble {
    0%, 100% { transform: rotate(0) scale(var(--face-rest)); }
    20% { transform: rotate(-11deg) scale(var(--face-rest)); }
    45% { transform: rotate(9deg) scale(var(--face-rest)); }
    70% { transform: rotate(-5deg) scale(var(--face-rest)); }
}
@keyframes face-tilt {
    0%, 100% { transform: rotate(0) scale(var(--face-rest)); }
    40% { transform: rotate(7deg) scale(calc(var(--face-rest) + .02)); }
}
/* Zväčšenie je zámerne malé — pohyb nesie zvislý posun, ktorý do
   susedných stĺpcov nezasahuje. */
@keyframes face-bounce {
    0% { transform: translateY(0) scale(var(--face-rest)); }
    35% { transform: translateY(-9px) scale(calc(var(--face-rest) + .04)); }
    65% { transform: translateY(0) scale(.98); }
    100% { transform: translateY(0) scale(var(--face-rest)); }
}
@keyframes face-bounce-big {
    0% { transform: translateY(0) scale(var(--face-rest)); }
    30% { transform: translateY(-14px) scale(calc(var(--face-rest) + .06)) rotate(-6deg); }
    60% { transform: translateY(0) scale(.96) rotate(2deg); }
    100% { transform: translateY(0) scale(var(--face-rest)); }
}
/* Pulz musí byť pseudo-element: .aspect-emoji sa stavia klonovaním
   detí .emoji-face, takže pridaný uzol by skončil aj pri oblastiach.
   Koncová mierka je 1.35 — širší kruh by prekryl susedné smajlíky. */
@keyframes face-pulse {
    0% { opacity: .55; transform: scale(.85); }
    100% { opacity: 0; transform: scale(1.35); }
}
.emoji-face::after, .quick-emoji::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid var(--accent); opacity: 0; pointer-events: none;
}
.react .emoji-face::after, .react .quick-emoji::after { animation: face-pulse .6s ease-out both; }
/* Animovaný smajlík kreslí nad susedmi, nie pod nimi. */
.react .emoji-face, .react .quick-emoji { z-index: 1; }
.emoji-option.react[data-value="1"] .emoji-face,
.emoji-option.react[data-value="2"] .emoji-face,
.quick-face.react[data-value="1"] .quick-emoji,
.quick-face.react[data-value="2"] .quick-emoji { animation: face-wobble .5s ease both; }
.emoji-option.react[data-value="3"] .emoji-face,
.quick-face.react[data-value="3"] .quick-emoji { animation: face-tilt .4s ease both; }
.emoji-option.react[data-value="4"] .emoji-face,
.quick-face.react[data-value="4"] .quick-emoji { animation: face-bounce .5s var(--ease) both; }
.emoji-option.react[data-value="5"] .emoji-face,
.quick-face.react[data-value="5"] .quick-emoji { animation: face-bounce-big .6s var(--ease) both; }

/* „Vyskočenie očí“: tvár sa na chvíľu vymení za reakčnú — pri 4–5 za
   🤩 (oči sa zmenia na hviezdy), pri 1–2 za 😔. Rovnaké ikonky, aké
   má záverečná obrazovka (emoji.py), takže nič nepribúda.
   Výmena ide cez pseudo-element, NIE cez výmenu <img>: mini-smajlíky
   pri oblastiach vznikajú klonovaním detí .emoji-face, takže vymenený
   uzol by sa skopíroval aj tam. */
.emoji-option[data-value="1"] .emoji-face, .emoji-option[data-value="2"] .emoji-face,
.quick-face[data-value="1"] .quick-emoji, .quick-face[data-value="2"] .quick-emoji {
    --react-face: url("../emoji/fluent/pensive_face.svg");
}
.emoji-option[data-value="4"] .emoji-face, .emoji-option[data-value="5"] .emoji-face,
.quick-face[data-value="4"] .quick-emoji, .quick-face[data-value="5"] .quick-emoji {
    --react-face: url("../emoji/fluent/star-struck.svg");
}
.emoji-face::before, .quick-emoji::before {
    content: ""; position: absolute; inset: 16%; opacity: 0; pointer-events: none;
    background: var(--react-face) center / contain no-repeat;
}


/* hodnotenie oblastí smajlíkmi */
.aspect-emoji {
    width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: var(--bg);
    font-size: 18px; line-height: 1; cursor: pointer; opacity: .55; filter: grayscale(.6);
    transition: opacity .15s ease, filter .15s ease, background .15s ease;
}
.aspect-emoji[aria-checked="true"] { background: var(--emoji-on); opacity: 1; filter: none; }
.aspect-emoji:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* doplňujúca otázka podľa hodnotenia */
/* Samostatné okno po odoslaní. Po .phone.done sú obe obrazovky v toku
   stránky — tá, ktorá sa práve neukazuje, nesmie zaberať miesto. */
.followup-screen[hidden] { display: none !important; }
.phone.done .success-screen:not(.show) { display: none; }
.followup-screen { justify-content: flex-start; padding-top: 44px; }
.followup-card {
    width: 100%; max-width: 360px; background: var(--panel); border-radius: var(--radius-lg);
    padding: 20px 18px 6px; text-align: left; animation: fadeUp .35s ease both;
}
.followup-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.followup-sub { font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.45; margin-bottom: 6px; }
.followup-continue {
    margin-top: 20px; width: 100%; max-width: 360px; padding: 14px; border: 0; border-radius: 999px;
    background: var(--accent); color: var(--on-accent); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.followup-continue:active { background: var(--accent-dark); }
.followup-continue:disabled { opacity: .6; cursor: progress; }
.followup-skip {
    margin-top: 10px; padding: 8px 12px; border: 0; background: none; color: var(--muted);
    font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
}
.followup-continue:focus-visible, .followup-skip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.followup-option {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0;
    border: 0; border-bottom: 1px solid var(--divider); background: none; color: var(--ink);
    font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer;
}
.followup-option:last-child { border-bottom: 0; }
.followup-box {
    width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1.5px solid var(--dash);
    background: var(--bg); display: grid; place-items: center; color: var(--on-accent); font-size: 14px; line-height: 1;
}
.followup-option[aria-checked="true"] .followup-box { background: var(--accent); border-color: var(--accent); }
.followup-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* --- viacvrstvový formulár (html.flow-layered): služba -> otázky -> dokončenie --- */
html.flow-layered .classic-only { display: none !important; }
.layers[hidden], .layer[hidden], .submit-bar[hidden], .layer-back[hidden] { display: none !important; }
.layer { animation: fadeUp .35s ease both; }
/* Späť: len zaoblená šípka s kruhovou dotykovou plochou */
.layer-back {
    display: inline-grid; place-items: center; width: 40px; height: 40px;
    margin: -8px 0 6px -10px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--ink); cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.layer-back svg { width: 22px; height: 22px; display: block; }
.layer-back:active { background: var(--panel); transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .layer-back:hover { background: var(--panel); } }
.layer-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.layer-heading { font-size: 21px; font-weight: 700; color: var(--ink); text-align: center; margin-bottom: 6px; overflow-wrap: anywhere; }
.layer-sub { font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.45; margin-bottom: 18px; }
.ctx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ctx-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 132px; padding: 18px 10px; border: 2px solid transparent; border-radius: var(--radius-lg);
    background: var(--panel); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700;
    text-align: center; overflow-wrap: anywhere; cursor: pointer;
    transition: border-color .15s ease, transform .2s var(--ease);
}
.ctx-card-icon { font-size: 40px; line-height: 1; }
.ctx-card[aria-pressed="true"] { border-color: var(--accent); }
.ctx-card:active { transform: scale(.97); }
.ctx-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ctx-card:hover { border-color: var(--dash); } }
.layer-panel { background: var(--panel); border-radius: var(--radius-lg); padding: 18px; }
.layer-questions { display: flex; flex-direction: column; gap: 20px; }
.layer-questions .aspect { flex-direction: column; align-items: stretch; gap: 10px; }
.layer-questions .aspect-label { font-size: 15px; text-align: center; }
.layer-questions .aspect-stars { justify-content: center; gap: 8px; }
/* O 10 % väčšie; na úzkom displeji sa zmenšia, aby sa päť vždy zmestilo do riadka. */
.layer-questions .aspect-star { flex: 0 1 44px; width: auto; height: auto; aspect-ratio: 1; min-width: 0; }
.layer-questions .aspect-emoji { flex: 0 1 53px; width: auto; height: auto; aspect-ratio: 1; min-width: 0; font-size: 29px; }
.layer-face { font-size: 56px; line-height: 1; text-align: center; margin: 2px 0 12px; animation: layerPop .45s var(--ease) both; }
@keyframes layerPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
/* nespokojný hosť: odkaz na Google ostáva, ale nie ako hlavné tlačidlo */
.success-cta.is-soft {
    background: transparent; color: var(--muted); padding: 8px 12px;
    text-decoration: underline; text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .layer, .layer-face { animation: rmFade .3s ease both; }
    .ctx-card { transition: none; }
}

/* doplňujúce hodnotenie oblastí (Jedlo, Obsluha…) */
.aspects[hidden], .question-cards[hidden] { display: none; }
.aspects {
    display: flex; flex-direction: column; gap: 10px;
    margin: 4px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--divider);
}
.aspect { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aspect-label { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.aspect-stars { display: flex; gap: 4px; flex: none; }
.aspect-star {
    width: 28px; height: 28px; padding: 1px; border: 0; background: none; cursor: pointer;
    color: var(--star-off); transition: transform .2s var(--ease);
}
.aspect-star svg { width: 100%; height: 100%; display: block; overflow: visible; }
.aspect-star:active { transform: scale(.9); }

/* otázky s bublinami */
.question-cards { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.question-card { background: var(--panel); border-radius: var(--radius-md); padding: 14px 16px; }
.question-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.question-hint { font-size: 12px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--dash);
    background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700;
    cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.aspect-star:focus-visible, .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
/* upresnenie pri bubline „Iné“ (otázky aj doplňujúca otázka) */
.other-note {
    display: block; width: 100%; margin-top: 10px; padding: 10px 12px;
    border: 1.5px solid var(--dash); border-radius: 12px; background: var(--bg);
    color: var(--ink); font: inherit; font-size: 14px; animation: fadeUp .25s ease both;
}
.other-note[hidden] { display: none; }
.other-note::placeholder { color: var(--muted); }
.other-note:focus { outline: none; border-color: var(--accent); }
.followup-options .other-note { margin: 2px 0 12px; }

/* Súkromná správa podniku — ukáže sa hosťovi pod hranicou filtra
   odkazu na Google (review_gate_threshold), a to až na ďakovacej
   obrazovke. Rovnaký prerušovaný rámček ako pruh vernostného programu.
   .success-screen centruje text, box ho zarovnáva späť doľava. */
.private-note {
    margin-top: 18px; padding: 12px 14px; border: 1.5px dashed var(--accent);
    border-radius: 14px; animation: fadeUp .3s ease both;
    width: 100%; text-align: left;
}
.private-note[hidden], .private-form[hidden], #privateAsk[hidden] { display: none; }
.private-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.private-desc { margin: 4px 0 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.45; }
/* Bez poľa (hosť už adresu nechal alebo ju pýta kupón) ostáva len text
   — nech pod ním nevisí prázdne miesto po formulári. */
.private-note:has(.private-form[hidden]) .private-desc { margin-bottom: 0; }
.private-form { display: flex; gap: 8px; }
/* Rovnaké pole ako e-mail pri kupóne (.coupon-form) — na papierovom
   pozadí panela musí byť vidieť, že sa doň píše. */
.private-note input {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line);
    border-radius: 12px; background: var(--surface); color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 600;
}
.private-note input::placeholder { color: var(--muted); }
.private-note input:focus { outline: none; border-color: var(--accent); }
.private-btn {
    flex: 0 0 auto; padding: 12px 16px; border: 0; border-radius: 12px;
    background: var(--accent); color: var(--on-accent);
    font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.private-btn:active { background: var(--accent-dark); }
.private-btn:disabled { opacity: .55; cursor: default; }
.private-msg {
    margin-top: 10px; font-size: 12.5px; font-weight: 600;
    color: var(--muted); line-height: 1.45;
}
.private-msg[hidden] { display: none; }

/* logo podniku: samotný obrázok, bez podkladu, zaoblenia a tieňa */
.logo-stack[hidden] { display: none; }
.brand-logo {
    display: block; height: 44px; width: auto; max-width: 160px;
    object-fit: contain;
}
@media (min-width:768px) { .brand-logo { height: 48px; } }
/* „Len logo“ (Pro): bez názvu, väčšie logo na stred. Pravidlá .brand-row
   sú nižšie v súbore, preto vyššia špecifickosť cez .content. */
.content .brand-row.logo-only { justify-content: center; }
.brand-row.logo-only .brand-text { display: none; }
.brand-row.logo-only .brand-logo { height: 110px; max-width: 300px; }
@media (min-width:768px) { .brand-row.logo-only .brand-logo { height: 120px; } }

/* banner podniku navrchu formulára (Pro) — cez celú šírku, úplne hore,
   názov/logo podniku na ňom (.cover-brand, trieda .hero-banner na .phone) */
.cover-banner { overflow: hidden; background: var(--line); }
.cover-banner[hidden] { display: none; }
.cover-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Zrnitosť (noise) cez pozadie stránky aj kartičky / Wallet kartu —
   intenzita --noise z businesses.bg_noise (0 = neviditeľná). */
.phone::after, .points-box::after, .reward-side::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: url("../img/noise.png"); opacity: var(--noise, 0); mix-blend-mode: soft-light; z-index: 2;
}
.cover-brand { display: none; }
.phone.hero-banner { padding-top: 0; }
.phone.hero-banner .cover-banner {
    position: relative; margin: 0; border-radius: 0; aspect-ratio: 16 / 9;
    border-bottom: 1px solid var(--line);
}
.phone.hero-banner .cover-brand {
    position: absolute; inset: auto 0 0; display: flex; align-items: center; gap: 12px;
    padding: 56px 18px 16px; background: linear-gradient(transparent, rgba(0, 0, 0, .62));
    animation: fadeUp .45s ease .05s both;
}
.phone.hero-banner .cover-brand .restaurant-name { color: #fff; font-size: 20px; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.phone.hero-banner .cover-brand .brand-logo { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); }
/* Kartička stáleho hosťa bez prechodu (pass.banner_shade vypnuté): logo
   v pôvodných farbách — tmavé logo by v tmavom prechode zaniklo. */
.phone.hero-banner .cover-banner.no-shade .cover-brand { background: none; }
.phone.hero-banner .cover-banner.no-shade .brand-logo { filter: none; }
.phone.hero-banner .cover-brand.logo-only .restaurant-name { display: none; }
.phone.hero-banner .cover-brand.logo-only .brand-logo { height: 72px; max-width: 220px; }
.phone.hero-banner .brand-row { display: none; }
/* Karta stáleho hosťa (tap-mode): logo o 15 % väčšie než na formulári. */
.phone.tap-mode .brand-logo { height: 51px; max-width: 184px; }
@media (min-width:768px) { .phone.tap-mode .brand-logo { height: 55px; } }
.phone.tap-mode .brand-row.logo-only .brand-logo { height: 127px; max-width: 345px; }
@media (min-width:768px) { .phone.tap-mode .brand-row.logo-only .brand-logo { height: 138px; } }
.phone.tap-mode.hero-banner .cover-brand.logo-only .brand-logo { height: 83px; max-width: 253px; }
.phone.hero-banner .content { padding-top: 22px; }

/* ovládacie prvky ako skutočné <button> — bez predvoleného vzhľadu prehliadača */
button.visibility, button.photo-remove {
    font: inherit; border: 0; background: none; padding: 0; appearance: none;
}
button.visibility { border: 1px solid var(--line); padding: 7px 11px; }
.star:focus-visible, .v-option:focus-visible, .add-photos:focus-visible,
button.visibility:focus-visible, button.photo-remove:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px;
}
.photo-thumb span {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    background: var(--panel); color: var(--muted); font-size: 11px; font-weight: 700;
}

/* po odoslaní: poďakovanie nahradí formulár v toku stránky */
.phone.done .content { display: none; }
.phone.done .success-screen { position: relative; inset: auto; min-height: 70vh; }
.success-note { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent); }

/* --- kupón za spätnú väzbu --- */
.success-screen.has-coupon { justify-content: flex-start; overflow-y: auto; padding-top: 36px; }
.coupon-offer { width: 100%; max-width: 340px; margin-top: 22px; text-align: left; }
.coupon-offer[hidden] { display: none; }
.coupon-ticket {
    position: relative; padding: 18px 20px; border-radius: 18px;
    background: #fff; border: 2px dashed var(--accent); text-align: center;
}
.coupon-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.coupon-label { margin-top: 4px; font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1.15; overflow-wrap: anywhere; }
.coupon-desc { margin-top: 4px; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.coupon-desc:empty { display: none; }
.loyalty-line {
    margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--dash, #e5e5e5);
    font-size: 13px; font-weight: 700; color: var(--ink);
}
.loyalty-line[hidden] { display: none; }
.loyalty-bar[hidden] { display: none; }
/* pruh vernostného programu pod názvom podniku */
.loyalty-bar {
    display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 10px 12px;
    border: 1.5px dashed var(--accent); border-radius: 14px; color: var(--ink);
    text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.35;
}
.loyalty-bar-text { flex: 1 1 auto; min-width: 0; }
.loyalty-bar-note { display: block; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--accent); }
.member-bar { margin: -10px 0 16px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.member-open, .member-bar .tap-logout {
    padding: 2px 4px; border: 0; background: none; font: inherit; color: var(--muted);
    text-decoration: underline; cursor: pointer;
}
.member-login {
    margin: -6px 0 18px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line);
    background: var(--panel); display: flex; flex-direction: column; gap: 10px;
    animation: fadeUp .3s ease both;
}
.member-login[hidden] { display: none; }
.member-login-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.member-login input[type=email], .member-login input[name=name] {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
    background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
}
.member-login input[name=code] {
    width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
    background: var(--bg); color: var(--ink); text-align: center;
    font: inherit; font-size: 22px; font-weight: 800; letter-spacing: .3em;
    font-variant-numeric: tabular-nums;
}
.member-login input:focus { outline: none; border-color: var(--accent); }
.member-login input[hidden], .member-hint[hidden], .member-error[hidden],
.member-resend[hidden] { display: none; }
.member-hint { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.45; }
.member-error { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.member-btn {
    width: 100%; padding: 12px; border: 0; border-radius: 999px; background: var(--ink);
    color: var(--bg); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.member-btn:disabled { opacity: .6; cursor: progress; }
.member-resend {
    align-self: center; padding: 2px; border: 0; background: none; font: inherit;
    font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer;
}
.member-resend:disabled { opacity: .5; cursor: default; }
.member-or { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.member-or::before, .member-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.member-google {
    display: block; padding: 12px; border-radius: 999px; border: 1.5px solid var(--line);
    text-align: center; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 700;
}
.phone.done .member-bar, .phone.done .member-login { display: none; }
.phone.done .loyalty-bar { display: none; }
/* stály hosť po pípnutí kartou (loyalty.regular_view) */
.phone.tap-mode #mainContent > :not(.brand-row):not(#regularCard):not(.test-bar) { display: none; }
.phone.tap-mode.wallet-mode .brand-row,
.phone.tap-mode.no-card-banner .cover-banner { display: none; }
.test-bar {
    margin: 0 0 12px; padding: 7px 12px; border-radius: 10px; text-align: center;
    background: var(--panel); color: var(--ink); border: 1.5px dashed var(--line);
    font-size: 12.5px; font-weight: 700;
}
.phone.done .test-bar { display: none; }
.phone.done .regular-card { display: none; }
.regular-card { margin: 4px 0 8px; text-align: center; }
.regular-hello { animation: fadeUp .4s ease both; }
.regular-title { font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.regular-sub { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); line-height: 1.45; }
/* karta bodov / odmeny — preklápa sa okolo zvislej osi */
/* Obe strany v jednej bunke gridu: po preklopení určuje výšku karty
   aj strana s odmenou (text + tlačidlo QR), nič z nej nepretečie. */
.points-flip {
    position: relative; margin-top: 18px; transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
    display: grid;
}
.points-flip > * { grid-area: 1 / 1; min-width: 0; }
.points-flip.won { transform: rotateY(180deg); }
/* Otočka späť na body: zadná strana ostane viditeľná, kým sa neotočí. */
.points-flip.leaving .reward-side { visibility: visible; }
.points-box, .reward-side {
    padding: 18px 16px 16px; border-radius: 20px; backface-visibility: hidden;
    background: var(--tap-bg, #fff); border: 2px dashed var(--accent);
}
/* fadeUp animuje transform, preto smie bežať len na prednej strane —
   inak by prepísala otočenie zadnej a odmena by ostala neviditeľná. */
.points-box { position: relative; animation: fadeUp .4s .06s ease both; }
/* Rámik kartičky (Vernosť → Vzhľad): prerušovaný je predvolený. */
.points-flip.border-solid .points-box, .points-flip.border-solid .reward-side { border-style: solid; }
.points-flip.border-none .points-box, .points-flip.border-none .reward-side {
    border-color: transparent; box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .35);
}
/* Umiestnenie textov kartičky (Vernosť → Vzhľad): počet bodov v rohu
   okna, meno vľavo dole v okne, alebo všetko pod oknom (.points-below). */
/* Roh aj meno sú v toku okna (vlastný horný / spodný riadok), aby sa
   nikdy neprekryli s guličkami, správou ani QR. */
.card-corner {
    margin: -4px 0 8px; text-align: right; font-size: 12px; font-weight: 700;
    color: var(--muted); letter-spacing: .02em;
}
.card-corner b { font-size: 13px; color: var(--muted); }
.card-reward { margin-top: 12px; font-size: 12.5px; }
.card-corner-credit {
    margin: -4px 0 8px; flex-direction: row; justify-content: flex-end; align-items: baseline; gap: 6px;
}
.card-corner-credit .credit-kicker { font-size: 10.5px; }
.card-corner-credit .credit-value { font-size: 15px; color: var(--muted); }
/* popisy BODY / MENO pri klasickej kartičke (ako pri Wallet karte) */
.card-corner .pass-label, .card-holder .pass-label { display: block; margin-bottom: 2px; }
.points-flip:not(.style-wallet) .points-box {
    --pass-ink: var(--ink); --pass-label-c: color-mix(in srgb, var(--accent) 60%, var(--ink)); container-type: inline-size;
}
/* klasická kartička s mriežkou polí (pass.fields = grid) */
.classic-head { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.points-flip:not(.style-wallet) .pass-grid { margin-top: 14px; text-align: left; }
.points-flip:not(.style-wallet) .pass-grid + .points-status { margin-top: 12px; }
.card-holder {
    margin-top: 12px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); opacity: .75;
}
/* V okne len guličky: rovnomerný okraj, texty pod oknom. */
.count-below .points-box, .count-hidden .points-box { padding-top: 16px; padding-bottom: 16px; }
.points-below { margin-top: 10px; text-align: center; animation: fadeUp .4s .1s ease both; }
.points-below .points-count { margin-top: 0; }
.points-below .credit-box { margin-bottom: 4px; }
.points-below .credit-value { font-size: 24px; }
.card-name-below {
    margin-top: 6px; padding: 0 18px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); overflow-wrap: anywhere;
}
.points-below .points-status { margin-top: 6px; }
.regular-status-bottom { margin-top: 18px; text-align: center; }
.regular-status-bottom .points-status { font-size: 13px; font-weight: 600; color: var(--muted); }
.regular-status-bottom .points-status.ok { color: var(--ok); }
/* Wallet karta (štýl ako Apple Wallet): hlavička s logom a poľom,
   široký pás (guličky / obrázok / farba), polia pod ním a QR. */
.style-wallet .points-box, .style-wallet .reward-side {
    /* Bez vlastnej farby popisov: farba podniku posunutá k farbe textu
       karty — čitateľná na svetlej aj tmavej karte, odtieň ostane. */
    --pass-label-c: var(--pass-label, color-mix(in srgb, var(--accent) 52%, var(--pass-ink)));
    background: var(--pass-bg); color: var(--pass-ink); border: 0; border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 18px 40px -14px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .05);
}
/* container: mriežka polí sa riadi šírkou karty, nie okna */
.style-wallet .points-box { padding: 14px 14px 16px; text-align: left; container-type: inline-size; }
/* Obrázok na pozadí celej Wallet karty (pass_bg_image) pod obsahom.
   Hlavička (logo, body) a riadok s menom majú pod sebou rozmazaný pruh
   vo farbe karty, aby sa na fotke dali prečítať. */
.style-wallet.has-bg-img .points-box, .style-wallet.has-bg-img .reward-side { isolation: isolate; }
.pass-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    border-radius: inherit; z-index: -1; pointer-events: none;
}
/* Klasická kartička s obrázkom pozadia: fotka za okienkom s bodmi, cez ňu
   matná vrstva s intenzitou majiteľa (--pass-blur, --pass-tint). */
.points-flip.has-bg-img:not(.style-wallet) .points-box,
.points-flip.has-bg-img:not(.style-wallet) .reward-side { isolation: isolate; }
.points-flip.has-bg-img:not(.style-wallet) .points-box::before,
.points-flip.has-bg-img:not(.style-wallet) .reward-side::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
    background: color-mix(in srgb, var(--tap-bg, #fff) var(--pass-tint, 36%), transparent);
    -webkit-backdrop-filter: blur(var(--pass-blur, 5px)); backdrop-filter: blur(var(--pass-blur, 5px));
}
.points-flip.has-bg-img:not(.style-wallet) .dot { box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .4); }
.points-flip.has-bg-img:not(.style-wallet) .dot:not(.on) { background: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .95); }
/* text na fotke: plná farba a jemná žiara vo farbe karty */
.points-flip.has-bg-img:not(.style-wallet) :is(.points-count, .points-status, .card-holder, .card-corner, .credit-box, .pass-field) {
    color: var(--ink); text-shadow: 0 0 2px var(--tap-bg, #fff), 0 0 8px var(--tap-bg, #fff), 0 0 14px var(--tap-bg, #fff);
}
/* svetlý text na fotke: tmavá matná vrstva namiesto svetlej */
.points-flip.ink-light.has-bg-img:not(.style-wallet) .points-box::before,
.points-flip.ink-light.has-bg-img:not(.style-wallet) .reward-side::before { background: rgba(0, 0, 0, .34); }
.points-flip.ink-light.has-bg-img:not(.style-wallet) :is(.points-count, .points-status, .card-holder, .card-corner, .credit-box, .pass-field) {
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 10px rgba(0, 0, 0, .35);
}
/* Dva súvislé matné panely (pseudo-prvky za textom): hore od okraja karty
   po hlavičku, dole od polí po spodok karty. Mäkký prechod je len na
   vnútornom okraji; pás s guličkami ostane medzi nimi na ostrej fotke.
   14 / 16 px = padding .points-box, 18 px = jej zaoblenie. */
/* flow-root: okraje QR a mena ostanú v paneli, panel tak siaha až po spodok karty.
   Intenzitu (--pass-blur, --pass-tint) nastavuje majiteľ (pass.blur_level). */
.pass-panel { display: flow-root; }
.style-wallet.has-bg-img:not(.bg-fade) .pass-panel { position: relative; }
.style-wallet.has-bg-img:not(.bg-fade) .pass-panel::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    background: color-mix(in srgb, var(--pass-bg) var(--pass-tint, 36%), transparent);
    -webkit-backdrop-filter: blur(var(--pass-blur, 5px)) saturate(1.1); backdrop-filter: blur(var(--pass-blur, 5px)) saturate(1.1);
}
.style-wallet.has-bg-img:not(.bg-fade) .pass-panel-top::before {
    inset: -14px -14px -22px; border-radius: 18px 18px 0 0;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 26px), transparent);
}
.style-wallet.has-bg-img:not(.bg-fade) .pass-panel-bottom::before {
    inset: -22px -14px -16px; border-radius: 0 0 18px 18px;
    -webkit-mask-image: linear-gradient(transparent, #000 26px);
    mask-image: linear-gradient(transparent, #000 26px);
}
.style-wallet .reward-side .reward-title, .style-wallet .reward-side .reward-note { color: var(--pass-ink); }
.pass-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-height: 40px; }
/* Prechod (pass.bg_style = fade): fotka hore plynulo zmizne do farby karty,
   polia a QR sú na plnej farbe. Hlavička na fotke má jemný tieň. */
.style-wallet.bg-fade .pass-bg-img {
    -webkit-mask-image: linear-gradient(#000 0, #000 30%, transparent 58%);
    mask-image: linear-gradient(#000 0, #000 30%, transparent 58%);
}
.style-wallet.bg-fade .pass-head, .style-wallet.bg-fade .pass-grid,
.style-wallet.bg-fade .pass-fields { text-shadow: 0 1px 3px color-mix(in srgb, var(--pass-bg) 80%, transparent); }
/* Farba textu hlavičky podľa jasu fotky (review/regular.js, data-auto-ink). */
.style-wallet.bg-fade.ink-head-light .pass-head { --pass-ink: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); }
.style-wallet.bg-fade.ink-head-light .pass-head .pass-label { color: rgba(255, 255, 255, .86); }
.style-wallet.bg-fade.ink-head-dark .pass-head { --pass-ink: #141213; text-shadow: 0 1px 2px rgba(255, 255, 255, .6); }
.style-wallet.bg-fade.ink-head-dark .pass-head .pass-label { color: rgba(20, 18, 19, .78); }
.pass-head-left { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pass-head-left .pass-logo { flex: none; max-width: 100%; }
/* štítok v hlavičke (pass.badge) */
.pass-badge {
    display: inline-flex; padding: 3px 9px; border-radius: 999px; text-shadow: none;
    font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    background: var(--pass-label-c); color: var(--pass-bg);
}
/* Karta podľa podniku: odtieň pozadia formulára (svetlejší). */
.style-wallet { --pass-auto-bg: color-mix(in srgb, var(--bg) 45%, #fff); }
html.theme-dark .style-wallet, html.theme-auto.device-dark .style-wallet,
html.bg-light-text .style-wallet { --pass-auto-bg: color-mix(in srgb, var(--bg) 86%, #fff); }
@media (prefers-color-scheme: dark) {
    html.theme-auto:not(.is-preview) .style-wallet { --pass-auto-bg: color-mix(in srgb, var(--bg) 86%, #fff); }
}
.pass-logo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.pass-logo-img { max-height: 44px; max-width: 138px; object-fit: contain; display: block; flex: none; }
.pass-logo-name {
    font-size: 17px; font-weight: 800; line-height: 1.15; color: var(--pass-ink); overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pass-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pass-top, .pass-right { text-align: right; align-items: flex-end; }
.pass-label { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pass-label-c); }
.pass-value { font-size: 20px; font-weight: 500; line-height: 1.15; color: var(--pass-ink); overflow-wrap: anywhere; }
.pass-top { flex: none; max-width: 50%; }
.pass-top .pass-value {
    font-size: 17px; overflow-wrap: anywhere;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* pole majiteľa pri úrovniach (napr. „10 % na všetko“) */
.pass-right { max-width: 62%; }
.pass-right .pass-value {
    font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* nezískané guličky na páse: obrys v odtieni textu karty */
.style-wallet .dot:not(.on) { border-color: color-mix(in srgb, var(--pass-ink) 22%, transparent); color: color-mix(in srgb, var(--pass-ink) 55%, transparent); }
.pass-value b { font-weight: inherit; color: inherit; font-size: inherit; }
/* pás od okraja po okraj karty, ako v Apple Wallet */
.pass-strip {
    position: relative; margin: 12px -14px 12px; min-height: 124px; border-radius: 0; overflow: hidden;
    background: var(--pass-strip, color-mix(in srgb, var(--pass-label-c) 16%, var(--pass-bg)));
    display: grid; place-items: center;
}
/* Pás s obrázkom: farba pásu sa nepoužije (priehľadné), obrázok je ostrý
   a guličky sú priamo na ňom. */
.pass-strip.strip-image { background: transparent; }
.pass-strip-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pass-strip-content { position: relative; z-index: 1; width: 100%; padding: 10px 12px; display: grid; justify-items: center; gap: 8px; }
/* čitateľnosť na fotke: nezískané guličky s bielou výplňou, tiene */
.pass-strip.has-strip-img .dot, .has-bg-img .pass-strip.strip-clear .dot { box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .45); }
.pass-strip.has-strip-img .dot:not(.on),
.has-bg-img .pass-strip.strip-clear .dot:not(.on) { background: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .9); color: rgba(20, 18, 19, .45); }
/* Priehľadný pás: guličky priamo na karte, pri fotke pozadia na fotke. */
.pass-strip.strip-clear { background: transparent; }
.pass-strip.has-strip-img .dots.has-img .dot:not(.gift) { box-shadow: none; background: transparent; border-color: transparent; }
.pass-strip.has-strip-img .pass-big { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 14px rgba(0, 0, 0, .35); }
.pass-strip.has-strip-img .tap-meter { box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .45); }
.pass-strip .dots { gap: 8px 10px; grid-template-columns: repeat(var(--per-row, 5), 36px); }
.pass-strip .tap-meter { width: 80%; }
.pass-big { font-size: 30px; font-weight: 800; color: var(--pass-label-c); font-variant-numeric: tabular-nums; }
.pass-fields { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
/* meno pod QR kódom (pass.name_pos = below_qr) */
.pass-fields-bottom { justify-content: flex-start; text-align: left; margin-top: 10px; }
.pass-fields-bottom .pass-name { align-items: flex-start; }
.pass-qr { width: 132px; margin: 18px auto 2px; padding: 9px; border-radius: 12px; background: #fff; }
/* mriežka polí (pass.fields = grid): popis + hodnota v troch stĺpcoch */
/* Prísna mriežka: 3 rovnaké stĺpce (na úzkej karte 2), popisy v riadku na
   jednej línii, druhý riadok (pass-row-start) vždy od prvého stĺpca. */
.pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
.pass-grid .pass-field { align-items: flex-start; text-align: left; }
.pass-grid .pass-row-start { grid-column-start: 1; }
@container (max-width: 300px) { .pass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pass-grid .pass-value {
    font-size: 15px; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pass-grid .pass-right { text-align: left; align-items: flex-start; max-width: none; }
.pass-grid .pass-right .pass-value { font-size: 15px; }
.pass-qr svg { display: block; width: 100%; height: auto; }
/* Rozloženie Google Wallet (pass.layout = google): celá karta vo farbe,
   logo v kruhu hore v strede, názov a nadpis, QR na bielom, mriežka
   v dvoch stĺpcoch (ľavý vľavo, pravý vpravo) a pás cez celú šírku dole.
   Popisy ako v Google Wallet: normálne písmo vo farbe textu, nie VERZÁLKY. */
.style-wallet.layout-google .points-box, .style-wallet.layout-google .reward-side {
    --pass-label-c: var(--pass-label, color-mix(in srgb, var(--pass-ink) 80%, transparent));
    border-radius: 26px; overflow: hidden;
}
.style-wallet.layout-google .points-box { padding: 22px 20px 0; text-align: center; }
.gw-pass-head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gw-pass-logo {
    width: 87px; height: 87px; border-radius: 50%; background: #fff; overflow: hidden;
    display: grid; place-items: center; box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .35);
}
.gw-pass-logo img { width: 74%; height: 74%; object-fit: contain; display: block; }
.gw-pass-logo span { font-size: 34px; font-weight: 800; color: #1f1f1f; }
.gw-pass-issuer { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--pass-label-c); }
.gw-pass-title { font-size: clamp(26px, 9cqi, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: var(--pass-ink); }
.gw-pass-head .pass-badge { margin-top: 2px; }
.gw-pass-qr {
    width: min(176px, 62%); margin: 18px auto 0; padding: 12px; border-radius: 16px; background: #fff;
    box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .3); cursor: zoom-in;
}
.gw-pass-qr svg { display: block; width: 100%; height: auto; }
.gw-pass-qr-label { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--pass-ink); }
.gw-pass-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px;
    margin-top: 22px; text-align: left;
}
.gw-pass-grid .pass-field { align-items: flex-start; }
.gw-pass-grid .gw-r { align-items: flex-end; text-align: right; }
.gw-pass-grid .pass-label {
    font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--pass-label-c);
}
.gw-pass-grid .pass-value {
    font-size: 17px; font-weight: 800; overflow-wrap: break-word;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* pás dole cez celú šírku v pomere ako hero obrázok v Google Wallet (1032 × 336) */
.style-wallet.layout-google .gw-pass-strip {
    /* min-height auto: pri 3–4 radoch guličiek pás narastie, nič sa neoreže */
    margin: 22px -20px 0; min-height: auto; aspect-ratio: 1032 / 336;
}
.style-wallet.layout-google .gw-pass-strip .dots { grid-template-columns: repeat(var(--per-row, 5), 40px); gap: 10px 12px; }
/* Pás vo farbe karty: guličky farbou podniku by s ním splynuli — vyplnená
   je vo farbe textu karty, ikonka vo farbe karty (ako hero v Google Wallet). */
.style-wallet.layout-google .gw-pass-strip:not(.has-strip-img) .dot.on {
    background: var(--pass-ink); border-color: var(--pass-ink); color: var(--pass-bg);
}
.style-wallet.layout-google .gw-pass-strip:not(.has-strip-img) .tap-meter span { background: var(--pass-ink); }
@container (max-width: 300px) {
    .style-wallet.layout-google .gw-pass-strip .dots { grid-template-columns: repeat(var(--per-row, 5), 32px); gap: 8px; }
}
/* fotka na pozadí celej karty: farba karty cez ňu, aby text ostal čitateľný */
.style-wallet.layout-google.has-bg-img .points-box::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: color-mix(in srgb, var(--pass-bg) calc(var(--pass-tint, 36%) + 30%), transparent);
}
.style-wallet.layout-google.has-bg-img .points-box > :not(.pass-bg-img, .points-pop, .confetti) { position: relative; z-index: 1; }
/* Vlastný obrázok guličky: bez krúžku; nezískaná je druhý obrázok,
   alebo ten istý sivobiely. */
.dots.has-img .dot:not(.gift), .dots.has-img .dot.on:not(.gift) { border-color: transparent; background: transparent; }
.dot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dot .stamp-off { display: none; }
.dots.has-img .dot:not(.on) .stamp-on { filter: grayscale(1); opacity: .4; }
.dots.has-off .dot:not(.on) .stamp-on { display: none; }
.dots.has-off .dot:not(.on) .stamp-off { display: block; }
.reward-side {
    position: relative; transform: rotateY(180deg); text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
/* Kým odmena nie je, zadná strana nesmie zväčšovať kartu bodov. */
.points-flip:not(.won) .reward-side { position: absolute; inset: 0; visibility: hidden; }
.reward-gift { position: relative; width: 56px; height: 56px; color: var(--accent); }
.reward-gift svg { width: 100%; height: 100%; }
/* Odmena na zadnej strane: darček sa rozbalí a odletia iskry. Animuje
   sa LEN vnútro .reward-gift — vlastná transform animácia na
   .reward-side by prepísala jej rotateY(180deg) (viď vyššie). */
.points-flip.won .reward-gift .g-lid { animation: gift-lid 1s ease .5s 2; }
.points-flip.won .reward-gift .g-bow { animation: gift-bow 1s ease .5s 2; }
.reward-gift::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
    border-radius: 50%; background: var(--accent); opacity: 0;
    /* Token je --star-on-1, nie --star: jediná neznáma premenná zhodí
       celý box-shadow (a iskry by nebolo vidieť). */
    box-shadow: 0 -32px 0 var(--accent), 23px -23px 0 var(--star-on-1),
                32px 0 0 var(--accent), 23px 23px 0 var(--star-on-1),
                0 32px 0 var(--accent), -23px 23px 0 var(--star-on-1),
                -32px 0 0 var(--accent), -23px -23px 0 var(--star-on-1);
}
.points-flip.won .reward-gift::after { animation: gift-sparks 1.1s ease-out .55s both; }
@keyframes gift-sparks {
    0% { opacity: 0; transform: scale(.25); }
    25% { opacity: 1; transform: scale(.7); }
    100% { opacity: 0; transform: scale(1.2); }
}
.reward-title { font-size: 20px; font-weight: 800; color: var(--ink); }
.reward-label { font-size: 17px; font-weight: 800; color: var(--accent); overflow-wrap: anywhere; }
/* platnosť odmeny na zadnej strane karty */
.reward-valid { font-size: 13px; font-weight: 800; color: var(--accent); }
.reward-valid[hidden] { display: none; }
.style-wallet .reward-side .reward-valid { color: var(--pass-label-c); }
.reward-note { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.reward-qr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px; padding: 12px 22px; border-radius: 999px; max-width: 100%;
    background: var(--accent); color: var(--on-accent, #fff); font-size: 15px; font-weight: 800;
    text-decoration: none; line-height: 1.2;
}
.reward-qr-btn svg { flex: none; width: 18px; height: 18px; }
/* Odmena <-> body: hosť sa vie pozrieť na novú kartičku a vrátiť sa. */
.reward-back, .reward-show {
    margin-top: 10px; padding: 6px 10px; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent);
    text-decoration: underline; text-underline-offset: 3px;
}
.reward-show[hidden] { display: none; }
.style-wallet .reward-back { color: var(--pass-ink); }
.dots {
    display: grid; grid-template-columns: repeat(var(--per-row, 5), 36px);
    gap: 10px 12px; justify-content: center;
}
.dot {
    width: 100%; aspect-ratio: 1; border-radius: 50%;
    border: 2px solid var(--line); background: transparent;
    display: grid; place-items: center; color: var(--muted);
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.dot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Ikonka podniku v guličke (loyalty.STAMP_ICONS): kreslená
   v currentColor, takže sa vyfarbením guličky prefarbí s ňou.
   Nezískaná gulička ju len napovie — plná sivá by robila dojem,
   že hosť už bod má, farba okraja (--line) by zas bola nečitateľná. */
.dot svg { width: 68%; height: 68%; }
.dot:not(.on):not(.gift) svg { opacity: .5; }
/* posledná gulička = darček, ktorý hosťa čaká pri hranici */
.dot.gift { border-style: dashed; color: var(--muted); background: transparent; }
.dot.gift svg { width: 78%; height: 78%; }
.dot.gift.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); border-style: solid; }
.dot.gift.shake { animation: gift-shake .5s ease 2; }
/* medziodmena (napr. 4. pečiatka): darček v strede karty, rovnaký vzhľad */
.dot.milestone { border-style: dashed; }
.dot.milestone svg { width: 78%; height: 78%; }
.dot.milestone:not(.on) svg { opacity: 1; }
.dot.milestone.on { border-style: solid; }
.dot.milestone.shake { animation: gift-shake .5s ease 2; }
@keyframes gift-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-9deg) scale(1.06); }
    75% { transform: rotate(9deg) scale(1.06); }
}
/* Darček sa rozbalí: vrchnák sa nadzdvihne a mašľa vyskočí. Časti sú
   <g> v templates/_stamp_icons.html; fill-box drží rovnaký pohyb
   v 23 px guličke aj v 56 px odmene. */
.g-lid, .g-bow { transform-box: fill-box; transform-origin: center; }
@keyframes gift-lid {
    0%, 100% { transform: none; }
    35% { transform: translateY(-2.5px) rotate(-7deg); }
    70% { transform: translateY(-1px) rotate(3deg); }
}
@keyframes gift-bow {
    0%, 100% { transform: none; }
    40% { transform: translateY(-1.5px) scale(1.18); }
}
.dot.gift.shake .g-lid { animation: gift-lid .5s ease 2; }
.dot.gift.shake .g-bow { animation: gift-bow .5s ease 2; }
/* Chýba už len jeden bod (regular.close) — darček sa trikrát zakýve,
   aby hosť videl, že je na dosah. Nekonečná animácia by otravovala. */
@keyframes gift-idle {
    0%, 70%, 100% { transform: rotate(0); }
    78% { transform: rotate(-7deg); }
    86% { transform: rotate(6deg); }
    94% { transform: rotate(-3deg); }
}
.dots.close .dot.gift:not(.on) { animation: gift-idle 2.6s ease 1.4s 3; }
/* konfety — 12 pásikov, bez knižnice */
.confetti { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.confetti i {
    position: absolute; top: 40%; left: 50%; width: 7px; height: 12px; border-radius: 2px;
    background: var(--accent); opacity: 0;
}
.confetti.run i { animation: confetti 1.2s ease-out forwards; }
.confetti i:nth-child(even) { background: var(--star-on-1); }
@keyframes confetti {
    0% { opacity: 1; transform: translate(0, 0) rotate(0); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--turn)); }
}
.dot.pop { animation: dot-pop .45s cubic-bezier(.2, .8, .2, 1) both; }
.dots.full .dot { animation: dot-glow 1.2s ease 2; }
@keyframes dot-pop {
    0% { transform: scale(.2); }
    60% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
@keyframes dot-glow { 50% { transform: scale(1.12); } }
.points-pop {
    position: absolute; left: 50%; top: -15px; transform: translate(-50%, 0);
    padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
    font-size: 15px; font-weight: 800; opacity: 0; pointer-events: none; white-space: nowrap;
}
.points-pop.show { animation: points-pop 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes points-pop {
    0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); }
    15% { opacity: 1; transform: translate(-50%, -4px) scale(1.05); }
    75% { opacity: 1; transform: translate(-50%, -6px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -16px) scale(1); }
}
.points-count { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.points-count b { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
/* členský QR (Body za útratu) — biely podklad, aby ho čítačka prečítala aj v tmavom režime */
.credit-box { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.credit-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tier-off { font-size: 14px; font-weight: 700; color: var(--ink); }
.credit-value { font-size: 34px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.member-qr { width: 168px; margin: 14px auto 0; padding: 10px; border-radius: 14px; background: #fff; }
.member-qr-out { width: 150px; margin-top: 12px; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .35); }
/* členský QR v kartičke (pass.classic_qr = inside) */
.member-qr-in { width: 150px; margin-top: 14px; box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .3); }
/* farba textu klasickej kartičky (pass.classic_text) */
.points-flip.ink-dark:not(.style-wallet) .points-box { --ink: #141213; --muted: rgba(20, 18, 19, .66); }
.points-flip.ink-light:not(.style-wallet) .points-box { --ink: #FCF9F2; --muted: rgba(252, 249, 242, .78); --pass-label-c: rgba(252, 249, 242, .8); }
.member-qr svg { display: block; width: 100%; height: auto; }
/* Členský QR sa ťuknutím zväčší (review/regular.js qrZoom). */
[data-qr-zoom] { cursor: zoom-in; transition: transform .15s ease; -webkit-tap-highlight-color: transparent; }
[data-qr-zoom]:active { transform: scale(.97); }
[data-qr-zoom]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.qr-zoom {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
    background: rgba(0, 0, 0, .72); animation: qrZoomIn .18s ease both; cursor: zoom-out;
    isolation: isolate; overflow: hidden;
}
/* pozadím je rozmazaná fotka karty (obrázok pozadia, inak banner) */
.qr-zoom.has-photo { background: rgba(0, 0, 0, .25); }
.qr-zoom-bg {
    position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px);
    object-fit: cover; z-index: -1; filter: blur(22px) brightness(.62) saturate(1.1);
}
.qr-zoom-card {
    width: min(86vw, 360px); padding: 18px 18px 14px; border-radius: 20px; background: #fff; color: #141213;
    text-align: center; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6); animation: qrZoomCard .22s cubic-bezier(.2, .8, .2, 1) both;
}
.qr-zoom-card svg { display: block; width: 100%; height: auto; }
.qr-zoom-name { margin-top: 12px; font-size: 18px; font-weight: 700; }
.qr-zoom-note { margin-top: 2px; font-size: 13px; font-weight: 600; color: #5b5651; }
.qr-zoom-close {
    margin-top: 12px; padding: 9px 22px; border: 0; border-radius: 999px; background: #141213; color: #fff;
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
@keyframes qrZoomIn { from { opacity: 0; } }
@keyframes qrZoomCard { from { opacity: 0; transform: scale(.9); } }
@media (prefers-reduced-motion: reduce) {
    .qr-zoom, .qr-zoom-card { animation: none; }
    [data-qr-zoom] { transition: none; }
}
.points-status { margin-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.points-status:empty { display: none; }
.points-status.ok { color: var(--ok); }
.tap-meter { margin: 4px auto 0; max-width: 260px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tap-meter span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.quick-rate { margin-top: 22px; animation: fadeUp .4s .12s ease both; }
.quick-rate[hidden] { display: none; }
.quick-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.quick-faces { margin-top: 12px; display: flex; justify-content: space-between; gap: 4px; }
.quick-face {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.quick-emoji {
    position: relative; --face-rest: 1.1;
    /* Šírka podľa stĺpca — viď .emoji-face vyššie. */
    width: min(50px, 100%); aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 28px; background: var(--panel);
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .15s ease, opacity .15s ease;
}
.quick-emoji img { width: 32px; height: 32px; }
.quick-label { font-size: 11px; font-weight: 700; }
.quick-face:active .quick-emoji { transform: scale(.94); }
.quick-face[aria-checked="true"] .quick-emoji { background: var(--emoji-on); transform: scale(1.1); }
.quick-face[aria-checked="true"] .quick-label { color: var(--ink); }
.quick-faces.chosen .quick-face[aria-checked="false"] .quick-emoji { opacity: .45; }
.quick-face:disabled { cursor: default; }
.quick-face:focus-visible { outline: none; }
.quick-face:focus-visible .quick-emoji { outline: 2px solid var(--accent); outline-offset: 2px; }
.quick-follow { margin-top: 16px; animation: fadeUp .3s ease both; }
.quick-follow[hidden] { display: none; }
.quick-follow-title { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.quick-chips { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.quick-chip {
    padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--tap-bg, #fff);
    color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.quick-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.quick-thanks { margin-top: 12px; font-size: 14px; font-weight: 800; color: var(--ok); }
.quick-thanks[hidden] { display: none; }
.quick-skip {
    display: block; margin: 8px auto 0; padding: 4px; border: 0; background: none; font: inherit;
    font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer;
}
.quick-send, .quick-detail {
    display: block; width: 100%; margin-top: 14px; padding: 13px; border-radius: 999px;
    font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.quick-send { border: 0; background: var(--ink); color: var(--bg); }
.quick-send:disabled { opacity: .6; cursor: progress; }
.quick-detail { border: 1.5px solid var(--line); background: transparent; color: var(--ink); margin-top: 18px; }
.quick-detail[hidden], .quick-done[hidden], .quick-error[hidden] { display: none; }
.quick-done {
    margin-top: 10px; padding: 6px; border: 0; background: none; font: inherit;
    font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: underline; cursor: pointer;
}
.quick-error { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--accent); }
.farewell { margin-top: 26px; animation: fadeUp .45s ease both; }
.farewell[hidden] { display: none; }
.farewell-emoji { font-size: 40px; line-height: 1; }
.farewell-emoji img { width: 44px; height: 44px; }
.farewell-title { margin-top: 10px; font-size: 21px; font-weight: 800; color: var(--ink); }
.farewell-sub { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.tap-links {
    margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 6px 14px; font-size: 12.5px; font-weight: 700;
}
.tap-links a { color: var(--accent); text-decoration: none; }
.tap-who { color: var(--muted); font-weight: 600; }
.tap-logout { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
@media (max-width: 360px) { .quick-emoji { width: min(42px, 100%); } .quick-emoji img { width: 26px; height: 26px; } }
@media (prefers-reduced-motion: reduce) {
    .regular-hello, .points-box, .quick-rate, .quick-follow, .farewell,
    .dot.pop, .dot.gift.shake, .dots.full .dot, .points-pop.show,
    .confetti.run i, .dots.close .dot.gift:not(.on),
    .dot.gift.shake .g-lid, .dot.gift.shake .g-bow,
    .points-flip.won .reward-gift .g-lid,
    .points-flip.won .reward-gift .g-bow,
    .points-flip.won .reward-gift::after { animation: none; }
    .points-flip { transition: none; }
    .tap-meter span, .quick-emoji { transition: none; }
}
.otp-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.otp-form[hidden] { display: none; }
.otp-title { font-size: 16px; font-weight: 800; }
.otp-sub { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.otp-form input {
    width: 100%; padding: 12px 15px; border-radius: 14px; border: 1.5px solid var(--line);
    background: #fff; color: var(--ink); text-align: center;
    font-size: 24px; font-weight: 800; letter-spacing: .35em; font-variant-numeric: tabular-nums;
}
.otp-form input:focus { outline: none; border-color: var(--accent); }
.otp-form input.otp-name { font-size: 15px; font-weight: 600; letter-spacing: 0; text-align: left; }
.otp-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 700; }
.otp-links button, .otp-links a { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.otp-links button:disabled { opacity: .5; cursor: default; }
.member-line { margin-top: 12px; font-size: 13px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.member-line[hidden] { display: none; }
.member-line .tap-logout { margin-left: 6px; }
.coupon-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.coupon-form[hidden] { display: none; }
.coupon-form input[type=email] {
    width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line);
    background: #fff; font-size: 15px; color: var(--ink); font-weight: 600;
}
.coupon-form input[type=email]:focus { outline: none; border-color: var(--accent); }
.coupon-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.coupon-consent input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.coupon-btn {
    width: 100%; padding: 13px; border: 0; border-radius: 999px; background: var(--ink); color: #FCF9F2;
    font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.coupon-btn:disabled { opacity: .6; cursor: progress; }
.coupon-btn[hidden] { display: none; }
.coupon-footer { width: 100%; max-width: 340px; }
.coupon-footer[hidden] { display: none; }
.coupon-msg { margin-top: 12px; font-size: 13.5px; font-weight: 700; text-align: center; }
.coupon-msg:empty { display: none; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.err { color: var(--accent); }
.coupon-legal { margin-top: 12px; font-size: 11.5px; color: var(--muted); text-align: center; line-height: 1.45; }
.coupon-legal a { color: inherit; }
/* @font-face {
    font-family: 'TT Norms Pro';
    src: url('/fonts/TTNormsPro-Regular.woff2') format('woff2');
    font-weight: 400;
  }
  @font-face {
    font-family: 'TT Norms Pro';
    src: url('/fonts/TTNormsPro-Medium.woff2') format('woff2');
    font-weight: 500;
  }
  @font-face {
    font-family: 'TT Norms Pro';
    src: url('/fonts/TTNormsPro-Bold.woff2') format('woff2');
    font-weight: 700;
  } */

:root {
    --ink: #342D2D;
    --muted: #6b6b6b;
    --line: #ececec;
    --panel: #f6f6f7;
    --accent: var(--accent-l);
    --accent-dark: var(--accent-dark-l);
    --on-accent: var(--on-accent-l);
    --star-on-1: #ffc93c;
    --star-on-2: #f5a00f;
    /* obrys prázdnej hviezdičky (aj v tmavej téme) */
    --star-line: #f5a623;
    --star-off: #F6F6F7;
    --ok: #15804a;
    /* plochy a doplnkové farby — tmavá téma ich prepíše nižšie */
    --bg: var(--bg-light);
    --surface: #ffffff;
    --panel-hover: #eeeeef;
    --dash: #d4d4d4;
    --hover-soft: #f5f5f5;
    --photo-hover: #fff9f9;
    --placeholder: #9a9a9a;
    --divider: #e4e4e4;
    /* tmavé bloky nižšie prepnú na dark (viď meta color-scheme) */
    color-scheme: light;
    --radius-lg: 22px;
    --radius-md: 16px;
    --ease: cubic-bezier(.34, 1.56, .64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'TT Norms Pro', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #FCF9F2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 0;
}

@media (min-width:768px) {
    body {
        align-items: flex-start;
        padding: 0;
    }
}

.phone {
    width: 100%;
    max-width: 460px;
    background: #FCF9F2;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    position: relative;
    /* náhrada za odstránenú hornú lištu — banner/logo sa nelepia na okraj */
    padding-top: 16px;
    animation: phoneIn .5s var(--ease) both;
}

@media (min-width:768px) {
    .phone {
        max-width: 460px;
        border-radius: 0;
        box-shadow: none;
        padding-top: 22px;
    }
}

@media (min-width:1200px) {
    .phone {
        max-width: 500px;
    }
}

@keyframes phoneIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.help-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.content {
    padding: 0 18px 26px;
    position: relative;
}

/* Brand / restaurant header */
.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0 22px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp .45s ease .05s both;
}

.logo-stack {
    display: flex;
    align-items: center;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    color: var(--on-accent);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.logo-restaurant {
    background: var(--accent);
}

.logo-restaurant.single {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.restaurant-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rating section */
.review-heading-outer {
    opacity: 0;
    animation: fadeUp .45s ease .1s both;
    margin-bottom: 16px;
}

.review-panel {
    background: var(--panel);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    opacity: 0;
    animation: fadeUp .45s ease .16s both;
    transition: box-shadow .2s ease;
}

.review-heading {
    font-size: 21px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}

.review-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
}

.stars-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.star {
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--star-off);
    transition: transform .28s var(--ease), color .18s ease;
    transform-origin: center bottom;
}

.star svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.star.hover {
    transform: scale(1.08);
}

/* Hviezdičky (hlavné aj pri otázkach): prázdna = mäkký oranžový obrys,
   plná = žltý prechod. Obrys vo farbe výplne so zaobleným spojom robí
   rohy mäkkými bez zmeny tvaru. */
.star svg path, .aspect-star svg path {
    fill: transparent;
    stroke: var(--star-line);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: fill .18s ease, stroke .18s ease;
}

.star.active svg path, .star.hover svg path, .aspect-star.active svg path {
    fill: url(#starGradient);
    stroke: url(#starGradient);
    stroke-width: 2.8;
}

.star.pop {
    animation: starPop .45s var(--ease);
}

@keyframes starPop {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.35) rotate(-6deg);
    }

    60% {
        transform: scale(.94) rotate(3deg);
    }

    100% {
        transform: scale(1) rotate(0);
    }
}

.rating-label {
    height: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--star-on-2);
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity .2s ease;
    text-align: center;
}

.rating-label.show {
    opacity: 1;
}

textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
    min-height: 44px;
    resize: none;
    outline: none;
    line-height: 1.4;
    font-family: inherit;
    font-weight: 700;
}

textarea::placeholder {
    color: #9a9a9a;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e4e4e4;
    position: relative;
}

.reviewer {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

/* Visibility dropdown */
.visibility-wrap {
    position: relative;
}

.visibility {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #FCF9F2;
    border: 1px solid var(--line);
    padding: 7px 11px;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}


.visibility.open {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.visibility svg.chev {
    transition: transform .2s ease;
}

.visibility.open svg.chev {
    transform: rotate(180deg);
}

.visibility-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    background: #FCF9F2;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    padding: 6px;
    min-width: 210px;
    transform-origin: bottom right;
    transform: scale(.92) translateY(6px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s var(--ease), opacity .15s ease;
    z-index: 20;
}

.visibility-menu.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.v-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .12s ease;
}


.v-option-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--ink);
}

.v-option-text .v-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.v-option-text .v-desc {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    margin-top: 1px;
    line-height: 1.3;
}

.v-check {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--ink);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .15s ease, transform .15s var(--ease);
}

.v-option.selected .v-check {
    opacity: 1;
    transform: scale(1);
}

/* Add photos */
.add-photos {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 3px dashed #d4d4d4;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    opacity: 0;
    animation: fadeUp .45s ease .18s both;
}


.plus-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid #cfcfcf;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 400;
    transition: transform .2s var(--ease), border-color .15s ease;
}


.add-photos-text .t1 {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.add-photos-text .t2 {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.3;
}

.photo-strip {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.photo-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    animation: thumbIn .3s var(--ease) both;
}

@keyframes thumbIn {
    from {
        opacity: 0;
        transform: scale(.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #FCF9F2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
}

/* Social + more reviews */
.divider-space {
    height: 26px;
}

.social-block {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp .45s ease .24s both;
}

.social-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    cursor: pointer;
    transition: transform .2s var(--ease), background .15s ease, color .15s ease;
}


.social-circle:active {
    transform: translateY(0) scale(.95);
}

.social-circle svg {
    width: 20px;
    height: 20px;
}

.other-reviews {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--panel);
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    opacity: 0;
    animation: fadeUp .45s ease .3s both;
}


/* viacvrstvový formulár: blok sedí v poslednom kroku pod fotkami */
#finishPhotos .other-reviews {
    margin-top: 16px;
    margin-bottom: 0;
}

.other-reviews:active {
    transform: scale(.99);
}

.other-reviews-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.other-reviews-sub {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    margin-top: 2px;
}

.chevron {
    color: var(--muted);
    transition: transform .15s ease;
}


.submit-btn {
    width: 100%;
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    border-radius: 999px;
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background .15s ease, transform .1s ease;
    opacity: 0;
    animation: fadeUp .45s ease .36s both;
}


.submit-btn:active {
    transform: scale(.98);
}

.submit-btn:disabled {
    opacity: .55;
    cursor: default;
}

.submit-btn.shake {
    animation: shake .4s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(3px);
    }
}

.btn-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .15s ease;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #FCF9F2;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}

.submit-btn.loading .btn-label {
    opacity: .85;
}

.submit-btn.loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.error-msg {
    color: var(--accent);
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
    height: 18px;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s var(--ease);
}

.error-msg.show {
    opacity: 1;
    transform: none;
}

/* Success state */
.success-screen {
    position: absolute;
    inset: 0;
    background: #FCF9F2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
    opacity: 0;
    pointer-events: none;
    transform: scale(.97);
    transition: opacity .3s ease, transform .3s var(--ease);
}

.success-screen.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.check-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--ok);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.check-circle svg {
    width: 34px;
    height: 34px;
}

.check-circle svg path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck .4s ease .25s forwards;
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}

.success-sub {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.5;
}

.content.locked {
    filter: blur(1px);
    pointer-events: none;
}

/* Desktop / larger-viewport tuning */
@media (min-width:768px) {
    .content {
        padding: 0 26px 32px;
    }

    .brand-row {
        padding: 16px 0 24px;
        margin-bottom: 24px;
    }

    .logo {
        width: 48px;
        height: 48px;
    }

    .logo-restaurant.single {
        width: 52px;
        height: 52px;
        font-size: 19px;
    }

    .restaurant-name {
        font-size: 19px;
    }

    .review-panel {
        padding: 24px 22px;
    }

    .review-heading {
        font-size: 23px;
    }

    .review-sub {
        font-size: 14.5px;
    }

    .star {
        width: 40px;
        height: 40px;
    }

    .add-photos {
        padding: 18px;
    }

    .social-circle {
        width: 44px;
        height: 44px;
    }

    .submit-btn {
        padding: 16px;
        font-size: 15.5px;
    }
}

/* Hover efekty len tam, kde myš naozaj je. Dotykové zariadenia
   spustia :hover pri ťuknutí a stav tam ostane visieť až do
   ďalšieho tapu — a tento formulár beží takmer výhradne na
   telefónoch (je to cieľ QR kódu / NFC karty). */
@media (hover: hover) and (pointer: fine) {
    .visibility:hover {
        border-color: #cfcfcf;
    }

    .v-option:hover {
        background: #f5f5f5;
    }

    .add-photos:hover {
        border-color: var(--accent);
        background: #fff9f9;
    }

    .add-photos:hover .plus-circle {
        transform: rotate(90deg);
        border-color: var(--accent);
        color: var(--accent);
    }

    .social-circle:hover {
        transform: translateY(-3px);
        background: var(--ink);
        color: #FCF9F2;
    }

    .other-reviews:hover {
        background: #eeeeef;
    }

    .other-reviews:hover .chevron {
        transform: translateX(3px);
    }

    .submit-btn:hover {
        background: var(--accent-dark);
    }
}

/* Redukovaný pohyb: nie "nič sa nedeje", ale žiadne posuny.
   Priehľadnosť ostáva — pomáha pochopiť, že sa niečo zmenilo. */
@media (prefers-reduced-motion: reduce) {
    .phone,
    .brand-row,
    .review-heading-outer,
    .review-panel,
    .add-photos,
    .submit-btn {
        animation: rmFade .3s ease both;
    }

    .star { transition: color .18s ease; }
    .star.pop { animation: none; }
    /* Smajlíky: bez poskokov, pulzu aj výmeny tváre — len prefarbenie krúžku. */
    .react .emoji-face, .react .quick-emoji,
    .react .emoji-face::after, .react .quick-emoji::after,
    .react .emoji-face::before, .react .quick-emoji::before,
    .react .emoji-face img, .react .quick-emoji img { animation: none; }
    .photo-thumb { animation: rmFade .3s ease both; }
    .error-msg { transform: none; transition: opacity .2s ease; }
    .success-screen { transform: none; }
    .success-screen.show { transform: none; }
}

@keyframes rmFade { from { opacity: 0; } to { opacity: 1; } }

/* --- vzhľad formulára: svetlý / tmavý / podľa telefónu hosťa ---
   Pevné farby vyššie prepisujeme premennými až tu, aby pôvodný
   dizajn ostal nedotknutý a tmavá téma bola len výmena tokenov. */
html.theme-dark,
html.theme-auto.device-dark {
    --bg: #141213; --surface: #1e1b1c; --ink: #f4efe8; --muted: #a8a19a;
    --line: #2d292a; --panel: #221f20; --panel-hover: #2a2627; --star-off: #48423f;
    --dash: #3a3536; --hover-soft: #2a2627; --photo-hover: #2a1c1d;
    --placeholder: #7d7670; --divider: #2d292a;
    --accent: var(--accent-d); --accent-dark: var(--accent-dark-d); --on-accent: var(--on-accent-d);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    html.theme-auto:not(.is-preview) {
        --bg: #141213; --surface: #1e1b1c; --ink: #f4efe8; --muted: #a8a19a;
        --line: #2d292a; --panel: #221f20; --panel-hover: #2a2627; --star-off: #48423f;
        --dash: #3a3536; --hover-soft: #2a2627; --photo-hover: #2a1c1d;
        --placeholder: #7d7670; --divider: #2d292a;
        --accent: var(--accent-d); --accent-dark: var(--accent-dark-d); --on-accent: var(--on-accent-d);
        color-scheme: dark;
    }
}
/* Vlastné pozadie podniku platí v každom vzhľade. Pri bielom texte sú
   plochy priesvitné, aby mali odtieň pozadia (nie tmavosivú). */
html.bg-custom { --bg: var(--bg-light); }
html.bg-light-text {
    --surface: rgba(0, 0, 0, .18); --panel: rgba(0, 0, 0, .14); --panel-hover: rgba(0, 0, 0, .22);
    --line: rgba(255, 255, 255, .16); --divider: rgba(255, 255, 255, .16); --dash: rgba(255, 255, 255, .3);
    --hover-soft: rgba(255, 255, 255, .06); --photo-hover: rgba(255, 255, 255, .06);
    --star-off: rgba(255, 255, 255, .22);
    --muted: rgba(255, 255, 255, .72); --placeholder: rgba(255, 255, 255, .5);
}
/* Čierny text: panel hodnotenia, kartička bodov aj polia sú svetlejší
   odtieň pozadia namiesto bielej. QR kód ostáva na bielom (.member-qr). */
html.bg-custom:not(.bg-light-text) {
    --surface: rgba(255, 255, 255, .38); --panel: rgba(255, 255, 255, .32); --panel-hover: rgba(255, 255, 255, .48);
    --line: rgba(0, 0, 0, .12); --divider: rgba(0, 0, 0, .12); --dash: rgba(0, 0, 0, .25);
    --hover-soft: rgba(0, 0, 0, .04); --photo-hover: rgba(0, 0, 0, .04);
    --star-off: rgba(0, 0, 0, .1);
    --muted: rgba(0, 0, 0, .58); --placeholder: rgba(0, 0, 0, .42);
}
/* Farba textu musí ísť z tokenu — bez nej prvky bez vlastnej farby
   ostali v tmavom režime čierne na tmavom pozadí. */
body, .phone, .success-screen { background: var(--bg); color: var(--ink); }
button, input, textarea, select { color: inherit; }
.visibility, .visibility-menu { background: var(--bg); }
textarea::placeholder { color: var(--placeholder); }
.panel-footer { border-top-color: var(--divider); }
.add-photos, .plus-circle { border-color: var(--dash); }
.visibility svg.chev path { stroke: var(--ink); }
.chevron svg path { stroke: var(--muted); }
.coupon-ticket, .coupon-form input[type=email], .otp-form input { background: var(--surface); }
.points-box, .reward-side, .quick-chip { --tap-bg: var(--surface); }
.coupon-btn { color: var(--bg); }
.social-circle[hidden], .social-block[hidden], .other-reviews[hidden],
.success-cta[hidden], .copy-hint[hidden] { display: none !important; }

/* Tlačidlo Odoslať prilepené dole pri posúvaní. .phone mala overflow:
   hidden, čo vytvorí vlastný scroll kontajner a sticky by nefungovalo
   (fixed zas nejde — .phone má po animácii transform). clip orezáva
   rovnako, ale kontajner nevytvára. Musí byť až tu, za pravidlom .phone. */
.phone { overflow: clip; }
.submit-bar {
    position: sticky; bottom: 0; z-index: 15;
    margin: 0 -18px; padding: 16px 18px calc(8px + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, transparent 0, var(--bg) 16px);
}
@media (min-width:768px) {
    .submit-bar { margin: 0 -26px; padding-left: 26px; padding-right: 26px; }
}
@media (hover: hover) and (pointer: fine) {
    .visibility:hover { border-color: var(--dash); }
    .v-option:hover { background: var(--hover-soft); }
    .add-photos:hover { background: var(--photo-hover); border-color: var(--accent); }
    .social-circle:hover { color: var(--bg); }
    .other-reviews:hover { background: var(--panel-hover); }
}
/* Na skutočných mobiloch je formulár o 10 % väčší — písmo, tlačidlá aj
   medzery naraz, pomery ostávajú. Percentuálne šírky zoom nezväčšuje,
   takže nič nepretečie. Náhľad v nastaveniach (html.is-preview) ostáva
   v pôvodnej mierke. Prehliadač bez podpory zoom zobrazí formulár ako doteraz. */
@media (max-width: 600px) {
    html:not(.is-preview) .phone { zoom: 1.1; }
}
