/* ── TOURNAMENTS PAGE SPECIFIC ───────────────────────────────── */

/* Breathing animation on page load for cards */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tournament-grid .t-card {
    animation: cardFadeIn 0.35s ease both;
}
.tournament-grid .t-card:nth-child(1) { animation-delay: 0.05s; }
.tournament-grid .t-card:nth-child(2) { animation-delay: 0.10s; }
.tournament-grid .t-card:nth-child(3) { animation-delay: 0.15s; }
.tournament-grid .t-card:nth-child(4) { animation-delay: 0.20s; }
.tournament-grid .t-card:nth-child(5) { animation-delay: 0.25s; }
.tournament-grid .t-card:nth-child(6) { animation-delay: 0.30s; }

/* ── CLOSED BADGE & FLOATING NOTICE ─────────────────────────── */
.t-status.status-closed {
    background: rgba(255, 75, 75, 0.16) !important;
    color: #ff4b4b !important;
    border: 1px solid rgba(255, 75, 75, 0.38) !important;
    font-weight: 700;
}

.t-status.t-status-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.t-status.t-status-clickable:hover {
    background: rgba(255, 75, 75, 0.28) !important;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(255, 75, 75, 0.4);
}

.t-btn-closed {
    cursor: pointer !important;
    pointer-events: auto !important;
    transition: all 0.2s ease !important;
}
.t-btn-closed:hover {
    background: rgba(255, 75, 75, 0.14) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(255, 75, 75, 0.3) !important;
    transform: translateY(-1px);
}

/* Floating Notice Component */
.floating-notice {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-24px);
    opacity: 0;
    visibility: hidden;
    z-index: 99999;
    max-width: 520px;
    width: calc(100% - 32px);
    background: rgba(17, 19, 24, 0.96);
    border: 1px solid rgba(255, 75, 75, 0.48);
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 28px rgba(255, 75, 75, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s;
    pointer-events: none;
}

.floating-notice.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

@keyframes fnShake {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    20%, 60% { transform: translateX(calc(-50% - 7px)) translateY(0); }
    40%, 80% { transform: translateX(calc(-50% + 7px)) translateY(0); }
}
.floating-notice.shake {
    animation: fnShake 0.35s ease;
}

.fn-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 75, 75, 0.16);
    border: 1px solid rgba(255, 75, 75, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.fn-body {
    flex: 1;
    min-width: 0;
}

.fn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.fn-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255, 75, 75, 0.22);
    color: #ff5252;
    border: 1px solid rgba(255, 75, 75, 0.45);
}

.fn-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f3f1ea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-text {
    font-size: 0.84rem;
    color: #d6d2c9;
    line-height: 1.45;
    margin: 0;
}

.fn-hint {
    margin-top: 8px;
    font-size: 0.76rem;
    color: #85878d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fn-close {
    background: transparent;
    border: none;
    color: #85878d;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.18s, background 0.18s;
    flex-shrink: 0;
}
.fn-close:hover {
    color: #f3f1ea;
    background: rgba(255, 255, 255, 0.08);
}

