/* Home page: "now on the server", news, leaders, streams, market lots (HomeLiveService, 2026-10-25).
   The panels wear the wing progress's frame (.home-wings in app.css). */

.home-now,
.home-block {
    border: 1px solid rgba(240, 198, 116, .28);
    border-radius: 10px;
    background: radial-gradient(ellipse at center, rgba(240, 198, 116, .06), transparent 70%), rgba(5, 9, 14, .78);
}

/* ---------------------------------------------------------------- Now on the server */

.home-now {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.home-now__cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
}

.home-now__cell + .home-now__cell {
    border-left: 1px solid rgba(240, 198, 116, .16);
}

a.home-now__cell:hover {
    background: rgba(240, 198, 116, .06);
}

.home-now__cell small {
    display: block;
    color: rgba(238, 242, 255, .6);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.home-now__cell strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-now__timer {
    color: #f0c674;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.home-now__cell--promo strong {
    color: #7ee08a;
}

.home-now__dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
}

.home-now__dot.is-on {
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
    animation: home-pulse 2s ease-in-out infinite;
}

@keyframes home-pulse {
    50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, .05); }
}

@media (max-width: 640px) {
    .home-now__cell + .home-now__cell {
        border-left: 0;
        border-top: 1px solid rgba(240, 198, 116, .16);
    }

    .home-now__cell strong {
        font-size: 17px;
        white-space: normal;
    }
}

/* ---------------------------------------------------------------- Blocks */

.home-duo {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .home-duo {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-block {
    padding: 14px 18px 18px;
    min-width: 0;
}

.home-block__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.home-block__head h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #eef2ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.home-block__head a {
    margin-left: auto;
    color: #f0c674;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-block__head a:hover {
    text-decoration: underline;
}

.home-block__badge {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(74, 222, 128, .14);
    color: #7ee08a;
    font-size: 12px;
    font-weight: 700;
}

.home-block__hint,
.home-block__empty {
    margin: -6px 0 12px;
    color: rgba(238, 242, 255, .6);
    font-size: 13px;
}

/* ---------------------------------------------------------------- Events */

.home-events {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.home-event {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(240, 198, 116, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: rgba(238, 242, 255, .75);
    font-size: 13px;
    text-decoration: none;
}

.home-event:hover {
    border-color: rgba(240, 198, 116, .45);
}

.home-event strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-event.is-on {
    border-color: rgba(74, 222, 128, .45);
    background: rgba(74, 222, 128, .07);
}

.home-event__on {
    color: #7ee08a;
    font-weight: 700;
}

/* ---------------------------------------------------------------- News */

/* Side by side with the leaders, the news cards grow to the taller block's height. */
.home-duo .home-block {
    display: flex;
    flex-direction: column;
}

.home-news {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 640px) {
    .home-news {
        grid-template-columns: minmax(0, 1fr);
    }
}

.home-news__card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid rgba(240, 198, 116, .18);
    border-radius: 8px;
    background: #0d1118;
    color: #fff;
    text-decoration: none;
}

.home-news__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transition: transform .3s ease;
}

.home-news__card:hover .home-news__bg {
    transform: scale(1.05);
}

.home-news__text {
    position: relative;
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 34px 12px 12px;
    background: linear-gradient(180deg, transparent, rgba(5, 7, 10, .92) 45%);
}

.home-news__text small {
    color: #f0c674;
    font-size: 12px;
    font-weight: 700;
}

.home-news__text strong {
    font-size: 15px;
    line-height: 1.25;
}

/* ---------------------------------------------------------------- Leaders */

.home-leaders {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-leaders__row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
}

.home-leaders__row a {
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-leaders__row a:hover {
    color: #f0c674;
}

.home-leaders__row b {
    color: #f0c674;
    white-space: nowrap;
}

.home-leaders__row b small {
    color: rgba(238, 242, 255, .55);
    font-weight: 400;
}

.home-leaders__place {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #eef2ff;
    font-size: 13px;
    font-weight: 800;
}

.home-leaders__row--1 .home-leaders__place { background: #f0c674; color: #1a1408; }
.home-leaders__row--2 .home-leaders__place { background: #c9d1dc; color: #12161c; }
.home-leaders__row--3 .home-leaders__place { background: #c98a52; color: #1a1006; }

/* ---------------------------------------------------------------- Streams */

.home-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
    animation: home-blink 1.4s ease-in-out infinite;
}

@keyframes home-blink {
    50% { opacity: .35; }
}

.home-streams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.home-stream {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}

.home-stream__shot {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background: #0d1118 center / cover no-repeat;
}

.home-stream__shot em {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .7);
    font-size: 12px;
    font-style: normal;
}

.home-stream small {
    overflow: hidden;
    color: rgba(238, 242, 255, .6);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------------- Market lots */

.home-lots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.home-lot {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 12px 8px;
    border: 1px solid rgba(240, 198, 116, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: #fff;
    text-align: center;
    text-decoration: none;
}

.home-lot:hover {
    border-color: rgba(240, 198, 116, .45);
}

.home-lot__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
}

.home-lot__icon img {
    width: auto;
    height: auto;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}

.home-lot strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-lot small {
    color: #f0c674;
    font-weight: 700;
}

/* The lot's name in the game's colour, as the market card and its hover card draw it. */
.home-lot .home-lot__name--option { color: #7fb2ff; }
.home-lot .home-lot__name--high { color: #ffcc19; }
.home-lot .home-lot__name--excellent { color: #19c81c; }
.home-lot .home-lot__name--ancient { color: #01df77; }

