/* The squad container is a query target so children can size with cqi */
.lineup-container {
    container-type: inline-size;
    container-name: lineup;
    width: 100%;
}

.lineup-pitch {
    width: 100%;
    /* Der Rasen ist selbst die Flaeche, ein Rahmen darum ein Kasten zu viel
       (16.11.2026). Die Karte bleibt fuer die Ecken. */
    --bs-card-border-width: 0;
}

.squad {
    background-color: green;
    background-image: url("../../assets/football-field-vertical.jpg");
    width: 100%;
    position: relative;
    background-size: cover;
    background-position: bottom 0 left 50%;
    aspect-ratio: 1 / 1.1;
}

/* Lineup stats overlay (strength + average age) in top-left corner of pitch */
.lineup-stats-overlay {
    position: absolute;
    top: 2cqi;
    left: 2cqi;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
}

.lineup-strength-overlay,
.lineup-age-overlay {
    font-size: 5cqi;
    font-weight: bold;
    color: rgba(var(--app-white-rgb), 0.85);
    text-shadow: 2px 2px 6px rgba(var(--app-black-rgb), 0.7);
}

/* Portrait fills the screen with the pitch, so both controls belong at the
   bottom, within reach of a thumb: the numbers in the left corner, the
   formation in the right one. In landscape the pitch is rotated and much
   flatter — the numbers stay in the top-left corner they have there. */
@media (orientation: portrait) {
    .lineup-stats-overlay {
        top: auto;
        bottom: 2cqi;
        left: 2cqi;
    }
}

/* The formation the lineup is drawn in, changed right on the pitch (#567) —
   it used to be the first select on the tactic tab, far from the thing it
   reshapes. Dark and translucent so it reads on the grass without hiding it,
   and above the player tiles (z-index 6) so the dropdown stays clickable. */
.lineup-formation-select {
    position: absolute;
    bottom: 2cqi;
    right: 2cqi;
    z-index: 7;
    width: auto;
    border: 1px solid rgba(var(--app-white-rgb), 0.5);
    background-color: rgba(var(--app-black-rgb), 0.55);
    /* Bootstrap's chevron is near-black and vanishes on the dark control —
       der helle ist der des dunklen Modus und steht als Token bereit (#706). */
    background-image: var(--app-inv-chevron);
    /* Padding and chevron are in em, so they follow the font size wherever
       it is changed or capped. */
    background-position: right 0.3em center;
    background-size: 0.6em 0.6em;
    /* The formation is the third number on the pitch, so it is set exactly
       like strength and average age beside it — and, like them, scales with
       the pitch. The padding stays tight so the type, not the box, is big. */
    padding: 0.3em 1.1em 0.05em 0.3em;
    font-family: inherit;
    font-size: 5cqi;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(var(--app-black-rgb), 0.7);
    color: rgba(var(--app-white-rgb), 0.85);
}

.lineup-formation-select:focus {
    background-color: rgba(var(--app-black-rgb), 0.75);
    border-color: rgba(var(--app-white-rgb), 0.8);
    box-shadow: none;
    color: var(--app-ink-on-accent);
}

/* The option list is drawn by the platform, not on the pitch — white text on
   a translucent background would be unreadable there. */
.lineup-formation-select option {
    color: initial;
    text-shadow: none;
}

/* Player pill — all dimensions relative to container width */
.squad .player {
    position: absolute;
    width: 15cqi;
    height: 6cqi;
    background-color: rgba(var(--app-black-rgb), 0.4);
    border: solid 1px white;
    border-radius: 1.7cqi;
    transform: translateX(-50%) translateY(50%);
    color: rgb(var(--app-white-rgb));
    text-align: center;
    line-height: 6cqi;
    font-size: 1.9cqi;
    box-shadow: 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
}

/* `PlayerImage` schreibt `width`/`height` in Pixeln inline — die Groesse kommt
   aus den Daten. Auf dem Spielfeld zaehlt aber die Feldbreite, nicht die
   Pixelzahl, und gegen ein inline-Attribut kommt ein Stylesheet nur mit
   `!important` an. Die vier sind die einzigen in dieser Datei, die bleiben
   mussten (#706). */
.squad .player .player-image {
    width: 15cqi !important;
    height: auto !important;
    transform: translateY(-90%);
}

.squad .player .player-image svg {
    width: 100%;
    height: auto;
}

.player .position-badge {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-35%) translateY(-50%);
    padding: 0;
    width: 3.8cqi;
    min-width: 0;
    height: 3.8cqi;
    line-height: 3.8cqi;
    font-size: 1.7cqi;
    box-shadow: 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
}

.player .freshness-badge {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateX(-25%) translateY(50%);
    width: 5.5cqi;
    height: 2.7cqi;
    background-color: rgba(var(--app-black-rgb), 0.66);
    border-radius: 0.5cqi;
    box-shadow: 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
    font-size: 1.9cqi;
    line-height: 2.7cqi;
}

.player .name {
    display: block;
    font-weight: normal;
    font-size: 1.9cqi;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.player .level-badge {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(35%) translateY(50%);
    box-shadow: 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
    /* Override fixed sizes from level-badge.css */
    width: 4.7cqi;
    height: 4.7cqi;
    line-height: 5cqi;
    font-size: 2.5cqi;
}

/* Out-of-position malus, sitting directly under the level badge (#540). */
.player .position-penalty {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(100%) translateY(33%);
    padding: 0.5cqi 0.3cqi 0;
    border-radius: 0.5cqi;
    background-color: rgba(var(--app-black-rgb), 0.66);
    color: var(--bs-danger);
    font-size: 1.9cqi;
    line-height: 1;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
}

.squad .player:hover {
    cursor: pointer;
    background-color: rgba(var(--app-black-rgb), 0.5);
}

/* Star player (#516): golden border + halo on the pill and a soft radial glow
   behind the player figure so star players stand out on the pitch. */
/* Suspended or injured: on the pitch but not available (#706). */
.player.is-unavailable {
    opacity: 0.5;
    filter: grayscale(100%);
}

.squad .player.is-star {
    border-color: gold;
    box-shadow: 0 0 2cqi 0.4cqi rgba(var(--app-star-rgb), 0.75), 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
}

.squad .player.is-star::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 20cqi;
    height: 20cqi;
    transform: translate(-50%, 35%);
    background: radial-gradient(circle, rgba(var(--app-star-rgb), 0.55) 0%, rgba(var(--app-star-rgb), 0.25) 40%, rgba(var(--app-star-rgb), 0) 70%);
    pointer-events: none;
}

/* ==========================================================================
   Player appearance "boom" — flash + rays radiating in all directions,
   inserted as the tile's first child so it renders behind the player.
   ========================================================================== */
.player-burst {
    position: absolute;
    top: -2cqi;
    left: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Rays are individual thin spokes (built in lineup.js) so each can get a
   random length. The container is a zero-size anchor at the burst centre. */
.player-burst__rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}

/* One radiating spoke. `--angle` and `--len` are set inline per ray. Its base
   sits at the burst centre (transform-origin bottom-centre) and it grows
   outward via scaleY while fading — bright at the base, transparent at the tip. */
.player-burst__ray {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.5cqi;
    height: var(--len, 8cqi);
    border-radius: 0.5cqi;
    background: linear-gradient(
            to top,
            rgba(var(--app-burst-ray-rgb), 0.5) 0%,
            rgba(var(--app-burst-ray-rgb), 0) 100%
    );
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%) rotate(var(--angle, 0deg)) scaleY(0);
    animation: player-burst-ray 0.5s ease-out forwards;
}

/* Central flash of light. */
.player-burst__core {
    position: absolute;
    top: 0;
    left: 0;
    width: 12cqi;
    height: 12cqi;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    background: radial-gradient(
            circle,
            rgba(var(--app-white-rgb), 0.95) 0%,
            rgba(var(--app-burst-core-rgb), 0.85) 40%,
            rgba(var(--app-burst-edge-rgb), 0) 72%
    );
    animation: player-burst-core 0.45s ease-out forwards;
}

@keyframes player-burst-ray {
    0% {
        transform: translate(-50%, -100%) rotate(var(--angle, 0deg)) scaleY(0);
        opacity: 0;
    }
    30% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -100%) rotate(var(--angle, 0deg)) scaleY(1);
        opacity: 0;
    }
}

@keyframes player-burst-core {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.7);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .player-burst {
        display: none;
    }
}

/* Position-group border colors — match bootstrap text color groups */
.squad .player.GK {
    border-color: rgb(var(--bs-danger-rgb));
}

.squad .player.LD,
.squad .player.CD,
.squad .player.RD {
    border-color: rgb(var(--bs-warning-rgb));
}

.squad .player.LM,
.squad .player.DM,
.squad .player.CM,
.squad .player.RM,
.squad .player.OM {
    border-color: rgb(var(--bs-info-rgb));
}

.squad .player.LA,
.squad .player.CA,
.squad .player.RA {
    border-color: rgb(var(--bs-success-rgb));
}

/* Zweite Nennung mit Absicht: oben die Farbgruppe, hier die Platzierung
   auf dem Platz. Zusammenlegen wuerde beide Gruppen unleserlich machen. */
/* stylelint-disable-next-line no-duplicate-selectors */
.squad .player.GK {
    top: 85%;
    left: 50%;
    z-index: 6;
}

.squad .player.LD {
    top: 65%;
    left: 15%;
    z-index: 5;
}

.squad .player.CD {
    top: 70%;
    left: 50%;
    z-index: 5;
}

.squad .player.RD {
    top: 65%;
    left: 85%;
    z-index: 5;
}

.squad .player.CM {
    top: 40%;
    left: var(--lineup-offset, 50%);
    z-index: 3;
}

.squad .player.LM {
    top: 40%;
    left: 15%;
    z-index: 3;
}

.squad .player.RM {
    top: 40%;
    left: 85%;
    z-index: 3;
}

.squad .player.DM {
    top: 55%;
    left: var(--lineup-offset, 50%);
    z-index: 4;
}

.squad .player.OM {
    top: 25%;
    left: 50%;
    z-index: 2;
}

.squad .player.CA {
    top: 10%;
    left: 50%;
    z-index: 1;
}

.squad .player.RA {
    top: 10%;
    left: 75%;
    z-index: 1;
}

.squad .player.LA {
    top: 10%;
    left: 25%;
    z-index: 1;
}

/* Zweite Nennung mit Absicht: oben die Farbgruppe, hier die Platzierung
   auf dem Platz. Zusammenlegen wuerde beide Gruppen unleserlich machen. */
/* stylelint-disable-next-line no-duplicate-selectors */
.squad .player.CD {
    left: var(--lineup-offset, 50%);
}

/* Landscape layout — rotate pitch 90° clockwise when viewport is wider than tall */
@media (orientation: landscape) {
    .squad {
        background-image: url("../../assets/football-field-horizontal.jpg");
        background-position: left;
        aspect-ratio: 1.5 / 1;
    }

    /* Scale players down ~20% in landscape */
    .squad .player {
        width: 12cqi;
        height: 4.8cqi;
        border-radius: 1.4cqi;
        line-height: 4.8cqi;
        font-size: 1.5cqi;
    }

    .squad .player .player-image {
        width: 12cqi !important;
    }

    /* The formation select shrinks with them, capped at about its phone
       size — on a desktop-wide pitch even 4cqi drew a ~45px block. And it
       moves to the bottom-left corner: the numbers are top left here, so that
       corner is free, while the right edge belongs to the attackers. */
    .lineup-formation-select {
        left: 2cqi;
        right: auto;
        font-size: min(4cqi, 1.5rem);
    }

    .player .position-badge {
        width: 3cqi;
        height: 3cqi;
        line-height: 3cqi;
        font-size: 1.4cqi;
    }

    .player .freshness-badge {
        width: 4.4cqi;
        height: 2.2cqi;
        border-radius: 0.4cqi;
        font-size: 1.5cqi;
        line-height: 2.2cqi;
    }

    .player .name {
        font-size: 1.5cqi;
    }

    .player .level-badge {
        width: 3.8cqi;
        height: 3.8cqi;
        line-height: 4cqi;
        font-size: 2cqi;
    }

    .player .position-penalty {
        font-size: 1.5cqi;
    }

    .squad .player.GK {
        top: 46%;
        left: 10%;
    }

    .squad .player.LD {
        top: 9%;
        left: 35%;
    }

    .squad .player.CD {
        top: calc(var(--lineup-offset, 50%) - 4%);
        left: 30%;
    }

    .squad .player.RD {
        top: 85%;
        left: 35%;
    }

    .squad .player.DM {
        top: calc(var(--lineup-offset, 50%) - 4%);
        left: 45%;
    }

    .squad .player.CM {
        top: calc(var(--lineup-offset, 50%) - 4%);
        left: 60%;
    }

    .squad .player.LM {
        top: 9%;
        left: 60%;
    }

    .squad .player.RM {
        top: 85%;
        left: 60%;
    }

    .squad .player.OM {
        top: 46%;
        left: 75%;
    }

    .squad .player.CA {
        top: 46%;
        left: 90%;
    }

    .squad .player.LA {
        top: 19%;
        left: 90%;
    }

    .squad .player.RA {
        top: 75%;
        left: 90%;
    }
}

.bench-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    padding: 6px;
    text-align: center;
    border: 2px solid rgba(var(--app-black-rgb), 0.3);
    /* Die handgezeichnete Kartenecke des Themes, wie jede andere Karte auch —
       als Token, damit die drei Nachbauten nicht auseinanderlaufen (base.css). */
    border-radius: var(--app-card-corner);
}

/* Position-group border colors for bench */
.bench-slot.GK {
    border-color: rgb(var(--bs-danger-rgb));
}

.bench-slot.LD,
.bench-slot.CD,
.bench-slot.RD {
    border-color: rgb(var(--bs-warning-rgb));
}

.bench-slot.LM,
.bench-slot.DM,
.bench-slot.CM,
.bench-slot.RM,
.bench-slot.OM {
    border-color: rgb(var(--bs-info-rgb));
}

.bench-slot.LA,
.bench-slot.CA,
.bench-slot.RA {
    border-color: rgb(var(--bs-success-rgb));
}

.bench-slot:hover {
    background-color: rgba(var(--app-black-rgb), 0.2);
}

.bench-slot__image {
    width: 100px;
    height: 105px;
}

/* Die Zeile ist `d-flex align-items-center gap-1`; eigen bleibt nur, dass sie
   nicht umbricht. */
.bench-slot__info {
    white-space: nowrap;
}

.bench-slot__info .position-badge {
    padding: 1px 5px;
    font-size: 11px;
    min-width: 0;
}

.bench-slot__info .level-badge {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 11px;
}

.bench-slot__name {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.bench-slot__freshness {
    font-size: 11px;
    font-weight: bold;
}

/* All three plan selects (condition, minute, who comes off) share one size. */
.bench-substitution-select {
    margin-top: 6px;
    width: 100%;
    font-size: 11px;
    padding: 2px 4px;
    cursor: pointer;
}

/* Empty bench slot */
.bench-slot--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    background-color: rgba(var(--bs-body-color-rgb), 0.05);
    border: 2px dashed rgba(var(--bs-body-color-rgb), 0.3);
    border-radius: var(--app-card-corner);
    color: rgba(var(--bs-body-color-rgb), 0.4);
    font-size: 13px;
}

.bench-slot--empty .bench-slot__label {
    text-align: center;
}

@media screen and (max-width: 768px) {
    #squad {
        width: calc(100% + 4rem);
        margin: 0 -2rem;
    }

    .bench-slots {
        justify-content: center;
    }

    .bench-slot,
    .bench-slot--empty {
        flex: 1 1 calc(50% - 1rem);
    }
}

.select-player-action-card-prompt {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

@keyframes action-card-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.action-card-giver {
    animation: action-card-fade-in 0.5s ease-in-out;
}

/* The overlay reserves the strip's height so the card does not jump when the
   hand loads. Only the overlay can do that — it knows it has the room (#613). */
.action-card-giver--overlay {
    height: 280px;
}

/* On an ordinary page the giver is just another block: it sizes itself, keeps
   its label, and brings none of the overlay's chrome. Without this the fixed
   height pushed the card stack over the squad photo underneath, and the strip's
   own height clipped the label off the bottom (#613). */
.action-card-giver--flow .select-player-action-cards {
    margin: 0 0 1rem;
    padding: 0;
    /* `height: auto` is what stops the label being clipped — declaring
       `overflow-y: visible` would be a lie, because a non-visible `overflow-x`
       forces the other axis to `auto` no matter what is written here. */
    height: auto;
    overflow-x: auto;
    background: none;
}

.action-card-giver--flow .select-player-action-card-item {
    color: inherit;
}

/* In the player modal the giver sits mid-content, between the alerts and the
   sell section: the whole section — heading included — is the grey band, white
   on grey, bled to the card's edges, and it keeps its distance from the next
   section's heading. The strip inside drops its own band and the negative
   bottom margin it uses to end the select-player overlay. */
.player-modal__action-cards {
    margin-bottom: 1.5rem;
}

.player-modal__action-cards .action-card-giver {
    height: auto;
    margin: 0 -2rem;
    padding: 1rem 2rem;
    color: rgb(var(--app-white-rgb));
    background: linear-gradient(136deg, var(--app-ground) 0%, var(--app-ground-lift) 100%);
}

.player-modal__action-cards .select-player-action-card-prompt {
    margin-top: 0;
}

.player-modal__action-cards .select-player-action-card-prompt + .text-muted {
    margin-bottom: 0;
    color: rgba(var(--app-white-rgb), 0.6);
}

.player-modal__action-cards .select-player-action-cards {
    margin: 0 -2rem;
    padding: 0 2rem;
    height: auto;
    background: none;
}

/* An overlay's card body has 1.5rem of side padding on mobile, not 2rem. */
@media screen and (max-width: 768px) {
    .player-modal__action-cards .action-card-giver {
        margin: 0 -1.5rem;
        padding: 1rem 1.5rem;
    }

    .player-modal__action-cards .select-player-action-cards {
        margin: 0 -1.5rem;
        padding: 0 1.5rem;
    }
}

.select-player-action-cards {
    margin: 0 -2rem -1rem;
    padding: 1rem 2rem 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: linear-gradient(136deg, var(--app-ground) 0%, var(--app-ground-lift) 100%);
    height: 272px;
}

.select-player-action-card-item {
    flex: 0 0 auto;
    width: 140px;
    color: rgb(var(--app-white-rgb));
}

/* ==========================================================================
   Player picker — horizontal strip of lineup-style player tiles used by the
   select-player overlay. Bleeds into the card padding and uses the same grey
   band as the action-card strip above so both strips read as one surface.
   ========================================================================== */

/* Keep the overlay at a predictable width: without it the fit-content overlay
   would stretch to the max-content width of the picker's card row. */
.select-player-overlay {
    max-width: 460px;
}

/* Holds the action-card strip at its final height from the first paint, so the
   overlay does not grow when the hand finishes loading. Rendered only for an
   occupied slot — see the comment in selectPlayerOverlay.js. */
.select-player-overlay__card-slot {
    height: 292px;
}

/* With an empty slot the strip is the last thing in the overlay — the
   action-card section below it exists only for an occupied slot. Let it bleed
   into the card's bottom padding the way the card strip does, so the overlay
   ends on the strip instead of a band of empty white. */
.select-player-overlay > .player-picker:last-child {
    margin-bottom: -1rem;
}

.player-picker {
    margin: 0 -2rem;
    padding: 0.75rem 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    background: linear-gradient(136deg, var(--app-ground) 0%, var(--app-ground-lift) 100%);
}

.player-picker--empty {
    padding: 1rem 2rem;
    background: none;
}

.player-picker__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.6rem;
    width: max-content;
}

.player-picker__card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0 0.5rem;
    border-radius: 0.75rem;
    background-color: rgba(var(--app-black-rgb), 0.4);
    box-shadow: 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
    color: rgb(var(--app-white-rgb));
    text-align: center;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
}

.player-picker__card:hover,
.player-picker__card:focus-visible {
    background-color: rgba(var(--app-black-rgb), 0.6);
    transform: translateY(-3px);
    outline: none;
}

/* Playable, but not in their natural position — visibly the second choice,
   and set apart from the matching players by a wider gap. */
.player-picker__card.is-out-of-position {
    opacity: 0.66;
}

.player-picker__card.is-group-start {
    margin-left: 1.4rem;
}

/* Already fielded somewhere else in the lineup — picking them swaps two players
   instead of pulling one off the bench. Tinted lighter than `.is-current` so the
   slot's own occupant still reads as the strongest highlight. */
.player-picker__card.is-in-lineup {
    background-color: rgba(var(--bs-info-rgb), 0.12);
    border: 1px solid rgba(var(--bs-info-rgb), 0.5);
}

.player-picker__card.is-in-lineup:hover,
.player-picker__card.is-in-lineup:focus-visible {
    background-color: rgba(var(--bs-info-rgb), 0.3);
}

/* The player currently standing in the slot — always full opacity, even when
   he is the one being fielded out of position. */
.player-picker__card.is-current {
    opacity: 1;
    background-color: rgba(var(--bs-info-rgb), 0.25);
    border-color: rgb(var(--bs-info-rgb));
    border-width: 2px;
    border-style: solid;
}

.player-picker__card.is-current:hover,
.player-picker__card.is-current:focus-visible {
    background-color: rgba(var(--bs-info-rgb), 0.5);
}

.player-picker__card.is-star {
    border-color: gold;
    box-shadow: 0 0 10px 2px rgba(var(--app-star-rgb), 0.6), 3px 3px 3px rgba(var(--app-black-rgb), 0.5);
}

.player-picker__image {
    height: 108px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
}

.player-picker__image svg {
    display: block;
}

/* `d-flex align-items-center gap-1` an der Aufrufstelle; hier steht die
   Schriftgroesse, die die beiden Plaketten darin mitnehmen. */
.player-picker__badges {
    font-size: 0.86rem;
}

.player-picker__badges .position-badge {
    font-size: 0.86rem;
}

.player-picker__badges .level-badge {
    width: 28px;
    height: 28px;
    line-height: 32px;
}

.player-picker__name {
    max-width: 100%;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-picker__meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.86rem;
    font-weight: bold;
}

.player-picker__penalty {
    color: var(--bs-danger);
}
