.admin-empty {
    color: var(--muted);
    line-height: 1.6;
}

.tournament-sections {
    display: grid;
    gap: 22px;
}

.tournament-time-zone {
    margin-top: 16px;
}

.tournament-list {
    display: grid;
    gap: 16px;
}

.tournament-card {
    display: grid;
    gap: 12px;
    padding: 20px 22px;
    border-radius: var(--radius-md, 18px);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.tournament-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.tournament-card.is-live {
    border-color: var(--accent);
}

.tournament-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 0.88rem;
}

.tournament-card-type {
    color: var(--muted);
}

.tournament-card-clock {
    margin-left: auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tournament-card h3 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.tournament-card-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.tournament-card-when {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin: 0;
}

.tournament-card-when div {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.tournament-card-when .is-past {
    opacity: 0.6;
}

.tournament-card-when dt {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tournament-card-when dd {
    margin: 2px 0 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tournament-card-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.tournament-card-prize {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #f1c94a;
    background: linear-gradient(135deg, rgba(241, 201, 74, 0.22), rgba(255, 140, 66, 0.1));
    font-weight: 700;
}

.tournament-card-prize strong {
    margin-right: 6px;
    color: #f1c94a;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.tournament-card-prize small {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    font-weight: 400;
    opacity: 0.75;
}

/* A button look-alike, so it is clear on a phone that the whole card opens the tournament. */
.tournament-card-enter {
    display: block;
    padding: 12px 20px;
    border-radius: 999px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

@media (min-width: 700px) {
    .tournament-card-enter {
        justify-self: end;
        min-width: 170px;
    }
}

.tournament-card-me {
    font-size: 0.92rem;
    font-weight: 600;
}

.tournament-card-me.is-in { color: #3fc6a6; }
.tournament-card-me.is-none { color: var(--muted); }
.tournament-card-me.is-bad { color: #ef4444; }
.tournament-card-me.is-warn { color: #eab308; }

@media (max-width: 560px) {
    .tournament-sections .legal-section {
        padding: 16px;
    }

    .tournament-card {
        padding: 16px;
    }
}

.tournament-card-mid { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tournament-card-mid-text { display: grid; gap: 8px; min-width: 0; }
/* The banner takes the free space beside the name, description and facts, centered, as high as that text. */
.tournament-card-banner { position: relative; flex: 1 1 0; min-width: 160px; max-width: 580px; min-height: 64px; margin-inline: auto; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); }
.tournament-card-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .tournament-card-mid { flex-direction: column; } .tournament-card-banner { flex: none; width: 100%; max-width: none; height: 110px; margin-inline: 0; } }
.tournaments-hero .tournament-time-zone { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; text-align: center; }
.tournament-card-me.is-in, .tournament-card-me.is-none { padding: 6px 10px; border-radius: 10px; }
.tournament-card-me.is-in { background: rgba(63, 198, 166, 0.12); }
.tournament-card-me.is-none { background: rgba(128, 128, 128, 0.1); }

/* an administrator with appeals waiting */
#admin-enter-link.has-appeals {
    border-color: #e6b422;
    color: #ffd666;
    font-weight: 700;
}

/* Running tournaments (live, registration, coming soon) against finished ones. */
.tournament-section { border-left: 5px solid var(--line); }
.tournament-section.is-live { border-left-color: #ef4444; }
.tournament-section.is-registration { border-left-color: #3fc6a6; }
.tournament-section.is-upcoming { border-left-color: #6c8cff; }
.tournament-section.is-pending { border-left-color: #eab308; }
.tournament-section.is-finished { border-left-color: #7b7f95; }
.tournament-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 14px; }
.tournament-section-head h2 { margin: 0; }
.tournament-section-hint { color: var(--muted); font-size: 0.92rem; }
.tournament-section.is-done { background: transparent; box-shadow: none; border-top: 1px dashed var(--line); border-right: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.tournament-section.is-done .tournament-section-head h2 { color: var(--muted); font-size: 1.2rem; }
.tournament-list.is-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.tournament-list.is-grid > .tournament-card:not(.is-compact) { grid-column: 1 / -1; }
.tournament-card.is-compact { padding: 14px 18px; gap: 8px; background: transparent; opacity: 0.78; filter: grayscale(0.55); }
.tournament-card.is-compact:hover { opacity: 1; filter: none; }
.tournament-card.is-compact h3 { font-size: 1.1rem; }
.tournament-card.is-compact .tournament-card-banner,
.tournament-card.is-compact .tournament-card-desc { display: none; }
.tournament-card.is-compact .tournament-card-enter { background: none; border: 1px solid var(--line); color: var(--muted); padding: 8px 16px; }
.tournament-section.is-live .tournament-card { box-shadow: 0 0 0 1px #ef4444 inset; }
@media (max-width: 560px) { .tournament-section { border-left-width: 4px; } }
