/* The app shell: base values, header, sidebar, frame and skins of the classic style. Every other
   style dresses it from ui-styles.css. Served as a cached file (was inline in base.html.twig). */
/* Windows has no flag emoji and shows every flag as its two letters ("DE"). This
   subset of Twemoji holds only the country flags (plus England/Scotland/Wales) —
   the unicode-range makes the browser use it for flag emoji only, every other
   character still comes from the site font. It is put first in the body's
   font-family below. Source: country-flag-emoji-polyfill (MIT, Twemoji CC-BY 4.0). */
@font-face {
    font-family: "Twemoji Country Flags";
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") format("woff2");
    font-display: swap;
}

:root {
    /* The classic style's base values; every style may override them, and the admin
       per style under Design → Styles (ui_style_css() below). */
    --site-primary: #0d6efd;
    --site-accent: #6610f2;
    --site-link: #0d6efd;
    --site-bg: #f5f7fb;
    --site-navbar-bg: #212529;
    --site-content-width: 1140px;
    --site-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --site-font-size: 16px;
    --site-radius: 12px;
    --bs-primary: var(--site-primary);
    --bs-primary-rgb: 13, 110, 253;
    --bs-link-color: var(--site-link);
    --bs-link-color-rgb: 13, 110, 253;
    --bs-border-radius: var(--site-radius);

    /* Shell chrome palette — dark by default; the [data-bs-theme="light"] block
       below swaps it. Page content itself is themed by Bootstrap via
       data-bs-theme on <html>, so cards/tables/text follow the skin too. */
    --surface: #1e232b;
    --surface-2: #262c36;
    --content-ink: #e8eaed;
    --content-muted: #9aa3af;
    --content-border: rgba(255, 255, 255, .10);
    --app-bg: #14171c;
}
:root[data-bs-theme="light"] {
    --surface: #ffffff;
    --surface-2: #f5f7fb;
    --content-ink: #1f2430;
    --content-muted: #6b7280;
    --content-border: rgba(15, 23, 42, .12);
    --app-bg: var(--site-bg);
}

body {
    background-color: var(--site-bg);
    font-family: "Twemoji Country Flags", var(--site-font);
    font-size: var(--site-font-size);
}
.navbar.bg-dark { background-color: var(--site-navbar-bg) !important; }
main.container { max-width: var(--site-content-width); }
a { color: var(--site-link); }
.btn-primary {
    --bs-btn-bg: var(--site-primary);
    --bs-btn-border-color: var(--site-primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--site-primary) 88%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--site-primary) 84%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--site-primary) 80%, #000);
}
.card, .btn, .form-control, .form-select, .alert { border-radius: var(--site-radius); }
.badge { border-radius: calc(var(--site-radius) * .5); }
/* A player's match rating (1–10, 6 the base), coloured like on Sofascore. */
.rating-badge { color: #fff; font-variant-numeric: tabular-nums; }
.rating-badge--poor { background: #dc3545; }
.rating-badge--average { background: #f08c00; }
.rating-badge--good { background: #2f9e44; }
.rating-badge--great { background: #146c2e; }
.rating-badge--excellent { background: #1c7ed6; }
.site-logo { height: 30px; width: auto; }

/* ---------- Logged-in app shell ---------- */
:root {
    /* Shared menu-colour surface: a diagonal line texture over a soft
       top-light / bottom-dark shading. Used by both the menu and the frame
       so they read as one material. The shading is deliberately gentle
       (~half strength) so it does not overpower the menu colour. */
    --club-texture: repeating-linear-gradient(122deg, rgba(255, 255, 255, .10) 0 1.5px, transparent 1.5px 13px);
    --club-shade: linear-gradient(180deg, rgba(255, 255, 255, .07) 0%, rgba(0, 0, 0, .16) 100%);
}
/* The classic menu and frame colour: the style's accent, deepened so white menu text
   stays readable on it. */
:root[data-bs-theme] { --club-color: color-mix(in srgb, var(--icm-accent) 70%, #000); }
/* Classic in the light skin: the deep blue of the site logo instead of the light cyan — the
   accent (buttons, links, the header's icons and links) and, unmixed, the menu and frame, which
   go without the stripe texture. The dark skin stays as it is. */
:root[data-ui-style="classic"][data-bs-theme="light"] {
    --icm-accent: #0d47a1;
    --icm-accent-rgb: 13, 71, 161;
    --icm-accent-hover: #1557c0;
    --icm-accent-active: #0a3a85;
    --icm-on-accent: #ffffff;
    --icm-accent-text: #0b3d91;
    --icm-accent-text-hover: #072a63;
    --bs-link-hover-color-rgb: 7, 42, 99;
    --club-color: #0b3d91;
    --club-texture: none;
}
body.app-body {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    color: var(--content-ink);
    background-color: var(--app-bg);
}

/* Club-colour frame hugging the top and right screen edges, in the same
   style as the menu (semi-transparent colour + texture + shading), so the
   menu, header and content sit inside one continuous coloured surround.
   Fixed, so it stays put while the page scrolls; above the sticky header. */
.app-body::before,
.app-body::after {
    content: "";
    position: fixed;
    z-index: 1050;
    background-color: color-mix(in srgb, var(--club-color) 80%, transparent);
    background-image: var(--club-texture), var(--club-shade);
    background-repeat: no-repeat;
    pointer-events: none;
}
.app-body::before { top: 0; left: 0; right: 0; height: 6px; }
.app-body::after  { top: 0; right: 0; bottom: 0; width: 6px; }

.app-column {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /* keep the header and content clear of the fixed frame strips */
    padding: 6px 6px 0 0;
    /* opaque, so the page content is not competing with the background image */
    background-color: var(--app-bg);
}

.app-sidebar {
    flex: 0 0 260px;
    width: 260px;
    color: #fff;
    /* The solid menu colour is set inline with !important, because Bootstrap
       forces `.offcanvas-lg { background-color: transparent !important }` at
       >=lg — through var(--sidebar-bg), so a skin can replace it. On top of it the
       shared texture + shading (see :root above). */
    background-image: var(--club-texture), var(--club-shade);
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) {
    .app-sidebar.offcanvas-lg {
        position: sticky;
        top: 0;
        align-self: flex-start;
        height: 100vh;
        overflow-y: auto;
    }
}
.app-sidebar.offcanvas-lg { --bs-offcanvas-width: 17rem; --bs-offcanvas-bg: transparent; }
/* On a phone the menu slides in from the side the profile chose — from the top or the bottom as a
   tall sheet that scrolls, from the bottom with a round button in reach of the thumb. */
@media (max-width: 991.98px) {
    /* The menu scrolls on its own, from whichever side it comes — with sections open it is taller
       than a phone (iOS Safari: momentum scrolling, no hand-over to the locked page behind it, and
       the last items clear of the home indicator). */
    .app-sidebar.offcanvas-lg {
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .app-sidebar.offcanvas-lg > * { flex-shrink: 0; }
    .app-sidebar.offcanvas-lg.offcanvas-top, .app-sidebar.offcanvas-lg.offcanvas-bottom { --bs-offcanvas-height: 85vh; width: 100%; }
    .app-sidebar.offcanvas-lg.offcanvas-bottom { border-radius: 1rem 1rem 0 0; }
    .app-menu-dock-btn {
        position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 1030;
        width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%;
        color: #fff; background: var(--icm-accent, var(--club-color));
        box-shadow: 0 6px 18px rgba(0, 0, 0, .3); font-size: 1.25rem;
    }
}

.app-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1.1rem 1.15rem .6rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
    text-decoration: none;
}
.app-sidebar-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 .6rem .5rem;
    padding: .5rem .6rem;
    border-radius: .7rem;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    text-decoration: none;
}
.app-sidebar-user:hover, .app-sidebar-user:focus-visible { background: rgba(255, 255, 255, .2); color: #fff; }
.app-sidebar-user-avatar {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    object-fit: cover;
}
.app-sidebar-user-avatar--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    font-size: 1.2rem;
}
.app-sidebar-user-meta { display: flex; flex-direction: column; min-width: 0; }
.app-sidebar-user-name { font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-sidebar-user-role { font-size: .72rem; color: rgba(255, 255, 255, .8); line-height: 1.2; }
/* The active club's box (templates/_sidebar_club.html.twig): looks like the user's box above it —
   the head (crest, name, league · place) like the user line, the key facts in a grid below. */
.app-sidebar-club { flex-direction: column; align-items: stretch; gap: .4rem; }
.app-sidebar-club:hover { background: rgba(255, 255, 255, .12); }
.app-sidebar-club-head { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; min-width: 0; }
.app-sidebar-club-head:hover .app-sidebar-user-name, .app-sidebar-club-head:focus-visible .app-sidebar-user-name { text-decoration: underline; }
.app-sidebar-club-crest { flex: 0 0 2.4rem; display: inline-flex; align-items: center; justify-content: center; }
.app-sidebar-club-facts { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: .15rem .35rem; }
.app-sidebar-club-facts > a {
    display: flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    padding: .15rem .3rem;
    border-radius: .45rem;
    color: inherit;
    font-size: .76rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.app-sidebar-club-facts > a:hover, .app-sidebar-club-facts > a:focus-visible { background: rgba(255, 255, 255, .14); }
.app-sidebar-club-facts > a:last-child:nth-child(odd) { grid-column: 1 / -1; }
.app-sidebar-club-value { overflow: hidden; text-overflow: ellipsis; }
.app-sidebar-club-value small { font-size: .9em; }
.app-sidebar-club-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .35rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.app-sidebar-club-foot > a { color: inherit; font-size: .76rem; text-decoration: none; padding: .15rem .3rem; border-radius: .45rem; }
.app-sidebar-club-foot > a:hover, .app-sidebar-club-foot > a:focus-visible { background: rgba(255, 255, 255, .14); }
.app-sidebar-club-new-posts { font-weight: 700; }
/* With the club box the mark-all-read button sits in it (see base.html.twig). */
.app-nav-tools.app-nav-tools--in-club-box { display: none; }
.app-nav { display: flex; flex-direction: column; gap: .1rem; padding: .35rem .6rem 1.5rem; }
.app-nav-link, .app-nav-parent {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .55rem .7rem;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    color: rgba(255, 255, 255, .86);
    font-weight: 500;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.app-nav-link:hover, .app-nav-parent:hover,
.app-nav-link:focus-visible, .app-nav-parent:focus-visible {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    transform: translateX(2px);
}
.app-nav-link.active { background: rgba(255, 255, 255, .24); color: #fff; }
.app-nav-icon { flex: 0 0 1.4rem; text-align: center; font-size: 1rem; }
.app-nav-label { flex: 1 1 auto; min-width: 0; }
/* In the phone menu a word too long for its row (one word can't wrap) ends in "…" instead of running under its counter. */
@media (max-width: 991.98px) {
    .app-nav-label:has(+ .app-nav-badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.app-nav-caret { flex: 0 0 auto; font-size: .7rem; opacity: .8; transition: transform .2s ease; }
.app-nav-parent[aria-expanded="true"] .app-nav-caret { transform: rotate(180deg); }
.app-subnav {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    margin: .1rem 0 .4rem 1.45rem;
    padding-left: .5rem;
    border-left: 2px solid rgba(255, 255, 255, .28);
}
.app-subnav .app-nav-link { padding: .4rem .7rem; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.app-subnav .app-nav-link:hover { color: #fff; }
/* A long name ends in "…" instead of running into the counter of new posts. */
.app-subnav .app-nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nav-badge {
    flex: 0 0 auto;
    min-width: 1.4rem;
    padding: .1rem .4rem;
    border-radius: 999px;
    background: var(--icm-accent);
    color: var(--icm-on-accent);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}
.app-nav-tools { display: flex; justify-content: flex-end; padding: 0 .6rem; }
.app-nav-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
.app-nav-tool:hover, .app-nav-tool:focus-visible { background: rgba(255, 255, 255, .24); }
.app-nav-tool:disabled { opacity: .45; background: transparent; }

.app-header {
    position: sticky;
    top: 6px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .5rem 1rem;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--content-border);
    color: var(--content-ink);
}
.app-header-main { display: flex; align-items: center; gap: .6rem; }
/* Second header row: the running result ticker, with the search box pinned
   to the far right. */
.app-header-sub {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-top: .35rem;
    border-top: 1px solid var(--content-border);
}
.app-search { flex: 0 0 auto; width: 300px; max-width: 45vw; margin-left: auto; background: var(--surface-2); border-color: var(--content-border); }

/* This week at a glance under the tickers — today in the middle, three days either side. */
.app-week {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .4rem;
    padding-top: .4rem;
    border-top: 1px solid var(--content-border);
    font-size: .75rem;
}
.app-week-day {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--content-border);
    border-radius: 8px;
    background: var(--surface-2);
    overflow: hidden;
}
.app-week-head {
    display: flex;
    justify-content: space-between;
    padding: .15rem .45rem;
    font-weight: 700;
    color: var(--bs-secondary-color);
    background: color-mix(in srgb, var(--content-border) 45%, transparent);
    text-decoration: none;
}
.app-week-head:hover { color: var(--content-ink); }
.app-week-day--today {
    border-color: var(--icm-accent);
    box-shadow: 0 0 0 1px var(--icm-accent), 0 4px 14px rgba(var(--icm-accent-rgb), .25);
}
.app-week-day--today .app-week-head { background: var(--icm-accent); color: #fff; }
.app-week-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    flex: 1 1 auto;
    min-height: 2.4rem;
    padding: .3rem .45rem;
}
.app-week-entry {
    display: flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    line-height: 1.25;
}
.app-week-entry:hover .app-week-text { text-decoration: underline; }
.app-week-logo {
    display: inline-flex;
    flex: 0 0 18px;
    justify-content: center;
    font-size: .85rem;
}
.app-week-logo img { width: 18px; height: 18px; object-fit: contain; }
.app-week-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.app-week-venue { flex-shrink: 0; color: var(--bs-secondary-color); }
.app-week-time { flex-shrink: 0; margin-left: auto; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.app-week-score {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0 .3rem;
    border-radius: 4px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
    background: var(--bs-secondary);
}
.app-week-score--win { background: var(--bs-success); }
.app-week-score--loss { background: var(--bs-danger); }
.app-week-empty { align-self: center; color: var(--bs-secondary-color); opacity: .5; }
.app-week-more { color: var(--bs-secondary-color); text-decoration: none; }

/* Running result ticker — most recently calculated games. */
.app-ticker-label {
    flex: 0 0 auto;
    padding: .1rem .5rem;
    border-radius: 999px;
    background: rgba(var(--icm-accent-rgb), .12);
    color: var(--icm-accent-text);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.app-ticker {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
}
.app-ticker-track {
    display: inline-flex;
    gap: 2.5rem;
    white-space: nowrap;
    padding-left: 100%;
    animation: app-ticker-scroll 45s linear infinite;
}
.app-ticker:hover .app-ticker-track,
.app-ticker:focus-within .app-ticker-track { animation-play-state: paused; }
.app-ticker-item { font-size: .85rem; color: var(--content-muted); }
.app-ticker-item strong { color: var(--content-ink); }
a.app-ticker-item:hover, a.app-ticker-item:focus { color: var(--content-ink); text-decoration: underline !important; }
.app-ticker-item--live strong { color: var(--bs-danger); }
@media (prefers-reduced-motion: reduce) {
    .app-ticker-track { animation: none; padding-left: 0; }
}
@keyframes app-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* The transfer ticker sits in the top row between the club switcher and the icons; its
   items are longer than a result, so it runs a little slower. */
.app-ticker-half {
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    gap: .5rem;
}
.app-ticker-half + .app-ticker-half { padding-left: .6rem; border-left: 1px solid var(--content-border); }
.app-ticker--transfers .app-ticker-track { animation-duration: 60s; }

.app-header-actions { display: flex; align-items: center; gap: .1rem; flex: 0 0 auto; margin-left: auto; }
/* With the search field visible (md+) it takes the free space, so it and the icons sit right-aligned together. */
@media (min-width: 768px) { .app-search + .app-header-actions { margin-left: .5rem; } }
.app-clock { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--content-muted); white-space: nowrap; margin-left: .6rem; padding-left: .6rem; border-left: 1px solid var(--content-border); }
.app-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: .6rem;
    background: transparent;
    color: var(--content-ink);
    text-decoration: none;
    position: relative;
}
.app-icon-btn:hover, .app-icon-btn:focus-visible { background: var(--surface-2); color: var(--content-ink); }
.app-icon-btn .badge { position: absolute; top: .1rem; right: .1rem; }

.app-main {
    flex: 1 1 auto;
    /* Small gap only — the page should fill the content column, not float in it. */
    margin: 8px;
    padding: 1.5rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--site-radius);
    color: var(--bs-body-color);
}
/* On a phone every pixel of width counts: a thinner frame around the page and its boxes. */
@media (max-width: 575.98px) {
    .app-main {
        margin: 4px;
        padding: .75rem;
    }
    .app-main .card-body {
        padding: .75rem;
    }
}
/* Very narrow phones (360 px and the like): tables a little tighter, so they fit without scrolling. */
@media (max-width: 399.98px) {
    .app-main .table { font-size: .875rem; }
    .app-main .table > :not(caption) > * > * { padding-left: .3rem; padding-right: .3rem; }
}
/* Scrolling tables: their visually hidden labels are positioned absolutely — without a positioned
   box around them they hang out of the scroll box and make the whole page scroll sideways. */
.table-responsive {
    position: relative;
}
.app-footer { color: var(--content-muted); border-top: 1px solid var(--content-border); }
.app-footer a { color: var(--content-muted); }

/* The ICM wordmark is wide: fill the sidebar's brand slot, a bit taller in the navbar. */
.app-brand .site-logo { height: auto; width: 100%; max-width: 14.5rem; }
.navbar .site-logo { height: 44px; }

/* Both skins take their accent from the matching logo: neon green in the dark skin,
   the logo's light blue in the light one. --icm-accent fills (buttons, bars, lines,
   ticked boxes); --icm-accent-text is for text — the same colour in the dark skin, a
   deeper shade of the blue in the light skin, where the logo blue would be unreadable on
   white. Badges with white text keep Bootstrap's colours. CMS custom CSS below can
   still override all of this. */
:root[data-bs-theme="dark"] {
    --icm-accent: #00f090;
    --icm-accent-rgb: 0, 240, 144;
    --icm-accent-hover: #4dffb8;
    --icm-accent-active: #00c977;
    --icm-on-accent: #04150d;
    --icm-accent-text: var(--icm-accent);
    --icm-accent-text-hover: var(--icm-accent-hover);
    --surface: #121a24;
    --surface-2: #1a2430;
    --app-bg: #0b1118;
    --content-border: rgba(0, 240, 144, .14);
    --bs-body-bg: #121a24;
    --bs-secondary-bg: #1a2430;
    --bs-tertiary-bg: #16202b;
    --bs-border-color: rgba(255, 255, 255, .12);
    --bs-link-hover-color-rgb: 77, 255, 184;
}
:root[data-bs-theme="light"] {
    --icm-accent: #00b8f0;
    --icm-accent-rgb: 0, 184, 240;
    --icm-accent-hover: #33c8f5;
    --icm-accent-active: #009ccc;
    --icm-on-accent: #03141f;
    --icm-accent-text: #0077b6;
    --icm-accent-text-hover: #005b8c;
    --bs-link-hover-color-rgb: 0, 91, 140;
}
:root[data-bs-theme] {
    --bs-link-color: var(--icm-accent-text);
    --bs-link-color-rgb: var(--icm-accent-rgb);
    --bs-link-hover-color: var(--icm-accent-text-hover);
    --bs-focus-ring-color: rgba(var(--icm-accent-rgb), .3);
}
/* :where() keeps this at plain "a" specificity, so classed links (sidebar, cards with
   .text-body, buttons) keep their own colour. */
:where([data-bs-theme]) a { color: var(--icm-accent-text); }
:where([data-bs-theme]) a:hover { color: var(--icm-accent-text-hover); }
[data-bs-theme] .text-primary { color: var(--icm-accent-text) !important; }
[data-bs-theme] .btn-primary {
    --bs-btn-color: var(--icm-on-accent);
    --bs-btn-bg: var(--icm-accent);
    --bs-btn-border-color: var(--icm-accent);
    --bs-btn-hover-color: var(--icm-on-accent);
    --bs-btn-hover-bg: var(--icm-accent-hover);
    --bs-btn-hover-border-color: var(--icm-accent-hover);
    --bs-btn-active-color: var(--icm-on-accent);
    --bs-btn-active-bg: var(--icm-accent-active);
    --bs-btn-active-border-color: var(--icm-accent-active);
    --bs-btn-disabled-color: var(--icm-on-accent);
    --bs-btn-disabled-bg: var(--icm-accent);
    --bs-btn-disabled-border-color: var(--icm-accent);
    font-weight: 600;
}
[data-bs-theme] .btn-outline-primary {
    --bs-btn-color: var(--icm-accent-text);
    --bs-btn-border-color: var(--icm-accent);
    --bs-btn-hover-color: var(--icm-on-accent);
    --bs-btn-hover-bg: var(--icm-accent);
    --bs-btn-hover-border-color: var(--icm-accent);
    --bs-btn-active-color: var(--icm-on-accent);
    --bs-btn-active-bg: var(--icm-accent);
    --bs-btn-active-border-color: var(--icm-accent);
}
[data-bs-theme] .form-control:focus,
[data-bs-theme] .form-select:focus,
[data-bs-theme] .form-check-input:focus {
    border-color: var(--icm-accent);
    box-shadow: 0 0 0 .2rem rgba(var(--icm-accent-rgb), .25);
}
[data-bs-theme] .form-check-input:checked { background-color: var(--icm-accent); border-color: var(--icm-accent); }
/* On/off switches: on = green, off = red (with a white knob) — whatever the style's accent, so a
   switch always reads the same. Plain checkboxes keep the accent colour. */
[data-bs-theme] .form-switch .form-check-input:checked { background-color: var(--bs-success); border-color: var(--bs-success); }
[data-bs-theme] .form-switch .form-check-input:not(:checked) {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
[data-bs-theme] .form-switch .form-check-input:disabled { opacity: .5; }
[data-bs-theme] .nav-pills .nav-link.active { background-color: var(--icm-accent); color: var(--icm-on-accent); }
[data-bs-theme] .nav-tabs .nav-link.active { color: var(--icm-accent-text); border-bottom-color: var(--icm-accent); }
[data-bs-theme] .accordion-button:not(.collapsed) { color: var(--icm-accent-text); background-color: rgba(var(--icm-accent-rgb), .08); }
[data-bs-theme] .page-item.active .page-link { background-color: var(--icm-accent); border-color: var(--icm-accent); color: var(--icm-on-accent); }
/* A marked table row (the own club, today, …) — Bootstrap's fixed light blue left accent links
   unreadable in the dark skin; a tint of the accent keeps the skin's own text colour. */
[data-bs-theme] .table-primary {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: rgba(var(--icm-accent-rgb), .16);
    --bs-table-border-color: rgba(var(--icm-accent-rgb), .3);
    --bs-table-striped-bg: rgba(var(--icm-accent-rgb), .2);
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-active-bg: rgba(var(--icm-accent-rgb), .26);
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-hover-bg: rgba(var(--icm-accent-rgb), .22);
    --bs-table-hover-color: var(--bs-body-color);
}
[data-bs-theme] .list-group-item-primary {
    --bs-list-group-color: var(--bs-body-color);
    --bs-list-group-bg: rgba(var(--icm-accent-rgb), .16);
    --bs-list-group-border-color: rgba(var(--icm-accent-rgb), .3);
    --bs-list-group-action-hover-color: var(--bs-body-color);
    --bs-list-group-action-hover-bg: rgba(var(--icm-accent-rgb), .22);
    --bs-list-group-action-active-color: var(--bs-body-color);
    --bs-list-group-action-active-bg: rgba(var(--icm-accent-rgb), .26);
}
/* The active menu entry is marked with an accent bar; in the dark skin also coloured
   (the light skin's sidebar keeps the menu colour, white text reads best on it). */
[data-bs-theme] .app-nav-link.active { box-shadow: inset 3px 0 0 var(--icm-accent); }
[data-bs-theme="dark"] .app-nav-link.active { color: var(--icm-accent); background: rgba(0, 0, 0, .35); }
[data-bs-theme="dark"] .app-nav-link:hover .app-nav-icon,
[data-bs-theme="dark"] .app-nav-link.active .app-nav-icon { color: var(--icm-accent); }
[data-bs-theme="dark"] .card { border-color: var(--content-border); }
/* The sidebar is set off from the content by an accent line; in the dark skin it also
   takes the dark surface tone instead of the menu colour. */
[data-bs-theme] .app-sidebar {
    border-right: 1px solid var(--icm-accent);
    box-shadow: 1px 0 12px rgba(var(--icm-accent-rgb), .25);
}
[data-bs-theme="dark"] .app-sidebar { --sidebar-bg: var(--surface); background-image: none; }
/* Header: icon buttons and the date/time in the accent too. */
[data-bs-theme] .app-icon-btn,
[data-bs-theme] .app-clock { color: var(--icm-accent-text); }
[data-bs-theme] .app-icon-btn:hover, [data-bs-theme] .app-icon-btn:focus-visible { color: var(--icm-accent-text-hover); }
/* Docked chat windows, bottom right next to each other (newest on the right). */
.chat-dock { position: fixed; right: 1rem; bottom: 0; z-index: 1040; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: .75rem; pointer-events: none; }
.chat-dock .chat-window { width: 18rem; pointer-events: auto; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-color: var(--icm-accent); }
.chat-window-header { background: rgba(var(--icm-accent-rgb), .18); cursor: pointer; }
.chat-window-messages { height: 18rem; overflow-y: auto; }
.chat-window.is-minimized .chat-window-body { display: none; }
.chat-window-participants { font-size: .7rem; }
.chat-bubble-own { background: var(--icm-accent); color: var(--icm-on-accent); }
.chat-online-dot { width: .6rem; height: .6rem; background-color: #9ca3af; }
/* "Hilfe" button: top right of the page content, above the page's own heading. */
.page-help-anchor { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.page-help-panel { --bs-offcanvas-width: min(34rem, 100vw); }

/* The loan icon (player/_loan_badge.html.twig): small and raised at the top right of a name, or
   in a little circle at the top right of the profile photo. Its text shows on mouse-over. */
.player-loan-icon { display: inline-block; margin-left: .2rem; font-size: .6rem; line-height: 1; vertical-align: super; color: var(--bs-info-text-emphasis); opacity: .8; cursor: help; }
.player-loan-icon-photo {
    position: absolute; top: .15rem; right: .15rem; display: flex; align-items: center; justify-content: center;
    width: 1.6rem; height: 1.6rem; margin: 0; font-size: .7rem; vertical-align: baseline; opacity: 1;
    border-radius: 50%; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.chat-online-dot.is-online { background-color: #22c55e; }
@media (max-width: 576px) { .chat-dock { right: .5rem; } .chat-dock .chat-window { width: calc(100vw - 1rem); } .chat-dock .chat-window:not(:first-child) { display: none; } }
/* One logo per skin when the CMS has a light-skin logo (both are rendered, CSS picks). */
.site-logo--light { display: none; }
[data-bs-theme="light"] .site-logo--light { display: inline; }
[data-bs-theme="light"] .site-logo--light ~ .site-logo--dark { display: none; }

/* National-team mode (html[data-team-type="national"]): a thin line in the national-team badge
   colour along the top of the header, so it is always clear which team the page belongs to. */
[data-team-type="national"] .app-header { box-shadow: inset 0 3px 0 var(--bs-info); }

/* Dashboard shoutbox — no grey box: messages straight on the card, a live badge in the
   header and a framed compose area with a formatting bar and a gradient send button. */
.shoutbox-eyebrow { font-size: .7rem; letter-spacing: .14em; color: var(--icm-accent-text); }
.shoutbox-live {
    background: rgba(var(--icm-accent-rgb), .12);
    color: var(--icm-accent-text);
    border: 1px solid rgba(var(--icm-accent-rgb), .35);
    font-weight: 600;
}
.shoutbox-live-dot {
    display: inline-block; width: .5rem; height: .5rem; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
    animation: shoutbox-pulse 2s infinite;
}
@keyframes shoutbox-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); }
    70% { box-shadow: 0 0 0 .4rem rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .shoutbox-live-dot { animation: none; } }
.shoutbox-message + .shoutbox-message { border-top: 1px solid var(--bs-border-color); }
.shoutbox-message[data-own-shout] { box-shadow: inset 3px 0 0 var(--icm-accent); background: rgba(var(--icm-accent-rgb), .06); }
.shoutbox-compose { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); }
.shoutbox-compose .form-control { background: var(--bs-body-bg); }
.shoutbox-format .btn { --bs-btn-padding-x: .45rem; --bs-btn-padding-y: .1rem; min-width: 1.9rem; }
.shoutbox-tool { --bs-btn-padding-x: .4rem; --bs-btn-padding-y: .15rem; color: var(--bs-secondary-color); }
.shoutbox-tool:hover { color: var(--icm-accent-text); }
.shoutbox-send {
    background: linear-gradient(90deg, #7c3aed, #2563eb 55%, #06b6d4);
    border: 0; color: #fff; font-weight: 600;
}
.shoutbox-send:hover, .shoutbox-send:focus-visible { color: #fff; filter: brightness(1.1); }
/* "Ganze Mannschaft anbieten" in the squad's header: the violet-to-cyan sheen of the page headings,
   so it stands out from the page's other buttons. */
.btn-squad-offer {
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    border: 0; color: #fff; font-weight: 600;
    box-shadow: 0 0 14px rgba(139, 92, 246, .45);
}
.btn-squad-offer:hover, .btn-squad-offer:focus-visible, .btn-squad-offer:active { color: #fff; filter: brightness(1.1); }
.shoutbox-counter.is-full { color: var(--bs-danger) !important; }

/* League table: the manager's active club in the skin's accent colour. */
.table-own-club > * { --bs-table-bg-state: rgba(var(--icm-accent-rgb), .22); }
.table-own-club > td:nth-child(2) a { font-weight: 700; }
/* Reserves: places 1–8 of a Super League group reach the final round. */
:root { --reserve-zone-color: #2e9e5b; }
.reserve-zone-cut > td { border-bottom: 2px solid var(--reserve-zone-color); }
.reserve-zone-swatch { display: inline-block; width: .8em; height: .8em; border-radius: 2px; background: var(--reserve-zone-color); vertical-align: -.05em; }

/* Match report: the starting eleven on a striped green pitch with white lines, players as pictures. */
.match-pitch {
    background: repeating-linear-gradient(#2e8b3a 0 10%, #287a33 10% 20%);
    border: 2px solid rgba(255, 255, 255, .85); border-radius: .5rem;
    aspect-ratio: 4 / 5; max-width: 30rem; overflow: hidden;
}
.match-pitch-line { position: absolute; border: 2px solid rgba(255, 255, 255, .85); pointer-events: none; }
.match-pitch-photo {
    width: 3rem; height: 3rem; object-fit: cover; border-radius: .35rem;
    background: rgba(255, 255, 255, .12); box-shadow: 0 2px 0 rgba(255, 255, 255, .25);
}
.match-pitch-icons { position: absolute; top: -.5rem; left: -.9rem; display: flex; gap: 1px; font-size: .8rem; line-height: 1; }
.match-pitch-icon { background: #fff; border-radius: 50%; padding: .1rem; min-width: 1.05rem; text-align: center; }
.match-pitch-name { text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
.match-pitch-player { width: 5.5rem; }
.match-pitch-mark { position: absolute; right: -1.4rem; bottom: -.3rem; line-height: 1; }
.match-pitch-mark .badge { font-size: .65rem; padding: .2em .35em; box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
/* Match report bench: one line per player, as wide as the pitch above it. */
.match-bench { max-width: 30rem; }
.match-bench-photo { width: 1.9rem; height: 1.9rem; object-fit: cover; border-radius: .3rem; background: rgba(0, 0, 0, .08); }
.match-bench-position { min-width: 2.4rem; }
/* Live ticker: a running game's badge pulses, new lines fade in, a goal lights the score up. */
.live-pulse { animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: .55; } }
.live-ticker-new { animation: live-ticker-new 2.5s ease-out; }
@keyframes live-ticker-new { from { background: rgba(var(--icm-accent-rgb), .35); } to { background: transparent; } }
.live-ticker-goal { animation: live-ticker-goal 3s ease-out; }
@keyframes live-ticker-goal { 0%, 40% { color: var(--bs-success); transform: scale(1.25); } 100% { transform: none; } }
.live-game-line:hover { background: rgba(var(--icm-accent-rgb), .08); }
.live-game-line--current { background: rgba(var(--icm-accent-rgb), .15); }
.live-game-line--mine { box-shadow: inset 3px 0 0 rgb(var(--icm-accent-rgb)); }
/* A game line in fixed columns — minute, home, crest, score, crest, away — so the scores line up. */
.live-game-line { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) 1.5rem 2.8rem 1.5rem minmax(0, 1fr); align-items: center; column-gap: .5rem; }
.live-game-line > :nth-child(3), .live-game-line > :nth-child(5) { justify-self: center; }
.live-game-score { text-align: center; }
/* A moment still being told: "…" for the sentences still to come. */
.live-ticker-more { display: inline-block; font-weight: 700; animation: live-ticker-more 1.2s ease-in-out infinite; }
@keyframes live-ticker-more { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .live-pulse, .live-ticker-new, .live-ticker-goal, .live-ticker-more { animation: none; } }
/* Match report header: home, score, away side by side; the names may wrap. */
.match-report-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.match-report-team { min-width: 0; }
.match-report-team-name { font-size: 1.5rem; overflow-wrap: anywhere; }
.match-report-team-crest { font-size: 2rem; }
.match-report-score { font-size: 2.5rem; white-space: nowrap; }
@media (max-width: 575.98px) {
    .match-report-head { gap: .5rem; }
    .match-report-team { display: flex; flex-direction: column; align-items: center; text-align: center !important; }
    .match-report-team-crest { order: -1; }
    .match-report-team-name { font-size: .85rem; line-height: 1.2; }
    .match-report-score { font-size: 1.75rem; }
    /* Five players can share a row on a narrow pitch, so pictures and names shrink. */
    .match-pitch-player { width: 3.6rem; }
    .match-pitch-photo { width: 2.1rem; height: 2.1rem; }
    .match-pitch-name { font-size: .65rem; }
    .match-pitch-icons { font-size: .6rem; left: -.6rem; }
    .match-pitch-mark { right: -1.1rem; }
    .match-pitch-mark .badge { font-size: .55rem; }
}
.match-minute { color: var(--bs-info); font-weight: 600; white-space: nowrap; }
.match-highlight-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; }
.match-score-box { background: #000; color: #fff; font-weight: 700; padding: .15rem .6rem; border-radius: .2rem; letter-spacing: .05em; }

/* New forum posts light up in the style's accent colour: a forum's icon (white while nothing is
   new), the counters and a bar at the topic. --forum-new is the text colour, --forum-new-badge
   the counters' fill. Only the Neon style keeps its neon blue; Brutal's light skin, whose accent
   text is black, takes its blue. */
:root[data-bs-theme] {
    --forum-new: var(--icm-accent-text); --forum-new-rgb: var(--icm-accent-rgb);
    --forum-new-badge: var(--icm-accent); --forum-new-ink: var(--icm-on-accent); --forum-idle-tile: #1f2a36;
}
:root[data-bs-theme="light"] { --forum-idle-tile: #8a96a3; }
:root[data-ui-style="neon"][data-bs-theme] { --forum-new: #00d4ff; --forum-new-rgb: 0, 212, 255; --forum-new-badge: #00d4ff; --forum-new-ink: #03141f; }
:root[data-ui-style="neon"][data-bs-theme="light"] { --forum-new: #00b8f0; --forum-new-rgb: 0, 184, 240; --forum-new-badge: #00b8f0; }
:root[data-ui-style="brutal"][data-bs-theme="light"] { --forum-new: #2f5fe8; --forum-new-rgb: 77, 124, 255; --forum-new-badge: #4d7cff; --forum-new-ink: #ffffff; }
.forum-overview-icon {
    width: 2.6rem; height: 2.6rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem; background: var(--forum-idle-tile); color: #fff;
}
.forum-overview-row.has-new .forum-overview-icon {
    background: rgba(var(--forum-new-rgb), .16); color: var(--forum-new);
    box-shadow: 0 0 0 1px rgba(var(--forum-new-rgb), .55), 0 0 12px rgba(var(--forum-new-rgb), .45);
}
.forum-new-badge { background: var(--forum-new-badge); color: var(--forum-new-ink); box-shadow: 0 0 8px rgba(var(--forum-new-rgb), .55); }
.forum-topic-new { box-shadow: inset 3px 0 0 var(--forum-new); }
/* A topic's title: white (the body's strongest text colour) while nothing is new, neon blue with new posts. */
.forum-topic-title-new, .forum-topic-title-new:hover { color: var(--forum-new) !important; }
/* "Tabelle & Spieltag": the matchdays in two lines, first and second half of the season, with «
   and » on either side as tall as both lines. */
.matchday-strip {
    display: grid; gap: .25rem; width: max-content;
    grid-template-columns: auto repeat(var(--matchday-half), minmax(2.25rem, auto)) auto;
}
.matchday-strip > [data-matchday-previous] { grid-column: 1; grid-row: 1 / span 2; }
.matchday-strip > [data-matchday-next] { grid-column: -2; grid-row: 1 / span 2; }
.matchday-strip .page-link {
    height: 100%; margin: 0 !important; border-radius: var(--bs-border-radius-sm) !important;
    display: flex; align-items: center; justify-content: center;
}
/* The forum view's board: a category like the old game's — a coloured line on top, its name in the
   accent colour; the chevron turns when the category is folded away. */
.forum-board-section { border-top: 3px solid var(--bs-primary); }
.forum-board-section-title { color: var(--bs-primary); letter-spacing: .02em; font-weight: 700; }
.forum-board-section [aria-expanded="false"] .fa-chevron-up { transform: rotate(180deg); }
/* The team the manager currently runs, in the "Meine Teams" switcher: the same neon blue. */
.team-switcher-active { color: var(--forum-new); text-shadow: 0 0 8px rgba(var(--forum-new-rgb), .45); }
/* A forum post: on a phone the author sits above the post with a small picture and the post's date,
   and the post's actions (quote, edit, penalty, delete) hide behind "⋯" on the right of the author
   row (the card is the positioned parent); from the tablet on the author is a column on the left
   and the actions are buttons side by side (the menu box is undone, in every UI style). */
.forum-post-avatar { width: 40px; height: 40px; font-size: 1.2rem; }
.forum-post-author { border-bottom: var(--bs-border-width) solid var(--bs-border-color); }
.forum-post-actions-wrap:not(:has(.forum-post-actions > :not(.d-none))) { display: none; }
@media (max-width: 767.98px) {
    .forum-post-author { padding-right: 3.25rem !important; }
    .dropdown.forum-post-actions-wrap { position: absolute; top: calc(.5rem + 4px); right: .5rem; }
    .forum-post-actions-wrap .forum-post-actions .btn {
        display: block; width: 100%; text-align: start; border: 0; border-radius: 0; box-shadow: none; transform: none;
    }
}
@media (min-width: 768px) {
    .forum-post-avatar { width: 64px; height: 64px; font-size: 1.8rem; }
    .forum-post-author { border-bottom: 0; border-right: var(--bs-border-width) solid var(--bs-border-color); }
    .dropdown.forum-post-actions-wrap > .forum-post-actions {
        display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem;
        position: static; padding: 0; margin: 0; min-width: 0; background: none;
        border: 0 !important; box-shadow: none !important;
    }
}
/* A forum post reached by its anchor (after writing it, or from a notification) stops below the
   sticky header instead of under it. */
[data-forum-post] { scroll-margin-top: 6rem; }

/* Chat messages: a GIF (240 px wide in the forum) shrinks to its bubble — no sideways scrolling. */
[data-chat-message-text] img.forum-gif {
    max-width: 100% !important;
    max-height: 140px !important;
    height: auto;
}

/* The docked window is narrower still. */
.chat-window [data-chat-message-text] img.forum-gif {
    max-height: 110px !important;
}

/* A forum post whose dropdown (who reacted, the reactions, the "⋯" actions) is open lies above the
   posts and the reply box after it, so the list is never covered — and so does every box around it
   (the list of replies is a card of its own, next to the reply box's card). */
[data-forum-post]:has(.dropdown-menu.show),
.card:has(.dropdown-menu.show) {
    position: relative;
    z-index: 1060;
}

/* Lineup editor (team/_lineup_editor.html.twig): the pitch with its tokens — picture, position,
   strength, name, the slot's select laid invisibly on top — and the tactics drawn in below them.
   Sizes follow the pitch's width (container units), so the tokens shrink with it on a phone. */
.lineup-pitch {
    container-type: inline-size;
    aspect-ratio: 3 / 4;
    background: repeating-linear-gradient(#2e7d32 0 10%, #2a7330 10% 20%);
}
.lineup-pitch-tactics { pointer-events: none; }
.lineup-pitch-marking { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.lineup-pitch-press-zone { fill: rgba(255, 255, 255, .07); }
.lineup-pitch-press-line { stroke: rgba(255, 255, 255, .8); stroke-width: 2; stroke-dasharray: 8 6; }
.lineup-pitch-arrows line { stroke-width: 7; stroke-linecap: round; }
.lineup-pitch-arrows-offensive line { stroke: rgba(255, 193, 7, .55); }
.lineup-pitch-arrows-defensive line { stroke: rgba(13, 202, 240, .55); }
.lineup-pitch-arrows-balanced line { stroke: rgba(255, 255, 255, .35); }

.lineup-token {
    --token-photo: clamp(28px, 11cqw, 48px);
    width: clamp(3.4rem, 17cqw, 6.5rem);
    line-height: 1.1;
}
.lineup-token-photo img,
.lineup-token-photo > span:first-child {
    width: var(--token-photo) !important;
    height: var(--token-photo) !important;
}
.lineup-token-position,
.lineup-token-strength {
    position: absolute;
    top: -.35rem;
    font-size: clamp(.55rem, 2.6cqw, .7rem);
    padding: .15em .35em;
}
.lineup-token-position { left: -.9rem; background: rgba(33, 37, 41, .85); color: #fff; }
.lineup-token-strength { right: -.9rem; }
.lineup-token-name {
    margin-top: .15rem;
    padding: .05rem .3rem;
    border-radius: .35rem;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: clamp(.6rem, 2.8cqw, .8rem);
    font-weight: 600;
}
.lineup-token-name.is-empty { color: rgba(255, 255, 255, .6); font-weight: 400; font-style: italic; }
/* The select covers the whole token: a tap opens the picker, the token stays what you see. */
.lineup-token-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px; /* no zoom on focus in iOS */
}
.lineup-token:hover .lineup-token-photo > :first-child,
.lineup-token:focus-within .lineup-token-photo > :first-child {
    outline: 3px solid #ffc107;
    outline-offset: 1px;
}
.lineup-bench {
    container-type: inline-size;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem .5rem;
    padding: .9rem .5rem .6rem;
    border-radius: 1rem;
    background: rgba(46, 125, 50, .25);
}
.lineup-bench .lineup-token { width: auto; --token-photo: clamp(28px, 10cqw, 44px); }
.lineup-bench .lineup-token-position { left: -.6rem; }
.lineup-bench .lineup-token-strength { right: -.6rem; }
.lineup-pitch-attack-side line { stroke: rgba(253, 126, 20, .6); stroke-width: 6; stroke-linecap: round; }
.lineup-pitch-passes { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2.5; stroke-dasharray: 5 5; stroke-linejoin: round; }
.lineup-pitch-back-line { stroke: rgba(111, 66, 193, .85); stroke-width: 3; stroke-linecap: round; }
.lineup-pitch-tackling { top: .5rem; right: .5rem; background: rgba(0, 0, 0, .55); font-size: .7rem; }

/* The draft's live reveal: a progress bar that stands out on the dark card header too. */
.draft-live-progress {
    width: 10rem;
    height: .85rem;
    background: rgba(127, 127, 127, .35);
    border: 1px solid rgba(127, 127, 127, .55);
}

/* Match timelines (live ticker, match report): minute and icon in fixed columns, so the texts line up. */
.timeline-minute { flex: 0 0 2.6rem; text-align: right; }
.timeline-icon { flex: 0 0 1.6rem; text-align: center; }

/* The live animation below the score (match_animation_controller.js). */
.match-animation-pitch { display: block; width: 100%; height: auto; border-radius: .4rem; }
.match-animation-grass { fill: #2e7d32; }
.match-animation-line { stroke: rgba(255, 255, 255, .75); stroke-width: .35; }
.match-animation-goal { fill: rgba(255, 255, 255, .9); }
.match-animation-spot { fill: rgba(255, 255, 255, .75); }
.match-animation-dot circle { stroke: #fff; stroke-width: .35; }
.match-animation-dot text { font-size: 2px; font-weight: 700; fill: #fff; pointer-events: none; }
.match-animation-side-0 circle { fill: #c62828; }
.match-animation-side-1 circle { fill: #1565c0; }
.match-animation-side-0.match-animation-keeper circle { fill: #212121; }
.match-animation-side-1.match-animation-keeper circle { fill: #f9a825; }
.match-animation-side-1.match-animation-keeper text { fill: #212121; }
.match-animation-dot circle.match-animation-booked { stroke: #ffeb3b; stroke-width: .8; }
.match-animation-ball { fill: #fff; stroke: #212121; stroke-width: .3; }
.match-animation-dot, .match-animation-ball { transition: opacity .6s ease; }
.match-animation-halftime .match-animation-dot, .match-animation-halftime .match-animation-ball { opacity: 0; }
.match-animation-caption { min-height: 1.2em; }
.match-animation-caption.match-animation-big { font-weight: 700; color: var(--icm-accent-text, inherit); }
.match-animation-flash { animation: live-ticker-new 2.5s ease-out; }
@media (prefers-reduced-motion: reduce) { .match-animation-flash { animation: none; } }

/* The welcome guide (templates/_welcome_guide.html.twig): every menu entry outside the open step
   is greyed out and can't be clicked; the open step's entry is marked. */
.app-nav-link--guide-locked,
.app-nav-parent.app-nav-link--guide-locked {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}
.app-nav-link.app-nav-link--guide-next {
    box-shadow: inset 3px 0 0 var(--icm-accent, var(--club-color, #0d6efd));
    font-weight: 600;
}
.welcome-guide-banner {
    border-left: 4px solid var(--icm-accent, var(--bs-primary));
}

/* DS/potential badges and circles (`|strength_tier`): red < 25, orange 25–39, yellow 40–55,
   yellow-green 56–70, green from 71. */
:root {
    --strength-poor: #dc3545;
    --strength-weak: #ee7b26;
    --strength-medium: #ffc107;
    --strength-good: #a3c93a;
    --strength-top: #198754;
}
.badge.strength-tier-poor { background-color: var(--strength-poor); color: #fff; }
.badge.strength-tier-weak { background-color: var(--strength-weak); color: #fff; }
.badge.strength-tier-medium { background-color: var(--strength-medium); color: #212529; }
.badge.strength-tier-good { background-color: var(--strength-good); color: #1d2a06; }
.badge.strength-tier-top { background-color: var(--strength-top); color: #fff; }
.strength-tier-poor { --strength-color: var(--strength-poor); }
.strength-tier-weak { --strength-color: var(--strength-weak); }
.strength-tier-medium { --strength-color: var(--strength-medium); }
.strength-tier-good { --strength-color: var(--strength-good); }
.strength-tier-top { --strength-color: var(--strength-top); }
