.alms-tournaments { color: #f7fbff; font-size: 14px; line-height: 1.55; }
.alms-tournaments * { box-sizing: border-box; }
.alms-tournaments a { color: #bce8fb; text-decoration: none; }
.alms-tournaments a:hover { color: #fff; }
.alms-tournaments a:focus-visible, .alms-tournaments button:focus-visible, .alms-tournaments select:focus-visible, .alms-bracket:focus-visible { outline: 3px solid #f0ad4e; outline-offset: 3px; }
.alms-tour-filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.alms-tour-filter label { color: #b9cbe0; font-size: 12px; font-weight: 700; }
.alms-tour-filter select { padding: 10px; border: 1px solid #5085ad; border-radius: 8px; color: #f7fbff; background: #073565; font: inherit; }
.alms-tour-filter button { color: white; background: #2581c4; border: 1px solid #6ec1e4; border-radius: 8px; padding: 10px 15px; font: inherit; font-weight: 750; cursor: pointer; }
.alms-tour-empty { display: flex; align-items: center; gap: 16px; padding: 28px; border: 1px dashed rgba(110,193,228,.35); border-radius: 14px; background: rgba(7,53,101,.4); color: #b9cbe0; }
.alms-tour-empty > span { font-size: 30px; }
.alms-tour-empty p { margin: 0; }
.alms-tour-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.alms-tour-card { padding: 24px; border: 1px solid rgba(110,193,228,.25); border-radius: 14px; background: linear-gradient(145deg,#073565,#03274b); }
.alms-tour-card h2 { font-size: 21px; line-height: 1.3; margin: 18px 0 10px; }
.alms-tour-card p, .alms-tour-info { color: #b9cbe0; font-size: 13px; margin: 8px 0; }
.alms-tour-link { display: inline-block; font-weight: 800; font-size: 12px; margin-top: 14px; }
.alms-tour-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.alms-tour-badges > span, .alms-tour-badges > strong { padding: 4px 9px; border-radius: 99px; background: rgba(110,193,228,.12); border: 1px solid rgba(110,193,228,.23); font-size: 10px; font-weight: 850; }
.alms-tour-badges .alms-phase-live { color: #ffd698; border-color: rgba(240,173,78,.55); }
.alms-tour-badges .alms-phase-completed { color: #9de3c2; border-color: rgba(102,202,157,.5); }
.alms-tour-detail > h2 { margin: 30px 0 12px; font-size: 23px; }
.alms-tour-rules { padding: 18px; border-radius: 12px; border: 1px solid rgba(110,193,228,.2); background: rgba(7,53,101,.4); color: #c5d8e9; font-size: 13px; margin: 18px 0; overflow-wrap: anywhere; }
.alms-tour-champion { display: flex; align-items: center; gap: 16px; padding: 20px; background: rgba(240,173,78,.1); border: 1px solid rgba(240,173,78,.45); border-radius: 14px; margin: 24px 0; }
.alms-tour-champion > span { font-size: 36px; }
.alms-tour-champion small, .alms-tour-champion strong { display: block; }
.alms-tour-champion small { color: #ffd698; font-size: 11px; }
.alms-tour-champion strong { font-size: 22px; }
.alms-tour-help, .alms-tour-table-note { color: #9fbad1; font-size: 11px; margin: 8px 0 18px; }
.alms-result-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 12px 0 16px; color: #c5d8e9; font-size: 12px; }
.alms-result-legend li { display: flex; align-items: center; gap: 7px; }
.alms-result-legend li::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: #8eb6d5; }
.alms-result-legend .alms-legend-winner::before { background: #63d99c; }
.alms-result-legend .alms-legend-loser::before { background: #ef8190; }
.alms-result-legend .alms-legend-draw::before { background: #efc471; }
.alms-bracket { display: flex; align-items: stretch; gap: 28px; overflow-x: auto; padding: 10px 4px 22px; overscroll-behavior-x: contain; }
.alms-bracket-round { display: flex; flex-direction: column; flex: 0 0 250px; min-width: 0; }
.alms-bracket-round h3 { text-align: center; margin: 0 0 14px; color: #9fd5ee; font-size: 13px; }
.alms-bracket-round-matches { display: grid; grid-template-rows: repeat(var(--alms-round-matches),minmax(170px,1fr)); flex: 1; min-height: calc(var(--alms-first-round) * 170px); }
.alms-bracket-slot { position: relative; display: flex; align-items: center; padding: 10px 0; }
.alms-bracket-slot > .alms-bracket-match { width: 100%; position: relative; z-index: 1; }
.alms-bracket-round:not(:last-child) .alms-bracket-slot::after { content: ''; position: absolute; right: -14px; width: 14px; top: 50%; border-top: 1px solid #5382a4; }
.alms-bracket-round + .alms-bracket-round .alms-bracket-slot::before { content: ''; position: absolute; left: -14px; top: 25%; height: 50%; width: 14px; border: 1px solid #5382a4; border-right: 0; background: linear-gradient(#5382a4,#5382a4) center/100% 1px no-repeat; }
.alms-bracket-match { border: 1px solid rgba(110,193,228,.3); border-radius: 10px; overflow: hidden; background: #073565; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.alms-match-caption { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; color: #8eb6d5; font-size: 9px; background: rgba(0,26,56,.5); }
.alms-match-side { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 11px 10px 8px; border-top: 1px solid rgba(110,193,228,.12); border-left: 3px solid transparent; font-size: 12px; }
.alms-match-team { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.alms-match-name { overflow-wrap: anywhere; }
.alms-match-side > strong { flex-shrink: 0; min-width: 30px; padding: 3px 6px; border-radius: 7px; text-align: center; color: #c5d8e9; background: rgba(0,26,56,.35); font-size: 16px; font-variant-numeric: tabular-nums; }
.alms-match-status { align-self: flex-start; padding: 1px 7px; border: 1px solid currentColor; border-radius: 5px; font-size: 10px; line-height: 1.5; font-weight: 750; }
.alms-match-side.alms-match-winner { background: linear-gradient(90deg,#14523a,#113c36); color: #ddfff0; font-weight: 800; border-left-color: #63d99c; }
.alms-match-winner > strong, .alms-match-winner .alms-match-status { color: #9df2c1; }
.alms-match-side.alms-match-loser { background: linear-gradient(90deg,#482d39,#372d42); color: #ffd9df; border-left-color: #ef8190; }
.alms-match-loser > strong, .alms-match-loser .alms-match-status { color: #ffafb9; }
.alms-match-side.alms-match-draw { background: #403c2c; color: #ffedc8; border-left-color: #efc471; }
.alms-match-draw > strong, .alms-match-draw .alms-match-status { color: #f8dda0; }
.alms-match-placeholder { color: #9fbad1; }
.alms-match-note { padding: 5px 10px; margin: 0; font-size: 9px; color: #ffd698; border-top: 1px solid rgba(110,193,228,.15); }
.alms-table-wrap { max-width: 100%; overflow-x: auto; border-radius: 12px; border: 1px solid rgba(110,193,228,.25); background: #073565; }
.alms-league-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.alms-league-table caption { text-align: left; padding: 12px 15px; color: #9fd5ee; font-weight: 800; background: rgba(0,26,56,.5); }
.alms-league-table th, .alms-league-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(110,193,228,.15); white-space: nowrap; }
.alms-league-table thead th { font-size: 10px; text-transform: uppercase; color: #9fd5ee; }
.alms-league-table tbody th { min-width: 150px; }
.alms-league-table .alms-league-leader { background: rgba(99,217,156,.13); }
.alms-league-table tbody tr:last-child > * { border-bottom: 0; }
.alms-league-round, .alms-tour-participants { margin: 12px 0; border: 1px solid rgba(110,193,228,.24); border-radius: 11px; background: rgba(7,53,101,.4); }
.alms-league-round > summary, .alms-tour-participants > summary { padding: 14px 18px; cursor: pointer; font-size: 13px; font-weight: 800; color: #cdebff; }
.alms-league-matches { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 18px 18px; }
.alms-tour-participants ol { padding: 0 22px 18px 40px; color: #b9cbe0; font-size: 12px; }
.alms-tour-back { font-size: 12px; font-weight: 850; text-decoration: none; }
.alms-nav-more { display: none; position: relative; }
@media (max-width: 650px) {
    .alms-header-inner .alms-navigation > .wp-block-button:not(.alms-player-link) { display: none; }
    .alms-header-inner .alms-nav-more { display: block; order: -1; }
    .alms-nav-more > summary { list-style: none; padding: 10px 13px; border: 1px solid rgba(110,193,228,.45); border-radius: 9px; color: #f7fbff; font-size: 12px; line-height: 1.25; font-weight: 900; cursor: pointer; }
    .alms-nav-more > summary::-webkit-details-marker { display: none; }
    .alms-nav-more > nav { position: absolute; top: calc(100% + 10px); left: 0; min-width: 180px; padding: 6px; background: #073565; border: 1px solid #5085ad; border-radius: 11px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
    .alms-nav-more nav a { display: block; padding: 12px; color: #f7fbff; text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 7px; }
    .alms-nav-more nav a:hover { background: rgba(110,193,228,.12); }
    .alms-tour-grid, .alms-league-matches { grid-template-columns: 1fr; }
    .alms-bracket-round { flex-basis: 240px; }
    .alms-tour-card { padding: 20px; }
    .alms-tour-filter select { flex: 1; min-width: 0; }
    .alms-tour-empty { padding: 22px; }
}
