:root {
    color-scheme: dark;
    --bg: #100e0d;
    --panel: #1b1816;
    --panel-top: #211b18;
    --line: #41352d;
    --text: #f3ebe0;
    --muted: #ac9c8b;
    --gold: #d8a864;
    --red: #bc5845;
    --green: #83bd84;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--text); background: radial-gradient(ellipse at 86% -10%, #452821 0%, transparent 37%), radial-gradient(ellipse at -15% 42%, #261c1a, transparent 45%), var(--bg); min-height: 100vh; }
body::before { content: ""; position: fixed; z-index: -1; inset: 0; opacity: .16; pointer-events: none; background-image: linear-gradient(#5d3f35 1px, transparent 1px), linear-gradient(90deg, #5d3f35 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(#000, transparent 80%); }
button { font: inherit; }
.page-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 104px; border-bottom: 1px solid #41352c; gap: 16px; }
.brand { display: flex; align-items: center; gap: 15px; min-width: 0; text-decoration: none; color: inherit; }
.brand-logo { width: 64px; height: 64px; display: block; flex-shrink: 0; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px #76503b, 0 0 17px #8e281f42; }
.brand-copy { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.brand strong { font-size: 23px; font-weight: 750; letter-spacing: .085em; line-height: 1; }
.brand small { font-size: 10px; color: var(--muted); letter-spacing: .075em; line-height: 1.35; }
.header-tag { border: 1px solid #69533d; border-radius: 100px; padding: 10px 15px; color: #d9b480; font-size: 10px; letter-spacing: .17em; display: flex; align-items: center; gap: 10px; }
.status-dot { width: 6px; height: 6px; border-radius: 100%; background: var(--gold); box-shadow: 0 0 10px #be8b51; }
.intro { padding: 70px 0 31px; }
.eyebrow,.section-label { font-size: 11px; letter-spacing: .20em; font-weight: 700; color: var(--gold); }
.intro h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 6.8vw, 86px); font-weight: 400; letter-spacing: -.045em; line-height: 1.06; margin: 15px 0; }
.intro h1 em { color: var(--gold); font-style: normal; }
.intro-copy { color: #bdafa3; line-height: 1.6; font-size: 15px; max-width: 610px; margin: 0; }
.panel { background: linear-gradient(135deg, rgba(36,29,24,.95), rgba(22,20,19,.98)); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 12px 34px rgba(0,0,0,.12); }
.hero-status { padding: 24px 29px; display: flex; align-items: center; justify-content: space-between; border-left: 3px solid var(--gold); gap: 12px; }
.hero-status .section-label { color: #ab9a83; }
.hero-status-line { font: 36px Georgia, serif; display: flex; align-items: center; gap: 17px; margin: 15px 0 8px; }
.hero-light { width: 12px; height: 12px; background: #987d56; border-radius: 50%; box-shadow: 0 0 0 6px #78634722; flex: none; }
.hero-light.is-online { background: var(--green); box-shadow: 0 0 0 6px #83bd8424, 0 0 16px #83bd84aa; }
.hero-light.is-offline { background: var(--red); box-shadow: 0 0 0 6px #bc584524; }
.dim { color: var(--muted); font-size: 13px; margin: 0; }
.refresh-btn { cursor: pointer; border: 1px solid #69533d; border-radius: 4px; padding: 12px 17px; color: #ebc99a; background: #36291e; transition: background .2s; white-space: nowrap; }
.refresh-btn:hover { background: #4c3725; }
.refresh-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin: 16px 0 30px; }
.metric { min-height: 143px; padding: 21px 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.metric strong { font-family: Georgia, serif; font-weight: 400; font-size: clamp(26px, 3vw, 36px); color: #f9ecdc; font-variant-numeric: tabular-nums; line-height: 1.1; }
.metric-foot { color: #8f8177; font-size: 11px; }
.content-grid { display: grid; grid-template-columns: 1.07fr .93fr; gap: 16px; margin-bottom: 16px; }
.content-grid > .panel { min-width: 0; padding: 27px 29px; }
.panel-title-row { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.panel-title-row .section-label { margin: 0 0 10px; }
h2 { font: 29px Georgia, "Times New Roman", serif; font-weight: 400; margin: 0; }
.symbol { color: #9b7652; font-size: 29px; line-height: 1; }
.countdown-block { padding: 30px 0 25px; border-bottom: 1px solid var(--line); }
.countdown-label { color: var(--muted); letter-spacing: .15em; font-size: 11px; margin: 0 0 10px; }
.countdown { color: var(--gold); font: clamp(43px, 5vw, 64px) Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.boss-block { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; }
.boss-block strong { font: 25px Georgia, serif; font-weight: 400; }
.split-details { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; padding-top: 20px; gap: 18px; }
.split-details > div { display: flex; flex-direction: column; gap: 8px; }
.split-details span { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.split-details strong { font-size: 19px; font-weight: 500; }
.service-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 23px 0; }
.service-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.service-row:first-of-type { margin-top: 10px; }
.service-row > div { display: flex; flex-direction: column; gap: 7px; }
.service-row strong { font-size: 14px; font-weight: 600; }
.service-row div span { color: var(--muted); font-size: 12px; }
.service-badge { flex: none; min-width: 96px; text-align: center; border: 1px solid #7c6951; padding: 7px 10px; border-radius: 3px; font-size: 11px; color: #c9ad85; background: #4f3c252b; }
.service-badge[data-state="ok"] { border-color: #547859; color: #a8d3a5; background: #26472d55; }
.service-badge[data-state="error"] { border-color: #88493f; color: #eb9d8a; background: #642e2955; }
.secondary-grid { margin-bottom: 48px; }
.detail-row { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line); }
.detail-row:first-of-type { margin-top: 15px; }
.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-row > span { color: var(--muted); font-size: 13px; }
.detail-row strong { font-weight: 500; font-size: 14px; text-align: right; overflow-wrap: anywhere; }
.recent-activity { padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.recent-activity span { font-size: 15px; line-height: 1.6; }
.recent-activity strong { color: var(--gold); font: 22px Georgia, serif; font-weight: 400; }
.helper-text { color: #8f8177; font-size: 12px; line-height: 1.5; padding-top: 12px; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 0 0 30px; color: #84776e; font-size: 11px; letter-spacing: .09em; }
footer b { font-weight: 400; color: #b88957; margin: 0 5px; }

@media (max-width: 850px) {
    .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .content-grid { grid-template-columns: 1fr; }
    .intro { padding-top: 46px; }
}
@media (max-width: 550px) {
    .page-shell { width: min(100% - 28px, 1160px); }
    .site-header { min-height: 86px; }
    .header-tag { font-size: 9px; padding: 9px; }
    .brand { gap: 10px; }
    .brand-logo { width: 48px; height: 48px; }
    .brand strong { font-size: 17px; }
    .brand small { font-size: 8px; letter-spacing: .025em; }
    .brand-copy { gap: 5px; }
    .hero-status { padding: 21px 17px; flex-wrap: wrap; }
    .hero-status-line { font-size: 31px; }
    .metrics { gap: 10px; }
    .metric { min-height: 124px; padding: 17px 13px; }
    .metric strong { font-size: 28px; }
    .metric-foot { font-size: 10px; }
    .content-grid > .panel { padding: 23px 19px; }
    .countdown { font-size: clamp(37px, 11vw, 57px); }
    footer { flex-direction: column; gap: 8px; }
}
