/* ─── CTF Manager Public CSS v2 ─────────────────────────────────────────────── */
/* CSS vars injected by CTF_Settings::inject_css_vars() via wp_head            */

/* ─── Base ───────────────────────────────────────────────────────────────────── */
.ctf-wrap {
    background:    var(--ctf-bg, #111);
    color:         var(--ctf-text, #e0e0e0);
    font-family:   'Courier New', Courier, monospace;
    padding:       32px;
    border-radius: 8px;
    max-width:     980px;
    margin:        0 auto 32px;
    box-sizing:    border-box;
}
.ctf-section-title {
    color:          var(--ctf-primary, #00ff99);
    font-size:      1.6rem;
    margin:         0 0 24px;
    border-bottom:  1px solid var(--ctf-primary, #00ff99);
    padding-bottom: 8px;
    text-shadow:    0 0 8px var(--ctf-primary, #00ff99);
}

/* ─── Notices ────────────────────────────────────────────────────────────────── */
.ctf-notice {
    background:    rgba(255,255,255,.05);
    border-left:   3px solid var(--ctf-accent, #ff00cc);
    padding:       12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size:     .9rem;
}
.ctf-notice a { color: var(--ctf-primary, #00ff99); }
.ctf-notice-success { border-color: var(--ctf-primary, #00ff99); background: rgba(0,255,153,.08); }
.ctf-frozen { border-color: #ffaa00; color: #ffaa00; }

/* ─── Form Messages ──────────────────────────────────────────────────────────── */
.ctf-form-msg {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: .88rem;
    display: none;
}
.ctf-form-msg.success { background: rgba(0,255,153,.12); border-left: 3px solid var(--ctf-primary, #00ff99); color: var(--ctf-primary, #00ff99); }
.ctf-form-msg.error   { background: rgba(255,0,100,.12);  border-left: 3px solid var(--ctf-accent, #ff00cc);  color: var(--ctf-accent, #ff00cc); }
.ctf-form-msg.warning { background: rgba(255,180,0,.12);  border-left: 3px solid #ffb400; color: #ffb400; }
.ctf-success { color: var(--ctf-primary, #00ff99); font-weight: bold; }
.ctf-error   { color: var(--ctf-accent, #ff00cc); }

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.ctf-btn {
    display:         inline-block;
    background:      var(--ctf-primary, #00ff99);
    color:           #000 !important;
    font-weight:     bold;
    font-family:     inherit;
    padding:         10px 22px;
    border:          none;
    border-radius:   4px;
    cursor:          pointer;
    text-decoration: none;
    font-size:       .9rem;
    transition:      box-shadow .2s, opacity .2s, transform .1s;
    letter-spacing:  .04em;
    line-height:     1.4;
}
.ctf-btn:hover  { box-shadow: 0 0 16px var(--ctf-primary, #00ff99); opacity: .9; }
.ctf-btn:active { transform: scale(.97); }
.ctf-btn:disabled { opacity: .45; cursor: not-allowed; }
.ctf-btn-sm   { padding: 6px 14px; font-size: .78rem; }
.ctf-btn-full { width: 100%; text-align: center; display: block; }
.ctf-btn-outline {
    background:   transparent;
    color:        var(--ctf-primary, #00ff99) !important;
    border:       1px solid var(--ctf-primary, #00ff99);
}
.ctf-btn-outline:hover { background: rgba(0,255,153,.08); box-shadow: 0 0 12px rgba(0,255,153,.2); }

/* ─── Forms ──────────────────────────────────────────────────────────────────── */
.ctf-form-group { margin-bottom: 18px; }
.ctf-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    color: var(--ctf-primary, #00ff99);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.ctf-input,
.ctf-flag-input,
.ctf-select {
    width:         100%;
    background:    rgba(255,255,255,.05);
    border:        1px solid rgba(255,255,255,.14);
    color:         var(--ctf-text, #e0e0e0);
    padding:       10px 14px;
    border-radius: 4px;
    font-family:   inherit;
    font-size:     .95rem;
    box-sizing:    border-box;
    transition:    border-color .2s, box-shadow .2s;
}
.ctf-input:focus, .ctf-flag-input:focus, .ctf-select:focus {
    outline:      none;
    border-color: var(--ctf-primary, #00ff99);
    box-shadow:   0 0 8px rgba(0,255,153,.2);
}
.ctf-select option { background: #1a1a1a; }
.ctf-req { color: var(--ctf-accent, #ff00cc); }

/* ─── Auth cards ─────────────────────────────────────────────────────────────── */
.ctf-auth-wrap { max-width: 460px; }
.ctf-auth-card {
    background:    rgba(255,255,255,.03);
    border:        1px solid rgba(255,255,255,.08);
    border-radius: 8px;
    padding:       36px;
}
.ctf-auth-switch { text-align: center; margin-top: 18px; font-size: .85rem; opacity: .7; }
.ctf-auth-switch a { color: var(--ctf-primary, #00ff99); }

/* ─── Stat cards ─────────────────────────────────────────────────────────────── */
.ctf-stat-cards {
    display:               grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap:                   14px;
    margin-bottom:         28px;
}
.ctf-stat-card {
    background:    rgba(255,255,255,.04);
    border:        1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    padding:       18px;
    text-align:    center;
}
.ctf-stat-num {
    display:     block;
    font-size:   1.9rem;
    font-weight: bold;
    color:       var(--ctf-primary, #00ff99);
    text-shadow: 0 0 10px var(--ctf-primary, #00ff99);
    word-break:  break-all;
}
.ctf-stat-label {
    display:        block;
    font-size:      .7rem;
    opacity:        .6;
    margin-top:     4px;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* ─── Tables ─────────────────────────────────────────────────────────────────── */
.ctf-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ctf-table th, .ctf-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.06); }
.ctf-table th { color: var(--ctf-primary, #00ff99); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.ctf-table tr:hover td { background: rgba(255,255,255,.03); }
.ctf-points { font-weight: bold; color: var(--ctf-primary, #00ff99); }

/* ─── Leaderboard ────────────────────────────────────────────────────────────── */
.ctf-lb-table { margin-top: 0; }
.ctf-rank-col { width: 60px; text-align: center !important; }
.ctf-lb-me td { background: rgba(0,255,153,.05) !important; }
.ctf-you-badge {
    font-size: .62rem; background: var(--ctf-primary, #00ff99); color: #000;
    padding: 2px 5px; border-radius: 3px; margin-left: 6px; vertical-align: middle;
}
.ctf-empty { opacity: .5; font-style: italic; text-align: center; padding: 24px 0; }
.ctf-count-badge {
    background: rgba(255,255,255,.1); border-radius: 12px;
    font-size: .75rem; padding: 2px 10px; margin-left: 8px; vertical-align: middle;
}

/* ─── Filters ────────────────────────────────────────────────────────────────── */
.ctf-filter-bar {
    display:       flex;
    flex-wrap:     wrap;
    gap:           8px;
    margin-bottom: 24px;
    align-items:   center;
}
.ctf-filter-btn {
    background:    rgba(255,255,255,.06);
    border:        1px solid rgba(255,255,255,.1);
    color:         var(--ctf-text, #e0e0e0);
    padding:       6px 16px;
    border-radius: 20px;
    cursor:        pointer;
    font-family:   inherit;
    font-size:     .82rem;
    transition:    background .15s, border-color .15s;
}
.ctf-filter-btn:hover,
.ctf-filter-btn.active {
    background:   var(--ctf-primary, #00ff99);
    border-color: var(--ctf-primary, #00ff99);
    color:        #000;
    font-weight:  bold;
}
.ctf-filter-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ctf-filter-right select {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.14);
    color: var(--ctf-text, #e0e0e0);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: inherit;
    font-size: .82rem;
}
.ctf-filter-right select option { background: #1a1a1a; }
.ctf-hide-solved-label { font-size: .82rem; cursor: pointer; display: flex; align-items: center; gap: 5px; }

/* ─── Challenge header bar ───────────────────────────────────────────────────── */
.ctf-challenges-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.ctf-player-bar { display: flex; gap: 14px; align-items: center; font-size: .85rem; }
.ctf-player-name { color: var(--ctf-primary, #00ff99); font-weight: bold; }
.ctf-player-pts, .ctf-player-solves { opacity: .7; }

/* ─── Challenge grid ─────────────────────────────────────────────────────────── */
.ctf-category-group  { margin-bottom: 36px; }
.ctf-category-title  {
    color:          var(--ctf-accent, #ff00cc);
    font-size:      .85rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom:  14px;
    border-bottom:  1px solid rgba(255,0,204,.15);
    padding-bottom: 6px;
}
.ctf-challenge-grid {
    display:               grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap:                   14px;
}
.ctf-challenge-card {
    background:    rgba(255,255,255,.04);
    border:        1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    padding:       18px;
    position:      relative;
    transition:    border-color .2s, box-shadow .2s, opacity .2s;
    display:       flex;
    flex-direction: column;
}
.ctf-challenge-card:hover:not(.ctf-locked) {
    border-color: var(--ctf-primary, #00ff99);
    box-shadow:   0 0 18px rgba(0,255,153,.1);
}
.ctf-challenge-card.ctf-solved { opacity: .72; border-color: rgba(0,255,153,.3); }
.ctf-challenge-card.ctf-locked { opacity: .45; cursor: not-allowed; }

.ctf-solved-badge, .ctf-locked-badge {
    position:      absolute;
    top:           10px; right: 10px;
    font-size:     .62rem;
    padding:       2px 7px;
    border-radius: 3px;
    font-weight:   bold;
}
.ctf-solved-badge { background: var(--ctf-primary, #00ff99); color: #000; }
.ctf-locked-badge { background: rgba(255,255,255,.1); color: rgba(255,255,255,.5); }

.ctf-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ctf-card-title  { font-size: .93rem; margin: 0 0 8px; color: #fff; line-height: 1.3; flex: 1; }
.ctf-card-points { font-size: .8rem; color: var(--ctf-primary, #00ff99); font-weight: bold; white-space: nowrap; }
.ctf-card-meta   { font-size: .76rem; opacity: .55; margin-bottom: 12px; flex: 1; }
.ctf-embedded-note { font-size: .73rem; opacity: .45; font-style: italic; margin-bottom: 10px; }

/* Diff badges */
.ctf-diff-badge { font-size: .68rem; padding: 3px 8px; border-radius: 3px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; }
.ctf-easy   { background: rgba(0,220,100,.18);  color: #00dc64; }
.ctf-medium { background: rgba(255,180,0,.18);  color: #ffb400; }
.ctf-hard   { background: rgba(255,80,80,.18);  color: #ff5050; }
.ctf-insane { background: rgba(180,0,255,.18);  color: #cc44ff; }

/* ─── Announcements bar on challenges page ───────────────────────────────────── */
.ctf-announcements-bar { margin-bottom: 20px; }
.ctf-announcement {
    padding: 10px 16px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: .88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
}
.ctf-ann-header { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
.ctf-ann-time   { font-size: .75rem; opacity: .55; }
.ctf-ann-body   { opacity: .85; font-size: .85rem; margin-top: 4px; }
.ctf-ann-info    { background: rgba(0,180,255,.12); border-left: 3px solid #00b4ff; }
.ctf-ann-success { background: rgba(0,255,153,.10); border-left: 3px solid var(--ctf-primary, #00ff99); }
.ctf-ann-warning { background: rgba(255,180,0,.12); border-left: 3px solid #ffb400; }
.ctf-ann-danger  { background: rgba(255,50,50,.12); border-left: 3px solid #ff3232; }

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.ctf-modal-overlay {
    position:        fixed;
    inset:           0;
    background:      rgba(0,0,0,.88);
    z-index:         99999;
    display:         flex;
    align-items:     center;
    justify-content: center;
    padding:         16px;
    backdrop-filter: blur(4px);
}
body.ctf-modal-open { overflow: hidden; }
.ctf-modal {
    background:    var(--ctf-bg, #111);
    border:        1px solid var(--ctf-primary, #00ff99);
    border-radius: 8px;
    box-shadow:    0 0 40px rgba(0,255,153,.15), 0 24px 60px rgba(0,0,0,.7);
    width:         100%;
    max-width:     700px;
    max-height:    90vh;
    overflow-y:    auto;
    position:      relative;
    padding:       36px;
    color:         var(--ctf-text, #e0e0e0);
    font-family:   'Courier New', Courier, monospace;
    animation:     ctfModalIn .18s ease;
}
@keyframes ctfModalIn {
    from { opacity:0; transform: scale(.95) translateY(12px); }
    to   { opacity:1; transform: scale(1)   translateY(0); }
}
.ctf-modal-close {
    position:   absolute; top: 14px; right: 16px;
    background: none; border: none;
    color:      var(--ctf-text, #e0e0e0);
    font-size:  1.7rem; cursor: pointer; line-height: 1;
    opacity:    .55; transition: opacity .15s, color .15s; padding: 0;
}
.ctf-modal-close:hover { opacity: 1; color: var(--ctf-accent, #ff00cc); }
.ctf-modal-loading { text-align: center; padding: 48px 0; opacity: .55; }
.ctf-modal::-webkit-scrollbar { width: 5px; }
.ctf-modal::-webkit-scrollbar-thumb { background: var(--ctf-primary, #00ff99); border-radius: 3px; }

/* Spinner */
.ctf-spinner {
    display: inline-block; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,.15);
    border-top-color: var(--ctf-primary, #00ff99);
    border-radius: 50%;
    animation: ctfSpin .7s linear infinite;
    vertical-align: middle; margin-right: 8px;
}
@keyframes ctfSpin { to { transform: rotate(360deg); } }

/* ─── Challenge modal content ────────────────────────────────────────────────── */
.ctf-modal-header { margin-bottom: 20px; }
.ctf-challenge-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; align-items: center; }
.ctf-challenge-title { font-size: 1.6rem; color: #fff; margin: 0 0 6px; line-height: 1.2; }
.ctf-solve-count { opacity: .45; font-size: .8rem; margin: 0; }
.ctf-category-pill, .ctf-points-pill, .ctf-blood-pill {
    font-size: .72rem; padding: 3px 10px; border-radius: 3px; background: rgba(255,255,255,.07);
}
.ctf-blood-pill { background: rgba(255,0,0,.14); color: #ff6666; }

.ctf-challenge-description {
    background:    rgba(255,255,255,.03);
    border-left:   3px solid var(--ctf-primary, #00ff99);
    padding:       16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height:   1.75;
    font-size:     .92rem;
}
.ctf-file-download { margin-bottom: 18px; }

.ctf-dynamic-flag-box {
    background:    rgba(0,255,153,.06);
    border:        1px dashed var(--ctf-primary, #00ff99);
    padding:       16px; border-radius: 4px; margin-bottom: 18px;
}
.ctf-dynamic-flag-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.ctf-dynamic-flag { font-size: 1rem; color: var(--ctf-primary, #00ff99); word-break: break-all; }
.ctf-dynamic-note { font-size: .73rem; opacity: .5; margin: 6px 0 0; }

.ctf-hint-section { margin-bottom: 18px; }
.ctf-hint-box {
    background:  rgba(255,220,0,.07);
    border-left: 3px solid #ffcc00;
    padding:     12px 16px; border-radius: 4px; color: #ffe066;
}
.ctf-hint-locked { opacity: .6; font-size: .85rem; }
.ctf-hint-result { margin-top: 8px; min-height: 20px; }

.ctf-solvers-section { margin-bottom: 18px; }
.ctf-solvers-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; margin: 0 0 8px; }
.ctf-solvers-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ctf-solver-chip {
    background: rgba(255,255,255,.07); border-radius: 12px;
    padding: 3px 12px; font-size: .78rem;
}
.ctf-solver-blood { background: rgba(255,0,0,.15); color: #ff8888; }

.ctf-attempt-counter { font-size: .82rem; opacity: .6; margin-bottom: 12px; }
.ctf-attempts-warn   { color: #ff5050; font-weight: bold; }

.ctf-flag-submit-box {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    padding: 20px; border-radius: 6px;
}
.ctf-flag-submit-box h3 { color: var(--ctf-primary, #00ff99); margin: 0 0 14px; font-size: 1rem; }
.ctf-flag-input-row { display: flex; gap: 8px; margin-bottom: 8px; }
.ctf-flag-input-row .ctf-flag-input { flex: 1; }
.ctf-submit-result { font-size: .82rem; min-height: 18px; }

/* ─── Profile ────────────────────────────────────────────────────────────────── */
.ctf-profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.ctf-profile-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--ctf-primary, #00ff99); color: #000;
    font-size: 2rem; font-weight: bold;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ctf-profile-info h2 { margin: 0 0 4px; color: #fff; }
.ctf-profile-meta { opacity: .5; font-size: .82rem; margin: 0; }

.ctf-graph-wrap { margin-bottom: 28px; }
.ctf-graph-wrap h3 { color: var(--ctf-primary, #00ff99); margin-bottom: 12px; font-size: .95rem; }
.ctf-graph-wrap canvas { width: 100% !important; background: rgba(255,255,255,.02); border-radius: 4px; border: 1px solid rgba(255,255,255,.06); }

.ctf-profile-solves { margin-bottom: 28px; }
.ctf-profile-solves h3 { color: var(--ctf-primary, #00ff99); margin-bottom: 14px; }
.ctf-wrong-count { color: #ff6666; font-size: .82rem; }

.ctf-profile-team { margin-bottom: 28px; }
.ctf-profile-team h3 { color: var(--ctf-primary, #00ff99); margin-bottom: 12px; }
.ctf-join-code { font-size: 1.1rem; color: var(--ctf-primary, #00ff99); }
.ctf-copy-btn {
    background: rgba(255,255,255,.08); border: none; border-radius: 4px;
    color: var(--ctf-text, #e0e0e0); cursor: pointer; font-family: inherit;
    font-size: .75rem; padding: 4px 10px; transition: background .15s;
}
.ctf-copy-btn:hover { background: rgba(255,255,255,.15); }

.ctf-profile-settings { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }
.ctf-profile-settings h3 { color: var(--ctf-primary, #00ff99); margin-bottom: 18px; }

/* ─── Scoreboard graph ───────────────────────────────────────────────────────── */
.ctf-scoreboard-wrap canvas { width: 100% !important; background: rgba(255,255,255,.02); border-radius: 4px; border: 1px solid rgba(255,255,255,.06); }
.ctf-sb-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: .78rem; opacity: .8; }
.ctf-sb-legend-item { display: flex; align-items: center; gap: 6px; }
.ctf-sb-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ─── Solve feed ─────────────────────────────────────────────────────────────── */
.ctf-solve-feed-wrap { max-width: 640px; }
#ctf-solve-feed { display: flex; flex-direction: column; gap: 6px; }
.ctf-feed-item {
    display:       flex;
    gap:           10px;
    align-items:   baseline;
    flex-wrap:     wrap;
    padding:       8px 12px;
    background:    rgba(255,255,255,.04);
    border-radius: 4px;
    border-left:   3px solid rgba(255,255,255,.1);
    font-size:     .85rem;
    animation:     ctfFeedIn .3s ease;
}
@keyframes ctfFeedIn { from { opacity:0; transform: translateX(-8px); } to { opacity:1; transform: none; } }
.ctf-feed-blood { border-left-color: #ff3232; background: rgba(255,50,50,.07); }
.ctf-feed-time      { opacity: .45; font-size: .75rem; flex-shrink: 0; }
.ctf-feed-player    { color: var(--ctf-primary, #00ff99); font-weight: bold; }
.ctf-feed-verb      { opacity: .55; }
.ctf-feed-challenge { color: #fff; }
.ctf-feed-pts       { color: var(--ctf-primary, #00ff99); font-weight: bold; margin-left: auto; }
.ctf-feed-blood-badge { color: #ff6666; font-size: .75rem; }

/* ─── Teams ──────────────────────────────────────────────────────────────────── */
.ctf-teams-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px;
}
.ctf-team-action-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    padding: 22px; border-radius: 6px;
}
.ctf-team-action-card h3 { margin: 0 0 16px; color: var(--ctf-primary, #00ff99); font-size: .95rem; }

/* ─── Countdown ──────────────────────────────────────────────────────────────── */
.ctf-countdown-wrap { text-align: center; }
.ctf-countdown { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ctf-countdown-unit { text-align: center; }
.ctf-countdown-num {
    display: block; font-size: 2.4rem; font-weight: bold;
    color: var(--ctf-primary, #00ff99); text-shadow: 0 0 12px var(--ctf-primary, #00ff99);
    min-width: 60px;
}
.ctf-countdown-label { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .5; }
.ctf-countdown-sep { font-size: 2rem; color: var(--ctf-primary, #00ff99); margin-bottom: 18px; }

/* ─── Logout link ────────────────────────────────────────────────────────────── */
.ctf-logout-link { cursor: pointer; }

/* ─── Submit standalone ──────────────────────────────────────────────────────── */
.ctf-submit-wrap .ctf-submit-box {
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
    padding: 28px; border-radius: 6px; max-width: 540px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ctf-wrap           { padding: 18px; }
    .ctf-challenge-grid { grid-template-columns: 1fr; }
    .ctf-stat-cards     { grid-template-columns: repeat(2,1fr); }
    .ctf-profile-header { flex-direction: column; text-align: center; }
    .ctf-flag-input-row { flex-direction: column; }
    .ctf-flag-input-row .ctf-btn { width: 100%; }
    .ctf-countdown-num  { font-size: 1.6rem; min-width: 40px; }
    .ctf-teams-actions  { grid-template-columns: 1fr; }
    .ctf-modal          { padding: 20px; }
    .ctf-filter-right   { margin-left: 0; flex-wrap: wrap; }
    .ctf-challenges-header { flex-direction: column; }
}
