/* Rampage x50 000 - описание сервера (/x50000). Файл собирает patch/rampage_x50k_server/tools/rp_site.py: правьте tools/rp_site.css. */
.rpx {
    --rpx-card: rgba(14, 10, 8, 0.8);
    --rpx-line: rgba(212, 175, 55, 0.26);
    --rpx-text: #d7cbb3;
    --rpx-dim: #a89a7e;
    padding-bottom: 20px;
}
.rpx p { margin: 0; }
.rpx-kicker {
    margin: 0 0 8px !important;
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* item / skill icon: 32x32 as in the client, count and chance on it */
.rpx-ic {
    position: relative;
    flex: none;
    display: inline-flex;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 7px;
    background: #120d09;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.rpx-ic img { width: 32px; height: 32px; display: block; }
.rpx-ic b,
.rpx-ic i {
    position: absolute;
    right: 0;
    padding: 0 2px;
    font-size: 10px;
    line-height: 12px;
    font-style: normal;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 3px 0 0 0;
    text-shadow: 0 1px 1px #000;
}
.rpx-ic b { bottom: 0; }
.rpx-ic i { top: 0; color: #9fe39a; border-radius: 0 0 0 3px; }
.rpx-ic--lg { width: 44px; height: 44px; border-radius: 10px; }
.rpx-ic--lg img { width: 42px; height: 42px; }

/* hero */
.rpx-hero {
    padding: 38px 24px 30px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(700px 260px at 50% 0, rgba(212, 175, 55, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(20, 14, 9, 0.9), rgba(10, 7, 5, 0.86));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.rpx-hero h1 {
    margin: 0 0 14px;
    font-family: Philosopher, serif;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    color: var(--gold-2);
    text-shadow: 0 4px 24px rgba(212, 175, 55, 0.25);
}
.rpx-hero h1 span { color: var(--gold); white-space: nowrap; }
.rpx-lead {
    max-width: 780px;
    margin: 0 auto 22px !important;
    color: var(--rpx-text);
    font-size: 16px;
    line-height: 1.65;
}
.rpx-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}
.rpx-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--rpx-line);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
}
.rpx-chip .rpx-ic { width: 30px; height: 30px; border-radius: 50%; }
.rpx-chip .rpx-ic img { width: 28px; height: 28px; }
.rpx-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* quick facts */
.rpx-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.rpx-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--rpx-line);
    border-radius: 14px;
    background: var(--rpx-card);
}
.rpx-fact b { display: block; margin-bottom: 2px; color: var(--gold-2); font-size: 15px; }
.rpx-fact span { color: var(--rpx-text); font-size: 14px; line-height: 1.45; }

/* section menu */
.rpx-toc {
    position: sticky;
    top: 74px;
    z-index: 20;
    display: flex;
    gap: 4px;
    margin: 26px 0 0;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid var(--rpx-line);
    border-radius: 14px;
    background: rgba(10, 7, 5, 0.94);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
}
.rpx-toc::-webkit-scrollbar { display: none; }
.rpx-toc a {
    flex: none;
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.rpx-toc a:hover { color: var(--gold-2); background: rgba(212, 175, 55, 0.1); }
.rpx-toc a.is-on { color: #1c1307; background: var(--gold); }

/* sections */
.rpx-sec { margin-top: 48px; scroll-margin-top: 150px; }
.rpx-head { margin-bottom: 22px; text-align: center; }
.rpx-head h2 {
    margin: 0 0 8px;
    font-family: Philosopher, serif;
    font-size: clamp(26px, 3.4vw, 38px);
    color: var(--gold-2);
}
.rpx-head p:not(.rpx-kicker) {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.6;
}
.rpx-sub {
    margin: 30px 0 14px;
    font-family: Philosopher, serif;
    font-size: 22px;
    color: var(--gold-2);
    text-align: center;
}

/* cards */
.rpx-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.rpx-cards--2 { grid-template-columns: repeat(2, 1fr); }
.rpx-card {
    display: flex;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--rpx-line);
    border-radius: 16px;
    background: var(--rpx-card);
    transition: border-color 0.2s, transform 0.2s;
}
a.rpx-card:hover { border-color: rgba(212, 175, 55, 0.7); transform: translateY(-2px); }
.rpx-card > div { min-width: 0; }
.rpx-card h3 {
    margin: 0 0 6px;
    color: var(--gold-2);
    font-size: 17px;
    line-height: 1.3;
}
.rpx-card p,
.rpx-card li {
    color: var(--rpx-text);
    font-size: 14.5px;
    line-height: 1.55;
}
.rpx-card p + p { margin-top: 6px; }
.rpx-card ul { margin: 0; padding: 0 0 0 18px; }
.rpx-card li + li { margin-top: 3px; }
.rpx-card li::marker { color: var(--gold-3); }
.rpx-card--new { position: relative; }
.rpx-card--new:after {
    content: "новое";
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.rpx-card--new h3 { padding-right: 58px; }
.rpx-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rpx-drops { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rpx-drop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--rpx-text);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}
.rpx-drop em { color: #9fe39a; font-style: normal; }
.rpx-card .rpx-drops { margin-top: 10px; }
.rpx-rows { margin: 8px 0 0; }
.rpx-rows > div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 8px 0;
    border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.rpx-rows > div > span:first-child {
    min-width: 92px;
    color: var(--gold-2);
    font-size: 13.5px;
    font-weight: 700;
}
.rpx-tag {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 1px 8px;
    border: 1px solid var(--rpx-line);
    border-radius: 7px;
    color: var(--gold-2);
    font-size: 13px;
    font-weight: 700;
}
code, .rpx code {
    color: var(--gold);
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
}

/* tables */
.rpx-tbl {
    overflow: hidden;
    border: 1px solid var(--rpx-line);
    border-radius: 16px;
    background: var(--rpx-card);
}
.rpx-tbl table { width: 100%; border-collapse: collapse; }
.rpx-tbl th,
.rpx-tbl td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    text-align: left;
    vertical-align: middle;
}
.rpx-tbl tr:last-child td { border-bottom: 0; }
.rpx-tbl th {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(212, 175, 55, 0.06);
}
.rpx-tbl td { color: var(--rpx-text); font-size: 14.5px; line-height: 1.5; }
.rpx-tbl td:first-child { color: var(--gold-2); font-weight: 700; }
.rpx-tbl .rpx-items { margin-top: 0; }
.rpx-tbl small { display: block; color: var(--rpx-dim); font-size: 12.5px; font-weight: 500; }
.rpx-note {
    margin: 12px auto 0 !important;
    max-width: 860px;
    color: var(--rpx-dim);
    font-size: 13.5px;
    line-height: 1.55;
    text-align: center;
}

/* .daily: 30 days */
.rpx-days {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}
.rpx-day {
    padding: 10px 10px 12px;
    border: 1px solid var(--rpx-line);
    border-radius: 12px;
    background: var(--rpx-card);
}
.rpx-day b {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.rpx-day .rpx-drops { gap: 6px 10px; }
.rpx-day--big {
    border-color: rgba(212, 175, 55, 0.7);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(14, 10, 8, 0.86));
}
.rpx-day--big b { color: var(--gold); }
#rpx-daily { scroll-margin-top: 150px; }
.rpx-card .rpx-rows > div > span:first-child { min-width: 128px; }
.rpx-tbl .rpx-rows { margin: 0; }
.rpx-tbl .rpx-rows > div:first-child { border-top: 0; padding-top: 0; }
.rpx-tbl .rpx-rows > div:last-child { padding-bottom: 0; }

/* currencies */
.rpx-cur li b { color: var(--gold-2); font-weight: 700; }
.rpx-cur .rpx-card { align-items: flex-start; }
.rpx-cur h3 small { display: block; margin-top: 2px; color: var(--rpx-dim); font-size: 12.5px; font-weight: 600; }

/* call to action */
.rpx-cta {
    margin-top: 52px;
    padding: 34px 22px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(600px 220px at 50% 100%, rgba(212, 175, 55, 0.14), transparent 70%),
        rgba(12, 8, 6, 0.86);
}
.rpx-cta h2 { margin: 0 0 8px; font-family: Philosopher, serif; font-size: 32px; color: var(--gold-2); }
.rpx-cta p { margin: 0 auto 20px !important; max-width: 620px; color: var(--rpx-text); line-height: 1.6; }

@media (max-width: 1000px) {
    .rpx-cards { grid-template-columns: repeat(2, 1fr); }
    .rpx-days { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .rpx-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .rpx-hero { padding: 28px 14px 24px; border-radius: 18px; }
    .rpx-lead { font-size: 15px; }
    .rpx-chip { font-size: 13px; }
    .rpx-cards,
    .rpx-cards--2,
    .rpx-facts { grid-template-columns: 1fr; }
    .rpx-card { padding: 15px; gap: 12px; }
    .rpx-sec { margin-top: 38px; }
    .rpx-toc { top: 74px; margin-left: -4px; margin-right: -4px; }
    .rpx-tbl thead { display: none; }
    .rpx-tbl tr { display: block; padding: 10px 14px; border-bottom: 1px solid rgba(212, 175, 55, 0.12); }
    .rpx-tbl tr:last-child { border-bottom: 0; }
    .rpx-tbl td { display: block; padding: 3px 0; border: 0; }
    .rpx-tbl td[data-l]:before {
        content: attr(data-l) ": ";
        color: var(--rpx-dim);
        font-size: 12.5px;
        font-weight: 600;
    }
    .rpx-cta h2 { font-size: 26px; }
    .rpx-days { grid-template-columns: repeat(2, 1fr); }
    .rpx-card .rpx-rows > div > span:first-child,
    .rpx-rows > div > span:first-child { min-width: 0; width: 100%; }
}
