/* osu!farm: the site's own pink over near-black.
   All selectors stay under #site-osu-farm. */

#site-osu-farm::before {
    background:
        radial-gradient(75% 60% at 20% 15%, rgba(196, 58, 119, .16), transparent 62%),
        linear-gradient(180deg, var(--bg), #16080f 50%, var(--bg));
}

#site-osu-farm .fa__note {
    margin: 2rem 0 0;
    padding-left: 1rem;
    border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    max-width: 46ch;
    color: var(--dim);
    font-size: .92rem;
}

#site-osu-farm .fa__boards { display: grid; gap: .9rem; }

/* ---- leaderboards, rendered from the site's own dyn_html rows ---- */

#site-osu-farm .fa__board { padding: .95rem 1.05rem 1.05rem; }

#site-osu-farm .fa__board table {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}

#site-osu-farm .fa__board th {
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mute);
    font-weight: 800;
    text-align: left;
    padding: 0 .5rem .45rem;
}
#site-osu-farm .fa__board th:first-child { width: 15%; }
#site-osu-farm .fa__board th:last-child  { width: 22%; text-align: right; }

#site-osu-farm .fa__board td { padding: .32rem .5rem; vertical-align: middle; }
#site-osu-farm .fa__board td:last-child {
    text-align: right;
    font-weight: 800;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}
#site-osu-farm .fa__board td:first-child { color: var(--mute); font-variant-numeric: tabular-nums; }

#site-osu-farm .fa__board tbody tr { border-radius: var(--r-sm); }
#site-osu-farm .fa__board tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .035); }

#site-osu-farm .fa__board a { color: inherit; text-decoration: none; font-weight: 700; }
#site-osu-farm .fa__board a:hover { text-decoration: underline; }

/* team flag and tag, as the site renders them */
#site-osu-farm .fa__board .text-with-team { display: flex; align-items: center; gap: .4rem; min-width: 0; }
#site-osu-farm .fa__board .team_flag { width: 22px; height: 11px; object-fit: cover; border-radius: 2px; flex: none; }
#site-osu-farm .fa__board .team-tag { color: var(--mute); font-size: .76rem; flex: none; }
#site-osu-farm .fa__board .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#site-osu-farm .fa__board .empty_table { color: var(--mute); font-size: .82rem; padding: .5rem; }

#site-osu-farm .fa__label {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .7rem;
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--mute);
}

#site-osu-farm .fa__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee29a;
    animation: fa-pulse 2s ease-out infinite;
}

@keyframes fa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(110, 226, 154, .55); }
    70%  { box-shadow: 0 0 0 9px rgba(110, 226, 154, 0); }
    100% { box-shadow: 0 0 0 0 rgba(110, 226, 154, 0); }
}

/* ---- the two entrances ---- */

#site-osu-farm .fa__doors {
    margin-top: clamp(2rem, 5vw, 3.5rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

#site-osu-farm .fa__door {
    display: grid;
    gap: .3rem;
    padding: 1.5rem 1.6rem 1.6rem;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    text-decoration: none;
    transition: transform .25s cubic-bezier(.2, .9, .3, 1), border-color .25s, background-color .25s;
}

#site-osu-farm .fa__door:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--door) 55%, transparent);
    background: color-mix(in srgb, var(--door) 8%, transparent);
}

#site-osu-farm .fa__door--lazer  { --door: #c43a77; }
#site-osu-farm .fa__door--stable { --door: #8b8b96; opacity: .82; }

#site-osu-farm .fa__door-tag {
    font-size: .66rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--door);
}

#site-osu-farm .fa__door-name {
    font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -.02em;
    color: var(--ink);
}
#site-osu-farm .fa__door-name b { color: var(--door); font-weight: 900; }

#site-osu-farm .fa__door-desc { color: var(--dim); font-size: .9rem; max-width: 36ch; }

#site-osu-farm .fa__door-host {
    margin-top: .6rem;
    font-family: var(--mono);
    font-size: .74rem;
    color: var(--mute);
}

@media (max-width: 780px) {
    #site-osu-farm .fa__doors { grid-template-columns: minmax(0, 1fr); }
}
