/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--text);
    --btn-line: var(--line-strong);
    position: relative;
    display: inline-flex;
    /* A label never breaks inside a button ("Chci\nto"); full-width buttons may wrap. */
    white-space: nowrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--tap);
    padding: 0 var(--space-5);
    border: 1px solid var(--btn-line);
    border-radius: var(--radius-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    font-size: var(--step-0);
    letter-spacing: 0.005em;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: transform var(--dur-1) var(--ease-out), background var(--dur-2), box-shadow var(--dur-2), border-color var(--dur-2), opacity var(--dur-2);
}

:is([data-direction="kour"], [data-direction="kourb"]) .btn { border-radius: var(--radius-m); }

.btn:hover { color: var(--btn-fg); border-color: var(--text-3); }
.btn:active { transform: scale(0.97); }

.btn--primary {
    --btn-bg: linear-gradient(180deg, var(--accent-hi, var(--accent-2)), var(--accent) 60%);
    --btn-fg: var(--accent-ink);
    --btn-line: transparent;
    box-shadow: 0 0 0 0 var(--glow), 0 8px 24px -8px var(--glow);
}

.btn--primary:hover { box-shadow: 0 0 0 4px var(--accent-soft), 0 10px 30px -8px var(--glow); border-color: transparent; }
.btn--ghost { --btn-bg: transparent; --btn-line: transparent; --btn-fg: var(--text-2); }
.btn--ghost:hover { --btn-bg: var(--surface); }
.btn--danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-line: color-mix(in oklab, var(--danger) 40%, transparent); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 var(--space-4); font-size: var(--step--1); }
.btn--lg { min-height: 58px; padding: 0 var(--space-6); font-size: var(--step-1); }

.btn--icon {
    width: var(--tap);
    padding: 0;
    border-radius: 50%;
}

.btn svg { width: 20px; height: 20px; flex: none; }

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

/* Busy (aria-busy): the puff in styles/puff.css. */

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--space-2); }

.label {
    font-weight: 700;
    font-size: var(--step--1);
    color: var(--text-2);
}

.input,
.textarea,
.select {
    width: 100%;
    min-height: var(--tap);
    padding: 0 var(--space-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-m);
    background: var(--bg-sunken);
    color: var(--text);
    font-size: 16px; /* prevents iOS zoom on focus */
    transition: border-color var(--dur-2), box-shadow var(--dur-2), background var(--dur-2);
}

.textarea { padding: var(--space-3) var(--space-4); min-height: 110px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }

.input:focus,
.textarea:focus,
.select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    background: var(--bg);
}

.select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a7e72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.help { font-size: var(--step--1); color: var(--text-3); }
.field--error .input, .field--error .textarea { border-color: var(--danger); }
.field--error .input:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.error-text { font-size: var(--step--1); color: var(--danger); font-weight: 600; display: flex; gap: 6px; align-items: center; }

.search { position: relative; }
.search .input { padding-left: 46px; padding-right: 46px; border-radius: var(--radius-pill); }
.search__icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 20px; color: var(--text-3); pointer-events: none; }
.search__clear { position: absolute; right: 4px; top: 50%; translate: 0 -50%; }
.search .input:placeholder-shown ~ .search__clear { opacity: 0; pointer-events: none; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: var(--space-3); cursor: pointer; min-height: var(--tap); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__track {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 99px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    transition: background var(--dur-2);
    flex: none;
}
.switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-2);
    transition: translate var(--dur-2) var(--ease-spring), background var(--dur-2), box-shadow var(--dur-2);
}
.switch input:checked + .switch__track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .switch__track::after { translate: 22px 0; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Checkbox + radio */
.check { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); cursor: pointer; }
.check input {
    appearance: none;
    flex: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 1.5px solid var(--line-strong);
    border-radius: 7px;
    background: var(--bg-sunken);
    display: grid;
    place-content: center;
    transition: background var(--dur-2), border-color var(--dur-2);
}
.check input[type="radio"] { border-radius: 50%; }
.check input::after {
    content: "";
    width: 12px;
    height: 12px;
    scale: 0;
    transition: scale var(--dur-2) var(--ease-spring);
    background: var(--accent-ink);
    clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 37% 70%);
}
.check input[type="radio"]::after { clip-path: circle(50%); width: 10px; height: 10px; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { scale: 1; }

/* Segmented control */
.segmented {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    padding: 4px;
    gap: 4px;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}
:is([data-direction="kour"], [data-direction="kourb"]) .segmented { border-radius: var(--radius-m); }
.segmented button {
    min-height: 44px;
    padding: 0 var(--space-4);
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: var(--text-2);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--dur-2), color var(--dur-2);
}
.segmented button svg { width: 20px; height: 20px; display: block; }
.segmented button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-1); }
/* A segmented choice of real radios (submitted with a form): the checked one lifts like a pressed button. */
.segmented--radio label { display: grid; place-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: inherit; color: var(--text-2); font-weight: 700; text-align: center; cursor: pointer; transition: background var(--dur-2), color var(--dur-2); }
.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); outline-offset: 2px; }
/* Phone first: every view switch spans the full column, like the search fields. */
@media (max-width: 699px) {
    .segmented { display: grid; width: 100%; grid-auto-columns: minmax(max-content, 1fr); }
    .segmented > :is(button, a) { white-space: nowrap; padding-inline: var(--space-1); font-size: 0.9375rem; }
}
@media (max-width: 374px) {
    .segmented > :is(button, a) { font-size: var(--step--1); }
}

/* Stepper */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--bg-sunken); }
.stepper output { min-width: 3ch; text-align: center; font-weight: 800; font-size: var(--step-1); }
.stepper .btn { border: 0; }

/* ---------- Chips, tags, badges ---------- */
.chip {
    --chip-fg: var(--text-2);
    --chip-bg: var(--surface);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: var(--chip-bg);
    color: var(--chip-fg);
    border: 1px solid color-mix(in oklab, var(--chip-fg) 22%, transparent);
    font-size: var(--step--1);
    font-weight: 700;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
}
:is([data-direction="kour"], [data-direction="kourb"]) .chip { border-radius: var(--radius-s); }
.chip--ok { --chip-fg: var(--ok); --chip-bg: var(--ok-soft); }
.chip--off { --chip-fg: var(--text-3); --chip-bg: transparent; }
.chip--accent { --chip-fg: var(--accent-2); --chip-bg: var(--accent-soft); }
.chip--warn { --chip-fg: var(--warn); --chip-bg: var(--warn-soft); }
.chip--danger { --chip-fg: var(--danger); --chip-bg: var(--danger-soft); }
.chip--archive { --chip-fg: var(--text-2); --chip-bg: var(--surface-2); }
.chip--archive .icon { width: 14px; height: 14px; }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
/* Icons stay on the text line when a chip is inline-block (ellipsized tags). */
.chip svg { display: inline-block; flex: none; }

.chip--live { --chip-fg: #fff; --chip-bg: var(--accent); border-color: transparent; }
.chip--live .chip__dot { animation: live-pulse 1.6s var(--ease-out) infinite; }

.tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-s);
    background: var(--bg-sunken);
    color: var(--text-2);
    font-size: var(--step--1);
    font-weight: 600;
}
/* Taste chips coloured by what they taste like (flavour_tone); text mixed toward white on dark, black on light. */
.tag[data-tone] {
    height: 28px;
    padding: 0 11px;
    border: 1px solid color-mix(in oklab, var(--tone) 40%, transparent);
    border-radius: 999px;
    background: color-mix(in oklab, var(--tone) 20%, var(--bg-raised));
    color: color-mix(in oklab, var(--tone) 58%, var(--tone-ink));
    font-weight: 700;
}
[data-theme="light"] .tag[data-tone] { border-color: color-mix(in oklab, var(--tone) 60%, transparent); background: color-mix(in oklab, var(--tone) 22%, var(--bg-raised)); color: color-mix(in oklab, var(--tone) 48%, var(--tone-ink)); }
[data-tone] { --tone: var(--tone-neutral); }
[data-tone="nut"] { --tone: var(--tone-nut); }
[data-tone="orange"] { --tone: var(--tone-orange); }
[data-tone="yellow"] { --tone: var(--tone-yellow); }
[data-tone="green"] { --tone: var(--tone-green); }
[data-tone="red"] { --tone: var(--tone-red); }
[data-tone="indigo"] { --tone: var(--tone-indigo); }
[data-tone="purple"] { --tone: var(--tone-purple); }
[data-tone="cream"] { --tone: var(--tone-cream); }
[data-tone="dark"] { --tone: var(--tone-dark); }
[data-tone="ice"] { --tone: var(--tone-ice); }
[data-tone="pink"] { --tone: var(--tone-pink); }
[data-tone="amber"] { --tone: var(--tone-amber); }
[data-tone="tobacco"] { --tone: var(--tone-tobacco); }
[data-tone="wine"] { --tone: var(--tone-wine); }

/* Strength 1-5: five little bars */
.strength { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
.strength i { width: 5px; border-radius: 2px; background: var(--line-strong); }
.strength i:nth-child(1) { height: 30%; }
.strength i:nth-child(2) { height: 47%; }
.strength i:nth-child(3) { height: 64%; }
.strength i:nth-child(4) { height: 82%; }
.strength i:nth-child(5) { height: 100%; }
.strength i.on { background: linear-gradient(var(--accent-hi, var(--accent-2)), var(--accent)); }

/* Rank badge: hexagon-ish ember plate */
.rank {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* A two-word rank ("Alchymista mixů") in a narrow column wraps inside the plate instead of spilling over it. */
    min-height: 26px;
    max-width: 100%;
    padding: 3px 10px 3px 4px;
    border-radius: var(--radius-pill);
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    font-size: var(--step--1);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
    color: var(--text-2);
}
.rank__icon { flex: none; width: 18px; height: 18px; }
.rank--1 { --rank: var(--rank-1); }
.rank--2 { --rank: var(--rank-2); }
.rank--3 { --rank: var(--rank-3); }
.rank--4 { --rank: var(--rank-4); }
.rank--5 { --rank: var(--rank-5); }
.rank--6 { --rank: var(--rank-6); }
.rank--7 { --rank: var(--rank-7); }
.rank--8 { --rank: var(--rank-8); }
.rank--9 { --rank: var(--rank-9); }
.rank--10 { --rank: var(--rank-10); }
.rank--11 { --rank: var(--rank-11); }
.rank--12 { --rank: var(--rank-12); }
.rank--13 { --rank: var(--rank-13); }
.rank--14 { --rank: var(--rank-14); }
.rank { color: var(--rank); border-color: color-mix(in oklab, var(--rank) 30%, transparent); }
/* Higher ranks glow more: a tint from Znalec, a halo from Alchymista, a lit coal from Velmistr, gold and iridescence at the top. */
.rank:is(.rank--5, .rank--6, .rank--7, .rank--8, .rank--9, .rank--10, .rank--11, .rank--12) { background: color-mix(in oklab, var(--rank) 10%, var(--bg-sunken)); }
.rank:is(.rank--9, .rank--10, .rank--11, .rank--12) { border-color: color-mix(in oklab, var(--rank) 50%, transparent); box-shadow: 0 0 8px color-mix(in oklab, var(--rank) 28%, transparent); }
.rank:is(.rank--12, .rank--13, .rank--14) .rank__icon { filter: drop-shadow(0 0 4px var(--rank)); }
.rank--13, .rank--14 {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-sunken), var(--bg-sunken)) padding-box,
        linear-gradient(120deg, var(--rank-13), var(--rank-8), var(--rank-12), var(--rank-13)) border-box;
    box-shadow: 0 0 12px color-mix(in oklab, var(--rank) 40%, transparent);
}
.rank--14 { background-size: 100% 100%, 300% 100%; animation: rank-sheen 6s linear infinite; box-shadow: 0 0 14px color-mix(in oklab, var(--rank-9) 45%, transparent), 0 0 4px color-mix(in oklab, var(--rank) 50%, transparent); }
.rank--14 .rank__label { background: linear-gradient(90deg, var(--rank-14), var(--rank-12), var(--rank-9), var(--rank-14)) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rank-text-sheen 6s linear infinite; }
@keyframes rank-sheen { to { background-position: 0 0, 300% 0; } }
@keyframes rank-text-sheen { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .rank--14, .rank--14 .rank__label { animation: none; } }
:root[data-theme="light"] .rank { color: color-mix(in oklab, var(--rank) 72%, #000); }

/* Rank ring: the way to the next rank around the level number. */
.rank-ring { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.rank-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.rank-ring circle { fill: none; stroke-width: 5; }
.rank-ring__track { stroke: var(--surface-2); }
.rank-ring__fill { stroke: var(--rank); stroke-linecap: round; stroke-dasharray: var(--pct) 100; filter: drop-shadow(0 0 4px color-mix(in oklab, var(--rank) 50%, transparent)); }
.rank-ring__level { font-family: var(--font-display); font-size: var(--step-1); font-weight: var(--display-weight); color: var(--rank); }

/* Stat tile with its icon in the corner. */
.stat--icon { position: relative; }
.stat__icon { position: absolute; top: var(--space-3); right: var(--space-3); width: 20px; height: 20px; color: var(--accent-2); opacity: 0.85; }

/* Avatar + name chip */
.avatar {
    --size: 36px;
    flex: none;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: calc(var(--size) * 0.4);
    color: var(--accent-ink);
    background: radial-gradient(circle at 35% 30%, var(--ember-1), var(--ember-2) 45%, var(--ember-3));
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--rank, transparent);
}
.avatar--ash { background: linear-gradient(145deg, var(--coal-top), var(--coal-right)); color: var(--text-2); }
.avatar--lg { --size: 64px; }
.avatar--xs { --size: 20px; box-shadow: none; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { --size: 28px; margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.namechip { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.namechip small { display: block; font-weight: 600; color: var(--text-3); font-size: 0.78em; }

/* ---------- Cards ---------- */
.card {
    position: relative;
    background: var(--bg-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}
.card__body { padding: var(--space-4); }
@media (min-width: 720px) { .card__body { padding: var(--space-5); } }
a.card { color: inherit; text-decoration: none; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
a.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
a.card:active { transform: scale(0.99); }
.card--link { transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.card--link:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.stretched { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.above-stretch { position: relative; z-index: 1; }

/* Event card: the number is the hero */
.event-card { display: grid; grid-template-columns: auto 1fr; }
.event-card__num {
    display: grid;
    place-content: center;
    min-width: 92px;
    padding: var(--space-4);
    background:
        radial-gradient(120% 90% at 50% 120%, var(--accent-soft), transparent 70%),
        var(--surface);
    border-right: 1px dashed var(--line-strong);
    text-align: center;
}
.event-card__num b {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: var(--step-4);
    line-height: 0.9;
    color: var(--accent-2);
    letter-spacing: var(--display-tracking);
}
.event-card__num span { font-size: var(--step--1); color: var(--text-3); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.event-card__title { font-size: var(--step-1); margin: 6px 0 2px; }
.event-card--live { border-color: color-mix(in oklab, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 1px var(--accent-soft), 0 18px 60px -20px var(--glow); }

/* Capacity bar */
.capacity { display: grid; gap: 6px; }
.capacity__bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.capacity__bar i { display: block; height: 100%; width: var(--pct); border-radius: inherit; background: linear-gradient(90deg, var(--accent-hi, var(--accent-2)), var(--accent)); }
.capacity--full .capacity__bar i { background: var(--danger); }

/* Bowl card */
.bowl-card__head { display: flex; align-items: center; gap: var(--space-3); }
.station-badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-m);
    background: var(--bg-sunken);
    border: 1px solid var(--line-strong);
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: var(--step-1);
}
.bowl-card__smoke { font-weight: 800; font-size: var(--step-1); line-height: 1.2; }
.bowl-card__pair { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; color: var(--text-2); font-size: var(--step--1); margin-top: 2px; }
.bowl-card__fact { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; white-space: nowrap; }
.bowl-card__fact .guest-link { overflow: hidden; text-overflow: ellipsis; }
.bowl-card__pair svg { width: 16px; height: 16px; color: var(--accent-2); }

/* Tobacco card */
.tobacco-card { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.tobacco-card > :where(.tasted, .chip, .tag, .world-ref, .club-score, .unrated, .card-score, .tobacco-card__brand) { align-self: flex-start; }
.tobacco-card__brand { font-size: var(--step--1); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.tobacco-card__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-2); letter-spacing: var(--display-tracking); line-height: 1.05; }
.tobacco-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--step--1); color: var(--text-2); }
.tobacco-card__meta b { color: var(--text); }

/* Product picture tile (ui.cover): the whole tin, contained on a soft surface; the same size with or without a picture. */
.cover-tile {
    --tile: 72px;
    flex: none;
    display: grid;
    place-items: center;
    width: var(--tile);
    height: var(--tile);
    padding: 5px;
    border-radius: var(--radius-m);
    background: radial-gradient(90% 90% at 50% 30%, var(--surface-2), var(--bg-sunken));
    box-shadow: inset 0 0 0 1px var(--line);
    overflow: hidden;
}
.cover-tile--sm { --tile: 56px; padding: 4px; border-radius: var(--radius-s); }
@media (min-width: 720px) { .cover-tile--md { --tile: 84px; } }
/* While the tin loads: the brand's own hue as the placeholder, then the picture fades in (fade.js marks it loaded). */
.cover-tile--hued { background: radial-gradient(90% 90% at 35% 25%, oklch(0.45 0.08 var(--hue) / 0.55), oklch(0.28 0.05 var(--hue) / 0.55)), var(--bg-sunken); }
.js-fade img.cover-tile__img, .js-fade .smoke-cover--tins img, .js-fade .line-card__tins img { opacity: 0; transition: opacity var(--dur-2) var(--ease-out); }
.js-fade img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js-fade img.cover-tile__img, .js-fade .smoke-cover--tins img, .js-fade .line-card__tins img { transition: none; } }
.cover-tile__img { width: 100%; height: 100%; object-fit: contain; border-radius: calc(var(--radius-m) - 5px); }
.cover-tile--hued > * { grid-area: 1 / 1; }
.cover-tile--hued[data-initial]::before { content: attr(data-initial); grid-area: 1 / 1; font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(var(--tile) * 0.42); line-height: 1; color: oklch(0.88 0.06 var(--hue) / 0.75); }
.js-fade .cover-tile--hued:has(> img.is-loaded:not(.is-broken))::before, html:not(.js-fade) .cover-tile--hued::before { visibility: hidden; }
.cover-tile__img.is-broken, .smoke-cover--tins img.is-broken, .line-card__tins img.is-broken { visibility: hidden; }
.cover-tile__empty { width: 44%; height: 44%; color: var(--line-strong); }

/* Club tobacco card: picture + names + strength, then our score with the world one quietly on the right, then status and tags. */
.tobacco-tile { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.tobacco-tile__head { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.tobacco-tile__head .tobacco-card__names { display: grid; justify-items: start; gap: 3px; min-width: 0; padding-top: 2px; }
.tobacco-tile__head .strength-meter { margin-top: 4px; }
.tobacco-tile .tobacco-card__brand { font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.tobacco-tile .tobacco-card__name { font-size: var(--step-1); line-height: 1.1; overflow-wrap: anywhere; }
.tobacco-tile__scores { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.tobacco-tile__scores > .world-ref--compact { flex: 0 1 auto; min-width: 0; margin-left: auto; }
.tobacco-tile__scores:has(> .club-score + .world-ref--compact) { flex-wrap: nowrap; }
.tobacco-tile__scores > .club-score { flex: none; }
.tobacco-tile__scores > :only-child { margin-left: 0; }
/* "Ve světě" mirrors the "V klubu" label, in grey and a size smaller: a reference, not a rival. */
.tobacco-tile__scores .world-ref.world-ref--compact { justify-content: flex-end; align-items: baseline; gap: 2px 4px; padding-bottom: 2px; text-align: right; }
.tobacco-tile__scores .world-ref--compact .world-ref__label { flex-basis: 100%; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.tobacco-tile__scores .world-ref--compact .world-ref__num { font-size: var(--step-0); }
.tobacco-tile__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tobacco-tile__foot .chip { height: 24px; padding: 0 9px; font-size: 12px; }
.tobacco-tile__foot .tag { height: 26px; padding: 0 10px; font-size: 13px; }
.tobacco-tile__foot .tasted { height: 24px; }
.tobacco-tile__note { display: flex; flex-wrap: wrap; gap: 4px var(--space-3); margin: calc(var(--space-1) * -1) 0 0; }
.tobacco-tile__note b { color: var(--text); }
.tobacco-tile__archive-note { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; overflow-wrap: anywhere; }
@media (min-width: 640px) { .tobacco-tile__foot { margin-top: auto; } .tobacco-tile__foot.tobacco-tile__tastes { margin-top: 0; } .tobacco-tile__tastes + .tobacco-tile__scores, .tobacco-tile__head + .tobacco-tile__scores { margin-top: auto; } .tobacco-tile__scores ~ .tobacco-tile__foot { margin-top: 0; } }

.tobacco-tile__pic { position: relative; flex: none; }
/* The guest's own score on the tin: a lit coal and the number, in ember, never the green of "ok". */
.mine-badge {
    position: absolute;
    right: -7px;
    bottom: -7px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    min-width: 24px;
    padding: 0 7px 0 4px;
    border-radius: 999px;
    border: 1.5px solid var(--accent);
    background: var(--bg-raised);
    color: var(--text);
    box-shadow: 0 0 0 2px var(--bg-raised), 0 0 12px -2px var(--glow);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.mine-badge__coal { width: 15px; height: 15px; flex: none; }
.mine-badge--tasted { padding: 0 4px; border-style: dashed; box-shadow: 0 0 0 2px var(--bg-raised); }
/* "Měli jsme": quieter than what is on offer now. */
.tobacco-tile--past { background: color-mix(in oklab, var(--bg-raised) 70%, var(--bg)); box-shadow: none; }
.tobacco-tile--past .cover-tile { filter: grayscale(0.6); opacity: 0.8; }
.tobacco-tile--past .tobacco-card__name { color: var(--text-2); }

/* Archive: rare, aged stock in brass; provoz keeps the plain card and "Měli jsme" stays muted. */
.tobacco-tile--archive, .detail-head.detail-hero.detail-hero--archive {
    border-color: color-mix(in oklab, var(--brass-2) 55%, var(--line));
    background:
        radial-gradient(120% 80% at 100% 0%, var(--brass-soft), transparent 60%),
        linear-gradient(180deg, color-mix(in oklab, var(--brass-2) 6%, var(--bg-raised)), var(--bg-raised));
    box-shadow: var(--shadow-1), inset 0 1px 0 color-mix(in oklab, var(--brass-1) 25%, transparent);
}
.tobacco-tile--archive .cover-tile { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brass-2) 50%, transparent); }
.tobacco-tile--archive .tobacco-tile__scores { border-top-color: color-mix(in oklab, var(--brass-2) 30%, var(--line)); }
.archive-seal {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1.5px solid var(--brass-2);
    border-radius: var(--radius-s);
    color: var(--brass-1);
    background: color-mix(in oklab, var(--bg) 70%, transparent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    rotate: 3deg;
    pointer-events: none;
}
.archive-seal .icon { width: 12px; height: 12px; }
.tobacco-tile__pic .archive-seal { top: -7px; left: -7px; right: auto; padding: 2px 6px; font-size: 10px; rotate: -6deg; }
.age-label { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--brass-soft); color: var(--brass-1); font-weight: 700; }
.age-label .icon { width: 13px; height: 13px; }
.archive-note { border-color: color-mix(in oklab, var(--brass-2) 55%, var(--line)); background: linear-gradient(135deg, var(--brass-soft), transparent 70%), var(--bg-raised); }
.archive-note .icon { color: var(--brass-1); }
.detail-hero--archive .archive-seal { top: 12px; right: 12px; }
.chip--archive { --chip-fg: var(--brass-1); --chip-bg: var(--brass-soft); border-color: color-mix(in oklab, var(--brass-2) 45%, transparent); }

/* Compact world score for cards: no outline, no coals */
.world-ref.world-ref--compact { padding: 0; border: 0; gap: 4px; font-size: 12px; font-weight: 600; }
.world-ref--compact .world-ref__num { font-weight: 800; }

/* World search row: picture, names, world score; "Chci to" beside it, or under the text on a phone. */
.catalogue-row.world-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-2) var(--space-3); }
.world-row__link { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; color: inherit; text-decoration: none; }
.world-row__text { display: grid; gap: 3px; min-width: 0; }
.world-row__name { font-size: var(--step-0); line-height: 1.2; overflow-wrap: anywhere; }
.world-row .tobacco-card__brand { font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.world-hint__tags { min-width: 0; overflow-wrap: anywhere; }
.world-row .world-ref { flex-wrap: nowrap; white-space: nowrap; }
.want-btn { white-space: nowrap; }
@media (max-width: 479px) {
    .catalogue-row.world-row { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-3); }
    .world-row__want { padding-left: calc(56px + var(--space-3)); }
    .world-row .want-btn { min-height: 36px; height: 36px; padding: 0 14px; }
}

/* Feed photo card */
.feed-card__img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    background: var(--surface-2);
}
.feed-card__body { display: grid; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); }
.feed-card__actions { display: flex; align-items: center; gap: var(--space-2); }
.react {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-2);
    font-weight: 800;
    cursor: pointer;
    transition: background var(--dur-2), color var(--dur-2), border-color var(--dur-2);
}
.react .coal { --size: 20px; }
.react[aria-pressed="false"] .coal__glow { opacity: 0.25; filter: grayscale(1); }
.react[aria-pressed="true"] { color: var(--accent-2); background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.react[aria-pressed="true"] .coal { animation: pop var(--dur-3) var(--ease-spring); }
/* On a thumbnail strip the coal sits on the photo's corner. */
.photo-strip__item { position: relative; margin: 0; }
.react--compact {
    position: absolute;
    right: 6px;
    bottom: 6px;
    min-height: 40px;
    padding: 0 10px;
    background: color-mix(in oklab, var(--bg) 78%, transparent);
    backdrop-filter: blur(4px);
}

.feed-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .feed-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feed-grid { grid-template-columns: repeat(3, 1fr); } }

/* Club post: the club as author, a title and text, the accent rim; a picture or a glowing banner on top, on the left from 640 px where the card spans the full width. */
.feed-head__actions { display: flex; gap: var(--space-2); min-width: 0; }
.feed-head__actions > .btn--primary { flex: 1 1 auto; }
.feed-card--club {
    border-color: color-mix(in oklab, var(--accent) 50%, var(--line));
    background: linear-gradient(180deg, var(--accent-soft), transparent 45%), var(--bg-raised);
    box-shadow: var(--shadow-1), 0 14px 44px -24px var(--glow);
}
.feed-card__media { display: block; }
.feed-card__banner {
    position: relative;
    display: grid;
    place-items: center;
    height: 96px;
    overflow: hidden;
    color: var(--accent-2);
    background: radial-gradient(60% 120% at 50% 110%, var(--glow), transparent 70%), linear-gradient(160deg, color-mix(in oklab, var(--accent) 22%, var(--bg-raised)), var(--bg-raised));
}
.feed-card__banner > .icon { width: 40px; height: 40px; filter: drop-shadow(0 0 10px var(--glow)); }
.feed-card__banner-mark { position: absolute; right: -18px; bottom: -26px; width: 120px; height: 120px; color: var(--accent); opacity: 0.16; }
.avatar--club { background: radial-gradient(circle at 50% 70%, var(--accent-soft), var(--bg)); color: var(--accent-2); box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 45%, transparent), 0 0 14px -4px var(--glow); }
.avatar--club svg { width: 70%; height: 70%; }
.feed-card--club .namechip small { display: flex; align-items: center; gap: 4px; color: var(--accent-2); }
.feed-card--club .namechip small .icon { width: 14px; height: 14px; flex: none; }
.feed-card__title { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); line-height: 1.2; overflow-wrap: anywhere; }
.feed-card__text .clamp__text { color: var(--text-2); overflow-wrap: anywhere; }
@media (min-width: 640px) {
    .feed-card--club { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .feed-card--club .feed-card__img { height: 100%; aspect-ratio: auto; max-height: 420px; }
    .feed-card--club .feed-card__banner { height: 100%; min-height: 160px; }
    .feed-card--club .feed-card__body { align-content: start; padding: var(--space-4) var(--space-5) var(--space-5); }
}

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { display: grid; align-content: start; gap: 6px; min-width: 0; padding: var(--space-4); border-radius: var(--radius-m); background: var(--bg-raised); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-3); line-height: 1; letter-spacing: var(--display-tracking); }
.stat span { font-size: var(--step--1); color: var(--text-3); font-weight: 700; }

/* ---------- Leaderboard ---------- */
.board { display: grid; gap: var(--space-2); list-style: none; margin: 0; padding: 0; counter-reset: board; }
.board > li {
    counter-increment: board;
    display: grid;
    /* minmax(0, 1fr): a long name wraps instead of pushing the row past the screen. */
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-m);
    background: var(--bg-raised);
    border: 1px solid var(--line);
}
.board > li::before {
    content: counter(board);
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: var(--step-2);
    color: var(--text-3);
    text-align: center;
}
.board > li:nth-child(1) { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); background: linear-gradient(90deg, var(--accent-soft), var(--bg-raised) 70%); }
.board > li:nth-child(1)::before { color: var(--accent-2); text-shadow: 0 0 18px var(--glow); }
.board > li:nth-child(2)::before { color: var(--text); }
.board > li:nth-child(3)::before { color: var(--text-2); }
.board__score { text-align: right; }
.board__score b { font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--display-weight); }
/* Phones: a narrower place column and score leave the name and its rank room for "Legenda klubu" on one line. */
@media (max-width: 419px) {
    .board > li { grid-template-columns: 26px minmax(0, 1fr) auto; gap: var(--space-2); padding: var(--space-3); }
    .board > li::before { font-size: var(--step-1); }
    .board__score b { font-size: var(--step-1); }
}

/* ---------- Badges (Odznaky) ---------- */
/* Each badge has its own hue (--badge) and emblem (ui.badge_emblem); locked = outlined and grey, earned = full colour. */
.emblem { flex: none; width: 56px; height: 56px; overflow: visible; }
.emblem__plate { fill: color-mix(in oklab, var(--badge) 24%, var(--bg-sunken)); stroke: var(--badge); stroke-width: 1.6; stroke-linejoin: round; }
.emblem__facet { fill: #fff; opacity: 0.07; }
.emblem__ring { fill: none; stroke: color-mix(in oklab, var(--badge) 45%, transparent); stroke-width: 0.8; }
.emblem__glyph { color: color-mix(in oklab, var(--badge) 72%, var(--text)); fill: currentColor; }
.emblem__glyph text { font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: -0.03em; }
.emblem__glyph .emblem__mark { font-size: 19px; }
.emblem__line { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

.badges { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.badge {
    --badge: var(--accent-2);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4) var(--space-3) var(--space-3);
    border-radius: var(--radius-l);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    overflow: hidden;
}
.badge--key-brands { --badge: #ffb03a; }
.badge--key-events { --badge: #4fcfc2; }
.badge--key-mixes { --badge: #ff7aa2; }
.badge--key-loyal { --badge: #ff6a55; }
.badge--key-brand_loyal { --badge: #f2c14e; }
.badge--key-nights { --badge: #9aa8ff; }
.badge--key-ratings { --badge: #d9d3c7; }
.badge--key-perfect { --badge: #ff6b1a; }
.badge__body { display: grid; gap: 4px; min-width: 0; padding-top: 2px; }
.badge__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.badge__name { min-width: 0; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.badge__flag { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); }
.badge__hint { font-size: var(--step--1); line-height: 1.4; color: var(--text-2); overflow-wrap: anywhere; hyphens: auto; }
.badge__meta { display: flex; align-items: center; gap: var(--space-2); margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--text-3); }
.badge__meta .icon { width: 14px; height: 14px; }
.badge__count { flex: none; font-variant-numeric: tabular-nums; }

.badge--locked .emblem__plate { fill: var(--bg-sunken); stroke: var(--line-strong); stroke-dasharray: 3 2.4; }
.badge--locked .emblem__ring, .badge--locked .emblem__facet { opacity: 0; }
.badge--locked .emblem__glyph { color: var(--text-3); opacity: 0.75; }
.badge--locked .badge__hint { color: var(--text-3); }

.badge--earned { border-color: color-mix(in oklab, var(--badge) 38%, var(--line)); background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--badge) 15%, transparent), transparent 62%), var(--bg-raised); }
.badge--earned .emblem { filter: drop-shadow(0 0 8px color-mix(in oklab, var(--badge) 45%, transparent)); }
.badge--earned .badge__earned { color: color-mix(in oklab, var(--badge) 70%, var(--text)); }

/* Secret, not earned yet: a mystery in smoke. */
.badge--mystery { border-style: dashed; border-color: color-mix(in oklab, var(--accent) 30%, var(--line)); background: radial-gradient(80% 120% at 100% 0%, color-mix(in oklab, var(--accent) 7%, transparent), transparent 70%), var(--bg-raised); }
.badge--mystery .emblem__plate { stroke: color-mix(in oklab, var(--accent) 55%, var(--line-strong)); }
.badge--mystery .emblem__glyph { color: var(--accent-2); opacity: 1; animation: mystery 3.2s ease-in-out infinite; }
.badge--mystery .badge__name { color: var(--text-2); }
.badge--mystery .badge__hint { font-style: italic; }

/* Secret and earned: a slowly turning ember rim and a foil sheen. */
@property --rim { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.badge--secret.badge--earned { border-color: transparent; background: linear-gradient(150deg, color-mix(in oklab, var(--badge) 22%, var(--bg-raised)), var(--bg-raised) 55%, color-mix(in oklab, var(--ember-4) 25%, var(--bg-raised))); }
.badge--secret.badge--earned::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--rim), var(--ember-3), var(--ember-1), var(--badge), var(--ember-4), var(--ember-2), var(--ember-3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: badge-rim 7s linear infinite;
}
.badge--secret.badge--earned::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 30%, rgb(255 236 200 / 0.09) 44%, rgb(255 150 60 / 0.08) 52%, transparent 66%) 0 0 / 260% 100%;
    animation: badge-foil 6s ease-in-out infinite;
    pointer-events: none;
}
.badge--secret.badge--earned .emblem { filter: drop-shadow(0 0 12px color-mix(in oklab, var(--badge) 70%, transparent)); }
.badge--secret.badge--earned .emblem__plate { fill: color-mix(in oklab, var(--badge) 34%, var(--bg-sunken)); stroke-width: 2; }
.badge--secret.badge--earned .badge__flag { color: var(--ember-1); }

@keyframes badge-rim { to { --rim: 360deg; } }
@keyframes badge-foil { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes mystery { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Mini emblems next to a name (leaderboards) */
.badge-row { display: inline-flex; flex-wrap: wrap; gap: 2px; vertical-align: middle; }
.badge-mini { display: inline-grid; place-items: center; width: 22px; height: 22px; }
.badge-mini .emblem { width: 22px; height: 22px; filter: drop-shadow(0 0 3px color-mix(in oklab, var(--badge) 45%, transparent)); }
.badge-mini .emblem__ring { display: none; }
.badge-mini .emblem__line { stroke-width: 2.8; }
.badge-mini.badge--secret .emblem__plate { stroke: var(--ember-1); }

/* Tiers: the frame climbs bronze, silver, gold, platinum, obsidian, then ember, glowing, molten and white-hot. */
.badge--key-tobaccos { --badge: #9bd36a; }
.badge--key-brands_done { --badge: #5fd08a; }
.badge--key-streak { --badge: #ff8f6b; }
.badge--key-own_mixes { --badge: #c78bff; }
.badge--key-teas { --badge: #8fd6a0; }
.badge--key-strength { --badge: #ff9a3c; }
.badge--key-photos { --badge: #7ab8ff; }
.badge--key-coals { --badge: #ff5a3c; }
.badge--key-wishes { --badge: #ffd36a; }
.badge--key-selflog { --badge: #e0b48a; }
.badge--key-years { --badge: #c9b8a0; }
.badge--key-marathon { --badge: #ffe066; }
.badge--key-blind_direct { --badge: #a58bff; }
.badge--key-blind_evenings { --badge: #6fd6ff; }
.badge--key-blind_podium { --badge: #e9c46a; }
.badge--key-blind_win { --badge: #ffd23f; }
.badge--key-blind_hattrick { --badge: #ff7ac6; }
.badge--key-blind_flawless { --badge: #9ff0ff; }
.badge--key-blind_streak { --badge: #4dd6a8; }
.badge--key-blind_unique { --badge: #ff8c69; }
.badge--frame-1 { --frame: #c27c48; --frame-2: #7a4520; }
.badge--frame-2 { --frame: #d6dde4; --frame-2: #7d8893; }
.badge--frame-3 { --frame: #ffd257; --frame-2: #b07a12; }
.badge--frame-4 { --frame: #e8f6ff; --frame-2: #8fc6d8; }
.badge--frame-5 { --frame: #a98bff; --frame-2: #231a33; }
.badge--frame-6 { --frame: var(--ember-2); --frame-2: var(--ember-4); }
.badge--frame-7 { --frame: var(--ember-1); --frame-2: var(--ember-3); }
.badge--frame-8 { --frame: var(--ember-1); --frame-2: var(--ember-3); }
.badge--frame-9 { --frame: #fff4d6; --frame-2: var(--ember-1); }

.emblem__frame { fill: none; stroke: none; }
.badge--earned .emblem__plate, .badge-mini[class*="badge--frame-"] .emblem__plate { stroke: var(--frame, var(--badge)); stroke-width: 2.2; }
:is(.badge--frame-3, .badge--frame-4, .badge--frame-5, .badge--frame-6, .badge--frame-7, .badge--frame-8, .badge--frame-9) .emblem__frame { stroke: var(--frame-2); stroke-width: 1.4; stroke-linejoin: round; }
:is(.badge--frame-5, .badge--frame-6, .badge--frame-7, .badge--frame-8, .badge--frame-9) .emblem__plate { fill: color-mix(in oklab, var(--frame-2) 55%, var(--bg-sunken)); stroke-width: 2.6; }
:is(.badge--frame-7, .badge--frame-8, .badge--frame-9) .emblem { filter: drop-shadow(0 0 10px color-mix(in oklab, var(--frame) 60%, transparent)); }
.badge--frame-9 .emblem { animation: tier-glow 3.6s ease-in-out infinite; }
.badge--frame-9.badge--earned { background: radial-gradient(120% 140% at 0% 0%, color-mix(in oklab, var(--frame-2) 22%, transparent), transparent 62%), var(--bg-raised); }
.badge--earned:is(.badge--frame-8, .badge--frame-9)::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    padding: 1.5px;
    border-radius: inherit;
    background: conic-gradient(from var(--rim), var(--ember-3), var(--ember-1), var(--frame), var(--ember-4), var(--ember-2), var(--ember-3));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: badge-rim 7s linear infinite;
}
.badge--earned:is(.badge--frame-8, .badge--frame-9) { border-color: transparent; }
@keyframes tier-glow { 0%, 100% { filter: drop-shadow(0 0 8px color-mix(in oklab, var(--frame) 50%, transparent)); } 50% { filter: drop-shadow(0 0 16px color-mix(in oklab, var(--frame-2) 85%, transparent)); } }

.badge__art { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.badge__art .emblem { width: 52px; height: 52px; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.badge__ring circle { fill: none; stroke-width: 3; }
.badge__ring-track { stroke: var(--surface-2); }
.badge__ring-fill { stroke: var(--badge); stroke-linecap: round; stroke-dasharray: var(--pct) 100; }
.badge__level {
    position: absolute;
    bottom: -4px;
    left: 50%;
    translate: -50% 0;
    min-width: 24px;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    background: var(--bg);
    border: 1.5px solid var(--frame, var(--line-strong));
    color: var(--frame, var(--text-2));
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}
.badge__pips { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.pip { width: 10px; height: 10px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--surface-2); opacity: 0.6; }
.pip--on { opacity: 1; background: var(--frame); }
.pip--frame-1 { --frame: #c27c48; }
.pip--frame-2 { --frame: #d6dde4; }
.pip--frame-3 { --frame: #ffd257; }
.pip--frame-4 { --frame: #e8f6ff; }
.pip--frame-5 { --frame: #a98bff; }
.pip--frame-6 { --frame: var(--ember-2); }
.pip--frame-7, .pip--frame-8 { --frame: var(--ember-1); }
.pip--frame-9 { --frame: #fff4d6; }
.badge__date { margin-left: auto; font-weight: 600; color: var(--text-3); }

@media (prefers-reduced-motion: reduce) {
    .badge--frame-9 .emblem, .badge--earned:is(.badge--frame-8, .badge--frame-9)::before, .badge--secret.badge--earned::before, .badge--secret.badge--earned::after, .badge--mystery .emblem__glyph { animation: none; }
}

/* ---------- Sbírka and Žár ---------- */
.meter { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--pct) * 1%); background: linear-gradient(90deg, var(--ember-3), var(--accent)); }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--space-2); align-items: baseline; }
.meter-row .meter { grid-column: 1 / -1; }
.meter-row__label { font-weight: 700; }
.meter-row--small { font-size: var(--step--1); color: var(--text-2); }
.meter-row--small .meter { height: 4px; }
.stamp { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1.5px solid var(--accent); border-radius: var(--radius-s); color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; rotate: -2deg; }
.stamp svg { width: 14px; height: 14px; }
.stamp--line { rotate: 0deg; border-style: dashed; justify-self: start; }
.tasted { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 1px 8px 1px 4px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 800; }
.tasted__icon, .tasted svg { width: 14px; height: 14px; }
.tasted--half { background: transparent; border: 1px dashed var(--ok); padding-left: 8px; }
.zar-summary__total { font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--display-weight); }
/* Jak získat žár: one row per rule, the Žár as a badge. */
.zar-rule-list { display: grid; list-style: none; margin: 0; padding: 0; }
.zar-rule { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 6px var(--space-3); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.zar-rule__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 14%, var(--bg-sunken)); color: var(--accent-2); }
.zar-rule__icon .icon { width: 17px; height: 17px; }
.zar-rule__what { min-width: 0; font-size: var(--step--1); line-height: 1.35; }
.zar-rule__tags { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.zar-rule__points { padding: 2px 10px; border-radius: var(--radius-pill); background: color-mix(in oklab, var(--accent) 22%, var(--bg-sunken)); border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent); color: var(--accent-2); font-size: 12px; font-weight: 800; }
@media (min-width: 560px) {
    .zar-rule { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .zar-rule__tags { grid-column: auto; justify-content: flex-end; max-width: 15em; }
}
.zar-never { padding-left: 0; }
.zar-never li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); align-items: start; }
.zar-never .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--text-3); }

.zar-history { display: grid; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.zar-history li { display: grid; grid-template-columns: auto 4.5em minmax(0, 1fr); gap: var(--space-2); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.zar-history__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in oklab, var(--accent) 14%, var(--bg-sunken)); color: var(--accent-2); }
.zar-history__icon .icon { width: 16px; height: 16px; }
.zar-history li[data-kind="achievement"] .zar-history__icon, .zar-history li[data-kind="badge"] .zar-history__icon { background: color-mix(in oklab, var(--ember-1) 22%, var(--bg-sunken)); color: var(--ember-1); }
.zar-history__points { color: var(--accent-2); }
.collection-brands { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.collection-brand__name { font-size: var(--step-1); }
.collection-flavours { display: grid; gap: 6px; list-style: none; margin: 0; }
.collection-flavours li { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; }
.collection-flavours li[hidden] { display: none; }

/* ---------- Recommendations ---------- */
.recs { display: grid; gap: var(--space-3); grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .recs { grid-template-columns: repeat(2, 1fr); } }
.recs__item { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.recs__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); line-height: 1.1; }
.recs__tea { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); color: var(--text-2); }

/* ---------- Navigation ---------- */
.appbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 60px;
    padding: 0 var(--gutter);
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.appbar__title { font-weight: 800; font-size: var(--step-1); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.topnav { display: none; gap: var(--space-1); margin-left: auto; }
.topnav a { padding: 8px 14px; border-radius: var(--radius-pill); color: var(--text-2); text-decoration: none; font-weight: 700; }
.topnav a:hover { color: var(--text); background: var(--surface); }
.topnav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (min-width: 900px) { .topnav { display: flex; } }
.appbar__feed { margin-left: auto; flex: none; }
.appbar__feed[aria-current="page"] { --btn-fg: var(--text); --btn-bg: var(--surface-2); }
.appbar__more { flex: none; }
@media (min-width: 900px) { .appbar__feed { display: none; } }
/* A page's own app bar item (the station's "Živě") takes the Feed icon's place. */
.appbar:has(> :not(.brand, .topnav, .appbar__feed, .appbar__more)) .appbar__feed { display: none; }
.appbar:has(> :not(.brand, .topnav, .appbar__feed, .appbar__more)) .appbar__more { margin-left: auto; }
/* With a page's own items the menu stays put: they sit on the right, on desktop just before the menu. */
.appbar:has(> .appbar__extra) .appbar__more { margin-left: 0; }
@media (min-width: 900px) { .appbar:has(> .appbar__extra) .topnav { margin-left: 0; } }
/* Narrow phones: the "Více" trigger keeps its name for screen readers but shows only the icon. */
@media (max-width: 399px) {
    .appbar__more .btn { width: var(--tap); padding: 0; }
    .appbar__more .btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1199px) { .topnav a { padding: 8px 9px; font-size: var(--step--1); } }

.tabbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    padding: 6px 8px calc(6px + var(--safe-bottom));
    background: color-mix(in oklab, var(--bg-raised) 88%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-top: 1px solid var(--line);
    /* Own compositor layer: the bar does not repaint with the page while scrolling. */
    transform: translateZ(0);
}
.tabbar--static { position: relative; border: 1px solid var(--line); border-radius: var(--radius-l); }
@media (min-width: 900px) { .tabbar:not(.tabbar--static) { display: none; } }
/*
 * iOS Safari 26 tints the status bar from the frontmost fixed box at the top edge that is over 10px tall and has a
 * solid background. The film grain (body::before) is such a box but transparent, so the page showed through behind
 * the clock. This strip sits above it; background-clip: text keeps it invisible while its colour is still sampled.
 */
.statusbar-tint { display: none; }
@media (hover: none) and (pointer: coarse) {
    .statusbar-tint { display: block; position: fixed; inset: 0 0 auto; z-index: 101; height: 12px; background-color: var(--bg); -webkit-background-clip: text; background-clip: text; pointer-events: none; }
}
/* Touch screens: no live blur behind the fixed bars; recomputing it every scroll frame is what flickers. */
@media (hover: none) {
    .tabbar, .appbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .tabbar { background: var(--bg-raised); }
    .appbar { background: var(--bg); }
}
.btn--block { white-space: normal; flex-shrink: 1; }
/* A button never outgrows its container: a long label (an event name) wraps, centred, instead of pushing the layout. */
.btn { max-width: 100%; }
.btn > span { min-width: 0; }
.empty .btn, .stack > .btn { white-space: normal; text-align: center; }

.tabbar a {
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 0;
    color: var(--text-3);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] svg { color: var(--accent-2); }

.tabbar__fab {
    justify-self: center;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-top: -26px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 30%, var(--ember-1), var(--accent) 55%, var(--ember-3));
    color: var(--accent-ink) !important;
    box-shadow: 0 0 0 5px var(--bg-raised), 0 10px 30px -6px var(--glow);
}
.tabbar__fab svg { width: 28px !important; height: 28px !important; color: var(--accent-ink) !important; }

/* ---------- Sheet + dialog ---------- */
.scrim {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgb(0 0 0 / 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-2);
}
.scrim[data-open] { opacity: 1; pointer-events: auto; }

.sheet {
    position: fixed;
    /* --kb / --vvh (lib/viewport.js): sit above an on-screen keyboard and fit the part of the screen left. */
    inset: auto 0 var(--kb, 0px);
    z-index: 70;
    max-height: min(88dvh, calc(var(--vvh, 100dvh) - 16px));
    display: flex;
    flex-direction: column;
    padding: 10px var(--gutter) calc(var(--space-5) + var(--safe-bottom));
    background: var(--bg-raised);
    border-top: 1px solid var(--line-strong);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    box-shadow: var(--shadow-2);
    translate: 0 105%;
    /* Closed: out of sight and out of the tab order once it has slid away. */
    visibility: hidden;
    transition: translate var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
.sheet[data-open] { translate: 0 0; visibility: visible; transition: translate var(--dur-3) var(--ease-out), visibility 0s; }
.sheet__grip { width: 44px; height: 5px; margin: 0 auto var(--space-4); border-radius: 9px; background: var(--line-strong); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 720px) {
    .sheet { inset: auto auto 50% 50%; width: min(520px, 92vw); border-radius: var(--radius-l); border: 1px solid var(--line-strong); translate: -50% calc(50% + 40px); opacity: 0; pointer-events: none; transition: translate var(--dur-3) var(--ease-out), opacity var(--dur-2), visibility 0s linear var(--dur-3); }
    .sheet[data-open] { translate: -50% 50%; opacity: 1; pointer-events: auto; transition: translate var(--dur-3) var(--ease-out), opacity var(--dur-2), visibility 0s; }
    .sheet__grip { display: none; }
}

.picklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.picklist button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 52px;
    padding: 0 var(--space-3);
    border: 0;
    border-radius: var(--radius-m);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.picklist button:hover { background: var(--surface); }
.picklist button[aria-selected="true"] { background: var(--accent-soft); color: var(--accent-2); font-weight: 800; }

/* ---------- Toasts ---------- */
.toasts {
    position: fixed;
    z-index: 90;
    /* Pinned to both gutters and centred, so a long message wraps inside the viewport instead of widening the box. */
    left: var(--gutter);
    right: var(--gutter);
    margin-inline: auto;
    bottom: calc(92px + var(--safe-bottom));
    display: grid;
    gap: var(--space-2);
    max-width: 440px;
    pointer-events: none;
}
@media (min-width: 900px) { .toasts { bottom: var(--space-6); } }
.kb-open .toasts { bottom: calc(var(--kb, 0px) + var(--space-3)); }
.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-m);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
    font-weight: 700;
    pointer-events: auto;
    animation: toast-in var(--dur-3) var(--ease-spring);
}
.toast svg { width: 22px; height: 22px; flex: none; }
.toast span { min-width: 0; overflow-wrap: anywhere; }
.toast--ok svg { color: var(--ok); }
.toast--queued svg { color: var(--warn); }
.toast--error { border-color: color-mix(in oklab, var(--danger) 50%, transparent); }
.toast--error svg { color: var(--danger); }
.toast[data-leaving] { animation: toast-out var(--dur-2) var(--ease-out) forwards; }

/* Connection banner */
.netbar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    justify-content: center;
    padding: 8px var(--gutter);
    background: var(--warn-soft);
    color: var(--warn);
    font-size: var(--step--1);
    font-weight: 700;
}

/* ---------- Loaders ---------- */
.topbar-progress { position: relative; height: 3px; overflow: hidden; background: var(--surface); border-radius: 3px; }
.topbar-progress::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--accent-hi, var(--accent-2)), var(--accent), transparent);
    box-shadow: 0 0 12px var(--glow);
    animation: slide 1.1s var(--ease-out) infinite;
}

/* The signature loader: one coal that breathes */
.ember-loader { display: inline-grid; place-items: center; gap: var(--space-2); color: var(--text-3); font-size: var(--step--1); font-weight: 700; }
.ember-loader .coal { --size: 44px; }
.ember-loader .coal__glow { animation: breathe 1.4s ease-in-out infinite; }

/* Three coals igniting in turn */
.coal-dots { display: inline-flex; gap: 6px; }
.coal-dots .coal { --size: 18px; }
.coal-dots .coal__lit { animation: ignite 1.2s ease-in-out infinite; }
.coal-dots .coal:nth-child(2) .coal__lit { animation-delay: 0.2s; }
.coal-dots .coal:nth-child(3) .coal__lit { animation-delay: 0.4s; }

/* Smoke wisp loader */
.smoke-loader { position: relative; width: 56px; height: 64px; }
.smoke-loader i {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: var(--text-3);
    filter: blur(5px);
    opacity: 0;
    animation: smoke-rise 2.1s ease-out infinite;
}
.smoke-loader i:nth-child(2) { animation-delay: 0.7s; }
.smoke-loader i:nth-child(3) { animation-delay: 1.4s; }

.skeleton {
    border-radius: var(--radius-s);
    background: linear-gradient(100deg, var(--surface) 30%, color-mix(in oklab, var(--surface-2) 70%, var(--accent) 6%) 50%, var(--surface) 70%);
    background-size: 300% 100%;
    animation: shimmer 1.5s linear infinite;
}
.skeleton--text { height: 0.9em; margin: 0.35em 0; }
.skeleton--title { height: 1.6em; width: 70%; }
.skeleton--img { aspect-ratio: 4 / 5; border-radius: 0; }
.skeleton--circle { border-radius: 50%; width: 36px; height: 36px; }

.ring-progress { --pct: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0); font-size: 12px; font-weight: 800; }
.ring-progress::before { content: ""; grid-area: 1 / 1; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-raised); }
.ring-progress span { grid-area: 1 / 1; position: relative; }

/* Pull-to-refresh smoke ring */
.smoke-ring { width: 46px; height: 46px; border-radius: 50%; border: 5px solid color-mix(in oklab, var(--text-2) 70%, transparent); filter: blur(1.4px); animation: ring-out 1.6s var(--ease-out) infinite; }

/* ---------- Empty states ---------- */
.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-7) var(--space-4); text-align: center; }
.empty__art { width: 120px; height: 120px; position: relative; display: grid; place-items: center; }
.empty__art .coal { --size: 64px; }
.empty__art::after { content: ""; position: absolute; inset: auto 20% 10%; height: 10px; border-radius: 50%; background: rgb(0 0 0 / 0.4); filter: blur(6px); z-index: -1; }
.empty__art > .icon { width: 64px; height: 64px; stroke-width: 1.5; color: var(--accent-2); }
.empty__art:has(> .icon) { border-radius: 50%; background: radial-gradient(closest-side, var(--accent-soft), transparent); }
.empty__art--mix { width: 160px; }
.empty__art--mix .empty__drop { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--tone) 85%, #fff), var(--tone)); box-shadow: 0 6px 18px rgb(0 0 0 / 0.35); }
.empty__art--mix .empty__drop:nth-child(1) { left: 14px; top: 34px; }
.empty__art--mix .empty__drop:nth-child(2) { left: 52px; top: 14px; z-index: 1; }
.empty__art--mix .empty__drop:nth-child(3) { right: 14px; top: 38px; }
.empty h3 { font-size: var(--step-2); }
.empty p { color: var(--text-2); max-width: 34ch; }

/* ---------- Upload ---------- */
.dropzone {
    display: grid;
    justify-items: center;
    gap: var(--space-3);
    padding: var(--space-6) var(--space-4);
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--radius-l);
    background: var(--bg-sunken);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--dur-2), background var(--dur-2);
}
.dropzone:hover,
.dropzone[data-over] { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 40px; height: 40px; color: var(--accent-2); }
.upload-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2); border-radius: var(--radius-m); background: var(--surface); }
.upload-item img, .upload-item .skeleton { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-s); }

/* ---------- Print: laminated station card (A6) ---------- */
.qr-card {
    width: 105mm;
    max-width: 100%;
    aspect-ratio: 105 / 148;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    padding: 9mm 8mm 7mm;
    border-radius: 6mm;
    background: #12100e;
    color: #f3ece4;
    box-shadow: var(--shadow-2);
    text-align: center;
}
.qr-card__num { font-family: var(--font-display); font-weight: 800; font-size: 34mm; line-height: 0.9; color: #ffb03a; letter-spacing: -0.04em; text-shadow: 0 0 10mm rgb(255 98 18 / 0.45); }
.qr-card__title { font-family: var(--font-display); font-weight: 800; font-size: 14mm; line-height: 1; color: #ffb03a; letter-spacing: -0.03em; text-shadow: 0 0 10mm rgb(255 98 18 / 0.45); }
.qr-card__qr { width: 46mm; padding: 3mm; border-radius: 3mm; background: #f3ece4; align-self: center; }
.qr-card__hint { font-weight: 700; font-size: 3.6mm; color: #bfb3a6; }

/* ---------- Admin: Servis grid ---------- */
.servis { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 640px) { .servis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .servis { grid-template-columns: repeat(5, 1fr); } }
.servis__tile {
    display: grid;
    gap: 6px;
    align-content: start;
    min-height: 128px;
    padding: var(--space-3);
    border-radius: var(--radius-m);
    border: 1px dashed var(--line-strong);
    background: transparent;
    color: var(--text-3);
    text-align: left;
    cursor: pointer;
}
.servis__tile b { font-family: var(--font-display); font-size: var(--step-3); font-weight: var(--display-weight); color: var(--text-2); line-height: 1; }
.servis__tile--on { border-style: solid; border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); background: linear-gradient(160deg, var(--accent-soft), var(--bg-raised) 60%); color: var(--text); }
.servis__tile--on b { color: var(--accent-2); }

/* ---------- Animations ---------- */
@keyframes slide { from { translate: -100% 0; } to { translate: 260% 0; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -200% 0; } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.8); } 100% { box-shadow: 0 0 0 8px rgb(255 255 255 / 0); } }
@keyframes pop { 0% { scale: 1; } 40% { scale: 1.35; } 100% { scale: 1; } }
@keyframes toast-in { from { opacity: 0; translate: 0 16px; scale: 0.96; } }
@keyframes toast-out { to { opacity: 0; translate: 0 10px; } }
@keyframes breathe { 0%, 100% { opacity: 0.25; filter: drop-shadow(0 0 0 transparent); } 50% { opacity: 1; filter: drop-shadow(0 0 10px var(--glow)); } }
@keyframes ignite { 0%, 100% { opacity: 0.15; } 40% { opacity: 1; } }
@keyframes smoke-rise { 0% { opacity: 0; translate: 0 0; scale: 0.6; } 20% { opacity: 0.7; } 100% { opacity: 0; translate: 6px -52px; scale: 2.2; } }
@keyframes ring-out { 0% { scale: 0.4; opacity: 0.9; } 100% { scale: 1.4; opacity: 0; } }

/* ---------- Ratings: ours first, the world as a quiet reference ---------- */
/* Club rating: accent, labelled "v klubu", always the loudest number on the card or page. */
.club-score { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; line-height: 1; }
.club-score__label { flex-basis: 100%; margin-bottom: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.club-score__num { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-3); letter-spacing: var(--display-tracking); font-variant-numeric: tabular-nums; color: var(--accent-2); text-shadow: 0 0 18px var(--glow); }
.club-score__max { font-size: var(--step--1); font-weight: 800; color: var(--text-3); }
.club-score__count { font-size: var(--step--1); font-weight: 700; color: var(--text-2); white-space: nowrap; }
.club-score--hero { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px var(--space-3); }
.club-score--hero .club-score__label { grid-column: 1 / -1; flex-basis: auto; }
.club-score--hero .club-score__value { display: inline-flex; align-items: baseline; gap: 4px; }
.club-score--hero .club-score__num { font-size: var(--step-5); }
.club-score--hero .club-score__side { display: grid; gap: 6px; justify-items: start; }
.club-card { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); background: linear-gradient(160deg, var(--accent-soft), var(--bg-raised) 60%); }
.club-card .card__body { display: grid; gap: var(--space-3); }

/* World rating: smaller, outlined, muted; never the same weight as ours. */
.world-ref { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 3px 8px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); color: var(--text-3); font-size: 12px; font-weight: 700; line-height: 1.3; }
.world-ref__label { white-space: nowrap; }
.world-ref__num { color: var(--text-2); font-variant-numeric: tabular-nums; }
.world-ref__count { color: var(--text-3); font-weight: 600; white-space: nowrap; }
.world-ref .coals { filter: grayscale(0.7); opacity: 0.75; }
.world-ref--none { font-weight: 600; }

/* Unrated: outlined, empty coals; reads as "no score yet", never as 0/10. */
.coals--empty .coal { color: var(--text-3); }
.coals--empty .coal svg { opacity: 0.8; }
.unrated { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--text-3); font-size: var(--step--1); font-weight: 700; line-height: 1.3; }
.unrated--hero { display: grid; gap: 6px; justify-items: start; font-size: var(--step-0); color: var(--text-2); }
.unrated__hint { font-size: var(--step--1); font-weight: 600; color: var(--text-3); }

/* Strength with its word; unknown strength is hollow bars and says so. */
.strength-meter { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.strength-meter__label { font-size: var(--step--1); font-weight: 700; color: var(--text-2); line-height: 1.2; }
.strength--unknown i { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.strength-meter--unknown .strength-meter__label { color: var(--text-3); font-weight: 600; }

/* Names: the Latin name, the Cyrillic original faint below it on detail pages. */
.name-original { display: block; font-size: var(--step--1); color: var(--text-3); line-height: 1.3; }
.name-aliases { display: block; font-size: var(--step--1); color: var(--text-3); line-height: 1.3; overflow-wrap: anywhere; }
.name-aliases--full { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.name-alias { white-space: nowrap; color: var(--text-2); }
.name-alias__market { margin-left: 2px; padding: 0 4px; border-radius: 4px; background: var(--surface-2); color: var(--text-3); font-size: 0.75em; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; }
.tobacco-card__names { display: grid; gap: 2px; min-width: 0; }
.tobacco-card__name { overflow-wrap: anywhere; }
.tobacco-card__scores { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-top: auto; }
.tobacco-card__scores > :last-child:not(:first-child) { margin-left: auto; }

/* Brand filter on /tabaky */
.brand-filter { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-2) var(--space-3); }
.brand-filter .dropdown { flex: 1 1 220px; max-width: 360px; }
.brand-head { display: grid; gap: 4px; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); }
.brand-head__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px var(--space-3); }
.brand-head__title h2 { font-size: var(--step-2); }
.recs > li { display: grid; }
.recs__item { align-content: start; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-3); }
.recs__item > * { grid-column: 2; min-width: 0; }
.recs__item > .recs__pic { grid-column: 1; grid-row: 1 / span 6; align-self: start; }
.recs__score { margin-top: var(--space-1); }
.recs__place { justify-self: start; }
.world-want__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-2); letter-spacing: var(--display-tracking); line-height: 1.1; }

/* ---------- Servis: what is in the bowl ---------- */
.smoke-pick { display: grid; gap: var(--space-2); }
.smoke-pick__picked { display: flex; flex-wrap: wrap; gap: 6px; }
.smoke-pick__picked:empty { display: none; }
.smoke-pick__chip { gap: 6px; padding-right: 4px; white-space: normal; }
.smoke-pick__pct { width: 4.2em; min-height: 32px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg); color: var(--text); font: inherit; text-align: right; }
.smoke-pick__remove { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.smoke-pick__results { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: min(320px, 50dvh); overflow: auto; scrollbar-gutter: stable; }
.smoke-pick__results:empty { display: none; }
.smoke-pick__result { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; min-height: 48px; padding: 8px var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-sunken); color: var(--text); text-align: left; cursor: pointer; }
.smoke-pick__result > span:first-child { display: grid; min-width: 0; }
.smoke-pick__result small { color: var(--text-3); }
.smoke-pick__typed summary { cursor: pointer; color: var(--accent-2); }

/* ---------- Station: what is in the bowl ---------- */
.smoke-info .card__body { display: grid; gap: var(--space-3); }
.smoke-info__item { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.smoke-info__names { display: grid; gap: 4px; min-width: 0; }
.smoke-info__name { font-weight: 800; color: var(--text); text-decoration: none; }
.smoke-info__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.smoke-info__desc { margin: 0; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.smoke-info__parts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.smoke-info__dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: oklch(0.68 0.13 var(--hue)); vertical-align: 1px; }
.smoke-info__names .name-aliases { margin-top: -2px; }

/* Strength vote: five steps of rising bars; the picked one and those below it glow */
.strength-vote { display: grid; gap: 6px; min-width: 0; }
.strength-vote__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); min-width: 0; }
.strength-vote__label { font-weight: 700; font-size: var(--step--1); color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.strength-vote__picked { font-size: var(--step--1); color: var(--text); white-space: nowrap; }
.strength-vote__steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--radius-m); background: var(--bg-sunken); }
.strength-vote__step { display: flex; align-items: flex-end; justify-content: center; min-height: 44px; padding: 8px 0; border: 0; border-radius: var(--radius-s); background: transparent; cursor: pointer; }
.strength-vote__step i { display: block; width: 10px; height: var(--h); border-radius: 3px; background: var(--line-strong); transition: background .15s; }
.strength-vote__step[aria-pressed="true"] { background: var(--surface-2); box-shadow: var(--shadow-1); }
.strength-vote__step[aria-pressed="true"] i,
.strength-vote__step:has(~ [aria-pressed="true"]) i { background: linear-gradient(var(--accent-hi, var(--accent-2)), var(--accent)); }
.strength-vote__step:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.strength-vote__ends { display: flex; justify-content: space-between; font-size: var(--step--1); color: var(--text-3); }
.strength-vote__guests { margin: 0; }
@media (prefers-reduced-motion: reduce) { .strength-vote__step i { transition: none; } }

/* ---------- Appbar extras: live chip, QR scanner ---------- */
.appbar__extra { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; flex: none; }
.appbar__extra ~ .appbar__more { margin-left: 0; }
/* The live pill: compact, glowing, readable on the narrowest phone next to the scanner and "Více". */
.appbar__live { height: 30px; gap: 6px; padding: 0 11px 0 9px; font-size: 13px; font-weight: 800; letter-spacing: 0.01em; box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 60%, transparent), 0 4px 16px -4px color-mix(in oklab, var(--accent) 70%, transparent); }
.appbar__live:hover { --chip-bg: color-mix(in oklab, var(--accent) 88%, white); }
/* A 44px tap target around the 30px pill. */
.appbar__live { position: relative; }
.appbar__live::after { content: ''; position: absolute; inset: -7px -3px; }
.appbar__live .chip__dot { width: 8px; height: 8px; box-shadow: 0 0 0 2px color-mix(in oklab, #fff 30%, transparent); }
@media (max-width: 419px) {
    .appbar { gap: var(--space-2); }
    .appbar__scan { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
}
/* Below 350px the pill keeps only its dot. */
@media (max-width: 349px) {
    .appbar__live { padding: 0 9px; }
    .appbar__live-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.scan__video { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); background: var(--bg-sunken); }
.scan__status { margin: 0; min-height: 1.4em; text-align: center; }
.scan__status[data-problem="1"] { color: var(--warn); }

/* ---------- Station strip: the stations serving now, a swipe row ---------- */
.station-strip { display: flex; flex-wrap: nowrap; gap: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 24px; padding: 2px 0 6px; scrollbar-width: thin; }
.station-strip[data-more-end] { mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.station-strip[data-more-start] { mask-image: linear-gradient(to right, transparent, #000 40px); }
.station-strip[data-more-start][data-more-end] { mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.station-strip__chip { flex: none; display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-2); border-radius: var(--radius-m); border: 1px solid var(--line-strong); background: var(--bg-sunken); color: var(--text); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); text-decoration: none; scroll-snap-align: start; }
.station-strip__chip[aria-current="page"] { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }

/* ---------- Dýmky večera: every bowl of the evening, sticky under the appbar (docked while typing) ---------- */
.appbar__live { text-decoration: none; }
.evening-nav {
    position: sticky;
    top: 60px;
    z-index: 20;
    margin: calc(-1 * var(--space-2)) calc(-1 * var(--gutter)) 0;
    padding: 2px var(--gutter) var(--space-2);
    background: color-mix(in oklab, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}
.bowl-switch { display: grid; gap: var(--space-2); }
.bowl-switch__row { display: flex; align-items: center; gap: var(--space-2); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 24px; padding: 8px 6px 4px; scrollbar-width: none; }
.bowl-switch__row::-webkit-scrollbar { display: none; }
.bowl-switch__row[data-more-end] { mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
.bowl-switch__row[data-more-start] { mask-image: linear-gradient(to right, transparent, #000 40px); }
.bowl-switch__row[data-more-start][data-more-end] { mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.bowl-switch__round { flex: none; padding-left: var(--space-1); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.bowl-switch__round:not(:first-child) { margin-left: var(--space-2); padding-left: var(--space-3); border-left: 1px dashed var(--line-strong); }
.bowl-switch__round.is-now { color: var(--accent-2); }
.bowl-switch__chip { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-m); border: 1px solid var(--line-strong); background: var(--bg-sunken); text-decoration: none; scroll-snap-align: start; transition: border-color var(--dur-1, 120ms) ease, background var(--dur-1, 120ms) ease; }
.bowl-switch__chip .cover-tile { --tile: 44px; padding: 3px; }
.bowl-switch__chip:hover { border-color: var(--accent); }
.bowl-switch__chip[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent), 0 0 14px var(--glow); }
.bowl-switch__no { position: absolute; top: -6px; left: -6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; 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: 12px; line-height: 1; color: var(--text-2); }
.bowl-switch__no .icon { width: 12px; height: 12px; }
.bowl-switch__chip[aria-current="page"] .bowl-switch__no { color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent); }
.bowl-switch__chip.is-done .bowl-switch__no { color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.bowl-switch__done { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: var(--bg); box-shadow: 0 0 0 2px var(--bg); }
.bowl-switch__done .icon { width: 12px; height: 12px; stroke-width: 3; }
.bowl-switch__all { flex: none; display: grid; place-items: center; width: 44px; height: 52px; border-radius: var(--radius-m); border: 1px dashed var(--line-strong); color: var(--text-2); text-decoration: none; scroll-snap-align: end; }
.bowl-switch__all:hover { color: var(--accent-2); border-color: var(--accent); }
.bowl-switch__all .icon { width: 22px; height: 22px; }
.bowl-switch__moved { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-m); background: var(--accent-soft); color: var(--accent-2); font-weight: 700; text-decoration: none; }
.bowl-switch__moved span { flex: 1; min-width: 0; }
.evening__next { margin-top: var(--space-1); }

/* ---------- Hodnotit during an evening: the way to its bowls ---------- */
.tonight-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent); border-radius: var(--radius-l); background: linear-gradient(90deg, var(--accent-soft), transparent 85%); color: var(--text); text-decoration: none; }
.tonight-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); }
.tonight-card__icon .icon { width: 22px; height: 22px; }
.tonight-card__text { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.tonight-card__text b { overflow-wrap: anywhere; }

/* ---------- Station: the evening ---------- */
.evening .card__body { display: grid; gap: var(--space-2); }
.evening__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.evening__head .round-head__no + .evening__title { margin-right: auto; }

/* Rounds of Dýmky večera: each its own band with a numbered header. */
.rounds { display: grid; gap: var(--space-6); }
.round { display: grid; gap: var(--space-3); min-width: 0; }
.round + .round { padding-top: var(--space-5); border-top: 1px dashed var(--line-strong); }
.round-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); padding: 10px var(--space-3); border-radius: var(--radius-l); background: linear-gradient(90deg, var(--surface-2), transparent 85%); }
.round-head--live { background: linear-gradient(90deg, var(--accent-soft), transparent 85%); }
.round-head__no { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-strong); font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); color: var(--text); }
.round-head--live .round-head__no { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 16px var(--glow); }
.round-head__title { margin-right: auto; font-size: var(--step-1); }
.round-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); font-size: var(--step--1); color: var(--text-2); }
.round-head__count { display: inline-flex; align-items: center; gap: 4px; }
.round-head__avg { display: inline-flex; align-items: center; gap: 6px; }
.round-head__avg b { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-0); color: var(--text); }
.evening__head .round-head__no { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 14px var(--glow); }
.evening__title { font-size: var(--step-1); }
.evening__progress { color: var(--text-2); font-size: var(--step--1); white-space: nowrap; }
.evening__progress b { color: var(--accent-2); }
.evening__progress--done b { color: var(--ok, var(--accent-2)); }
.evening__nudge { margin: 0; }
.evening__round { font-size: var(--step-0); color: var(--text-2); }
/* ---------- Bowls of the evening, by station (guest lists) ---------- */
.board--stations > li { position: relative; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.board--stations > li::before { content: none; }
.board--stations > li:nth-child(1) { border-color: var(--line); background: var(--bg-raised); }
.bowl-row:not(.is-done) { border-style: dashed; }
.bowl-row__pic { position: relative; display: block; }
.bowl-row__pic .cover-tile { --tile: 64px; }
.bowl-row__no {
    position: absolute;
    top: -6px;
    left: -6px;
    display: grid;
    place-items: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    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: 14px;
    line-height: 1;
    color: var(--text-2);
}
.bowl-row__no .icon { width: 14px; height: 14px; }
.bowl-row.is-done .bowl-row__no { color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.bowl-row__main { display: grid; justify-items: start; gap: 2px; min-width: 0; padding-top: 2px; }
.bowl-row__brand { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-3); overflow-wrap: break-word; max-width: 100%; }
.bowl-row__link { color: var(--text); text-decoration: none; min-width: 0; max-width: 100%; }
.bowl-row__link b { display: block; font-size: var(--step-0); line-height: 1.25; overflow-wrap: break-word; }
/* The whole row opens the bowl; the hookah link and chips sit above that. */
.bowl-row__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bowl-row__link:focus-visible { outline: none; }
.bowl-row__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.bowl-row__hookah { position: relative; z-index: 1; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bowl-row__mark { position: relative; z-index: 1; margin-top: 4px; }
.bowl-row__mark.chip { height: 24px; padding: 0 8px; font-size: 12px; gap: 4px; }
.bowl-row__mark--todo { font-size: 12px; font-weight: 700; color: var(--text-3); }
.bowl-row__main .chip { position: relative; z-index: 1; }
.bowl-row__score { display: grid; justify-items: end; text-align: right; }
.bowl-row__score b { font-family: var(--font-display); font-size: var(--step-2); font-weight: var(--display-weight); line-height: 1.1; }
.bowl-row__foot { grid-column: 1 / -1; position: relative; z-index: 1; min-width: 0; }
/* Guest lists of the evening: the score sits under the name, cards in columns on wider screens. */
.board--stations > li.bowl-row--full { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "pic main" "pic score"; gap: 6px var(--space-4); padding: var(--space-4); border-radius: var(--radius-l); }
.bowl-row--full > .bowl-row__pic { grid-area: pic; }
.bowl-row--full > .bowl-row__main { grid-area: main; }
.bowl-row--full > .bowl-row__score { grid-area: score; display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); text-align: left; align-self: start; }
.bowl-row--full > .bowl-row__score b { font-size: var(--step-3); }
.bowl-row--full .bowl-row__pic .cover-tile { --tile: 84px; }
.bowl-row--full .bowl-row__link b { font-size: var(--step-1); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.bowl-row--full > .bowl-row__foot { grid-column: 1 / -1; }
/* Every card of a row shares its tracks (subgrid): header, score, blind tips and raters line up whatever each card holds. */
@supports (grid-template-rows: subgrid) {
    .board--stations:not(.board--compact) > li.bowl-row--full {
        grid-row: span 4;
        grid-template-rows: subgrid;
        grid-template-areas: "pic main" "pic score" "tips tips" "foot foot";
        row-gap: var(--space-2);
    }
    .bowl-row--full > .bowl-row__main { align-self: start; }
    .bowl-row--full > .bowl-row__tips { grid-area: tips; align-self: stretch; display: flex; flex-direction: column; gap: var(--space-2); }
    .bowl-row--full > .bowl-row__tips > .bowl-tips__who { margin-top: auto; }
    .bowl-row--full > .bowl-row__tips:not(.bowl-tips) { align-items: flex-start; }
    .bowl-row--full > .bowl-row__foot:not(.bowl-row__tips) { grid-area: foot; align-self: end; }
}
@media (min-width: 760px) {
    .board--stations:not(.board--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
    .bowl-row--full .bowl-row__pic .cover-tile { --tile: 104px; }
}
@media (min-width: 1100px) {
    .board--stations:not(.board--compact) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .board--stations:not(.board--compact) .bowl-row--full > .bowl-row__score { flex-wrap: nowrap; }
    .board--stations:not(.board--compact) .bowl-row--full > .bowl-row__score b { font-size: var(--step-2); }
}
.board--compact { gap: 6px; }
.board--compact > li { gap: var(--space-3); min-height: 60px; padding: 8px var(--space-3); border-radius: var(--radius-s); }
.board--compact .bowl-row__pic .cover-tile { --tile: 44px; padding: 3px; }
.board--compact .bowl-row__no { top: -5px; left: -5px; min-width: 22px; height: 22px; padding: 0 5px; font-size: 12px; }
.board--compact .bowl-row__link b { font-size: var(--step--1); }
.board--compact .bowl-row__score b { font-size: var(--step-1); }

.smoke-cover--tins { position: relative; }
.smoke-cover--tins img { position: absolute; width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.35)); }
.smoke-cover--tins img:nth-child(1) { left: 6%; top: 6%; }
.smoke-cover--tins img:nth-child(2) { right: 6%; bottom: 6%; }
.smoke-cover--3 img { width: 54%; height: 54%; }
.smoke-cover--3 img:nth-child(1) { left: 23%; top: 4%; }
.smoke-cover--3 img:nth-child(2) { left: 4%; right: auto; bottom: 4%; }
.smoke-cover--3 img:nth-child(3) { right: 4%; bottom: 4%; }
.smoke-cover--initial {
    font-family: var(--font-display);
    font-weight: var(--display-weight);
    font-size: calc(var(--tile) * 0.46);
    line-height: 1;
    color: oklch(0.92 0.06 var(--hue));
    background: radial-gradient(90% 90% at 35% 25%, oklch(0.5 0.12 var(--hue)), oklch(0.3 0.08 var(--hue)));
    box-shadow: inset 0 0 0 1px oklch(0.6 0.1 var(--hue) / 0.5);
}
.smoke-cover--mystery { font-family: var(--font-display); font-weight: var(--display-weight); font-size: calc(var(--tile) * 0.5); line-height: 1; color: var(--text-3); }

.raters { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.raters__summary { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; cursor: pointer; list-style: none; border-radius: var(--radius-s); }
.raters__summary::-webkit-details-marker { display: none; }
.raters__summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.raters__stack { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 6px 4px 0; }
.raters__face { position: relative; flex: none; }
.raters__face .avatar { --size: 36px; }
.raters__score {
    position: absolute;
    z-index: 2;
    right: -5px;
    bottom: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--bg);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-2);
}
.raters__more { margin-left: 8px; font-size: 12px; font-weight: 800; color: var(--text-3); }
.spread { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); align-items: end; gap: 4px; height: 84px; margin: 12px 0 0; padding: 16px 0 18px; }
.spread__slot { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.spread__slot i { width: 100%; height: max(3px, calc(var(--h) * 100%)); border-radius: 3px; background: var(--line); }
.spread__slot i.is-on { background: color-mix(in oklab, var(--accent) calc(var(--s) * 10%), var(--text-3)); }
.spread__slot b { position: absolute; bottom: calc(var(--h, 0) * 100% + 2px); font-size: 11px; color: var(--text-2); }
.spread__axis { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-3); }
.raters__chevron { flex: none; margin-left: auto; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out); }
.raters[open] .raters__chevron { transform: rotate(180deg); }
.raters__list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.raters__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 2.2ch; align-items: center; gap: var(--space-2); min-height: 36px; }
.raters__item .avatar { --size: 28px; }
.raters__item > b { text-align: right; font-family: var(--font-display); font-weight: var(--display-weight); }
.raters__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .raters__chevron { transition: none; } }

/* ---------- Infographic pieces (components/_info.html.twig) ---------- */
.fact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .fact-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } .fact-row--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fact-row--n4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (max-width: 639px) {
    .fact-row--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fact-row--n3 .fact { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; padding: 10px 6px; text-align: center; }
    .fact-row--n3 .fact__value { justify-content: center; }
    .fact-row--n3 .fact__label { letter-spacing: 0.04em; hyphens: none; }
}
.mix-mini { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .mix-mini { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }
.mix-mini__item { display: flex; align-items: center; gap: var(--space-3); min-width: 0; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-raised); color: inherit; text-decoration: none; }
.mix-mini__item:hover { border-color: var(--line-strong); }
.mix-mini__item > .icon { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--text-3); }
.mix-mini__item .cover-tile, .mix-mini__item .smoke-cover { --tile: 48px; }
.mix-mini__text { display: grid; gap: 2px; min-width: 0; }
.mix-mini__text b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.fact { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-2); min-width: 0; padding: 10px var(--space-3); border-radius: var(--radius-m); background: var(--surface); border: 1px solid var(--line); }
.fact__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); }
.fact__icon .icon { width: 18px; height: 18px; }
.fact__body { display: grid; gap: 2px; min-width: 0; }
.fact__label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.fact__value { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; font-weight: 700; overflow-wrap: break-word; }
.fact__value .coals { flex: none; }
.eyebrow--icon { display: flex; align-items: center; gap: 6px; }
.eyebrow--icon .icon { width: 15px; height: 15px; color: var(--accent-2); }
.btn > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty .btn, .stack > .btn { max-width: 100%; }
.empty .btn > span:last-child, .stack > .btn > span:last-child { white-space: normal; }
.fact__world { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; color: var(--text-2); }
.fact__world .coals { filter: grayscale(0.7); opacity: 0.75; }

.strength-scale { display: grid; gap: 8px; }
.strength-scale__track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; height: 14px; margin-top: calc(12px + var(--rows, 1) * 12px); }
.strength-scale__step { border-radius: 4px; background: color-mix(in oklab, var(--accent) calc(var(--level) * 18%), var(--surface-2)); }
.strength-scale__pin {
    position: absolute;
    left: calc((var(--at) - 0.5) * 20%);
    bottom: calc(100% + 4px + var(--row) * 12px);
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50% 50% 50% 0;
    rotate: -45deg;
    border: 2px solid var(--bg);
}
.strength-scale__dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: 0; }
.strength-scale__pin--maker { background: var(--accent); }
.strength-scale__pin--ratings { background: var(--text-2); }
.strength-scale__pin--guests { background: var(--ok); }
.strength-scale__pin--club { background: var(--brass-2); }
.strength-scale__ends { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--text-3); }
.strength-scale__legend { display: flex; flex-wrap: wrap; gap: 6px var(--space-4); margin: 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--text-2); }
.strength-scale__legend b { color: var(--text); }

.mini-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 6px; height: 104px; padding: 18px 0; position: relative; }
.mini-bars__col { position: relative; display: flex; align-items: flex-end; height: 100%; }
.mini-bars__col i { width: 100%; height: max(3px, calc(var(--h) * 100%)); border-radius: 4px 4px 2px 2px; background: color-mix(in oklab, var(--accent) calc(var(--s) * 10%), var(--text-3)); }
.mini-bars__value { position: absolute; left: 0; right: 0; bottom: calc(max(3px, var(--h) * 100%) + 2px); text-align: center; font-size: 11px; font-weight: 800; color: var(--text-2); }
.mini-bars__label { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-size: 11px; font-weight: 700; color: var(--text-3); }

.brand-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .brand-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand-stats .stat > b.brand-stats__strength { font-size: var(--step-1); line-height: 1.2; }

.line-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .line-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .line-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.line-card { display: grid; grid-template-rows: auto 1fr; }
.line-card--gone { opacity: 0.75; }
.line-card__tins { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 104px; padding: var(--space-3); background: radial-gradient(80% 100% at 50% 100%, var(--surface-2), var(--bg-sunken)); border-bottom: 1px solid var(--line); overflow: hidden; }
/* Packshots and wide banners alike: each fits its own tinted slot, never cropped or overlapped. */
.line-card__tins img { flex: 1 1 0; min-width: 0; max-width: 96px; height: 80px; padding: 4px; object-fit: contain; border-radius: var(--radius-m); background: color-mix(in oklab, var(--surface-2) 70%, transparent); filter: drop-shadow(0 4px 8px rgb(0 0 0 / 0.3)); }
.line-card__tins .cover-tile { margin-bottom: var(--space-3); }
.line-card__body { display: grid; align-content: start; gap: 8px; padding: var(--space-4); }
.line-card__link { color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--step-1); line-height: 1.15; overflow-wrap: break-word; }
.line-card__link::after { content: ""; position: absolute; inset: 0; }
.line-card:has(.line-card__link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.line-card__link:focus-visible { outline: none; }
.line-card__meta, .line-card__scores { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); }
.line-card__count { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 12px; font-weight: 800; }
.line-card .clamp { position: relative; z-index: 1; }
.line-card .clamp__text { font-size: var(--step--1); }

.clamp__text { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 4); line-clamp: var(--lines, 4); overflow: hidden; }
.clamp.is-open .clamp__text { display: block; -webkit-line-clamp: unset; line-clamp: none; }
.clamp__more { position: relative; z-index: 1; margin-top: 4px; padding: 6px 0; min-height: 32px; border: 0; background: none; color: var(--accent-2); font: inherit; font-weight: 800; cursor: pointer; }
.clamp__more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- One-click sign-up from the profile ---------- */
.quick-signup { width: 100%; min-width: 0; padding-inline: var(--space-3) var(--space-4); }
.quick-signup__face { --size: 28px; box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent-ink) 25%, transparent); }
.quick-signup__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.quick-signup__edit summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text-2); font-size: var(--step--1); font-weight: 700; cursor: pointer; list-style: none; }
.quick-signup__edit summary::-webkit-details-marker { display: none; }
.quick-signup__edit summary .icon { width: 16px; height: 16px; }
.quick-signup__edit[open] summary { margin-bottom: var(--space-2); }

.nowrap { white-space: nowrap; }

/* Only the picked row of a picklist carries its check. */
.picklist button[aria-selected="false"] > .icon:last-child { opacity: 0; }

/* "Složení · vidíš jen ty": a host's view of a concealed bowl (bowl/_rate.html.twig). */
.host-recipe { margin-top: var(--space-2); }
.host-recipe > summary { cursor: pointer; list-style: none; gap: 4px; }
.host-recipe > summary::-webkit-details-marker { display: none; }
.recipe__share { font-weight: 800; }
.host-recipe__body { margin-top: var(--space-2); font-size: var(--step--1); overflow-wrap: anywhere; }
