Шаблон:Главная/styles.css

Версия от 07:21, 30 сентября 2026; Maintenance script (обсуждение | вклад) (Rename main page styles)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
.rs-home {
    width: 100%;
}

/* ---------- Header ---------- */

.rs-home-header {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 190px;
    height: 123px;
    min-height: 123px;
    max-height: 123px;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid rgba(234, 58, 62, 0.34);
    border-radius: 14px;
    background: linear-gradient(115deg, #160c10 0%, #0d0f14 48%, #0a0d12 100%);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22),
        inset 0 1px rgba(255, 255, 255, 0.035);
}

.rs-home-header::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: linear-gradient(#ff5155, #a5161a);
}

.rs-home-header__side {
    box-sizing: border-box;
    min-width: 0;
    height: 123px;
}

.rs-home-header__center {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    height: 123px;
    padding: 12px 24px;
    text-align: center;
}

.rs-home-header__title {
    margin: 0;
    color: #f7f7f8;
    font-size: 3.15rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.035em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.rs-home-header__title span {
    color: #ff474b;
    text-shadow: 0 0 18px rgba(255, 45, 50, 0.35);
}

/* ---------- Resource links ---------- */

.rs-home-resources {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.018);
}

.rs-home-resource {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    margin: 0;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.14);
}

.rs-home-resource__label {
    width: 100%;
    min-width: 0;
    line-height: 1;
    text-align: center;
}

.rs-home-resource__label a,
.rs-home-resource .plainlinks a,
.rs-home-resource .plainlinks a.external {
    display: block;
    width: 100%;
    padding: 2px 0 !important;
    padding-right: 0 !important;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
    background-image: none !important;
}

.rs-home-resource a.external::before,
.rs-home-resource .plainlinks a::before {
    content: none !important;
}

.rs-home-resource a.external::after,
.rs-home-resource__label a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
}

.rs-home-resource:nth-child(1) {
    border-color: rgba(88, 101, 242, 0.55);
    background: linear-gradient(
        180deg,
        rgba(88, 101, 242, 0.34),
        rgba(62, 70, 175, 0.24)
    );
}

.rs-home-resource:nth-child(1):hover {
    border-color: rgba(110, 122, 255, 0.85);
    background: linear-gradient(
        180deg,
        rgba(88, 101, 242, 0.50),
        rgba(62, 70, 175, 0.34)
    );
}

.rs-home-resource:nth-child(2) {
    border-color: rgba(245, 117, 59, 0.55);
    background: linear-gradient(
        180deg,
        rgba(245, 117, 59, 0.34),
        rgba(171, 77, 36, 0.24)
    );
}

.rs-home-resource:nth-child(2):hover {
    border-color: rgba(255, 140, 78, 0.85);
    background: linear-gradient(
        180deg,
        rgba(245, 117, 59, 0.50),
        rgba(171, 77, 36, 0.34)
    );
}

.rs-home-resource:nth-child(3) {
    border-color: rgba(190, 196, 207, 0.32);
    background: linear-gradient(
        180deg,
        rgba(110, 117, 130, 0.28),
        rgba(55, 60, 70, 0.26)
    );
}

.rs-home-resource:nth-child(3):hover {
    border-color: rgba(220, 225, 233, 0.55);
    background: linear-gradient(
        180deg,
        rgba(130, 138, 152, 0.38),
        rgba(65, 71, 82, 0.34)
    );
}

/* ---------- Live server status ---------- */

.rs-status-clean {
    display: block !important;
    box-sizing: border-box !important;
    width: 190px !important;
    height: 123px !important;
    min-height: 123px !important;
    max-height: 123px !important;
    padding: 13px 10px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-left: 1px solid rgba(255, 255, 255, 0.07) !important;
    background: rgba(255, 255, 255, 0.018) !important;
}

.rs-status-clean *,
.rs-status-clean *::before,
.rs-status-clean *::after {
    box-sizing: border-box !important;
}

.rs-status-clean div,
.rs-status-clean span,
.rs-status-clean strong {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    max-height: none !important;
}

.rs-status-clean__field {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;

    width: 100% !important;
    height: 19px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;

    color: #8c97a8 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 19px !important;

    white-space: nowrap !important;
}

.rs-status-clean__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 12px !important;
    width: 12px !important;

    color: rgba(255, 82, 88, 0.64) !important;

    font-size: 9px !important;
    line-height: 1 !important;

    opacity: 0.9 !important;
}

.rs-status-clean__field > span {
    display: block !important;

    min-width: 0 !important;
    overflow: hidden !important;

    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

.rs-status-clean__field strong {
    display: inline !important;

    color: #f3f5fa !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 19px !important;

    white-space: nowrap !important;
}

.rs-status-clean__players {
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* ---------- Main category grid ---------- */

.rs-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

/* ---------- Sections ---------- */

.rs-home-section {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: linear-gradient(180deg, #161a22 0%, #101319 100%);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22),
        inset 0 1px rgba(255, 255, 255, 0.04),
        inset 0 -18px 30px rgba(0, 0, 0, 0.10);
}

.rs-home-section__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.07),
        inset 0 -8px 16px rgba(0, 0, 0, 0.12);
}

.rs-home-section__header::before,
.rs-home-section__header::after {
    content: "◆";
    position: absolute;
    top: 50%;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.48rem;
    transform: translateY(-50%);
}

.rs-home-section__header::before {
    left: 12px;
}

.rs-home-section__header::after {
    right: 12px;
}

.rs-home-section__title {
    position: relative;
    z-index: 2;
    padding: 0 13px;
    color: #f1f3f6;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
}

.rs-home-section__ornament {
    width: 46px;
    height: 1px;
    opacity: 0.72;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55));
}

.rs-home-section__ornament--right {
    transform: scaleX(-1);
}

.rs-home-section--blue {
    border-color: rgba(91, 143, 212, 0.34);
    background: linear-gradient(180deg, #151c27 0%, #10141a 100%);
}

.rs-home-section--blue .rs-home-section__header {
    border-bottom-color: rgba(91, 143, 212, 0.30);
    background: linear-gradient(180deg, rgba(69, 111, 166, 0.48), rgba(43, 70, 106, 0.38));
}

.rs-home-section--red {
    border-color: rgba(225, 69, 73, 0.34);
    background: linear-gradient(180deg, #241416 0%, #151012 100%);
}

.rs-home-section--red .rs-home-section__header {
    border-bottom-color: rgba(225, 69, 73, 0.30);
    background: linear-gradient(180deg, rgba(150, 48, 52, 0.56), rgba(97, 31, 34, 0.42));
}

.rs-home-section--gold {
    border-color: rgba(212, 167, 77, 0.34);
    background: linear-gradient(180deg, #221d14 0%, #15130f 100%);
}

.rs-home-section--gold .rs-home-section__header {
    border-bottom-color: rgba(212, 167, 77, 0.30);
    background: linear-gradient(180deg, rgba(142, 109, 43, 0.52), rgba(88, 68, 28, 0.40));
}

.rs-home-section--purple {
    border-color: rgba(152, 113, 216, 0.34);
    background: linear-gradient(180deg, #1d1726 0%, #141018 100%);
}

.rs-home-section--purple .rs-home-section__header {
    border-bottom-color: rgba(152, 113, 216, 0.30);
    background: linear-gradient(180deg, rgba(99, 67, 136, 0.56), rgba(62, 43, 84, 0.42));
}

.rs-home-section--brown {
    border-color: rgba(187, 130, 96, 0.34);
    background: linear-gradient(180deg, #211914 0%, #15110e 100%);
}

.rs-home-section--brown .rs-home-section__header {
    border-bottom-color: rgba(187, 130, 96, 0.30);
    background: linear-gradient(180deg, rgba(117, 77, 54, 0.58), rgba(75, 48, 34, 0.42));
}

.rs-home-section--green {
    border-color: rgba(88, 169, 138, 0.34);
    background: linear-gradient(180deg, #14201c 0%, #0f1614 100%);
}

.rs-home-section--green .rs-home-section__header {
    border-bottom-color: rgba(88, 169, 138, 0.30);
    background: linear-gradient(180deg, rgba(48, 111, 86, 0.54), rgba(30, 70, 55, 0.42));
}

.rs-home-section__body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
}

.rs-home-section__body > p {
    display: contents;
}

/* ---------- Tiles ---------- */

.rs-home-tile {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 106px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 6px 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    background: rgba(4, 6, 10, 0.32);
    box-shadow:
        inset 0 1px rgba(255, 255, 255, 0.025),
        0 2px 7px rgba(0, 0, 0, 0.08);
    color: inherit !important;
    text-decoration: none !important;
}

.rs-home-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(18, 21, 28, 0.72);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.20),
        inset 0 1px rgba(255, 255, 255, 0.045);
}

.rs-home-tile__sprite {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
}

.rs-home-tile__sprite img {
    width: auto !important;
    max-width: 52px !important;
    height: auto !important;
    max-height: 52px !important;
}

.rs-home-tile__label {
    position: static;
    width: 100%;
    overflow: hidden;
    color: #cdd3dc;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.rs-home-tile__label a {
    color: #cdd3dc !important;
    text-decoration: none !important;
}

.rs-home-tile__label a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
}

.rs-home-tile:hover .rs-home-tile__label,
.rs-home-tile:hover .rs-home-tile__label a {
    color: #ffffff !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
    .rs-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rs-home-header {
        grid-template-columns: 170px minmax(0, 1fr) 170px;
    }

    .rs-home-header__title {
        font-size: 2.55rem;
    }

    .rs-home-resource__label a,
    .rs-home-resource .plainlinks a,
    .rs-home-resource .plainlinks a.external {
        font-size: 0.82rem;
    }
}

@media (max-width: 760px) {
    .rs-home-header {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .rs-home-header__side,
    .rs-home-header__center {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .rs-home-header__center {
        order: -1;
        min-height: 86px;
        padding: 18px;
    }

    .rs-home-header__title {
        font-size: 2rem;
    }

    .rs-home-resources {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 8px 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-right: 0;
    }

    .rs-status-clean {
        height: auto;
        padding: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        border-left: 0;
    }

    .rs-home-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Server status icons ---------- */

.rs-status-clean__icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 12px !important;
    width: 12px !important;

    color: rgba(255, 82, 88, 0.72) !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    opacity: 0.9 !important;
}

/* ---------- Tile icon fallback ---------- */

.rs-home-tile__placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    color: rgba(220, 225, 234, 0.34);

    font-size: 1.45rem;
    line-height: 1;
}