/* ============================================================
   Arena Stats – Premium Dark Gaming UI
   ============================================================ */

@font-face {
    font-family: "Beaufort for LoL";
    src: url("https://db.onlinewebfonts.com/t/504346cd02dbd32fe60aa53157c0443a.woff2") format("woff2");
    font-weight: 500;
    font-style: auto;
    font-display: swap;
}

@font-face {
    font-family: "Beaufort for LoL";
    src: url("https://db.onlinewebfonts.com/t/e2cc2eaab9e390c9b0e20601f0da7bc5.woff2") format("woff2");
    font-weight: 700;
    font-style: auto;
    font-display: swap;
}

@font-face {
    font-family: "Beaufort for LoL";
    src: url("https://db.onlinewebfonts.com/t/3a56262fb02d3ee77a5ea7dc0ae6e32d.woff2") format("woff2");
    font-weight: 800;
    font-style: auto;
    font-display: swap;
}

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

:root {
    --bg-base: #0a0b0f;
    --bg-surface: #12141a;
    --bg-card: #1a1d26;
    --bg-card-hover: #1f2330;
    --border: #2a2d3a;
    --border-glow: #c89b3c44;

    --gold: #c89b3c;
    --gold-light: #f0c060;
    --gold-glow: #c89b3c33;

    --blue: #4fc3f7;
    --purple: #9c6fe4;

    --green: #4ade80;
    --green-bg: #4ade8022;
    --red: #f87171;
    --red-bg: #f8717122;

    --text-primary: #e8e0d0;
    --text-secondary: #8a8fa8;
    --text-muted: #555870;

    --win-border: #4ade80;
    --loss-border: #f87171;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px var(--gold-glow);
    --aspect-portrait: 0.75;
}

/* Premium Noble Utilities */
.premium-header {
    background: radial-gradient(ellipse at center, rgba(200, 155, 60, 0.08) 0%, transparent 70%);
    border-bottom: 0 !important;
}

.noble-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.3;
}

.glass-card {
    background: rgba(18, 20, 26, 0.6) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 155, 60, 0.2) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(circle at 50% -20%, rgba(200, 155, 60, 0.15), transparent 70%),
        radial-gradient(circle at 10% 20%, rgba(156, 111, 228, 0.08), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(79, 195, 247, 0.05), transparent 40%),
        #010a13;
    /* Use deep LoL hextech blue/black */
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    background-attachment: fixed;
}

.font-beaufort {
    font-family: 'Beaufort for LoL', serif !important;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.nav-icon {
    font-size: 1.3rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gold-light);
}

.nav-login {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-login:hover {
    background: var(--gold);
    color: var(--bg-surface);
}

/* ============================================================ */
/* Mastery Card System (Unified Portrait 0.75)                 */
/* ============================================================ */
.mastery-card {
    position: relative;
    overflow: visible;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: #010a13;
    aspect-ratio: 0.75 !important;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-height: 300px !important;
    /* Force portrait height */
    border: 1px solid rgba(200, 155, 60, 0.1);
    width: 100%;
}

.card-rank-1 {
    min-height: 500px !important;
}

.card-rank-2,
.card-rank-3 {
    min-height: 420px !important;
}

/* Grids */
.mastery-grid {
    display: grid;
    padding: 20px 0;
}

.tier-elite {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 1.5rem !important;
    max-width: 1400px;
    margin: 0 auto;
}

.tier-compact {
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 1rem !important;
    max-width: 1400px;
    margin: 0 auto;
}

.elite-card {
    min-height: 320px !important;
    background: #010a13 url('https://www.transparenttextures.com/patterns/dark-matter.png') !important;
}

.compact-card {
    min-height: 220px !important;
}

.mastery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 1), 0 0 30px rgba(200, 155, 60, 0.2);
    border-color: var(--gold);
    z-index: 100;
}

.mastery-bg {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mastery-card:hover .mastery-bg {
    transform: scale(1.1);
}

.nav-logout {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-logout:hover {
    color: var(--text-primary);
    border-color: var(--gold);
    background: var(--gold-glow);
}

/* --- Hero Section (Homescreen) --- */
.hero {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background:
        radial-gradient(ellipse at 50% 0%, #c89b3c18 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, #9c6fe410 0%, transparent 50%),
        var(--bg-base);
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--gold-glow);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.gold-text {
    color: var(--gold-light);
    text-shadow: 0 0 40px var(--gold-glow);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Hero Search */
.hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrap {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.9rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
}

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

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, #a07828 100%);
    color: #0a0b0f;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.search-btn-icon {
    font-size: 1rem;
}

.search-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.search-hint code {
    color: var(--gold-light);
    font-family: monospace;
}

/* --- Feature Cards (Homescreen) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
}

.feature-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- Status Page --- */
.status-wrapper {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 50% 30%, #c89b3c0a 0%, transparent 60%),
        var(--bg-base);
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.status-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.status-player {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.status-player .tag {
    color: var(--text-secondary);
    font-weight: 400;
}

.status-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.status-error {
    color: var(--red);
    background: var(--red-bg);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

/* Progress Bar */
.progress-wrap {
    margin: 1.5rem 0 0.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-base);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px var(--gold-glow);
}

.progress-label {
    font-size: 0.83rem;
    color: var(--text-secondary);
}


/* --- Flash Messages --- */
.flash-container {
    position: fixed;
    top: 70px;
    right: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid;
    animation: slideIn 0.3s ease;
    max-width: 320px;
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-success {
    background: var(--green-bg);
    border-color: var(--green);
    color: var(--green);
}

.flash-error {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
}

.flash-warning {
    background: #fbbf2422;
    border-color: #fbbf24;
    color: #fbbf24;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, #a07828 100%);
    color: #0a0b0f;
    box-shadow: 0 2px 12px var(--gold-glow);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    box-shadow: 0 4px 20px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}

/* --- Forms --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group input,
.form-group select {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-group select option {
    background: var(--bg-card);
}

/* --- Auth Pages (Login) --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 20% 50%, #c89b3c0a 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, #9c6fe40a 0%, transparent 60%),
        var(--bg-base);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gold-light);
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.auth-form {
    text-align: left;
}

/* --- Search Page --- */
.search-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(ellipse at 30% 40%, #c89b3c08 0%, transparent 55%),
        var(--bg-base);
}

.search-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-card);
}

.search-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 0.4rem;
}

.search-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.search-form {
    margin-bottom: 1rem;
}

.search-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* --- Spinner --- */
.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #0a0b0f;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
 * Skin Picker Modal
 * -------------------------------------------------------------------------- */

.skin-option {
    display: inline-block;
    width: 250px;
    margin-right: 1rem;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.skin-option:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(234, 186, 34, 0.4);
}

.skin-option img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.skin-option:hover img {
    transform: scale(1.05);
}

.skin-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    padding: 1rem 0.5rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    font-weight: 600;
}

/* --- Stats Page --- */
.stats-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.stats-header {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--gold-light);
}

.stats-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.2;
}

.stats-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* --- Premium Insight Cards --- */
.insight-card {
    background: rgba(18, 20, 26, 0.6) url('https://www.transparenttextures.com/patterns/dark-matter.png');
    backdrop-filter: blur(12px);
    border: 1px solid rgba(200, 155, 60, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.insight-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(200, 155, 60, 0.15);
    transform: translateY(-3px);
}

/* --- Overview Grid --- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.stat-card--green {
    border-color: var(--green);
    background: linear-gradient(135deg, var(--bg-card), #4ade8010);
}

.stat-card--red {
    border-color: var(--red);
    background: linear-gradient(135deg, var(--bg-card), #f8717110);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* --- Sections --- */
.section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* --- Tables --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid rgba(200, 155, 60, 0.2);
    background: rgba(18, 20, 26, 0.4);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stats-table thead {
    background: var(--bg-surface);
}

.stats-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.stats-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    white-space: nowrap;
}

.stats-table tbody tr {
    background: transparent;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-table tbody tr:hover {
    background: rgba(200, 155, 60, 0.08);
    transform: scale(1.01) translateX(4px);
    box-shadow: -4px 0 0 var(--gold);
}

.champ-cell,
.duo-cell {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.champ-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    object-fit: cover;
}

.champ-icon-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
    flex-shrink: 0;
}

.winrate-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.winrate-badge--green {
    background: var(--green-bg);
    color: var(--green);
}

.winrate-badge--red {
    background: var(--red-bg);
    color: var(--red);
}

/* --- Match List --- */
.match-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.25rem;
    transition: background 0.15s, transform 0.15s;
    flex-wrap: wrap;
}

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

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

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

.match-result-badge {
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 56px;
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.match-card--win .match-result-badge {
    background: var(--green-bg);
    color: var(--green);
}

.match-card--loss .match-result-badge {
    background: var(--red-bg);
    color: var(--red);
}

.match-champ {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 160px;
}

.match-champ-name {
    font-weight: 700;
    font-size: 0.95rem;
}

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

.match-kda {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 90px;
    text-align: center;
}

.kda-kills {
    color: var(--green);
}

.kda-deaths {
    color: var(--red);
}

.kda-assists {
    color: var(--blue);
}

.match-damage {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 100px;
}

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

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

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: var(--gold-glow);
}

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.empty-hint code {
    display: inline-block;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.75rem;
    font-family: monospace;
    color: var(--gold-light);
    margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }

    .navbar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        padding: 0 0.5rem;
        background: rgba(18, 20, 26, 0.95);
        border-top: 1px solid var(--border);
        border-bottom: none;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
        z-index: 999;
    }

    .nav-brand {
        display: none !important;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-around;
        gap: 0;
    }

    .nav-actions>a {
        flex-direction: column !important;
        font-size: 0.65rem !important;
        padding: 0.5rem !important;
        gap: 0.2rem !important;
        color: var(--text-secondary) !important;
        border: none !important;
        background: transparent !important;
        line-height: 1.2;
        text-align: center;
    }

    .nav-actions>a:hover,
    .nav-actions>a:active {
        color: var(--gold-light) !important;
    }

    .nav-actions>a svg {
        margin-bottom: 2px;
    }

    .flash-container {
        top: 20px;
        right: 1rem;
        left: 1rem;
        align-items: center;
    }

    .flash {
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .stats-wrapper {
        padding: 1rem 1rem 2rem;
    }

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

    .match-card {
        gap: 0.75rem;
    }

    .match-damage,
    .match-duration {
        display: none;
    }

    /* Scrollable Data Tables (Card Stacks) */
    .table-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-right: -1rem;
        padding-right: 1rem;
    }

    .stats-table th,
    .stats-table td {
        white-space: nowrap;
    }
}