@font-face {
    font-family: 'fight';
    src: url('fonts/fight_this.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


:root {
    --bg: #202522;
    --panel: #202222;
    --gold: #fff;
    --line: white;
    --muted: #bec4c0;
}

body.teamfight {
    color: #f6f7f6;
}

main {
    max-width: 1220px;
    margin: 0 auto;
    padding: 32px 0px 70px;
}

.site-header {
    padding: 12px max(22px, calc((100% - 1220px) / 2));
    gap: 20px;
}

.site-header nav {
    gap: 20px;
}

.site-header nav a {
    font-size: 24px;
    white-space: nowrap;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.08;
    margin: 12px 0 22px;
}

h2 {
    font-size: 34px;
    margin: 0 0 18px;
}

h3 {
    font-size: 18px;
    margin: 12px 0;
}

em {
    color: #e44a4c;
    font-style: normal;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    color: white;
}

.hero.tf-hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: center;
    gap: 40px;
    padding: 30px 0 55px;
}

.tf-hero p {
    max-width: 620px;
    color: white;
    font-size: 17px;
}

.tf-emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    transform: rotate(-5deg);
    line-height: .9;
    color: white;
    text-shadow: 0 4px 0 #101612, 0 0 45px rgba(255, 255, 255, .1);
}

.tf-emblem span {
    font-size: 70px;
    letter-spacing: 15px;
}

.tf-emblem strong {
    font-size: 110px;
}

.tf-emblem b {
    font-size: 110px;
    color: #e44a4c;
}

.tf-emblem small {
    font: 10px Arial, sans-serif;
    letter-spacing: 3px;
    margin-top: 15px;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
    padding: 0;
    margin: 0 0 32px;
}

.numbers > div {
    background: rgba(22, 26, 23, .97);
    padding: 24px 15px;
}

.numbers strong {
    font-size: 42px;
}

.numbers span {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    border: 1px solid #68716b;
    border-radius: 4px;
    color: white;
    background: #2c342f;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
}

.btn.primary,
.btn.is-active {
    background: #e24447;
    border-color: #e24447;
    color: white;
}

.btn:hover {
    color: white;
    background: #4a554e;
}

.btn.primary:hover {
    background: #be3336;
}

.btn.small {
    min-height: 32px;
    font-size: 12px;
    padding: 7px 10px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.panel {
    background: rgba(28, 32, 29, .96);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 25px;
    color: #f6f7f6;
    margin-bottom: 30px;
}

.panel-fit {
    max-width: 1040px;
    margin: 0 auto;
    margin-bottom: 30px;
}

.section {
    margin: 35px 0;
}

.page-heading {
    margin: 15px 0 35px;
    text-align: center;
}

.page-heading p {
    max-width: 840px;
    color: #ccd3cd;
}

.tf-notice {
    border: 1px solid #FFFFFF;
    background: #262628;
    padding: 20px;
    border-radius: 6px;
    margin: 24px 0;
}

.tf-notice p:last-child {
    margin-bottom: 0;
}

.muted {
    color: #bac3bc;
    font-size: 13px;
}

.error {
    color: #ffb2b2;
}

.flash {
    margin: 0 0 20px;
    border-radius: 6px;
    padding: 16px;
}

.flash.error {
    background: #57292b;
    border: 1px solid #9c5558;
    color: #ffe2e2;
}

.flash.success {
    background: #264b34;
    border: 1px solid #508565;
    color: #e4ffed;
}

.empty {
    padding: 32px;
    border: 1px dashed white;
    background: #323431;
    color: white;
    border-radius: 6px;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tf-match {
    border: 1px solid #536359;
    border-radius: 8px;
    background: rgba(27, 32, 29, .96);
    overflow: hidden;
}

.tf-match.is-played {
    border-top: 3px solid #e24447;
}

.tf-match-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: #cbd3cd;
}

.tag {
    display: inline-block;
    font-size: 11px;
    border: 1px solid #5a675f;
    padding: 3px 8px;
    border-radius: 4px;
    color: #e5eae6;
    background: #27392d;
}

.tf-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
    gap: 8px;
    padding: 22px 12px;
    align-items: start;
}

.tf-side {
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tf-side strong {
    font-size: 17px;
}

.tf-side small {
    color: #bec9c0;
    font-size: 11px;
}

.is-winner strong {
    color: #c3efc7;
}

.tf-score {
    text-align: center;
    font: 28px 'Bebas Neue', Impact, sans-serif;
    align-self: center;
    white-space: nowrap;
}

.team-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    background: #1b231d;
    border: 1px solid #526559;
}

.team-logo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 38px 'Bebas Neue', Impact, sans-serif;
    background: linear-gradient(130deg, #53665a, #29362c);
}

.tf-roster {
    display: flex;
    gap: 5px;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
}

.tf-roster figure {
    margin: 0;
    flex: 1;
    max-width: 76px;
    min-width: 0;
    text-align: center;
}

.tf-roster img,
.tf-roster .hero-placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #727e75;
}

.tf-roster figcaption {
    font-size: 9px;
    line-height: 1.3;
    margin-top: 5px;
    color: #cad4cc;
}

.hero-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 22px Impact, Arial, sans-serif;
    background: #425047;
}

.secret {
    display: block;
    margin-top: 15px;
    padding: 6px 9px;
    border: 1px dashed #68806e;
    font-size: 11px;
    color: #bdcbbf;
    border-radius: 4px;
}

.match-link {
    display: block;
    padding: 11px 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    text-align: right;
    color: #e9eeea;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #eef4ef;
    background: none;
}

th,
td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid #45564a;
    font-size: 13px;
}

thead,
th {
    background: #26362a;
    color: #dbe6dd;
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background: rgba(51, 67, 55, .24);
}

.disqualified {
    opacity: .6;
}

.pool-filters,
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0;
    justify-content: center;
}

.pool-filters {
    position: sticky;
    top: 85px;
    z-index: 10;
    background: rgba(22, 30, 24, .96);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
}

[hidden] {
    display: none !important;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.team-card {
    display: block;
    padding: 28px;
    border: 1px solid #55665b;
    border-radius: 8px;
    text-align: center;
    background: #1e2c23;
}

.team-card h2 {
    font-size: 30px;
    margin: 15px 0;
}

.team-card p {
    font-size: 13px;
}

.team-profile {
    display: flex;
    gap: 25px;
    align-items: center;
}

.team-profile .team-logo {
    width: 110px;
    height: 110px;
}

.tf-game-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.game-card {
    margin: 18px 0;
}

.tf-game-sides img,
.tf-game-sides .hero-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 7px;
    object-fit: cover;
    margin-right: 15px;
    vertical-align: middle;
}

.hero-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-cell img,
.hero-cell .hero-placeholder {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
}

.admin-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.admin-columns > * {
    min-width: 0;
}

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin: 14px 0;
    font-size: 13px;
    color: #dae5dc;
}

input:not([type=hidden]):not([type=checkbox]),
select,
textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    margin-top: 6px;
    background: #121c15;
    border: 1px solid white;
    border-radius: 4px;
    color: #f3f7f4;
    font: 14px Inter, Arial, sans-serif;
}

input[type=checkbox] {
    width: auto;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #e56c6e;
    outline-offset: 2px;
}

input[type=datetime-local] {
    color-scheme: dark;
}

fieldset {
    padding: 18px;
    border: 1px solid #737a75;
    border-radius: 5px;
    min-width: 0;
}

legend {
    padding: 0 8px;
    font-size: 14px;
    color: #e3ece5;
}

.game-fieldset {
    margin: 24px 0;
}

.numeric-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.inline-form {
    display: inline-block;
}

.status-form {
    margin-top: 8px;
}

.status-form label {
    display: inline;
}

.login-card {
    max-width: 470px;
    margin: 60px auto;
}

.rules {
    max-width: 920px;
}

.rules section {
    margin: 30px 0;
}

.rules h2 {
    padding-top: 15px;
    border-top: 1px solid #4e6757;
}

.rules ul,
.rules ol {
    padding-left: 24px;
}

.rules li {
    margin: 8px 0;
}

.calendar-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid #536458;
}

.calendar-row:last-child {
    border-bottom: none;
}

@media (min-width: 981px) {
    .nav-toggle {
        display: none;
    }
}

@media (max-width: 980px) {
    .site-header {
        min-height: 72px;
    }

    .site-header .nav-toggle {
        position: relative;
        display: block;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        background: transparent;
        border: 0;
        z-index: 32;
        cursor: pointer;
    }

    .site-header .nav-toggle::before,
    .site-header .nav-toggle::after,
    .site-header .nav-toggle .nav-toggle__line {
        position: absolute;
        left: 10px;
        display: block;
        width: 24px;
        height: 2px;
        background: #fff;
        content: "";
        border-radius: 2px;
    }

    .site-header .nav-toggle::before {
        top: 13px;
    }

    .site-header .nav-toggle .nav-toggle__line {
        top: 21px;
    }

    .site-header .nav-toggle::after {
        top: 29px;
    }

    .menu-open .site-header .nav-toggle::before {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-open .site-header .nav-toggle::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    .menu-open .site-header .nav-toggle .nav-toggle__line {
        opacity: 0;
    }

    body.teamfight .site-header nav {
        position: fixed;
        left: 0;
        right: auto;
        top: 72px;
        bottom: 0;
        width: min(320px, 88vw);
        height: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 30px;
        gap: 22px;
        transform: translateX(-110%);
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
        animation: none;
        background: #16241a;
        z-index: 30;
        transition: transform .25s ease;
    }

    body.teamfight .site-header nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .site-header nav a {
        font-size: 24px;
    }

    .hero.tf-hero {
        gap: 25px;
    }

    .tf-emblem strong {
        font-size: 85px;
    }

    .tf-emblem span {
        font-size: 50px;
    }

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

    .pool-filters {
        top: 78px;
    }
}

@media (max-width: 700px) {
    main {
        padding: 22px 16px 45px;
    }

    .hero.tf-hero {
        grid-template-columns: 1fr;
        padding: 15px 0 35px;
    }

    .tf-emblem {
        margin: 10px 0 25px;
    }

    .tf-emblem strong {
        font-size: 78px;
    }

    .tf-emblem b {
        font-size: 72px;
    }

    .tf-emblem span {
        font-size: 43px;
    }

    .tf-emblem small {
        font-size: 9px;
    }

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

    .numbers > div {
        padding: 18px 12px;
    }

    .numbers strong {
        font-size: 34px;
    }

    .match-grid,
    .admin-columns,
    .selection-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 18px;
    }

    .tf-roster figure {
        max-width: 80px;
    }

    .calendar-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tf-game-sides {
        gap: 15px;
    }

    .tf-game-sides strong {
        display: block;
        margin-top: 10px;
    }

    .team-profile {
        align-items: flex-start;
    }

    .team-profile .team-logo {
        width: 75px;
        height: 75px;
    }

    .admin-tabs .btn {
        font-size: 12px;
    }

    .pool-filters .btn {
        padding: 9px 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}


.site-header {
    background: linear-gradient(to bottom, #3b3e39 0%, #323431 55%, #292c28 100%);
    border-bottom-color: #dedede;
}
.brand {
    gap: 16px;
}

.dt-wordmark img {
    max-width: 50px;
    width: 100%;
}

.team-wordmark {
    padding: 5px 7px;
    background: #5d5e5c;
    color: white;
    font-family: 'fight';
    font-size: 28px;
    padding-right: 11px;
}

.site-header nav a {
    text-transform: uppercase;
}

.site-header nav a[aria-current='page'] {
    color: #ed3b42;
}

.mock-heading {
    margin: 25px auto 55px;
    text-align: center;
}

.mock-heading h1 {
    font-size: clamp(44px, 6vw, 70px);
    text-transform: uppercase;
}

.mock-heading p {
    margin: 0 auto;
    color: #d6d6d6;
}

.light-panel,
.public-page .panel,
.public-page .tf-match {
    background: #EDEDEB;
    border: 2px solid #f4f4f4;
    border-radius: 8px;
    color: #141414;
}

.light-panel {
    padding: 20px;
}

.light-panel h3 {
    margin: 0 0 16px;
    color: #121212;
    font: 27px/1.1 'Bebas Neue', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

.public-page .panel h2,
.public-page .panel h3,
.public-page .rules p,
.public-page .rules li {
    color: #151515;
}

.public-page .panel .muted,
.public-page .panel .ranking-note {
    color: #4a4a4a;
}

.public-page .rules > section {
    display: block;
}

.public-page .rules {
    padding: 25px;
}

.public-page table {
    color: #171717;
}

.public-page th,
.public-page td {
    border-bottom-color: #a2a2a2;
}

.public-page thead,
.public-page th {
    background: #c9c9c9;
    color: #171717;
}

.public-page tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .18);
}

.public-page .tf-match-head,
.public-page .tf-side small,
.public-page .tf-roster figcaption,
.public-page .match-link {
    color: #3d3d3d;
    border-color: #acacac;
}

.public-page .is-winner strong {
    color: #1d5428;
}

.public-page .secret {
    border-color: #7f7f7f;
    color: #4a4a4a;
}

.public-page .tag {
    background: #c7c7c7;
    border-color: #a1a1a1;
    color: #202020;
}

.team-picker {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 10px;
    max-width: 390px;
    margin: 0 auto 42px;
}

.team-picker label {
    grid-column: 1 / -1;
    margin: 0;
    color: #eee;
    font-size: 12px;
}

.team-picker select {
    margin: 0;
    background: #dedede;
    border: 1px solid #a4a4a4;
    color: #181818;
}

.team-showcase {
    max-width: 1000px;
    margin: 0 auto;
}

.team-showcase-heading > span {
    display: block;
    margin-bottom: 22px;
    font-family: 'fight';
    font-size: 24px;
    text-transform: uppercase;
}

.team-showcase-heading h2 {
    margin: 0 0 12px;
    font: 47px/1 'Bebas Neue', Impact, sans-serif;
    text-transform: uppercase;
}

.duo-portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 22px 25px 14px;
    min-height: 310px;
}

.duo-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    align-self: stretch;
    min-width: 0;
    margin: 0;
}

.player-avatar {
    display: block;
    width: 100%;
    max-width: 188px;
    height: 188px;
    object-fit: contain;
    object-position: center bottom;
}

.player-avatar--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    height: 210px;
    border-radius: 10px;
    background: #bcbcbc;
    color: #7b7b7b;
    font: 110px 'Bebas Neue', Impact, sans-serif;
}

.duo-player figcaption {
    width: 100%;
    margin-top: 9px;
    text-align: center;
}

.duo-player figcaption span {
    display: inline-block;
    padding: 1px 12px;
    border-radius: 4px;
    color: #101010;
    font: 29px/1.1 'Bebas Neue', Impact, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding-top: 5px;
}

.duo-player figcaption strong {
    display: block;
    margin-top: 4px;
    color: #292929;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.duo-team-logo {
    min-width: 0;
    text-align: center;
}

.duo-team-logo .team-logo {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.duo-team-logo .team-logo.placeholder {
    width: 100%;
    height: 190px;
    border: 2px solid #fafafa;
    border-radius: 12px;
    background: #4c4c4c;
    color: white;
    font-size: 100px;
}

.player-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.player-stats {
    padding: 15px 17px;
}


.player-stats dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.player-stats dl > div {
    min-width: 0;
}

.player-stats dt {
    color: #4b4b4b;
    font-size: 12px;
    text-transform: uppercase;
}

.player-stats dd {
    margin: 2px 0 0;
    color: #171717;
    font: 28px/1 'Bebas Neue', Impact, sans-serif;
}

.stats-footnote,
.ranking-note {
    margin: 15px 0 0;
    color: #4c4c4c;
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
}

.team-results {
    max-width: 660px;
    margin: 30px auto 0;
}

.team-results > h3 {
    text-align: center;
}

.mock-filters {
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 32px;
    border: 1px solid #ededed;
    border-radius: 30px;
    background: #323431;
}

.mock-filters .btn {
    min-height: 30px;
    padding: 6px 10px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    font: 22px 'Bebas Neue', Impact, sans-serif;
}

.mock-filters .btn.is-active {
    background: #ededed;
    color: #181818;
}

.mock-groups {
    max-width: 950px;
    margin: 0 auto;
}

.mock-pool {
    margin: 0 0 58px;
}

.mock-pool > h2 {
    margin: 0 0 18px;
    font: italic 38px/1 'Bebas Neue', Impact, sans-serif;
    text-transform: uppercase;
}

.pool-arena {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(380px, 1fr);
    align-items: start;
    gap: 55px;
}

.pool-arena h3 {
    font-family: "fight";
    font-weight: 400;
}

.pool-ranking,
.pool-results {
    min-width: 0;
    padding: 15px;
}

.ranking-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    color: #181818;
}

.ranking-entry:hover {
    color: #181818;
}

.ranking-team {
    display: grid;
    grid-template-columns: 18px 43px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.ranking-team .team-logo {
    width: 63px;
    height: 63px;
    object-fit: contain;
    background: transparent;
    border: 0;
    color: #252525;
}

.ranking-team .team-logo.placeholder {
    background: #b6b6b6;
}

.rank-number {
    font: 20px 'Bebas Neue', Impact, sans-serif;
}

.ranking-team strong {
    font: 16px/1.15 'Bebas Neue', Impact, sans-serif;
    overflow-wrap: anywhere;
}

.ranking-figures {
    display: grid;
    grid-template-columns: repeat(4, minmax(24px, 1fr));
    align-items: center;
    gap: 6px;
    padding: 8px;
    min-width: 139px;
    border-radius: 5px;
    background: #c1c1c1;
    text-align: center;
}

.ranking-figures small,
.ranking-figures b {
    display: block;
    font-family: 'Bebas Neue', Impact, sans-serif;
    line-height: 1.1;
}

.ranking-figures small {
    font-size: 11px;
    color: #484848;
}

.ranking-figures b {
    margin-top: 4px;
    font-size: 15px;
}

.ranking-entry.is-played .ranking-figures {
    background: #a5e796;
}

.ranking-entry.is-disqualified {
    opacity: .6;
}

.ranking-dq {
    display: block;
    color: #8e2020;
    font-size: 10px;
}

.compact-list {
    display: grid;
    gap: 8px;
}

.compact-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
    align-items: center;
    gap: 5px;
    min-height: 58px;
    padding: 5px;
    border-radius: 5px;
    color: #181818;
    transition: box-shadow .15s ease;
}

.compact-match:hover {
    color: #181818;
    box-shadow: 0 0 0 2px #575757;
}

.compact-match:focus-visible,
.ranking-entry:focus-visible {
    outline: 3px solid #b52b31;
    outline-offset: 3px;
}

.compact-side {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
    min-width: 0;
    padding: 5px 3px;
    border-radius: 4px;
        background: #f2f2f2;
}

.compact-side--2 {
    flex-direction: row-reverse;
}

.compact-side.is-win {
    background: #9cce92;
}

.compact-side.is-loss {
    background: #e7a0a0;
}

.compact-side.is-draw {
    background: #d4c69c;
}

.compact-team {
    display: flex;
    align-items: center;
    flex: 0 0 28px;
}

.compact-team .team-logo {
    display: flex;
    width: 28px;
    height: 28px;
    object-fit: contain;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #303030;
    font-size: 22px;
}

.compact-roster {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.compact-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 29px;
    flex: 0 0 29px;
    min-height: 30px;
}

.compact-hero img,
.compact-hero .hero-placeholder {
    display: block;
    width: 29px;
    height: 29px;
    border: 1px solid #555;
    border-radius: 4px;
    object-fit: cover;
    font-size: 14px;
}

.compact-hero.not-played {
    opacity: .55;
}

.compact-hero.is-played img {
    border-width: 2px;
}

.compact-hero.is-win img {
    border-color: #286b25;
}

.compact-hero.is-loss img {
    border-color: #a63333;
}

.compact-hero small {
    display: block;
    color: #222;
    font-size: 8px;
    line-height: 1.2;
    margin-top: 2px;
}

.compact-hero.is-secret {
    align-items: center;
    justify-content: center;
    height: 29px;
    min-height: 29px;
    border: 1px dashed #999;
    border-radius: 4px;
    background: #cdcdcd;
    color: #686868;
    font: 19px 'Bebas Neue', Impact, sans-serif;
}

.compact-score {
    display: block;
    text-align: center;
    white-space: nowrap;
    font: 19px/1 'Bebas Neue', Impact, sans-serif;
}

.compact-score small {
    display: block;
    margin-top: 4px;
    color: #6b6b6b;
    font: 8px Inter, Arial, sans-serif;
}

.avatar-preview:empty {
    display: none;
}

.avatar-preview .player-avatar {
    width: 100px;
    height: 100px;
    margin: 10px 0;
    object-fit: contain;
    border: 1px solid #7d7d7d;
    border-radius: 6px;
    background: #383838;
}

.avatar-preview .player-avatar--empty {
    font-size: 45px;
}

@media (max-width: 900px) {
    .pool-arena {
        gap: 20px;
        grid-template-columns: minmax(260px, .8fr) minmax(365px, 1fr);
    }
}

@media (max-width: 760px) {
    .pool-arena {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pool-ranking,
    .pool-results {
        width: 100%;
    }

    .mock-filters {
        top: 78px;
        border-radius: 15px;
    }

    .duo-portrait {
        min-height: 230px;
        gap: 8px;
        padding: 15px 12px;
    }

    .player-avatar {
        height: 170px;
    }

    .player-avatar--empty {
        height: 160px;
        font-size: 80px;
    }

    .duo-team-logo .team-logo {
        height: 160px;
    }

    .duo-team-logo .team-logo.placeholder {
        height: 130px;
        font-size: 70px;
    }

    .duo-player figcaption span {
        font-size: 21px;
        padding: 2px 7px;
    }
}

@media (max-width: 480px) {
    .mock-heading {
        margin-bottom: 30px;
    }

    .mock-heading p {
        font-size: 12px;
    }

    .brand {
        gap: 9px;
    }

    .dt-wordmark {
        font-size: 21px;
    }

    .team-wordmark {
        font-size: 22px;
    }

    .duo-portrait {
        min-height: 190px;
        gap: 5px;
        padding: 12px 8px;
    }

    .player-avatar,
    .player-avatar--empty {
        height: 125px;
    }

    .player-avatar--empty {
        font-size: 55px;
    }

    .duo-team-logo .team-logo {
        height: 120px;
    }

    .duo-team-logo .team-logo.placeholder {
        height: 95px;
        font-size: 50px;
    }

    .duo-player figcaption span {
        font-size: 18px;
    }

    .duo-player figcaption strong {
        font-size: 10px;
    }

    .player-stats-grid {
        gap: 10px;
    }

    .player-stats {
        padding: 12px;
    }

    .player-stats h3 {
        font-size: 17px;
    }

    .player-stats dl {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .player-stats dl > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }

    .player-stats dt {
        font-size: 9px;
    }

    .player-stats dd {
        font-size: 23px;
    }

    .compact-match {
        grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
        gap: 3px;
        padding: 4px;
    }

    .compact-side {
        gap: 3px;
        padding: 4px 2px;
    }

    .compact-team,
    .compact-team .team-logo {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .compact-roster {
        gap: 2px;
    }

    .compact-hero {
        width: 23px;
        flex-basis: 23px;
    }

    .compact-hero img,
    .compact-hero .hero-placeholder,
    .compact-hero.is-secret {
        width: 23px;
        height: 23px;
        min-height: 23px;
    }

    .compact-score {
        font-size: 16px;
    }

    .pool-ranking,
    .pool-results,
    .team-results {
        padding: 12px;
    }

    .ranking-team {
        grid-template-columns: 16px 35px minmax(0, 1fr);
        gap: 5px;
    }

    .ranking-team .team-logo {
        width: 35px;
        height: 35px;
    }

    .ranking-team strong {
        font-size: 14px;
    }

    .ranking-figures {
        min-width: 126px;
        padding: 7px 5px;
        gap: 4px;
    }
}


/* =========================================================
   TEAM FIGHT 2 — RÈGLEMENT
========================================================= */

.panel.rules.tf-rules {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #fff;
    counter-reset: tf-rule;
}

.tf-rules,
.tf-rules * {
    box-sizing: border-box;
}

/* =========================================================
   EN-TÊTE — FOND DU SITE APPARENT
========================================================= */

.tf-rules .tf-rules-header {
    padding: 20px 0 36px;
    margin-bottom: 18px;
    text-align: center;
}

.tf-rules .tf-rules-header .eyebrow {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
}



.tf-rules .tf-rules-header h1 span {
    color: #fff;
}

.tf-rules .tf-rules-header p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
}

.tf-rules .tf-rules-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.tf-rules .tf-rules-badges span {
    padding: 7px 13px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* =========================================================
   PANNEAUX
========================================================= */

.tf-rules.tf-rules > .tf-rule {
    display: block;
    position: relative;
    margin: 0 0 24px;
    padding: 28px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 7px;
    background: #EDEDEB;
    color: #111;
    counter-increment: tf-rule;
}

.tf-rules.tf-rules .tf-rule :is(h2, h3, p, li, strong, span, a) {
    color: #111;
}

.tf-rules.tf-rules .tf-rule h2 {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 22px;
    padding: 0 0 16px;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: clamp(24px, 3.5vw, 31px);
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
}

.tf-rules .tf-rule h2::before {
    content: counter(tf-rule, decimal-leading-zero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #323431;
    color: #fff;
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: 24px;
    line-height: 1;
}

.tf-rules .tf-rule-emoji {
    margin-left: auto;
    flex-shrink: 0;
    font-family: sans-serif;
    font-size: 34px;
}

.tf-rules .tf-rule p,
.tf-rules .tf-rule li {
    font-size: 14px;
    line-height: 1.85;
}

.tf-rules .tf-rule p {
    margin: 0 0 16px;
}

.tf-rules .tf-rule strong {
    font-weight: 700;
}

.tf-rules .tf-rule ul,
.tf-rules .tf-rule ol {
    margin: 18px 0;
    padding-left: 22px;
}

.tf-rules .tf-rule li {
    margin: 10px 0;
    padding-left: 5px;
}

.tf-rules .tf-rule li::marker {
    color: #111;
}

.tf-rules .tf-rule > :last-child {
    margin-bottom: 0;
}

/* =========================================================
   INFORMATIONS IMPORTANTES
========================================================= */

.tf-rules .tf-rule-highlight {
    margin: 22px 0;
    padding: 15px 18px;
    border: 1px solid #fff;
    border-left: 4px solid #323431;
    border-radius: 4px;
    background: rgba(255, 255, 255, .3);
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

.tf-rules .tf-rule-notice {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #fff;
    border-left: 4px solid #e24447;
    border-radius: 4px;
    background: rgba(255, 255, 255, .35);
    color: #111;
}

.tf-rules .tf-rule-notice > strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.tf-rules .tf-rule-notice p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   CALENDRIER
========================================================= */

.tf-rules .tf-rules-calendar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.tf-rules .tf-rules-calendar > div {
    min-width: 0;
    padding: 18px 16px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: rgba(255, 255, 255, .25);
}

.tf-rules .tf-rules-calendar span {
    display: block;
    font-size: 11px;
    line-height: 1.6;
}

.tf-rules .tf-rules-calendar .tf-calendar-label {
    margin-bottom: 12px;
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

.tf-rules .tf-rules-calendar strong {
    display: block;
    margin-bottom: 8px;
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: clamp(25px, 3vw, 31px);
    font-weight: 400;
    line-height: 1.2;
}

/* =========================================================
   INSCRIPTION DU DUO
========================================================= */

.tf-rules .tf-rule .tf-rules-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    list-style: none;
}

.tf-rules .tf-rules-checklist li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    padding: 11px 15px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: rgba(255, 255, 255, .22);
}

.tf-rules .tf-rules-checklist li::before {
    content: "✓";
    flex-shrink: 0;
    color: #111;
    font-weight: 700;
}

/* =========================================================
   BARÈME
========================================================= */

.tf-rules .tf-rules-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.tf-rules .tf-rules-points > div {
    padding: 18px 12px;
    border: 1px solid #fff;
    border-radius: 5px;
    background: rgba(255, 255, 255, .25);
    text-align: center;
}

.tf-rules .tf-rules-points > div:first-child {
    background: #323431;
}

.tf-rules.tf-rules .tf-rules-points > div:first-child :is(strong, span) {
    color: #fff;
}

.tf-rules .tf-rules-points strong {
    display: block;
    margin-bottom: 7px;
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
}

.tf-rules .tf-rules-points span {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

/* =========================================================
   CRITÈRES DE DÉPARTAGE
========================================================= */

.tf-rules .tf-rule .tf-rules-ranking {
    padding: 0;
    list-style: none;
    counter-reset: tf-ranking;
}

.tf-rules .tf-rules-ranking li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
    counter-increment: tf-ranking;
}

.tf-rules .tf-rules-ranking li:last-child {
    border-bottom: 0;
}

.tf-rules .tf-rules-ranking li::before {
    content: counter(tf-ranking);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #323431;
    color: #fff;
    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: 18px;
}

/* =========================================================
   FAIR-PLAY
========================================================= */

.tf-rules .tf-rule-fairplay .tf-rule-highlight {
    border-left-color: #e24447;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
    .tf-rules .tf-rules-header {
        padding: 12px 0 26px;
    }

    .tf-rules .tf-rules-header p {
        padding: 0 8px;
        font-size: 13px;
    }

    .tf-rules .tf-rules-badges {
        gap: 8px;
    }

    .tf-rules .tf-rules-badges span {
        padding: 6px 10px;
        font-size: 16px;
    }

    .tf-rules.tf-rules > .tf-rule {
        margin-bottom: 18px;
        padding: 20px 16px;
    }

    .tf-rules.tf-rules .tf-rule h2 {
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 14px;
        font-size: 24px;
    }

    .tf-rules .tf-rule h2::before {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 21px;
    }

    .tf-rules .tf-rule-emoji {
        font-size: 17px;
    }

    .tf-rules .tf-rules-calendar,
    .tf-rules .tf-rule .tf-rules-checklist {
        grid-template-columns: 1fr;
    }

    .tf-rules .tf-rules-calendar > div {
        padding: 16px;
    }

    .tf-rules .tf-rules-points {
        gap: 8px;
    }

    .tf-rules .tf-rules-points > div {
        padding: 16px 6px;
    }

    .tf-rules .tf-rules-points span {
        font-size: 11px;
    }

    .tf-rules .tf-rule-highlight,
    .tf-rules .tf-rule-notice {
        padding: 15px;
    }
}

/* =========================================================
   HOME — TEAM FIGHT
========================================================= */

.tf-home {
    color: #fff;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
}

.tf-home .eyebrow,
.tf-home h1,
.tf-home h2,
.tf-home p,
.tf-home figcaption {
    color: #fff;
}

/* Logo et accroche */

.tf-home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 30px 0 55px;
    text-align: center;
}

.tf-home-hero > .eyebrow {
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 0.2em;
}

.tf-home-logo {
    display: block;

    width: min(100%, 460px);
    height: auto;
    margin: 28px auto 24px;

    object-fit: contain;
    filter: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.25));
}

.tf-home-hero h1 {
    max-width: 800px;
    margin: 0 0 14px;

    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.05;
}

.tf-home-intro {
    max-width: 590px;
    margin: 0;

    font-size: 16px;
    line-height: 1.8;
}

.tf-home-hero .actions {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}

.tf-home .btn {
    color: #fff;
}

/* Sections */

.tf-home-section {
    margin: 0 0 45px;
    padding: 30px;

    background: rgba(28, 30, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
}

.tf-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;

    margin-bottom: 26px;
}

.tf-home-section-head .eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
}

.tf-home-section-head h2 {
    margin: 5px 0 0;

    font-family: 'Bebas Neue', Impact, Arial, sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
    line-height: 1.1;
}

.tf-home-count {
    padding: 7px 12px;

    border: 1px solid #2c2c2c;
    border-radius: 999px;

    color: #2c2c2c;
    font-size: 12px;
    white-space: nowrap;
}

.tf-home-dt {
    max-width: 80px;
    width: 100%;
    margin-bottom: 10px;
}
/* Mur des équipes */

.tf-home-teams {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.tf-home-team {
    min-width: 0;
    margin: 0;
    padding: 18px 10px 14px;

    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;

    text-align: center;
    font-family: "Inter";
    line-height: 1.2;
    font-weight: 500;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.tf-home-team:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.5);
}

.tf-home-team-logo {
    display: grid;
    place-items: center;

    height: 100px;
    margin-bottom: 14px;
}

.tf-home-team-logo img,
.tf-home-team-logo .team-logo {
    display: block;

    width: 100px;
    max-width: 100%;
    height: 100px;
    margin: 0;

    background: transparent;
    border: 0;
    border-radius: 0;

    object-fit: contain;
}

.tf-home-team-logo .team-logo.placeholder {
    display: inline-flex;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;

    color: #fff;
}

.tf-home-team figcaption {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tf-home-section-actions {
    margin-top: 26px;
    text-align: center;
}

/* Derniers matchs et états vides */

.tf-home .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tf-home-empty {
    padding: 32px 20px;

    background: rgba(255, 255, 255, 0.025);
    border-radius: 8px;

    color: black;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
}

/* Responsive */

@media (max-width: 980px) {
    .tf-home-teams {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tf-home-hero {
        padding: 15px 0 35px;
    }

    .tf-home-logo {
        width: min(100%, 340px);
        margin: 24px auto;
    }

    .tf-home-intro {
        font-size: 14px;
    }

    .tf-home-section {
        margin-bottom: 25px;
        padding: 20px 16px;
    }

    .tf-home-teams {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .tf-home-team {
        padding: 14px 8px;
    }

    .tf-home-team-logo {
        height: 75px;
    }

    .tf-home-team-logo img,
    .tf-home-team-logo .team-logo {
        width: 75px;
        height: 75px;
    }

    .tf-home .match-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .tf-home-teams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-home-team {
        transition: none;
    }
}

.tf-match-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 6vw, 80px);
    margin: 24px 0 32px;
}

.tf-match-heading-team {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(90px, 18vw, 180px);
    height: clamp(90px, 18vw, 180px);
}

.tf-match-heading-team img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    background: transparent;
    border: none;
}

.tf-match-heading-vs {
    flex-shrink: 0;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 7vw, 80px);
    line-height: 1;
}

/* =========================================================
   POULES — AFFICHAGE PLUS GRAND
========================================================= */

.groups-list.mock-groups {
    max-width: 1160px;
    margin: 0 auto;
}

.mock-groups .mock-pool {
    margin-bottom: 65px;
}

.mock-groups .mock-pool > h2 {
    margin-bottom: 24px;
    font-size: 46px;
}

.mock-groups .pool-arena {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 30px;
}

.mock-groups .pool-ranking,
.mock-groups .pool-results {
    padding: 20px;
}

.mock-groups .pool-arena h3 {
    margin-bottom: 22px;
    font-size: 32px;
}

/* Classement */

.mock-groups .ranking-entry {
    gap: 16px;
    padding: 12px 0;
}

.mock-groups .ranking-team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mock-groups .ranking-team .team-logo {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
}

.mock-groups .ranking-team .team-logo.placeholder {
    font-size: 44px;
}

.mock-groups .rank-number {
    font-size: 25px;
}

.mock-groups .ranking-team strong {
    font-size: 21px;
}

.mock-groups .ranking-figures {
    min-width: 170px;
    gap: 8px;
    padding: 11px;
}

.mock-groups .ranking-figures small {
    font-size: 14px;
}

.mock-groups .ranking-figures b {
    margin-top: 5px;
    font-size: 21px;
}

.mock-groups .ranking-dq {
    font-size: 13px;
}

/* Rencontres */

.mock-groups .compact-list {
    gap: 12px;
}

.mock-groups .compact-match {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    min-height: 78px;
    gap: 8px;
    padding: 7px;
}

.mock-groups .compact-side {
    gap: 7px;
    padding: 9px 6px;
}

.mock-groups .compact-team {
    flex: 0 0 38px;
}

.mock-groups .compact-team .team-logo {
    width: 38px;
    height: 38px;
    font-size: 28px;
}

.mock-groups .compact-roster {
    gap: 5px;
}

.mock-groups .compact-hero {
    width: 38px;
    flex: 0 0 38px;
    min-height: 38px;
}

.mock-groups .compact-hero img,
.mock-groups .compact-hero .hero-placeholder,
.mock-groups .compact-hero.is-secret {
    width: 38px;
    height: 38px;
    min-height: 38px;
}

.mock-groups .compact-hero .hero-placeholder {
    font-size: 19px;
}

.mock-groups .compact-hero.is-secret {
    font-size: 25px;
}

.mock-groups .compact-hero small {
    margin-top: 4px;
    font-size: 10px;
}

.mock-groups .compact-score {
    font-size: 27px;
}

.mock-groups .compact-score small {
    margin-top: 6px;
    font-size: 11px;
}

/* Tablette : panneaux l'un sous l'autre */

@media (max-width: 1000px) {
    .mock-groups .pool-arena {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .mock-groups .mock-pool > h2 {
        font-size: 38px;
    }

    .mock-groups .pool-ranking,
    .mock-groups .pool-results {
        padding: 12px;
    }

    .mock-groups .ranking-entry {
        gap: 10px;
    }

    .mock-groups .ranking-team .team-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .mock-groups .ranking-figures {
        min-width: 145px;
        gap: 5px;
        padding: 9px 6px;
    }

    .mock-groups .ranking-figures small {
        font-size: 12px;
    }

    .mock-groups .ranking-figures b {
        font-size: 19px;
    }

    .mock-groups .compact-match {
        grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
        gap: 3px;
        padding: 4px;
    }

    .mock-groups .compact-side {
        flex-wrap: wrap;
        gap: 5px;
        padding: 7px 3px;
    }

    .mock-groups .compact-roster {
        flex-wrap: wrap;
        gap: 3px;
    }

    .mock-groups .compact-team {
        flex-basis: 30px;
    }

    .mock-groups .compact-team .team-logo {
        width: 30px;
        height: 30px;
    }

    .mock-groups .compact-hero {
        width: 28px;
        flex-basis: 28px;
        min-height: 28px;
    }

    .mock-groups .compact-hero img,
    .mock-groups .compact-hero .hero-placeholder,
    .mock-groups .compact-hero.is-secret {
        width: 28px;
        height: 28px;
        min-height: 28px;
    }

    .mock-groups .compact-score {
        font-size: 22px;
    }

    .mock-groups .compact-score small {
        font-size: 10px;
    }
}

/* TEAM FIGHT 2 — Accueil
   Charger APRÈS les deux CSS actuels. Compatible avec le PHP existant.
   Tous les styles restent limités à .tf-home. */

.tf-home {
    --home-red: #e24447;
    --home-paper: #ededeb;
    --home-dark: #202421;
    width: min(1160px, calc(100% - 32px));
    max-width: 1160px;
    margin: 0 auto;
    color: #fff;
}

/* Une affiche de tournoi, avec un fond calme derrière le logo. */
.tf-home .tf-home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 48px;
    padding: 34px 24px 40px;
    text-align: center;
}


.tf-home .tf-home-dt {
    display: block;
    width: 76px;
    max-width: 100%;
    height: auto;
    margin: 0 0 13px;
}

.tf-home .tf-home-hero > .eyebrow {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .2em;
}

.tf-home .tf-home-logo {
    display: block;
    width: min(100%, 530px);
    height: auto;
    margin: 26px auto 22px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .28));
}

.tf-home .tf-home-hero h1 {
    max-width: 720px;
    margin: 0 0 16px;
    color: #fff;
    font: 400 clamp(34px, 5vw, 58px)/1.1 'Bebas Neue', Impact, sans-serif;
}

.tf-home .tf-home-intro {
    max-width: 540px;
    margin: 0;
    color: #fff;
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: 1.8;
    text-wrap: balance;
}

.tf-home .tf-home-hero .actions {
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

/* Boutons et navigation clavier. */
.tf-home .btn {
    min-height: 46px;
    padding: 12px 24px;
    background: var(--home-dark);
    border: 1px solid #737a75;
    border-radius: 3px;
    color: #fff;
    font: 400 21px/1 'Bebas Neue', Impact, sans-serif;
    letter-spacing: .025em;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.tf-home .btn.primary {
    background: var(--home-red);
    border-color: var(--home-red);
    color: #fff;
    box-shadow: 0 6px 18px rgba(226, 68, 71, .2);
}

@media (hover: hover) {
    .tf-home .btn:hover {
        background: #343c36;
        border-color: #fff;
        color: #fff;
        transform: translateY(-2px);
    }

    .tf-home .btn.primary:hover {
        background: #c93337;
        border-color: #c93337;
    }
}

.tf-home a:focus-visible {
    outline: 3px solid var(--home-red);
    outline-offset: 5px;
}

/* Panneau clair : le fond du site ne parasite plus les logos. */
.tf-home > section.panel {
    margin: 0 0 48px;
    padding: clamp(20px, 3vw, 34px);
    background: var(--home-paper);
    border: 1px solid #fff;
    border-top: 4px solid var(--home-red);
    border-radius: 6px;
    color: #171a18;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .2);
}

.tf-home .tf-home-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 24px;
}

.tf-home .tf-home-section-head h2 {
    margin: 4px 0 0;
    color: #fff;
    font: 400 clamp(32px, 4vw, 44px)/1.05 'Bebas Neue', Impact, sans-serif;
    letter-spacing: .015em;
}

.tf-home > section.panel .tf-home-section-head h2 {
    color: #171a18;
    font-family: "fight";
}

.tf-home .tf-home-section-head .eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 10px;
    letter-spacing: .18em;
}

.tf-home .tf-home-count {
    padding: 8px 13px;
    background: var(--home-dark);
    border: 0;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

/* Six colonnes sur grand écran, avec une vraie carte par duo. */
.tf-home .tf-home-teams {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.tf-home .tf-home-team {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 20px 10px 16px;
    background: #fff;
    border: 1px solid #d7dbd7;
    border-radius: 4px;
    color: #171a18;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tf-home .tf-home-team-logo {
    display: grid;
    place-items: center;
    width: 100%;
    height: 102px;
    margin-bottom: 16px;
}

.tf-home .tf-home-team-logo img,
.tf-home .tf-home-team-logo .team-logo {
    display: block;
    width: 102px;
    max-width: 100%;
    height: 102px;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    transition: transform .2s ease;
}

.tf-home .tf-home-team-logo .team-logo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--home-dark);
    border: 1px solid #444c46;
    border-radius: 4px;
    color: #fff;
    font-size: 46px;
}

.tf-home .tf-home-team-name {
    display: block;
    width: 100%;
    margin-top: auto;
    color: #171a18;
    font: 400 21px/1.12 'Bebas Neue', Impact, sans-serif;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

@media (hover: hover) {
    .tf-home .tf-home-team:hover {
        background: #fff;
        border-color: var(--home-red);
        color: #171a18;
        box-shadow: 0 7px 16px rgba(0, 0, 0, .09);
        transform: translateY(-4px);
    }
}

.tf-home .tf-home-section-actions {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #ccd1cc;
    text-align: center;
}

/* Résultats : panneaux clairs et score plus présent. */
.tf-home .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.tf-home .match-grid .tf-match {
    min-width: 0;
    background: var(--home-paper);
    border: 1px solid #fff;
    border-radius: 6px;
    color: #171a18;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

.tf-home .match-grid .tf-match.is-played {
    border-top: 3px solid var(--home-red);
}

.tf-home .tf-match .tf-match-head {
    background: #e3e6e2;
    border-bottom-color: #cbd0ca;
    color: #171a18;
}

.tf-home .tf-match .tag {
    background: var(--home-dark);
    border-color: var(--home-dark);
    color: #fff;
}

.tf-home .tf-match .tf-side small,
.tf-home .tf-match .tf-roster figcaption,
.tf-home .tf-match .match-link {
    color: #171a18;
}

.tf-home .tf-match .tf-score {
    color: #171a18;
    font-size: 38px;
    line-height: 1;
}

.tf-home .tf-match .is-winner strong {
    color: #1d5428;
}

.tf-home .tf-home-empty {
    padding: 36px 20px;
    background: rgba(24, 28, 25, .95);
    border: 1px dashed rgba(255, 255, 255, .35);
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    line-height: 1.9;
    text-align: center;
}

.tf-home > section.panel .tf-home-empty {
    background: #fff;
    border-color: #a6afa6;
    color: #171a18;
}

@media (max-width: 1000px) {
    .tf-home .tf-home-teams {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .tf-home .tf-home-hero {
        margin-bottom: 30px;
        padding: 28px 18px 30px;
    }

    .tf-home .tf-home-logo {
        width: min(100%, 400px);
        margin: 24px auto;
    }

    .tf-home > section.panel {
        margin-bottom: 30px;
        padding: 22px 16px;
    }

    .tf-home .tf-home-teams {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .tf-home .tf-home-team {
        padding: 16px 8px;
    }

    .tf-home .tf-home-team-logo,
    .tf-home .tf-home-team-logo img,
    .tf-home .tf-home-team-logo .team-logo {
        height: 80px;
    }

    .tf-home .tf-home-team-logo img,
    .tf-home .tf-home-team-logo .team-logo {
        width: 80px;
    }

    .tf-home .tf-home-team-name {
        font-size: 19px;
    }

    .tf-home .match-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 460px) {
    .tf-home .tf-home-teams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tf-home .tf-home-hero > .eyebrow {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .tf-home .tf-home-hero .actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .tf-home .tf-home-section-head h2 {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-home .btn,
    .tf-home .tf-home-team,
    .tf-home .tf-home-team-logo .team-logo,
    .tf-home .tf-home-team-logo img {
        transition: none;
    }

    .tf-home .btn:hover,
    .tf-home .tf-home-team:hover,
    .tf-home .tf-home-team:hover .team-logo {
        transform: none;
    }
}

/* TEAM FIGHT 2 — Détail d'un match
   Charger après les CSS actuels. Utiliser avec match-detail.php.
   Styles limités à .tf-match-detail. */

.tf-match-detail {
    --detail-red: #e24447;
    --detail-paper: #ededeb;
    --detail-dark: #202421;
    width: min(1060px, calc(100% - 32px));
    margin: 0 auto;
    color: #fff;
}

/* Affiche de la rencontre */
.tf-match-detail .tf-detail-heading {
    position: relative;
    margin: 0 0 28px;
    padding: 32px 28px;
    text-align: center;
}


.tf-match-detail .eyebrow {
    display: block;
    color: #fff;
    font-size: 29px;
    font-family: "fight";
    font-weight: 400;
    line-height: 1.8;
}

.tf-match-detail .tf-match-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 5vw, 60px);
    max-width: 780px;
    margin: 26px auto;
}

.tf-match-detail .tf-detail-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.tf-match-detail .tf-match-heading-team {
    display: grid;
    place-items: center;
    width: clamp(100px, 18vw, 180px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
}

.tf-match-detail .tf-match-heading-team .team-logo {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
    background: transparent;
    border: 0;
    border-radius: 0;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .25));
}

.tf-match-detail .tf-match-heading-team .team-logo.placeholder {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    color: #fff;
    font-size: clamp(38px, 7vw, 70px);
}

.tf-match-detail .tf-detail-team-name {
    color: #fff;
    font: 400 clamp(21px, 3vw, 30px)/1.1 'Bebas Neue', Impact, sans-serif;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.tf-match-detail .tf-match-heading-vs {
    margin: 0;
    color: var(--detail-red);
    font: 400 clamp(38px, 6vw, 72px)/1 'Bebas Neue', Impact, sans-serif;
}

.tf-match-detail .tf-detail-status {
    display: inline-block;
    padding: 7px 13px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Carte existante : score et compositions */
.tf-match-detail .tf-detail-summary .tf-match {
    background: var(--detail-paper);
    border: 1px solid #fff;
    border-top: 3px solid var(--detail-red);
    border-radius: 6px;
    color: #171a18;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

.tf-match-detail .tf-match .tf-match-head {
    background: #e3e6e2;
    border-bottom-color: #cbd0ca;
    color: #171a18;
}

.tf-match-detail .tf-match .tag {
    background: var(--detail-dark);
    border-color: var(--detail-dark);
    color: #fff;
}

.tf-match-detail .tf-match .tf-versus {
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    padding: 28px 20px;
}

.tf-match-detail .tf-match .tf-score {
    color: #171a18;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
}

.tf-match-detail .tf-match .tf-side strong {
    color: #171a18;
    font: 400 25px/1.15 'Bebas Neue', Impact, sans-serif;
    overflow-wrap: anywhere;
}

.tf-match-detail .tf-match .is-winner strong {
    color: #1d5428;
}

.tf-match-detail .tf-match .tf-side small,
.tf-match-detail .tf-match .tf-roster figcaption,
.tf-match-detail .tf-match .match-link {
    color: #171a18;
}

.tf-match-detail .tf-match .match-link {
    border-color: #cbd0ca;
}

.tf-match-detail .tf-match .secret {
    color: #171a18;
    border-color: #929b93;
}

.tf-match-detail .tf-match .tf-roster figure {
    max-width: 88px;
}

.tf-match-detail .tf-match .tf-roster figcaption {
    font-size: 11px;
    overflow-wrap: anywhere;
}

/* Informations avant le match */
.tf-match-detail .tf-notice {
    margin: 24px 0;
    padding: 20px 24px;
    background: rgba(24, 28, 25, .95);
    border: 1px solid rgba(255, 255, 255, .25);
    border-left: 3px solid var(--detail-red);
    border-radius: 4px;
    color: #fff;
}

.tf-match-detail .tf-notice > strong {
    color: #fff;
    font: 400 25px/1.2 'Bebas Neue', Impact, sans-serif;
}

.tf-match-detail .tf-notice p {
    margin: 8px 0 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.8;
}

/* Manches */
.tf-match-detail .tf-detail-games {
    max-width: none;
    margin: 42px 0 0;
    padding: 0;
}

.tf-match-detail .tf-detail-section-head {
    margin-bottom: 24px;
}

.tf-match-detail .tf-detail-section-head h2 {
    margin: 8px 0 0;
    color: #fff;
    font: 400 clamp(32px, 4vw, 44px)/1.1 'Bebas Neue', Impact, sans-serif;
}

.tf-match-detail .panel.game-card {
    margin: 0 0 22px;
    padding: 0;
    overflow: hidden;
    background: var(--detail-paper);
    border: 1px solid #fff;
    border-top: 3px solid var(--detail-red);
    border-radius: 6px;
    color: #171a18;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}

.tf-match-detail .tf-game-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 24px;
    background: #e3e6e2;
    border-bottom: 1px solid #cbd0ca;
}

.tf-match-detail .game-card .tf-game-head h3 {
    margin: 0;
    color: #171a18;
    font: 400 30px/1.1 'Bebas Neue', Impact, sans-serif;
}

.tf-match-detail .tf-game-result {
    max-width: 100%;
    padding: 7px 12px;
    background: var(--detail-dark);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tf-match-detail .tf-game-result.is-draw {
    background: #4b514c;
}

.tf-match-detail .tf-game-sides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
}

.tf-match-detail .tf-game-fighter {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #d7dbd7;
    border-radius: 4px;
}

.tf-match-detail .tf-game-fighter.is-winner {
    border-top: 3px solid var(--detail-red);
    padding-top: 18px;
}

.tf-match-detail .tf-game-portrait {
    flex: 0 0 112px;
    width: 112px;
}

.tf-match-detail .tf-game-portrait img,
.tf-match-detail .tf-game-portrait .hero-placeholder {
    display: flex;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    border: 1px solid #d7dbd7;
    border-radius: 4px;
    object-fit: cover;
}

.tf-match-detail .tf-game-portrait .hero-placeholder {
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
}

.tf-match-detail .tf-game-fighter-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.tf-match-detail .tf-game-team-name {
    display: block;
    margin-bottom: 6px;
    color: #171a18;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.tf-match-detail .tf-game-fighter .tf-game-hero-name {
    display: block;
    margin: 0;
    color: #171a18;
    font: 400 30px/1.05 'Bebas Neue', Impact, sans-serif;
}

.tf-match-detail .tf-game-player {
    margin: 10px 0 16px;
    color: #171a18;
    font-size: 12px;
    line-height: 1.6;
}

.tf-match-detail .tf-game-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.tf-match-detail .tf-game-stats > div {
    min-width: 0;
    padding: 10px;
    background: #edf0ec;
    border: 1px solid #d7dbd7;
    border-radius: 3px;
}

.tf-match-detail .tf-game-stats dt {
    color: #171a18;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.tf-match-detail .tf-game-stats dd {
    margin: 5px 0 0;
    color: #171a18;
    font: 400 32px/1 'Bebas Neue', Impact, sans-serif;
}

.tf-match-detail a:focus-visible {
    outline: 3px solid var(--detail-red);
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .tf-match-detail .tf-game-fighter {
        flex-direction: column;
    }

    .tf-match-detail .tf-game-fighter-info {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .tf-match-detail .tf-detail-heading {
        padding: 26px 16px;
    }

    .tf-match-detail .tf-match-heading {
        gap: 12px;
    }

    .tf-match-detail .tf-match-heading-team {
        width: 110px;
    }

    .tf-match-detail .tf-detail-team-name {
        font-size: 21px;
    }

    .tf-match-detail .tf-match .tf-versus {
        grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
        gap: 6px;
        padding: 22px 10px;
    }

    .tf-match-detail .tf-match .tf-side strong {
        font-size: 21px;
    }

    .tf-match-detail .tf-game-head {
        padding: 16px;
    }

    .tf-match-detail .tf-game-sides {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .tf-match-detail .tf-game-fighter {
        flex-direction: row;
        gap: 14px;
        padding: 16px;
    }

    .tf-match-detail .tf-game-fighter.is-winner {
        padding-top: 14px;
    }

    .tf-match-detail .tf-game-portrait {
        flex-basis: 90px;
        width: 90px;
    }

    .tf-match-detail .tf-game-fighter .tf-game-hero-name {
        font-size: 26px;
    }
}

@media (max-width: 380px) {
    .tf-match-detail .tf-game-fighter {
        flex-direction: column;
    }
}

/* Fiche équipe — rencontres plus grandes */

.team-showcase .team-results .compact-list {
    gap: 14px;
}

.team-showcase .team-results .compact-match {
    grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
    gap: 12px;
    min-height: 94px;
    padding: 12px;
}

.team-showcase .team-results .compact-side {
    gap: 10px;
    padding: 12px 8px;
}

.team-showcase .team-results .compact-team {
    flex: 0 0 48px;
}

.team-showcase .team-results .compact-team .team-logo {
    width: 48px;
    height: 48px;
    font-size: 32px;
}

.team-showcase .team-results .compact-roster {
    gap: 7px;
}

.team-showcase .team-results .compact-hero {
    width: 46px;
    flex: 0 0 46px;
    min-height: 46px;
}

.team-showcase .team-results .compact-hero img,
.team-showcase .team-results .compact-hero .hero-placeholder,
.team-showcase .team-results .compact-hero.is-secret {
    width: 46px;
    height: 46px;
    min-height: 46px;
}

.team-showcase .team-results .compact-hero .hero-placeholder {
    font-size: 23px;
}

.team-showcase .team-results .compact-hero.is-secret {
    font-size: 29px;
}

.team-showcase .team-results .compact-hero small {
    margin-top: 5px;
    font-size: 11px;
}

.team-showcase .team-results .compact-score {
    font-size: 32px;
}

.team-showcase .team-results .compact-score small {
    margin-top: 7px;
    font-size: 12px;
}

/* Mobile */

@media (max-width: 600px) {
    .team-showcase .team-results .compact-match {
        grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
        gap: 4px;
        padding: 6px;
    }

    .team-showcase .team-results .compact-side {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 4px;
    }

    .team-showcase .team-results .compact-roster {
        flex-wrap: wrap;
        gap: 4px;
    }

    .team-showcase .team-results .compact-team {
        flex-basis: 34px;
    }

    .team-showcase .team-results .compact-team .team-logo {
        width: 34px;
        height: 34px;
    }

    .team-showcase .team-results .compact-hero {
        width: 32px;
        flex-basis: 32px;
        min-height: 32px;
    }

    .team-showcase .team-results .compact-hero img,
    .team-showcase .team-results .compact-hero .hero-placeholder,
    .team-showcase .team-results .compact-hero.is-secret {
        width: 32px;
        height: 32px;
        min-height: 32px;
    }

    .team-showcase .team-results .compact-score {
        font-size: 25px;
    }
}

/* Slider des équipes */

.tf-teams-slider {
    margin-top: 24px;
}

.tf-teams-slide[hidden] {
    display: none;
}

.tf-teams-slider .tf-home-teams {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
}

.tf-teams-slider .tf-home-team {
    min-width: 0;
}

.tf-teams-slide:not([hidden]) {
    animation: tf-teams-appear 250ms ease-out;
}

.tf-teams-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 28px;
}

.tf-teams-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #171A18;
    font-family: Arial, sans-serif;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.tf-teams-arrow:hover:not(:disabled) {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.08);
}

.tf-teams-arrow:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.tf-teams-arrow:disabled {
    opacity: 0.25;
    cursor: default;
}

.tf-teams-pagination {
    min-width: 65px;
    color: #171A18;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@keyframes tf-teams-appear {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 900px) {
    .tf-teams-slider .tf-home-teams {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .tf-teams-slider .tf-home-teams {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 12px;
    }
}

@media (max-width: 380px) {
    .tf-teams-slider .tf-home-teams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .tf-teams-slide:not([hidden]) {
        animation: none;
    }

    .tf-teams-arrow {
        transition: none;
    }
}

.tf-teams-slides {
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.tf-teams-slides.is-dragging,
.tf-teams-slides.is-dragging * {
    cursor: grabbing;
    user-select: none;
}

.tf-teams-slides img {
    -webkit-user-drag: none;
}

.tf-teams-arrow {
    background: #3f3f3f;
    border-color: white;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.tf-teams-arrow:hover:not(:disabled) {
    background: ;
    border-color: #006836;
    color: #fff;
}

.tf-teams-arrow:focus-visible {
    outline-color: #006836;
}

.tf-teams-arrow:disabled {
    opacity: 0.35;
}

.tf-teams-pagination {
    color: #242424;
}