/*
 * Page composition: one rhythm for every public page.
 *   page-stack   sections separated by --section-gap
 *   page-head    eyebrow, H1, lead, actions (right of the title on desktop)
 *   section      section-head (h2 + quiet "Vše →") then content, --inner-gap apart
 *   hero         the only place with atmosphere: ember glow, faint smoke, the Kvádr emblem
 */
:root {
    --section-gap: 40px;
    --inner-gap: 14px;
}
@media (min-width: 900px) {
    :root {
        --section-gap: 56px;
        --inner-gap: 16px;
    }
}

.page-stack { display: flex; flex-direction: column; gap: var(--section-gap); min-width: 0; }
.page-stack > * { min-width: 0; }
.hero + .page-stack { padding-top: var(--space-5); }
.section { display: flex; flex-direction: column; gap: var(--inner-gap); min-width: 0; }
.section > :where(.btn, .chip) { align-self: flex-start; }
.section-lead { margin-top: calc(var(--inner-gap) * -0.5); color: var(--text-2); font-size: var(--step--1); }

/* ---------- Page header ---------- */
.page-head { display: grid; gap: var(--space-4); }
.page-head__main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4) var(--space-6); }
.page-head__text { display: grid; gap: var(--space-2); flex: 1 1 320px; min-width: 0; }
.page-head h1 { font-size: var(--step-4); overflow-wrap: anywhere; }
.page-head__lead { max-width: 60ch; color: var(--text-2); font-size: var(--step-1); line-height: 1.45; }
.page-head__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 559px) { .page-head h1 { font-size: var(--step-3); } .page-head__lead { font-size: var(--step-0); } }
/* Phone first: header actions (view switch, subscribe, yearbook) span the column. */
@media (max-width: 699px) { .page-head__actions { flex: 1 1 100%; } .page-head__actions > * { flex: 1 1 auto; } }

/* ---------- Section header ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); min-width: 0; }
.section-head :is(h2, h3) { font-size: var(--step-2); min-width: 0; }
.section-head__title { display: inline-flex; align-items: center; gap: var(--space-2); }
.section-head__title .icon { flex: none; width: 22px; height: 22px; color: var(--accent-2); }
.section-head h3 { font-size: var(--step-1); }
.section-head__icon { width: 0.9em; height: 0.9em; margin-right: 0.35em; vertical-align: -0.08em; color: var(--accent-2); }
.section-head__more { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-block: -12px; color: var(--text-2); font-size: var(--step--1); font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-head__more:hover { color: var(--accent-2); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: calc(-1 * var(--space-5));
    border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
    background:
        radial-gradient(70% 90% at 8% 100%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%),
        radial-gradient(45% 60% at 92% 20%, color-mix(in oklab, var(--accent-2) 9%, transparent), transparent 70%),
        linear-gradient(180deg, var(--bg-raised), var(--bg));
}
/* A faint drifting smoke layer: soft gradients, no blur filter; it drifts only on desktop and never with reduced motion. */
.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(30% 22% at 30% 40%, color-mix(in oklab, var(--text) 5%, transparent), transparent),
        radial-gradient(26% 18% at 62% 62%, color-mix(in oklab, var(--text) 4%, transparent), transparent),
        radial-gradient(22% 16% at 78% 30%, color-mix(in oklab, var(--text) 3.5%, transparent), transparent);
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
    .hero::before { animation: hero-smoke 26s ease-in-out infinite alternate; }
}
@keyframes hero-smoke { from { translate: -2% 1%; } to { translate: 3% -3%; } }

.hero__inner { position: relative; display: grid; gap: var(--space-6); padding-block: var(--space-6) var(--space-7); }
.hero__emblem {
    position: absolute;
    z-index: -1;
    right: -56px;
    top: 8px;
    width: 230px;
    height: 230px;
    color: var(--text-3);
    opacity: 0.09;
    pointer-events: none;
}
@media (min-width: 900px) {
    .hero__inner { padding-block: 72px 80px; }
    .hero__inner--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: var(--space-7); }
    .hero__emblem { right: 2%; top: 50%; translate: 0 -50%; width: 400px; height: 400px; opacity: 0.12; filter: drop-shadow(0 0 60px var(--glow)); }
    .hero__inner--split .hero__emblem { right: -80px; width: 560px; height: 560px; opacity: 0.07; }
}

.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; max-width: 40rem; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.hero--live .hero__eyebrow { color: var(--accent-2); }
.hero__title { font-size: var(--step-4); line-height: 1.02; overflow-wrap: anywhere; }
.hero__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--space-3); font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1; }
.hero__date b { font-size: var(--step-4); color: var(--accent-2); font-weight: inherit; }
.hero__date span { font-size: var(--step-2); color: var(--text); }
.hero__date em { font-family: var(--font-body); font-style: normal; font-size: var(--step--1); font-weight: 700; letter-spacing: 0; color: var(--text-3); }
.hero__date + .hero__title { font-size: var(--step-3); }
.hero__meta { color: var(--text-2); font-weight: 600; }
.hero__lead { max-width: 46ch; color: var(--text-2); font-size: var(--step-1); line-height: 1.45; }
.hero__spots { width: min(100%, 320px); }
.hero__spots b { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.hero__actions:empty { display: none; }
.hero__note { display: flex; align-items: center; gap: var(--space-2); max-width: 44ch; color: var(--text-3); font-size: var(--step--1); }
.hero__note .icon { flex: none; color: var(--accent-2); }
.hero__signup { height: var(--tap); padding: 0 var(--space-4); font-size: var(--step-0); text-decoration: none; }
@media (max-width: 419px) {
    .hero__actions > .btn, .hero__actions > .hero__signup { flex: 1 1 auto; justify-content: center; }
}

/* Live dot: the one moving accent on the page. */
.live-dot { position: relative; flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--accent); animation: live-ring 1.8s var(--ease-out) infinite; }
@keyframes live-ring { from { scale: 1; opacity: 0.9; } to { scale: 2.6; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; opacity: 0; } }

/* What is on the table tonight: covers and brands. */
.hero-card {
    display: grid;
    gap: var(--space-3);
    align-content: start;
    min-width: 0;
    padding: var(--space-5);
    border: 1px solid color-mix(in oklab, var(--line-strong) 70%, transparent);
    border-radius: var(--radius-l);
    background: color-mix(in oklab, var(--bg-raised) 88%, transparent);
    box-shadow: var(--shadow-2);
}
.hero-card__covers { display: flex; }
.hero-card__covers img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-m); border: 2px solid var(--bg-raised); background: var(--surface); }
.hero-card__covers img + img { margin-left: -14px; }
.hero-card__brands { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.hero-card__brands li { display: grid; gap: 2px; min-width: 0; }
.hero-card__brands b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); letter-spacing: var(--display-tracking); line-height: 1.1; }
.hero-card__brands span { color: var(--text-2); font-size: var(--step--1); overflow-wrap: anywhere; }
.hero-card__brands em { color: var(--text-3); font-size: var(--step--1); font-style: normal; }
.hero-card__covers img.hero-card__logo { object-fit: contain; padding: 6px; background: var(--surface-2); }

/* Event page "Na programu": one row per brand, logo on the left. */
.lineup-brand { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.lineup-brand__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-m); object-fit: contain; padding: 4px; background: var(--surface); border: 1px solid var(--line); }
.lineup-brand__logo svg { width: 24px; height: 24px; }
.lineup-brand h3 a { color: inherit; text-decoration: none; }
.lineup-brand h3 a:hover { text-decoration: underline; }
.lineup-brand__surprise { --chip-bg: transparent; border: 1px dashed var(--line-strong); }
/* Event page "Na stole": a dish per row, photo (or a plate on its own hue) left, the guest's coals under it. */
.dishes__title { display: flex; align-items: center; gap: var(--space-2); font-size: var(--step-1); }
.dishes__title .icon { color: var(--accent-2); }
.dishes__count { margin-left: auto; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: var(--step--1); font-weight: 800; }
.dish-list { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.dish { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-2) var(--space-3); align-items: start; }
.dish + .dish { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.dish__media { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: var(--radius-m); background: var(--bg-sunken); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; }
.dish__media--art { color: oklch(0.92 0.06 var(--hue)); background: radial-gradient(90% 120% at 30% 20%, oklch(0.48 0.1 var(--hue)), oklch(0.28 0.06 var(--hue))); }
.dish__media--art .icon { width: 32px; height: 32px; }
.dish__body { display: grid; align-content: start; gap: 4px; min-width: 0; padding-top: 2px; }
.dish__name { font-size: var(--step-0); line-height: 1.2; overflow-wrap: anywhere; }
.dish__note { color: var(--text-2); font-size: var(--step--1); line-height: 1.4; overflow-wrap: anywhere; }
.dish__score { display: flex; align-items: center; min-height: 22px; }
.dish__rate { grid-column: 1 / -1; }
.dish__rate .coal-input { background: var(--bg-sunken); }
.dish--dessert { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
.dish__kind { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 800; }
.dish__heart { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap, 44px); padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-sunken); color: var(--text-2); font: inherit; font-weight: 800; cursor: pointer; transition: color var(--dur-2), background var(--dur-2), border-color var(--dur-2); }
.dish__heart .icon { width: 22px; height: 22px; }
.dish__heart--closed { cursor: default; --icon-fill: currentColor; color: #ff5a6e; }
.dish__heart[aria-pressed="true"] { --icon-fill: currentColor; color: #ff5a6e; border-color: color-mix(in oklab, #ff5a6e 55%, transparent); background: color-mix(in oklab, #ff5a6e 14%, transparent); }
.dish__heart[aria-pressed="true"] .icon { animation: dish-heart var(--dur-3) var(--ease-out); }
@keyframes dish-heart { 40% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .dish__heart[aria-pressed="true"] .icon { animation: none; } }
.report-dish__likes { --icon-fill: currentColor; color: #ff5a6e; }
.dish-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); }
.hero-card__secret { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-3); line-height: 1; color: var(--accent-2); }

/* ---------- Event rows with date tiles ---------- */
.event-list { display: grid; gap: var(--space-2); }
.event-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--bg-raised);
    color: inherit;
    text-decoration: none;
    transition: border-color var(--dur-2), background var(--dur-2);
}
.event-row:hover { color: inherit; border-color: var(--line-strong); background: var(--surface); }
.event-row--live { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.event-row__text { display: grid; gap: 2px; min-width: 0; }
.event-row__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); letter-spacing: var(--display-tracking); line-height: 1.15; overflow-wrap: anywhere; }
.event-row__meta { color: var(--text-3); font-size: var(--step--1); font-weight: 600; }
.event-row__spots { color: var(--accent-2); white-space: nowrap; }
.event-row__mine { color: var(--ok); white-space: nowrap; }
.event-row__mine--wait { color: var(--accent-2); }
.event-row__go { width: 20px; height: 20px; color: var(--text-3); }
.event-row:hover .event-row__go { color: var(--text); }

.date-tile {
    display: grid;
    justify-items: center;
    align-content: center;
    width: 58px;
    min-height: 64px;
    padding: 6px 0;
    border-radius: var(--radius-m);
    background: var(--surface);
    border: 1px solid var(--line);
    line-height: 1;
    text-align: center;
}
.date-tile small { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.date-tile b { margin: 3px 0 2px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; letter-spacing: var(--display-tracking); color: var(--text); }
.date-tile span { font-size: 12px; font-weight: 700; color: var(--text-2); }
.date-tile--live { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
.date-tile--live b { color: var(--accent-2); }

.duo { display: grid; gap: var(--section-gap); }
@media (min-width: 900px) { .duo--two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; } }

/* Cards in a row you swipe on phones, a grid on desktop. Full-bleed scroller so cards peek off the edge. */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(84%, 320px);
    gap: var(--space-3);
    margin-inline: calc(-1 * var(--gutter));
    padding: 2px var(--gutter) var(--space-3);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 900px) {
    .rail { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(max(220px, (100% - 2 * var(--space-3)) / 3), 1fr)); margin-inline: 0; padding: 0; overflow: visible; scroll-snap-type: none; }
}

/* ---------- Toolbar (search + filters) ---------- */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); align-items: center; }
.toolbar > .search:only-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
    .toolbar { grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: center; }
    .toolbar .brand-filter .dropdown { max-width: none; }
}
.toolbar .brand-filter { display: block; }
.toolbar .dropdown { gap: 0; }
.toolbar .brand-filter .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Detail pages without a cover: a score card beside the text on desktop. */
.detail-split { display: grid; gap: var(--space-5); }
.detail-split > .club-card, .detail-split > .detail-split__rate { order: -1; }
@media (min-width: 900px) {
    .detail-split { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: var(--space-7); }
    .detail-split > .club-card { order: 0; grid-column: 2; grid-row: 1; }
    .detail-split > :not(.club-card) { grid-column: 1; grid-row: 1; }
    .detail-split > .detail-split__rate { order: 0; grid-column: 2; grid-row: 1; }
}

/* Mix composition: share of each tobacco as a thin ember bar. */
.mix-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.mix-parts li { display: grid; grid-template-columns: auto 4.5ch minmax(0, 1fr); gap: 6px var(--space-3); align-items: center; }
.mix-parts__pic { grid-row: 1 / span 2; }
.mix-parts .mix-parts__pic { --tile: 48px; }
.mix-parts b { color: var(--accent-2); }
.mix-parts a { color: var(--text); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.mix-parts a:hover { color: var(--accent-2); }
.mix-parts__bar { grid-column: 2 / -1; height: 6px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in oklab, var(--accent-hi, var(--accent-2)) 45%, var(--surface-2)), color-mix(in oklab, var(--accent-hi, var(--accent-2)) 70%, var(--surface-2))) 0 0 / calc(var(--pct) * 1%) 100% no-repeat, var(--surface-2); }

@media (min-width: 900px) { .event-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); } }
.event-list--past .event-row { background: transparent; }
.event-list--past .date-tile { background: transparent; }

/* Leaderboards side by side on desktop. */
.board-grid { display: grid; gap: var(--section-gap); }
@media (min-width: 900px) {
    .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-6); }
    .board-grid > .section--wide { grid-column: 1 / -1; }
    .section--wide > .board { grid-auto-flow: column; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), auto); column-gap: var(--space-6); }
}
/* Feed card: author and tools on one line, tags ellipsize instead of wrapping the card wider. */
.feed-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.feed-card__top .namechip { min-width: 0; }
.feed-card__top .namechip > span { min-width: 0; }
.feed-card__author { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-card__tools { display: flex; gap: var(--space-1); flex-shrink: 0; }
.feed-card__tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.feed-card__tags .chip { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 26px; }
.feed-card__tags .chip svg { vertical-align: -2px; margin-right: 2px; }
.feed-card__tags .tag-chip { display: inline-flex; align-items: center; gap: 6px; padding-left: 3px; }
.tag-chip .cover-tile { --tile: 22px; padding: 1px; border-radius: 4px; box-shadow: none; }
.tag-chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* Přidat fotku: every row shrinks to the sheet, long names ellipsize. */
.photo-form { display: grid; gap: var(--space-4); min-width: 0; }
.photo-form > *, .photo-form .field > * { min-width: 0; }
.photo-form__drop { gap: var(--space-2); padding: var(--space-5) var(--space-4); }
.photo-form__drop svg { width: 32px; height: 32px; }
.photo-form__preview { position: relative; display: grid; place-items: center; margin: 0; border-radius: var(--radius-m); background: var(--bg-sunken); overflow: hidden; }
.photo-form__preview .upload-preview { display: block; width: 100%; max-height: min(240px, 32dvh); object-fit: contain; border-radius: 0; }
.photo-form__change { position: absolute; top: var(--space-2); right: var(--space-2); border-color: transparent; background: rgb(0 0 0 / 0.55); color: #fff; backdrop-filter: blur(4px); cursor: pointer; }
.photo-form__more { display: grid; gap: var(--space-3); }
.photo-form .accordion summary svg { width: 18px; height: 18px; color: var(--accent-2); }
.label--icon { display: inline-flex; align-items: center; gap: 6px; }
.label--icon svg { width: 16px; height: 16px; color: var(--accent-2); }
.pick { display: grid; gap: var(--space-2); min-width: 0; scroll-margin-top: var(--space-2); }
.pick > * { min-width: 0; }
.pick__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.pick__count { font-size: var(--step--1); }
.pick__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pick-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 38px; padding: 0 2px 0 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); color: var(--text); font-size: var(--step--1); font-weight: 700; }
.pick-chip__pic:empty { display: none; }
.pick-chip__pic .cover-tile { --tile: 28px; padding: 2px; border-radius: 6px; box-shadow: none; }
.pick-chip__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-chip__x { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--text-3); cursor: pointer; }
.pick-chip__x:hover, .pick-chip__x:focus-visible { background: var(--surface-2); color: var(--text); }
.pick__search { position: relative; }
.pick__search > svg { position: absolute; top: 50%; left: 14px; width: 18px; height: 18px; translate: 0 -50%; color: var(--text-3); pointer-events: none; }
.pick__search .input { padding-left: 42px; }
/* With the list open the field stays in sight while the sheet scrolls through the options. */
.pick--open .pick__search { position: sticky; top: 0; z-index: 2; padding-block: 4px; background: var(--bg-raised); }
.pick__scope { justify-self: start; cursor: pointer; }
.pick__scope > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pick__scope[aria-pressed="true"] { --chip-fg: var(--accent-2); --chip-bg: var(--accent-soft); }
.pick__scope[aria-pressed="false"] { text-decoration: line-through; }
.pick__list { display: grid; gap: 2px; margin: 0; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg-sunken); list-style: none; }
.pick__list > li { min-width: 0; }
.pick-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); width: 100%; min-height: 52px; padding: 6px 8px; border: 0; border-radius: var(--radius-s); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pick-option .cover-tile { --tile: 40px; padding: 3px; }
.pick-option__text { display: grid; min-width: 0; line-height: 1.3; }
.pick-option__text b, .pick-option__text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-option__text b { color: var(--text); font-weight: 700; }
.pick-option__text small { color: var(--text-3); font-size: var(--step--1); }
.pick-option__mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--line-strong); border-radius: 50%; color: transparent; }
.pick-option__mark svg { width: 14px; height: 14px; }
.pick-option:hover, .pick-option:focus-visible { background: var(--surface-2); outline: none; }
.pick-option[aria-selected="true"] { background: var(--accent-soft); }
.pick-option[aria-selected="true"] .pick-option__mark { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.pick-option--brand { box-shadow: inset 3px 0 0 var(--accent); }
.pick-option--brand .pick-option__mark { border-style: dashed; color: var(--accent-2); }
.pick-option--past .cover-tile { filter: grayscale(0.6); opacity: 0.8; }
.pick-more, .pick-empty { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--text-3); font-size: var(--step--1); }
.pick-more svg, .pick-empty svg { width: 16px; height: 16px; flex: none; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-4); border: 0; background: rgb(0 0 0 / 0.92); color: rgb(255 255 255 / 0.92); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; gap: var(--space-3); }
.lightbox::backdrop { background: rgb(0 0 0 / 0.8); }
.lightbox__frame { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.lightbox__frame > .loading-veil { inset: 0; align-items: center; padding: 0; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 6rem); object-fit: contain; border-radius: var(--radius-m); }
.lightbox__caption { margin: 0; text-align: center; font-size: var(--step--1); }
.lightbox__caption:empty { display: none; }
.lightbox__close { position: absolute; top: var(--space-3); right: var(--space-3); z-index: 1; }
.lightbox__bar { display: flex; align-items: center; justify-content: center; gap: var(--space-3); width: 100%; min-height: 48px; }
.lightbox__step { flex: none; }
.lightbox__count { opacity: 0.7; }
.lightbox__img { touch-action: pinch-zoom; }
@media (min-width: 900px) { .lightbox__img { max-width: min(1100px, 92vw); } }
/* A picture that opens big: the whole tile is the button. */
.zoom { display: block; cursor: zoom-in; border-radius: var(--radius-l); }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail-head .zoom { flex: none; }
.mix-parts__zoom { grid-row: 1 / span 2; }
.guide-more { margin-top: var(--space-5); }

/* Profil: greeting with the way to Nastavení, rank and Žár in one quiet panel. */
.me-head { display: grid; gap: var(--space-4); }
.me-head__panel { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-raised); }
.me-head__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.me-head__how { margin-left: calc(-1 * var(--space-4)); }
.page-stack > .segmented, .stack > .segmented { align-self: stretch; }
@media (min-width: 700px) { .page-stack > .segmented, .stack > .segmented { align-self: flex-start; width: max-content; max-width: 100%; overflow-x: auto; } }
.segmented__link { white-space: nowrap; justify-content: center; }
.segmented--scroll-links { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fade-strip[data-more-end] { mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.fade-strip[data-more-start] { mask-image: linear-gradient(to right, transparent, #000 40px); }
.fade-strip[data-more-start][data-more-end] { mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.strength-step { display: grid; justify-items: center; gap: 2px; }
.strength-step small { font-size: 11px; font-weight: 700; line-height: 1; }
.segmented--scroll label { min-height: 52px; }
.taste-chip--group { border-color: var(--line-strong); font-weight: 800; }
.taste-chip--group:not(:has(input:checked)) { background: linear-gradient(135deg, color-mix(in oklab, var(--tone, var(--accent)) 26%, var(--bg-raised)), var(--bg-raised)); }
.taste-chip--group svg { width: 16px; height: 16px; }
.taste-chip--taste:not(:has(input:checked)) { --chip-bg: color-mix(in oklab, var(--tone, var(--surface-2)) 14%, var(--bg-raised)); }
.tobacco-tile__foot .tag { white-space: nowrap; }
.tag--more { color: var(--text-3); }
.chip__count { margin-inline-start: 4px; font-size: 11px; color: var(--text-3); }
.world-filters__sort .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.place-filter { align-self: stretch; }
.place-filter .segmented__link { gap: var(--space-2); padding: 0 var(--space-3); }
.place-filter .segmented__link svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 699px) {
    .place-filter { display: flex; width: auto; margin-inline: calc(-1 * var(--gutter)); border-inline: 0; border-radius: 0; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
    .place-filter .segmented__link { flex: none; min-height: 40px; padding: 0 var(--space-3); font-size: var(--step--1); }
    .place-filter .segmented__link svg { width: 16px; height: 16px; }
}
.world-filters__group legend.label { display: inline-flex; align-items: center; gap: var(--space-2); }
.world-filters__group legend.label svg { width: 16px; height: 16px; }

/* Profil on wide screens: tabs in the main column, Moje akce and Historie žáru beside them. */
.me-page { max-width: 560px; }
.me-layout { display: grid; gap: var(--space-6); }
.me-layout__main, .me-layout__side { min-width: 0; }
@media (min-width: 1024px) {
    .me-page { max-width: var(--content); }
    .me-page > .me-head { max-width: 720px; }
    .me-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}
.zar-summary__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); }
.zar-summary__text { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.zar-summary__text .rank { max-width: 100%; white-space: nowrap; }
@media (max-width: 419px) {
    .zar-summary__main { grid-template-columns: auto minmax(0, 1fr); }
    .zar-summary__main .zar-summary__total { grid-column: 2; grid-row: 1; justify-self: end; }
    .zar-summary__text { grid-column: 1 / -1; grid-row: 2; }
}
.hall-firsts { display: grid; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.hall-first { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-raised); }
.hall-first__emblem, .hall-first__emblem .emblem { width: 40px; height: 40px; }
.hall-first__who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hall-entry { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.hall-entry > * { max-width: 100%; overflow-wrap: anywhere; }
.hall-entry > .rank { overflow-wrap: normal; }
.hall-badge { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-2); min-width: 0; }

/* Leaderboard rows carry an empty spacer from an older 4-column grid; the 3-column grid needs no spacer. */
.board li > span:empty { display: none; }
.event-row__meta .live-dot { margin-right: 6px; vertical-align: 1px; }
.event-row__price { white-space: nowrap; }
.event-price { align-self: center; white-space: nowrap; }

/* Profil: account invitation, Moje akce, then the journal tabs. */
.me-section__title { font-size: var(--step-1); }
.me-save { display: grid; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: var(--radius-l); background: color-mix(in oklab, var(--accent) 7%, var(--bg-raised)); }
.me-save h2 { font-size: var(--step-1); }
.me-save__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); color: var(--text-2); font-size: var(--step--1); }
.me-save__perks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); align-items: start; }
.me-save__perks svg { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-2); }
.me-past > summary { cursor: pointer; color: var(--text-2); padding-block: var(--space-2); }
.me-past[open] > summary { margin-bottom: var(--space-2); }
.more { display: flex; justify-content: center; }
.journal { display: grid; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.journal-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-raised); }
.journal-row__main { display: grid; gap: 2px; min-width: 0; }
.journal-row__main a { overflow-wrap: anywhere; }
.journal-row__brand { font-size: 12px; font-weight: 700; color: var(--text-3); }
.journal-row__meta { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); }
.journal-row__meta span { display: inline-flex; align-items: center; gap: 4px; }
.journal-row__meta .icon { width: 14px; height: 14px; color: var(--text-3); }
.more .btn { white-space: nowrap; }
.signup-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.signup-item { display: grid; gap: var(--space-2); min-width: 0; }
.signup-item__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); }
.signup-item__status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); min-width: 0; }
.calendar-sync__buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Profil header tools; button pairs and event page actions share the row evenly on phones. */
.row--fill > .btn { flex: 1 1 10rem; justify-content: center; }
.me-head__top > .page-head__text { min-width: 0; }
.me-head__tools { display: flex; gap: var(--space-2); flex-shrink: 0; }
.profile-preview { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); border: 1px dashed var(--line); border-radius: var(--radius-m); }
.profile-preview .namechip { min-width: 0; }
.profile-preview .namechip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-preview .btn { flex-shrink: 0; }
.zar-groups { display: grid; gap: var(--space-4); }
.zar-groups > .btn { justify-self: start; }
.zar-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-1); border-bottom: 1px solid var(--line-strong); }
.zar-group__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zar-group__sum { flex-shrink: 0; color: var(--accent-2); }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.history-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); color: inherit; text-decoration: none; }
.history-row .date-tile { width: 44px; min-height: 48px; padding: 3px 0; }
.history-row__text { display: grid; gap: 2px; min-width: 0; }
.history-row__text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.history-row__chips { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.history-row__chips .chip { white-space: nowrap; }
.guest-head { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.guest-head > span { min-width: 0; overflow-wrap: anywhere; }
.event-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--space-2); }
@media (min-width: 700px) { .event-actions { display: flex; flex-wrap: wrap; } }

/* Error pages (404, 403, 500...): the empty-state look with a glowing status code. */
.error-page { min-height: calc(100svh - 220px); display: grid; align-content: center; }
.error-page .empty { gap: var(--space-4); }
.error-page h1 { font-size: var(--step-3); }
.error-page .error-page__code { margin: 0 0 calc(-1 * var(--space-4)); font-family: var(--font-display); font-weight: 800; font-size: clamp(4.5rem, 22vw, 8rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--accent-2); text-shadow: 0 0 2.2rem color-mix(in oklab, var(--accent) 45%, transparent); }
.error-page__actions { justify-content: center; }

/* World encyclopedia (/svet, admin "Tabáky ze světa"): search, a collapsible filter panel, count and sort. */
.world-filters { display: grid; gap: var(--space-3); }
.world-filters__panel summary { gap: var(--space-2); }
.world-filters__panel summary svg { width: 18px; height: 18px; color: var(--text-3); }
.world-filters__group { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-2); min-width: 0; }
.world-filters__chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.world-filters__kind label > span { display: inline-flex; align-items: center; gap: 6px; }
.world-filters__kind svg { width: 18px; height: 18px; }.chip-check { height: 36px; cursor: pointer; position: relative; }
.chip-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-check:has(input:checked) { --chip-fg: var(--accent-2); --chip-bg: var(--accent-soft); border-color: var(--accent); }
.chip-check[data-tone] { --chip-fg: color-mix(in oklab, var(--tone) 58%, var(--tone-ink)); border-color: color-mix(in oklab, var(--tone) 35%, transparent); }
.chip-check[data-tone]:has(input:checked) { --chip-fg: color-mix(in oklab, var(--tone) 58%, var(--tone-ink)); --chip-bg: color-mix(in oklab, var(--tone) 30%, var(--bg-raised)); border-color: var(--tone); }
[data-theme="light"] .chip-check[data-tone]:has(input:checked) { --chip-fg: color-mix(in oklab, var(--tone) 48%, var(--tone-ink)); }
[data-theme="light"] .chip-check[data-tone] { --chip-fg: color-mix(in oklab, var(--tone) 48%, var(--tone-ink)); }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.segmented--radio { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
.segmented--radio label { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 var(--space-1); border-radius: inherit; color: var(--text-2); font-weight: 700; white-space: nowrap; cursor: pointer; }
.segmented--scroll { grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
.segmented--scroll label { padding: 0 var(--space-3); }
.segmented--radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented--radio label:has(input:checked) { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-1); }
.segmented--radio label:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.world-filters__active { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.world-filters__active .chip { height: 32px; text-decoration: none; }
.world-filters__active .chip svg { width: 14px; height: 14px; }
.world-filters__bar { display: grid; grid-auto-flow: column; grid-template-columns: minmax(0, 1fr); grid-auto-columns: auto; align-items: center; gap: var(--space-2) var(--space-3); }
.world-filters__bar > a { justify-self: end; }
.world-filters__sort select { min-height: 40px; padding-block: 0; }
@media (min-width: 700px) {
    .world-filters__bar { grid-template-columns: auto auto 1fr; }
    .world-filters__bar > a { grid-column: auto; justify-self: end; }
    .segmented--radio { width: max-content; }
}

/* Admin "Tabáky ze světa": one world flavour per row; on phones the action goes under the text. */
.world-entry { display: grid; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); }
.world-entry__main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; }
.world-entry__tools { display: flex; gap: 2px; }
.world-entry__main .cover-tile { width: 56px; height: 56px; }
.world-entry__text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.world-entry__title { font-weight: 800; color: var(--text); text-decoration: none; }
.world-entry__title:hover { color: var(--accent-2); text-decoration: underline; }
.world-entry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.world-entry__actions form { flex: 1 1 auto; display: flex; }
.world-entry__actions .btn { flex: 1 1 auto; justify-content: center; }
.place-form { display: flex; gap: var(--space-2); }
.place-form .btn { flex: 1 1 0; justify-content: center; white-space: nowrap; }
.world-entry__actions .place-form { flex-basis: 100%; }
@media (min-width: 700px) {
    .world-entry { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .world-entry__actions { justify-content: flex-end; }
    .world-entry__actions form, .world-entry__actions .btn { flex: none; }
    .world-entry__actions .place-form { flex-basis: auto; }
}

/* Infinite scroll: the loader under a list while the next page comes */
.infinite-more { display: flex; justify-content: center; padding: var(--space-3) 0; }

/* ---------- Event report ---------- */
/* minmax(0, 1fr): the photo strip scrolls inside the card instead of widening it. */
.report__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
.report__body > * { min-width: 0; }
.report__title { font-size: var(--step-3); }
.report__intro { font-size: var(--step-0); line-height: 1.6; }
.report__photo { max-width: none; }
.report__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .report__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.report__stats .stat b { font-size: var(--step-4); }
.stat--accent { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, var(--accent-soft), var(--bg-raised) 70%); }
.stat--accent b { color: var(--accent-2); }
.report__lead { margin: 0; }
.report__h { display: flex; align-items: center; gap: var(--space-2); font-size: var(--step-1); }
.report__h .icon { color: var(--accent-2); }
.report-packers { display: grid; gap: var(--space-2); }
.report-packers__list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.report-packers__item { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; min-height: 44px; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); }
.report-packers__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.report-packers__item .chip { flex: none; height: 26px; padding: 0 10px; font-size: 12px; }
.report-dishes { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.report-dish { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "pic name" "pic score"; align-items: center; gap: 4px var(--space-3); padding: var(--space-3); border: 1px solid color-mix(in oklab, var(--accent) 40%, var(--line)); border-radius: var(--radius-l); background: linear-gradient(150deg, var(--accent-soft), var(--bg-raised) 65%); }
.report-dish__pic { grid-area: pic; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-m); object-fit: cover; }
.report-dish__pic .icon { width: 28px; height: 28px; }
.report-dish__name { grid-area: name; align-self: end; color: var(--text); font-weight: 800; font-size: var(--step-1); line-height: 1.2; overflow-wrap: anywhere; text-decoration: none; }
.report-dish__score { grid-area: score; display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); align-self: start; }
.report-dish__score b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-2); line-height: 1; color: var(--accent-2); }
.report__count { margin-left: 2px; padding: 2px 8px; border-radius: 999px; font-size: 12px; color: var(--text-2); background: var(--surface-2); }
.report__mixes { margin: 0; }
.report__mixes .muted { margin-right: 6px; }
.report__links { margin: 0; }

.podium { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.podium__card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "pic names" "pic score";
    align-items: center;
    gap: 6px var(--space-3);
    height: 100%;
    padding: var(--space-3);
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    background: var(--bg-raised);
    color: inherit;
    text-decoration: none;
}
.podium__card:hover { border-color: var(--line-strong); }
.podium__packer { display: block; padding: 4px var(--space-3) 0; text-align: center; }
.podium__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.podium__place--first .podium__card { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); background: linear-gradient(150deg, var(--accent-soft), var(--bg-raised) 65%); box-shadow: 0 0 40px -12px var(--glow); }
.podium__pic { grid-area: pic; --tile: 72px; }
.podium__place--first .podium__pic { --tile: 96px; }
.podium__rank {
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 6px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: 15px;
    color: var(--text-2);
}
.podium__place--first .podium__rank { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 14px var(--glow); }
.podium__names { grid-area: names; display: grid; gap: 2px; min-width: 0; align-self: end; }
.podium__brand { font-size: 12px; font-weight: 700; color: var(--text-3); overflow-wrap: break-word; }
.podium__name { font-size: var(--step-1); line-height: 1.2; overflow-wrap: break-word; }
.podium__score { grid-area: score; display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); align-self: start; }
.podium__score b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-2); line-height: 1; }
.podium__place--first .podium__score b { font-size: var(--step-3); color: var(--accent-2); }
@media (min-width: 720px) {
    .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .podium__card { grid-template-columns: 1fr; grid-template-areas: "pic" "names" "score"; justify-items: center; align-content: start; padding: var(--space-5) var(--space-4); text-align: center; }
    .podium__pic { --tile: 112px; }
    .podium__place--first .podium__pic { --tile: 132px; }
    .podium__names, .podium__score { align-self: auto; justify-content: center; }
}

.report-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .report-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.report-fact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); align-items: start; padding: var(--space-4); border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.report-fact p { margin: 0; color: var(--text-2); }
.report-fact__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.report-fact__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-0); }

.debut-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
/* Tiles grow to fill each row, a short last row included, but one new tobacco never spans the card. */
.debut-grid > li { flex: 1 1 140px; min-width: 0; max-width: 260px; }
.debut { display: grid; justify-items: center; align-content: start; gap: 4px; height: 100%; padding: var(--space-3) var(--space-2); border-radius: var(--radius-m); border: 1px solid var(--line); background: var(--bg-raised); color: inherit; text-align: center; text-decoration: none; }
.debut:hover { border-color: var(--line-strong); }
.debut:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.debut .cover-tile { --tile: 64px; margin-bottom: 4px; }
.debut__brand { max-width: 100%; font-size: 12px; font-weight: 700; color: var(--text-3); overflow-wrap: break-word; }
.debut__name { max-width: 100%; font-size: var(--step--1); line-height: 1.25; overflow-wrap: break-word; }

.photo-strip--report { grid-auto-columns: minmax(150px, 1fr); }
@media (min-width: 720px) { .photo-strip--report { grid-auto-columns: minmax(200px, 1fr); } }

/* Žebříčky: the tin or mix next to the name and the score as a bar out of 10. */
.board__item { display: flex; align-items: center; gap: var(--space-3); min-width: 0; color: inherit; text-decoration: none; }
.board__item .board__pic { --tile: 44px; padding: 3px; }
.board__name { display: grid; gap: 6px; min-width: 0; flex: 1; }
.board__name b { overflow-wrap: break-word; }
.board__name .board__brand { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: -4px; overflow: hidden; line-height: 1.25; color: var(--text-3); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.board-empty { display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); background: var(--bg-sunken); border-radius: var(--radius-m); color: var(--text-3); font-size: var(--step--1); }
.board-empty .icon { width: 18px; height: 18px; flex: none; color: var(--accent-2); opacity: 0.7; }
.board__bar { display: block; height: 5px; border-radius: 999px; background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 55%, var(--surface-2)), var(--accent)) 0 0 / calc(var(--pct) * 1%) 100% no-repeat, var(--surface-2); }

.poll-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); }
.poll-total { display: flex; align-items: center; gap: 6px; margin: 0; }
.poll-option__label { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.poll-option__dot { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 999px; border: 2px solid color-mix(in oklab, var(--tone) 70%, var(--line-strong)); background: color-mix(in oklab, var(--tone) 18%, transparent); }
.poll-option__dot .icon { width: 14px; height: 14px; stroke-width: 3; opacity: 0; color: var(--bg); }
.poll-option[aria-pressed="true"] .poll-option__dot { background: var(--tone); border-color: var(--tone); }
.poll-option[aria-pressed="true"] .poll-option__dot .icon { opacity: 1; }
.poll-option__pct:not(:empty) { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 13px; }
.poll-option[aria-pressed="true"] .poll-option__pct:not(:empty) { background: var(--accent-soft); color: var(--accent-2); }
[data-theme="light"] .poll-option[aria-pressed="true"] .poll-option__pct:not(:empty) { color: var(--text); }
[data-theme="light"] .poll-option__dot .icon { color: var(--text); }

/* Naposledy podáváno on tea and hookah pages: the tin, the day, what and how it scored. */
.served-title { display: flex; align-items: center; gap: 8px; font-size: var(--step-1); }
.served-title .icon { color: var(--accent-2); }
.served-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.served-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-m); background: var(--bg-raised); border: 1px solid var(--line); }
.served-row__pic { --tile: 52px; }
.served-row__main { display: grid; gap: 2px; min-width: 0; }
.served-row__link { color: inherit; text-decoration: none; justify-self: start; }
.served-row__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.served-row__link:focus-visible { outline: none; }
.served-row:has(.served-row__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.served-row__date { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 800; }
.served-row__date .icon { width: 12px; height: 12px; }
.served-row__brand { font-size: 12px; font-weight: 700; color: var(--text-3); overflow-wrap: break-word; }
.served-row__name { overflow-wrap: break-word; line-height: 1.2; }
.served-row__score { display: grid; justify-items: end; gap: 2px; text-align: right; }
.served-row__score b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); line-height: 1; }

/* Mixy: the way to a guest's own mix. */
.mix-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-3) var(--space-4); padding: var(--space-4); color: inherit; text-decoration: none; background: radial-gradient(120% 120% at 0% 50%, var(--accent-soft), transparent 60%), var(--bg-raised); }
.mix-cta__art { position: relative; width: 84px; height: 64px; }
.mix-cta__art i { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--tone) 80%, var(--tone-ink)), var(--tone)); box-shadow: 0 4px 12px rgb(0 0 0 / 0.3); }
.mix-cta__art i:nth-child(1) { left: 0; top: 18px; }
.mix-cta__art i:nth-child(2) { left: 22px; top: 2px; z-index: 1; }
.mix-cta__art i:nth-child(3) { left: 44px; top: 20px; }
.mix-cta__text { display: grid; gap: 4px; min-width: 0; }
.mix-cta__text b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); line-height: 1.15; }
.mix-cta__btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 640px) { .mix-cta { grid-template-columns: auto minmax(0, 1fr) auto; } .mix-cta__btn { grid-column: auto; } }

/* ---------- Mixy, Čaje, Dýmky lists ---------- */
.item-art { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 1; border-radius: var(--radius-m); color: oklch(0.92 0.06 var(--hue)); background: radial-gradient(90% 120% at 30% 20%, oklch(0.48 0.1 var(--hue)), oklch(0.28 0.06 var(--hue))); }
.item-art .icon { width: 48px; height: 48px; stroke-width: 1.6; }
.mix-card__tins { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 1; border-radius: var(--radius-m); background: radial-gradient(80% 100% at 50% 100%, var(--surface-2), var(--bg-sunken)); }
.mix-card__tins .cover-tile { --tile: 112px; background: none; box-shadow: none; }
.mix-bar { display: grid; gap: 8px; }
.mix-bar__track { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.mix-bar__part { flex: var(--share) 1 0; background: oklch(0.68 0.13 var(--hue)); }
.mix-bar__legend { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--text-2); }
.mix-bar__legend li { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.mix-bar__legend i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: oklch(0.68 0.13 var(--hue)); }
.mix-bar__legend b { flex: none; color: var(--text); }

/* Mix cards: the name's link covers the card; keep the top right corner free for an overlay. */
.mix-card { display: flex; flex-direction: column; }
.mix-card > .tobacco-card { flex: 1; }
.mix-card__art { position: relative; }
[data-kolekce="items"] .mix-card__tins { aspect-ratio: auto; height: 96px; }
[data-kolekce="items"] .mix-card__tins .cover-tile { --tile: 80px; }
[data-kolekce="items"] .mix-card__art .catalogue-item__photo { height: 96px; aspect-ratio: auto; object-fit: cover; }
.mix-card__link { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.mix-card__link::after { border-radius: inherit; }
.mix-card__link:focus-visible { outline: none; }
.mix-card__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-l); }
.mix-card__by { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.mix-card__by > span { min-width: 0; overflow-wrap: anywhere; }
.mix-card__by a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.mix-card__by a:hover { color: var(--accent-2); }
.mix-card--klubove {
    border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
    background:
        radial-gradient(110% 60% at 0% 0%, color-mix(in oklab, var(--accent) 15%, transparent), transparent 62%),
        linear-gradient(180deg, color-mix(in oklab, var(--accent) 5%, var(--bg-raised)), var(--bg-raised));
    box-shadow: var(--shadow-1), inset 0 1px 0 color-mix(in oklab, var(--accent-2) 22%, transparent), 0 14px 32px -22px var(--glow);
}
.mix-card--klubove .mix-card__tins { background: radial-gradient(80% 100% at 50% 100%, color-mix(in oklab, var(--ember-3, var(--accent)) 20%, var(--surface-2)), var(--bg-sunken)); }
.mix-card--klubove .mix-bar__track { box-shadow: 0 0 10px -4px var(--glow); }
.mix-card--degustace { border-color: color-mix(in oklab, var(--brass-2) 40%, var(--line)); }
.mix-chip { --chip-fg: var(--brass-1); --chip-bg: var(--brass-soft); border-color: color-mix(in oklab, var(--brass-2) 45%, transparent); text-decoration: none; }
a.mix-chip:hover { --chip-bg: color-mix(in oklab, var(--brass-2) 22%, transparent); }
.mix-chip .icon { width: 14px; height: 14px; }
/* "Klubový mix": a lit coal on a dark pill rimmed in ember. */
.mix-emblem {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px 0 6px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-pill);
    background: color-mix(in oklab, var(--bg) 78%, transparent);
    color: var(--accent-2);
    box-shadow: 0 0 16px -5px var(--glow), inset 0 0 8px -4px var(--glow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}
.mix-emblem .coal { --size: 16px; }
.mix-emblem--inline { position: static; align-self: flex-start; }
.mix-origin { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: calc(var(--space-2) * -1); }
.mix-origin .chip a { color: inherit; }
/* Mixy origin filter: one line on a phone. */
.mix-filter .segmented__link { padding-inline: var(--space-3); }
@media (max-width: 699px) { .mix-filter .segmented__link { min-width: 0; padding-inline: var(--space-1); } }
/* Mixy in the Tabáky search: a swipe row of compact tiles. */
.mix-strip__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 264px); gap: var(--space-2); margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) var(--space-2); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.mix-strip__row::-webkit-scrollbar { display: none; }
.mix-strip__row > li { scroll-snap-align: start; min-width: 0; }
.mix-tile { display: flex; align-items: center; gap: var(--space-3); height: 100%; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-raised); color: inherit; text-decoration: none; transition: border-color var(--dur-2), background var(--dur-2); }
.mix-tile:hover { color: inherit; border-color: var(--line-strong); background: var(--surface); }
.mix-tile--klubove { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); background: radial-gradient(120% 90% at 0% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%), var(--bg-raised); }
.mix-tile--degustace { border-color: color-mix(in oklab, var(--brass-2) 35%, var(--line)); }
.mix-tile__text { display: grid; gap: 3px; min-width: 0; }
.mix-tile__text b { font-size: var(--step--1); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
.mix-tile__origin { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; color: var(--text-3); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
.mix-tile--klubove .mix-tile__origin { color: var(--accent-2); }
.mix-tile--degustace .mix-tile__origin { color: var(--brass-1); }
.mix-tile__origin .coal { --size: 13px; }
.mix-tile__origin .icon { width: 13px; height: 13px; flex: none; }

/* Úplnost atlasu: how many tastes the flavours have, one stacked bar; "bez chutí" is the number to act on */
.atlas-headline { font-size: var(--step-2); }
.atlas-headline a { color: var(--text); text-decoration: none; }
.atlas-bar { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: var(--surface-2); }
.atlas-bar__seg { display: block; min-width: 4px; }
.atlas-bar__seg--chuti0 { background: var(--danger); }
.atlas-bar__seg--chuti1 { background: color-mix(in oklab, var(--accent) 45%, var(--surface-2)); }
.atlas-bar__seg--chuti2 { background: color-mix(in oklab, var(--accent) 75%, var(--surface-2)); }
.atlas-bar__seg--chuti3 { background: var(--accent); }
.atlas-legend { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; font-size: var(--step--1); }
.atlas-legend a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--text); text-decoration: none; }
.atlas-legend i { width: 12px; height: 12px; border-radius: 3px; }

/* Admin "Názvy": names as chips with their market and small icon actions; the add and search rows stay one line at 360px. */
.name-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.name-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 2px 4px 2px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-raised); max-width: 100%; }
.name-chip--primary { border-color: var(--accent); }
.name-chip__name { font-weight: 700; overflow-wrap: anywhere; }
.name-chip__badge { padding: 0 8px; font-size: var(--step--1); font-weight: 700; color: var(--accent-2); }
.name-chip__form { display: inline-flex; }
.name-chip .btn--icon { width: 32px; height: 32px; min-height: 32px; padding: 0; }
.name-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; }
.name-add--market { grid-template-columns: minmax(0, 1fr) auto auto; }
.name-candidates { display: grid; gap: var(--space-2); }
.name-candidate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2); align-items: center; padding: var(--space-2) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); }
.name-candidate__text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

/* Admin "Tabáky ze světa": tap a tin to pick it on any page or search; the tray is a slim bar at the bottom that opens into the list. */
.atlas-tray { position: sticky; bottom: 0; z-index: 5; display: grid; gap: var(--space-2); margin-inline: calc(-1 * var(--space-2)); padding: 8px var(--space-2); padding-bottom: max(8px, env(safe-area-inset-bottom)); border: 1px solid var(--accent); border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--bg-raised); box-shadow: 0 -8px 24px rgb(0 0 0 / 0.35); }
.atlas-tray__panel { display: grid; gap: var(--space-2); justify-items: start; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.atlas-tray__panel[hidden] { display: none; }
.atlas-tray__items { display: flex; flex-wrap: wrap; gap: var(--space-2); max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
.atlas-tray__item { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 220px; min-height: 36px; padding: 2px 2px 2px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: var(--step--1); }
.atlas-tray__item img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.atlas-tray__item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atlas-tray__item .btn--icon { width: 32px; height: 32px; min-height: 32px; padding: 0; }
.atlas-tray__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--space-2); align-items: center; }
.atlas-tray__toggle { display: flex; align-items: center; gap: var(--space-2); min-width: 0; min-height: 44px; padding: 0 4px; border: 0; border-radius: var(--radius-s); background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.atlas-tray__toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.atlas-tray__count { font-weight: 700; white-space: nowrap; }
.atlas-tray__count b { color: var(--accent-2); }
.atlas-tray__chev { width: 18px; height: 18px; flex: none; color: var(--text-3); transition: rotate var(--dur-2); }
.atlas-tray--open .atlas-tray__chev { rotate: 180deg; }
.atlas-tray__stack { display: flex; flex: none; }
.atlas-tray__tin { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -10px; overflow: hidden; border: 2px solid var(--bg-raised); border-radius: 50%; background: var(--surface-2); color: var(--text-2); font-weight: 800; font-size: 0.8rem; }
.atlas-tray__tin:first-child { margin-left: 0; }
.atlas-tray__tin img { width: 100%; height: 100%; object-fit: contain; }
.atlas-tray__actions .btn--icon { width: 44px; height: 44px; min-height: 44px; }
@media (min-width: 700px) {
    .atlas-tray { margin-inline: 0; border-radius: var(--radius-m); }
}

/* Event: who is coming */
.attendees__head { --gap: var(--space-2); }
.attendees__head .eyebrow { margin-right: auto; }
.attendees__waiting { gap: 4px; }
.attendees__waiting .icon { width: 14px; height: 14px; }
.attendees__list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.attendees__chip { max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface-2); color: inherit; text-decoration: none; }
.attendees__chip > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.attendees__chip:hover { background: color-mix(in oklab, var(--surface-2) 80%, var(--accent) 20%); }
.attendees__chip .avatar { --size: 28px; }
.attendees__chip--more { color: var(--text-2); }
#vysledky { scroll-margin-top: 72px; }

/* ---------- Event page while the evening is on: only what the table needs ---------- */
.event-live__head { display: grid; gap: var(--space-2); }
.event-live__top { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; }
.event-live__icons { display: flex; gap: var(--space-1); margin-left: auto; }
.event-live__title { font-size: var(--step-2); line-height: 1.15; overflow-wrap: break-word; }
.tonight-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--line)); border-radius: var(--radius-l); background: linear-gradient(100deg, var(--accent-soft), var(--bg-raised) 70%); }
.tonight-bar .home-ring { width: 56px; height: 56px; }
.tonight-bar .home-ring::before { width: 46px; height: 46px; }
.tonight-bar__art { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); }
.tonight-bar__art .icon { width: 26px; height: 26px; }
.tonight-bar__text { display: grid; gap: 2px; min-width: 0; }
.tonight-bar__title { font-size: var(--step-1); line-height: 1.1; }
.tonight-bar__actions { display: flex; gap: var(--space-2); }
.tonight-bar__actions .btn { white-space: nowrap; }
@media (max-width: 420px) {
    .tonight-bar { grid-template-columns: auto minmax(0, 1fr); }
    .tonight-bar__actions { grid-column: 1 / -1; }
    .tonight-bar__actions .btn--primary:not(.btn--icon) { flex: 1; justify-content: center; }
}
.bowl-row.is-todo { border-style: solid; border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.bowl-row__rate { justify-self: start; margin-top: var(--space-1); }
