/* ============================================================================
   GUTE DIESE - Inhouse League Website
   Warm Pastel Theme — inspired by logo village palette
   ============================================================================ */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors — warm pastel palette from logo */
    --bg-primary: #f5f0e8;
    --bg-secondary: #ece5d8;
    --bg-card: #faf7f2;
    --bg-card-hover: #f0ebe2;

    --text-primary: #2c2418;
    --text-secondary: #6b5d4e;
    --text-muted: #9c8e7e;

    --accent-primary: #c96b52;
    --accent-secondary: #b35840;
    --accent-glow: rgba(201, 107, 82, 0.15);

    --blue-team: #4a8cc2;
    --red-team: #c96b52;
    --gold: #b8956a;

    --border-color: #ddd5c8;
    --success: #4a9e28;
    --danger: #d63031;
    --warning: #c9a85c;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Rajdhani', 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* --------------------------------------------------------------------------
   Dark Theme
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1f1f38;
    --bg-card-hover: #2a2a4a;

    --text-primary: #e0ddd5;
    --text-secondary: #a89e91;
    --text-muted: #7a7068;

    --accent-primary: #d4785f;
    --accent-secondary: #c96b52;
    --accent-glow: rgba(212, 120, 95, 0.2);

    --blue-team: #5a9cd4;
    --red-team: #d4785f;
    --gold: #c9a674;

    --border-color: #2e2e4a;
    --success: #5cb82e;
    --danger: #e84040;
    --warning: #d4b36a;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-y: scroll;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: var(--spacing-md) 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 46, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ── Dice Sub-Navigation ─────────────────────────────── */
#dice-subnav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    z-index: 998;
    background: rgba(245, 240, 232, 0.96);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background 0.3s, border-color 0.3s;
    animation: subnav-in 0.15s ease both;
}
@keyframes subnav-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
[data-theme="dark"] #dice-subnav {
    background: rgba(26, 26, 46, 0.96);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.dice-subnav-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
    gap: 0;
}
.dice-subnav-inner::-webkit-scrollbar { display: none; }
.dice-subnav-link {
    display: flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 var(--spacing-md);
    font-family: var(--font-main);
    font-size: 0.875rem; font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    flex: 1; min-width: max-content;
    position: relative;
    transition: color 0.15s, border-color 0.15s;
}
.dice-subnav-link:hover { color: var(--text-primary); }
.dice-subnav-link.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    font-weight: 600;
}
.has-dice-subnav .dice-page { padding-top: 124px; }
@media (max-width: 768px) {
    #dice-subnav { top: 60px; }
    .has-dice-subnav .dice-page { padding-top: 114px; }
    .dice-subnav-link { padding: 0 10px; font-size: 0.8rem; height: 40px; }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-logo {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.navbar-brand span {
    color: var(--accent-primary);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--spacing-sm);
    align-items: center;
}

.navbar-nav > li {
    position: relative;
}

.navbar-nav > li > a,
.navbar-nav > li > .nav-dropdown-trigger {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: var(--font-main);
    font-size: inherit;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a.active,
.navbar-nav > li > .nav-dropdown-trigger:hover {
    color: var(--text-primary);
}

.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--spacing-md);
    right: var(--spacing-md);
    width: auto;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.navbar-nav > li > a:hover::after,
.navbar-nav > li > a.active::after {
    transform: scaleX(1);
}

/* Dropdown arrow */
.nav-dropdown-trigger .nav-arrow {
    font-size: 0.6rem;
    transition: transform var(--transition-fast);
}

.nav-dropdown-trigger.open .nav-arrow {
    transform: rotate(180deg);
}

/* Shared mega menu panel — positioned under triggers */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm);
    z-index: 1001;
}

[data-theme="dark"] .mega-menu {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.mega-menu.open {
    display: block;
    animation: megaMenuFadeIn 0.12s ease;
}

@keyframes megaMenuFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.mega-menu-inner {
}

.mega-menu-section {
    display: none;
    flex-direction: column;
    gap: 2px;
}

.mega-menu-section.active {
    display: flex;
}

/* Dropdown items — vertical list */
.nav-dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-dropdown-item.active .nav-dropdown-item-title {
    color: var(--accent-primary);
}

.nav-dropdown-item-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-dropdown-item-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Mobile sub-menus hidden on desktop */
.mobile-submenu {
    display: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.nav-separator {
    width: 1px;
    height: 20px;
    background: var(--border-color);
    margin: 0 var(--spacing-xs);
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 90px;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    height: 36px;
    width: 36px;
    font-size: 1.2rem;
    line-height: 1;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-toggle:hover {
    border-color: var(--accent-primary);
}

.navbar-auth .btn {
    height: 36px;
    padding: 0 var(--spacing-md);
    font-size: 0.85rem;
}

/* ── Navbar Search Button ── */
.navbar-search-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: color 0.15s, border-color 0.15s;
}

.navbar-search-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.navbar-hub-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.navbar-hub-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.navbar-hub-btn.active {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb, 229, 100, 38), 0.1);
}

/* ── User Dropdown ── */
.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    padding: 0.4rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.user-dropdown-trigger:hover,
.user-dropdown.open .user-dropdown-trigger {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.user-dropdown-trigger .nav-arrow {
    font-size: 0.6rem;
    transition: transform 0.15s;
}

.user-dropdown.open .user-dropdown-trigger .nav-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-width: 140px;
    padding: 0.35rem;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.user-dropdown.open .user-dropdown-menu {
    display: flex;
    flex-direction: column;
}

.user-dropdown-item {
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    padding: 0.5rem 0.75rem;
    text-align: left;
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
}

.user-dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.user-dropdown-logout {
    border-top: 1px solid var(--border-color);
    margin-top: 0.2rem;
    padding-top: 0.6rem;
    color: var(--text-muted);
}

.user-dropdown-logout:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* ── Search Overlay ── */
.search-overlay {
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    inset: 0;
    justify-content: center;
    padding-top: 80px;
    position: fixed;
    z-index: 2000;
}

.search-overlay.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: searchOverlayIn 0.15s ease;
}

@keyframes searchOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-overlay-inner {
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    width: min(520px, 90vw);
}

.search-overlay-input {
    background: none;
    border: none;
    color: var(--text-primary);
    flex: 1;
    font-size: 1.1rem;
    outline: none;
    padding: var(--spacing-sm) 0;
}

.search-overlay-input::placeholder {
    color: var(--text-muted);
}

.search-overlay-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    transition: color 0.15s;
}

.search-overlay-close:hover {
    color: var(--text-primary);
}

.search-overlay-results {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: none;
    margin-top: var(--spacing-sm);
    overflow: hidden;
    width: min(520px, 90vw);
}

.search-overlay-item {
    cursor: pointer;
    font-size: 0.95rem;
    padding: var(--spacing-sm) var(--spacing-lg);
    transition: background 0.12s;
}

.search-overlay-item:hover {
    background: var(--bg-card-hover);
    color: var(--accent);
}

.search-overlay-empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 0;
    height: 36px;
    width: 36px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-discord {
    background: #5865F2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-normal);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(201, 107, 82, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(109, 138, 46, 0.08) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    padding: var(--spacing-xl);
    width: 100%;
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease;
    filter: drop-shadow(0 8px 24px rgba(201, 107, 82, 0.25));
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-live-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-stat-sep {
    opacity: 0.35;
}

.hero-welcome {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease 0.35s backwards;
}

.hero-welcome-name {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
}

.hero-welcome-name:hover { text-decoration: underline; }

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* --------------------------------------------------------------------------
   Live Game Banner
   -------------------------------------------------------------------------- */
.live-game-banner {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(201, 107, 82, 0.07);
    border: 1px solid rgba(201, 107, 82, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.live-banner-link {
    margin-left: auto;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
}

.live-banner-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Live Queue Widget
   -------------------------------------------------------------------------- */
.queue-group-headings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease 0.55s backwards;
}

.queue-group-heading {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.2px;
    line-height: 1.1;
    padding: 12px 16px;
    text-align: center;
}

.queue-group-heading:first-child {
    grid-column: 1 / 2;
}

.queue-group-heading:last-child {
    grid-column: 2 / 5;
}

.queue-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: 0;
    animation: fadeInUp 0.8s ease 0.6s backwards;
    width: 100%;
}

@media (max-width: 900px) {
    .queue-group-headings {
        grid-template-columns: repeat(2, 1fr);
    }

    .queue-group-heading:first-child,
    .queue-group-heading:last-child {
        grid-column: auto;
    }

    .queue-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .queue-group-headings {
        grid-template-columns: 1fr;
    }

    .queue-widgets-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: none;
    }
}

.queue-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.queue-widget h3 {
    text-align: center;
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.queue-bracket-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.queue-widget-divider {
    height: 1px;
    background: var(--border-color);
    margin-bottom: var(--spacing-md);
}

.queue-fill-info {
    margin-top: var(--spacing-md);
    padding: 8px 0;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: stretch;
}

.queue-fill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.queue-fill-label {
    font-weight: 600;
    font-size: 0.8rem;
}

.queue-fill-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 140px;
}

.queue-fill-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    transition: all var(--transition-normal);
    cursor: default;
}

.queue-fill-row.ready .queue-fill-dot {
    background: var(--success);
}

.queue-fill-dot[title]:hover {
    transform: scale(1.3);
}

.queue-players-list {
    margin-top: var(--spacing-sm);
    flex: 1;
}

#queue-aram .queue-players-list {
    margin-top: 0;
}

.aram-progress {
    margin-top: var(--spacing-md);
}

.aram-progress-row {
    width: 100%;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.aram-progress-dots {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0;
    max-width: 140px;
    overflow: hidden;
}

.aram-progress-dots .queue-slot-avatar-sm,
.aram-progress-dots .queue-slot-empty-sm {
    width: 18px;
    height: 18px;
    margin-left: -5px;
    border: 1px solid var(--border-color);
    border-radius: 50% !important;
    display: block;
}

.aram-progress-dots .queue-slot-avatar-sm:first-child,
.aram-progress-dots .queue-slot-empty-sm:first-child {
    margin-left: 0;
}

.aram-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    transition: all var(--transition-normal);
}

.aram-progress-dot.filled {
    background: var(--gold);
    border-color: var(--gold);
}

.aram-progress-row.ready .aram-progress-dot.filled {
    background: var(--success);
    border-color: var(--success);
}

.aram-progress-dot[title]:hover {
    transform: scale(1.3);
}

/* Content area grows to fill — pushes fill/progress + total to same position */
[id$="-roles"] {
    flex: 1;
}

.queue-roles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.queue-role {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    font-size: 0.85rem;
}

.queue-role.ready {
    border: 1px solid var(--success);
    background: rgba(109, 138, 46, 0.08);
}

.queue-role-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.queue-role-name {
    font-weight: 600;
    font-size: 0.8rem;
}

.queue-role-dots {
    display: flex;
    gap: 6px;
    flex-direction: row-reverse;
}

.queue-slot-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    flex: 0 0 auto;
}

.queue-slot-avatar-sm {
    width: 18px;
    height: 18px;
}

.queue-slot-empty {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px dashed var(--border-color);
    background: transparent;
    flex: 0 0 auto;
}

.queue-slot-empty-sm {
    width: 18px;
    height: 18px;
}

.queue-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    transition: all var(--transition-normal);
    cursor: default;
    position: relative;
}

.queue-dot.filled {
    background: var(--gold);
    border-color: var(--gold);
}

.queue-role.ready .queue-dot.filled {
    background: var(--success);
    border-color: var(--success);
}

.queue-dot[title]:hover {
    transform: scale(1.3);
}

/* ARAM 10-slot chip layout */
.aram-player-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.aram-player-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    min-height: 33px;
    padding: 6px 10px;
    font-size: 0.85rem;
    line-height: 1.1;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aram-player-chip.empty {
    color: var(--text-muted);
    background: transparent;
    border: 1px dashed var(--border-color);
}

.queue-role-bar {
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    margin-top: var(--spacing-sm);
    overflow: hidden;
}

.queue-role-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--gold));
    transition: width var(--transition-normal);
}

.queue-role-players {
    margin-top: var(--spacing-xs);
    min-height: 0;
}

.queue-player-name {
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 1px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-total {
    text-align: center;
    margin-top: auto;
    padding-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.queue-total-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   Leaderboard
   -------------------------------------------------------------------------- */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: var(--spacing-md);
    text-align: left;
}

.leaderboard-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.leaderboard-table tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.leaderboard-table tbody tr:hover td:first-child {
    border-left: 3px solid var(--accent-primary);
}

.leaderboard-rank {
    font-weight: 700;
    width: 60px;
}

.leaderboard-rank.gold { color: #ffd700; }
.leaderboard-rank.silver { color: #c0c0c0; }
.leaderboard-rank.bronze { color: #cd7f32; }

.leaderboard-player {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.leaderboard-player-name {
    font-weight: 600;
}

.leaderboard-player-tag {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.leaderboard-mmr {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.leaderboard-winrate {
    color: var(--success);
}

.tier-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 4px;
}

/* (Old profile classes removed — replaced by OP.GG-style profile section below) */

/* Role Filter */
.role-filter {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin-bottom: 0;
    padding: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.role-btn {
    padding: 0.38rem 0.48rem;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    border-radius: calc(var(--radius-sm) - 1px);
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: var(--font-main);
    transition: var(--transition-fast);
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}
.role-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}
.role-btn.active {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.role-btn-count {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-left: 2px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
    max-width: none;
    margin: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
        max-width: none;
    }
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    min-height: 132px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-sm);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--gold);
}

.stat-card-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Match History
   -------------------------------------------------------------------------- */
.match-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--text-muted);
    margin-bottom: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.match-card.win {
    border-left-color: var(--success);
}

.match-card.loss {
    border-left-color: var(--accent-primary);
}

.match-card:hover {
    background: var(--bg-card-hover);
}

.match-champion {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
}

.match-info {
    flex: 1;
}

.match-kda {
    font-weight: 700;
    font-family: var(--font-display);
}

.match-stats {
    display: flex;
    gap: var(--spacing-lg);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.match-result {
    font-weight: 700;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
}

.match-result.win {
    background: rgba(109, 138, 46, 0.12);
    color: var(--success);
}

.match-result.loss {
    background: rgba(201, 107, 82, 0.12);
    color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-slide-in {
    animation: slideIn 0.5s ease;
}

/* Staggered animation for list items */
.stagger-animation > * {
    animation: fadeInUp 0.5s ease backwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-animation > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-animation > *:nth-child(10) { animation-delay: 0.5s; }

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.bg-secondary { background: var(--bg-secondary); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero h1 { font-size: 2.5rem; }

    .profile-main {
        flex-direction: column;
        text-align: center;
    }

    .profile-main .leaderboard-switch {
        align-self: center;
        margin-bottom: 0;
    }

    .profile-mmr {
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Loading States
   -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-match-card {
    height: 185px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Skeleton table row ── */
.skeleton-row td {
    padding: 0.75rem 1rem;
}

/* ── Trend Arrows ── */
.trend-up {
    color: var(--success);
    font-size: 0.65rem;
    margin-left: 4px;
    vertical-align: middle;
}

.trend-down {
    color: var(--danger);
    font-size: 0.65rem;
    margin-left: 4px;
    vertical-align: middle;
}

/* ── My Row Highlight ── */
.my-row-highlight {
    background: rgba(var(--accent-primary-rgb, 229, 100, 38), 0.08) !important;
    outline: 1px solid rgba(var(--accent-primary-rgb, 229, 100, 38), 0.3);
}

/* ── My Rank Banner ── */
.my-rank-banner {
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.my-rank-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    white-space: nowrap;
    margin-right: var(--spacing-xs);
}

.my-rank-items {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

.my-rank-sep {
    color: var(--border-color);
    font-size: 1rem;
}

.my-rank-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.my-rank-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

.my-rank-item.rank-val strong {
    color: var(--accent-primary);
    font-size: 1rem;
}

.my-rank-jump {
    margin-left: auto;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
}

/* ── My Match Highlight (matches page) ── */
.my-match-win {
    border-left: 3px solid var(--success) !important;
}

.my-match-loss {
    border-left: 3px solid var(--danger) !important;
}

/* ── Match Kill Score ── */
.match-kill-score {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: var(--spacing-sm);
}

/* ── Filter Date Group ── */
.filter-date-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-date-group .date-sep {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Quick Date Buttons ── */
.filter-quick-dates {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.filter-quick-dates .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
}

/* --------------------------------------------------------------------------
   Page Header
   -------------------------------------------------------------------------- */
.page-header {
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    margin-bottom: var(--spacing-sm);
}

.leaderboard-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.leaderboard-header-top h1 {
    margin-bottom: 0;
}

.page-header .leaderboard-header-top {
    align-items: flex-end;
}

.leaderboard-title-block h1 {
    margin-bottom: 0;
}

.leaderboard-title-block .text-muted {
    margin-top: 0;
    margin-bottom: 0;
}

.page-leaderboard .leaderboard-header-top {
    align-items: flex-end;
}

.page-leaderboard .leaderboard-title-block h1 {
    margin-bottom: 0;
}

.page-leaderboard .leaderboard-title-block .text-muted {
    margin-top: 0;
    margin-bottom: 0;
}

.leaderboard-switch {
    display: flex;
    gap: 1.25rem;
    padding: 0 0 2px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    margin-top: 0;
    margin-bottom: -4px;
}

.leaderboard-switch .queue-tab {
    width: auto;
    min-height: 0;
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    box-shadow: none;
    position: relative;
}

.leaderboard-switch .queue-tab:first-child {
    border-radius: 0;
}

.leaderboard-switch .queue-tab:last-child {
    border-radius: 0;
}

.leaderboard-switch .queue-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: transparent;
    border-radius: 999px;
    transition: var(--transition-fast);
}

.leaderboard-switch .queue-tab.active {
    background: transparent;
    color: var(--text-primary);
    border: 0;
    box-shadow: none;
    transform: none;
}

.leaderboard-switch .queue-tab.active::after {
    background: var(--accent-primary);
}

.leaderboard-switch .queue-tab:hover:not(.active) {
    background: transparent;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .leaderboard-header-top {
        display: block;
    }

    .leaderboard-switch {
        gap: 0.9rem;
        justify-content: flex-start;
        width: fit-content;
        margin-top: 6px;
    }

    .leaderboard-switch .queue-tab {
        width: auto;
        flex: 0 0 auto;
        min-height: 0;
        padding-bottom: 8px;
        font-size: 0.92rem;
    }
}

/* --------------------------------------------------------------------------
   Search & Controls
   -------------------------------------------------------------------------- */
.leaderboard-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.top-players-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.top-players-actions {
    display: flex;
    align-items: flex-end;
    gap: var(--spacing-md);
}

.home-top-switch {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .top-players-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-players-actions {
        width: 100%;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }
}

.search-box {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    width: 200px;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box svg {
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
}

.pagination .btn {
    min-width: 40px;
    padding: var(--spacing-sm);
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 var(--spacing-sm);
}

/* --------------------------------------------------------------------------
   Player Cell (in tables)
   -------------------------------------------------------------------------- */
.player-cell {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
}

.player-name {
    font-weight: 600;
}

.player-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.clickable {
    cursor: pointer;
}

.clickable:hover {
    background: var(--bg-card-hover);
}

/* --------------------------------------------------------------------------
   Rank Badge
   -------------------------------------------------------------------------- */
.rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-display);
}

.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffec8b);
    color: #1a1a25;
}

.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #1a1a25;
}

.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #1a1a25;
}

/* --------------------------------------------------------------------------
   MMR Value
   -------------------------------------------------------------------------- */
.mmr-value {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   Winrate Bar
   -------------------------------------------------------------------------- */
.winrate-bar {
    position: relative;
    width: 80px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.winrate-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #6b7280, #4b5563);
    transition: width var(--transition-normal);
}

.winrate-fill.winrate-high {
    background: linear-gradient(90deg, var(--success), #3a6b1a);
}

.winrate-fill.winrate-low {
    background: linear-gradient(90deg, var(--danger), #b01d1d);
}

.winrate-bar span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Text Colors
   -------------------------------------------------------------------------- */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

/* --------------------------------------------------------------------------
   Profile Page — Header & Core Elements
   -------------------------------------------------------------------------- */
.profile-header {
    padding-top: 140px;
    padding-bottom: 3rem;
    background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 60%, var(--bg-card) 100%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--blue-team), var(--accent-primary), var(--gold)) 1;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-team), var(--accent-primary), var(--gold));
}

.profile-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.profile-main .leaderboard-switch {
    align-self: flex-end;
    margin-bottom: 2px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 4px 24px var(--accent-glow), 0 0 0 6px var(--bg-secondary);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.2rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.5px;
}

.profile-name .text-muted {
    font-size: 1.2rem;
    font-weight: 400;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.profile-role {
    background: var(--bg-card);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.profile-rank {
    color: var(--gold);
    font-weight: 600;
}

.profile-tier-emblem {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    opacity: 0.9;
}

.profile-mmr {
    text-align: right;
}

.mmr-big {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--accent-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mmr-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Champion List
   -------------------------------------------------------------------------- */
.champion-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.champion-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.champion-item:hover {
    background: var(--bg-card-hover);
}

.champion-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}
.champion-icon-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    vertical-align: middle;
}
.table-responsive { overflow-x: auto; }
.font-bold { font-weight: 600; }
.sortable::after { content: ''; margin-left: 4px; }
.sortable.active-desc::after { content: ' ▼'; font-size: 0.7em; }
.sortable.active-asc::after { content: ' ▲'; font-size: 0.7em; }
.leaderboard-table th.col-center,
.leaderboard-table td.col-center {
    text-align: center;
}
.leaderboard-table td.col-center .winrate-bar {
    margin: 0 auto;
}

.champion-info {
    flex: 1;
}

.champion-name {
    font-weight: 600;
}

.champion-stats {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.champion-kda {
    font-weight: 600;
    color: var(--gold);
}

/* --------------------------------------------------------------------------
   Match List (Profile)
   -------------------------------------------------------------------------- */
.match-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.match-card {
    display: grid;
    grid-template-columns: 100px 80px 1fr 80px 100px;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.match-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.match-win {
    border-left-color: var(--success);
}

.match-loss {
    border-left-color: var(--accent-primary);
}

.match-result {
    display: flex;
    flex-direction: column;
}

.match-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-champion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.match-champion-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.match-champion-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.match-kda {
    text-align: center;
}

.kda-score {
    font-weight: 700;
    font-size: 1.1rem;
}

.kda-ratio {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-cs {
    text-align: center;
    font-size: 0.9rem;
}

.match-date {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .match-card {
        grid-template-columns: 80px 60px 1fr;
    }

    .match-cs,
    .match-date {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Matches Page Grid
   -------------------------------------------------------------------------- */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

@media (max-width: 992px) {
    .matches-grid {
        grid-template-columns: 1fr;
    }
}

/* Match Filters */
.match-filters-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--spacing-md);
}
.match-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    min-width: 0;
}
.filter-status {
    font-size: 0.85rem;
    min-height: 1.1rem;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
}
@media (max-width: 992px) {
    .match-filters-row {
        grid-template-columns: 1fr;
    }
    .filter-status {
        text-align: left;
        justify-self: start;
    }
}
.filter-input, .filter-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: var(--font-main);
}
.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}
.filter-input::placeholder { color: var(--text-muted); }
.filter-date { max-width: 150px; }
.filter-select { min-width: 120px; }
.filter-input::-webkit-calendar-picker-indicator { filter: none; }

.match-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.match-preview-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.match-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.match-preview-id {
    font-weight: 700;
    font-family: var(--font-display);
}

.match-preview-meta {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.match-preview-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
}

.match-preview-team {
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
}

.team-winner {
    background: rgba(74, 158, 40, 0.1);
}

.team-loser {
    background: rgba(214, 48, 49, 0.08);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.team-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.team-result {
    font-size: 0.8rem;
    font-weight: 600;
}

.team-players {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-player {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
}

.team-player-aram {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.player-main-row {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.player-items-row {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    padding-left: 2px;
}

.item-icon {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
}

.detail-items-row {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.detail-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.detail-augment-icon {
    border-radius: 50%;
}

.player-champ-icon {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.player-aram-rank-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid #cdb787;
    background: linear-gradient(135deg, #f6efe1 0%, #e7dcc4 100%);
    color: #8e6940;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    flex: 0 0 auto;
}

.player-aram-rank-num {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.player-aram-rank-emoji {
    position: absolute;
    right: -5px;
    top: -6px;
    font-size: 0.55rem;
    line-height: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 1px 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.player-name-small {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-mvp-star {
    display: inline-block;
    flex: 0 0 auto;
    color: #d4af37;
    font-size: 0.9em;
    margin-left: 2px;
    margin-right: 4px;
    vertical-align: 1px;
}

.player-kda-small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.match-preview-queue-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}

.match-preview-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Match Detail Page
   -------------------------------------------------------------------------- */
.match-detail-header {
    padding-top: 100px;
    padding-bottom: var(--spacing-xl);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.match-detail-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.back-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--text-primary);
}

.match-detail-meta {
    display: flex;
    gap: var(--spacing-md);
}

.match-duration-badge,
.match-date-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.match-queue-badge {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.match-detail-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
}

@media (max-width: 992px) {
    .match-detail-content {
        grid-template-columns: 1fr;
    }
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.team-winner-card {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(74, 158, 40, 0.18);
}

.team-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
}

.team-card-header h3 {
    margin: 0;
}

.team-blue {
    background: linear-gradient(90deg, rgba(74, 140, 194, 0.1), transparent);
    border-bottom: 2px solid var(--blue-team);
}

.team-red {
    background: linear-gradient(90deg, rgba(201, 107, 82, 0.1), transparent);
    border-bottom: 2px solid var(--red-team);
}

.team-result-badge {
    font-weight: 700;
    font-size: 0.9rem;
}

.team-card-body {
    padding: var(--spacing-md);
}

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

.team-stats-table th,
.team-stats-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
}

.team-stats-table th {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
}

.team-stats-table tbody tr {
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.team-stats-table tbody tr:last-child {
    border-bottom: none;
}

.team-stats-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.col-dmg {
    text-align: right;
    white-space: nowrap;
    color: var(--text-secondary, var(--text-muted));
}

.player-champ-icon-lg {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
}

.player-champ-name {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.kda-cell {
    text-align: center;
}

.match-vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.match-vs-divider span {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .match-vs-divider {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .team-card-body {
        padding: var(--spacing-sm);
    }

    .team-stats-table th,
    .team-stats-table td {
        padding: 0.45rem 0.5rem;
        font-size: 0.82rem;
    }

    .team-stats-table th.col-gold,
    .team-stats-table td.col-gold {
        display: none;
    }

    .player-champ-icon-lg {
        width: 32px;
        height: 32px;
    }
}

/* --------------------------------------------------------------------------
   Additional Utilities
   -------------------------------------------------------------------------- */
.py-lg {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.py-xl {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Queue Type Tabs (Leaderboard) */
.queue-tab {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.queue-tab.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border-color: var(--accent-primary);
}

.queue-tab:hover:not(.active) {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

/* User menu (when logged in) */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.user-name {
    font-weight: 500;
    color: var(--text-primary);
}

.btn-logout {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.8rem;
}

.btn-logout:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   Hamburger Menu (Mobile)
   -------------------------------------------------------------------------- */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

.navbar-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.open span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(245, 240, 232, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        z-index: 1000;
        overflow-y: auto;
        padding: 80px var(--spacing-lg) var(--spacing-lg);
    }

    [data-theme="dark"] .navbar-nav {
        background: rgba(26, 26, 46, 0.98);
    }

    .navbar-nav.open {
        display: flex;
    }

    .navbar-nav > li > a,
    .navbar-nav > li > .nav-dropdown-trigger {
        font-size: 1.3rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .mega-menu {
        display: none !important;
    }

    .mobile-submenu {
        display: none;
        flex-direction: column;
        padding: var(--spacing-xs) 0;
    }

    .mobile-submenu.open {
        display: flex;
    }

    .mobile-submenu .nav-dropdown-item {
        flex: none;
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .mobile-submenu .nav-dropdown-item-title {
        font-size: 1rem;
    }

    .navbar-right {
        position: absolute;
        top: var(--spacing-md);
        right: 60px;
        gap: var(--spacing-xs);
    }

    .navbar-auth {
        display: none;
    }

    .nav-separator {
        width: 40px;
        height: 1px;
        background: var(--border-color);
        margin: var(--spacing-xs) 0;
    }
}

/* --------------------------------------------------------------------------
   Role Tag (Match Cards)
   -------------------------------------------------------------------------- */
.player-role-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 1px 4px;
    border-radius: 3px;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

/* ============================================================================
   Head to Head
   ============================================================================ */
.h2h-select {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}
.h2h-toolbar-section {
    position: sticky;
    top: 62px;
    z-index: 20;
    background: var(--bg-primary);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0 !important;
}
.h2h-toolbar-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.h2h-player-select {
    min-width: 200px;
    padding: 0.6rem 0.75rem;
}
.h2h-season-select {
    min-width: 180px;
    padding: 0.6rem 0.75rem;
}
.h2h-copy-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
    opacity: 0.9;
}
.h2h-vs {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
}
.h2h-error {
    margin-top: 8px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--accent-primary);
}
.h2h-presets {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.h2h-presets-tabs {
    display: inline-flex;
    gap: 6px;
}
.h2h-preset-tab {
    padding: 5px 10px;
    font-size: 0.78rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
}
.h2h-preset-tab.active {
    color: #fff;
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}
.h2h-preset-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.h2h-preset-chip {
    padding: 4px 10px;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
}
.h2h-preset-chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.h2h-players {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}
.h2h-player {
    text-align: center;
    text-decoration: none;
    color: inherit;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}
.h2h-player:hover { border-color: var(--accent-primary); }
.h2h-player-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-display);
}
.h2h-player-mmr {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-top: var(--spacing-xs);
}
.h2h-center { text-align: center; }
.h2h-shared {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: var(--spacing-sm);
}
.h2h-record { display: flex; flex-direction: column; gap: var(--spacing-xs); }
.h2h-record-label { font-size: 0.8rem; color: var(--text-muted); }
.h2h-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.h2h-kpi {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    padding: 7px 8px;
    text-align: center;
}
.h2h-kpi-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.h2h-kpi-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
}
.h2h-stats-switch {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}
.h2h-stats-tab {
    min-width: 130px;
    padding: 6px 12px;
}
.h2h-stats-tab[data-mode="same"].active {
    background: linear-gradient(135deg, #6d8a2e, #89a841);
    border-color: #6d8a2e;
}
.h2h-stats-tab[data-mode="opposing"].active {
    background: linear-gradient(135deg, #c96b52, #d8876e);
    border-color: #c96b52;
}
.h2h-stats-caption {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.h2h-cs-status {
    text-align: center;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
}
.h2h-stats { max-width: 500px; margin: var(--spacing-md) auto 0; }
.h2h-stats-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 8px;
}
.h2h-subtitle {
    margin: 12px 0 8px;
    font-size: 0.95rem;
    text-align: center;
    color: var(--text-secondary);
}
.h2h-radar-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.h2h-radar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.h2h-radar-svg {
    width: 220px;
    height: 220px;
}
.h2h-radar-ring {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 0.8;
}
.h2h-radar-axis {
    stroke: var(--border-color);
    stroke-width: 0.8;
}
.h2h-radar-label {
    fill: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}
.h2h-radar-p1-fill {
    fill: rgba(201, 107, 82, 0.18);
}
.h2h-radar-p1-stroke {
    fill: none;
    stroke: rgba(201, 107, 82, 0.95);
    stroke-width: 1.8;
}
.h2h-radar-p2-fill {
    fill: rgba(109, 138, 46, 0.16);
}
.h2h-radar-p2-stroke {
    fill: none;
    stroke: rgba(109, 138, 46, 0.95);
    stroke-width: 1.8;
}
.h2h-radar-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.h2h-radar-values {
    margin-top: 4px;
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}
.h2h-radar-metric {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 5px 6px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.h2h-radar-metric span {
    display: block;
}
.h2h-radar-metric span:last-child {
    font-family: var(--font-display);
    color: var(--text-primary);
    margin-top: 1px;
}
.h2h-champ-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.h2h-champ-header h3 {
    margin: 0;
}
.h2h-champ-sort {
    display: inline-flex;
    gap: 6px;
}
.h2h-champ-sort-btn {
    font-size: 0.75rem;
    padding: 4px 9px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
}
.h2h-champ-sort-btn.active {
    border-color: var(--accent-primary);
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}
.h2h-radar-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.h2h-radar-dot.p1 { background: rgba(201, 107, 82, 1); }
.h2h-radar-dot.p2 { background: rgba(109, 138, 46, 1); }

.h2h-champ-table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.h2h-champ-head,
.h2h-champ-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 8px;
    padding: 9px 10px;
    align-items: center;
}
.h2h-champ-head {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: var(--bg-secondary);
}
.h2h-champ-row {
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}
.h2h-champ-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.h2h-champ-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
.h2h-stat-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.h2h-stat-row:last-child { border-bottom: none; }
.h2h-stat-val { font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; }
.h2h-stat-label { color: var(--text-muted); font-size: 0.85rem; min-width: 100px; }
.h2h-match-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: var(--spacing-md);
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    margin-bottom: 5px;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.h2h-match-row:hover { background: var(--bg-card-hover); }
.h2h-match-row.same-team {
    background: rgba(109, 138, 46, 0.05);
    border-left-color: var(--success);
}
.h2h-match-row.opposing-team {
    background: rgba(201, 107, 82, 0.05);
    border-left-color: var(--accent-primary);
}

.h2h-match-side {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.h2h-match-side-left { justify-content: flex-end; text-align: right; }
.h2h-match-side-right { justify-content: flex-start; text-align: left; }

.h2h-match-side-text {
    min-width: 0;
}

.h2h-match-champ {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.h2h-match-player {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-match-kda {
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.h2h-match-subline {
    margin-top: 1px;
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.h2h-match-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 0.69rem;
    gap: 8px;
    min-width: 148px;
    justify-content: center;
}

.h2h-match-relation {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.h2h-match-relation.same-team { color: var(--success); }
.h2h-match-relation.opposing-team { color: var(--accent-primary); }

#h2h-matches .h2h-match-row:last-child {
    margin-bottom: 0;
}

.h2h-match-row-expand {
    width: 16px;
    text-align: center;
    color: var(--text-muted);
    margin-left: 4px;
    flex-shrink: 0;
    transition: transform var(--transition-fast), color var(--transition-fast);
    user-select: none;
}

.h2h-match-row-expand.open {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.h2h-match-expand {
    margin-top: 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 10px;
}

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

.h2h-expand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.h2h-expand-team {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.h2h-expand-team-title {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.h2h-expand-team-title.team-blue { color: var(--blue-team); }
.h2h-expand-team-title.team-red { color: var(--red-team); }

.h2h-expand-player {
    display: grid;
    grid-template-columns: 30px 20px 1fr auto auto;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.h2h-expand-player:last-child {
    border-bottom: none;
}

.h2h-expand-role {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
}

.h2h-expand-champ {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.h2h-expand-name {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h2h-expand-name:hover {
    text-decoration: underline;
}

.h2h-expand-kda,
.h2h-expand-cs {
    font-size: 0.74rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.h2h-expand-actions {
    margin-top: 8px;
    text-align: right;
}

/* H2H W/L badge on match rows */
.h2h-match-wl-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.h2h-match-wl-badge.win { background: rgba(109, 138, 46, 0.2); color: var(--success); border: 1px solid rgba(109, 138, 46, 0.5); }
.h2h-match-wl-badge.loss { background: rgba(201, 107, 82, 0.2); color: var(--accent-primary); border: 1px solid rgba(201, 107, 82, 0.5); }

/* H2H relation badge (Allies / Enemies) */
.h2h-relation-badge {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    letter-spacing: 0.3px;
}
.h2h-relation-badge.same-team {
    background: rgba(109, 138, 46, 0.15);
    color: var(--success);
    border: 1px solid rgba(109, 138, 46, 0.4);
}
.h2h-relation-badge.opposing-team {
    background: rgba(201, 107, 82, 0.15);
    color: var(--accent-primary);
    border: 1px solid rgba(201, 107, 82, 0.4);
}

/* H2H loading indicator */
.h2h-loading {
    text-align: center;
    padding: var(--spacing-xl) 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* H2H champion winrate text coloring */
.h2h-champ-wr-high { color: var(--success); font-weight: 600; }
.h2h-champ-wr-low  { color: var(--accent-primary); font-weight: 600; }

@media (max-width: 768px) {
    .h2h-players { grid-template-columns: 1fr; }
    .h2h-select { flex-direction: column; }
    .h2h-player-select { min-width: 100%; }
    .h2h-season-select { min-width: 100%; }
    .h2h-kpi-strip { grid-template-columns: 1fr; }
    .h2h-match-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
    .h2h-match-side-left,
    .h2h-match-side-right {
        justify-content: flex-start;
        text-align: left;
    }
    .h2h-match-meta {
        align-items: flex-start;
        min-width: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .h2h-match-row-expand {
        margin-left: auto;
    }
    .h2h-expand-grid {
        grid-template-columns: 1fr;
    }
    .h2h-radar-svg {
        width: 200px;
        height: 200px;
    }
    .h2h-radar-values {
        grid-template-columns: 1fr;
    }
    .h2h-champ-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .h2h-champ-head,
    .h2h-champ-row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Draft Analytics
   -------------------------------------------------------------------------- */

.draft-overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.draft-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.draft-stat-value {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    text-align: center;
}

.draft-stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0;
    text-align: center;
}

#draft-overview .draft-stat-value {
    width: auto !important;
    height: auto !important;
}

.draft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.draft-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.draft-meta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.draft-meta-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.35px;
}

.draft-meta-value {
    margin-top: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.draft-meta-sub {
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.draft-controls {
    margin-bottom: var(--spacing-md);
}

.draft-champ-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.draft-champ-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.draft-champ-rank {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
}

.draft-champ-info {
    flex: 1;
    min-width: 0;
}

.draft-champ-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.draft-champ-detail {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.draft-champ-bar {
    width: 60px;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
}

.draft-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.draft-bar-ban {
    background: var(--red-team);
}

.draft-bar-pick {
    background: var(--blue-team);
}

/* Draft meta card champion icon */
.draft-meta-icon {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    margin: 6px 0 2px;
    object-fit: cover;
}

/* Draft presence cell with inline bar */
.draft-presence-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 768px) {
    .draft-overview { grid-template-columns: repeat(2, 1fr); }
    .draft-meta-grid { grid-template-columns: 1fr; }
    .draft-grid { grid-template-columns: 1fr; }
    .draft-controls {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
    .draft-controls .search-box input {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Achievements
   -------------------------------------------------------------------------- */

.achievements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: default;
    transition: border-color 0.2s, background 0.2s;
}

.achievement-badge:hover {
    border-color: var(--gold);
    background: rgba(184, 149, 106, 0.1);
}

.achievement-icon {
    font-size: 1.2rem;
}

.achievement-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.achievement-badge:hover .achievement-name {
    color: var(--gold);
}

/* Wiki page: achievements catalog */
.achievements-wiki-intro {
    max-width: 820px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
    color: var(--text-secondary);
}

.achievements-wiki-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.achievement-wiki-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0;
    padding: 12px var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.achievement-wiki-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex: 1;
    min-width: 300px;
}

.achievement-wiki-icon {
    font-size: 1.1rem;
}

.achievement-wiki-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    line-height: 1.1;
    margin: 0;
}

.achievement-wiki-rule {
    margin-top: 0;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.86rem;
    white-space: nowrap;
    flex: 1;
}

.achievement-wiki-queues {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.ach-q-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 99px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    letter-spacing: 0.02em;
}

.ach-q-badge.ach-q-plus {
    background: none;
    border: none;
    padding: 0 1px;
    color: var(--text-muted);
    font-weight: 400;
}

.achievement-wiki-card:first-child {
    border-top: 1px solid var(--border-color);
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
}

.achievement-wiki-card:last-child {
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

@media (max-width: 900px) {
    .achievement-wiki-card {
        flex-wrap: wrap;
        gap: 4px;
        padding: 10px var(--spacing-md);
    }
    .achievement-wiki-head,
    .achievement-wiki-rule {
        min-width: 0;
        width: 100%;
    }
    .achievement-wiki-rule {
        text-align: left;
        white-space: normal;
    }
}

.achievements-switch .queue-tab {
    width: auto;
}

/* --------------------------------------------------------------------------
   Live Matches
   -------------------------------------------------------------------------- */

.live-matches-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.live-match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.live-match-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.live-match-status {
    font-weight: 700;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.live-status-ongoing {
    background: rgba(109, 138, 46, 0.12);
    color: var(--success);
    animation: pulse-glow 2s infinite;
}

.live-status-preparing {
    background: rgba(201, 168, 92, 0.12);
    color: var(--warning);
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.live-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-md);
    align-items: start;
}

.live-match-vs {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-muted);
    align-self: center;
}

.live-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-team-label {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.live-team-blue .live-team-label { color: var(--blue-team); }
.live-team-red .live-team-label { color: var(--red-team); text-align: right; }
.live-team-red { text-align: right; }

.live-player {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.live-player:hover {
    color: var(--text-primary);
}

.live-role {
    display: inline-block;
    min-width: 34px;
    margin-right: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

@media (max-width: 768px) {
    .live-match-teams { grid-template-columns: 1fr; gap: var(--spacing-sm); }
    .live-match-vs { text-align: center; }
    .live-team-red { text-align: left; }
    .live-team-red .live-team-label { text-align: left; }
}

/* ============================================================================
   Profile Page — OP.GG-inspired Redesign
   ============================================================================ */

/* Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: sticky;
    top: 80px;
}

.profile-main-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Sidebar MMR Card */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.mmr-hero-card {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.sidebar-card h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.mmr-display {
    text-align: center;
}

.mmr-overview {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mmr-display .mmr-big {
    font-size: 2.8rem;
    line-height: 1;
}

.mmr-hero-card .mmr-display .mmr-big {
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.mmr-peak {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.mmr-hero-card .mmr-peak {
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 700;
}

.mmr-record {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: 0;
    padding-top: 0;
    font-size: 0.95rem;
}

.mmr-hero-card .mmr-record {
    color: var(--text-primary);
}

.mmr-record-sep {
    color: var(--text-muted);
}

.mmr-hero-card .mmr-record-sep {
    color: var(--text-muted);
}

.mmr-ladder-rank {
    font-size: 0.84rem;
    color: var(--text-secondary);
    letter-spacing: 0;
    text-transform: none;
}

.mmr-hero-card .mmr-ladder-rank {
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.mmr-ladder-rank-main {
    text-align: center;
}

.mmr-ladder-rank-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--text-secondary);
    line-height: 1;
}

.mmr-ladder-rank-sub strong {
    color: var(--text-primary);
    font-weight: 700;
}

.mmr-mvp-sep {
    color: var(--text-muted);
}

.mmr-period-change {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-top: 0;
    border-top: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.mmr-hero-card .mmr-period-change {
    color: var(--text-muted);
}

.mmr-period-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
}

.mmr-hero-card .mmr-period-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
}

.mmr-period-item:first-child {
    text-align: center;
}

.mmr-period-item:last-child {
    text-align: center;
}

.mmr-period-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.mmr-period-item strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.96rem;
}

.mmr-hero-card .mmr-period-item strong {
    color: var(--text-primary);
}

.mmr-hero-card .mmr-period-item strong.delta-pos {
    color: var(--success);
}

.mmr-hero-card .mmr-period-item strong.delta-neg {
    color: var(--accent-primary);
}

.mmr-hero-card .mmr-period-item strong.delta-zero {
    color: var(--text-primary);
}

.mmr-enemy-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
    padding: 0;
    text-align: left;
}

#sidebar-enemy-mmr {
    padding: 12px 14px;
}

.mmr-enemy-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mmr-enemy-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: right;
}

.mmr-streak {
    font-weight: 600;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.mmr-streak.win-streak {
    background: rgba(109, 138, 46, 0.1);
    color: var(--success);
}

.mmr-streak.loss-streak {
    background: rgba(201, 107, 82, 0.1);
    color: var(--accent-primary);
}

/* MMR Graph */
.mmr-graph-container {
    position: relative;
    margin-top: 10px;
    padding-top: 10px;
}

.mmr-hero-card .mmr-graph-container {
    border-top: 1px dashed var(--border-color);
}

.mmr-graph-container canvas {
    width: 100%;
    display: block;
}

.mmr-tooltip {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.75rem;
    line-height: 1.3;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    white-space: nowrap;
}

/* Champion Performance (Sidebar) */
.champ-perf-header {
    display: grid;
    grid-template-columns: 32px 92px 52px 60px;
    align-items: end;
    column-gap: 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.champ-perf-header span {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    font-weight: 500;
}

.champ-perf-header span:nth-child(2) {
    text-align: center;
}

.champ-perf-header span:nth-child(3),
.champ-perf-header span:nth-child(4) {
    text-align: center;
}

.champ-perf-row {
    display: grid;
    grid-template-columns: 32px 92px 52px 60px;
    align-items: center;
    column-gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.champ-perf-row:last-child {
    border-bottom: none;
}

.champ-perf-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
}

.champ-perf-kda {
    text-align: center;
    min-width: 0;
}

.champ-perf-kda-main {
    font-size: 1.1rem;
    line-height: 1;
    font-weight: 700;
    color: var(--text-primary);
}

.champ-perf-kda-sub {
    margin-top: 4px;
    font-size: 0.7rem;
    line-height: 1;
    color: color-mix(in srgb, var(--text-muted) 85%, #ffffff 15%);
    white-space: nowrap;
}

.champ-perf-games {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.champ-perf-wr {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
}

.champ-perf-wr.high { color: var(--success); }
.champ-perf-wr.low { color: var(--accent-primary); }

/* Role Performance (Sidebar) */
.role-perf-header {
    display: grid;
    grid-template-columns: 1fr 56px 52px;
    align-items: end;
    column-gap: 8px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.role-perf-header span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.role-perf-header span:first-child {
    padding-left: 26px;
}

.role-perf-header span:nth-child(2),
.role-perf-header span:nth-child(3) {
    text-align: center;
}

.role-perf-row {
    display: grid;
    grid-template-columns: 1fr 56px 52px;
    align-items: center;
    column-gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.role-perf-row:last-child {
    border-bottom: none;
}

.role-perf-role {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.role-perf-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
    opacity: 0.9;
}

.role-perf-icon-fallback {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.role-perf-name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-perf-games {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700;
    text-align: center;
}

.role-perf-wr {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

/* Performance Summary Bar */
.perf-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.perf-summary-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--accent-primary);
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
}

.perf-summary-title::before,
.perf-summary-title::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--border-color);
    opacity: 0.9;
}

.perf-main {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
    align-items: center;
    column-gap: 24px;
    width: 100%;
}

.winrate-donut {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.winrate-donut-inner {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.winrate-donut-pct {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-display);
    line-height: 1;
}

.winrate-donut-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.winrate-donut-record {
    font-size: 0.55rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.perf-kda {
    text-align: center;
    flex-shrink: 0;
    padding-left: 14px;
    border-left: 1px dashed var(--border-color);
}

.perf-kda-value {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-display);
    line-height: 1;
}

.perf-kda-breakdown {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.perf-kda-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.perf-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 14px;
    border-left: 1px dashed var(--border-color);
}

.perf-extra-item {
    text-align: center;
}

.perf-extra-value {
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-display);
}

.perf-extra-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.perf-trend {
    width: 100%;
    min-width: 0;
}

.perf-trend-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perf-trend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.perf-trend-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.perf-trend-main {
    min-width: 0;
}

.perf-trend-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.perf-trend-wr {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.perf-trend-wr.high { color: var(--success); }
.perf-trend-wr.low { color: var(--accent-primary); }

.perf-trend-record {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1;
}

.perf-trend-kda {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1;
}

/* Match History — OP.GG rows */
.match-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.match-history-header h3 {
    margin: 0;
}

.match-history-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.match-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.match-item {
    border-radius: var(--radius-md);
}

.match-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 10px var(--spacing-md);
    background: var(--bg-card);
    border-left: 4px solid transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

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

.match-row-win {
    border-left-color: var(--success);
    background: rgba(109, 138, 46, 0.05);
    border-color: color-mix(in srgb, var(--success) 28%, var(--border-color));
}

.match-row-loss {
    border-left-color: var(--accent-primary);
    background: rgba(201, 107, 82, 0.05);
    border-color: color-mix(in srgb, var(--accent-primary) 28%, var(--border-color));
}

.match-row-win:hover {
    background: rgba(109, 138, 46, 0.09);
}

.match-row-loss:hover {
    background: rgba(201, 107, 82, 0.09);
}

.match-row-meta {
    width: 75px;
    flex-shrink: 0;
}

.match-row-result {
    font-weight: 700;
    font-size: 0.8rem;
}

.match-row-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.match-row-champ {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 140px;
    flex-shrink: 0;
}

.match-row-champ-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.match-row-champ-name {
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-row-kda {
    text-align: center;
    width: 90px;
    flex-shrink: 0;
}

.match-row-kda-score {
    font-weight: 700;
    font-size: 0.95rem;
}

.match-row-kda-ratio {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.match-row-stats {
    display: flex;
    gap: var(--spacing-lg);
    flex: 1;
}

.match-row-stat {
    text-align: center;
}

.match-row-stat-value {
    font-weight: 600;
    font-size: 0.85rem;
}

.match-row-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.match-row-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    width: 70px;
    flex-shrink: 0;
}

.match-row-expand-indicator {
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-fast), color var(--transition-fast);
    user-select: none;
}

.match-row-expand-indicator.open {
    transform: rotate(180deg);
    color: var(--text-primary);
}

.match-expand {
    margin-top: 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    padding: 10px;
}

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

.match-expand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.match-expand-team {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
}

.match-expand-team-title {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.match-expand-team-title.team-blue { color: var(--blue-team); }
.match-expand-team-title.team-red { color: var(--red-team); }

.match-expand-player {
    display: grid;
    grid-template-columns: 30px 20px 1fr auto auto;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.match-expand-player:last-child {
    border-bottom: none;
}

.match-expand-role {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
}

.match-expand-champ {
    width: 18px;
    height: 18px;
    border-radius: 3px;
}

.match-expand-name {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-expand-name:hover {
    text-decoration: underline;
}

.match-expand-kda,
.match-expand-cs {
    font-size: 0.74rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.match-expand-actions {
    margin-top: 8px;
    text-align: right;
}

/* Responsive */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
    .profile-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .perf-summary {
        text-align: center;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }
    .perf-main {
        grid-template-columns: 1fr;
        row-gap: 10px;
        justify-items: center;
    }
    .perf-trend {
        width: 100%;
    }
    .perf-kda,
    .perf-extra {
        padding-left: 0;
        border-left: 0;
    }
    .perf-extra {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .match-row-stats,
    .match-row-date {
        display: none;
    }
    .match-row-expand-indicator {
        margin-left: auto;
    }
    .match-expand-grid {
        grid-template-columns: 1fr;
    }
    .match-row-champ {
        width: auto;
        flex: 1;
    }
    .match-row-meta {
        width: 65px;
    }
    .match-row-kda {
        width: 80px;
    }
}

/* ==========================================================================
   Roadmap Board
   ========================================================================== */

.roadmap-season-bar {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.season-tab {
    padding: 8px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font-body);
}

.season-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.season-tab.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.roadmap-board {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-md);
    -webkit-overflow-scrolling: touch;
}

.roadmap-column {
    min-width: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.roadmap-column-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px 14px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.roadmap-column-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roadmap-column-count {
    background: rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.roadmap-add-btn {
    background: rgba(255,255,255,0.25);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.roadmap-add-btn:hover {
    background: rgba(255,255,255,0.4);
}

.roadmap-column-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 80px;
}

.roadmap-card {
    background: var(--bg-secondary);
    border-left: 3px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: background 0.15s;
}

.roadmap-card:hover {
    background: var(--bg-card-hover);
}

.roadmap-card-title {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.roadmap-card-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s;
}

.roadmap-card:hover .roadmap-card-actions {
    opacity: 1;
}

.roadmap-card-actions button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}

.roadmap-card-actions button:hover {
    color: var(--accent-primary);
    background: rgba(201, 107, 82, 0.1);
}

.roadmap-empty {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: var(--spacing-md);
    font-style: italic;
}

/* Roadmap Modal */
.roadmap-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: var(--spacing-md);
}

.roadmap-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.roadmap-modal h3 {
    margin: 0 0 var(--spacing-lg);
    color: var(--text-primary);
    font-family: var(--font-display);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.form-input:focus {
    border-color: var(--accent-primary);
}

.form-input option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
}

/* Roadmap Mobile */
@media (max-width: 768px) {
    .roadmap-board {
        flex-direction: column;
    }
    .roadmap-column {
        min-width: unset;
    }
    .roadmap-card-actions {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   How It Works Steps
   -------------------------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
}

.step-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
}

.step-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.step-card h4 {
    margin-bottom: var(--spacing-xs);
}

.step-card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Live Dot Indicator
   -------------------------------------------------------------------------- */
.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 6px;
    vertical-align: middle;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(109, 138, 46, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(109, 138, 46, 0); }
}

/* --------------------------------------------------------------------------
   Season Badge
   -------------------------------------------------------------------------- */
.season-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    font-family: var(--font-display);
}

.season-badge:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Match Type Badge
   -------------------------------------------------------------------------- */
.match-type-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-5v5 {
    background: rgba(109, 138, 46, 0.15);
    color: var(--green, #6d8a2e);
    border: 1px solid rgba(109, 138, 46, 0.3);
}

.badge-aram {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* --------------------------------------------------------------------------
   Queue Widget Urgency
   -------------------------------------------------------------------------- */
.queue-widget-urgent {
    border-color: rgba(201, 107, 82, 0.45) !important;
    box-shadow: 0 0 0 1px rgba(201, 107, 82, 0.2), inset 0 0 24px rgba(201, 107, 82, 0.04);
}

.queue-widget-ready {
    border-color: rgba(109, 138, 46, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(109, 138, 46, 0.25), inset 0 0 24px rgba(109, 138, 46, 0.06);
}

/* --------------------------------------------------------------------------
   Recent Matches Grid (Home)
   -------------------------------------------------------------------------- */
.recent-matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.recent-match-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-top: 3px solid var(--border-color);
}

.recent-match-card.winner-blue { border-top-color: var(--blue-team); }
.recent-match-card.winner-red { border-top-color: var(--red-team); }

.recent-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.recent-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.recent-match-meta {
    color: var(--text-muted);
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.75rem;
}

.recent-match-teams {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    font-size: 0.8rem;
}

.recent-match-team {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-match-team-label {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.recent-match-team-blue .recent-match-team-label { color: var(--blue-team); }
.recent-match-team-red .recent-match-team-label { color: var(--red-team); text-align: right; }
.recent-match-team-red { text-align: right; }

.recent-match-player {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

.recent-match-team-red .recent-match-player {
    justify-content: flex-end;
}

.recent-match-champ {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.recent-match-vs {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0 6px;
}

.recent-match-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.recent-match-winner {
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.8rem;
}

.recent-match-winner.blue { color: var(--blue-team); }
.recent-match-winner.red { color: var(--red-team); }

@media (max-width: 900px) {
    .recent-matches-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* --------------------------------------------------------------------------
   Rank Medal (Top Players)
   -------------------------------------------------------------------------- */
.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.rank-medal-1 {
    background: linear-gradient(135deg, #ffd700, #ffec8b);
    color: #1a1a25;
}

.rank-medal-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #1a1a25;
}

.rank-medal-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: #1a1a25;
}

.streak-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.8rem;
}

.streak-badge.win {
    background: rgba(109, 138, 46, 0.1);
    color: var(--success);
}

.streak-badge.loss {
    background: rgba(201, 107, 82, 0.1);
    color: var(--accent-primary);
}

.hide-mobile { }

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Footer (Full)
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-primary);
    padding: 0 0 var(--spacing-lg);
    border-top: none;
}

.site-footer::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-team), var(--accent-primary), var(--red-team));
    margin-bottom: var(--spacing-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Champion Trend Arrows
   -------------------------------------------------------------------------- */
.trend-up {
    display: inline-block;
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.9;
}

.trend-down {
    display: inline-block;
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 5px;
    vertical-align: middle;
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Match Detail — Stat Leader Highlights & MVP
   -------------------------------------------------------------------------- */
.match-detail-mvp {
    font-size: 0.85rem;
    vertical-align: middle;
    margin-left: 2px;
}

.stat-top-badge {
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 2px;
}

.row-mvp {
    background: rgba(184, 149, 106, 0.07);
}

.row-mvp:hover {
    background: rgba(184, 149, 106, 0.14) !important;
}

.stat-leader-kda {
    color: var(--success);
    font-weight: 700;
}

.stat-leader-cs {
    color: var(--blue-team);
    font-weight: 700;
}

.stat-leader-dmg {
    color: var(--accent-primary);
    font-weight: 700;
}

/* ── My Match W/L Badge ── */
.my-match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}
.my-match-badge-win  { background: var(--success); color: #fff; }
.my-match-badge-loss { background: var(--danger);  color: #fff; }

/* ── Role Badge (mini player cards) ── */
.role-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    padding: 1px 4px;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

/* ── Filter Advanced Collapse ── */
.filter-advanced {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    width: 100%;
}
.filter-advanced.filter-hidden { display: none !important; }

/* ── Damage Bar ── */
.dmg-bar-wrapper {
    margin-top: 3px;
    height: 3px;
    border-radius: 2px;
    background: var(--border-color);
    overflow: hidden;
}
.dmg-bar-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* ── Kill Participation Badge ── */
.kp-badge {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-align: center;
}

/* ── CS/min ── */
.cs-min {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Team Totals Row ── */
.team-totals-row {
    border-top: 2px solid var(--border-color);
}
.team-totals-row td {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
}

/* ── VS Kill Score ── */
.vs-kill-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: var(--font-display);
}
.vs-kill-score .vs-score-nums {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}
.vs-kill-score .vs-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Row Highlight (logged-in user) ── */
.row-me {
    background: rgba(var(--accent-primary-rgb, 229, 100, 38), 0.08) !important;
    outline: 1px solid rgba(var(--accent-primary-rgb, 229, 100, 38), 0.25);
}
.row-me:hover {
    background: rgba(var(--accent-primary-rgb, 229, 100, 38), 0.14) !important;
}

/* --------------------------------------------------------------------------
   Mobile: Match detail table scroll
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .team-stats-table th,
    .team-stats-table td {
        padding: 8px 6px;
        font-size: 0.82rem;
    }
    .col-dmg {
        min-width: 80px;
    }
}

/* --------------------------------------------------------------------------
   Season Recap Podium
   -------------------------------------------------------------------------- */
.recap-podium {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}
.recap-podium-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    min-width: 130px;
    color: var(--text-primary);
    transition: transform 0.15s;
}
.recap-podium-card:hover { transform: translateY(-2px); }
.recap-medal { font-size: 1.8rem; }
.recap-awards { display: flex; flex-wrap: wrap; gap: var(--spacing-md); }
.recap-award { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Loading spinner (shared) ── */
.loading-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Match Detail v2 (OP.GG style) ───────────────────────────────────────── */
.pd-team-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.pd-team-win { border-left: 3px solid var(--color-blue); }
.pd-team-lose { border-left: 3px solid var(--color-red); }

.pd-team-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}
.pd-team-blue { background: rgba(59,130,246,0.08); }
.pd-team-red  { background: rgba(239,68,68,0.08); }
.pd-team-label { font-size: 1rem; font-weight: 700; }
.pd-team-result { margin-left: 4px; }
.pd-team-score { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }

.pd-vs-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 4px 0;
}
.pd-vs-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }

.pd-row {
    display: grid;
    grid-template-columns: 52px 160px 160px 86px 92px 1fr;
    /* champ | name+mmr | items+augs | kda | cs/gold | dmg */
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s;
}
.pd-row:last-child { border-bottom: none; }
.pd-row:hover { background: rgba(255,255,255,0.03); }
.pd-mvp { background: rgba(234,179,8,0.07) !important; }
.pd-me  { background: rgba(99,102,241,0.08) !important; }

.pd-champ-wrap { position: relative; width: 48px; height: 48px; flex-shrink: 0; }
.pd-champ { width: 48px; height: 48px; border-radius: var(--radius-md); object-fit: cover; }
.pd-mvp-badge {
    position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    background: var(--color-gold); color: #000; font-size: 0.6rem;
    font-weight: 700; padding: 1px 5px; border-radius: 10px; white-space: nowrap;
}

.pd-info { min-width: 0; overflow: hidden; }
.pd-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.pd-sub { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.pd-sub-sep { opacity: 0.35; margin: 0 1px; }
.pd-sub-rank { opacity: 0.7; }
/* 4 cols: item1 item2 item3 poro / item4 item5 item6 [empty] */
.pd-items-grid { display: grid; grid-template-columns: repeat(4, 22px); gap: 2px; }
/* 2 cols × 2 rows, mit Trennstrich links */
.pd-augments-grid { display: grid; grid-template-columns: repeat(2, 26px); gap: 2px; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.15); }
.pd-gear-row { display: flex; flex-direction: row; align-items: flex-start; flex-shrink: 0; }
.pd-item { width: 22px; height: 22px; border-radius: 3px; flex-shrink: 0; }
.pd-item-empty { background: rgba(255,255,255,0.05); border-radius: 3px; }
.pd-augment { width: 26px; height: 26px; border-radius: 50%; }
.pd-trinket { opacity: 0.8; }

.pd-kda { text-align: center; min-width: 78px; padding-left: 10px; border-left: 1px solid rgba(255,255,255,0.15); }
.pd-kda-score { font-size: 1.05rem; font-weight: 700; }
.pd-k { color: var(--text-primary); }
.pd-d { color: var(--color-red); }
.pd-a { color: var(--text-muted); }
.pd-sep { color: var(--border-color); margin: 0 2px; }
.pd-kp { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.pd-kda-top .pd-kda-score { color: var(--color-gold); }

.pd-stats { font-size: 0.78rem; color: var(--text-muted); min-width: 80px; }
.pd-stat-line { margin-bottom: 2px; }
.pd-stat-label { color: var(--text-muted); opacity: 0.7; }
.pd-stat-sub { opacity: 0.7; }

.pd-dmg { min-width: 80px; }
.pd-dmg-num { font-size: 0.82rem; font-weight: 600; white-space: nowrap; margin-bottom: 5px; }
.pd-dmg-top .pd-dmg-num { color: #f97316; }
.pd-dmg-bar { width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.pd-dmg-fill { height: 100%; background: #f97316; border-radius: 3px; transition: width 0.4s ease; }

.pd-mmr { font-size: 0.9rem; font-weight: 700; text-align: right; min-width: 44px; }
.pd-mmr-pos { color: var(--color-success); }
.pd-mmr-neg { color: var(--color-red); }

.champ-rank-overlay {
    position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.75); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    padding: 1px 4px; border-radius: 8px; white-space: nowrap;
}
.player-champ-wrap { position: relative; display: inline-flex; flex-shrink: 0; }

@media (max-width: 700px) {
    .pd-row { grid-template-columns: 44px 1fr 80px 70px; }
    .pd-stats { display: none; }
    .pd-augments-grid { display: none; }
    .pd-champ { width: 40px; height: 40px; }
    .pd-champ-wrap { width: 40px; height: 40px; }
    .pd-item { width: 18px; height: 18px; }
    .pd-items-grid { grid-template-columns: repeat(4, 18px); }
}
