:root {
    --wall: #15141a;
    --wall-dark: #0e0d12;

    --panel-top: #23232b;
    --panel-bottom: #1a1b21;
    --panel-border: #353440;

    --text: #d8d7de;
    --text-soft: #9f9ba9;
    --text-bright: #f2f1f5;

    --violet: #a56bd3;
    --violet-bright: #bf70ef;
    --violet-soft: #74538c;

    --green: #70d887;
    --minecraft: #70d887;
    --gungame: #d6a969;
    --bluemap: #6fb7ff;

    --glow:
        0 14px 32px rgba(0, 0, 0, .42),
        0 4px 12px rgba(0, 0, 0, .26),
        0 0 26px rgba(145, 83, 185, .12);

    --radius: 9px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--wall-dark);
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);

    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.45;

    background:
        linear-gradient(rgba(20, 18, 25, .82), rgba(14, 13, 18, .88)),
        repeating-linear-gradient(0deg,
            transparent 0,
            transparent 58px,
            rgba(255, 255, 255, .025) 59px,
            rgba(255, 255, 255, .025) 61px),
        repeating-linear-gradient(90deg,
            rgba(255, 255, 255, .014) 0,
            rgba(255, 255, 255, .014) 1px,
            transparent 1px,
            transparent 120px),
        #17161b;

    background-attachment: fixed;
}

button,
input,
textarea,
select {
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(ellipse at 18% 48%,
            rgba(117, 69, 148, .18),
            transparent 32%),
        radial-gradient(ellipse at 82% 48%,
            rgba(117, 69, 148, .18),
            transparent 32%),
        radial-gradient(ellipse at 50% 25%,
            rgba(102, 61, 132, .11),
            transparent 40%);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* =========================================
   Layout
   ========================================= */

.site-shell {
    position: relative;
    z-index: 2;

    width: min(1440px, calc(100% - 40px));
    margin: 24px auto;
}

/* =========================================
   Common panels
   ========================================= */

.panel {
    position: relative;

    background:
        linear-gradient(145deg,
            rgba(37, 37, 45, .97),
            rgba(24, 25, 31, .98));

    border: 1px solid var(--panel-border);
    border-radius: var(--radius);

    box-shadow: var(--glow);

    overflow: hidden;
}

.presence-panel {
    overflow: visible;
}

.panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    border-radius: inherit;

    box-shadow:
        inset 0 1px rgba(255, 255, 255, .025),
        inset 0 -1px rgba(0, 0, 0, .25);
}

.panel:hover {
    box-shadow:
        0 16px 36px rgba(0, 0, 0, .45),
        0 5px 14px rgba(0, 0, 0, .28),
        0 0 34px rgba(157, 84, 204, .18);
}

h3 {
    margin: 0 0 17px;

    color: var(--violet);

    font-size: 12px;
    font-weight: 650;

    text-transform: uppercase;
    letter-spacing: .08em;
}

/* =========================================
   Brand
   ========================================= */

.brand-mark {
    width: 56px;
    height: 56px;

    display: grid;
    place-items: center;

    color: var(--violet-bright);

    font-size: 18px;
    font-weight: 600;

    border: 1px solid #765190;
    border-radius: 6px;

    background:
        linear-gradient(145deg,
            rgba(62, 45, 72, .55),
            rgba(28, 26, 34, .8));

    box-shadow:
        0 0 18px rgba(153, 81, 203, .12),
        inset 0 0 18px rgba(136, 76, 177, .08);
}

.brand-name {
    color: var(--text-bright);

    font-size: 20px;
    letter-spacing: .27em;
}

.brand-subtitle {
    margin-top: 4px;

    color: var(--violet);
    font-size: 12px;
}

/* Cofiplace topbar v4 */

.topbar {
    height: 76px;
    min-height: 0;
    margin-bottom: 18px;

    display: grid;
    grid-template-columns:
        260px minmax(0, 1fr) 340px;

    align-items: center;
    column-gap: 18px;

    position: relative;
    padding: 8px 0;
}


/* Brand */

.brand {
    grid-column: 1;
    justify-self: start;

    display: flex;
    align-items: center;
    gap: 17px;

    margin-left: 14px;

    transition:
        opacity .15s ease,
        filter .15s ease;
}

.brand:hover {
    opacity: .92;

    filter:
        drop-shadow(0 0 8px rgba(190, 105, 255, .12));
}

.brand-copy {
    position: relative;
    width: max-content;
}

.brand-name {
    white-space: nowrap;
}

.brand-meta {
    position: relative;
    margin-top: 4px;
    min-height: 13px;
}

.brand-subtitle {
    display: block;
    padding-right: 42px;
}

.topbar-online {
    position: absolute;
    top: 0;
    right: 6px;

    display: inline-flex;
    align-items: center;
    gap: 5px;

    font-size: 10px;
    color: var(--green);
    white-space: nowrap;
}

.topbar-online i {
    width: 5px;
    height: 5px;

    display: block;
    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 7px rgba(112, 216, 135, 0.55);
}


/* Dividers */

.topbar-divider {
    position: absolute;

    top: 50%;
    width: 1px;
    height: 34px;

    transform: translateY(-50%);

    background: rgba(190, 105, 255, 0.85);

    box-shadow:
        0 0 6px rgba(190, 105, 255, 0.25);
}


/* Tagline */

.topbar-tagline {
    grid-column: 2;

    width: 100%;
    max-width: none;

    justify-self: stretch;
    text-align: center;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.4;
}


/* Fireplace */

.topbar-fireplace {
    width: 118px;
    height: 56px;

    grid-column: 3;
    justify-self: end;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    right: 0px;

    transform: none;
    margin: 0;
}

.topbar-fireplace .fireplace-line,
.topbar-fireplace .fireplace-base {
    width: 112px;
    flex: 0 0 auto;
}

.topbar-fireplace .fireplace-body {
    width: 82px;
    height: 42px;

    flex: 0 0 auto;
}

.topbar .fireplace-symbol {
    margin: 0;
}

.topbar-divider-left {
    left: calc(260px + 9px);
}

.topbar-divider-right {
    right: calc(340px + 9px);
}

/* Base fireplace */

.fireplace-symbol {
    width: 165px;

    justify-self: end;

    color: var(--violet-bright);

    filter:
        drop-shadow(0 0 7px rgba(183, 95, 235, .65)) drop-shadow(0 0 18px rgba(155, 73, 205, .28));
}

.fireplace-line,
.fireplace-base {
    height: 4px;

    border: 2px solid currentColor;
    border-radius: 4px;
}

.fireplace-body {
    width: 128px;
    height: 86px;

    margin: 0 auto;

    display: grid;
    place-items: center;

    border: 2px solid currentColor;
    border-top: 0;
}

.flame {
    font-size: 43px;
}

/* =========================================
   Server status
   ========================================= */

.server-state {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--text-soft);

    font-size: 11px;
    letter-spacing: .04em;
}

.server-state i,
.service-row em i,
.status-row b i {
    width: 7px;
    height: 7px;

    display: inline-block;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px rgba(112, 216, 135, .5);
}

.server-name {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.server-version {
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
    font-weight: 400;
}

/* =========================================
   Portal grid
   ========================================= */

.portal-grid {
    display: grid;

    grid-template-columns:
        260px minmax(0, 1fr) 340px;

    gap: 18px;
}

.left-column,
.center-column,
.right-column {
    min-width: 0;
}

.left-column .panel,
.center-column .panel,
.right-column .panel {
    margin-bottom: 18px;
}

.navigation-panel,
.services-panel,
.home-panel,
.system-panel,
.presence-panel {
    padding: 24px;
}

/* =========================================
   Navigation
   ========================================= */

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.main-nav a {
    display: grid;

    grid-template-columns: 28px 1fr;

    align-items: center;

    min-height: 43px;

    padding: 0 14px;

    border-radius: 5px;

    color: #cac7d0;

    transition:
        background .15s,
        box-shadow .15s,
        color .15s;
}

.main-nav a:hover {
    color: var(--text-bright);

    background:
        linear-gradient(90deg,
            rgba(126, 82, 158, .24),
            rgba(126, 82, 158, .08));
}

.main-nav a.active {
    color: var(--text-bright);

    background:
        linear-gradient(90deg,
            rgba(125, 83, 158, .42),
            rgba(99, 70, 123, .23));

    box-shadow:
        inset 0 0 0 1px rgba(178, 113, 219, .14),
        0 5px 14px rgba(0, 0, 0, .2);
}

.nav-icon {
    color: #d2cbd9;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
}

.nav-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================
   Services
   ========================================= */

.service-row {
    min-height: 44px;

    display: grid;

    grid-template-columns: 28px 1fr auto;

    align-items: center;

    border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.service-row:last-child {
    border-bottom: 0;
}

.service-row>span {
    color: #c6becd;
    font-size: 17px;
}

.service-row b {
    font-weight: 400;
}

.service-row em {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--green);

    font-style: normal;
    font-size: 12px;
}

/* =========================================
   Minecraft activity
   ========================================= */

.server-activity {
    margin-top: 6px;
    padding-top: 8px;
}

.activity-window {
    position: relative;
}

.activity-list {
    max-height: 132px;
    overflow-y: auto;
    padding-right: 8px;
}

.activity-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 5px 0;
    font-size: .82rem;
    line-height: 1.35;
}

.activity-item time {
    color: rgba(255, 255, 255, .38);
    font-variant-numeric: tabular-nums;
}

.activity-date {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 11px 0 8px;
    color: rgba(255, 255, 255, .32);
    font-size: 10px;
    letter-spacing: .06em;
}

.activity-date:first-child {
    margin-top: 2px;
}

.activity-date::before,
.activity-date::after {
    content: '';
    height: 1px;
    flex: 1 1 auto;
    background: rgba(255, 255, 255, .055);
}

.activity-date span {
    flex: 0 0 auto;
}

.activity-advancement .activity-text {
    color: rgba(255, 255, 255, .72);
}

.activity-advancement .activity-icon {
    margin-right: 5px;
}

.activity-advancement .activity-text strong {
    color: var(--minecraft);
}

.activity-death .activity-text {
    color: rgba(255, 255, 255, .68);
}

.activity-death .activity-icon {
    margin-right: 6px;
    color: rgba(210, 110, 110, .85);
}

.activity-death .activity-text strong {
    color: var(--minecraft);
}

.activity-text {
    min-width: 0;
    color: rgba(255, 255, 255, .68);
}

.activity-text strong {
    color: var(--minecraft);
    font-weight: 600;
}

.activity-active .activity-text::before {
    content: "";
    width: 7px;
    height: 7px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--minecraft);
    box-shadow: 0 0 8px rgba(112, 216, 135, .5);
    vertical-align: 1px;
}

.activity-empty {
    padding: 8px 0 18px;
    color: rgba(255, 255, 255, .35);
    font-size: .82rem;
}

.activity-more {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    text-align: right;
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
}

.activity-more:hover {
    color: var(--minecraft);
}

.eyebrow {
    margin-bottom: 10px;

    color: var(--violet);

    font-size: 11px;
    font-weight: 600;

    letter-spacing: .09em;
}

/* =========================================
   Events
   ========================================= */

.events-panel {
    padding: 20px 26px;
}

.timeline {
    position: relative;

    max-height: 330px;
    overflow-y: auto;

    padding-right: 10px;
    padding-bottom: 8px;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: 8px;
    top: 50%;
    bottom: -50%;

    width: 1px;

    background:
        rgba(154, 92, 194, .35);
}

.timeline-item {
    position: relative;

    min-height: 78px;

    display: grid;

    grid-template-columns: 30px 1fr 46px;

    align-items: center;
}

.timeline-item+.timeline-item {
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    position: relative;
    z-index: 1;

    width: 9px;
    height: 9px;

    justify-self: start;
    margin-left: 4px;

    border-radius: 50%;

    background: #9b52d0;

    box-shadow:
        0 0 10px rgba(161, 79, 216, .4);
}

.timeline-content time {
    color: #777180;

    font-size: 10px;
}

.timeline-content h2 {
    margin: 2px 0 2px;

    color: var(--text-bright);

    font-size: 15px;
    font-weight: 550;
}

.timeline-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;

    color: var(--text-soft);
}

.event-open {
    width: 38px;
    height: 38px;

    border: 1px solid rgba(147, 87, 183, .18);
    border-radius: 6px;

    color: var(--violet);

    background:
        linear-gradient(145deg,
            rgba(55, 45, 63, .6),
            rgba(31, 29, 37, .8));

    font-size: 21px;

    cursor: pointer;
}

.event-open:hover {
    border-color: rgba(166, 97, 208, .45);

    box-shadow:
        0 0 14px rgba(154, 78, 203, .16);
}

.event-minecraft .timeline-dot {
    background: var(--minecraft);
}

.event-gungame .timeline-dot {
    background: var(--gungame);
}

.event-bluemap .timeline-dot {
    background: var(--bluemap);
}

.event-system .timeline-dot {
    background: var(--violet);
}

/* =========================================
   Panel components
   ========================================= */

.bluemap-panel {
    padding: 17px;
}

.panel-heading {
    min-height: 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 11px;
}

.panel-heading h3 {
    margin: 0;
}

.panel-heading a {
    color: #b5aabd;
    font-size: 12px;
}

/* =========================================
   System
   ========================================= */

.status-row {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.status-row:last-child {
    border-bottom: 0;
}

.status-row b {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--green);

    font-size: 12px;
    font-weight: 600;
}

.gauges {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin: 7px 0 25px;
}

.gauge {
    display: grid;
    place-items: center;
}

.gauge-ring {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        conic-gradient(var(--violet-bright) calc(var(--value) * 1%),
            #34313d 0);

    box-shadow:
        0 0 14px rgba(153, 84, 198, .06);
}

.gauge-ring::before {
    content: "";

    position: absolute;

    width: 61px;
    height: 61px;

    border-radius: 50%;

    background: #202127;
}

.gauge-ring>div {
    position: relative;
    z-index: 1;

    text-align: center;
}

.gauge-ring small {
    display: block;

    color: #8e8997;

    font-size: 9px;
}

.gauge-ring strong {
    color: var(--text-bright);

    font-size: 14px;
    font-weight: 500;
}

.system-details,
.presence-panel dl {
    margin: 0;
}

.system-details>div,
.presence-panel dl>div {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, .05);
}

.system-details dt,
.presence-panel dt {
    color: var(--text-soft);
}

.system-details dd,
.presence-panel dd {
    margin: 0;

    color: #e0dde4;
}

.down {
    color: #b76de1;
}

.up {
    margin-left: 8px;

    color: var(--green);
}

/* =========================================
   Footer
   ========================================= */

.footer-panel {
    min-height: 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 22px;

    color: #817989;

    font-size: 11px;
}

/* =========================================
   Service states
   ========================================= */

.service-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-status i {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
}

.status-online {
    color: var(--green) !important;
}

.status-online i {
    background: var(--green) !important;
    box-shadow: 0 0 8px rgba(112, 216, 135, .5) !important;
}

.minecraft-status.status-online {
    color: var(--minecraft) !important;
}

.minecraft-status.status-online i {
    background: var(--minecraft) !important;
    box-shadow: 0 0 8px rgba(112, 216, 135, .5) !important;
}

.gungame-status.status-online {
    color: var(--gungame) !important;
}

.gungame-status.status-online i {
    background: var(--gungame) !important;
    box-shadow: 0 0 8px rgba(214, 169, 105, .5) !important;
}

.bluemap-status.status-online {
    color: var(--bluemap) !important;
}

.bluemap-status.status-online i {
    background: var(--bluemap) !important;
    box-shadow: 0 0 8px rgba(111, 183, 255, .5) !important;
}

.status-starting {
    color: #69c6d6 !important;
}

.status-starting i {
    background: #69c6d6 !important;
    box-shadow: 0 0 8px rgba(214, 169, 105, .5) !important;
}

.status-offline {
    color: #927f91 !important;
}

.status-offline i {
    background: #806f80 !important;
    box-shadow: 0 0 6px rgba(128, 111, 128, .3) !important;
}

/* =========================================
   Server presence
   ========================================= */

.game-presence-panel {
    overflow: visible;
    padding: 24px;
}

.game-presence-list {
    display: flex;
    flex-direction: column;
}

.game-presence-item {
    padding: 13px 0;
}

.game-presence-item:first-child {
    padding-top: 0;
}

.game-presence-item+.game-presence-item {
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.game-presence-status,
.game-presence-players {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.game-presence-status {
    min-height: 30px;
}

.game-presence-players {
    position: relative;

    min-height: 26px;

    color: var(--text-soft);

    font-size: 12px;

    cursor: pointer;
}

.game-presence-players>strong {
    position: relative;

    color: #e0dde4;

    font-weight: 400;
}

/* Game activity sections */

.game-activity-section {
    margin-top: 14px;
    padding-top: 17px;

    border-top: 1px solid rgba(255, 255, 255, .06);
}

.game-activity-heading {
    margin-bottom: 12px;

    color: var(--violet);

    font-size: 12px;
    font-weight: 650;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.minecraft-presence,
.hlds-presence {
    position: relative;
    cursor: pointer;
}

.minecraft-presence dd,
.hlds-presence dd {
    position: relative;
}

.player-popover {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    padding: 12px 14px;
    z-index: 30;

    background: rgba(28, 27, 34, 0.98);
    border: 1px solid rgba(175, 110, 220, 0.22);
    border-radius: 8px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(160, 90, 210, 0.08);
}

.player-popover.is-open:not([hidden]) {
    display: block;
}

.player-popover strong {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.player-popover ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.player-popover li {
    padding: 3px 0;
}

.hlds-details {
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid rgba(175, 110, 220, 0.16);

    font-size: 11px;
}

.hlds-details span {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hlds-details b {
    font-weight: 600;
    text-align: right;
}

/* =========================================
   BlueMap
   ========================================= */

.bluemap-frame {
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(175, 110, 220, 0.18);
    background: rgba(15, 15, 20, 0.85);
}

.bluemap-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.bluemap-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 10px;
}

.bluemap-actions a {
    font-size: 12px;
    text-decoration: none;
}

.bluemap-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bluemap-heading h3 {
    margin: 0;
}

.bluemap-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 0;

    cursor: pointer;

    border: 0;
    border-radius: inherit;

    color: inherit;

    background:
        linear-gradient(rgba(20, 19, 26, 0.28),
            rgba(20, 19, 26, 0.38));

    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.bluemap-overlay span {
    display: grid;
    gap: 5px;

    padding: 12px 18px;

    text-align: center;

    background: rgba(23, 22, 29, 0.76);
    border: 1px solid rgba(175, 110, 220, 0.22);
    border-radius: 8px;

    box-shadow:
        0 8px 26px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(160, 90, 210, 0.08);
}

.bluemap-overlay strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bluemap-overlay small {
    font-size: 11px;
    opacity: 0.72;
}

.bluemap-frame.is-active .bluemap-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#bluemap-hint {
    font-size: 11px;
    opacity: 0.55;
}

.bluemap-frame.is-active+.bluemap-actions #bluemap-hint {
    opacity: 0.8;
}

.bluemap-heading b {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bluemap-heading b i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

/* =========================================
   Shared scrolling
   ========================================= */

.home-news-list,
.timeline,
.activity-list,
.news-archive-list,
.news-related-list {
    --scroll-fade: 38px;
}

/* Scrollbars */

.activity-list,
.timeline,
.home-news-list,
.news-archive-list,
.news-related-list {
    scrollbar-width: thin;
    scrollbar-color:
        rgba(175, 110, 220, .35) transparent;
}

.activity-list::-webkit-scrollbar,
.timeline::-webkit-scrollbar,
.home-news-list::-webkit-scrollbar,
.news-archive-list::-webkit-scrollbar,
.news-related-list::-webkit-scrollbar {
    width: 5px;
}

.activity-list::-webkit-scrollbar-track,
.timeline::-webkit-scrollbar-track,
.home-news-list::-webkit-scrollbar-track,
.news-archive-list::-webkit-scrollbar-track,
.news-related-list::-webkit-scrollbar-track {
    background: transparent;
}

.activity-list::-webkit-scrollbar-thumb,
.timeline::-webkit-scrollbar-thumb,
.home-news-list::-webkit-scrollbar-thumb,
.news-archive-list::-webkit-scrollbar-thumb,
.news-related-list::-webkit-scrollbar-thumb {
    background: rgba(175, 110, 220, .35);
    border-radius: 10px;
}

/* Timeline historically uses a slightly wider scrollbar */
.timeline::-webkit-scrollbar {
    width: 6px;
}

/* Scroll fade / cylinder effect */

/* Есть прокрутка, мы на самом верху:
   исчезает только нижний край. */

:is(.home-news-list,
    .timeline,
    .activity-list,
    .minecraft-chat-list,
    .news-archive-list,
    .news-related-list).is-scrollable.is-top {
    -webkit-mask-image:
        linear-gradient(to bottom,
            #000 0,
            #000 calc(100% - var(--scroll-fade)),
            transparent 100%);

    mask-image:
        linear-gradient(to bottom,
            #000 0,
            #000 calc(100% - var(--scroll-fade)),
            transparent 100%);
}


/* Мы где-то в середине:
   исчезают и верх, и низ. */

:is(.home-news-list,
    .timeline,
    .activity-list,
    .minecraft-chat-list,
    .news-archive-list,
    .news-related-list).is-scrollable:not(.is-top):not(.is-bottom) {
    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent 0,
            #000 var(--scroll-fade),
            #000 calc(100% - var(--scroll-fade)),
            transparent 100%);

    mask-image:
        linear-gradient(to bottom,
            transparent 0,
            #000 var(--scroll-fade),
            #000 calc(100% - var(--scroll-fade)),
            transparent 100%);
}

/* =========================================
   Home news
   ========================================= */

.home-news-panel {
    padding: 18px 20px 20px;
}

.home-news-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.home-news-heading h3 {
    margin: 0;
}

.home-news-heading a {
    font-size: 12px;
    color: var(--violet);
    text-decoration: none;
}

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

/* Докрутили до конца:
   верх исчезает, а конец списка виден полностью. */

:is(.home-news-list,
    .timeline,
    .activity-list,
    .minecraft-chat-list,
    .news-archive-list,
    .news-related-list).is-scrollable.is-bottom {
    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent 0,
            #000 var(--scroll-fade),
            #000 100%);

    mask-image:
        linear-gradient(to bottom,
            transparent 0,
            #000 var(--scroll-fade),
            #000 100%);
}


/* Если список короткий и скролла нет —
   никакой маски вообще. */

:is(.home-news-list,
    .timeline,
    .activity-list,
    .minecraft-chat-list,
    .news-archive-list,
    .news-related-list):not(.is-scrollable) {
    -webkit-mask-image: none;
    mask-image: none;
}

.home-news-item {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-news-item:first-child {
    border-top: 0;
}

.home-news-item time {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--muted);
}

.home-news-item h2 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.25;
}

.home-news-item h2 a {
    color: var(--text);
    text-decoration: none;
}

.home-news-item h2 a:hover {
    color: var(--violet);
}

.home-news-summary {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.home-news-summary p {
    margin: 0;
}

.home-news-summary p+p {
    margin-top: 6px;
}

.home-news-empty {
    margin: 14px 0 0;
    color: var(--muted);
}

.home-news-window {
    position: relative;
}

/* =========================================
   News pages
   ========================================= */

.news-page-panel {
    padding: 24px 28px;
}

.news-page-panel>h1 {
    margin: 0 0 22px;
    font-size: 30px;
}

.news-item {
    position: relative;

    padding: 18px 0 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.06);
}

.news-item:first-of-type {
    border-top: 0;
}

.news-item-meta {
    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 11px;
}

.news-item h2 {
    margin: 0 0 7px;

    font-size: 19px;
    line-height: 1.3;
}

.news-item h2 a {
    color: var(--text-bright);
}

.news-item h2 a:hover {
    color: var(--violet-bright);
}

.news-summary {
    margin: 0;

    max-width: 760px;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.5;
}

.news-read-more {
    display: inline-block;

    margin-top: 10px;

    color: var(--violet);

    font-size: 12px;
}

.news-read-more:hover {
    color: var(--violet-bright);
}

.article-panel {
    padding: 26px 30px 32px;
}

.article-back {
    display: inline-block;

    margin-bottom: 22px;

    color: var(--violet);

    font-size: 12px;
}

.article-back:hover {
    color: var(--violet-bright);
}

.article-header {
    margin-bottom: 24px;
}

.article-header time {
    display: block;

    margin-bottom: 8px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 11px;
}

.article-header h1 {
    margin: 0;

    color: var(--text-bright);

    font-size: 30px;
    line-height: 1.25;
}

.article-summary {
    max-width: 760px;

    margin: 12px 0 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.55;
}

.article-content {
    max-width: 820px;

    color: var(--text);

    font-size: 14px;
    line-height: 1.7;
}

.article-content p {
    margin: 0 0 16px;
}

.article-content h2 {
    margin: 28px 0 12px;

    color: var(--text-bright);

    font-size: 21px;
}

.article-content h3 {
    margin: 24px 0 10px;

    color: var(--violet);

    font-size: 15px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 16px 22px;
}

.article-content li+li {
    margin-top: 6px;
}

.article-content a {
    color: var(--violet-bright);
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content code {
    padding: 2px 5px;

    border-radius: 4px;

    background:
        rgba(255, 255, 255, 0.06);

    font-family:
        "Cascadia Code",
        "Consolas",
        monospace;

    font-size: 0.92em;
}

.article-content pre {
    overflow-x: auto;

    padding: 14px 16px;

    border:
        1px solid rgba(255, 255, 255, 0.06);

    border-radius: 6px;

    background:
        rgba(10, 10, 14, 0.42);
}

.news-archive-panel {
    padding: 24px;
}

.news-archive-list {
    display: flex;
    flex-direction: column;

    max-height: 230px;
    overflow-y: auto;

    padding-right: 7px;

    --scroll-fade: 28px;
}

.news-archive-item {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
    padding: 0 10px;
    border-radius: 4px;

    border-top:
        1px solid rgba(255, 255, 255, .05);

    color: var(--text-soft);


    font-size: 13px;
}

.news-archive-item:first-child {
    border-top: 0;
}

.news-archive-item:hover {
    color: var(--text-bright);
}

.news-archive-item b {
    min-width: 24px;

    color: var(--violet);

    font-size: 11px;
    font-weight: 500;

    text-align: right;
}

.news-archive-year {
    padding: 12px 0 6px;

    color: var(--violet);

    font-size: 11px;
    font-weight: 650;

    letter-spacing: .08em;
}

.news-archive-year:first-child {
    padding-top: 2px;
}

.news-archive-item.active {
    color: var(--text-bright);

    background:
        linear-gradient(90deg,
            rgba(125, 83, 158, .28),
            rgba(99, 70, 123, .08));
}

.news-archive-item.active b {
    color: var(--violet-bright);
}

.news-search {
    margin-top: 18px;
    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, .06);
}

.news-search h3 {
    margin-bottom: 12px;
}

.news-search-form {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 38px;

    gap: 7px;
}

.news-search-form input {
    min-width: 0;
    height: 38px;

    padding: 0 11px;

    color: var(--text);

    border:
        1px solid rgba(175, 110, 220, .18);

    border-radius: 5px;

    outline: none;

    background:
        rgba(12, 12, 17, .34);
}

.news-search-form input::placeholder {
    color:
        rgba(255, 255, 255, .32);
}

.news-search-form input:focus {
    border-color:
        rgba(190, 105, 255, .55);

    box-shadow:
        0 0 10px rgba(160, 90, 210, .08);
}

.news-search-form button {
    height: 38px;

    color: var(--violet);

    cursor: pointer;

    border:
        1px solid rgba(175, 110, 220, .18);

    border-radius: 5px;

    background:
        rgba(70, 48, 82, .24);
}

.news-search-form button:hover {
    color: var(--violet-bright);

    border-color:
        rgba(190, 105, 255, .45);
}

.news-search-result-heading {
    margin: -8px 0 16px;

    color: var(--text-soft);

    font-size: 12px;
}

.news-search-result-heading strong {
    color: var(--text);
}

.news-search-result-heading a {
    margin-left: 10px;

    color: var(--violet);
}

.news-search-empty {
    padding: 22px 0;

    color: var(--text-soft);
}

.news-calendar {
    margin-top: 18px;
    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, .06);
}

.news-calendar-heading {
    display: grid;
    grid-template-columns:
        32px 1fr 32px;

    align-items: center;

    margin-bottom: 14px;
}

.news-calendar-heading strong {
    text-align: center;

    color: var(--text);

    font-size: 12px;
    font-weight: 600;
}

.news-calendar-heading a {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    color: var(--violet);

    border:
        1px solid rgba(175, 110, 220, .16);

    border-radius: 5px;

    background:
        rgba(70, 48, 82, .16);
}

.news-calendar-heading a:hover {
    color: var(--violet-bright);

    border-color:
        rgba(190, 105, 255, .4);
}

.news-calendar-weekdays,
.news-calendar-grid {
    display: grid;
    grid-template-columns:
        repeat(7, 1fr);
}

.news-calendar-weekdays {
    margin-bottom: 5px;

    color:
        rgba(255, 255, 255, .34);

    font-size: 9px;

    text-align: center;
}

.calendar-day,
.calendar-empty {
    min-height: 30px;

    display: grid;
    place-items: center;

    position: relative;

    font-size: 11px;
}

.calendar-day {
    color:
        rgba(255, 255, 255, .46);

    border-radius: 4px;
}

.calendar-day.has-news {
    color: var(--text-bright);

    cursor: pointer;
}

.calendar-day.has-news:hover {
    background:
        rgba(125, 83, 158, .18);
}

.calendar-day.has-news i {
    position: absolute;

    bottom: 3px;

    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--violet);

    box-shadow:
        0 0 6px rgba(190, 105, 255, .35);
}

.calendar-day.active {
    background:
        rgba(125, 83, 158, .32);

    box-shadow:
        inset 0 0 0 1px rgba(178, 113, 219, .14);
}

.news-related {
    margin-top: 18px;
    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, .06);
}

.news-related h3 {
    margin-bottom: 10px;
}

.news-related-list {
    max-height: 150px;
    overflow-y: auto;

    padding-right: 7px;

    --scroll-fade: 26px;
}

.news-related-item {
    min-height: 36px;

    display: flex;
    align-items: center;

    padding: 7px 8px;

    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.35;

    border-top:
        1px solid rgba(255, 255, 255, .045);

    border-radius: 4px;
}

.news-related-item:first-child {
    border-top: 0;
}

a.news-related-item:hover {
    color: var(--text-bright);

    background:
        rgba(125, 83, 158, .14);
}

.news-related-item.current {
    opacity: .36;

    cursor: default;
}

.home-news-item h2 a:focus-visible,
.home-news-heading a:focus-visible {
    color: var(--violet-bright);

    outline:
        1px solid rgba(190, 105, 255, .45);

    outline-offset: 3px;

    border-radius: 2px;
}

.calendar-day.today {
    box-shadow:
        inset 0 0 0 1px rgba(190, 105, 255, .32);
}

.calendar-day.active.today {
    box-shadow:
        inset 0 0 0 1px rgba(190, 105, 255, .55);
}

/* =========================================
   Responsive
   ========================================= */

/* <= 1180px */

@media (max-width: 1180px) {
    .portal-grid {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .right-column {
        grid-column: 1 / -1;

        display: grid;
        grid-template-columns: repeat(3, 1fr);

        gap: 18px;
    }

    .right-column .panel {
        margin-bottom: 0;
    }
}

/* <= 800px */

@media (max-width: 800px) {

    .site-shell {
        width: calc(100% - 18px);
        margin: 9px auto;
    }

    .portal-grid {
        display: block;
    }

    .left-column {
        display: none;
    }

    .right-column {
        display: block;
    }

    .right-column .panel {
        margin-bottom: 18px;
    }

    .topbar {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        height: auto;
        min-height: 0;

        padding: 12px 14px;

        gap: 10px;
    }

    .brand {
        display: flex;

        width: 100%;

        margin: 0;

        align-self: stretch;
        justify-self: auto;

        gap: 14px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;

        flex: 0 0 46px;

        font-size: 15px;
    }

    .brand-copy {
        width: max-content;
    }

    .brand-name {
        font-size: 16px;
        letter-spacing: .18em;
    }

    .brand-meta {
        margin-top: 2px;
    }

    .brand-subtitle {
        font-size: 10px;
    }

    .topbar-online {
        font-size: 9px;
    }

    .topbar-tagline {
        display: block;

        width: 100%;
        max-width: none;

        margin: 0;

        text-align: left;

        font-size: 12px;
        line-height: 1.45;

        white-space: normal;
    }

    .topbar-divider {
        display: none;
    }

    .topbar-fireplace,
    .topbar .fireplace-symbol {
        display: none;
    }
}

/* Editorial sections: news covers and the dedicated chronicle. */
.chronicle-page-panel {
    padding: 25px 28px 28px;
}

.news-item.has-cover {
    display: grid;
    grid-template-columns: minmax(180px, 30%) 1fr;
    gap: 22px;
    align-items: stretch;
}

.news-item-cover {
    min-height: 150px;
    border-radius: 7px;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.news-item-copy {
    min-width: 0;
}

.article-cover {
    display: block;
    width: 100%;
    max-height: 560px;
    margin: 22px 0 28px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

.chronicle-page-header {
    max-width: 760px;
    margin-bottom: 24px;
}

.chronicle-heading-title {
    margin-bottom: 11px;
}

.chronicle-heading-title h1 {
    margin: 0;
    color: var(--violet-bright);
    font-size: 14px;
    letter-spacing: .065em;
    line-height: 1.2;
    text-transform: uppercase;
}

.chronicle-page-header p,
.chronicle-guide-panel p,
.chronicle-empty span {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.65;
}

.chronicle-grid {
    display: grid;
    gap: 18px;
}

.chronicle-card {
    display: grid;
    grid-template-columns: minmax(270px, 40%) 1fr;
    gap: 26px;
    align-items: center;
    background: transparent;
}

.chronicle-card:hover {
    background: transparent;
}

.chronicle-card-cover {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    color: var(--violet-bright);
    background: linear-gradient(135deg, rgba(165, 107, 211, .16), rgba(20, 18, 28, .78));
    background-position: center;
    background-size: cover;
    text-decoration: none;
}

.chronicle-card-copy {
    display: flex;
    min-width: 0;
    padding: 20px 20px 20px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.chronicle-card-meta,
.chronicle-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: var(--muted);
    font-size: 11px;
}

.chronicle-category {
    padding: 4px 9px;
    border: 1px solid rgba(111, 180, 239, .28);
    border-radius: 999px;
    color: #79bff0;
    background: rgba(54, 124, 180, .08);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.chronicle-card-meta time,
.chronicle-entry-meta time,
.chronicle-place {
    align-self: center;
}

.chronicle-card h2 {
    margin: 11px 0 9px;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.18;
}

.chronicle-card h2 a {
    color: var(--text-bright);
    text-decoration: none;
}

.chronicle-card p {
    margin: 0 0 16px;
    color: var(--text-soft);
    line-height: 1.55;
}

.chronicle-card-details {
    display: flex;
    width: 100%;
    margin: 1px 0 4px;
    padding: 10px 0;
    gap: 12px 24px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, .045);
}

.chronicle-card-details span {
    display: grid;
    gap: 2px;
    color: var(--text-soft);
    font-size: 11px;
}

.chronicle-card-details b {
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.chronicle-empty {
    display: grid;
    gap: 8px;
    padding: 42px 28px;
    border: 1px dashed rgba(191, 112, 239, .2);
    border-radius: 9px;
    text-align: center;
}

.chronicle-guide-panel h3 {
    margin: 0;
    color: var(--violet-bright);
    font-size: 13px;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.chronicle-guide-panel {
    padding: 22px;
}

.chronicle-guide-panel .card-heading-title {
    margin-bottom: 14px;
}

.chronicle-guide-panel p {
    margin: 0;
    font-size: 13px;
}

.chronicle-players {
    margin-top: 16px;
    color: var(--text-soft);
    font-size: 13px;
}

.chronicle-article .article-header h1 {
    margin-top: 11px;
}

.chronicle-article .chronicle-entry-meta {
    align-items: center;
}

@media (max-width: 800px) {
    .news-item.has-cover,
    .chronicle-card {
        grid-template-columns: 1fr;
    }

    .news-item-cover {
        min-height: 190px;
    }

    .chronicle-card-cover {
        min-height: 210px;
    }

    .chronicle-card-copy {
        padding: 0;
    }

    .chronicle-card {
        gap: 18px;
    }

    .chronicle-page-panel {
        padding: 20px;
    }
}

/* =========================================
   Home — stories and detailed server cards
   ========================================= */

.home-portal-grid {
    align-items: start;
}

.card-heading-title,
.game-activity-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.card-heading-title h3 {
    margin: 0;
}

.card-title-icon {
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    display: inline-grid;
    place-items: center;
    color: var(--violet-bright);
    border: 1px solid rgba(191, 112, 239, .22);
    border-radius: 6px;
    background: linear-gradient(145deg, rgba(165, 107, 211, .11), rgba(165, 107, 211, .035));
    box-shadow: 0 0 12px rgba(165, 107, 211, .055);
}

.card-title-icon img {
    display: block;
    width: 20px;
    height: 20px;
}

.stories-panel {
    padding: 24px;
}

.stories-heading {
    margin-bottom: 17px;
}

.stories-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.stories-controls button,
.stories-dots button {
    border: 1px solid rgba(191, 112, 239, .25);
    color: var(--text-soft);
    background: rgba(165, 107, 211, .07);
    cursor: pointer;
}

.stories-controls>button {
    width: 31px;
    height: 31px;
    border-radius: 6px;
}

.stories-dots {
    display: flex;
    gap: 6px;
}

.stories-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 50%;
}

.stories-dots button.is-active {
    border-color: var(--violet-bright);
    background: var(--violet-bright);
    box-shadow: 0 0 9px rgba(191, 112, 239, .55);
}

.stories-stage {
    min-height: 310px;
}

.story-slide {
    min-height: 310px;
    display: grid;
    grid-template-columns: minmax(300px, 1.25fr) minmax(260px, .75fr);
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
}

.story-slide[hidden] {
    display: none;
}

.story-cover {
    min-height: 310px;
    background-position: center;
    background-size: cover;
    border-radius: 8px 0 0 8px;
    filter: brightness(.94) saturate(.94);
    box-shadow: inset -26px 0 40px rgba(16, 15, 22, .3);
}

.story-copy {
    padding: 24px 31px 31px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.story-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
    font-size: 11px;
}

.story-type {
    padding: 5px 8px;
    color: var(--violet-bright);
    border: 1px solid rgba(191, 112, 239, .2);
    border-radius: 999px;
    background: rgba(165, 107, 211, .08);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.story-type-chronicle {
    color: #78c3ff;
    border-color: rgba(111, 183, 255, .22);
    background: rgba(111, 183, 255, .08);
}

.story-copy h2 {
    margin: 21px 0 10px;
    color: var(--text-bright);
    font-size: clamp(22px, 2vw, 31px);
    line-height: 1.16;
}

.story-copy p {
    margin: 0;
    color: var(--text-soft);
}

.story-link {
    margin-top: 25px;
    color: var(--violet-bright);
    font-weight: 600;
}

.home-dashboard-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
    gap: 18px;
}

.home-dashboard-row>.panel {
    margin-bottom: 18px;
    padding: 24px;
}

.compact-events-panel .card-heading-title,
.compact-system-panel .card-heading-title {
    margin-bottom: 17px;
}

.compact-events-panel .timeline {
    height: 220px;
    min-height: 0;
}

.compact-events-panel .timeline-content h2 {
    font-size: 14px;
}

.compact-events-panel .timeline-content p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-system-panel .gauges {
    gap: 10px;
}

.compact-system-panel .gauge {
    transform: scale(.88);
}

.compact-system-panel .system-details {
    margin-top: 12px;
}

.home-right-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-right-column>.panel {
    margin: 0;
}

.server-card {
    padding: 20px;
    overflow: visible;
}

.server-card-heading {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.server-card-heading .card-title-icon {
    width: 32px;
    height: 32px;
}

.minecraft-title-icon {
    object-fit: contain;
    padding: 2px;
}

.server-card-heading h3 {
    margin: 0;
    color: var(--violet);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.server-card-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    font-size: 12px;
	font-weight: 600;
    white-space: nowrap;
}

.server-card-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 9px currentColor;
}

.server-card-status.status-online { color: var(--green); }
.server-card-status.status-starting { color: var(--gungame); }
.server-card-status.status-offline,
.server-card-status.status-stopping { color: #95899a; }

.server-card-facts {
    margin: 0;
}

.server-card-facts>div {
    min-height: 35px;
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, .035);
}

.server-card-facts dt {
    color: var(--text-soft);
    font-size: 12px;
}

.server-card-facts dd {
    margin: 0;
    min-width: 0;
    color: var(--text);
    text-align: right;
}

.server-card-facts code {
    color: #d6d1da;
    font: inherit;
    font-size: 12px;
}

.server-player-details {
    position: relative;
}

.server-player-details summary {
    color: var(--green);
    cursor: pointer;
    list-style: none;
}

.server-player-details summary::-webkit-details-marker { display: none; }

.server-player-list {
    position: absolute;
    z-index: 25;
    top: calc(100% + 9px);
    right: 0;
    width: min(310px, calc(100vw - 50px));
    padding: 8px;
    border: 1px solid rgba(191, 112, 239, .24);
    border-radius: 7px;
    background: rgba(24, 23, 31, .985);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.server-player-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.server-player-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px;
}

.server-player-item+.server-player-item {
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.server-player-item-details {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    font-size: 11px;
}

.server-player-item-details strong {
    color: var(--green);
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-player-item .minecraft-player-head {
    flex: 0 0 auto;
}

.server-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hlds-server-card .server-card-actions {
    grid-template-columns: 1fr;
}

.server-card-actions button,
.server-card-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--violet-bright);
    border: 1px solid rgba(191, 112, 239, .19);
    border-radius: 6px;
    background: rgba(165, 107, 211, .055);
    cursor: pointer;
    font-size: 11px;
}

.server-card-actions button.is-copied {
    color: var(--green);
    border-color: rgba(112, 216, 135, .3);
}

.server-card-note {
    margin: 11px 0 0;
    color: var(--text-soft);
    font-size: 11.5px;
    line-height: 1.45;
}

.server-card-note a { color: var(--violet); }

@media (max-width: 1180px) {
    .story-slide {
        grid-template-columns: 1.05fr .95fr;
    }

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

    .server-card-heading {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .server-card-status {
        grid-column: 2;
    }
}

@media (max-width: 800px) {
    .stories-panel,
    .home-dashboard-row>.panel,
    .server-card {
        padding: 20px;
    }

    .story-slide {
        grid-template-columns: 1fr;
    }

    .story-cover {
        min-height: 220px;
        box-shadow: inset 0 -24px 36px rgba(16, 15, 22, .3);
    }

    .story-copy {
        padding: 23px;
    }

    .stories-stage,
    .story-slide {
        min-height: 0;
    }

    .story-meta {
        align-items: flex-start;
    }

    .story-copy h2 {
        font-size: 23px;
    }

    .home-dashboard-row {
        display: block;
    }

    .home-right-column {
        margin-top: 18px;
    }

    .server-card-heading {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .server-card-status {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    .stories-heading {
        align-items: flex-start;
    }

    .stories-controls>button {
        width: 29px;
        height: 29px;
    }

    .stories-dots {
        display: none;
    }

    .story-cover {
        min-height: 180px;
    }

    .story-meta {
        display: block;
    }

    .story-meta time {
        display: block;
        margin-top: 9px;
    }

    .server-card-heading {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .server-card-status {
        grid-column: 1 / -1;
    }

    .server-card-facts>div {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .server-card-actions {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Theme selector and background reveals
   ========================================= */

/* Compact server status shared by every page */

.topbar-server-status {
    grid-column: 2;
    min-width: 0;
    width: 100%;
    display: block !important;
    justify-self: stretch;
    padding: 0 22px;
}

.topbar-server-status .game-presence-list {
    min-width: 0;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.topbar-server-status .game-presence-item {
    min-width: 0;
    padding: 0 22px;
}

.topbar-server-status .game-presence-item:first-child {
    padding-top: 0;
    padding-left: 0;
}

.topbar-server-status .game-presence-item + .game-presence-item {
    border-top: 0;
    border-left: 1px solid rgba(190, 105, 255, .3);
}

.topbar-server-status .game-presence-status,
.topbar-server-status .game-presence-players {
    min-height: 22px;
    gap: 10px;
    font-size: 12px;
    line-height: 1.25;
}

.topbar-server-status .game-presence-status > :first-child,
.topbar-server-status .game-presence-players > :first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-server-status .game-presence-status > :last-child,
.topbar-server-status .game-presence-players > :last-child {
    flex: 0 0 auto;
    white-space: nowrap;
}

.topbar-server-status .server-version {
    font-size: 10px;
}

.topbar-server-status .player-popover {
    top: calc(100% + 5px);
    z-index: 60;
}

.game-activity-panel .game-activity-section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

@media (max-width: 800px) {
    .topbar-server-status {
        order: 3;
        grid-column: auto;
        width: 100%;
        padding: 9px 0 0;
        border-top: 1px solid rgba(190, 105, 255, .16);
    }

    .topbar-server-status .game-presence-item {
        padding: 0 10px;
    }

    .topbar-server-status .game-presence-status,
    .topbar-server-status .game-presence-players {
        font-size: 9px;
    }
}

.theme-toggle {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: transform .22s ease, filter .22s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.13) drop-shadow(0 0 10px rgba(183, 95, 235, .36));
}

.theme-toggle:active {
    transform: translateY(0) scale(.975);
}

.theme-toggle-chevron {
    position: absolute;
    right: -8px;
    bottom: 2px;
    color: rgba(196, 126, 235, .62);
    font-size: 13px;
    line-height: 1;
    text-shadow: 0 0 7px rgba(183, 95, 235, .32);
    transition: transform .22s ease, opacity .22s ease;
}

.theme-toggle[aria-expanded="true"] .theme-toggle-chevron {
    transform: rotate(180deg);
}

.theme-notice {
    position: absolute;
    z-index: 45;
    top: 70px;
    right: 16px;
    max-width: 190px;
    padding: 7px 11px;
    border: 1px solid rgba(193, 126, 232, .22);
    border-radius: 9px;
    color: rgba(238, 225, 246, .9);
    background: rgba(22, 19, 29, .72);
    -webkit-backdrop-filter: blur(5px) saturate(1.08);
    backdrop-filter: blur(5px) saturate(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .045);
    font-size: 12px;
    letter-spacing: .015em;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px) scale(.98);
    transition: opacity .26s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.theme-notice::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 52px;
    width: 8px;
    height: 8px;
    border-top: 1px solid rgba(193, 126, 232, .22);
    border-left: 1px solid rgba(193, 126, 232, .22);
    background: rgba(22, 19, 29, .72);
    transform: rotate(45deg);
}

.theme-notice.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.theme-toggle.is-hinting {
    animation: theme-toggle-breathe 1.7s ease-in-out 2;
}

@keyframes theme-toggle-breathe {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
    50% { transform: translateY(-1px) scale(1.025); filter: brightness(1.12) drop-shadow(0 0 11px rgba(183, 95, 235, .32)); }
}

.topbar {
    overflow: visible;
    z-index: 40;
}

.theme-toggle:focus-visible,
.theme-toggle-mobile:focus-visible,
.theme-menu button:focus-visible {
    outline: 2px solid var(--violet-bright);
    outline-offset: 3px;
}

.theme-toggle-mobile {
    display: none;
}

.theme-menu {
    position: absolute;
    top: 68px;
    right: 14px;
    z-index: 30;

    width: 224px;
    padding: 12px;

    border: 1px solid rgba(175, 108, 219, .3);
    border-radius: 9px;

    background: rgba(22, 21, 29, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow:
        0 18px 42px rgba(0, 0, 0, .52),
        0 0 28px rgba(157, 84, 204, .12);
}

.theme-menu[hidden] {
    display: none;
}

.theme-menu-title {
    margin: 1px 5px 9px;
    color: var(--violet);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.theme-menu button {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;

    color: var(--text-soft);
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.theme-menu button:hover,
.theme-menu button.is-active {
    color: var(--text-bright);
    border-color: rgba(175, 108, 219, .2);
    background: rgba(153, 82, 208, .14);
}

.theme-glass-control,
.theme-header-control {
    margin: 11px 4px 2px;
    padding: 11px 7px 4px;
    border-top: 1px solid rgba(175, 108, 219, .16);
}

.theme-glass-heading,
.theme-glass-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.theme-glass-heading {
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 11px;
}

.theme-glass-heading output {
    min-width: 32px;
    color: var(--violet);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

#panel-transparency,
#topbar-transparency {
    width: 100%;
    height: 18px;
    margin: 0;
    accent-color: var(--violet-bright);
    cursor: pointer;
}

.theme-sticky-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(175, 108, 219, .11);
    color: var(--text-soft);
    font-size: 11px;
    cursor: pointer;
}

.theme-sticky-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-sticky-toggle i {
    position: relative;
    width: 31px;
    height: 17px;
    flex: 0 0 31px;
    border: 1px solid rgba(175, 108, 219, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    transition: background .18s ease, border-color .18s ease;
}

.theme-sticky-toggle i::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--text-soft);
    transition: transform .18s ease, background .18s ease;
}

.theme-sticky-toggle input:checked + i {
    border-color: rgba(191, 112, 239, .55);
    background: rgba(165, 107, 211, .25);
}

.theme-sticky-toggle input:checked + i::after {
    transform: translateX(14px);
    background: var(--violet-bright);
}

.theme-sticky-toggle input:focus-visible + i {
    outline: 2px solid var(--violet-bright);
    outline-offset: 3px;
}

body.has-sticky-topbar .topbar {
    position: sticky;
    top: 0;
}

body.has-topbar-transparency .topbar {
    background:
        linear-gradient(145deg,
            rgba(37, 37, 45, var(--custom-topbar-top-alpha)),
            rgba(24, 25, 31, var(--custom-topbar-bottom-alpha))) !important;
    -webkit-backdrop-filter: blur(var(--custom-topbar-blur)) saturate(.96) !important;
    backdrop-filter: blur(var(--custom-topbar-blur)) saturate(.96) !important;
}

.theme-glass-scale {
    margin-top: 1px;
    color: rgba(159, 155, 169, .58);
    font-size: 9px;
}

html:not(.cofiplace-page-enter) body.has-panel-transparency:not(.is-theme-changing):not(.is-page-leaving) .site-shell .panel {
    background:
        linear-gradient(145deg,
            rgba(37, 37, 45, var(--custom-panel-top-alpha)),
            rgba(24, 25, 31, var(--custom-panel-bottom-alpha))) !important;
    -webkit-backdrop-filter: blur(var(--custom-panel-blur)) saturate(.94) !important;
    backdrop-filter: blur(var(--custom-panel-blur)) saturate(.94) !important;
}

.site-shell .panel {
    transition:
        background .46s ease,
        border-color .46s ease,
        opacity .46s ease,
        box-shadow .46s ease,
        transform .46s cubic-bezier(.2, .8, .2, 1),
        -webkit-backdrop-filter .46s ease,
        backdrop-filter .46s ease;
}

body.is-theme-changing .site-shell .panel,
body.is-page-leaving .site-shell .panel,
html.cofiplace-page-enter body .site-shell .panel {
    background:
        radial-gradient(circle at 18% -35%,
            rgba(255, 255, 255, .045),
            transparent 46%),
        linear-gradient(135deg,
            rgba(85, 69, 103, .16),
            rgba(35, 31, 47, .11) 46%,
            rgba(17, 18, 28, .21)) !important;

    border-color: rgba(220, 202, 236, .13) !important;

    -webkit-backdrop-filter:
        blur(3px)
        saturate(1.08)
        brightness(1.02) !important;
    backdrop-filter:
        blur(3px)
        saturate(1.08)
        brightness(1.02) !important;

    box-shadow:
        inset 0 1px rgba(255, 255, 255, .065),
        inset 0 -1px rgba(124, 89, 157, .055),
        0 14px 38px rgba(0, 0, 0, .24),
        0 0 24px rgba(163, 98, 208, .045) !important;
}

body.is-page-leaving .site-shell .panel {
    opacity: .94;
    transform: scale(.998);
}

body.is-theme-changing .site-shell .panel::after,
body.is-page-leaving .site-shell .panel::after,
html.cofiplace-page-enter body .site-shell .panel::after {
    background:
        linear-gradient(115deg,
            rgba(255, 255, 255, .026),
            transparent 22%,
            transparent 72%,
            rgba(191, 112, 239, .018));

    box-shadow:
        inset 0 1px rgba(255, 255, 255, .055),
        inset 1px 0 rgba(255, 255, 255, .018),
        inset 0 -1px rgba(0, 0, 0, .11);
}

body.background-digital-hearth-v2 .events-panel.is-hearth-peek {
    background: linear-gradient(145deg,
        rgba(37, 37, 45, .74),
        rgba(24, 25, 31, .81));

    -webkit-backdrop-filter: blur(3px) saturate(.88);
    backdrop-filter: blur(3px) saturate(.88);
}

@media (max-width: 800px) {
    .theme-toggle-mobile {
        position: absolute;
        top: 19px;
        right: 96px;
        z-index: 3;

        display: grid;
        width: 32px;
        height: 32px;
        place-items: center;

        padding: 0;
        border: 0;
        color: var(--violet);
        background: transparent;
        font-size: 20px;
        cursor: pointer;
        transition: transform .22s ease, filter .22s ease;
    }

    .theme-toggle-mobile:active {
        transform: scale(.92);
    }

    .theme-notice {
        top: 57px;
        right: 78px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .theme-notice::before {
        right: 21px;
    }

    .theme-menu {
        top: 58px;
        right: 12px;
        width: min(224px, calc(100% - 24px));
    }

    body.is-theme-changing .site-shell .panel,
    body.is-page-leaving .site-shell .panel,
    html.cofiplace-page-enter body .site-shell .panel {
        background:
            linear-gradient(135deg,
                rgba(64, 54, 76, .73),
                rgba(26, 26, 35, .82)) !important;

        border-color: rgba(205, 184, 221, .16) !important;

        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;

        transform: none;
    }

    body.background-digital-hearth-v2 .events-panel.is-hearth-peek {
        background: linear-gradient(145deg,
            rgba(37, 37, 45, .955),
            rgba(24, 25, 31, .97));
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-shell .panel {
        transition: none;
    }

    .theme-toggle.is-hinting {
        animation: none;
    }
}

.mobile-navigation {
    display: none;
}

@media (max-width: 800px) {
    .topbar .brand {
        box-sizing: border-box;
        padding-right: 100px;
    }

    .mobile-navigation {
        display: block;
        width: 100%;
    }

    .mobile-navigation summary {
        position: absolute;
        top: 22px;
        right: 14px;
        z-index: 1;
        color: var(--violet);
        cursor: pointer;
        list-style: none;
    }

    .mobile-navigation summary::-webkit-details-marker {
        display: none;
    }

    .mobile-navigation .navigation-panel {
        margin: 4px 0 0;
        padding: 12px 0 0;
        border: 0;
        border-top: 1px solid var(--panel-border);
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
}

html:has(body.background-courtyard) {
    background: #1b1922 url('../images/background-courtyard-contours.svg') center top / cover fixed no-repeat;
    overscroll-behavior-y: none;
}

body.background-courtyard,
body.background-courtyard::before {
    background: transparent;
}

body.background-neon-wall {
    background: #15111c url('../images/background-neon-wall.svg') center top / cover fixed no-repeat;
}

body.background-retrowave {
    background: #10101a url('../images/background-retrowave-full.svg') center top / 100% 100% scroll no-repeat;
}


body.background-courtyard-soft {
    background: #15131b url('../images/background-courtyard-outline.svg') center top / cover fixed no-repeat;
}

body.background-courtyard-soft::before {
    background: none;
}

@media (max-width: 800px) {

    body.background-courtyard,
    body.background-neon-wall,
    body.background-retrowave,
    body.background-courtyard-soft {
        background-attachment: scroll;
        background-size: auto 100vh;
    }
}

html:has(body.background-retrowave-art) {
    background:
        #111019 url('../images/cofiplace-retrowave-site.webp') center top / cover fixed no-repeat;

    overscroll-behavior-y: none;
}

body.background-retrowave-art,
body.background-retrowave-art::before {
    background: transparent;
}

html:has(body.background-retrowave-minimal) {
    background:
        #100e18 url('../images/cofiplace-retrowave-minimal-site.webp') center top / cover fixed no-repeat;

    overscroll-behavior-y: none;
}

body.background-retrowave-minimal,
body.background-retrowave-minimal::before {
    background: transparent;
}

html:has(body.background-pixel-retrowave) {
    background:
        #080b1a url('../images/cofiplace-pixel-retrowave-site.webp') center top / cover fixed no-repeat;

    overscroll-behavior-y: none;
}

body.background-pixel-retrowave,
body.background-pixel-retrowave::before {
    background: transparent;
}

html:has(body.background-pixel-retrowave-v2) {
    background:
        #080817 url("../images/cofiplace-pixel-retrowave-v2-site.webp") center top / cover fixed no-repeat;
    overscroll-behavior-y: none;
}

body.background-pixel-retrowave-v2,
body.background-pixel-retrowave-v2::before {
    background: transparent;
}

html:has(body.background-digital-city-v3) {
    background:
        #080716 url("../images/cofiplace-digital-city-v3-site.webp") center top / cover fixed no-repeat;
    overscroll-behavior-y: none;
}

body.background-digital-city-v3,
body.background-digital-city-v3::before {
    background: transparent;
}

html:has(body.background-digital-hearth-v1) {
    background:
        #090716 url("../images/cofiplace-digital-hearth-v1-site.webp") center top / cover fixed no-repeat;
    overscroll-behavior-y: none;
}

body.background-digital-hearth-v1,
body.background-digital-hearth-v1::before {
    background: transparent;
}

html:has(body.background-digital-hearth-v2) {
    background:
        #090716 url("../images/cofiplace-digital-hearth-v2-site.webp") center top / cover fixed no-repeat;
    overscroll-behavior-y: none;
}

body.background-digital-hearth-v2,
body.background-digital-hearth-v2::before {
    background: transparent;
}

/* =========================================
   Two-column portal layout v1
   ========================================= */

.topbar {
    width: 100%;
    height: auto;
    min-height: 64px;
    margin: 0 0 18px;
    padding: 0;

    display: block;

    border-right: 0;
    border-left: 0;
    border-radius: 0;
}

.topbar-inner {
    position: relative;

    width: min(1440px, calc(100% - 40px));
    min-height: 64px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 140px;
    align-items: center;
    gap: 18px;
}

.topbar .brand {
    grid-column: 1;
    margin: 0;
}

.brand-navigation {
    position: relative;
    flex: 0 0 auto;
}

.brand-navigation > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.brand-navigation > summary::-webkit-details-marker {
    display: none;
}

.brand-navigation > summary::after {
    content: "⌄";
    position: absolute;
    right: 4px;
    bottom: 2px;

    color: rgba(224, 189, 247, .7);
    font-size: 10px;
    line-height: 1;
}

.brand-navigation[open] > summary,
.brand-navigation > summary:hover {
    border-color: rgba(190, 105, 255, .72);
    box-shadow:
        0 0 18px rgba(153, 81, 203, .2),
        inset 0 0 18px rgba(136, 76, 177, .12);
}

.brand-navigation-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 80;

    width: 260px;
}

.brand-navigation-popover .navigation-panel {
    padding: 20px;
    margin: 0;

    background:
        linear-gradient(145deg,
            rgba(37, 37, 45, .985),
            rgba(24, 25, 31, .992));

    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.top-navigation {
    grid-column: 2;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.top-navigation a {
    min-height: 36px;
    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    border: 1px solid transparent;
    border-radius: 6px;

    color: #cac7d0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .005em;
    white-space: nowrap;

    transition:
        color .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.top-navigation a:hover {
    color: var(--text-bright);
    background: rgba(190, 105, 255, .07);
    border-color: rgba(190, 105, 255, .13);
}

.top-navigation a.active {
    color: var(--text-bright);
    background: rgba(157, 103, 185, .2);
    border-color: rgba(190, 105, 255, .24);
}

.top-navigation-icon {
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    color: var(--violet);
}

.top-navigation-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar .topbar-fireplace {
    grid-column: 3;
    justify-self: end;
    right: 0;
}

.portal-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.sidebar-server-summary {
    overflow: visible;
}

@media (max-width: 1180px) {
    .topbar-inner {
        grid-template-columns: 245px minmax(0, 1fr) 122px;
    }

    .top-navigation {
        gap: 2px;
    }

    .top-navigation a {
        padding: 0 8px;
        gap: 5px;
        font-size: 12px;
    }

    .portal-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .right-column {
        grid-column: auto;
        display: block;
    }

    .right-column .panel {
        margin-bottom: 18px;
    }
}

@media (max-width: 980px) {
    .topbar-inner {
        grid-template-columns: minmax(0, 1fr) 122px;
    }

    .top-navigation {
        display: none;
    }

    .topbar .topbar-fireplace {
        grid-column: 2;
    }

    .portal-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
    }
}

@media (max-width: 800px) {
    .topbar {
        min-height: 0;
        margin-bottom: 9px;
        padding: 0;
    }

    .topbar-inner {
        width: calc(100% - 18px);
        min-height: 70px;
        display: flex;
        align-items: center;
        padding: 10px 14px;
    }

    .topbar .brand {
        width: auto;
        padding-right: 42px;
    }

    .brand-navigation-popover {
        top: calc(100% + 11px);
        width: min(280px, calc(100vw - 36px));
    }

    .theme-toggle-mobile {
        top: 19px;
        right: 14px;
    }

    .portal-grid {
        display: block;
    }
}

/* =========================================
   Digital hearth — glass panels
   ========================================= */

body.background-digital-hearth-v2 {
    --hearth-panel-top: rgba(37, 37, 45, .91);
    --hearth-panel-bottom: rgba(24, 25, 31, .93);

    --hearth-side-top: rgba(37, 37, 45, .925);
    --hearth-side-bottom: rgba(24, 25, 31, .945);
}

/* Центральные карточки */
body.background-digital-hearth-v2 .center-column>.panel {
    background:
        linear-gradient(145deg,
            var(--hearth-panel-top),
            var(--hearth-panel-bottom));

    -webkit-backdrop-filter: blur(7px) saturate(.9);
    backdrop-filter: blur(7px) saturate(.9);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .42),
        0 4px 12px rgba(0, 0, 0, .26),
        0 0 28px rgba(155, 82, 205, .09);
}

/* Боковые карточки — немного прозрачнее */
body.background-digital-hearth-v2 .left-column>.panel,
body.background-digital-hearth-v2 .right-column>.panel {
    background:
        linear-gradient(145deg,
            var(--hearth-side-top),
            var(--hearth-side-bottom));

    -webkit-backdrop-filter: blur(6px) saturate(.9);
    backdrop-filter: blur(6px) saturate(.9);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, .4),
        0 4px 12px rgba(0, 0, 0, .24),
        0 0 26px rgba(155, 82, 205, .075);
}

/* Шапку и подвал оставляем более плотными */
body.background-digital-hearth-v2 .topbar,
body.background-digital-hearth-v2 .footer-panel {
    background:
        linear-gradient(145deg,
            rgba(37, 37, 45, .95),
            rgba(24, 25, 31, .96));

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* =========================================
   Home stabilization v4
   ========================================= */

.topbar-inner {
    padding-right: 24px;
    padding-left: 24px;
}

@media (min-width: 801px) {
    .topbar .brand-mark {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        font-size: 16px;
    }

    .topbar .brand {
        gap: 14px;
    }

    .topbar .brand-name {
        font-size: 18px;
        letter-spacing: .25em;
        line-height: 1.25;
    }

    .topbar .brand-subtitle {
        font-size: 11px;
    }

    .topbar .topbar-fireplace {
        width: 104px;
        height: 48px;
    }

    .topbar .topbar-fireplace .fireplace-line,
    .topbar .topbar-fireplace .fireplace-base {
        width: 98px;
    }

    .topbar .topbar-fireplace .fireplace-body {
        width: 72px;
        height: 35px;
    }

    .topbar .topbar-fireplace .flame {
        font-size: 34px;
    }

    .theme-menu {
        top: 59px;
    }

    .theme-notice {
        top: 60px;
    }
}

.brand-home-mark {
    flex: 0 0 auto;
}

.brand-navigation {
    display: none;
}

.brand-navigation>summary::after,
.theme-toggle-chevron {
    display: none;
}

.theme-menu {
    right: 24px;
}

.home-portal-grid {
    --home-sidebar-width: 360px;
}

.home-dashboard-row {
    grid-template-columns: minmax(0, 1fr) var(--home-sidebar-width);
}

.home-portal-grid .stories-heading,
.home-portal-grid .bluemap-heading {
    padding-right: 0;
    padding-left: 0;
}

.server-card-heading .card-title-icon img {
    width: 23px;
    height: 23px;
}

.server-card-heading .hlds-title-icon img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.server-card-heading .minecraft-title-icon {
    padding: 3px;
}

.server-card-heading .minecraft-title-icon img {
    width: 100%;
    height: 100%;
}

.game-activity-panel {
    min-height: 245px;
}

.game-activity-panel .activity-list {
    max-height: 168px;
}

.server-card-actions {
    margin-top: 14px;
}

.minecraft-server-card .server-card-actions {
    grid-template-columns: 1fr;
}

.copy-address {
    position: relative;
    padding: 2px 0;
    border: 0;
    border-bottom: 1px dotted rgba(211, 169, 238, .32);
    color: #d6d1da;
    background: transparent;
    font: inherit;
    font-size: 12px;
    line-height: 1.35;
    cursor: copy;
    transition: color .15s ease, border-color .15s ease;
}

.copy-address:hover,
.copy-address:focus-visible {
    color: var(--violet-bright);
    border-color: rgba(211, 169, 238, .72);
}

.copy-address:focus-visible {
    outline: 1px solid rgba(211, 169, 238, .55);
    outline-offset: 4px;
    border-radius: 2px;
}

.copy-address::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 35;
    right: 0;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 190px;
    padding: 6px 9px;
    border: 1px solid rgba(191, 112, 239, .24);
    border-radius: 6px;
    color: var(--text);
    background: rgba(22, 21, 29, .97);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .32);
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .15s ease, transform .15s ease;
}

.copy-address:hover::after,
.copy-address:focus-visible::after,
.copy-address.is-copied::after,
.copy-address.is-copy-error::after {
    opacity: 1;
    transform: translateY(0);
}

.copy-address.is-copied {
    color: var(--green);
    border-color: rgba(112, 216, 135, .45);
}

.copy-address.is-copy-error {
    color: #d99aa6;
    border-color: rgba(217, 154, 166, .4);
}

.gungame-access {
    margin-top: 13px;
}

.gungame-access-open {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(191, 112, 239, .22);
    border-radius: 6px;
    color: var(--violet-bright);
    background: rgba(165, 107, 211, .07);
    cursor: pointer;
    font-size: 12px;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.gungame-access-open:hover,
.gungame-access-open:focus-visible {
    color: var(--text-bright);
    border-color: rgba(191, 112, 239, .42);
    background: rgba(165, 107, 211, .12);
}

.gungame-access-panel {
    padding: 11px;
    border: 1px solid rgba(191, 112, 239, .18);
    border-radius: 7px;
    background: rgba(17, 16, 23, .36);
}

.gungame-access-panel[hidden],
.gungame-access-status[hidden],
.gungame-access-result[hidden],
.gungame-access-open[hidden] {
    display: none;
}

.gungame-access-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--text-soft);
    font-size: 11.5px;
}

.gungame-access-heading button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: var(--text-soft);
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.gungame-access-heading button:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, .05);
}

.gungame-access-captcha {
    display: grid;
    grid-template-columns: minmax(86px, 1fr) 54px 32px auto;
    align-items: center;
    gap: 6px;
}

.gungame-access-captcha label {
    color: var(--text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.gungame-access-captcha input {
    width: 54px;
    min-height: 32px;
    padding: 0 7px;
    border: 1px solid rgba(191, 112, 239, .2);
    border-radius: 5px;
    color: var(--text-bright);
    text-align: center;
    background: rgba(10, 9, 14, .42);
    outline: none;
}

.gungame-access-captcha input:focus {
    border-color: rgba(191, 112, 239, .58);
    box-shadow: 0 0 0 2px rgba(191, 112, 239, .08);
}

.gungame-access-captcha button {
    min-height: 32px;
    padding: 0 9px;
    border: 1px solid rgba(191, 112, 239, .18);
    border-radius: 5px;
    color: var(--violet-bright);
    background: rgba(165, 107, 211, .07);
    cursor: pointer;
    font-size: 11px;
}

.gungame-access-captcha button:disabled {
    cursor: wait;
    opacity: .48;
}

.gungame-access-status {
    margin: 9px 0 0;
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.4;
}

.gungame-access-status[data-state="error"] {
    color: #d99aa6;
}

.gungame-access-status[data-state="success"] {
    color: var(--green);
}

.gungame-access-result {
    margin-top: 9px;
    display: grid;
    gap: 7px;
}

.gungame-access-result code {
    display: block;
    overflow-wrap: anywhere;
    padding: 8px 9px;
    border: 1px solid rgba(112, 216, 135, .16);
    border-radius: 5px;
    color: #dce8df;
    background: rgba(8, 15, 10, .3);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 10.5px;
    line-height: 1.45;
    user-select: all;
}

.gungame-access-result button {
    min-height: 33px;
    border: 1px solid rgba(191, 112, 239, .2);
    border-radius: 5px;
    color: var(--violet-bright);
    background: rgba(165, 107, 211, .07);
    cursor: pointer;
    font-size: 11px;
}

.gungame-access-result button.is-copied {
    color: var(--green);
    border-color: rgba(112, 216, 135, .3);
}

@media (max-width: 400px) {
    .gungame-access-captcha {
        grid-template-columns: minmax(0, 1fr) 54px 32px;
    }

    .gungame-access-captcha [data-gungame-access-submit] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    .home-portal-grid {
        --home-sidebar-width: 330px;
    }
}

@media (max-width: 980px) {
    .brand-home-mark {
        display: none;
    }

    .brand-navigation {
        display: block;
    }

    .home-portal-grid {
        --home-sidebar-width: 310px;
    }
}

@media (max-width: 800px) {
    .topbar-inner {
        padding: 10px 14px;
    }

    .theme-menu {
        right: 14px;
    }

    .topbar .topbar-fireplace {
        right: 0;
    }

    .story-cover {
        border-radius: 8px 8px 0 0;
    }

    .story-copy {
        padding: 23px;
    }

    .game-activity-panel {
        min-height: 270px;
    }
}

@media (max-width: 800px) {

    body.background-digital-hearth-v2 .panel,
    body.background-digital-hearth-v2 .center-column>.panel,
    body.background-digital-hearth-v2 .right-column>.panel,
    body.background-digital-hearth-v2 .topbar,
    body.background-digital-hearth-v2 .footer-panel {
        background:
            linear-gradient(145deg,
                rgba(37, 37, 45, .955),
                rgba(24, 25, 31, .97));

        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
