/* =========================================================
   Přátelé Pepovy Pleše - styly webu (jeden soubor pro všechny stránky)
   Tmavý vzhled s fialovo-růžovou značkou, mobile-first.
   ========================================================= */

:root {
    --bg: #0c0a0e;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.11);
    --border-strong: rgba(255, 255, 255, 0.2);

    --text: #f5eff4;
    --muted: #b3a6b0;
    --faint: #7d717a;

    --brand: #962a87;
    --brand-light: #c447b1;
    --pink: #ffd7f2;
    --brand-glow: rgba(150, 42, 135, 0.35);

    --success: #4cc38a;
    --warning: #f0b347;
    --danger: #ff6b7d;

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;

    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --header-h: 68px;
    --container: 1160px;

    --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-logo: 'Karantina', 'Outfit', sans-serif;

    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Pozadí - obrázek turnaje ztlumený přechodem, ať je text vždy čitelný */
.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 15% 0%, rgba(150, 42, 135, 0.28), transparent 55%),
        linear-gradient(180deg, rgba(12, 10, 14, 0.55) 0%, rgba(12, 10, 14, 0.85) 60%, var(--bg) 100%),
        url(/assets/img/PPP-website.png) center / cover no-repeat;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--pink);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex: 1;
    padding: 40px 0 64px;
}

/* Úvodní stránka: když je okno vyšší než obsah, je obsah svisle na středu */
main:has(> .container > .hero) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
}

/* ---------------------------------------------------------
   Hlavička
   --------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(12, 10, 14, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    flex-shrink: 0;
}

.logo:hover {
    text-decoration: none;
}

.logo__mark {
    font-family: var(--font-logo);
    font-size: 2.3rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    /* Šikmé písmo přesahuje vpravo - bez odsazení by přechod (background-clip) poslední písmeno usekl */
    display: inline-block;
    padding: 0 0.18em 0 0.04em;
    margin-right: -0.1em;
    background: linear-gradient(135deg, #fff 0%, var(--pink) 60%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo__text {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text);
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover {
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

.nav__link.is-active {
    color: var(--text);
    background: var(--surface-strong);
}

.nav__link .bi {
    display: none;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.icon-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--muted);
    font-size: 1.15rem;
    transition: color 0.2s, background-color 0.2s;
}

.icon-link:hover {
    color: var(--text);
    background: var(--surface);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Tablet a mobil: menu se schová pod hamburger */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 12px 16px 20px;
        background: #141017;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .site-header.is-open .nav {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        padding: 12px 14px;
        border-radius: var(--radius-s);
        font-size: 1rem;
    }

    .nav__link .bi {
        display: inline-block;
        width: 20px;
        color: var(--pink);
    }

    .nav__actions {
        margin: 8px 0 0;
        padding-top: 12px;
        border-top: 1px solid var(--border);
        justify-content: space-between;
    }
}

@media (max-width: 420px) {
    .logo__text {
        display: none;
    }
}

/* ---------------------------------------------------------
   Patička
   --------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(12, 10, 14, 0.6);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.site-footer a {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer a:hover {
    color: var(--text);
}

@media (max-width: 600px) {
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__links {
        justify-content: center;
    }
}

/* ---------------------------------------------------------
   Tlačítka
   --------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    font-size: 0.97rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--brand-light), var(--brand));
    color: #fff;
    box-shadow: 0 8px 24px var(--brand-glow);
}

.btn--primary:hover {
    box-shadow: 0 12px 32px rgba(196, 71, 177, 0.45);
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface-strong);
}

.btn--sm {
    min-height: 38px;
    padding: 6px 16px;
    font-size: 0.88rem;
}

.btn--block {
    width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------------------------------------------------------
   Nadpisy stránek a sekcí
   --------------------------------------------------------- */
.page-head {
    margin-bottom: 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 215, 242, 0.25);
    border-radius: 999px;
    background: rgba(150, 42, 135, 0.16);
    color: var(--pink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page-head h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.page-head p {
    margin-top: 10px;
    max-width: 640px;
    color: var(--muted);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 1.2rem;
}

.section-title .bi {
    color: var(--pink);
}

/* ---------------------------------------------------------
   Karty
   --------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.card__title .bi {
    color: var(--pink);
}

.card__body {
    padding: 22px;
}

.card__foot {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
}

.empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--muted);
}

.empty .bi {
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
    color: var(--faint);
}

@media (max-width: 600px) {
    main {
        padding: 28px 0 48px;
    }

    .container {
        padding: 0 16px;
    }

    .card {
        border-radius: var(--radius-m);
    }

    .card__head,
    .card__body {
        padding: 16px;
    }

    .card__foot {
        padding: 14px 16px;
    }
}

/* ---------------------------------------------------------
   Mřížky rozložení
   --------------------------------------------------------- */
.grid {
    display: grid;
    gap: 24px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}

.grid--main-side {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
}

@media (max-width: 992px) {
    .grid--2,
    .grid--main-side {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        gap: 16px;
    }
}

/* ---------------------------------------------------------
   Úvodní stránka
   --------------------------------------------------------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.08;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--pink), var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    margin-top: 18px;
    max-width: 560px;
    font-size: 1.08rem;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
}

.fact__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(150, 42, 135, 0.22);
    color: var(--pink);
    font-size: 1.1rem;
}

.fact__label {
    display: block;
    font-size: 0.76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fact__value {
    display: block;
    font-weight: 600;
    line-height: 1.3;
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .fact {
        padding: 10px;
        gap: 10px;
    }

    .fact__icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .fact__value {
        font-size: 0.92rem;
    }
}

@media (max-width: 359px) {
    .facts {
        grid-template-columns: minmax(0, 1fr);
    }


}

/* Karta přihlášených týmů / registrace */
.signup {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.signup__panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: panel-in 0.35s ease;
}

.signup__panel[hidden] {
    display: none;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.capacity {
    margin-bottom: 18px;
}

.capacity__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.capacity__row strong {
    color: var(--text);
}

.capacity__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.capacity__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--pink));
}

.team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.team-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    background: rgba(255, 255, 255, 0.03);
}

.team-list__num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(150, 42, 135, 0.25);
    color: var(--pink);
    font-size: 0.85rem;
    font-weight: 700;
}

.team-list__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

/* Náhled dresu - tričko v barvě týmu */
.jersey-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 28px;
}

.jersey-preview svg {
    width: 24px;
    height: 22px;
    overflow: visible;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.jersey-preview__shirt {
    fill: var(--jersey, #cccccc);
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1.2;
    stroke-linejoin: round;
}

.jersey-preview__shine {
    fill: #fff;
    opacity: 0.16;
}

.jersey-preview__collar {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
    stroke-width: 1.4;
    stroke-linecap: round;
}

.team-list__item--free {
    border-style: dashed;
    background: transparent;
}

.team-list__item--free .team-list__num {
    background: rgba(255, 255, 255, 0.06);
    color: var(--faint);
}

.team-list__item--free .team-list__name {
    color: var(--faint);
    font-weight: 400;
}

/* ---------------------------------------------------------
   Formuláře
   --------------------------------------------------------- */
.form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--muted);
}

.field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-s);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font: inherit;
    font-size: 16px; /* 16px = iOS při kliknutí nezoomuje */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder {
    color: var(--faint);
}

.field input:focus {
    outline: none;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.field input:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    transition: background-color 9999s ease-in-out 0s;
}

.color-field {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 6px 8px 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-s);
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.color-field__value {
    flex: 1;
    font-family: ui-monospace, 'Cascadia Mono', monospace;
    color: var(--muted);
}

.color-field input[type="color"] {
    width: 44px;
    height: 34px;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
}

.color-field input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-field input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-strong);
    border-radius: 8px;
}

.form__actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.form__actions .btn {
    flex: 1;
}

@media (max-width: 420px) {
    .form__actions {
        flex-direction: column-reverse;
    }
}

/* Načítání a úspěch registrace */
.state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px 8px;
    text-align: center;
}

.state h3 {
    font-size: 1.35rem;
}

.state p {
    max-width: 380px;
    color: var(--muted);
}

.state__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--brand-light);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.checkmark {
    width: 76px;
    height: 76px;
    stroke: var(--success);
    stroke-width: 3;
    stroke-miterlimit: 10;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

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

/* ---------------------------------------------------------
   Tabulky
   --------------------------------------------------------- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.table th {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background-color 0.15s;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.table .num {
    width: 1%;
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.table .rank {
    width: 1%;
    color: var(--faint);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.table .name {
    min-width: 140px;
    font-weight: 500;
}

.table .name__team {
    display: block;
    color: var(--faint);
    font-size: 0.78rem;
    font-weight: 400;
}

.table .strong {
    color: var(--pink);
    font-weight: 700;
}

.table .is-empty {
    color: var(--faint);
}

/* Medailové pozice */
.table tr.top-1 .rank { color: #f5c542; }
.table tr.top-2 .rank { color: #d3d6dc; }
.table tr.top-3 .rank { color: #d99a5b; }

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 12px 22px;
    border-top: 1px solid var(--border);
    color: var(--faint);
    font-size: 0.8rem;
}

.legend b {
    color: var(--muted);
}

@media (max-width: 600px) {
    .table {
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 10px;
    }

    .legend {
        padding: 12px 16px;
    }
}

/* ---------------------------------------------------------
   Zápasy
   --------------------------------------------------------- */
.match-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 12px;
}

.match {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    transition: border-color 0.2s;
}

.match:hover {
    border-color: var(--border-strong);
}

.match--live {
    border-color: rgba(255, 107, 125, 0.5);
}

.match__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.8rem;
}

.match__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
}

.match__team {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match__score {
    min-width: 28px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.match__row.is-winner .match__team,
.match__row.is-winner .match__score {
    font-weight: 700;
    color: var(--pink);
}

.match__body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.match__teams {
    flex: 1;
    min-width: 0;
}

.match__time {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Štítky */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge--brand {
    background: rgba(150, 42, 135, 0.3);
    color: var(--pink);
}

.badge--live {
    background: rgba(255, 107, 125, 0.16);
    color: var(--danger);
}

.badge--live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 1.4s ease-in-out infinite;
}

.badge--done {
    background: rgba(76, 195, 138, 0.14);
    color: var(--success);
}

@keyframes pulse {
    50% {
        opacity: 0.3;
    }
}

/* ---------------------------------------------------------
   Propozice
   --------------------------------------------------------- */
.key-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

@media (max-width: 992px) {
    .key-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .key-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

.rule-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.rule-list li {
    position: relative;
    padding-left: 22px;
    color: #ddd2db;
}

.rule-list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-light);
}

.rule-list strong {
    color: var(--text);
}

.note {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 215, 242, 0.2);
    border-radius: var(--radius-m);
    background: rgba(150, 42, 135, 0.14);
    color: #eadbe6;
}

.note .bi {
    color: var(--pink);
    font-size: 1.2rem;
}

/* Stránka "Něco se chystá" */
.coming-soon {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.coming-soon h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.coming-soon p {
    color: var(--muted);
    font-size: 1.2rem;
}

/* ---------------------------------------------------------
   Odhalení při scrollu (assets/js/reveal.js)
   --------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Utility */
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
