:root {
    --blue: #0b4fb3;
    --red: #d21f3c;
    --ink: #152033;
    --muted: #69758a;
    --line: #d9e0ec;
    --paper: #ffffff;
    --bg: #f4f7fb;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #093b87, #0b4fb3 55%, #d21f3c); color: #fff; padding: 24px 18px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand span, .login-brand { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #fff; color: var(--blue); font-weight: 900; }
.brand strong { font-size: 1.1rem; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar a { color: rgba(255,255,255,.86); text-decoration: none; padding: 12px 14px; border-radius: 8px; display: flex; gap: 12px; align-items: center; transition: .18s ease; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.16); color: #fff; transform: translateX(2px); }
.content { padding: 26px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.eyebrow { margin: 0; text-transform: uppercase; font-size: .75rem; color: var(--red); font-weight: 800; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(1.6rem, 2.5vw, 2.25rem); font-weight: 850; }
h2 { font-size: 1.05rem; margin-bottom: 16px; font-weight: 800; }
.user-pill { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.user-pill a { color: var(--red); font-weight: 700; text-decoration: none; }
.panel, .stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(15, 32, 64, .06); }
.panel { padding: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 14px; }
.stat-card { padding: 16px; position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--red); }
.stat-card span { display: block; color: var(--muted); font-size: .82rem; }
.stat-card strong { font-size: 2rem; color: var(--blue); }
.stat-link { color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.stat-link:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 32, 64, .12); }
.stat-link i { color: var(--red); margin-right: 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .form-control { max-width: 520px; }
.avatar { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.competitor-strip { display: flex; align-items: center; min-width: 132px; }
.competitor-chip { width: 38px; height: 38px; border: 2px solid #fff; border-radius: 50%; background: #eef5ff; color: var(--blue); display: grid; place-items: center; font-size: .78rem; font-weight: 850; box-shadow: 0 4px 12px rgba(15, 32, 64, .12); margin-left: -8px; overflow: hidden; }
.competitor-chip:first-child { margin-left: 0; }
.competitor-chip img { width: 100%; height: 100%; object-fit: cover; }
.club-filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 14px; }
.club-filter { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 9px 13px; font-size: .85rem; font-weight: 800; text-decoration: none; }
.club-filter:hover { color: var(--blue); border-color: #c9dbff; }
.club-filter.active { background: #eef5ff; color: var(--blue); border-color: #c9dbff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { font-weight: 700; color: var(--ink); }
.form-grid.compact { grid-template-columns: 1fr 1fr; }
.form-section-title { grid-column: 1 / -1; margin-bottom: 0; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top left, #eaf2ff, transparent 32%), linear-gradient(135deg, #0b4fb3, #ffffff 54%, #d21f3c); }
.login-card { width: min(420px, calc(100vw - 28px)); background: #fff; border-radius: 8px; padding: 30px; box-shadow: 0 26px 80px rgba(0,0,0,.20); }
.login-card h1 { margin-top: 18px; font-size: 1.7rem; }
.login-card p { color: var(--muted); }
.bracket-wrap { overflow-x: auto; padding: 14px 0 34px; }
.bracket { display: flex; align-items: stretch; gap: 54px; min-width: max-content; padding: 12px; position: relative; }
.bracket-connections { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.bracket-connector { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .95; transition: stroke .18s ease, stroke-width .18s ease; }
.bracket-connector.is-winner { stroke-width: 4; }
.bracket-connector.winner-rouge { stroke: var(--red); }
.bracket-connector.winner-bleu { stroke: var(--blue); }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 24px; min-width: 230px; position: relative; z-index: 1; }
.round h2 { text-align: center; color: var(--blue); }
.match { position: relative; display: grid; gap: 8px; padding-right: 28px; }
.match::after { content: none; }
.fighter-card, .champion-box { width: 100%; min-height: 42px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 8px; padding: 8px 12px; text-align: left; font-weight: 750; color: var(--ink); }
.fighter-card span { display: block; }
.fighter-card small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; margin-top: 2px; }
.fighter-card .club-inline { display: flex; }
.club-score { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; border-radius: 999px; border: 1px solid var(--line); background: #f8fafc; color: var(--muted); font-size: .8rem; font-weight: 950; flex: 0 0 auto; }
.club-score.is-finished { background: #eef8f3; border-color: #cbeedc; color: #157347; }
.fighter-rouge .fighter-card { border-left-color: var(--red); }
.fighter-rouge .fighter-card small { color: var(--red); }
.fighter-bleu .fighter-card { border-left-color: var(--blue); }
.fighter-bleu .fighter-card small { color: var(--blue); }
.fighter.winner .fighter-card { background: #eef6ff; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(11, 79, 179, .12); font-weight: 900; position: relative; }
.fighter.loser .fighter-card { background: #f1f3f5; border-color: #cfd4dc; border-left-color: #9aa4b2; color: #6b7280; filter: grayscale(.35); opacity: .78; }
.fighter.loser .fighter-card small { color: #7a8492; }
.fighter.bye .fighter-card { background: #f1f3f5; border-color: #cfd4dc; border-left-color: #9aa4b2; color: #6b7280; filter: grayscale(.25); opacity: .82; }
.fighter.bye .fighter-card small { color: #7a8492; }
.fighter.bye .club-logo-placeholder, .fighter.bye .club-score { color: #7a8492; background: #e5e7eb; border-color: #cfd4dc; }
.seed-slot { border-radius: 8px; transition: background .18s ease, outline-color .18s ease; }
.seed-slot.drag-over { background: #eef5ff; outline: 2px dashed #8db5ff; outline-offset: 4px; }
.placement-card { cursor: grab; transition: transform .18s ease, box-shadow .18s ease; }
.placement-card:hover { box-shadow: 0 12px 24px rgba(15, 32, 64, .12); transform: translateY(-1px); }
.placement-card[draggable="false"] { cursor: default; }
.placement-card.dragging { opacity: .55; cursor: grabbing; }
.fighter-rouge.winner .fighter-card { border-left-color: var(--red); }
.fighter-bleu.winner .fighter-card { border-left-color: var(--blue); }
.champion-round { justify-content: center; }
.champion-box { border-left-color: var(--red); min-height: 58px; display: flex; align-items: center; justify-content: center; text-align: center; }
.club-inline { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; width: 100%; }
.club-inline > span:last-child { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.club-inline .club-name { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.club-inline-no-logo { display: inline-block; }
.club-logo-mini { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; flex: 0 0 24px; border: 1px solid var(--line); box-shadow: none; background: #fff; padding: 2px; order: 2; }
.bracket .club-logo-mini { width: 32px; height: 32px; flex-basis: 32px; }
.club-logo-placeholder { display: inline-grid !important; place-items: center; color: var(--blue); font-size: .68rem; font-weight: 900; }
.world-cup-bracket { background: #0d1220; border: 1px solid #202941; border-radius: 8px; padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 22px 60px rgba(15, 32, 64, .16); }
.world-cup-bracket .empty-state { background: #151b2d; border-color: #2a3552; color: #aab4c8; }
.world-cup-bracket .bracket { align-items: stretch; gap: 74px; padding: 18px 22px 28px; color: #eef3ff; }
.world-cup-bracket .bracket-connections { z-index: 0; }
.world-cup-bracket .bracket-connector { stroke: #34405d; stroke-width: 3; opacity: 1; }
.world-cup-bracket .bracket-connector.is-winner { stroke-width: 5; filter: drop-shadow(0 0 5px rgba(255,255,255,.12)); }
.world-cup-bracket .bracket-connector.winner-rouge { stroke: #ff4963; }
.world-cup-bracket .bracket-connector.winner-bleu { stroke: #42a5ff; }
.world-cup-bracket .round { min-width: 264px; gap: 28px; }
.world-cup-bracket .round h2 { margin: 0 0 4px; padding: 10px 12px; color: #cfd7ea; text-align: right; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #25304a; }
.world-cup-bracket .match { gap: 0; padding: 12px; background: #171d2f; border: 1px solid #242d46; border-radius: 8px; box-shadow: 0 18px 38px rgba(0,0,0,.24); }
.world-cup-bracket .fighter + .fighter { margin-top: 8px; }
.world-cup-bracket .fighter-card,
.world-cup-bracket .champion-box { min-height: 54px; padding: 9px 10px; background: #1d2438; border-color: #2b3652; border-left-width: 4px; color: #eef3ff; box-shadow: none; }
.world-cup-bracket .fighter-card small { color: #9fa9be; font-size: .7rem; letter-spacing: .02em; text-transform: uppercase; }
.world-cup-bracket .club-inline { gap: 10px; }
.world-cup-bracket .club-inline .club-name { color: #eef3ff; font-size: .92rem; line-height: 1.15; }
.world-cup-bracket .club-score { order: -1; width: 34px; height: 34px; min-width: 34px; border: 0; border-radius: 8px; background: #101625; color: #9aa5bb; font-size: 1.05rem; box-shadow: inset 0 0 0 1px #2a3552; }
.world-cup-bracket .club-score.is-finished { background: #10251f; color: #46e6a6; box-shadow: inset 0 0 0 1px rgba(70,230,166,.34); }
.world-cup-bracket .club-logo-mini { order: 0; width: 34px; height: 34px; flex-basis: 34px; border-radius: 50%; border-color: #39445f; background: #fff; }
.world-cup-bracket .club-logo-placeholder { color: var(--blue); background: #fff; }
.world-cup-bracket .fighter-rouge .fighter-card { border-left-color: #ff4963; }
.world-cup-bracket .fighter-rouge .fighter-card small { color: #ff8b9d; }
.world-cup-bracket .fighter-bleu .fighter-card { border-left-color: #42a5ff; }
.world-cup-bracket .fighter-bleu .fighter-card small { color: #8cc9ff; }
.world-cup-bracket .fighter.winner .fighter-card { background: #202b43; border-color: #4f638f; color: #fff; box-shadow: 0 0 0 2px rgba(66,165,255,.16), 0 12px 26px rgba(0,0,0,.22); }
.world-cup-bracket .fighter-rouge.winner .fighter-card { border-left-color: #ff4963; box-shadow: 0 0 0 2px rgba(255,73,99,.18), 0 12px 26px rgba(0,0,0,.22); }
.world-cup-bracket .fighter-bleu.winner .fighter-card { border-left-color: #42a5ff; }
.world-cup-bracket .fighter.loser .fighter-card,
.world-cup-bracket .fighter.bye .fighter-card { background: #151a28; border-color: #262e43; border-left-color: #5d6678; color: #747f96; filter: grayscale(.5); opacity: .72; }
.world-cup-bracket .fighter.loser .club-name,
.world-cup-bracket .fighter.bye .club-name { color: #7e8799; }
.world-cup-bracket .fighter.loser .fighter-card small,
.world-cup-bracket .fighter.bye .fighter-card small { color: #697386; }
.world-cup-bracket .fighter.bye .club-logo-placeholder,
.world-cup-bracket .fighter.bye .club-score { color: #7c8496; background: #202638; box-shadow: inset 0 0 0 1px #30384c; }
.world-cup-bracket .seed-slot.drag-over { background: rgba(66,165,255,.1); outline-color: #42a5ff; }
.world-cup-bracket .placement-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.05); }
.world-cup-bracket .champion-round { min-width: 280px; }
.world-cup-bracket .champion-box { min-height: 76px; justify-content: flex-start; border-left-color: #f7c948; background: #201d2d; }
.world-cup-bracket .champion-box .club-name { color: #fff; font-weight: 950; }
.official-bracket { background: #f8fafc; border: 1px solid #d8dee8; border-radius: 8px; padding: 18px; box-shadow: 0 18px 46px rgba(15, 32, 64, .08); }
.official-bracket .bracket { align-items: stretch; gap: 50px; padding: 20px 24px; color: var(--ink); }
.official-bracket .bracket-official { min-width: max-content; }
.official-bracket .bracket-connections { z-index: 0; }
.official-bracket .bracket-connector { stroke: #8b95a7; stroke-width: 2; opacity: 1; }
.official-bracket .bracket-connector.is-winner { stroke-width: 4; }
.official-bracket .bracket-connector.winner-rouge { stroke: var(--red); }
.official-bracket .bracket-connector.winner-bleu { stroke: var(--blue); }
.official-bracket .round {
    min-width: 186px;
    display: grid;
    grid-template-rows: repeat(var(--rows, 2), 40px);
    align-items: center;
    gap: 0;
    justify-content: stretch;
}
.official-bracket .round h2 { position: absolute; top: -18px; left: 0; right: 0; margin: 0; color: #263247; font-size: .68rem; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.official-bracket .round-1 { min-width: 206px; }
.official-bracket .round-1 .fighter-card { min-height: 30px; padding: 5px 8px; }
.official-bracket .round-right h2 { direction: rtl; }
.official-bracket .match { gap: 5px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.official-bracket .fighter-card,
.official-bracket .champion-box { min-height: 38px; padding: 7px 9px; background: #fff; border: 1px solid #aeb7c7; border-left: 4px solid var(--blue); border-radius: 2px; color: var(--ink); box-shadow: 0 1px 0 rgba(15,32,64,.05); }
.official-bracket .fighter-card small { display: none; }
.official-bracket .club-inline { gap: 6px; }
.official-bracket .club-inline .club-name { color: var(--ink); font-size: .76rem; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.official-bracket .club-score { order: 3; width: 24px; height: 21px; min-width: 24px; border-radius: 2px; background: #f5f7fb; color: #263247; font-size: .76rem; }
.official-bracket .club-score.is-finished { background: #e9f8f0; border-color: #b9e7cd; color: #157347; }
.official-bracket .club-logo-mini { order: 0; width: 22px; height: 22px; flex-basis: 22px; border-radius: 50%; padding: 1px; }
.official-bracket .fighter-rouge .fighter-card { border-left-color: var(--red); }
.official-bracket .fighter-bleu .fighter-card { border-left-color: var(--blue); }
.official-bracket .fighter.winner .fighter-card { background: #eef6ff; border-color: #9dbdf1; font-weight: 900; box-shadow: 0 0 0 2px rgba(11,79,179,.1); }
.official-bracket .fighter-rouge.winner .fighter-card { border-left-color: var(--red); box-shadow: 0 0 0 2px rgba(210,31,60,.12); }
.official-bracket .fighter-bleu.winner .fighter-card { border-left-color: var(--blue); }
.official-bracket .fighter.loser .fighter-card,
.official-bracket .fighter.bye .fighter-card { background: #eceff4; border-color: #c8ced8; border-left-color: #9aa4b2; color: #747b88; filter: grayscale(.3); opacity: .76; }
.official-bracket .fighter.loser .club-name,
.official-bracket .fighter.bye .club-name { color: #747b88; }
.official-bracket .fighter.bye .club-logo-placeholder,
.official-bracket .fighter.bye .club-score { background: #e2e6ec; color: #7d8796; border-color: #c8ced8; }
.official-bracket .seed-slot.drag-over { background: #eef5ff; outline-color: #5b9dff; }
.official-bracket .placement-card:hover { box-shadow: 0 8px 20px rgba(15,32,64,.12); transform: translateY(-1px); }
.official-bracket .bracket-center { width: 292px; min-width: 292px; align-self: center; display: grid; gap: 16px; position: relative; z-index: 1; }
.official-bracket .tournament-label,
.official-bracket .final-card { background: #fff; border: 1px solid #aeb7c7; border-radius: 2px; padding: 10px; box-shadow: 0 4px 14px rgba(15,32,64,.06); }
.official-bracket .tournament-label span,
.official-bracket .final-card > span,
.official-bracket .champion-box > span:first-child { display: block; color: #0c1b32; font-size: .68rem; text-transform: uppercase; font-weight: 900; letter-spacing: .04em; margin-bottom: 6px; }
.official-bracket .tournament-label strong { display: block; color: var(--blue); font-size: .95rem; line-height: 1.15; }
.official-bracket .final-card .match { gap: 6px; }
.official-bracket .champion-box { display: grid; align-items: center; min-height: 70px; border-left-color: #f2a900; background: #fffdf4; }
.official-bracket .champion-box .club-inline { justify-content: flex-start; }
.official-bracket .champion-box .club-name { color: #0c1b32; font-size: .95rem; font-weight: 950; }
.empty-state { border: 1px dashed var(--line); border-radius: 8px; padding: 38px; background: #fff; color: var(--muted); text-align: center; }
.rank-row { display: grid; grid-template-columns: 52px 1fr 48px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.medal-rank-row { grid-template-columns: 52px 1fr minmax(150px, auto); }
.medal-rank-row b small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; margin-top: 2px; }
.medal-badge { display: inline-flex; min-width: 72px; justify-content: center; border-radius: 999px; padding: 5px 10px; font-weight: 900; font-size: .78rem; }
.medal-or { background: #fff3bf; color: #946200; }
.medal-argent { background: #edf2f7; color: #516070; }
.medal-bronze { background: #ffe2c2; color: #944c00; }
.dashboard-medal-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dashboard-medal-club { min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.dashboard-medal-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dashboard-medal-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); padding: 5px 9px; font-size: .78rem; font-weight: 900; white-space: nowrap; }
.dashboard-medal-chip img { width: 22px; height: 22px; flex: 0 0 auto; }
.dashboard-medal-gold { background: #fff8db; color: #946200; border-color: #f3d77a; }
.dashboard-medal-silver { background: #f4f7fa; color: #516070; border-color: #d7dee7; }
.dashboard-medal-bronze { background: #fff0df; color: #944c00; border-color: #f1bd86; }
.category-winners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.category-winner-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.category-winner-card h3 { margin: 0; padding: 12px 14px; background: #eef5ff; color: var(--blue); font-size: .95rem; font-weight: 900; border-bottom: 1px solid var(--line); }
.category-winner-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.category-winner-row:last-child { border-bottom: 0; }
.category-winner-row > strong { color: var(--red); font-weight: 900; }
.category-winner-row > span { min-width: 0; font-weight: 850; overflow-wrap: anywhere; }
.category-winner-row .dashboard-medal-list { grid-column: 2; justify-content: flex-start; }
.match-board { max-width: 1180px; margin: 0 auto; }
.match-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.match-search { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px rgba(15, 32, 64, .05); }
.match-search i { color: var(--muted); }
.match-search input { border: 0; outline: 0; width: 100%; min-width: 0; background: transparent; color: var(--ink); }
.match-filters { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.match-filter { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: .82rem; color: var(--muted); font-weight: 800; cursor: pointer; }
.match-filter.active { background: #eef5ff; border-color: #c9dbff; color: var(--blue); }
.match-stage { margin-bottom: 30px; }
.match-stage > h2 { text-align: center; color: var(--ink); font-size: 1.25rem; letter-spacing: .02em; margin: 14px 0; }
.match-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.match-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; box-shadow: 0 12px 28px rgba(15, 32, 64, .07); transition: transform .18s ease, box-shadow .18s ease; }
.match-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(15, 32, 64, .11); }
.match-card-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: var(--muted); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.match-card-top strong { color: var(--ink); text-align: center; text-transform: none; }
.match-card-top span:last-child { text-align: right; }
.match-card-body { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); align-items: center; gap: 12px; padding: 18px 0 14px; }
.match-player { min-width: 0; display: grid; gap: 4px; align-content: center; position: relative; }
.match-player strong { font-size: .98rem; line-height: 1.2; overflow-wrap: anywhere; }
.match-player small { color: var(--muted); font-weight: 800; }
.red-side small { color: var(--red); }
.blue-side small { color: var(--blue); }
.blue-side { text-align: right; }
.blue-side .club-inline { justify-content: flex-end; }
.corner-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-bottom: 4px; }
.red-dot { background: var(--red); }
.blue-dot { background: var(--blue); justify-self: end; }
.match-scorebox { text-align: center; display: grid; justify-items: center; gap: 4px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.status-dot.done { background: #22a06b; }
.status-dot.pending { background: #f2b84b; }
.score-line { font-size: 1.45rem; font-weight: 900; color: var(--ink); }
.match-scorebox small { color: var(--muted); font-weight: 800; }
.match-card-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--muted); font-size: .78rem; font-weight: 750; }
.match-card-meta span { min-width: 0; overflow-wrap: anywhere; }
.match-card-meta i { color: var(--blue); margin-right: 5px; }
.match-card-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-top: 12px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.winner-choice-preview { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.winner-choice-preview span { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #f8fafc; font-weight: 800; font-size: .84rem; }
.club-portal { display: grid; gap: 16px; }
.club-public-screen { min-height: 100vh; background: linear-gradient(135deg, #eef5ff, #ffffff 52%, #fff1f3); padding: 28px; }
.club-public-screen .club-portal { width: min(1180px, 100%); margin: 0 auto; }
.club-page-logo { display: flex; justify-content: center; align-items: center; padding: 2px 0 8px; }
.club-page-logo img { width: min(420px, 88vw); max-height: 210px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(15, 32, 64, .16)); }
.club-portal-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.club-portal-header h2, .club-portal-club h2 { margin: 0; }
.club-portal-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.club-portal-filter { min-width: min(620px, 100%); display: flex; gap: 10px; }
.club-portal-event, .club-portal-club { display: flex; align-items: center; gap: 14px; }
.club-portal-event p, .club-portal-club p { margin: 4px 0 0; color: var(--muted); font-weight: 750; }
.club-portal-logo { width: 58px; height: 58px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 5px; flex: 0 0 58px; }
.club-auth-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.club-auth-form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(150px, 1fr) auto; gap: 10px; align-items: center; min-width: min(680px, 100%); }
.club-portal-grid { align-items: stretch; }
.club-portal-card { display: grid; gap: 12px; }
.club-registration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.club-registration-grid .club-public-form:only-child { grid-column: 1 / -1; }
.club-public-form { align-self: stretch; }
.club-public-form .form-section-title { color: var(--blue); font-size: 1.05rem; }
.club-check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-weight: 850; }
.club-limit-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 800; font-size: .86rem; }
.club-limit-note i { color: var(--blue); }
.club-limit-warning { color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; padding: 8px 10px; }
.club-limit-warning i { color: #c2410c; }
.club-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.club-section-title h2 { margin: 0; }
.club-section-title > span { flex: 0 0 auto; display: inline-flex; align-items: center; border-radius: 999px; background: #eef5ff; color: var(--blue); padding: 7px 11px; font-weight: 900; font-size: .84rem; }
.club-competitors-panel { display: grid; gap: 14px; }
.club-competitor-list { display: grid; gap: 10px; }
.club-competitor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.club-competitor-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.club-competitor-main strong, .club-competitor-main small { display: block; min-width: 0; overflow-wrap: anywhere; }
.club-competitor-main small { color: var(--muted); font-weight: 750; }
.club-competitor-badges, .club-competitor-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.club-fixture { display: grid; grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; }
.club-fixture-side { min-width: 0; display: grid; justify-items: center; text-align: center; gap: 5px; }
.club-fixture-side strong { min-width: 0; overflow-wrap: anywhere; font-size: .95rem; }
.club-fixture-side small { color: var(--muted); font-weight: 800; }
.club-fixture-side.red-side small { color: var(--red); }
.club-fixture-side.blue-side small { color: var(--blue); }
.club-fixture-score { display: grid; justify-items: center; gap: 4px; color: var(--ink); }
.club-fixture-score strong { font-size: 1.45rem; font-weight: 950; }
.club-fixture-score small { color: var(--muted); font-weight: 850; }

.prepare-print-bracket .bracket-wrap { overflow: visible !important; padding: 0 !important; width: 100%; }
.prepare-print-bracket .official-bracket { border: 0; box-shadow: none; padding: 0; background: #fff; width: 100%; }
.prepare-print-bracket .official-bracket .bracket {
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    transform-origin: top left;
}
.prepare-print-bracket .official-bracket .round {
    min-width: 138px;
    display: grid;
    grid-template-rows: repeat(var(--rows, 2), 35px);
    align-items: center;
    gap: 0;
}
.prepare-print-bracket .official-bracket .round-1 { min-width: 154px; }
.prepare-print-bracket .official-bracket .bracket-center { width: 198px; min-width: 198px; gap: 10px; }
.prepare-print-bracket .official-bracket .fighter-card,
.prepare-print-bracket .official-bracket .champion-box { min-height: 30px; padding: 4px 6px; }
.prepare-print-bracket .official-bracket .club-inline .club-name { font-size: .62rem; }
.prepare-print-bracket .official-bracket .club-logo-mini { width: 16px; height: 16px; flex-basis: 16px; }
.prepare-print-bracket .official-bracket .club-score { width: 19px; height: 18px; min-width: 19px; font-size: .62rem; }
.prepare-print-bracket .official-bracket .round h2,
.prepare-print-bracket .official-bracket .tournament-label span,
.prepare-print-bracket .official-bracket .final-card > span,
.prepare-print-bracket .official-bracket .champion-box > span:first-child { font-size: .56rem; }
.prepare-print-bracket .official-bracket .tournament-label,
.prepare-print-bracket .official-bracket .final-card { padding: 6px; }
.prepare-print-bracket .official-bracket .tournament-label strong,
.prepare-print-bracket .official-bracket .champion-box .club-name { font-size: .72rem; }

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar { align-items: flex-start; flex-direction: column; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .dashboard-medal-row { align-items: flex-start; flex-direction: column; }
    .dashboard-medal-list { justify-content: flex-start; }
    .match-card-grid { grid-template-columns: 1fr; }
    .match-card-body { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 8px; }
    .club-portal-header { align-items: stretch; flex-direction: column; }
    .club-portal-actions { justify-content: stretch; flex-direction: column; }
    .club-portal-actions .btn { width: 100%; }
    .club-portal-filter { min-width: 0; }
    .club-portal-filter { flex-direction: column; }
    .club-portal-filter, .club-portal-filter .form-select { width: 100%; }
    .club-auth-panel { align-items: stretch; flex-direction: column; }
    .club-auth-form { grid-template-columns: 1fr; min-width: 0; }
    .club-registration-grid { grid-template-columns: 1fr; }
    .club-section-title { align-items: flex-start; flex-direction: column; }
    .club-competitor-row { grid-template-columns: 1fr; }
    .club-competitor-badges, .club-competitor-actions { justify-content: flex-start; }
    .club-fixture { grid-template-columns: minmax(0, 1fr); }
    .match-card-meta { grid-template-columns: 1fr; }
    .match-card-footer { align-items: stretch; flex-direction: column; }
    .match-card-footer .btn { width: 100%; }
}

@media print {
    @page { size: landscape; margin: 4mm; }
    .sidebar, .topbar, .toolbar, .btn, .modal { display: none !important; }
    .app-shell { display: block; }
    .content { padding: 0; }
    .panel, .stat-card { box-shadow: none; border-color: #999; }
    body { background: #fff; }
    .bracket-wrap {
        overflow: visible !important;
        padding: 0 !important;
        width: 100%;
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .official-bracket {
        border: 0;
        box-shadow: none;
        padding: 0;
        background: #fff;
        width: 100%;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .official-bracket .bracket {
        gap: 20px;
        padding: 0;
        margin: 0 auto;
        break-inside: avoid;
        page-break-inside: avoid;
        transform-origin: top left;
    }
    .official-bracket .round {
        min-width: 138px;
        display: grid;
        grid-template-rows: repeat(var(--rows, 2), 35px);
        align-items: center;
        gap: 0;
    }
    .official-bracket .round-1 { min-width: 154px; }
    .official-bracket .bracket-center { width: 198px; min-width: 198px; gap: 10px; }
    .official-bracket .fighter-card,
    .official-bracket .champion-box {
        min-height: 30px;
        padding: 4px 6px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .official-bracket .club-inline .club-name { font-size: .62rem; }
    .official-bracket .club-logo-mini { width: 16px; height: 16px; flex-basis: 16px; }
    .official-bracket .club-score { width: 19px; height: 18px; min-width: 19px; font-size: .62rem; }
    .official-bracket .round h2,
    .official-bracket .tournament-label span,
    .official-bracket .final-card > span,
    .official-bracket .champion-box > span:first-child { font-size: .56rem; }
    .official-bracket .tournament-label,
    .official-bracket .final-card { padding: 6px; }
    .official-bracket .tournament-label strong,
    .official-bracket .champion-box .club-name { font-size: .72rem; }
    .bracket-connector,
    .official-bracket .bracket-connector {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
