@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

body.panel-theme {
    --font-display: "Fraunces", serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    --font-ui: var(--font-body);
    font-family: var(--font-body);
    color: #182126;
    background:
        radial-gradient(circle at top left, rgba(201, 137, 66, 0.2), transparent 26%),
        radial-gradient(circle at top right, rgba(38, 117, 122, 0.12), transparent 24%),
        linear-gradient(180deg, #f7f2e8 0%, #f4efe4 48%, #ebe0cb 100%);
}

body.panel-theme::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(24, 33, 38, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 33, 38, 0.03) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 50%, transparent 92%);
}

body.panel-theme .shell,
body.panel-theme .container {
    position: relative;
    z-index: 1;
}

body.panel-theme h1,
body.panel-theme h2,
body.panel-theme h3,
body.panel-theme .mission-title,
body.panel-theme .player-name,
body.panel-theme .mission-list-title {
    font-family: var(--font-display);
    color: #182126;
}

body.panel-theme .eyebrow,
body.panel-theme .dashboard-kicker,
body.panel-theme .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #26757a;
    font-family: var(--font-ui);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.panel-theme .eyebrow::before,
body.panel-theme .dashboard-kicker::before,
body.panel-theme .section-kicker::before {
    content: "";
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c98942, #b8503a);
}

body.panel-theme .brand-line {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.panel-theme .brand-line img,
body.panel-theme .dashboard-brand img {
    width: 56px;
    height: 56px;
}

body.panel-theme .hero-panel,
body.panel-theme .stats-panel,
body.panel-theme .toolbar,
body.panel-theme .mission-card,
body.panel-theme .drawer,
body.panel-theme .json-panel,
body.panel-theme .empty-state,
body.panel-theme .modal-card,
body.panel-theme .summary-card,
body.panel-theme .players-section,
body.panel-theme header,
body.panel-theme .player-card,
body.panel-theme .info-item,
body.panel-theme .mission-item {
    background: rgba(255, 251, 245, 0.84);
    border: 1px solid rgba(24, 33, 38, 0.1);
    box-shadow: 0 18px 48px rgba(24, 33, 38, 0.12);
}

body.panel-theme .hero-panel,
body.panel-theme header,
body.panel-theme .summary-card,
body.panel-theme .players-section,
body.panel-theme .player-card {
    position: relative;
    overflow: hidden;
}

body.panel-theme .hero-panel::after,
body.panel-theme header::after,
body.panel-theme .summary-card::after,
body.panel-theme .player-card::after {
    content: "";
    position: absolute;
    inset: auto -40px -46px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 137, 66, 0.16), transparent 65%);
    pointer-events: none;
}

body.panel-theme .hero-panel,
body.panel-theme .stats-panel,
body.panel-theme .toolbar,
body.panel-theme .tab-shell,
body.panel-theme .summary-card,
body.panel-theme .players-section,
body.panel-theme .player-card {
    backdrop-filter: blur(10px);
}

body.panel-theme .hero-copy,
body.panel-theme .toolbar-note,
body.panel-theme .drawer-copy,
body.panel-theme .dashboard-subtitle,
body.panel-theme .timestamp,
body.panel-theme .info-label,
body.panel-theme .mission-meta,
body.panel-theme .mission-description,
body.panel-theme .feedback-note-preview,
body.panel-theme .timeline-entry-copy,
body.panel-theme .stat-label,
body.panel-theme .stat-copy {
    color: #42515a;
}

body.panel-theme .button-primary,
body.panel-theme .refresh-btn {
    background: linear-gradient(135deg, #b8503a 0%, #8f3828 100%);
    color: #fff8f2;
    box-shadow: 0 14px 28px rgba(143, 56, 40, 0.24);
}

body.panel-theme .button-soft {
    background: rgba(38, 117, 122, 0.12);
    color: #26757a;
}

body.panel-theme .button-secondary,
body.panel-theme .hero-links a {
    background: rgba(255, 255, 255, 0.58);
    color: #182126;
    border: 1px solid rgba(24, 33, 38, 0.1);
}

body.panel-theme .stat,
body.panel-theme .info-item,
body.panel-theme .mission-item,
body.panel-theme .player-progress-stat,
body.panel-theme .player-mission-row {
    background: rgba(255, 255, 255, 0.62);
}

body.panel-theme .stat-value,
body.panel-theme .summary-value,
body.panel-theme .player-points {
    font-family: var(--font-display);
    color: #b8503a;
}

body.panel-theme .badge {
    background: rgba(38, 117, 122, 0.12);
    color: #26757a;
}

body.panel-theme .player-points-chip,
body.panel-theme .mission-points {
    background: rgba(201, 137, 66, 0.14);
    color: #8f6410;
}

body.panel-theme .summary-card h3,
body.panel-theme .players-section h2,
body.panel-theme .drawer h2,
body.panel-theme .json-panel h2 {
    position: relative;
    z-index: 1;
}

body.panel-theme .summary-card,
body.panel-theme .player-card,
body.panel-theme .players-section,
body.panel-theme header {
    border-radius: 24px;
}

body.panel-theme .player-card {
    margin: 0;
    padding: 20px;
    border-left: none;
}

body.panel-theme .players-grid {
    display: grid;
    gap: 16px;
}

body.panel-theme .player-header {
    margin-bottom: 14px;
}

body.panel-theme .player-name {
    font-size: 1.35rem;
    color: #182126;
}

body.panel-theme .player-id {
    color: #6b7780;
    font-size: 0.84rem;
}

body.panel-theme .player-points {
    font-size: 2rem;
}

body.panel-theme .player-info {
    gap: 12px;
    margin: 12px 0;
}

body.panel-theme .info-item {
    border-radius: 14px;
    padding: 14px;
}

body.panel-theme .info-value {
    color: #182126;
}

body.panel-theme .mission-item {
    border-radius: 14px;
    padding: 10px 12px;
}

body.panel-theme .mission-item.available {
    border-left: 4px solid #26757a;
}

body.panel-theme .mission-item.active {
    border-left: 4px solid #b8503a;
    background: rgba(251, 233, 214, 0.92);
}

body.panel-theme .mission-item.completed {
    border-left: 4px solid #6b8f54;
    background: rgba(231, 244, 229, 0.92);
}

body.panel-theme .mission-item.locked {
    border-left: 4px solid rgba(90, 101, 109, 0.3);
}

body.panel-theme .mission-status-icon {
    margin-right: 12px;
}

body.panel-theme .app-footer,
body.panel-theme .dashboard-footer {
    color: rgba(24, 33, 38, 0.74);
}

body.panel-theme .app-footer strong,
body.panel-theme .dashboard-footer strong {
    color: #182126;
}

@media (max-width: 900px) {
    body.panel-theme .brand-line,
    body.panel-theme .dashboard-brand {
        align-items: flex-start;
    }
}
