/*
 * Organiser administration and login (loaded only by templates/admin/_layout.html.twig and the login page).
 * Desktop follows the prototype (design/Admin.dc.html, brief §1.12 and §6). The prototype is desktop-only; the
 * rules under 640px make it usable on a phone: results are entered walking between the stations.
 * Theme tokens (--hi, --on, --bg, --dark, --mu) come from app.css (.theme-fifa / .theme-nhl on <body>).
 */

.admin {
    min-height: 100vh;
    font-family: Montserrat, sans-serif;
    background: var(--bg);
    color: #ffffff;
}
.admin *, .admin *::before, .admin *::after { box-sizing: border-box; }
.admin [hidden] { display: none !important; }
.admin :target { scroll-margin-top: 16px; }

/* ---------- Text helpers ---------- */
.a-muted { color: var(--mu); }
.a-warn { color: #f5b942; }
.a-ok { color: #3ecf7a; }
.a-strong { font-weight: 700; }
.a-small { font-size: 12px; }
.a-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mu); }
.a-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-confirm { align-self: center; margin-right: 4px; font-weight: 700; font-size: 13px; color: #ff9a90; }
.a-seed { color: #f5b942; }
.a-dot { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.a-spacer { flex: 1; }
.a-anchor { scroll-margin-top: 16px; }
.admin code { font-size: 13px; color: #ffffff; }

/* ---------- Buttons (§1.12: .bt primary, .bg ghost, .bd danger, .bx disabled) ---------- */
.a-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; cursor: pointer;
    font: 800 14px Montserrat, sans-serif; text-align: center; text-decoration: none;
    background: var(--hi); color: var(--on);
}
.a-btn:hover { color: var(--on); filter: brightness(1.08); }
.a-btn--ghost { min-height: 40px; padding: 0 14px; font-weight: 700; font-size: 13px; background: rgba(255, 255, 255, .08); color: #ffffff; }
.a-btn--ghost:hover, .a-btn--ghost[aria-current] { background: rgba(255, 255, 255, .14); color: #ffffff; filter: none; }
.a-btn--danger { min-height: 40px; padding: 0 14px; font-weight: 700; font-size: 13px; background: rgba(239, 82, 69, .16); color: #ff9a90; }
.a-btn--danger:hover { background: rgba(239, 82, 69, .26); color: #ffb3ab; filter: none; }
.a-btn--off { cursor: default; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .35); }
.a-btn--off:hover { color: rgba(255, 255, 255, .35); filter: none; }
.a-btn--big { min-height: 52px; padding: 0 24px; font-size: 15px; }
.a-inline-form { display: inline-flex; margin: 0; }

/* ---------- Form controls (§1.12 .in, .lb) ---------- */
.a-input {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 4px;
    background: rgba(255, 255, 255, .08); color: #ffffff; font: 500 15px Montserrat, sans-serif;
}
.a-input option { color: #111111; background: #ffffff; }
.a-input:focus { outline: none; }
.a-input:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.a-input::placeholder { color: rgba(255, 255, 255, .4); }
.a-input--file { padding: 9px 12px; font-size: 13px; }
.a-label {
    display: flex; flex-direction: column; gap: 6px;
    font: 700 11px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--mu);
}
.a-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; font-size: 14px; color: #ffffff; cursor: pointer; }
.a-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--hi); }
.a-check--field { align-self: end; }
.a-fieldset { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.a-fieldset > legend { margin-bottom: 12px; padding: 0; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 20px; }
.a-grid--end { align-items: end; }
.a-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.a-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.a-row--spaced { margin-top: 16px; gap: 10px; }
.a-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.a-logo-preview { width: 44px; height: 44px; object-fit: contain; }
.a-logo-preview--wide { width: auto; max-width: 120px; max-height: 48px; }
.a-logo-current { display: flex; align-items: center; gap: 12px; min-height: 44px; }

/* ---------- Header (§6.1) ---------- */
.a-header { background: var(--dark); padding: 18px 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.a-header__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.a-header__start, .a-header__end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.a-header__end { gap: 12px; }
.a-header__title { font-weight: 800; font-size: 18px; }
.a-header__sub { font-weight: 600; color: var(--mu); }

.a-toggle { display: flex; gap: 8px; }
.a-toggle__item {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 20px; border-radius: 4px; text-decoration: none;
    font: 800 14px Montserrat, sans-serif; background: rgba(255, 255, 255, .08); color: #ffffff;
}
.a-toggle__item:hover { background: rgba(255, 255, 255, .14); color: #ffffff; }
.a-toggle__item[aria-current] { background: var(--hi); color: var(--on); }
.a-toggle--bracket { flex-wrap: wrap; margin: 18px 0 28px; }

/* ---------- Main, stats, tabs, flash ---------- */
.a-main { max-width: 1200px; margin: 0 auto; padding: 40px 40px 120px; }
.a-main:focus { outline: none; }
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; margin: 0 0 36px; }
.a-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.a-stat dd { margin: 0; font-weight: 900; font-size: 40px; line-height: 1; letter-spacing: -0.03em; color: #ffffff; }
.a-stat dt { margin-top: 8px; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.a-stat--paid dd { color: #3ecf7a; }
.a-stat--reserved dd { color: #f5b942; }
.a-stat--played dd { color: var(--hi); }

.a-tabs { position: relative; display: flex; flex-wrap: wrap; gap: 0 28px; margin-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.a-tab {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
    font: 800 15px Montserrat, sans-serif; color: #ffffff; text-decoration: none; white-space: nowrap;
    opacity: .55; border-bottom: 3px solid transparent;
}
.a-tab:hover { color: #ffffff; opacity: .85; }
.a-tab[aria-current] { opacity: 1; border-bottom-color: var(--hi); }

.a-flash {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    margin: 0 0 28px; padding: 14px 16px; border-left: 3px solid #3ecf7a; background: rgba(255, 255, 255, .05);
    font-weight: 600; font-size: 15px; line-height: 1.45;
}
.a-flash--error { border-left-color: #f5b942; }
.a-flash .a-btn { flex-shrink: 0; }

/* ---------- Shared tab parts ---------- */
.a-h1 { margin: 0 0 8px; font-weight: 800; font-size: 30px; }
.a-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.a-head .a-h1 { margin: 0; }
.a-head__note { font-size: 14px; color: var(--mu); }
.a-lead { margin: 0 0 28px; max-width: 760px; font-size: 15px; line-height: 1.6; color: var(--mu); }
.a-empty { margin: 32px 0; font-size: 16px; color: var(--mu); }
.a-empty--tight { margin: 0 0 8px; font-size: 15px; }
.a-exports { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.a-panel { margin: 6px 0 18px; padding: 24px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--hi); }
.a-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.a-panel__head .a-panel__title { margin: 0; }
.a-panel__title { margin: 0 0 18px; font-weight: 800; font-size: 18px; }
.a-panel--danger { border-left-color: rgba(239, 82, 69, .7); }
.admin .a-panel + .a-panel { margin-top: 24px; }

/* ---------- Hráči (§6.2) ---------- */
.a-players { margin: 0; padding: 0; list-style: none; }
.a-player__row {
    display: grid; grid-template-columns: 36px 44px minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) 130px 290px;
    gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.a-player__n { font-weight: 700; font-size: 13px; color: var(--mu); }
.a-player__logo { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.a-player__logo .team-logo { width: 36px; height: 36px; }
.a-player__who, .a-player__person { min-width: 0; }
.a-player__nick { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 16px; }
.a-player__team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--mu); }
.a-player__person { font-size: 13px; line-height: 1.5; }
.a-player__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.a-player__person a, .a-player__contact a { color: inherit; text-decoration: none; }
.a-player__person a:hover, .a-player__contact a:hover { color: var(--hi); }
.a-player__contact { font-size: 13px; line-height: 1.5; color: var(--mu); }
.a-status { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 13px; }
.a-status__label { display: inline-flex; align-items: center; gap: 8px; }
.a-status--paid .a-status__label { color: #3ecf7a; }
.a-status--reserved .a-status__label { color: #f5b942; }
.a-player__vs { padding-left: 16px; font-weight: 600; font-size: 11px; color: var(--mu); }
.a-player__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.a-btn--pay { color: #3ecf7a; }
.a-btn--pay:hover { color: #3ecf7a; }

.a-custom-team { margin-top: 16px; align-items: end; }
@supports selector(:has(*)) {
    .a-custom-team { display: none; }
    .a-edit:has(select[name="tym"] option[value="__custom"]:checked) .a-custom-team { display: grid; }
}

.a-seed-toggle { position: relative; }
.a-seed-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.a-seed-toggle:focus-within { outline: 2px solid var(--hi); outline-offset: 2px; }
.a-seed-toggle__on { display: none; color: #f5b942; }
.a-seed-toggle input:checked ~ .a-seed-toggle__on { display: inline; }
.a-seed-toggle input:checked ~ .a-seed-toggle__off { display: none; }
.a-seed-toggle.is-disabled { cursor: not-allowed; opacity: .5; }

/* ---------- Losování (§6.3) ---------- */
.a-draw-note { font-weight: 600; font-size: 15px; }
.a-draw-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 36px 40px; margin-bottom: 36px; }
.a-draw-group__name { margin: 0 0 10px; font-weight: 800; font-size: 22px; color: var(--hi); }
.a-draw-group__rows { margin: 0; padding: 0; list-style: none; }
.a-draw-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.a-draw-row__logo { width: 26px; height: 26px; display: flex; flex-shrink: 0; align-items: center; justify-content: center; }
.a-draw-row__nick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.a-draw-row__team { margin-left: auto; font-size: 12px; text-align: right; color: var(--mu); }

/* ---------- Výsledky (§6.4) ---------- */
.a-progress { display: flex; align-items: center; gap: 16px; margin: 16px 0 28px; }
.a-progress__bar { flex: 1; max-width: 420px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.a-progress__fill { height: 100%; background: var(--hi); }
.a-progress__text { font-weight: 700; font-size: 14px; }
.a-wizard { padding: 26px; margin: 0; }
.a-label--step { margin-bottom: 10px; }
.a-letters { display: flex; gap: 8px; margin-bottom: 24px; }
.a-letter {
    display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 44px; padding: 0 14px;
    border-radius: 4px; text-decoration: none; font: 800 16px Montserrat, sans-serif;
    background: rgba(255, 255, 255, .08); color: #ffffff;
}
.a-letter:hover { background: rgba(255, 255, 255, .14); color: #ffffff; }
.a-letter[aria-current] { background: var(--hi); color: var(--on); }
.a-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.a-match {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 10px 14px;
    border-radius: 4px; background: rgba(255, 255, 255, .05); color: #ffffff; text-decoration: none;
    font: 600 14px Montserrat, sans-serif;
}
.a-match:hover { background: rgba(255, 255, 255, .1); color: #ffffff; }
.a-match[aria-current] { outline: 2px solid var(--hi); outline-offset: -2px; }
.a-match__n { flex-shrink: 0; width: 74px; font-size: 12px; font-weight: 700; color: var(--mu); }
.a-match__who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.a-match__score { flex-shrink: 0; font-weight: 800; color: #ffffff; }
.a-match__score--none { font-weight: 600; font-size: 13px; color: var(--mu); }
.a-wizard__step--score .a-flash { margin-bottom: 18px; }
.a-wizard__step--match { margin-bottom: 24px; }

.a-score-form { margin: 0; }
.a-score { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.a-score__name { min-width: 140px; font-weight: 800; font-size: 18px; overflow-wrap: anywhere; }
.a-score__name--home { text-align: right; }
.a-score__colon { font-weight: 800; font-size: 28px; color: var(--mu); }
.a-score__input { width: 84px; min-height: 64px; padding: 0; text-align: center; font: 800 32px Montserrat, sans-serif; -moz-appearance: textfield; appearance: textfield; }
.a-score__input::-webkit-outer-spin-button,
.a-score__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.a-close-groups { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }

/* ---------- Pavouk (§6.5) ---------- */
.a-champion { margin: 0 0 28px; font-weight: 800; font-size: 20px; color: #f5b942; }
.a-bracket { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.a-bracket__col { min-width: 0; }
.a-bracket__title { margin: 0 0 14px; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); }
.a-bcard { margin-bottom: 14px; padding: 14px; background: rgba(255, 255, 255, .04); }
.a-bcard.is-selected { outline: 2px solid var(--hi); }
.a-bcard__label { margin: 0 0 8px; font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mu); }
.a-bcard__line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-weight: 500; font-size: 14px; }
.a-bcard__line.is-winner { font-weight: 800; }
.a-bcard__name { min-width: 0; overflow-wrap: anywhere; }
.a-bcard__score { flex-shrink: 0; }
.a-bcard__btn { width: 100%; margin-top: 10px; }
.a-bracket-panel { margin-top: 20px; padding: 26px; }
.a-tie { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.a-tie > legend { margin-bottom: 10px; padding: 0; }
.a-tie__options { display: flex; flex-wrap: wrap; gap: 8px; }
.a-tie__option { position: relative; cursor: pointer; }
.a-tie__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a-tie__option span {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 4px;
    font: 800 14px Montserrat, sans-serif; background: rgba(255, 255, 255, .08); color: #ffffff;
}
.a-tie__option:hover span { background: rgba(255, 255, 255, .14); }
.a-tie__option input:checked + span { background: var(--hi); color: var(--on); }
.a-tie__option input:focus-visible + span { outline: 2px solid var(--hi); outline-offset: 2px; }
.a-bracket-panel .a-note { margin-top: 14px; font-size: 13px; }

/* ---------- Partneři (§6.6) ---------- */
.a-partners { margin: 0; padding: 0; list-style: none; }
.a-partner {
    display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr) 150px auto;
    gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.a-partner__logo { height: 48px; display: flex; align-items: center; }
.a-partner__logo img { max-width: 110px; max-height: 44px; object-fit: contain; }
.a-partner__name { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.a-partner__url { font-size: 13px; color: var(--mu); }
.a-partner__url a { color: inherit; }
.a-partner__type { font-size: 13px; font-weight: 700; }
.a-partner__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
#pridat { margin-top: 32px; padding: 26px; }

/* ---------- Nastavení, Testování ---------- */
.a-setting-state { margin: 0 0 8px; font-size: 16px; }
.a-setting-state .a-strong { display: inline-flex; align-items: center; gap: 8px; }
.a-anonymize { display: grid; gap: 12px; max-width: 520px; margin-top: 24px; }
.a-anonymize .a-btn { justify-self: start; }
.a-help { margin-top: 32px; }
.a-help__steps { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--mu); }
.a-help__steps strong { color: #ffffff; }

/* ---------- Login ---------- */
.a-login { display: flex; flex-direction: column; background: var(--dark); }
.a-login__main { width: 100%; max-width: 460px; margin: 0 auto; padding: 32px 20px 64px; }
.a-login__back { margin-bottom: 40px; }
.a-login__card { padding: 32px; background: rgba(255, 255, 255, .04); border-left: 3px solid var(--hi); }
.a-login__brand { margin-bottom: 20px; }
.a-login__title { margin: 0 0 8px; font-weight: 800; font-size: 26px; line-height: 1.2; }
.a-login__lead { margin: 0 0 24px; font-size: 14px; line-height: 1.5; color: var(--mu); }
.a-login__form { display: flex; flex-direction: column; gap: 8px; }
.a-login__form .a-input { margin-bottom: 12px; }
.a-login__submit { margin-top: 8px; width: 100%; }
.a-login .a-flash { margin-bottom: 20px; }

/* ---------- Narrow screens (≤1023px, phones and tablets): player and partner rows become cards ---------- */
@media (max-width: 1023px) {
    .a-player { margin-bottom: 10px; background: rgba(255, 255, 255, .04); border-radius: 4px; }
    .a-player.is-editing { background: transparent; }
    .a-player__row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        grid-template-areas:
            "logo who n"
            ". person person"
            ". contact contact"
            ". status status"
            "actions actions actions";
        gap: 6px 12px; padding: 14px; border-bottom: 0;
    }
    .a-player__n { grid-area: n; align-self: start; }
    .a-player__logo { grid-area: logo; }
    .a-player__who { grid-area: who; }
    .a-player__person { grid-area: person; }
    .a-player__contact { grid-area: contact; }
    .a-player__status { grid-area: status; flex-direction: row; align-items: center; gap: 12px; }
    .a-player__vs { padding-left: 0; }
    .a-player__actions { grid-area: actions; flex-wrap: nowrap; gap: 8px; margin-top: 8px; }
    .a-player__actions:has(.a-confirm) { flex-wrap: wrap; }
    .a-player__actions > * { flex: 1 1 0; min-width: 0; }
    .a-player__actions > :first-child { flex-grow: 1.5; }
    .a-player__actions .a-btn { padding-left: 6px; padding-right: 6px; }
    .a-player__actions .a-inline-form .a-btn { width: 100%; }
    .a-player__actions .a-confirm { flex-basis: 100%; margin: 0 0 4px; }
    .a-edit { margin: 0 0 18px; }

    .a-partner {
        grid-template-columns: 96px minmax(0, 1fr);
        grid-template-areas: "logo name" "url url" "type type" "actions actions";
        gap: 6px 14px; margin-bottom: 10px; padding: 14px; border-bottom: 0; background: rgba(255, 255, 255, .04);
    }
    .a-partner__logo { grid-area: logo; }
    .a-partner__name { grid-area: name; }
    .a-partner__url { grid-area: url; }
    .a-partner__type { grid-area: type; }
    .a-partner__actions { grid-area: actions; justify-content: stretch; }
    .a-partner__actions > * { flex: 1 1 0; min-width: 0; }
    .a-partner__actions .a-inline-form .a-btn { width: 100%; }
    .a-partner__actions .a-confirm { flex-basis: 100%; }
}

/* ---------- Phone (≤640px) ---------- */
@media (max-width: 640px) {
    .a-header { padding: 12px 16px; }
    .a-header__inner { gap: 12px; }
    .a-header__start { gap: 12px; }
    .a-header__sub { display: none; }
    .a-header__end { width: 100%; flex-wrap: nowrap; }
    .a-header__end .a-toggle { flex: 1; }
    .a-toggle__item { flex: 1; padding: 0 12px; }
    .a-toggle--bracket .a-toggle__item { flex: 1 1 auto; }

    .a-main { padding: 20px 16px 96px; }
    .a-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-bottom: 24px; }
    .a-stat dd { font-size: 28px; }
    .a-stat dt { margin-top: 4px; font-size: 11px; }

    /* Tabs scroll sideways instead of wrapping onto three lines. */
    .a-tabs {
        flex-wrap: nowrap; gap: 0 22px; margin: 0 -16px 24px; padding: 0 16px;
        overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .a-tabs::-webkit-scrollbar { display: none; }
    .a-tab { flex-shrink: 0; min-height: 48px; }

    .a-btn, .a-btn--ghost, .a-btn--danger { min-height: 44px; }
    .a-btn--big { min-height: 56px; font-size: 16px; }
    .a-input { min-height: 48px; font-size: 16px; }
    .a-flash { align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; font-size: 15px; }
    .a-h1 { font-size: 26px; }
    .a-panel, .a-wizard, .a-bracket-panel, #pridat { padding: 16px; }
    .a-grid { grid-template-columns: minmax(0, 1fr); }
    .a-actions .a-btn { flex: 1 1 auto; }
    .a-actions .a-spacer { display: none; }
    .a-btn--wide-mobile { width: 100%; min-height: 56px; font-size: 16px; }
    .a-row .a-btn, .a-row .a-inline-form { flex: 1 1 auto; }
    .a-row .a-inline-form .a-btn { width: 100%; }
    .a-btn { white-space: normal; padding-top: 8px; padding-bottom: 8px; line-height: 1.25; }

    /* Results wizard: the score form comes right under the group buttons, the 15 matches below it. */
    .a-wizard { display: flex; flex-direction: column; }
    .a-wizard__step--score { order: 1; margin-bottom: 28px; }
    .a-wizard__step--match { order: 2; margin-bottom: 0; }
    .a-letters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .a-letter { min-height: 56px; font-size: 20px; }
    .a-match { min-height: 56px; gap: 10px; padding: 10px 12px; }
    .a-match__n { width: 56px; }
    .a-score {
        display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-areas: "home-name . away-name" "home-input colon away-input"; gap: 8px 10px; align-items: end;
    }
    .a-score__name { min-width: 0; font-size: 15px; text-align: center; }
    .a-score__name--home { grid-area: home-name; text-align: center; }
    .a-score__name--away { grid-area: away-name; }
    .a-score__input { width: 100%; min-height: 76px; font-size: 40px; }
    .a-score__input:first-of-type { grid-area: home-input; }
    .a-score__colon { grid-area: colon; align-self: center; }
    .a-score__input:last-of-type { grid-area: away-input; }
    .a-score-form .a-actions { flex-direction: column; align-items: stretch; }
    .a-tie__option { flex: 1 1 140px; }
    .a-tie__option span { width: 100%; min-height: 52px; }

    .a-bracket { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .a-bcard__line { font-size: 15px; }
    .a-champion { font-size: 18px; }

    .a-stack { align-items: stretch; }
    .a-stack .a-btn { width: 100%; }
    .a-login__card { padding: 24px 18px; }
}
