.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.card {
    padding: 20px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
    border-color: rgba(24, 86, 163, 0.28);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.muted-panel {
    background: rgba(238, 243, 251, 0.72);
}

.card h2,
.card h3 {
    margin-bottom: 10px;
}

.tournament-list-section {
    position: relative;
}

.tournament-list-section .section-head h2 {
    position: relative;
    padding-left: 14px;
}

.tournament-list-section .section-head h2::before {
    position: absolute;
    top: 0.22em;
    bottom: 0.2em;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--accent);
    content: "";
}

.tournament-grid {
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.tournament-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    overflow: hidden;
    border-color: rgba(154, 38, 170, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 240, 229, 0.78), rgba(255, 255, 255, 0) 46%),
        var(--panel);
}

.tournament-card__title {
    min-height: calc(1.25em * 3);
    line-height: 1.25;
}

.tournament-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--accent-dark);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow-wrap: anywhere;
}

.tournament-card:hover {
    border-color: rgba(154, 38, 170, 0.36);
}

.tournament-card:hover .tournament-card__title a {
    color: var(--brand);
}

.tournament-card .badge {
    align-self: flex-start;
    margin-top: auto;
    background: var(--brand-soft);
    color: var(--accent-dark);
    box-shadow: inset 0 0 0 1px rgba(154, 38, 170, 0.16);
}

.tournament-card.muted-panel {
    border-color: rgba(111, 105, 97, 0.18);
    background:
        linear-gradient(135deg, rgba(238, 243, 251, 0.88), rgba(255, 255, 255, 0) 48%),
        var(--panel);
}

.tournament-card.muted-panel .tournament-card__title a {
    color: var(--brand-dark);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 700;
    transition: background-color 160ms ease, color 160ms ease;
}

.card:hover .badge {
    background: #f2d8ff;
    color: var(--accent-dark);
}

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

.ui-icon {
    display: inline-block;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: -0.22em;
}

.messages {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.message {
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--brand-soft);
    border: 1px solid var(--line);
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.message:hover {
    box-shadow: 0 12px 28px rgba(24, 86, 163, 0.1);
    transform: translateY(-1px);
}

.message-error {
    background: #fcecff;
}
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--success);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.button-link:hover {
    background: var(--success-dark);
    transform: translateY(-1px);
}

a.button-secondary {
    background: #fff;
    color: var(--text);
}

a.button-secondary:hover {
    background: #f0f3f1;
}

.button-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.button-secondary:hover {
    background: #f0f3f1;
    border-color: rgba(24, 86, 163, 0.28);
    box-shadow: 0 10px 22px rgba(24, 86, 163, 0.09);
}

.action-stack {
    display: grid;
    gap: 10px;
    max-width: 320px;
    margin: 20px 0;
}

.nav-form {
    margin: 0;
}

.nav-form button {
    min-height: auto;
    border-radius: 999px;
    padding: 8px 11px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
}

.nav-form button:hover {
    background: var(--brand-soft);
    color: var(--brand);
    transform: none;
}
.plain-list {
    padding-left: 20px;
}

.tournaments-page {
    display: grid;
    gap: 36px;
}

.tournaments-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    gap: 28px;
    margin: -34px calc(clamp(16px, 4vw, 40px) * -1) 0;
    padding: 52px clamp(28px, 6vw, 72px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 78% 52%, rgba(154, 38, 170, 0.58), rgba(154, 38, 170, 0) 27%),
        linear-gradient(135deg, #111217 0%, #191620 60%, #26142a 100%);
    box-shadow: 0 32px 80px rgba(33, 31, 28, 0.2);
    color: #fff;
}

.tournaments-hero h1 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(42px, 6vw, 68px);
}

.tournaments-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 20px;
    font-weight: 800;
}

.tournaments-hero img {
    width: min(220px, 100%);
    justify-self: center;
    filter: drop-shadow(0 24px 44px rgba(154, 38, 170, 0.4));
}

.tournaments-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.tournaments-filter-panel {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 96px;
}

.tournaments-filter-panel form,
.tournament-promo-panel {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(33, 31, 28, 0.07);
}

.filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-head h2,
.tournament-promo-panel h2 {
    margin: 0;
    font-size: 22px;
}

.filter-head a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.tournaments-filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.tournaments-filter-panel input,
.tournaments-filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 600;
}

.tournaments-filter-panel button {
    min-height: 46px;
}

.tournament-promo-panel {
    position: relative;
    min-height: 220px;
    align-content: end;
    overflow: hidden;
    border-color: rgba(154, 38, 170, 0.24);
    background:
        linear-gradient(90deg, rgba(9, 5, 24, 0.96) 0%, rgba(19, 10, 40, 0.78) 58%, rgba(19, 10, 40, 0.4) 100%),
        url("../img/tournament-promo-bg.webp") 63% center / cover no-repeat;
    color: #fff;
}

.tournament-promo-panel__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b832d2, #8f22b4);
    box-shadow: 0 14px 28px rgba(154, 38, 170, 0.28);
}

.tournament-promo-panel__icon .ui-icon {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
}

.tournament-promo-panel h2 {
    max-width: 210px;
    color: #fff;
    font-size: 24px;
    line-height: 1.12;
}

.tournament-promo-panel p {
    max-width: 215px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.tournament-promo-panel a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: start;
    max-width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #b832d2, #9b27bd);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(154, 38, 170, 0.26);
}

.tournament-promo-panel a .ui-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.tournaments-main {
    display: grid;
    gap: 24px;
}

.tournament-tabs--list {
    align-items: center;
    border: 0;
}

.tournament-tabs--list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(33, 31, 28, 0.04);
}

.tournament-tabs--list a.active,
.tournament-tabs--list a:hover {
    border-color: rgba(154, 38, 170, 0.32);
    background: #f7eaff;
    color: var(--brand);
}

.tournament-tabs--list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #efe6f4;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
}

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

.tournament-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tournament-pagination__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(226, 221, 213, 0.96);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.tournament-pagination__control:hover {
    border-color: rgba(154, 38, 170, 0.26);
    background: #fff;
    color: var(--brand);
}

.tournament-page-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.tournament-page-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.tournament-page-links a.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

.tournament-pagination .disabled {
    opacity: 0.45;
    pointer-events: none;
    transform: none;
}

.tournament-list-card {
    display: grid;
    gap: 14px;
    min-height: 340px;
    padding: 22px;
    border: 1px solid rgba(226, 221, 213, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(33, 31, 28, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tournament-list-card:hover {
    border-color: rgba(154, 38, 170, 0.32);
    box-shadow: 0 24px 58px rgba(154, 38, 170, 0.12);
    transform: translateY(-3px);
}

.tournament-list-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
}

.status-pill--open {
    background: #e7f8eb;
    color: #24783f;
}

.status-pill--closed,
.status-pill--waiting {
    background: #fff4d7;
    color: #8a6100;
}

.status-pill--finished {
    background: #e5f2ff;
    color: #236aa6;
}

.status-pill--draft {
    background: #f2f0ee;
    color: var(--muted);
}

.tournament-list-card h2 {
    margin: 0;
    min-height: 3.4em;
    font-size: 24px;
    line-height: 1.13;
}

.tournament-list-card h2 a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--brand);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.tournament-card-meta {
    display: grid;
    gap: 10px;
    margin: 0;
}

.tournament-card-meta div {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.tournament-card-meta dt {
    display: flex;
    align-items: center;
    min-height: 20px;
}

.tournament-card-meta dt span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.tournament-card-meta .ui-icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.tournament-card-meta dd {
    min-width: 0;
    margin: 0;
    color: #342f2a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.tournament-card-progress {
    display: grid;
    gap: 8px;
    margin-top: auto;
    color: #342f2a;
    font-size: 14px;
    font-weight: 800;
}

.tournament-card-progress span {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece8ef;
}

.tournament-card-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8e24aa, #b632c8);
}

.tournament-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid rgba(154, 38, 170, 0.3);
    border-radius: 8px;
    color: var(--brand);
    font-weight: 900;
    text-decoration: none;
}

.tournament-card-button:hover {
    background: var(--brand);
    color: #fff;
}

.tournament-empty-state {
    grid-column: 1 / -1;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.tournament-empty-state h2 {
    margin-bottom: 8px;
}

.tournament-empty-state p {
    margin: 0;
    color: var(--muted);
}

.tournament-detail {
    display: grid;
    gap: 28px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--brand);
}

.tournament-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 28px;
    align-items: start;
    overflow: hidden;
    padding: clamp(24px, 5vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 38%, rgba(154, 38, 170, 0.58), rgba(154, 38, 170, 0) 35%),
        radial-gradient(circle at 34% 90%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 24%),
        linear-gradient(135deg, #111217 0%, #171620 54%, #211325 100%);
    box-shadow: 0 32px 80px rgba(33, 31, 28, 0.2);
    color: #fff;
}

.tournament-hero::before {
    position: absolute;
    inset: -20% -8% auto auto;
    width: 56%;
    height: 88%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    transform: rotate(-12deg);
}

.tournament-hero::after {
    position: absolute;
    right: 22%;
    bottom: -45%;
    width: 62%;
    height: 80%;
    border: 1px dashed rgba(154, 38, 170, 0.32);
    border-radius: 50%;
    content: "";
    transform: rotate(-18deg);
}

.tournament-hero__main {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tournament-hero h1 {
    max-width: 760px;
    margin-top: 14px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    overflow-wrap: anywhere;
}

.tournament-hero .lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.tournament-hero__facts {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.tournament-hero__facts span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tournament-hero__facts .ui-icon {
    width: 22px;
    height: 22px;
}

.tournament-hero__logo {
    position: relative;
    z-index: 1;
    align-self: center;
    width: min(230px, 100%);
    justify-self: center;
    filter: drop-shadow(0 24px 44px rgba(154, 38, 170, 0.34));
}

.tournament-action-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    grid-column: 1 / 2;
    align-self: end;
    max-width: 360px;
    margin-top: 18px;
}

.tournament-action-panel .form {
    margin: 0;
}

.tournament-action-panel button {
    width: 100%;
}

.tournament-progress-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-column: 1 / -1;
    gap: 16px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.tournament-progress-panel__top {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.tournament-progress-panel__top > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 12px;
    min-width: 0;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.ui-icon--hero-stat {
    grid-row: 1 / 3;
    align-self: start;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    filter: drop-shadow(0 0 14px rgba(211, 71, 233, 0.24));
}

.tournament-progress-panel__top > div:last-child {
    border-right: 0;
}

.tournament-progress-panel strong {
    color: #fff;
    font-size: 22px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.tournament-progress-panel span {
    color: rgba(255, 255, 255, 0.66);
}

.tournament-progress {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.tournament-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a326bd, #d347e9);
}

.tournament-result-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.11);
    color: rgba(255, 255, 255, 0.72);
}

.tournament-result-strip strong {
    font-size: 16px;
}

.tournament-progress-panel__bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 14px;
}

.tournament-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--line);
}

.tournament-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 3px solid transparent;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.tournament-tabs a.active,
.tournament-tabs a:hover {
    border-bottom-color: var(--brand);
    color: var(--brand);
}

.tournament-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.tournament-main-column {
    display: grid;
    gap: 18px;
}

.tournament-info-block {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(33, 31, 28, 0.07);
}

.tournament-info-block .section-head {
    margin-bottom: 0;
}

.tournament-info-block h2 {
    margin-bottom: 0;
}

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

.tournament-facts div {
    display: grid;
    gap: 10px;
    min-height: 116px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.tournament-facts dt {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.tournament-facts dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.tournament-facts a,
.participant-row a,
.tournament-side-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.tournament-facts a:hover,
.participant-row a:hover {
    color: var(--brand);
}

.tournament-description {
    color: #37322d;
}

.tournament-description p:last-child {
    margin-bottom: 0;
}

.tournament-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 98px;
}

.tournament-side-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(33, 31, 28, 0.07);
}

.tournament-side-card h2 {
    margin: 0;
    font-size: 22px;
}

.tournament-side-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9fbf1;
    color: #137a45;
    font-size: 13px;
    font-weight: 800;
}

.status-dot::before {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.status-dot.closed {
    background: #f2f0ee;
    color: var(--muted);
}

.tournament-registration-meter {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 22px;
    align-items: center;
}

.tournament-registration-meter strong {
    display: block;
    margin-bottom: 4px;
    font-size: 26px;
}

.tournament-registration-meter span {
    color: var(--muted);
}

.tournament-ring {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 58%, transparent 60%),
        conic-gradient(var(--brand) var(--value), #ece8ef 0);
}

.tournament-ring span {
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.tournament-ring small {
    margin-top: -28px;
    color: var(--muted);
    font-weight: 700;
}

.tournament-sidebar-facts {
    display: grid;
    gap: 10px;
    margin: 0;
}

.tournament-sidebar-facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.tournament-sidebar-facts dt {
    color: var(--muted);
}

.tournament-sidebar-facts dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.organizer {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
}

.organizer img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.organizer span {
    display: block;
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.check-list .ui-icon {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.participant-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.participant-list > .muted {
    margin: 0;
    padding: 16px;
}

.participant-row {
    display: grid;
    grid-template-columns: 44px minmax(260px, 1fr) 92px 150px;
    gap: 14px;
    align-items: center;
    min-height: 54px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.participant-row:last-child {
    border-bottom: 0;
}

.participant-row:hover {
    background: rgba(24, 86, 163, 0.035);
}

.participant-row__position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
}

.participant-row__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: anywhere;
}

.participant-row__name .badge {
    margin-left: 8px;
}

.participant-row__meta {
    min-width: 0;
    color: var(--muted);
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.participant-row__meta:last-child {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .tournaments-hero,
    .tournaments-layout {
        grid-template-columns: 1fr;
    }

    .tournaments-filter-panel {
        position: static;
    }

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

    .tournament-hero,
    .tournament-content-grid {
        grid-template-columns: 1fr;
    }

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

    .tournament-action-panel {
        grid-column: auto;
    }

    .tournament-sidebar {
        position: static;
    }
}

@media (max-width: 620px) {
    .tournaments-page {
        gap: 24px;
    }

    .tournaments-hero {
        padding: 36px 22px;
        border-radius: 18px;
    }

    .tournaments-hero img {
        width: 150px;
    }

    .tournament-tabs--list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tournament-tabs--list a {
        justify-content: center;
        padding: 0 12px;
    }

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

    .tournament-list-card {
        min-height: auto;
    }

    .tournament-list-card h2 {
        min-height: 0;
        font-size: 22px;
    }

    .tournament-hero {
        border-radius: 18px;
    }

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

    .tournament-progress-panel__top > div {
        grid-template-columns: 34px minmax(0, 1fr);
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
        padding: 0 0 12px;
    }

    .tournament-progress-panel__top > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .tournament-progress-panel__bottom,
    .tournament-sidebar-facts div {
        flex-direction: column;
    }

    .tournament-tabs a {
        padding: 10px 12px;
    }

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

    .participant-row {
        grid-template-columns: 1fr;
    }

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

    .participant-row__meta {
        text-align: left;
        white-space: normal;
    }

    .participant-row__name .badge {
        margin: 6px 0 0;
    }
}

.auth-card {
    max-width: 560px;
    margin: 0 auto;
}

.auth-card:hover {
    transform: none;
}

.auth-title {
    margin: 14px 0 10px;
    font-size: clamp(30px, 6vw, 44px);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.auth-copy {
    max-width: 460px;
    margin-bottom: 0;
    color: var(--muted);
}

.auth-card .form {
    margin-top: 18px;
}

.auth-card .errorlist {
    margin: 0;
    padding-left: 18px;
    color: var(--accent-dark);
    font-size: 14px;
}
