/* Hideum &5 dark purple — Minecraft ChatColor.DARK_PURPLE = #AA00AA */
:root {
    --bg-base: #0a0410;
    --bg-primary: #0a0410;
    --bg-secondary: #12061a;
    --bg-tertiary: #1a0a24;
    --bg-card: #14081c;
    --bg-card-hover: #1e0c2a;
    --bg-elevated: #22102e;
    --text-primary: #f5f0f7;
    --text-secondary: #c4a8cc;
    --text-tertiary: #8a6a92;
    --accent: #AA00AA;
    --accent-hover: #cc22cc;
    --button-primary: #AA00AA;
    --button-primary-hover: #cc22cc;
    --accent-muted: rgba(170, 0, 170, 0.18);
    --accent-glow: rgba(170, 0, 170, 0.5);
    --border-subtle: rgba(170, 0, 170, 0.18);
    --border-medium: rgba(170, 0, 170, 0.32);
    --header-height: 96px;
}

body {
    background:
        radial-gradient(900px 480px at 50% -10%, rgba(170, 0, 170, 0.22), transparent 55%),
        var(--bg-base);
}

.header {
    background: rgba(10, 4, 16, 0.88);
    border-bottom: 1px solid var(--border-subtle);
    height: 96px;
}

.header-inner.hideum-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    max-width: 1280px;
}

.header-nav-left,
.header-nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-nav-left { justify-content: flex-end; }
.header-nav-right { justify-content: flex-start; }

.hideum-bar .header-logo {
    justify-content: center;
    gap: 12px;
}

.hideum-bar .header-logo img.logo-desktop,
.hideum-bar .header-logo img.logo-mobile {
    height: 88px !important;
    width: auto !important;
    filter: drop-shadow(0 0 22px rgba(170, 0, 170, 0.85));
}

.hideum-bar .header-logo-text { display: none !important; }

@media (max-width: 768px) {
    .hideum-bar .header-logo img.logo-desktop,
    .hideum-bar .header-logo img.logo-mobile {
        height: 64px !important;
    }
}

.hideum-bar .header-actions { display: none; }

.nav-link.active,
.nav-link.store-link {
    color: var(--accent);
}

.btn-purple,
.btn-play.btn-purple {
    background: #AA00AA;
    border-color: #AA00AA;
}

.mmc-dropdown [data-dropdown-option].active {
    background: rgba(170, 0, 170, 0.12);
}

.history-page,
.ranked-page {
    padding: 112px 0 80px;
    min-height: calc(100vh - 96px);
}

.history-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 24px 0 28px;
}

.history-search {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: var(--text-primary);
    font: inherit;
}

.kind-toggle {
    display: inline-flex;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}

.kind-toggle button {
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
}

.kind-toggle button.active {
    background: #AA00AA;
    color: #fff;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: inherit;
}

.match-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
}

.match-row .faces {
    display: flex;
    gap: 4px;
}

.match-row .faces img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    image-rendering: pixelated;
}

.match-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.match-kit {
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--accent-muted);
    color: #e9a0e9;
}

.badge.unranked { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

.match-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.player-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    overflow: hidden;
}

.player-card.winner {
    box-shadow: 0 0 0 1px #AA00AA, 0 12px 40px rgba(170, 0, 170, 0.2);
}

.player-hero {
    display: flex;
    gap: 16px;
    padding: 20px;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(170,0,170,0.18), transparent);
}

.player-hero img.body {
    height: 180px;
    width: auto;
    image-rendering: pixelated;
}

.player-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.player-stats b { color: var(--text-primary); }

.inv-grid {
    display: grid;
    grid-template-columns: repeat(9, 36px);
    gap: 4px;
    padding: 16px 20px 20px;
    justify-content: center;
}

.inv-slot {
    width: 36px;
    height: 36px;
    background: #1a1020;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    position: relative;
}

.inv-slot img {
    width: 32px;
    height: 32px;
    margin: 2px;
    image-rendering: pixelated;
}

.inv-slot .count {
    position: absolute;
    right: 2px;
    bottom: 0;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 0 #000;
}

.armor-row {
    display: flex;
    gap: 6px;
    padding: 0 20px;
    justify-content: center;
}

.steps {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px 24px;
}

.step h3 { color: #AA00AA; margin-bottom: 8px; }
.step code {
    background: rgba(170,0,170,0.15);
    padding: 2px 8px;
    border-radius: 6px;
    color: #f0c0f0;
}

.empty-note {
    color: var(--text-secondary);
    padding: 40px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .header-inner.hideum-bar {
        grid-template-columns: auto 1fr auto;
    }
    .header-nav-left, .header-nav-right { display: none; }
    .hideum-bar .header-actions { display: flex; }
    .hideum-bar .header-search, .hideum-bar .btn-login { display: none; }
}
