.tournaments-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tournaments-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 10%, rgba(250, 185, 35, 0.18), transparent 35%),
        var(--secondary-black);
}

.tournaments-hero__copy {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tournaments-hero__icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    color: #f8b923;
    background: rgba(248, 185, 35, 0.14);
    font-size: 26px;
}

.tournaments-eyebrow,
.tournaments-heading span,
.tournament-team-picker__heading span {
    display: block;
    color: #34d399;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tournaments-hero h1,
.tournaments-heading h2,
.tournament-team-picker__heading h3 {
    margin: 0;
    color: var(--primary-white);
}

.tournaments-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.tournaments-hero p,
.tournaments-modal__header p {
    margin: 5px 0 0;
    color: var(--accent-white);
}

.tournaments-create-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tournaments-notice {
    padding: 13px 16px;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 14px;
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.1);
}

.tournaments-notice.is-error {
    border-color: rgba(248, 113, 113, 0.34);
    color: #fecaca;
    background: rgba(239, 68, 68, 0.1);
}

.tournament-invitations,
.tournaments-catalog {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-invitations {
    padding: 20px;
    border: 1px solid rgba(248, 185, 35, 0.3);
    border-radius: 20px;
    background: rgba(248, 185, 35, 0.06);
}

.tournaments-heading,
.tournament-team-picker__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.tournament-team-picker__heading h3 {
    font-size: 22px;
}

.tournaments-heading h2 {
    font-size: 20px;
}

.tournaments-heading strong,
.tournament-team-picker__heading strong {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--accent-white);
    background: var(--accent-black);
    font-size: 12px;
}

.tournament-invitations__list,
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 14px;
}

.tournaments-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 370px));
    justify-content: start;
}

.tournament-invitation,
.tournament-card {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--secondary-black);
    color: var(--primary-white);
}

.tournament-invitation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
}

.tournament-invitation h3,
.tournament-card h3 {
    margin: 0;
    font-size: 18px;
}

.tournament-invitation p,
.tournament-card p {
    margin: 4px 0 0;
    color: var(--accent-white);
    font-size: 13px;
}

.tournament-invitation__actions {
    display: flex;
    gap: 8px;
}

.tournament-invitation__actions button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
}

.tournament-invitation__accept {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.12);
}

.tournament-invitation__reject {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

.tournament-card {
    position: relative;
    min-height: 210px;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tournament-card::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    right: -55px;
    top: -55px;
    border-radius: 50%;
    background: rgba(248, 185, 35, 0.09);
}

.tournament-card:hover,
.tournament-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
    outline: none;
}

.tournament-card__top,
.tournament-card__footer,
.tournament-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tournament-card__top {
    margin-bottom: 16px;
}

.tournament-card__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #f8b923;
    background: rgba(248, 185, 35, 0.14);
}

.tournament-card__status,
.tournament-team-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.11);
    font-size: 11px;
    font-weight: 800;
}

.tournament-card__meta {
    margin-top: auto;
    padding-top: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    color: var(--accent-white);
    font-size: 12px;
}

.tournament-card__footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--accent-white);
    font-size: 12px;
}

.tournaments-empty {
    padding: 46px 20px;
    border: 1px dashed var(--border-color);
    border-radius: 20px;
    text-align: center;
    color: var(--accent-white);
}

.tournaments-empty i {
    color: #f8b923;
    font-size: 30px;
}

.tournaments-empty h3 {
    margin: 12px 0 3px;
    color: var(--primary-white);
}

.tournaments-empty p {
    margin: 0;
}

.tournaments-modal {
    position: fixed;
    inset: 0;
    z-index: 980;
    display: grid;
    place-items: center;
    padding: 20px;
}

.tournaments-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 18, 0.72);
    backdrop-filter: blur(6px);
}

.tournaments-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100vw - 40px));
    max-height: min(90vh, 900px);
    max-height: min(90dvh, 900px);
    overflow: auto;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--primary-black);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.tournaments-modal__dialog--details {
    width: min(1120px, calc(100vw - 40px));
    padding: 18px;
}

.tournaments-modal__dialog--create {
    width: min(720px, calc(100vw - 40px));
    max-height: min(92vh, 820px);
    max-height: min(92dvh, 820px);
    padding: 20px;
    overscroll-behavior: contain;
}

.tournaments-modal__dialog--match-edit {
    width: min(980px, calc(100vw - 40px));
    max-height: min(92dvh, 860px);
    padding: 20px;
}

#tournamentMatchEditModal {
    z-index: 990;
}

#tournamentMatchEditModal .tournaments-modal__header {
    margin-bottom: 14px;
}

#tournamentMatchEditModal .tournaments-modal__header h2 {
    font-size: 23px;
}

#tournamentMatchEditModal .tournaments-modal__header p {
    margin-top: 3px;
    color: var(--accent-white);
    font-size: 12px;
}

#tournamentDetailsModal {
    z-index: 11;
}

.tournaments-modal__dialog--details .tournaments-modal__header {
    position: static;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

#tournamentDetailsModal .tournaments-eyebrow {
    font-size: 10px;
}

#tournamentDetailsModal .tournaments-modal__header h2 {
    font-size: 22px;
}

#tournamentDetailsModal .tournaments-modal__header p {
    margin-top: 2px;
    font-size: 12px;
}

#tournamentDetailsModal .tournaments-modal__close {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
}

#tournamentCreateModal .tournaments-modal__header,
#tournamentCreateModal .tournament-form__actions {
    position: static;
}

#tournamentCreateModal .tournaments-modal__header {
    margin-bottom: 14px;
}

#tournamentCreateModal .tournaments-modal__header h2 {
    font-size: 24px;
}

#tournamentCreateModal .tournaments-modal__header p {
    max-width: 560px;
    font-size: 13px;
}

.tournaments-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.tournaments-modal__header h2 {
    margin: 1px 0 0;
    color: var(--primary-white);
    font-size: 27px;
}

.tournaments-modal__close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary-white);
    background: var(--secondary-black);
    cursor: pointer;
}

body.is-tournaments-modal-open {
    overflow: hidden;
}

.tournament-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 14px;
}

.tournament-form__wide {
    grid-column: 1 / -1;
}

.tournament-form .form-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tournament-format-picker {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.tournament-format-picker legend {
    margin-bottom: 7px;
    padding: 0;
    color: var(--primary-white);
    font-weight: 700;
}

.tournament-format-picker__options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.tournament-format-option {
    position: relative;
    min-width: 0;
    min-height: 66px;
    padding: 9px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--secondary-black);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.tournament-format-option.is-selected {
    border-color: rgba(52, 211, 153, 0.68);
    background: rgba(16, 185, 129, 0.09);
}

.tournament-format-option:focus-within {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.tournament-format-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tournament-format-option__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.11);
}

.tournament-format-option > span:last-child {
    min-width: 0;
}

.tournament-format-option strong,
.tournament-format-option small {
    display: block;
}

.tournament-format-option strong {
    color: var(--primary-white);
    font-size: 13px;
    line-height: 1.15;
}

.tournament-format-option small {
    margin-top: 3px;
    color: var(--accent-white);
    font-size: 10px;
}

.tournament-form label {
    color: var(--primary-white);
    font-weight: 700;
}

.tournament-form label span {
    color: var(--accent-white);
    font-size: 12px;
    font-weight: 400;
}

.tournament-form .form-control,
.tournament-form .custom-select,
.tournament-form input.custom-date-input,
.tournament-form .custom-dropdown,
.tournament-form .custom-date-picker {
    width: 100%;
    min-width: 0;
}

.tournament-form .form-control,
.tournament-form .custom-select,
.tournament-form input.custom-date-input {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    color: var(--primary-white);
    background: var(--secondary-black);
    font: inherit;
    outline: none;
}

.tournament-form textarea.form-control {
    min-height: 68px;
    resize: vertical;
}

.tournament-form .form-control:focus,
.tournament-form .custom-select:focus,
.tournament-form input.custom-date-input:focus {
    border-color: rgba(52, 211, 153, 0.65);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.tournament-team-picker {
    margin-top: 12px;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--secondary-black);
}

.tournament-team-search {
    height: 40px;
    margin: 10px 0 9px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    color: var(--accent-white);
    background: var(--primary-black);
}

.tournament-team-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--primary-white);
    background: transparent;
}

.tournament-team-picker__list {
    max-height: 210px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    overflow: auto;
}

.tournament-team-option {
    min-width: 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    cursor: pointer;
}

.tournament-team-option.is-selected {
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(16, 185, 129, 0.08);
}

.tournament-team-option.is-locked {
    cursor: default;
    opacity: .78;
}

.tournament-team-option.is-locked .tournament-team-option__chevron {
    color: var(--text-secondary);
    font-size: .68rem;
}

.tournament-team-option input {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
}

.tournament-team-option__badge {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: white;
    background: var(--team-accent, #2877d8);
    font-size: 12px;
    font-weight: 900;
}

.tournament-team-option__copy {
    min-width: 0;
}

.tournament-team-option__copy strong,
.tournament-team-option__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-team-option__copy small,
.tournament-team-picker__empty {
    color: var(--accent-white);
}

.tournament-team-picker__empty {
    margin: 12px 0 0;
    text-align: center;
}

.tournament-form__error {
    margin: 10px 0 0;
    color: #fca5a5;
}

.tournament-form__actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.tournament-match-edit-form__hint {
    margin: 11px 0 0;
    padding: 9px 11px;
    border-radius: 12px;
    color: var(--accent-white);
    background: rgba(52, 211, 153, 0.07);
    font-size: 11px;
    line-height: 1.4;
}

.tournament-match-edit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tournament-match-edit-form__loading {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: var(--accent-white);
    font-size: 13px;
}

.tournament-match-edit-form__loading[hidden],
#tournamentMatchEditContent[hidden] {
    display: none;
}

#tournamentMatchEditContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tournament-match-editor-section {
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--secondary-black);
}

.tournament-match-editor-section > summary,
.tournament-match-editor-section__title {
    min-height: 46px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tournament-match-editor-section > summary {
    cursor: pointer;
    list-style: none;
}

.tournament-match-editor-section > summary::-webkit-details-marker {
    display: none;
}

.tournament-match-editor-section > summary > span,
.tournament-match-editor-section__title > span {
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 850;
}

.tournament-match-editor-section > summary > span i,
.tournament-match-editor-section__title > span i {
    width: 22px;
    color: #34d399;
    text-align: center;
}

.tournament-match-editor-section > summary > i {
    color: var(--accent-white);
    font-size: 10px;
    transition: transform 0.18s ease;
}

.tournament-match-editor-section[open] > summary > i {
    transform: rotate(180deg);
}

.tournament-match-editor-section__title small {
    color: var(--accent-white);
    font-size: 10px;
    text-align: right;
}

.tournament-match-editor-section__body {
    padding: 0 12px 12px;
    border-top: 1px solid var(--border-color);
}

.tournament-match-editor-section__body .tournament-form__grid {
    padding-top: 10px;
}

.tournament-match-rosters-editor {
    padding: 0 10px 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tournament-match-roster-editor {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.tournament-match-roster-editor__header {
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.tournament-match-roster-editor__logo {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    display: grid;
    place-items: center;
}

.tournament-match-roster-editor__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tournament-match-roster-editor__header > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.tournament-match-roster-editor__header small,
.tournament-match-roster-editor__header strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-match-roster-editor__header small {
    color: var(--accent-white);
    font-size: 8px;
    text-transform: uppercase;
}

.tournament-match-roster-editor__header strong {
    color: var(--text-strong);
    font-size: 12px;
}

.tournament-match-roster-editor__header em {
    color: var(--accent-white);
    font-size: 9px;
    font-style: normal;
}

.tournament-match-roster-editor__players {
    max-height: 285px;
    overflow: auto;
    padding: 5px;
}

.tournament-match-roster-player {
    min-height: 48px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.tournament-match-roster-player:last-child {
    border-bottom: 0;
}

.tournament-match-roster-player__avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(96, 165, 250, 0.14);
    color: #93c5fd;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 900;
}

.tournament-match-roster-player__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-match-roster-player__identity {
    min-width: 0;
    flex: 1;
}

.tournament-match-roster-player__identity strong,
.tournament-match-roster-player__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-match-roster-player__identity strong {
    color: var(--text-strong);
    font-size: 11px;
}

.tournament-match-roster-player__identity small {
    color: var(--accent-white);
    font-size: 8px;
}

.tournament-match-roster-player__facts {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tournament-match-roster-player__facts small {
    color: #34d399;
    font-size: 9px;
}

.tournament-match-roster-player__card {
    width: 6px;
    height: 9px;
    border-radius: 1px;
    background: #facc15;
}

.tournament-match-roster-player__card.is-red {
    background: #f87171;
}

.tournament-match-roster-player__minutes {
    flex: 0 0 56px;
}

.tournament-match-roster-player__minutes span {
    display: block;
    margin-bottom: 2px;
    color: var(--accent-white);
    font-size: 7px;
    text-align: center;
    text-transform: uppercase;
}

.tournament-match-roster-player__minutes .form-control {
    min-height: 30px;
    padding: 5px;
    text-align: center;
}

.tournament-match-roster-editor__empty,
.tournament-match-events-editor__empty {
    margin: 0;
    padding: 20px 12px;
    color: var(--accent-white);
    font-size: 10px;
    text-align: center;
}

.tournament-match-event-builder {
    padding: 0 10px 10px;
    display: grid;
    grid-template-columns: 1fr 78px 1fr 1.25fr 1.25fr auto;
    align-items: end;
    gap: 7px;
}

.tournament-match-event-builder .form-group {
    min-width: 0;
}

.tournament-match-event-builder label {
    font-size: 9px;
}

.tournament-match-event-builder .form-control {
    min-height: 38px;
    padding: 8px;
    font-size: 10px;
}

.tournament-match-event-builder__add {
    min-height: 38px;
    padding-inline: 13px;
    white-space: nowrap;
}

.tournament-match-events-editor {
    max-height: 245px;
    overflow: auto;
    padding: 0 10px 10px;
}

.tournament-match-event-row {
    min-height: 44px;
    padding: 6px 7px;
    display: grid;
    grid-template-columns: 38px 28px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border-color);
}

.tournament-match-event-row time {
    color: #34d399;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.tournament-match-event-row__icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    display: grid;
    place-items: center;
    font-size: 9px;
}

.tournament-match-event-row.is-yellow_card .tournament-match-event-row__icon {
    color: #facc15;
}

.tournament-match-event-row.is-red_card .tournament-match-event-row__icon {
    color: #f87171;
}

.tournament-match-event-row__copy {
    min-width: 0;
}

.tournament-match-event-row__copy strong,
.tournament-match-event-row__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-match-event-row__copy strong {
    color: var(--text-strong);
    font-size: 11px;
}

.tournament-match-event-row__copy small {
    color: var(--accent-white);
    font-size: 9px;
}

.tournament-match-event-row button {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    color: var(--accent-white);
    background: transparent;
    cursor: pointer;
}

.tournament-match-event-row button:hover,
.tournament-match-event-row button:focus-visible {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.tournament-match-edit-form__actions {
    position: sticky;
    bottom: -20px;
    z-index: 3;
    margin: 0 -20px -20px;
    padding: 11px 20px 20px;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary-black) 88%, transparent), var(--primary-black) 25%);
}

.tournament-details {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-details__summary,
.tournament-details__section,
.tournament-leaderboard {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--secondary-black);
}

.tournament-details__summary,
.tournament-details__section {
    padding: 14px;
}

.tournament-details__summary p {
    margin: 6px 0 0;
    color: var(--accent-white);
    font-size: 13px;
    line-height: 1.4;
}

.tournament-details__meta,
.tournament-details__section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.tournament-details__meta span {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--accent-white);
    background: var(--accent-black);
    font-size: 11px;
}

.tournament-details__section-title {
    justify-content: space-between;
    margin: 0;
}

.tournament-details__section-heading {
    color: var(--primary-white);
    font-size: 18px;
}

.tournament-details__section-actions,
.tournament-leaderboard__header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tournament-collapsible > summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.tournament-collapsible > summary::-webkit-details-marker {
    display: none;
}

.tournament-collapsible > summary:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 3px;
}

.tournament-collapsible[open] > .tournament-details__section-title {
    margin-bottom: 10px;
}

.tournament-collapsible__body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.tournament-collapsible__chevron {
    color: var(--accent-white);
    font-size: 12px;
    transition: transform 0.18s ease;
}

.tournament-collapsible:not([open]) .tournament-collapsible__chevron {
    transform: rotate(-90deg);
}

.tournament-groups {
    display: grid;
    gap: 12px;
}

.tournament-standings {
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.tournament-table-scroll {
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
    scrollbar-width: thin;
}

.tournament-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
}

.tournament-table--teams {
    position: relative;
    z-index: 1;
    background: var(--secondary-black);
    box-shadow: 10px 0 22px rgba(0, 0, 0, 0.16);
}

.tournament-table--teams th:first-child,
.tournament-table--teams td:first-child {
    width: 40px;
}

.tournament-table--stats {
    min-width: 520px;
}

.tournament-table th,
.tournament-table td {
    height: 46px;
    padding: 11px 9px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.tournament-table th {
    color: var(--accent-white);
    font-size: 11px;
    text-transform: uppercase;
}

.tournament-table--teams th:nth-child(2),
.tournament-table--teams td:nth-child(2) {
    text-align: left;
}

.tournament-table tbody tr:last-child td {
    border-bottom: 0;
}

.tournament-table__team {
    min-width: 0;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-white);
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-table__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--team-accent, #2877d8);
}

.tournament-table__points {
    color: #6ee7b7;
    font-size: 15px;
    font-weight: 900;
}

.tournament-table-hint {
    margin: 9px 0 0;
    color: var(--accent-white);
    font-size: 11px;
}

.tournament-table-hint i {
    margin-right: 5px;
    color: #34d399;
}

.tournament-bracket {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: min(62vh, 560px);
    padding: 4px 2px 10px;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.tournament-bracket-panel,
.tournament-bracket-panel > .tournament-collapsible__body {
    overflow: hidden;
}

.tournament-bracket:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

.tournament-bracket__track {
    width: max-content;
    min-width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(218px, 270px);
    align-items: stretch;
    justify-content: center;
    gap: 36px;
}

.tournament-bracket__round {
    min-width: 218px;
    display: grid;
    grid-template-rows: 48px minmax(var(--bracket-height), 1fr);
}

.tournament-bracket__round > header {
    position: static;
    top: auto;
    z-index: auto;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 2px 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.tournament-bracket__round > header small {
    color: #34d399;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tournament-bracket__round > header strong {
    overflow: hidden;
    color: var(--primary-white);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-bracket__matches {
    min-height: var(--bracket-height);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
}

.tournament-bracket-match {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: visible;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    color: var(--primary-white);
    background: var(--primary-black);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.tournament-bracket-match-shell,
.tournament-match-row-shell {
    position: relative;
    min-width: 0;
}

.tournament-match-edit-button {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 211, 153, 0.5);
    border-radius: 8px;
    color: #6ee7b7;
    background: rgba(8, 24, 31, 0.94);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    font-size: 10px;
}

.tournament-match-edit-button:hover,
.tournament-match-edit-button:focus-visible {
    border-color: #6ee7b7;
    outline: none;
    color: var(--primary-white);
}

.tournament-match-edit-button--bracket {
    top: -7px;
    right: -7px;
    border-radius: 50%;
}

.tournament-bracket-match:hover {
    border-color: rgba(52, 211, 153, 0.65);
    transform: translateY(-1px);
}

.tournament-bracket-match:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}

.tournament-bracket__round:not(:last-child) .tournament-bracket-match::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -37px;
    width: 36px;
    height: 1px;
    background: var(--border-color);
}

.tournament-bracket-match__team {
    min-width: 0;
    min-height: 34px;
    padding: 5px 8px;
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 7px;
}

.tournament-bracket-match__team + .tournament-bracket-match__team {
    border-top: 1px solid var(--border-color);
}

.tournament-bracket-match__team.is-winner {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.07);
}

.tournament-bracket-match__team strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-bracket-match__team b {
    color: inherit;
    font-size: 13px;
    text-align: right;
}

.tournament-bracket-match__logo {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    color: var(--accent-white);
    font-size: 14px;
}

.tournament-bracket-match__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tournament-bracket-match > small {
    display: block;
    padding: 4px 8px;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    color: var(--accent-white);
    font-size: 9px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-bracket__hint {
    margin: 7px 0 0;
    color: var(--accent-white);
    font-size: 10px;
    text-align: center;
}

.tournament-bracket__hint i {
    margin-right: 5px;
    color: #34d399;
}

.tournament-calendar {
    overflow: hidden;
    touch-action: pan-y;
}

.tournament-calendar__header {
    margin-bottom: 8px;
    padding: 7px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--primary-black);
}

.tournament-calendar__header > div {
    min-width: 0;
    text-align: center;
}

.tournament-calendar__header strong,
.tournament-calendar__header small {
    display: block;
}

.tournament-calendar__header strong {
    overflow: hidden;
    color: var(--primary-white);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-calendar__header small,
.tournament-calendar__hint {
    color: var(--accent-white);
    font-size: 10px;
}

.tournament-calendar__header button {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    color: var(--primary-white);
    background: var(--secondary-black);
    cursor: pointer;
}

.tournament-calendar__header button:disabled {
    opacity: 0.35;
    cursor: default;
}

.tournament-calendar__hint {
    margin: 7px 0 0;
    text-align: center;
}

.tournament-match-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 7px;
}

.tournament-match-row {
    width: 100%;
    padding: 9px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.tournament-match-row-shell .tournament-match-row {
    height: 100%;
}

.tournament-match-row-shell.has-editor .tournament-match-row {
    padding-right: 35px;
}

.tournament-match-row:hover,
.tournament-match-row:focus-visible {
    border-color: rgba(52, 211, 153, 0.62);
    outline: none;
    transform: translateY(-1px);
}

.tournament-match-row__team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.tournament-match-row__team--second {
    justify-content: flex-end;
    text-align: right;
}

.tournament-match-row__name {
    min-width: 0;
    flex: 1 1 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-match-row__logo {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #f8b923;
    font-size: 18px;
}

.tournament-match-row__logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.tournament-match-row strong {
    min-width: 46px;
    padding: 3px 6px;
    border-radius: 9px;
    color: var(--primary-white);
    background: var(--accent-black);
    text-align: center;
}

.tournament-match-row small {
    grid-column: 1 / -1;
    color: var(--accent-white);
    font-size: 10px;
    text-align: center;
}

.tournament-match-row small i {
    margin-left: 4px;
}

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

.tournament-leaderboard {
    min-width: 0;
    overflow: hidden;
    touch-action: pan-y;
    background:
        radial-gradient(circle at 90% 0, rgba(52, 211, 153, 0.07), transparent 34%),
        var(--secondary-black);
}

.tournament-leaderboard__header {
    min-height: 42px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tournament-leaderboard__header > strong {
    color: var(--primary-white);
    font-size: 16px;
}

.tournament-leaderboard__header-actions > i:first-child {
    color: #f8b923;
}

.tournament-leaderboard__columns,
.tournament-leaderboard__row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1.25fr) minmax(105px, 0.9fr) 54px;
    align-items: center;
    column-gap: 8px;
}

.tournament-leaderboard__columns {
    min-height: 30px;
    padding: 5px 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-white);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tournament-leaderboard__columns span:last-child {
    text-align: right;
}

.tournament-leaderboard__list {
    min-height: 120px;
}

.tournament-leaderboard__row {
    min-height: 50px;
    padding: 5px 14px;
    border-bottom: 1px solid var(--border-color);
}

.tournament-leaderboard__row:last-child {
    border-bottom: 0;
}

.tournament-leaderboard__rank {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-white);
}

.tournament-leaderboard__rank strong {
    min-width: 12px;
    font-size: 13px;
    font-weight: 900;
}

.tournament-leaderboard__rank i {
    color: #f5a94a;
    font-size: 12px;
}

.tournament-leaderboard__player,
.tournament-leaderboard__club {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-leaderboard__player strong,
.tournament-leaderboard__club small {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-leaderboard__player strong {
    color: var(--primary-white);
    font-size: 13px;
}

.tournament-leaderboard__avatar,
.tournament-leaderboard__club-logo {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.tournament-leaderboard__avatar {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--primary-white);
    background: var(--accent-black);
    font-size: 10px;
    font-weight: 900;
}

.tournament-leaderboard__avatar img,
.tournament-leaderboard__club-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tournament-leaderboard__club-logo {
    width: 29px;
    height: 29px;
    color: #f8b923;
    font-size: 20px;
}

.tournament-leaderboard__club-logo img {
    object-fit: contain;
}

.tournament-leaderboard__club small {
    color: var(--accent-white);
    font-size: 11px;
}

.tournament-leaderboard__value {
    justify-self: end;
    color: #6ee7b7;
    text-align: right;
    font-size: 18px;
    font-weight: 900;
}

.tournament-leaderboard__empty,
.tournament-details__empty {
    padding: 25px 16px;
    color: var(--accent-white);
    text-align: center;
}

.tournament-leaderboard__footer {
    min-height: 54px;
    padding: 8px 14px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--border-color);
    color: var(--accent-white);
    text-align: center;
}

.tournament-leaderboard__footer > span {
    min-width: 0;
}

.tournament-leaderboard__footer small,
.tournament-leaderboard__footer strong {
    display: block;
}

.tournament-leaderboard__footer small {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-leaderboard__footer strong {
    margin-top: 2px;
    color: #34d399;
    font-size: 10px;
}

.tournament-leaderboard__footer button {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--accent-white);
    background: transparent;
    cursor: pointer;
}

.tournament-leaderboard__footer button:disabled {
    opacity: 0.25;
    cursor: default;
}

:root[data-theme="light"] .tournaments-hero,
:root[data-theme="light"] .tournament-card,
:root[data-theme="light"] .tournament-invitation,
:root[data-theme="light"] .tournament-team-picker,
:root[data-theme="light"] .tournament-details__summary,
:root[data-theme="light"] .tournament-details__section,
:root[data-theme="light"] .tournament-leaderboard {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .tournaments-notice {
    color: #047857;
}

:root[data-theme="light"] .tournaments-notice.is-error {
    color: #b42318;
}

@media (max-width: 800px) {
    .tournaments-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .tournaments-create-btn {
        justify-content: center;
    }

    .tournament-leaderboards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .tournaments-hero,
    .tournaments-modal__dialog {
        padding: 18px;
        border-radius: 19px;
    }

    .tournaments-hero__copy {
        align-items: flex-start;
    }

    .tournaments-hero__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 15px;
        font-size: 21px;
    }

    .tournament-form__grid,
    .tournament-team-picker__list,
    .tournament-invitations__list,
    .tournaments-grid {
        grid-template-columns: 1fr;
    }

    .tournament-invitation {
        align-items: flex-start;
    }

    .tournaments-modal {
        padding: 8px;
    }

    #tournamentDetailsModal {
        z-index: 80;
        align-items: start;
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .tournaments-modal__dialog,
    .tournaments-modal__dialog--details {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
    }

    .tournaments-modal__dialog--create {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 14px;
    }

    .tournaments-modal__dialog--match-edit {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 14px;
    }

    .tournament-match-rosters-editor {
        grid-template-columns: 1fr;
    }

    .tournament-match-event-builder {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tournament-match-event-builder__add {
        width: 100%;
    }

    .tournament-match-edit-form__actions {
        bottom: -14px;
        margin: 0 -14px -14px;
        padding: 10px 14px 14px;
    }

    #tournamentMatchEditModal .tournaments-modal__header h2 {
        font-size: 20px;
    }

    #tournamentCreateModal .tournaments-modal__header {
        gap: 10px;
        margin-bottom: 10px;
    }

    #tournamentCreateModal .tournaments-modal__header h2 {
        font-size: 22px;
    }

    #tournamentCreateModal .tournaments-modal__header p {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.3;
    }

    #tournamentCreateModal .tournaments-modal__close {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .tournament-format-picker__options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .tournament-format-option {
        min-height: 62px;
        padding: 7px 5px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        text-align: center;
    }

    .tournament-format-option__icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: 12px;
    }

    .tournament-format-option strong {
        font-size: 11px;
    }

    .tournament-format-option small {
        display: none;
    }

    #tournamentDetailsModal .tournaments-modal__dialog--details {
        max-height: calc(100dvh - 90px - env(safe-area-inset-bottom));
        padding: 10px;
    }

    #tournamentDetailsModal .tournaments-modal__header {
        gap: 9px;
        margin-bottom: 10px;
    }

    #tournamentDetailsModal .tournaments-modal__header h2 {
        font-size: 18px;
        line-height: 1.15;
    }

    #tournamentDetailsModal .tournaments-eyebrow {
        font-size: 9px;
    }

    #tournamentDetailsModal .tournaments-modal__close {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .tournament-details {
        gap: 9px;
    }

    .tournament-details__summary,
    .tournament-details__section {
        padding: 9px;
    }

    .tournament-details__meta {
        gap: 5px;
    }

    .tournament-details__meta span {
        padding: 3px 7px;
        font-size: 10px;
    }

    .tournament-details__summary p {
        margin-top: 4px;
        font-size: 12px;
    }

    .tournament-details__section-heading {
        font-size: 16px;
    }

    .tournament-details__section-actions {
        gap: 7px;
    }

    .tournament-details__section-actions .tournament-team-status {
        padding: 4px 7px;
        font-size: 9px;
    }

    .tournament-calendar__header {
        grid-template-columns: 29px minmax(0, 1fr) 29px;
        padding: 5px;
    }

    .tournament-calendar__header button {
        width: 29px;
        height: 29px;
    }

    .tournament-calendar__header strong {
        font-size: 12px;
    }

    .tournament-match-row {
        grid-template-columns: minmax(0, 1fr) 41px minmax(0, 1fr);
        padding: 7px;
        gap: 4px;
        font-size: 11px;
    }

    .tournament-match-row__team {
        gap: 4px;
    }

    .tournament-match-row__logo {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        font-size: 14px;
    }

    .tournament-match-row strong {
        min-width: 41px;
        padding: 3px 5px;
    }

    .tournament-standings {
        grid-template-columns: minmax(142px, 42vw) minmax(0, 1fr);
    }

    .tournament-table th,
    .tournament-table td {
        padding-right: 7px;
        padding-left: 7px;
    }

    .tournament-table--teams th:first-child,
    .tournament-table--teams td:first-child {
        width: 34px;
    }

    .tournament-table--stats {
        min-width: 470px;
    }

    .tournament-bracket__track {
        grid-auto-columns: 198px;
        gap: 27px;
    }

    .tournament-bracket {
        max-height: min(56vh, 480px);
    }

    .tournament-bracket__round {
        min-width: 198px;
    }

    .tournament-bracket__round:not(:last-child) .tournament-bracket-match::after {
        right: -28px;
        width: 27px;
    }

    .tournament-bracket-match__team {
        grid-template-columns: 21px minmax(0, 1fr) 20px;
        gap: 5px;
    }

    .tournament-bracket-match__logo {
        width: 21px;
        height: 21px;
    }

    .tournament-leaderboard__columns,
    .tournament-leaderboard__row {
        grid-template-columns: 31px minmax(0, 1.25fr) minmax(72px, 0.85fr) 40px;
        column-gap: 6px;
    }

    .tournament-leaderboard__columns,
    .tournament-leaderboard__row,
    .tournament-leaderboard__footer {
        padding-right: 9px;
        padding-left: 9px;
    }

    .tournament-leaderboard__avatar {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .tournament-leaderboard__club-logo {
        width: 23px;
        height: 23px;
        font-size: 16px;
    }

    .tournament-leaderboard__player,
    .tournament-leaderboard__club {
        gap: 6px;
    }

    .tournament-leaderboard__player strong {
        font-size: 11px;
    }

    .tournament-leaderboard__club small {
        font-size: 9px;
    }

    .tournament-leaderboard__value {
        font-size: 16px;
    }

    .tournament-form__actions .btn {
        flex: 1;
    }
}

/* Premium mobile tournament center */
body.is-tournaments-section {
    position: relative;
    background: #061720;
}

body.is-tournaments-section::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    height: 760px;
    background:
        linear-gradient(180deg, rgba(2, 15, 24, 0.08) 0%, rgba(3, 19, 29, 0.32) 54%, #061720 100%),
        linear-gradient(90deg, rgba(1, 15, 24, 0.5) 0%, rgba(3, 20, 29, 0.1) 58%, rgba(5, 32, 39, 0.2) 100%),
        url("../img/tournaments/tournament-trophy-hero-v1.webp") center 25% / cover no-repeat;
    content: "";
    pointer-events: none;
}

body.is-tournaments-section > header,
body.is-tournaments-section > #app-root,
body.is-tournaments-section > footer {
    position: relative;
}

body.is-tournaments-section > #app-root {
    z-index: 2;
}

body.is-tournaments-section > footer {
    z-index: 1;
}

body.is-tournaments-section > header {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

body.is-tournaments-section .notification-btn {
    border-color: rgba(130, 216, 226, 0.28);
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.tournaments-page {
    --tournaments-green: #2cf0ad;
    --tournaments-cyan: #5ed6ff;
    --tournaments-blue: #75a9ff;
    --tournaments-gold: #ffc857;
    --tournaments-line: rgba(111, 191, 215, 0.25);
    --tournaments-panel: rgba(5, 25, 35, 0.76);
    --tournaments-panel-strong: rgba(5, 24, 34, 0.92);

    width: min(100%, 820px);
    position: relative;
    isolation: isolate;
    margin-inline: auto;
    gap: 16px;
    color: #f7fbff;
}

.tournaments-hero {
    min-height: 266px;
    position: relative;
    align-items: flex-start;
    padding: 22px;
    border-color: rgba(91, 205, 190, 0.34);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(3, 24, 33, 0.9) 0%, rgba(4, 28, 37, 0.62) 56%, rgba(4, 25, 34, 0.14) 100%),
        linear-gradient(180deg, rgba(5, 33, 43, 0.14), rgba(3, 20, 29, 0.6));
    box-shadow: inset 0 1px 0 rgba(196, 255, 246, 0.05), 0 22px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.tournaments-hero::after {
    position: absolute;
    right: -18%;
    bottom: -62%;
    width: 76%;
    height: 100%;
    border-radius: 50%;
    background: rgba(32, 236, 168, 0.08);
    filter: blur(28px);
    content: "";
    pointer-events: none;
}

.tournaments-hero__copy {
    width: min(64%, 430px);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.tournaments-hero__heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournaments-hero__icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border: 1px solid rgba(255, 200, 87, 0.34);
    border-radius: 9px;
    color: var(--tournaments-gold);
    background: rgba(255, 190, 65, 0.11);
    font-size: 13px;
    box-shadow: 0 0 18px rgba(255, 192, 61, 0.08);
}

.tournaments-eyebrow,
.tournaments-heading > div > span {
    color: #4ce9c1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.tournaments-heading > div > span i {
    margin-right: 5px;
    color: var(--tournaments-gold);
}

.tournaments-hero h1 {
    margin-top: 5px;
    color: #fff;
    font-size: clamp(35px, 6vw, 49px);
    font-weight: 900;
    letter-spacing: -0.045em;
}

.tournaments-hero p {
    max-width: 360px;
    margin-top: 3px;
    color: #acc4d1;
    font-size: 13px;
    line-height: 1.42;
}

.tournaments-hero__motto {
    position: absolute;
    top: 24px;
    right: 16px;
    z-index: 1;
    color: #5ff4d0;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 15px;
    font-style: italic;
    font-weight: 600;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 0 12px rgba(42, 239, 191, 0.45);
    transform: rotate(-5deg);
}

.tournaments-create-btn {
    min-height: 46px;
    min-width: 220px;
    position: relative;
    z-index: 2;
    align-self: flex-start;
    justify-content: center;
    margin-top: auto;
    border: 1px solid rgba(81, 250, 202, 0.78);
    border-radius: 14px;
    color: #031619;
    background: linear-gradient(110deg, #2be9ad 0%, #56d8e9 58%, #75affb 100%);
    box-shadow: 0 10px 28px rgba(41, 231, 173, 0.22);
    font-size: 13px;
    font-weight: 900;
}

.tournaments-create-btn:hover,
.tournaments-create-btn:focus-visible {
    border-color: #b7fff0;
    color: #031619;
    background: linear-gradient(110deg, #3ff4bc 0%, #69e1ef 58%, #88bbff 100%);
}

.tournaments-notice {
    border-color: rgba(47, 239, 177, 0.32);
    color: #adfbe1;
    background: rgba(6, 75, 63, 0.76);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.tournament-invitations,
.tournaments-catalog {
    position: relative;
    border: 1px solid var(--tournaments-line);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(8, 33, 43, 0.86), rgba(4, 24, 34, 0.78));
    box-shadow: inset 0 1px 0 rgba(215, 255, 248, 0.035), 0 18px 42px rgba(0, 0, 0, 0.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.tournament-invitations {
    padding: 15px;
    border-color: rgba(255, 197, 76, 0.3);
}

.tournaments-catalog {
    gap: 11px;
    padding: 16px;
}

.tournaments-heading {
    gap: 12px;
}

.tournaments-heading h2 {
    margin-top: 2px;
    color: #f9fcff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.tournaments-heading strong {
    padding: 6px 10px;
    border: 1px solid rgba(82, 211, 211, 0.2);
    color: #9bc1d0;
    background: rgba(8, 37, 48, 0.72);
    font-size: 10px;
    font-weight: 750;
}

.tournaments-filter-bar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
    border: 1px solid rgba(103, 177, 203, 0.2);
    border-radius: 16px;
    background: rgba(3, 20, 29, 0.68);
}

.tournaments-filter {
    min-width: 0;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #92acba;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tournaments-filter i {
    color: #80aabd;
    font-size: 10px;
}

.tournaments-filter:hover,
.tournaments-filter:focus-visible {
    color: #e5faff;
    outline: none;
}

.tournaments-filter.is-active {
    border-color: rgba(49, 242, 181, 0.8);
    color: #edfff8;
    background: linear-gradient(110deg, rgba(9, 151, 105, 0.72), rgba(27, 124, 137, 0.52));
    box-shadow: 0 0 20px rgba(40, 234, 175, 0.15), inset 0 1px 0 rgba(194, 255, 237, 0.14);
}

.tournaments-filter.is-active i {
    color: #49f0bd;
}

.tournament-invitations__list,
.tournaments-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tournament-invitation {
    padding: 12px;
    border-color: rgba(245, 196, 76, 0.24);
    border-radius: 15px;
    background: rgba(5, 25, 34, 0.82);
}

.tournament-invitation h3 {
    font-size: 14px;
}

.tournament-invitation p {
    font-size: 10px;
}

.tournament-invitation__actions button {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.tournament-card {
    min-height: 0;
    padding: 14px;
    border-color: rgba(96, 174, 198, 0.24);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(8, 35, 45, 0.95), rgba(4, 24, 34, 0.92)),
        var(--tournaments-panel-strong);
    box-shadow: inset 0 1px 0 rgba(225, 255, 250, 0.035), 0 10px 28px rgba(0, 0, 0, 0.16);
}

.tournament-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    border-radius: 18px 0 0 18px;
    background: var(--tournaments-green);
    box-shadow: 0 0 12px rgba(44, 240, 173, 0.5);
    content: "";
}

.tournament-card::after {
    width: 110px;
    height: 110px;
    right: -48px;
    top: -64px;
    background: rgba(44, 240, 173, 0.07);
}

.tournament-card--planned::before {
    background: var(--tournaments-blue);
    box-shadow: 0 0 12px rgba(117, 169, 255, 0.5);
}

.tournament-card--registration::before {
    background: var(--tournaments-gold);
    box-shadow: 0 0 12px rgba(255, 200, 87, 0.46);
}

.tournament-card--completed::before {
    background: #7f98a5;
    box-shadow: none;
}

.tournament-card:hover,
.tournament-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(55, 238, 184, 0.58);
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.25), 0 0 22px rgba(43, 223, 173, 0.08);
}

.tournament-card__top {
    margin-bottom: 9px;
}

.tournament-card__icon {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 200, 87, 0.25);
    border-radius: 11px;
    color: var(--tournaments-gold);
    background: rgba(255, 196, 71, 0.1);
    font-size: 14px;
}

.tournament-card__status {
    position: relative;
    z-index: 1;
    padding: 4px 7px;
    color: #7df5cb;
    background: rgba(15, 139, 103, 0.18);
    font-size: 9px;
}

.tournament-card__status i {
    font-size: 5px;
}

.tournament-card--planned .tournament-card__status {
    color: #a9c9ff;
    background: rgba(75, 126, 210, 0.16);
}

.tournament-card--registration .tournament-card__status {
    color: #ffd987;
    background: rgba(184, 123, 22, 0.16);
}

.tournament-card--completed .tournament-card__status {
    color: #b5c4ca;
    background: rgba(122, 146, 157, 0.14);
}

.tournament-card__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tournament-card__title-row > div {
    min-width: 0;
}

.tournament-card h3 {
    overflow: hidden;
    color: #f9fcff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-card p {
    overflow: hidden;
    margin-top: 3px;
    color: #88a8b8;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-card__open {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(98, 183, 207, 0.2);
    border-radius: 9px;
    color: #9dc4d2;
    background: rgba(12, 47, 59, 0.55);
    font-size: 9px;
}

.tournament-card__meta {
    margin-top: 10px;
    padding-top: 0;
    gap: 5px;
    color: #a0bac7;
    font-size: 9px;
}

.tournament-card__meta > span {
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid rgba(111, 178, 199, 0.16);
    border-radius: 8px;
    background: rgba(5, 24, 34, 0.46);
}

.tournament-card__meta i {
    color: #51d9c0;
    font-size: 9px;
}

.tournament-card__progress,
.tournament-card__schedule {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(104, 176, 198, 0.14);
}

.tournament-card__progress-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.tournament-card__progress-copy strong,
.tournament-card__progress-copy small {
    font-size: 9px;
}

.tournament-card__progress-copy strong {
    color: #d9edf3;
}

.tournament-card__progress-copy small {
    color: #7896a4;
}

.tournament-card__progress-track {
    height: 5px;
    display: block;
    border-radius: 999px;
    background: rgba(107, 159, 174, 0.16);
    overflow: hidden;
}

.tournament-card__progress-track > span {
    width: var(--tournament-progress);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tournaments-green), var(--tournaments-cyan));
    box-shadow: 0 0 9px rgba(50, 233, 185, 0.44);
}

.tournament-card__schedule {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7899a8;
    font-size: 9px;
}

.tournament-card__schedule i {
    color: #5fdcc6;
}

.tournament-card__footer {
    justify-content: flex-start;
    margin-top: 7px;
    padding-top: 7px;
    border-color: rgba(105, 175, 196, 0.12);
    color: #d9bd77;
    font-size: 9px;
}

.tournaments-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 22px 16px;
    border-color: rgba(94, 186, 207, 0.24);
    border-radius: 18px;
    color: #8ca7b5;
    background: rgba(4, 23, 32, 0.6);
}

.tournaments-empty[hidden] {
    display: none;
}

.tournaments-empty__visual {
    width: 54px;
    height: 54px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 200, 87, 0.28);
    border-radius: 18px;
    color: var(--tournaments-gold);
    background: rgba(255, 197, 70, 0.08);
    box-shadow: 0 0 25px rgba(255, 190, 52, 0.08);
}

.tournaments-empty__visual i:first-child {
    font-size: 23px;
}

.tournaments-empty__visual i:last-child {
    position: absolute;
    right: -7px;
    bottom: -5px;
    padding: 5px;
    border-radius: 8px;
    color: #63e7cf;
    background: #0b303b;
    font-size: 9px;
}

.tournaments-empty h3 {
    margin-top: 10px;
    color: #f5fbff;
    font-size: 16px;
}

.tournaments-empty p {
    max-width: 330px;
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.45;
}

.tournaments-empty__create {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 15px;
    border: 1px solid rgba(50, 239, 182, 0.74);
    border-radius: 11px;
    color: #eafff8;
    background: linear-gradient(110deg, rgba(7, 139, 96, 0.88), rgba(31, 132, 151, 0.8));
    font-size: 10px;
    font-weight: 850;
    cursor: pointer;
}

.tournaments-empty.is-filter-empty .tournaments-empty__create {
    display: none;
}

@media (max-width: 800px) {
    .tournaments-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .tournaments-create-btn {
        width: min(100%, 250px);
    }
}

@media (max-width: 620px) {
    body.is-tournaments-section::before {
        height: 690px;
        background-position: center, center, center 18%;
    }

    .tournaments-page {
        width: min(100%, 430px);
        gap: 12px;
    }

    .tournaments-hero {
        min-height: 250px;
        padding: 16px;
        border-radius: 20px;
    }

    .tournaments-hero__copy {
        width: 68%;
        align-items: flex-start;
    }

    .tournaments-hero__icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        border-radius: 8px;
        font-size: 12px;
    }

    .tournaments-eyebrow {
        font-size: 8px;
        letter-spacing: 0.12em;
    }

    .tournaments-hero h1 {
        margin-top: 4px;
        font-size: 35px;
    }

    .tournaments-hero p {
        max-width: 230px;
        font-size: 10px;
        line-height: 1.38;
    }

    .tournaments-hero__motto {
        top: 17px;
        right: 9px;
        font-size: 12px;
    }

    .tournaments-create-btn {
        min-height: 42px;
        width: min(100%, 210px);
        min-width: 0;
        border-radius: 13px;
        font-size: 11px;
    }

    .tournament-invitations,
    .tournaments-catalog {
        border-radius: 19px;
    }

    .tournament-invitations,
    .tournaments-catalog {
        padding: 12px;
    }

    .tournaments-heading h2 {
        font-size: 18px;
    }

    .tournaments-heading > div > span {
        font-size: 8px;
    }

    .tournaments-heading strong {
        padding: 5px 8px;
        font-size: 9px;
    }

    .tournaments-filter-bar {
        gap: 4px;
        padding: 4px;
        border-radius: 14px;
    }

    .tournaments-filter {
        min-height: 34px;
        gap: 4px;
        padding: 5px 4px;
        border-radius: 10px;
        font-size: 8px;
    }

    .tournaments-filter i {
        font-size: 8px;
    }

    .tournament-invitations__list,
    .tournaments-grid {
        grid-template-columns: 1fr;
    }

    .tournament-card {
        padding: 12px;
        border-radius: 16px;
    }

    .tournament-card::before {
        border-radius: 16px 0 0 16px;
    }

    .tournament-card__meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .tournament-card__meta::-webkit-scrollbar {
        display: none;
    }

    .tournament-card__meta > span {
        flex: 0 0 auto;
    }

    .tournaments-empty {
        min-height: 165px;
    }
}

@media (max-width: 370px) {
    .tournaments-filter i {
        display: none;
    }

    .tournaments-hero__copy {
        width: 72%;
    }
}

/* Personal tournament page */
body.is-tournament-detail > header {
    display: none;
}

.tournaments-page.is-details-open {
    width: min(100%, 430px);
    min-width: 0;
    max-width: 100%;
    gap: 0;
}

.tournaments-page.is-details-open > .tournaments-hero,
.tournaments-page.is-details-open > .tournaments-notice,
.tournaments-page.is-details-open > .tournament-invitations,
.tournaments-page.is-details-open > .tournaments-catalog {
    display: none !important;
}

.tournament-details-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    position: relative;
    z-index: auto;
    display: grid;
    gap: 10px;
    padding: 0;
    animation: tournament-page-enter 0.24s ease both;
}

.tournament-details-page[hidden],
.tournament-details-panel[hidden],
.tournament-stat-panel[hidden],
.tournament-details-hero__menu[hidden] {
    display: none !important;
}

.tournament-details-hero {
    width: 100%;
    min-width: 0;
    min-height: 264px;
    position: relative;
    top: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 12px 14px 15px;
    overflow: hidden;
    border: 1px solid rgba(91, 205, 190, 0.34);
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(2, 17, 25, 0.9) 0%, rgba(3, 24, 31, 0.52) 55%, rgba(2, 15, 22, 0.08) 100%),
        linear-gradient(180deg, rgba(2, 15, 22, 0.06) 45%, rgba(3, 19, 27, 0.72) 100%),
        url("../img/tournaments/tournament-trophy-hero-v1.webp") center 17% / cover no-repeat;
    box-shadow: inset 0 1px rgba(214, 255, 247, 0.08), 0 22px 46px rgba(0, 0, 0, 0.22);
}

.tournament-details-hero__topbar {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.tournament-details-page__back,
.tournament-details-hero__actions > button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(98, 198, 214, 0.34);
    border-radius: 12px;
    color: #e5f8fd;
    background: rgba(3, 24, 32, 0.56);
    box-shadow: inset 0 1px rgba(220, 255, 248, 0.04);
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tournament-details-page__back:hover,
.tournament-details-page__back:focus-visible,
.tournament-details-hero__actions > button:hover,
.tournament-details-hero__actions > button:focus-visible {
    border-color: var(--tournaments-green);
    outline: none;
    color: #fff;
    background: rgba(9, 79, 70, 0.72);
}

.tournament-details-hero__logo {
    width: 142px;
    max-width: 100%;
    display: block;
}

.tournament-details-hero__actions {
    position: relative;
    display: flex;
    gap: 7px;
}

.tournament-details-hero__menu {
    width: 154px;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 30;
    display: grid;
    gap: 3px;
    padding: 5px;
    border: 1px solid rgba(94, 214, 208, 0.32);
    border-radius: 12px;
    background: rgba(4, 27, 35, 0.97);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.tournament-details-hero__menu button {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    color: #cfe3e9;
    background: transparent;
    font-size: 10px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}

.tournament-details-hero__menu button:hover,
.tournament-details-hero__menu button:focus-visible {
    outline: none;
    color: #fff;
    background: rgba(44, 240, 173, 0.12);
}

.tournament-details-hero__copy {
    width: min(75%, 290px);
    min-width: 0;
}

.tournament-details-hero__copy h2 {
    overflow: hidden;
    margin: 4px 0 0;
    color: #f8fcff;
    font-size: clamp(23px, 7.3vw, 31px);
    font-weight: 950;
    line-height: 1.04;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-details-hero__copy > p {
    overflow: hidden;
    margin: 8px 0 0;
    color: #b0cad4;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-details-hero__meta {
    display: flex;
    gap: 5px;
    margin-top: 11px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tournament-details-hero__meta::-webkit-scrollbar {
    display: none;
}

.tournament-details-hero__meta span {
    min-width: max-content;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid rgba(102, 191, 211, 0.24);
    border-radius: 999px;
    color: #bfd6de;
    background: rgba(3, 25, 33, 0.68);
    font-size: 8px;
    font-weight: 750;
}

.tournament-details-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    display: flex;
    gap: 2px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid var(--tournaments-line);
    border-radius: 15px;
    background: rgba(4, 26, 35, 0.94);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    scrollbar-width: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.tournament-details-tabs::-webkit-scrollbar {
    display: none;
}

.tournament-details-tabs button {
    min-width: max-content;
    min-height: 40px;
    flex: 1 0 auto;
    padding: 8px 11px;
    border: 0;
    border-radius: 10px;
    color: #86a6b4;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.tournament-details-tabs button.is-active {
    color: #eafff7;
    background: linear-gradient(135deg, rgba(21, 184, 132, 0.26), rgba(41, 151, 176, 0.15));
    box-shadow: inset 0 -2px var(--tournaments-green), 0 0 18px rgba(44, 240, 173, 0.1);
}

.tournament-details-tabs button:focus-visible,
.tournament-stat-tabs button:focus-visible,
.tournament-stat-shortcuts button:focus-visible,
.tournament-next-match button:focus-visible,
.tournament-standings-preview button:focus-visible {
    outline: 2px solid var(--tournaments-green);
    outline-offset: 2px;
}

.tournament-details-page .tournament-details,
.tournament-details-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.tournament-details-page .tournament-details {
    gap: 0;
}

.tournament-details-panel {
    display: grid;
    gap: 10px;
}

.tournament-overview-description {
    margin: 0;
    padding: 0 3px;
    color: #91adb8;
    font-size: 10px;
    line-height: 1.45;
}

.tournament-progress-card,
.tournament-next-match,
.tournament-standings-preview,
.tournament-stat-shortcuts,
.tournament-stage-empty,
.tournament-stat-banner {
    min-width: 0;
    border: 1px solid var(--tournaments-line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 90% 0, rgba(44, 240, 173, 0.07), transparent 38%),
        rgba(5, 28, 37, 0.88);
    box-shadow: inset 0 1px rgba(218, 255, 249, 0.025);
}

.tournament-progress-card {
    min-height: 90px;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
}

.tournament-progress-card__ring {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--tournaments-green) var(--tournament-progress, 0%), rgba(68, 145, 154, 0.18) 0);
    box-shadow: 0 0 20px rgba(44, 240, 173, 0.1);
}

.tournament-progress-card__ring::before {
    width: 47px;
    height: 47px;
    grid-area: 1 / 1;
    border-radius: 50%;
    background: #08232c;
    content: "";
}

.tournament-progress-card__ring strong {
    z-index: 1;
    grid-area: 1 / 1;
    color: #f4fffb;
    font-size: 15px;
}

.tournament-progress-card__copy,
.tournament-progress-card__copy > strong,
.tournament-progress-card__copy > small {
    min-width: 0;
    display: block;
}

.tournament-progress-card__copy > strong {
    color: #f5fbff;
    font-size: 13px;
    font-weight: 900;
}

.tournament-progress-card__copy > small {
    margin-top: 3px;
    color: #8daab6;
    font-size: 9px;
}

.tournament-progress-card__bar {
    height: 6px;
    display: block;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(96, 155, 168, 0.15);
}

.tournament-progress-card__bar i {
    width: var(--tournament-progress, 0%);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tournaments-green), var(--tournaments-cyan));
}

.tournament-next-match {
    padding: 12px;
}

.tournament-next-match > header,
.tournament-standings-preview > header,
.tournament-stat-shortcuts > header {
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tournament-next-match > header strong,
.tournament-standings-preview > header strong,
.tournament-stat-shortcuts > header strong {
    color: #f5fbff;
    font-size: 13px;
    font-weight: 900;
}

.tournament-next-match > header small {
    color: var(--tournaments-green);
    font-size: 8px;
    font-weight: 800;
}

.tournament-next-match__teams {
    min-height: 84px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    padding: 9px 4px;
    border: 1px solid rgba(104, 188, 207, 0.16);
    border-radius: 12px;
    background: rgba(3, 23, 31, 0.58);
}

.tournament-next-match__teams > span {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 5px;
}

.tournament-next-match__teams > span > i,
.tournament-next-match__teams > span > img {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    object-fit: contain;
    color: #8fc9d9;
    font-size: 25px;
}

.tournament-next-match__teams strong {
    width: 100%;
    overflow: hidden;
    color: #ecf7fa;
    font-size: 10px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-next-match__teams > b {
    color: #7899a5;
    font-size: 15px;
    text-align: center;
}

.tournament-next-match__meta {
    display: flex;
    justify-content: center;
    margin: 8px 0;
    color: #a0bdc7;
    font-size: 9px;
}

.tournament-next-match__meta i {
    margin-right: 5px;
    color: #69cce1;
}

.tournament-next-match > button {
    width: 100%;
    min-height: 39px;
    border: 1px solid rgba(44, 240, 173, 0.55);
    border-radius: 11px;
    color: #e9fff7;
    background: linear-gradient(105deg, rgba(8, 130, 91, 0.34), rgba(23, 109, 125, 0.25));
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.tournament-next-match > button i {
    margin-left: 7px;
}

.tournament-next-match--empty {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tournament-next-match--empty strong,
.tournament-next-match--empty small {
    display: block;
}

.tournament-next-match--empty small {
    margin-top: 4px;
    color: #87a6b2;
    font-size: 9px;
}

.tournament-next-match--empty > i {
    color: #56d9b5;
    font-size: 22px;
}

.tournament-standings-preview {
    padding: 11px;
}

.tournament-standings-preview > header button {
    padding: 5px 0;
    border: 0;
    color: var(--tournaments-green);
    background: transparent;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}

.tournament-standings-preview__table {
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid rgba(102, 181, 199, 0.16);
    border-radius: 11px;
}

.tournament-standings-preview__row {
    min-height: 35px;
    display: grid;
    grid-template-columns: 20px minmax(86px, 1fr) repeat(4, 22px) 27px;
    align-items: center;
    gap: 2px;
    padding: 4px 7px;
    border-bottom: 1px solid rgba(107, 182, 200, 0.12);
    color: #bcd1d8;
    font-size: 8px;
    text-align: center;
}

.tournament-standings-preview__row:last-child {
    border-bottom: 0;
}

.tournament-standings-preview__row.is-head {
    min-height: 28px;
    color: #7798a5;
    font-size: 7px;
    font-weight: 850;
    text-transform: uppercase;
}

.tournament-standings-preview__row > span:nth-child(2) {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: #edf7fa;
    font-weight: 800;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-standings-preview__row > span:nth-child(2) i {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--team-accent, #2877d8);
}

.tournament-standings-preview__row > strong {
    color: var(--tournaments-green);
    font-size: 9px;
}

.tournament-stat-shortcuts {
    padding: 11px;
}

.tournament-stat-shortcuts > header > i {
    color: #a0bdc7;
    font-size: 9px;
}

.tournament-stat-shortcuts > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 7px;
}

.tournament-stat-shortcuts button {
    min-width: 0;
    min-height: 55px;
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border: 1px solid rgba(102, 181, 199, 0.18);
    border-radius: 11px;
    color: #dcebf0;
    background: rgba(4, 27, 35, 0.58);
    font-size: 8px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.tournament-stat-shortcuts button > i:first-child {
    color: var(--tournaments-green);
    font-size: 17px;
}

.tournament-stat-shortcuts button > i:last-child {
    color: #82a6b3;
    font-size: 8px;
}

.tournament-overview-calendar,
.tournament-details-panel > .tournament-details__section,
.tournament-details-panel .tournament-groups > .tournament-details__section {
    padding: 11px;
    border-radius: 16px;
    background: rgba(5, 28, 37, 0.88);
}

.tournament-details-panel .tournament-details__section-heading {
    font-size: 13px;
}

.tournament-stage-heading {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 3px 2px;
}

.tournament-stage-heading > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(44, 240, 173, 0.32);
    border-radius: 11px;
    color: var(--tournaments-green);
    background: rgba(44, 240, 173, 0.08);
}

.tournament-stage-heading strong,
.tournament-stage-heading small {
    display: block;
}

.tournament-stage-heading strong {
    color: #f3fbfe;
    font-size: 14px;
}

.tournament-stage-heading small {
    margin-top: 2px;
    color: #819fab;
    font-size: 9px;
}

.tournament-details-panel .tournament-groups {
    gap: 9px;
}

.tournament-details-panel .tournament-standings {
    grid-template-columns: minmax(145px, 0.42fr) minmax(0, 1fr);
}

.tournament-details-panel .tournament-table {
    font-size: 10px;
}

.tournament-details-panel .tournament-table th,
.tournament-details-panel .tournament-table td {
    height: 39px;
    padding: 8px 6px;
}

.tournament-details-panel .tournament-table--teams th:first-child,
.tournament-details-panel .tournament-table--teams td:first-child {
    width: 29px;
}

.tournament-details-panel .tournament-table--stats {
    min-width: 430px;
}

.tournament-details-panel .tournament-table__team {
    gap: 5px;
    font-size: 9px;
}

.tournament-details-panel .tournament-bracket-panel {
    padding: 10px;
}

.tournament-details-panel .tournament-bracket__track {
    grid-auto-columns: minmax(205px, 230px);
    justify-content: start;
    gap: 31px;
}

.tournament-details-panel .tournament-bracket {
    scroll-snap-type: x proximity;
}

.tournament-details-panel .tournament-bracket__round {
    min-width: 205px;
    scroll-snap-align: start;
}

.tournament-stage-empty {
    min-height: 150px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 20px;
    text-align: center;
}

.tournament-stage-empty > span {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--tournaments-green);
    background: rgba(44, 240, 173, 0.1);
    font-size: 19px;
}

.tournament-stage-empty strong {
    color: #f2fafc;
    font-size: 13px;
}

.tournament-stage-empty p {
    max-width: 260px;
    margin: 0;
    color: #89a7b2;
    font-size: 9px;
    line-height: 1.4;
}

.tournament-stat-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--tournaments-line);
    border-radius: 14px;
    background: rgba(4, 27, 35, 0.74);
}

.tournament-stat-tabs button {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #8eaab5;
    background: transparent;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.tournament-stat-tabs button i {
    margin-right: 5px;
}

.tournament-stat-tabs button.is-active {
    border-color: rgba(44, 240, 173, 0.58);
    color: #eafff8;
    background: linear-gradient(120deg, rgba(17, 170, 120, 0.34), rgba(47, 158, 182, 0.2));
    box-shadow: 0 0 16px rgba(44, 240, 173, 0.1);
}

.tournament-stat-panel,
.tournament-stat-panel .tournament-leaderboard {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.tournament-stat-panel .tournament-leaderboard {
    border-radius: 16px;
}

.tournament-stat-panel .tournament-leaderboard__header {
    min-height: 44px;
    padding: 9px 11px;
}

.tournament-stat-panel .tournament-leaderboard__header > strong {
    font-size: 14px;
}

.tournament-stat-panel .tournament-leaderboard__columns,
.tournament-stat-panel .tournament-leaderboard__row {
    grid-template-columns: 27px minmax(0, 1.2fr) minmax(82px, 0.8fr) 35px;
    column-gap: 5px;
}

.tournament-stat-panel .tournament-leaderboard__columns {
    padding: 5px 9px;
    font-size: 7px;
}

.tournament-stat-panel .tournament-leaderboard__row {
    min-height: 48px;
    padding: 5px 9px;
}

.tournament-stat-panel .tournament-leaderboard__row.is-top-1 {
    background: linear-gradient(90deg, rgba(255, 193, 77, 0.08), transparent 42%);
}

.tournament-stat-panel .tournament-leaderboard__row.is-top-2 {
    background: linear-gradient(90deg, rgba(178, 202, 213, 0.06), transparent 42%);
}

.tournament-stat-panel .tournament-leaderboard__row.is-top-3 {
    background: linear-gradient(90deg, rgba(198, 128, 76, 0.06), transparent 42%);
}

.tournament-stat-panel .tournament-leaderboard__row.is-top-2 .tournament-leaderboard__rank {
    color: #b7cad2;
}

.tournament-stat-panel .tournament-leaderboard__row.is-top-3 .tournament-leaderboard__rank {
    color: #c98d66;
}

.tournament-stat-panel .tournament-leaderboard__avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
}

.tournament-stat-panel .tournament-leaderboard__club-logo {
    width: 24px;
    height: 24px;
    font-size: 16px;
}

.tournament-stat-panel .tournament-leaderboard__player,
.tournament-stat-panel .tournament-leaderboard__club {
    gap: 5px;
}

.tournament-stat-panel .tournament-leaderboard__player strong {
    font-size: 10px;
}

.tournament-stat-panel .tournament-leaderboard__club small {
    font-size: 8px;
}

.tournament-stat-panel .tournament-leaderboard__value {
    font-size: 14px;
}

.tournament-stat-banner {
    min-height: 83px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    padding: 12px 18px;
    overflow: hidden;
    color: #8fd3df;
    background:
        linear-gradient(90deg, rgba(3, 22, 29, 0.15), rgba(3, 24, 32, 0.82)),
        url("../img/tournaments/tournament-trophy-hero-v1.webp") center 30% / cover no-repeat;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
}

.tournament-stat-banner i {
    color: var(--tournaments-gold);
    font-size: 27px;
    filter: drop-shadow(0 0 10px rgba(255, 200, 87, 0.18));
}

.tournament-details-loading {
    display: grid;
    gap: 9px;
}

.tournament-details-loading span {
    height: 82px;
    border: 1px solid var(--tournaments-line);
    border-radius: 16px;
    background: linear-gradient(100deg, rgba(7, 33, 42, 0.82), rgba(24, 66, 73, 0.5), rgba(7, 33, 42, 0.82));
    background-size: 200% 100%;
    animation: tournament-skeleton 1.25s linear infinite;
}

@keyframes tournament-skeleton {
    to { background-position: -200% 0; }
}

@keyframes tournament-page-enter {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 370px) {
    .tournament-details-hero {
        min-height: 250px;
        padding-inline: 11px;
    }

    .tournament-details-hero__logo {
        width: 126px;
    }

    .tournament-details-page__back,
    .tournament-details-hero__actions > button {
        width: 37px;
        height: 37px;
    }

    .tournament-details-tabs button {
        padding-inline: 9px;
    }

    .tournament-standings-preview__row {
        grid-template-columns: 18px minmax(76px, 1fr) repeat(4, 20px) 25px;
        padding-inline: 5px;
    }

    .tournament-stat-panel .tournament-leaderboard__columns,
    .tournament-stat-panel .tournament-leaderboard__row {
        grid-template-columns: 24px minmax(0, 1fr) minmax(72px, 0.72fr) 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tournament-details-page,
    .tournament-details-loading span {
        animation: none;
    }

    .tournament-details-tabs,
    .tournament-bracket {
        scroll-behavior: auto;
    }
}

/* Tournament creation page */
body.is-tournament-create > header {
    min-height: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
}

body.is-tournament-create > header > .my-bot-logo,
body.is-tournament-create > header .profile-settings-btn,
body.is-tournament-create > header #teamNotificationsToggle {
    display: none !important;
}

body.is-tournament-create > header .header-actions,
body.is-tournament-create > header .header-utility-actions,
body.is-tournament-create > header #teamNotificationsCenter {
    width: 0;
    height: 0;
    padding: 0;
    overflow: visible;
}

.tournaments-page.is-create-open {
    width: min(100%, 430px);
    min-width: 0;
    max-width: 100%;
    gap: 0;
}

.tournaments-page.is-create-open > .tournaments-hero,
.tournaments-page.is-create-open > .tournaments-notice,
.tournaments-page.is-create-open > .tournament-invitations,
.tournaments-page.is-create-open > .tournaments-catalog,
.tournaments-page.is-create-open > .tournament-details-page {
    display: none !important;
}

.tournament-create-page {
    --create-line: rgba(104, 197, 207, 0.26);
    --create-surface: rgba(5, 31, 39, 0.91);
    --create-surface-soft: rgba(9, 42, 51, 0.78);
    width: 100%;
    min-width: 0;
    max-width: 430px;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    margin-inline: auto;
    padding: 0 0 4px;
    overflow: clip;
    color: var(--primary-white);
    animation: tournament-page-enter 0.24s ease both;
}

.tournament-create-page[hidden],
.tournaments-page:not(.is-create-open) > .tournament-create-page {
    display: none !important;
}

.tournament-create-hero {
    min-height: 252px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 9px;
    padding: 11px 13px 13px;
    overflow: hidden;
    border: 1px solid var(--create-line);
    border-radius: 0 0 25px 25px;
    background:
        linear-gradient(180deg, rgba(2, 18, 27, 0.16) 0%, rgba(2, 24, 32, 0.54) 52%, rgba(4, 25, 33, 0.98) 100%),
        linear-gradient(90deg, rgba(1, 17, 25, 0.9) 0%, rgba(1, 19, 27, 0.46) 57%, rgba(2, 20, 28, 0.2) 100%),
        url("../img/progress/focus-ball-v1.webp") 62% 46% / cover no-repeat;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
}

.tournament-create-hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 72px;
    background: linear-gradient(180deg, transparent, #061b23 95%);
    content: "";
    pointer-events: none;
}

.tournament-create-hero__topbar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 9px;
}

.tournament-create-hero__back,
.tournament-create-hero__notifications {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(122, 211, 220, 0.3);
    border-radius: 12px;
    color: #e8fbff;
    background: rgba(3, 28, 36, 0.54);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
    font-size: 15px;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tournament-create-hero__notifications {
    position: relative;
}

.tournament-create-hero__notifications span {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 5px;
    right: 5px;
    border-radius: 50%;
    background: #34e9ba;
    box-shadow: 0 0 9px rgba(52, 233, 186, 0.72);
}

.tournament-create-hero__logo {
    width: 146px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.tournament-create-hero__copy {
    width: min(73%, 290px);
    margin-top: auto;
}

.tournament-create-hero__copy .tournaments-eyebrow {
    font-size: 9px;
    letter-spacing: 0.16em;
}

.tournament-create-hero__copy h2 {
    margin: 4px 0 0;
    color: #f6fbff;
    font-size: clamp(27px, 7.5vw, 32px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.tournament-create-hero__copy p {
    margin: 6px 0 0;
    color: #aec5ce;
    font-size: 10px;
    line-height: 1.35;
}

.tournament-create-steps {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
}

.tournament-create-steps li {
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7999a5;
}

.tournament-create-steps li:not(:last-child)::after {
    height: 1px;
    position: absolute;
    right: 7px;
    left: calc(50% + 25px);
    background: rgba(121, 153, 165, 0.35);
    content: "";
}

.tournament-create-steps li.is-active:not(:last-child)::after {
    background: linear-gradient(90deg, #34e8b7, #36bce7);
}

.tournament-create-steps li > span {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(121, 153, 165, 0.55);
    border-radius: 50%;
    background: rgba(4, 28, 36, 0.78);
    font-size: 11px;
    font-weight: 900;
}

.tournament-create-steps li > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-create-steps li.is-active {
    color: #f1fffb;
}

.tournament-create-steps li.is-active > span {
    border-color: #35e9b9;
    color: #041f1a;
    background: #35e9b9;
    box-shadow: 0 0 15px rgba(53, 233, 185, 0.23);
}

.tournament-create-form {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 0 8px 64px;
}

.tournament-create-card {
    min-width: 0;
    margin: 0;
    padding: 11px;
    border: 1px solid var(--create-line);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(43, 211, 181, 0.07), transparent 150px),
        linear-gradient(145deg, var(--create-surface), rgba(4, 27, 35, 0.94));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 12px 28px rgba(0, 0, 0, 0.14);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.tournament-create-card__header,
.tournament-team-picker__heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.tournament-create-card__header {
    margin-bottom: 9px;
}

.tournament-create-card__icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 233, 186, 0.34);
    border-radius: 10px;
    color: #39e8ba;
    background: rgba(20, 184, 140, 0.12);
    font-size: 16px;
}

.tournament-create-card__header h3,
.tournament-team-picker__heading h3 {
    margin: 0;
    color: #f4fbff;
    font-size: 15px;
    line-height: 1.15;
}

.tournament-create-card__header p,
.tournament-team-picker__heading p {
    margin: 2px 0 0;
    color: #86a5b1;
    font-size: 9px;
    line-height: 1.3;
}

.tournament-create-page .tournament-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tournament-create-page .tournament-form .form-group {
    gap: 5px;
}

.tournament-create-page .tournament-form label,
.tournament-create-page .tournament-format-picker legend {
    color: #c3d8df;
    font-size: 10px;
    font-weight: 800;
}

.tournament-create-page .tournament-field-label > small {
    padding: 2px 6px;
    border: 1px solid rgba(124, 166, 177, 0.22);
    border-radius: 999px;
    color: #7f9aa4;
    font-size: 8px;
    font-weight: 700;
}

.tournament-create-page .tournament-form .form-control,
.tournament-create-page .tournament-form .custom-select,
.tournament-create-page .tournament-form input.custom-date-input {
    min-height: 38px;
    padding: 7px 10px;
    border-color: rgba(114, 178, 190, 0.28);
    border-radius: 11px;
    background: rgba(4, 25, 33, 0.8);
    font-size: 11px;
}

.tournament-create-page .tournament-form .custom-dropdown,
.tournament-create-page .tournament-form .custom-date-picker {
    min-height: 38px;
    border-radius: 11px;
}

.tournament-create-page .tournament-form textarea.form-control {
    min-height: 64px;
    padding-left: 34px;
    padding-bottom: 23px;
    resize: vertical;
}

.tournament-description-field {
    position: relative;
}

.tournament-ui-icon {
    width: 18px;
    height: 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tournament-field-label {
    min-width: 0;
    min-height: 18px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.tournament-field-label > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-field-label > small {
    flex: 0 0 auto;
    font-style: normal;
    line-height: 1.2;
}

.tournament-field-control {
    min-width: 0;
    position: relative;
}

.tournament-field-control .custom-dropdown,
.tournament-field-control .custom-date-picker {
    width: 100%;
}

.tournament-field-control--select .custom-dropdown-trigger {
    padding-left: 34px;
    text-align: left;
}

.tournament-field-control__icon {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 3;
    translate: 0 -50%;
    color: #78a8b5;
    pointer-events: none;
}

.tournament-field-control__icon .tournament-ui-icon {
    width: 15px;
    height: 15px;
}

.tournament-description-field__icon {
    position: absolute;
    top: 33px;
    left: 11px;
    z-index: 2;
    color: #7296a2;
    pointer-events: none;
}

.tournament-description-field__icon .tournament-ui-icon {
    width: 15px;
    height: 15px;
}

.tournament-description-field__counter {
    position: absolute;
    right: 10px;
    bottom: 7px;
    color: #718e99;
    font-size: 9px;
    pointer-events: none;
}

.tournament-format-option__selector {
    width: 13px;
    height: 13px;
    position: absolute;
    top: 7px;
    right: 7px;
    border: 1px solid rgba(129, 164, 174, .65);
    border-radius: 50%;
    background: rgba(2, 21, 29, .7);
}

.tournament-format-option.is-selected .tournament-format-option__selector {
    border: 3px solid #2ce5b2;
    background: #edfef8;
    box-shadow: 0 0 0 2px rgba(44, 229, 178, .12);
}

.tournament-create-page .custom-date-icon {
    right: 10px;
    color: #79aab6;
}

.tournament-create-page .custom-date-icon svg {
    width: 15px;
    height: 15px;
}

.tournament-create-page .custom-date-trigger {
    min-height: 38px;
    padding: 7px 31px 7px 10px;
    border-radius: 11px;
    font-size: 10px;
}

.tournament-create-page .tournament-format-picker__options {
    gap: 6px;
}

.tournament-create-page .tournament-format-option {
    min-height: 82px;
    padding: 7px 6px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    border-color: rgba(114, 178, 190, 0.25);
    border-radius: 12px;
    background: rgba(4, 27, 35, 0.72);
}

.tournament-create-page .tournament-format-option.is-selected {
    border-color: #2de8b6;
    background: linear-gradient(145deg, rgba(11, 109, 83, 0.33), rgba(8, 48, 52, 0.78));
    box-shadow: inset 0 0 18px rgba(41, 230, 180, 0.05);
}

.tournament-create-page .tournament-format-option__icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 8px;
    font-size: 12px;
}

.tournament-create-page .tournament-format-option > span:last-child {
    width: 100%;
}

.tournament-create-page .tournament-format-option strong {
    min-height: 22px;
    display: flex;
    align-items: flex-end;
    font-size: 9px;
    line-height: 1.15;
}

.tournament-create-page .tournament-format-option small {
    margin-top: 2px;
    color: #7998a4;
    font-size: 7.5px;
    line-height: 1.25;
}

.tournament-create-page .tournament-team-picker {
    margin-top: 0;
}

.tournament-create-page .tournament-team-picker__heading strong {
    justify-self: end;
    padding: 5px 8px;
    border: 1px solid rgba(113, 180, 191, 0.22);
    color: #c8dbe1;
    background: rgba(7, 42, 51, 0.76);
    font-size: 9px;
    white-space: nowrap;
}

.tournament-create-page .tournament-team-search {
    height: 37px;
    margin: 9px 0 7px;
    border-color: rgba(114, 178, 190, 0.28);
    border-radius: 11px;
    background: rgba(4, 25, 33, 0.8);
    font-size: 11px;
}

.tournament-create-page .tournament-team-search > .tournament-ui-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: #73a0ae;
}

.tournament-create-page .tournament-team-picker__list {
    max-height: 222px;
    grid-template-columns: 1fr;
    gap: 6px;
    padding-right: 2px;
}

.tournament-create-page .tournament-team-option {
    min-height: 44px;
    padding: 5px 7px;
    gap: 8px;
    border-color: rgba(114, 178, 190, 0.22);
    border-radius: 11px;
    background: rgba(4, 27, 35, 0.62);
}

.tournament-create-page .tournament-team-option input {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.tournament-create-page .tournament-team-option__badge {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
    font-size: 10px;
}

.tournament-create-page .tournament-team-option__copy {
    flex: 1 1 auto;
}

.tournament-create-page .tournament-team-option__copy strong {
    font-size: 11px;
}

.tournament-create-page .tournament-team-option__copy small {
    margin-top: 2px;
    font-size: 9px;
}

.tournament-team-option__chevron {
    flex: 0 0 auto;
    color: #688893;
    font-size: 9px;
}

.tournament-create-page .tournament-form__error {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid rgba(248, 113, 113, 0.32);
    border-radius: 11px;
    background: rgba(127, 29, 29, 0.12);
    font-size: 10px;
}

#tournamentCreateModal .tournament-create-actions {
    height: 58px;
    position: sticky;
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 12;
    margin: 2px -8px -64px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.35fr);
    grid-template-rows: 44px;
    gap: 8px;
    border-top: 1px solid rgba(93, 182, 194, 0.2);
    background: rgba(3, 22, 29, 0.94);
    box-shadow: 0 -14px 32px rgba(0, 0, 0, 0.23);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

#tournamentCreateModal .tournament-create-actions .btn {
    height: 44px;
    min-width: 0;
    min-height: 44px;
    align-self: center;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
}

#tournamentCreateModal .tournament-create-actions .btn-primary {
    border-color: rgba(74, 239, 197, 0.62);
    color: #04241f;
    background: linear-gradient(110deg, #25e4ae, #40cfda 58%, #69b9f6);
    box-shadow: 0 10px 25px rgba(35, 220, 174, 0.18);
}

@media (min-width: 769px) {
    #tournamentCreateModal .tournament-create-actions {
        bottom: 10px;
    }
}

@media (max-width: 370px) {
    .tournament-create-hero {
        min-height: 246px;
        padding-inline: 11px;
    }

    .tournament-create-hero__logo {
        width: 132px;
    }

    .tournament-create-hero__copy {
        width: 76%;
    }

    .tournament-create-steps li {
        gap: 4px;
    }

    .tournament-create-steps li > strong {
        font-size: 8px;
    }

    .tournament-create-page .tournament-format-option {
        min-height: 80px;
        padding-inline: 5px;
    }

    .tournament-create-page .tournament-format-option strong {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tournament-create-page {
        animation: none;
    }
}

/* Tournament lifecycle: real form steps and organizer controls. */
.tournament-create-form [data-tournament-form-step][hidden] {
    display: none !important;
}

.tournament-create-steps li.is-complete {
    color: #7edbc4;
}

.tournament-create-steps li.is-complete > span {
    border-color: rgba(53, 233, 185, .65);
    color: #05271f;
    background: #35e9b9;
}

.tournament-confirmation__summary {
    display: grid;
    gap: 7px;
}

.tournament-confirmation__summary > div {
    min-width: 0;
    padding: 8px 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid rgba(112, 174, 187, .2);
    border-radius: 10px;
    background: rgba(3, 24, 32, .62);
}

.tournament-confirmation__summary span {
    color: #789aa6;
    font-size: 9px;
}

.tournament-confirmation__summary strong {
    min-width: 0;
    overflow: hidden;
    color: #f2fbff;
    font-size: 10px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-confirmation__summary > p {
    margin: 1px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tournament-confirmation__summary > p span {
    padding: 4px 7px;
    border: 1px solid rgba(47, 224, 181, .22);
    border-radius: 999px;
    color: #a9d8cd;
    background: rgba(24, 138, 111, .1);
}

.tournament-confirmation__hint {
    margin: 9px 0 0;
    padding: 8px 9px;
    display: flex;
    gap: 7px;
    border-radius: 10px;
    color: #84a7b2;
    background: rgba(41, 134, 159, .1);
    font-size: 9px;
    line-height: 1.4;
}

.tournament-control-center {
    margin-bottom: 9px;
    padding: 10px;
    border: 1px solid rgba(52, 232, 184, .32);
    border-radius: 15px;
    background:
        radial-gradient(circle at 100% 0, rgba(53, 233, 185, .09), transparent 150px),
        rgba(4, 28, 36, .88);
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.tournament-control-center__header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.tournament-control-center__header > span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #3ce7b9;
    background: rgba(32, 194, 151, .13);
}

.tournament-control-center__header strong,
.tournament-control-center__header small {
    display: block;
}

.tournament-control-center__header strong {
    color: #f4fbff;
    font-size: 12px;
}

.tournament-control-center__header small {
    margin-top: 2px;
    color: #829faa;
    font-size: 8.5px;
    line-height: 1.35;
}

.tournament-lifecycle-status {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 4px 7px;
    border: 1px solid rgba(57, 224, 181, .28);
    border-radius: 999px;
    color: #73e6c8;
    background: rgba(24, 154, 120, .1);
    font-size: 8px;
    font-style: normal;
}

.tournament-participant-summary {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.tournament-participant-summary span {
    padding: 6px 4px;
    border: 1px solid rgba(113, 169, 181, .17);
    border-radius: 9px;
    color: #7999a4;
    background: rgba(3, 22, 29, .52);
    font-size: 7.5px;
    text-align: center;
}

.tournament-participant-summary b {
    display: block;
    color: #effbff;
    font-size: 11px;
}

.tournament-participant-list {
    margin-top: 7px;
    display: grid;
    gap: 5px;
}

.tournament-participant-row {
    min-width: 0;
    min-height: 42px;
    padding: 5px 6px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(110, 169, 181, .17);
    border-radius: 10px;
    background: rgba(3, 23, 31, .58);
}

.tournament-participant-row__badge {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #eafffa;
    background: linear-gradient(145deg, var(--team-accent, #1ebc96), rgba(18, 63, 78, .9));
    font-size: 9px;
    font-weight: 900;
}

.tournament-participant-row > span:nth-child(2) {
    min-width: 0;
}

.tournament-participant-row strong,
.tournament-participant-row small {
    display: block;
}

.tournament-participant-row strong {
    overflow: hidden;
    color: #edf8fb;
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tournament-participant-row small {
    margin-top: 1px;
    color: #6f909b;
    font-size: 7.5px;
}

.tournament-participant-row > em {
    padding: 3px 6px;
    border-radius: 999px;
    color: #8faab3;
    background: rgba(91, 125, 136, .12);
    font-size: 7.5px;
    font-style: normal;
    white-space: nowrap;
}

.tournament-participant-row > em.is-accepted { color: #52e1b9; background: rgba(34, 173, 132, .12); }
.tournament-participant-row > em.is-rejected { color: #ff8c96; background: rgba(198, 63, 79, .12); }

.tournament-participant-row__actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.tournament-participant-row__actions button {
    min-height: 25px;
    padding: 0 8px;
    border: 1px solid rgba(58, 225, 183, .28);
    border-radius: 8px;
    color: #80e5ca;
    background: rgba(22, 130, 104, .1);
    font: inherit;
    font-size: 8px;
    white-space: nowrap;
}

.tournament-participant-row__actions button.is-danger {
    color: #ff8d99;
    border-color: rgba(244, 92, 111, .28);
    background: rgba(151, 38, 54, .1);
}

.tournament-participant-row__actions button.tournament-participant-row__remove {
    width: 25px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    font-size: 10px;
}

.tournament-workflow-actions {
    margin-top: 8px;
    display: grid;
    gap: 6px;
}

.tournament-workflow-actions button,
.tournament-manual-calendar form > button {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(54, 231, 185, .45);
    border-radius: 10px;
    color: #062720;
    background: linear-gradient(110deg, #2be2ae, #4cc9dd);
    font: inherit;
    font-size: 9.5px;
    font-weight: 900;
}

.tournament-workflow-actions button:not(.is-primary):not(.is-danger) {
    color: #b7d2dc;
    border-color: rgba(109, 174, 190, .3);
    background: rgba(12, 42, 51, .72);
}

.tournament-workflow-actions button.is-danger {
    color: #ff9da7;
    border-color: rgba(244, 92, 111, .35);
    background: rgba(125, 29, 43, .16);
}

.tournament-manual-calendar {
    margin-top: 7px;
    border-top: 1px solid rgba(104, 165, 177, .16);
}

.tournament-manual-calendar > summary {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #a9c2cb;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.tournament-manual-calendar > summary::-webkit-details-marker { display: none; }
.tournament-manual-calendar[open] > summary > i { rotate: 180deg; }

.tournament-manual-calendar form {
    padding-bottom: 2px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.tournament-manual-calendar label {
    min-width: 0;
    display: grid;
    gap: 3px;
    color: #7798a4;
    font-size: 8px;
}

.tournament-manual-calendar input,
.tournament-manual-calendar select {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid rgba(108, 174, 187, .25);
    border-radius: 9px;
    color: #eaf7fa;
    background: rgba(2, 21, 28, .8);
    font: inherit;
    font-size: 9px;
}

.tournament-manual-calendar form > p,
.tournament-manual-calendar form > button {
    grid-column: 1 / -1;
}

.tournament-manual-calendar form > p {
    margin: 0;
    padding: 6px 8px;
    border-radius: 8px;
    color: #ff9ca6;
    background: rgba(139, 34, 49, .12);
    font-size: 8px;
}
.tournament-workflow-reason { width:100%; color:#d4c4a6; font-size:13px; line-height:1.6; margin:8px 0; }

/* Direct access to participant invitations from the organizer center. */
.tournament-invite-teams-button {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(52, 232, 184, .5);
    border-radius: 10px;
    background: rgba(32, 194, 151, .15);
    color: #3ce7b9;
    font-size: 14px;
    cursor: pointer;
}
.tournament-invite-teams-button:hover {
    background: rgba(32, 194, 151, .28);
}
.tournament-invite-teams-button:focus-visible {
    outline: 2px solid #3ce7b9;
    outline-offset: 3px;
}
