:root {
    --bg: #101611;
    --panel: #1d271d;
    --panel-2: #243224;
    --line: #40543e;
    --text: #f4f1df;
    --muted: #c9c3aa;
    --accent: #93c65b;
    --accent-2: #c68b45;
    --danger: #e57b7b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --sky-1: #77b4d6;
    --sky-2: #bedf91;
    --dirt: #5b432d;
    --grass: #6ea43d;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Verdana", "Trebuchet MS", sans-serif;
    background:
        linear-gradient(180deg, rgba(167, 214, 108, 0.08), transparent 26%),
        linear-gradient(180deg, #0f1510, #182118 38%, #101611);
    min-height: 100vh;
}

.progress-dock {
    position: fixed;
    right: 18px;
    top: 110px;
    width: min(320px, calc(100vw - 24px));
    z-index: 20;
}

.progress-dock-card {
    background: linear-gradient(180deg, rgba(24, 33, 24, 0.96), rgba(16, 24, 16, 0.98));
    border: 1px solid rgba(213, 243, 170, 0.14);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px 18px 16px;
    backdrop-filter: blur(8px);
    max-height: calc(100vh - 140px);
    overflow: auto;
}

.progress-dock-card h2 {
    font-size: 1rem;
    margin-top: 8px;
}

.dock-status {
    font-size: 1.02rem;
    color: #f5efdc;
    margin: 8px 0 4px;
}

.dock-divider {
    height: 1px;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.08);
}

.mini-progress,
.gate-progress {
    margin-top: 12px;
}

.mini-progress-head,
.gate-progress-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #f5efdc;
}

.mini-progress-head {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 7px;
}

.gate-progress-top {
    margin-bottom: 10px;
}

.gate-progress-top strong {
    font-size: 1.85rem;
    line-height: 1;
}

.gate-progress-top span {
    color: var(--muted);
}

.progress-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.04)),
        rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.42);
}

.progress-track.large {
    height: 18px;
}

.progress-fill {
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
    transition: width 280ms ease;
}

.nether-fill {
    background:
        linear-gradient(90deg, #8f4139, #d86d45 54%, #ffb35d),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 8px, transparent 8px 16px);
}

.end-fill {
    background:
        linear-gradient(90deg, #5a4eb8, #8e73ff 48%, #d7bdff),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.18) 0 8px, transparent 8px 16px);
}

.progress-caption {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.dock-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.dock-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dock-list li:last-child {
    border-bottom: 0;
}

h1, h2, h3 {
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    margin: 0;
    letter-spacing: 0.02em;
}

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

a:hover {
    color: var(--accent);
}

.page-shell {
    width: min(1760px, calc(100% - 48px));
    margin: 0 auto;
    padding: 32px 350px 48px 0;
}

.page-shell.narrow {
    width: min(720px, calc(100% - 32px));
}

.hero {
    position: relative;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(29, 39, 29, 0.96), rgba(19, 26, 18, 0.96));
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 420px;
}

.compact-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--accent);
}

.lede, .muted {
    color: var(--muted);
}

.hero h1 {
    font-size: clamp(2.3rem, 4vw, 4.4rem);
    line-height: 0.94;
    margin-bottom: 12px;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.26);
}

.hero-meta,
.hero-content,
.player-summary-grid,
.summary-grid,
.featured-grid,
.skills-grid,
.top-grid {
    display: grid;
    gap: 16px;
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 420px;
    padding: 28px;
}

.hero-copy {
    max-width: 560px;
    align-self: start;
}

.hero-copy .lede {
    max-width: 540px;
    font-size: 1.16rem;
    line-height: 1.35;
    color: #f5efdc;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.62);
}

.hero-copy .eyebrow,
.hero-copy h1 {
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
}

.hero-meta {
    position: absolute;
    left: 28px;
    bottom: 28px;
    width: min(430px, calc(100% - 56px));
    grid-template-columns: 1fr;
}

.summary-grid {
    margin-top: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.death-history-panel {
    grid-column: span 2;
}

.gate-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gate-card {
    position: relative;
    overflow: hidden;
}

.gate-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 179, 93, 0.12), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(142, 115, 255, 0.12), transparent 30%);
}

.gate-card > * {
    position: relative;
}

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.player-summary-grid {
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.top-grid {
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.panel,
.stat-card,
.ranking-card,
.skill-card {
    background: linear-gradient(180deg, rgba(31, 43, 30, 0.96), rgba(22, 31, 21, 0.98));
    border: 1px solid rgba(213, 243, 170, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 22px;
    margin-top: 20px;
}

.daily-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 18px;
    align-items: stretch;
}

.daily-spotlight-copy {
    display: grid;
    gap: 10px;
}

.daily-spotlight-copy h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.02;
}

.daily-spotlight-meta {
    display: grid;
    gap: 16px;
}

.player-daily-panel {
    align-items: start;
}

.compact-task-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.compact-task-list li + li {
    margin-top: 8px;
}

.mod-list {
    columns: 2;
    column-gap: 24px;
}

.mod-list li {
    break-inside: avoid;
}

.mod-details {
    margin-top: 14px;
}

.mod-details summary {
    cursor: pointer;
    color: var(--accent);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.status-sauber {
    background: rgba(110, 164, 61, 0.18);
    color: #dff2c9;
}

.status-beobachten {
    background: rgba(198, 139, 69, 0.18);
    color: #f0d4af;
}

.status-verdaechtig {
    background: rgba(229, 123, 123, 0.18);
    color: #ffd4d4;
}

.status-kritisch {
    background: rgba(190, 68, 68, 0.26);
    color: #ffe8e8;
}

.status-ungeprueft {
    background: rgba(120, 120, 120, 0.18);
    color: #e6e6e6;
}

.center-panel {
    text-align: center;
    padding: 40px 24px;
}

.stat-card {
    padding: 18px 20px;
}

.stat-card.large {
    min-height: 120px;
}

.stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 1.5rem;
}

.online-player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.online-player-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid rgba(160, 255, 104, 0.22);
    border-radius: 999px;
    background: rgba(128, 214, 78, 0.13);
    color: #f5efdc;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 0 18px rgba(128, 214, 78, 0.05);
}

a.online-player-chip:hover {
    border-color: rgba(160, 255, 104, 0.55);
    color: var(--accent);
}

.online-empty {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.big-line {
    font-size: 1.65rem;
    margin: 8px 0;
}

.player-list,
.top-list,
.death-history-list,
.ranking-card ol {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}

.player-list li,
.top-list li,
.death-history-list li,
.ranking-card li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.player-list li:last-child,
.top-list li:last-child,
.death-history-list li:last-child,
.ranking-card li:last-child {
    border-bottom: 0;
}

.death-history-list li {
    align-items: start;
}

.death-history-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.death-history-main a,
.death-history-main span:first-child {
    font-weight: 800;
}

.death-history-main span:last-child {
    color: #f5efdc;
    overflow-wrap: anywhere;
}

.death-history-list time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(147, 198, 91, 0.14);
    color: var(--accent);
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.ranking-card {
    padding: 18px;
}

.explorer-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

.metric-sidebar {
    max-height: 70vh;
    overflow: auto;
    padding-right: 8px;
}

.metric-group {
    margin-bottom: 18px;
}

.metric-group h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.metric-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.metric-button,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-2);
    color: var(--text);
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.metric-button:hover,
.back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 163, 93, 0.42);
}

.metric-button.is-active {
    background: rgba(147, 198, 91, 0.16);
    border-color: rgba(147, 198, 91, 0.45);
}

.metric-filter {
    width: min(360px, 100%);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: var(--text);
    padding: 12px 14px;
}

.metric-table {
    width: 100%;
    border-collapse: collapse;
}

.metric-table th,
.metric-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-table th:last-child,
.metric-table td:last-child {
    text-align: right;
}

.metric-caption {
    margin-bottom: 14px;
}

.hero-actions {
    display: flex;
    align-items: end;
}

.hero-art {
    position: absolute;
    inset: 0;
    background: url("/static/hero-minecraft.png") center center / cover no-repeat;
}

.hero-art-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 18, 10, 0.48) 0%, rgba(11, 18, 11, 0.30) 24%, rgba(10, 17, 10, 0.10) 58%, rgba(8, 13, 9, 0.28) 100%),
        linear-gradient(180deg, rgba(5, 13, 8, 0.04), rgba(7, 12, 10, 0.12) 42%, rgba(10, 14, 11, 0.26) 100%);
}

.hero-art-caption {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(13, 20, 14, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(244, 241, 223, 0.88);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

@media (max-width: 980px) {
    .progress-dock {
        position: static;
        width: auto;
        padding: 0 16px;
        margin-top: 16px;
    }

    .page-shell {
        padding: 20px 0 48px;
    }

    .summary-grid,
    .gate-grid,
    .explorer-layout,
    .daily-spotlight {
        grid-template-columns: 1fr;
    }

    .death-history-panel {
        grid-column: auto;
    }

    .hero {
        min-height: 540px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-items: start;
        min-height: 540px;
    }

    .metric-sidebar {
        max-height: none;
    }
}
