/* =============================================
   BASE & VARIABLES  (dark theme default)
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

:root,
[data-theme="dark"] {
    --bg:          #06080f;
    --surface:     rgba(12, 16, 25, 0.78);
    --surface2:    rgba(19, 24, 36, 0.92);
    --border:      rgba(255, 255, 255, 0.07);
    --border2:     rgba(255, 255, 255, 0.12);
    --accent:      #55d7ff;
    --accent2:     #0f7dc0;
    --text:        #edf3ff;
    --muted:       #7083a2;
    --win:         #22c55e;
    --loss:        #ef4444;
    --allied:      #38bdf8;
    --enemy:       #f97316;
    --input-bg:    rgba(4, 8, 18, 0.62);
    --card-tint-win:   rgba(34, 197, 94, 0.07);
    --card-tint-loss:  rgba(239, 68, 68, 0.07);
    --card-tint-enemy: rgba(249, 115, 22, 0.07);
    --hero-glow:   rgba(85, 215, 255, 0.18);
    --hero-ember:  rgba(249, 115, 22, 0.14);
    --body-bg:
        radial-gradient(circle at top center, rgba(111, 183, 255, 0.10), transparent 32%),
        radial-gradient(circle at 18% 14%, rgba(85, 215, 255, 0.10), transparent 22%),
        radial-gradient(circle at 82% 26%, rgba(249, 115, 22, 0.08), transparent 18%),
        linear-gradient(180deg, #070b14 0%, #060912 32%, #05070d 100%);
    --orb-1-bg: radial-gradient(circle, rgba(0,150,200,0.18), transparent 70%);
    --orb-2-bg: radial-gradient(circle, rgba(249,115,22,0.13), transparent 70%);
    --orb-3-bg: radial-gradient(circle, rgba(56,189,248,0.09), transparent 70%);
    --landing-grid-line: rgba(255,255,255,0.03);
    --landing-star-bg: rgba(255,255,255,0.88);
    --landing-star-glow: rgba(255,255,255,0.56);
    --hero-kicker-color: #93a6c7;
    --hero-lead-color: #c8d6ee;
    --signal-label-color: #7f92b2;
    --logo-text: #06080f;
    --logo-bg: linear-gradient(135deg, rgba(118, 226, 255, 1), rgba(42, 151, 230, 0.95));
    --logo-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 18px 38px rgba(41, 184, 255, 0.25);
    --theme-btn-bg: rgba(255,255,255,0.04);
    --theme-btn-border: rgba(255,255,255,0.08);
    --theme-btn-hover-bg: rgba(255,255,255,0.06);
    --theme-btn-hover-shadow: 0 0 22px rgba(85,215,255,0.18);
    --altar-bg: linear-gradient(180deg, rgba(11, 16, 27, 0.94), rgba(8, 12, 20, 0.9));
    --altar-border: rgba(255,255,255,0.08);
    --altar-inner-border: rgba(255,255,255,0.05);
    --altar-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 26px 70px rgba(0,0,0,0.34);
    --altar-rune-border: rgba(255,255,255,0.05);
    --altar-rune-inner: rgba(255,255,255,0.04);
    --altar-caption-color: #d6e4fb;
    --altar-caption-line: linear-gradient(90deg, rgba(85,215,255,0.85), transparent);
    --select-bg: rgba(255,255,255,0.04);
    --select-border: rgba(255,255,255,0.10);
    --select-focus-bg: rgba(255,255,255,0.06);
    --player-inputs-bg: linear-gradient(90deg, rgba(56,189,248,0.03), transparent 36%, transparent 64%, rgba(249,115,22,0.03));
    --player-inputs-border: rgba(255,255,255,0.08);
    --player-inputs-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    --vs-divider-line: linear-gradient(180deg, transparent, rgba(255,255,255,0.14), transparent);
    --vs-disc-bg: #0b1018;
    --vs-disc-color: #d4e7ff;
    --vs-disc-shadow: 0 0 30px rgba(85,215,255,0.18);
    --input-border: rgba(255,255,255,0.08);
    --input-focus-bg: rgba(8, 14, 24, 0.88);
    --input-focus-ring: 0 0 0 3px rgba(85, 215, 255, 0.08);
    --search-btn-bg: linear-gradient(90deg, #0e78b7 0%, #2cc7ee 52%, #62e6ff 100%);
    --search-btn-text: #05080e;
    --history-toggle-color: #93a6c7;
    --history-dropdown-bg: rgba(10, 14, 22, 0.68);
    --history-server-bg: rgba(0,200,240,0.08);
    --history-server-border: rgba(0,200,240,0.2);
    --history-hover-bg: rgba(128,128,128,0.06);
}

/* ── LIGHT THEME ────────────────────────────── */
[data-theme="light"] {
    --bg:          #f4f7fb;
    --surface:     rgba(255, 255, 255, 0.76);
    --surface2:    rgba(255, 255, 255, 0.92);
    --border:      rgba(74, 90, 120, 0.14);
    --border2:     rgba(74, 90, 120, 0.20);
    --accent:      #1676b3;
    --accent2:     #0b5b8e;
    --text:        #152033;
    --muted:       #687a98;
    --win:         #16a34a;
    --loss:        #dc2626;
    --allied:      #0b7ec2;
    --enemy:       #ea580c;
    --input-bg:    rgba(255, 255, 255, 0.82);
    --card-tint-win:   rgba(22, 163, 74, 0.05);
    --card-tint-loss:  rgba(220, 38, 38, 0.05);
    --card-tint-enemy: rgba(234, 88, 12, 0.05);
    --hero-glow:   rgba(59, 130, 246, 0.18);
    --hero-ember:  rgba(251, 191, 36, 0.16);
    --body-bg:
        radial-gradient(circle at top center, rgba(255, 221, 153, 0.36), transparent 30%),
        radial-gradient(circle at 14% 18%, rgba(125, 211, 252, 0.24), transparent 20%),
        radial-gradient(circle at 84% 28%, rgba(251, 191, 36, 0.18), transparent 16%),
        linear-gradient(180deg, #fffdf7 0%, #f6f9ff 34%, #edf3fb 100%);
    --orb-1-bg: radial-gradient(circle, rgba(125, 211, 252, 0.20), transparent 70%);
    --orb-2-bg: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 70%);
    --orb-3-bg: radial-gradient(circle, rgba(14, 165, 233, 0.11), transparent 70%);
    --landing-grid-line: rgba(33, 51, 87, 0.06);
    --landing-star-bg: rgba(255, 194, 52, 0.92);
    --landing-star-glow: rgba(255, 208, 89, 0.68);
    --hero-kicker-color: #6f7f9b;
    --hero-lead-color: #4f6280;
    --signal-label-color: #7e8ead;
    --logo-text: #16304b;
    --logo-bg: linear-gradient(135deg, rgba(255, 239, 187, 0.98), rgba(255, 201, 88, 0.96));
    --logo-shadow: 0 0 0 1px rgba(255,255,255,0.55) inset, 0 18px 36px rgba(255, 204, 87, 0.24);
    --theme-btn-bg: rgba(255,255,255,0.58);
    --theme-btn-border: rgba(87, 110, 146, 0.18);
    --theme-btn-hover-bg: rgba(255,255,255,0.84);
    --theme-btn-hover-shadow: 0 0 22px rgba(255, 196, 76, 0.24);
    --altar-bg: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(244, 248, 255, 0.92));
    --altar-border: rgba(108, 126, 162, 0.16);
    --altar-inner-border: rgba(108, 126, 162, 0.10);
    --altar-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 26px 70px rgba(138, 159, 194, 0.20);
    --altar-rune-border: rgba(106, 128, 166, 0.12);
    --altar-rune-inner: rgba(106, 128, 166, 0.08);
    --altar-caption-color: #2d4668;
    --altar-caption-line: linear-gradient(90deg, rgba(22,118,179,0.78), transparent);
    --select-bg: rgba(255,255,255,0.72);
    --select-border: rgba(108, 126, 162, 0.16);
    --select-focus-bg: rgba(255,255,255,0.94);
    --player-inputs-bg: linear-gradient(90deg, rgba(56,189,248,0.05), rgba(255,255,255,0.34) 36%, rgba(255,255,255,0.34) 64%, rgba(251,191,36,0.07));
    --player-inputs-border: rgba(108, 126, 162, 0.16);
    --player-inputs-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
    --vs-divider-line: linear-gradient(180deg, transparent, rgba(108,126,162,0.22), transparent);
    --vs-disc-bg: rgba(255,255,255,0.94);
    --vs-disc-color: #26527a;
    --vs-disc-shadow: 0 0 24px rgba(125,211,252,0.18);
    --input-border: rgba(108, 126, 162, 0.14);
    --input-focus-bg: rgba(255,255,255,0.97);
    --input-focus-ring: 0 0 0 3px rgba(22, 118, 179, 0.10);
    --search-btn-bg: linear-gradient(90deg, #ffcf63 0%, #ffd977 46%, #fff1bc 100%);
    --search-btn-text: #4f3612;
    --history-toggle-color: #6f7f9b;
    --history-dropdown-bg: rgba(255,255,255,0.78);
    --history-server-bg: rgba(22,118,179,0.08);
    --history-server-border: rgba(22,118,179,0.16);
    --history-hover-bg: rgba(108,126,162,0.08);
}

[data-theme="light"] body        { background-color: var(--bg); }
[data-theme="light"] .orb-1      { background: radial-gradient(circle, rgba(0,120,180,0.10), transparent 70%); }
[data-theme="light"] .orb-2      { background: radial-gradient(circle, rgba(234,88,12,0.08),  transparent 70%); }
[data-theme="light"] .orb-3      { background: radial-gradient(circle, rgba(2,132,199,0.06),  transparent 70%); }
[data-theme="light"] .vs-divider::after  { background: var(--bg); }
[data-theme="light"] input[type="text"]  { background: var(--input-bg); }
[data-theme="light"] .skeleton-block,
[data-theme="light"] .skel-splash-strip {
    background: linear-gradient(90deg, #dce2ef 25%, #c8d0e3 50%, #dce2ef 75%);
    background-size: 700px 100%;
}
[data-theme="light"] .subtitle { color: #5f7090; }
[data-theme="light"] .summary-wrapper {
    background: rgba(255,255,255,0.72);
    border-color: rgba(104, 124, 159, 0.18);
}
[data-theme="light"] .summary-label,
[data-theme="light"] .summary-sub {
    color: #6a7d9b;
}
[data-theme="light"] .synergy-subtitle { color: #5d7192; }
[data-theme="light"] .carry-dashboard {
    background: linear-gradient(135deg, rgba(255,255,255,0.78), rgba(244,248,255,0.92));
    border-color: rgba(104, 124, 159, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 20px 42px rgba(140, 157, 187, 0.14);
}
[data-theme="light"] .carry-header h2 { color: #17253a; }
[data-theme="light"] .synergy-badge {
    background: rgba(22, 118, 179, 0.10);
    border-color: rgba(22, 118, 179, 0.18);
    color: #166c9f;
}
[data-theme="light"] .synergy-hero {
    background:
        radial-gradient(circle at top left, rgba(22,118,179,0.08), transparent 42%),
        radial-gradient(circle at bottom right, rgba(234,88,12,0.05), transparent 38%),
        linear-gradient(135deg, rgba(255,255,255,0.78), rgba(248,251,255,0.92));
    border-color: rgba(104, 124, 159, 0.14);
}
[data-theme="light"] .synergy-eyebrow { color: #6580a8; }
[data-theme="light"] .synergy-hero-inline-stats span {
    background: rgba(18, 34, 58, 0.05);
    border-color: rgba(96, 118, 155, 0.12);
    color: #355178;
    font-weight: 700;
}
[data-theme="light"] .synergy-hero-inline-stats .synergy-stat-chip-games {
    background: rgba(108, 126, 162, 0.18);
    border-color: rgba(108, 126, 162, 0.26);
    color: #405978;
}
[data-theme="light"] .synergy-hero-inline-stats .synergy-stat-chip-wins {
    background: rgba(22, 163, 74, 0.22);
    border-color: rgba(22, 163, 74, 0.30);
    color: #125d31;
}
[data-theme="light"] .synergy-hero-inline-stats .synergy-stat-chip-wr {
    background: rgba(22, 118, 179, 0.22);
    border-color: rgba(22, 118, 179, 0.30);
    color: #0f5078;
}
[data-theme="light"] .synergy-hero-copy p,
[data-theme="light"] .synergy-empty-copy p,
[data-theme="light"] .designation-pill span,
[data-theme="light"] .tug-head,
[data-theme="light"] .champ-card span,
[data-theme="light"] .synergy-pair-main span,
[data-theme="light"] .synergy-hero-matrix span {
    color: #607392;
}
[data-theme="light"] .designation-pill strong,
[data-theme="light"] .synergy-hero-matrix strong,
[data-theme="light"] .tug-head span:last-child {
    color: #213550;
}
[data-theme="light"] .synergy-hero-matrix div,
[data-theme="light"] .tug-metric,
[data-theme="light"] .synergy-section,
[data-theme="light"] .champ-card,
[data-theme="light"] .synergy-pair-row {
    background: rgba(255,255,255,0.56);
    border-color: rgba(106, 126, 162, 0.12);
}
[data-theme="light"] .synergy-mini-bar,
[data-theme="light"] .tug-track {
    background: rgba(96, 118, 155, 0.10);
}
[data-theme="light"] .designation-pill {
    background: rgba(22, 118, 179, 0.10);
    border-color: rgba(22, 118, 179, 0.16);
}
[data-theme="light"] .champ-player-column > p,
[data-theme="light"] .carry-kicker,
[data-theme="light"] .signal-label,
[data-theme="light"] .hero-kicker {
    color: #6880a4;
}

/* =============================================
   BODY
   ============================================= */
body {
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 15px;
    background: var(--body-bg);
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 30px 20px 82px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* =============================================
   AMBIENT ORBS
   ============================================= */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
}
.orb-1 { width: 480px; height: 480px; background: var(--orb-1-bg); top: -160px; left: -140px; }
.orb-2 { width: 380px; height: 380px; background: var(--orb-2-bg); bottom: 80px; right: -100px; }
.orb-3 { width: 280px; height: 280px; background: var(--orb-3-bg); top: 55%; left: 55%; }

/* =============================================
   CONTAINER
   ============================================= */
.container {
    width: 100%;
    max-width: 1020px;
    position: relative;
    z-index: 1;
}

/* =============================================
   LANDING HERO
   ============================================= */
.landing-shell {
    position: relative;
    padding: 14px 6px 8px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-bottom: 18px;
}

.landing-grid,
.landing-halo,
.landing-star {
    position: absolute;
    pointer-events: none;
}

.landing-grid {
    inset: 0;
    background:
        linear-gradient(var(--landing-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--landing-grid-line) 1px, transparent 1px);
    background-size: 140px 140px;
    mask-image: radial-gradient(circle at center, black 42%, transparent 96%);
    opacity: 0.14;
}

.landing-halo {
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.9;
}

.landing-halo-left {
    background: radial-gradient(circle, var(--hero-glow), transparent 68%);
    top: -190px;
    left: -220px;
}

.landing-halo-right {
    background: radial-gradient(circle, var(--hero-ember), transparent 68%);
    right: -180px;
    bottom: -210px;
}

.landing-star {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--landing-star-bg);
    box-shadow: 0 0 18px var(--landing-star-glow);
}

.landing-star-a { top: 84px; right: 220px; }
.landing-star-b { top: 152px; right: 112px; width: 2px; height: 2px; opacity: 0.7; }
.landing-star-c { left: 128px; bottom: 132px; width: 3px; height: 3px; opacity: 0.75; }

.hero-copy,
.altar-shell {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 760px;
    margin-bottom: 14px;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.header-title { flex: 1; }

.hero-kicker {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hero-kicker-color);
}

.logo-mark {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--logo-text);
    background: var(--logo-bg);
    width: 46px; height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--logo-shadow);
}

h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: 1.8px;
    line-height: 0.95;
}

.subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 12px;
    max-width: 560px;
}

.hero-lead {
    margin: 0 0 14px;
    max-width: 660px;
    color: var(--hero-lead-color);
    font-size: 15px;
    line-height: 1.42;
    letter-spacing: -0.01em;
}

.hero-signals {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.signal-card {
    min-width: 170px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.signal-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--signal-label-color);
    margin-bottom: 4px;
}

.signal-card strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    letter-spacing: 0.8px;
    color: var(--text);
}

/* ── Theme toggle ───────────────────────────── */
.theme-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--theme-btn-bg);
    border: 1px solid var(--theme-btn-border);
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    padding: 0;
    letter-spacing: normal;
    text-transform: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.theme-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: var(--theme-btn-hover-shadow);
    background: var(--theme-btn-hover-bg);
    filter: none;
}

/* =============================================
   FORM / ALTAR
   ============================================= */
.altar-shell {
    position: relative;
    padding: 18px;
    border-radius: 22px;
    background: var(--altar-bg);
    border: 1px solid var(--altar-border);
    box-shadow: var(--altar-shadow);
}

.altar-shell::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 16px;
    border: 1px solid var(--altar-inner-border);
    pointer-events: none;
}

.altar-rune {
    position: absolute;
    top: 24px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 1px solid var(--altar-rune-border);
    opacity: 0.35;
    filter: blur(0.2px);
}

.altar-rune::before,
.altar-rune::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px solid var(--altar-rune-inner);
}

.altar-rune-left {
    left: -58px;
    background: radial-gradient(circle, rgba(56,189,248,0.14), transparent 64%);
}

.altar-rune-right {
    right: -58px;
    background: radial-gradient(circle, rgba(249,115,22,0.12), transparent 64%);
}

#search-form {
    position: relative;
    z-index: 1;
}

.altar-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.altar-caption {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--altar-caption-color);
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.altar-caption::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--altar-caption-line);
}

.server-selection {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.server-selection label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

select {
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--select-bg);
    color: var(--text);
    border: 1px solid var(--select-border);
    outline: none;
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.2s, background 0.2s;
}
select:focus { border-color: var(--accent); background: var(--select-focus-bg); }

.player-inputs {
    display: flex;
    align-items: stretch;
    margin-bottom: 14px;
    background: var(--player-inputs-bg);
    border-radius: 20px;
    border: 1px solid var(--player-inputs-border);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--player-inputs-shadow);
}

.player-card {
    flex: 1;
    padding: 20px 20px 18px;
    position: relative;
}

.player-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.player-card-p1::before {
    background: radial-gradient(circle at top left, rgba(56,189,248,0.09), transparent 44%);
}

.player-card-p2::before {
    background: radial-gradient(circle at top right, rgba(249,115,22,0.08), transparent 44%);
}

.player-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.p1-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.p2-dot { background: var(--enemy);  box-shadow: 0 0 6px var(--enemy); }

.vs-divider {
    width: 1px;
    background: var(--vs-divider-line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.vs-divider::after {
    content: '✦';
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--vs-disc-color);
    background: var(--vs-disc-bg);
    box-shadow: var(--vs-disc-shadow);
    padding: 9px;
    border-radius: 50%;
}

input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    margin: 5px 0;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text);
    border-radius: 12px;
    outline: none;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.2s;
}
input[type="text"]:focus {
    border-color: var(--accent);
    background: var(--input-focus-bg);
    box-shadow: var(--input-focus-ring);
    transform: translateY(-1px);
}
input[type="text"]::placeholder { color: var(--muted); }

button[type="submit"], button#search-btn {
    width: 100%;
    background: var(--search-btn-bg);
    color: var(--search-btn-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.2),
        0 18px 44px rgba(34, 180, 235, 0.28);
}
button[type="submit"]:hover, button#search-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.24),
        0 24px 56px rgba(34, 180, 235, 0.34);
}

.hero-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    color: #8092b0;
    font-size: 11px;
}

.footnote-divider {
    color: rgba(255,255,255,0.18);
}

/* =============================================
   SEARCH HISTORY
   ============================================= */
.history-wrapper {
    margin-top: 8px;
    padding: 0 6px;
}

.history-toggle {
    background: none;
    border: none;
    color: var(--history-toggle-color);
    font-size: 12px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    width: auto;
    transition: color 0.2s;
}
.history-toggle:hover { color: var(--text); transform: none; filter: none; box-shadow: none; }
.history-toggle-label { text-transform: none; }
.history-arrow { font-size: 11px; }

.history-dropdown {
    margin-top: 6px;
    background: var(--history-dropdown-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.history-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: none; border: none;
    border-bottom: 1px solid var(--border);
    padding: 11px 16px; cursor: pointer; text-align: left; gap: 12px;
    transition: background 0.15s;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: normal; text-transform: none;
    font-size: 13px; color: var(--text);
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: var(--history-hover-bg); transform: none; filter: none; box-shadow: none; }
.hi-names { flex: 1; color: var(--text); font-size: 13px; }
.hi-tag   { color: var(--muted); font-size: 12px; }
.hi-server {
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 1px;
    color: var(--accent);
    background: var(--history-server-bg);
    border: 1px solid var(--history-server-border);
    padding: 2px 8px; border-radius: 4px; flex-shrink: 0;
}

/* =============================================
   LOADING / SKELETON
   ============================================= */
.loading-header {
    display: flex; align-items: center; gap: 18px;
    padding: 28px 0 20px;
}

.loading-spinner {
    width: 30px; height: 30px;
    border: 3px solid rgba(128,128,128,0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%; flex-shrink: 0;
    animation: spin 0.85s linear infinite;
}

.loading-title { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.loading-sub   { color: var(--muted); font-size: 13px; margin: 0; }

@keyframes shimmer {
    0%   { background-position: -700px 0; }
    100% { background-position:  700px 0; }
}

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

.skeleton-card {
    background: var(--surface); border-radius: 12px;
    border: 1px solid var(--border); overflow: hidden;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.skel-splash-strip {
    height: 48px;
    background: linear-gradient(90deg, #12141e 25%, #1c2030 50%, #12141e 75%);
    background-size: 700px 100%;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 12px; }

.skeleton-block {
    background: linear-gradient(90deg, #12141e 25%, #1c2030 50%, #12141e 75%);
    background-size: 700px 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 5px;
}

.skeleton-row        { display: flex; justify-content: space-between; align-items: center; }
.skeleton-player-row { display: flex; align-items: center; gap: 12px; }
.skeleton-col        { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.skel-date  { height: 11px; width: 110px; }
.skel-badge { height: 20px; width: 75px; border-radius: 4px; }
.skel-icon  { height: 40px; width: 40px; border-radius: 7px; flex-shrink: 0; }
.skel-name  { height: 13px; width: 130px; }
.skel-kda   { height: 11px; width: 70px; }
.skel-pill  { height: 22px; width: 28px; border-radius: 4px; margin-left: auto; }

/* =============================================
   RESULTS SECTION
   ============================================= */
.results-container {
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 28px;
}

/* Page-load fade-in */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
#results-area,
#loading-screen {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.32s ease;
}

#results-area.screen-visible,
#loading-screen.screen-visible {
    opacity: 1;
    transform: translateY(0);
}

#results-area {
    animation: pageIn 0.3s ease;
}

.results-caption { font-size: 12px; color: var(--muted); margin: 0 0 16px; }

/* =============================================
   MILESTONE BANNERS
   ============================================= */
.milestone-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.milestone-banner strong { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: 0.5px; display: block; }
.milestone-banner p      { font-size: 13px; color: inherit; margin: 3px 0 0; opacity: 0.8; }
.ms-icon                 { font-size: 28px; flex-shrink: 0; line-height: 1; }

.milestone-legendary {
    background: linear-gradient(110deg, rgba(234,179,8,0.12), rgba(249,115,22,0.10));
    border-color: rgba(234,179,8,0.3);
    color: #fbbf24;
}
.milestone-epic {
    background: linear-gradient(110deg, rgba(139,92,246,0.12), rgba(56,189,248,0.10));
    border-color: rgba(139,92,246,0.3);
    color: #a78bfa;
}
.milestone-rare {
    background: linear-gradient(110deg, rgba(0,200,240,0.10), rgba(56,189,248,0.08));
    border-color: rgba(0,200,240,0.25);
    color: var(--accent);
}
.milestone-common {
    background: linear-gradient(110deg, rgba(249,115,22,0.10), rgba(234,179,8,0.08));
    border-color: rgba(249,115,22,0.25);
    color: #fb923c;
}

/* =============================================
   SUMMARY WRAPPER + DONUT
   ============================================= */
.summary-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: 14px;
    padding: 16px 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#donut-chart { flex-shrink: 0; }

.summary-bar {
    display: flex; 
    align-items: flex-start;
    flex: 1;
    flex-wrap: wrap; 
    gap: 0; 
    row-gap: 10px;
}

.summary-stat { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 58px; }
.summary-stat-wide { min-width: 170px; }

.summary-num {
    font-family: 'Rajdhani', sans-serif;
    font-size: 26px; font-weight: 700; line-height: 1;
    color: var(--text);
}
.summary-num.allied-color { color: var(--allied); }
.summary-num.enemy-color  { color: var(--enemy);  }
.summary-num.wr-good      { color: var(--win);    }
.summary-num.wr-bad       { color: var(--loss);   }

/* H2H record inline display */
.h2h-num   { font-size: 22px; display: flex; align-items: baseline; gap: 3px; }
.h2h-dash  { color: var(--muted); font-size: 18px; }
.h2h-p1    { color: var(--muted); }
.h2h-p2    { color: var(--muted); }
.h2h-lead  { color: var(--win) !important; }

.summary-label {
    font-size: 10px; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.8px;
    margin-top: 4px; font-weight: 500;
    white-space: nowrap;
    text-align: center;
}

.summary-sub {
    margin-top: 5px;
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}


.summary-divider { width: 1px; height: 32px; background: var(--border2); flex-shrink: 0; }

/* =============================================
   DATE SPAN ROW
   ============================================= */
.date-span-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 4px;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--muted);
}

.date-span-row strong { color: var(--text); font-weight: 600; }
.ds-dot  { color: var(--border2); }
.ds-item { white-space: nowrap; }
.ds-emoji {
    display: inline-block;
    margin-right: 6px;
}

/* =============================================
   SHARE ROW
   ============================================= */
.share-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 9px; padding: 9px 14px; margin-bottom: 16px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.share-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.7;
    line-height: 1;
}

.share-input {
    flex: 1; background: transparent; border: none;
    color: var(--muted); font-size: 12px;
    font-family: 'DM Sans', monospace;
    outline: none; cursor: text; min-width: 0; margin: 0; padding: 0; width: auto;
}

.copy-btn {
    background: var(--surface2); color: var(--accent);
    border: 1px solid var(--border2); border-radius: 6px;
    padding: 5px 14px; font-size: 12px; font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s; flex-shrink: 0;
    width: auto; text-transform: none; letter-spacing: 0.3px;
}
.copy-btn:hover { background: var(--accent); color: #06080f; transform: none; filter: none; box-shadow: none; }
.copy-btn.copy-success { background: rgba(34,197,94,0.15); color: var(--win); border-color: rgba(34,197,94,0.3); }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.filter-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex-wrap: wrap;
}

.filter-bar > .filter-group:nth-of-type(3) {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.filter-sep {
    width: 1px;
    height: 20px;
    background: var(--border2);
    margin: 0 4px;
    flex-shrink: 0;
}

.filter-pill {
    background: transparent;
    border: 1px solid var(--border2);
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-transform: none;
    width: auto;
}
.filter-pill:hover {
    color: var(--text);
    border-color: var(--border2);
    background: rgba(128,128,128,0.08);
    transform: none;
    filter: none;
    box-shadow: none;
}
.filter-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #06080f;
    font-weight: 600;
}

.filter-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--muted);
    font-size: 14px;
}

/* =============================================
   MATCH CARDS
   ============================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0);    }
}

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

.match-card {
    width: 100%;
    box-sizing: border-box; /* Add this to prevent border overflow */ 
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--border);
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.42s ease forwards;
    transition: box-shadow 0.25s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.match-card:hover { box-shadow: 0 8px 36px rgba(0,0,0,0.45); }

.result-win  { border-left-color: var(--win);   background: linear-gradient(100deg, var(--card-tint-win)   0%, var(--surface) 55%); }
.result-loss { border-left-color: var(--loss);  background: linear-gradient(100deg, var(--card-tint-loss)  0%, var(--surface) 55%); }
.result-enemy{ border-left-color: var(--enemy); background: linear-gradient(100deg, var(--card-tint-enemy) 0%, var(--surface) 55%); }

/* ── Splash art strip with hover expand ───────────────────── */
.splash-strip {
    position: relative; /* Needed for the center shadow */
    height: 50px;
    background-size: 55% auto, 55% auto;
    background-position: -10% 25%, 110% 25%;
    background-repeat: no-repeat;
    filter: brightness(0.14) saturate(2.2);
    
    /* Reverted back to the rock-solid bottom fade */
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    
    transition: height 0.38s cubic-bezier(0.34, 1.3, 0.64, 1),
                filter  0.38s ease;
}

/* NEW: Creates a soft, dark feathered gradient directly over the center seam */
.splash-strip::after {
    content: '';
    position: absolute;
    top: 0; 
    bottom: 0;
    left: 35%; /* Spans the middle of the card */
    right: 35%;
    background: linear-gradient(to right, transparent, rgba(0,0,0,1) 50%, transparent);
    opacity: 0.85;
    pointer-events: none;
    transition: opacity 0.38s ease;
}

.match-card:hover .splash-strip {
    height: 110px;
    filter: brightness(0.38) saturate(1.9);
}

.match-card:hover .splash-strip::after {
    opacity: 0.6; /* Softens the center blur slightly when illuminated */
}

.match-card:hover .splash-strip {
    height: 110px;
    filter: brightness(0.38) saturate(1.9);
}

.card-body { padding: 11px 16px 14px; display: flex; flex-direction: column; gap: 10px; }

/* Card header */
.match-header { display: flex; justify-content: space-between; align-items: center; }
.header-left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.header-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.match-date   { font-size: 11px; color: var(--muted); }

/* Queue badge */
.queue-badge {
    font-size: 10px; font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.8px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 4px;
}
.q-solo   { background: rgba(234,179,8,0.12);   color: #eab308; border: 1px solid rgba(234,179,8,0.25); }
.q-flex   { background: rgba(16,185,129,0.12);  color: #10b981; border: 1px solid rgba(16,185,129,0.25); }
.q-aram   { background: rgba(139,92,246,0.12);  color: #a78bfa; border: 1px solid rgba(139,92,246,0.25); }
.q-clash  { background: rgba(239,68,68,0.12);   color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.q-arena  { background: rgba(249,115,22,0.12);  color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.q-urf    { background: rgba(34,197,94,0.12);   color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.q-normal { background: rgba(100,116,139,0.10); color: #94a3b8; border: 1px solid rgba(100,116,139,0.2); }

/* Team badge */
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.2px; white-space: nowrap; }
.badge-allied { background: rgba(56,189,248,0.1);  color: var(--allied); border: 1px solid rgba(56,189,248,0.25); }
.badge-enemy  { background: rgba(249,115,22,0.1);  color: var(--enemy);  border: 1px solid rgba(249,115,22,0.25); }

.log-btn {
    background: rgba(128,128,128,0.06);
    color: var(--muted);
    text-decoration: none; font-size: 13px; font-weight: 600;
    padding: 4px 9px; border-radius: 5px; border: 1px solid var(--border);
    transition: all 0.2s;
}
.log-btn:hover { background: var(--accent); color: #06080f; border-color: var(--accent); }

/* Player rows */
.player-row { display: flex; align-items: center; gap: 11px; }

.champ-icon {
    width: 40px; height: 40px;
    border-radius: 7px; object-fit: cover;
    border: 1px solid var(--border2); flex-shrink: 0;
}

.player-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.player-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.champ-name  { font-size: 12px; color: var(--accent); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.kda {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 600; color: var(--muted);
    letter-spacing: 0.5px; white-space: nowrap;
    min-width: 58px; text-align: right;
}

.result-pill {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    padding: 3px 8px; border-radius: 4px; flex-shrink: 0;
    width: 28px; text-align: center;
}
.pill-win  { background: rgba(34,197,94,0.14);  color: var(--win);  border: 1px solid rgba(34,197,94,0.3); }
.pill-loss { background: rgba(239,68,68,0.14);  color: var(--loss); border: 1px solid rgba(239,68,68,0.3); }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 20px; margin-top: 28px; padding-top: 20px;
    border-top: 1px solid var(--border);
}

.page-btn {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
    background: var(--surface); color: var(--accent);
    text-decoration: none; padding: 10px 24px;
    border-radius: 8px; border: 1px solid var(--border2);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s;
}
.page-btn:hover {
    background: var(--accent); color: #06080f;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0,200,240,0.22);
}

.page-info { font-family: 'Rajdhani', sans-serif; color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: 1.5px; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 560px) {
    body { padding: 18px 14px 72px; }
    .container { max-width: 100%; }
    .landing-shell { padding: 10px 0 8px; border-radius: 0; }
    .site-header { align-items: flex-start; }
    .logo-mark { width: 44px; height: 44px; font-size: 22px; border-radius: 14px; }
    h1 { font-size: 34px; }
    .hero-lead { font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
    .hero-signals { gap: 8px; }
    .signal-card { min-width: 0; width: 100%; }
    .altar-shell { padding: 16px 14px; border-radius: 20px; }
    .altar-topline { flex-direction: column; align-items: flex-start; gap: 12px; }
    .player-inputs { flex-direction: column; }
    .vs-divider { width: 100%; height: 1px; }
    .vs-divider::after { padding: 7px; }
    .kda { display: none; }
    .summary-wrapper { flex-direction: column; align-items: flex-start; }
    #donut-chart { align-self: center; }
    .share-input { display: none; }
    .filter-bar {
        justify-content: flex-start;
        gap: 8px;
        padding: 8px 10px;
    }
    .filter-sep { display: none; }
    .date-span-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .ds-dot { display: none; }
    .hero-footnote { flex-wrap: wrap; justify-content: flex-start; }
    .footnote-divider { display: none; }
}

/* =============================================
   TEMPORAL DIVIDERS
   ============================================= */
.month-divider {
    position: sticky;
    top: 16px;
    z-index: 10;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 18px;
    border-radius: 20px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--accent);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    align-self: center;
    margin: 16px auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: opacity 0.3s ease;
}

/* =============================================
   STREAM PROGRESS BAR + CANCEL
   ============================================= */
#stream-controls { margin-top: 10px; }

.progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.progress-track {
    flex: 1;
    height: 4px;
    background: var(--border2);
    border-radius: 99px;
    overflow: hidden;
}

#progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    border-radius: 99px;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(0, 200, 240, 0.5);
}

.progress-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.cancel-btn {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    width: auto;
    letter-spacing: 0.3px;
    text-transform: none;
}
.cancel-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    transform: none; filter: none; box-shadow: none;
}

/* =============================================
   INLINE ERROR BANNER
   ============================================= */
.error-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    margin-top: 24px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #f87171;
    font-size: 14px;
    font-weight: 500;
}
.error-icon { font-size: 18px; flex-shrink: 0; }

/* =============================================
   SORT TOGGLE
   ============================================= */
.caption-sort-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}
.caption-sort-row .results-caption { margin: 0; }

.sort-btn {
    background: var(--surface2);
    border: 1px solid var(--border2);
    color: var(--accent);
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
    width: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.sort-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #06080f;
    transform: none; filter: none; box-shadow: none;
}
.sort-btn-disabled,
.sort-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* =============================================
   CARD PULSE — smoother, longer glow
   ============================================= */
@keyframes cardPulse {
    0%   { box-shadow: 0 0 0    0    rgba(0, 200, 240, 0);    }
    25%  { box-shadow: 0 0 28px 8px  rgba(0, 200, 240, 0.28); }
    60%  { box-shadow: 0 0 18px 4px  rgba(0, 200, 240, 0.16); }
    100% { box-shadow: 0 0 0    0    rgba(0, 200, 240, 0);    }
}

/* Run pulse alongside the existing fadeInUp */
.match-card.card-new {
    animation:
        fadeInUp  0.42s ease                forwards,
        cardPulse 1.8s  ease-in-out 0.3s   both;
}

/* =============================================
   JUMP TO RESULTS (Circular FAB)
   ============================================= */
.jump-top-btn {
    position: fixed;
    bottom: 32px;
    right: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    
    /* Transparent glass styling */
    background: rgba(0, 200, 240, 0.12); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 200, 240, 0.3);
    
    /* Glowing arrow */
    color: var(--accent); 
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    z-index: 100;
    
    /* THE FIX: Remove Flexbox, use text-align and line-height */
    text-align: center;
    line-height: 0px; /* <-- Tweak this! Increase to push DOWN, decrease to push UP */
    
    /* Subtle inner and outer ambient glow */
    box-shadow: 0 0 16px rgba(0, 200, 240, 0.2), inset 0 0 8px rgba(0, 200, 240, 0.1);
    
    opacity: 0;
    transform: translateY(14px) scale(0.9);
    transition: all 0.3s ease;
    pointer-events: none;
}

.jump-top-btn.jump-top-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.jump-top-btn:hover {
    background: rgba(0, 200, 240, 0.25);
    border-color: rgba(0, 200, 240, 0.6);
    color: #ffffff;
    /* Intensify the glow on hover */
    box-shadow: 0 0 24px rgba(0, 200, 240, 0.4), inset 0 0 12px rgba(0, 200, 240, 0.2);
    transform: translateY(-3px) scale(1.05);
}

/* =============================================
   COLLAPSIBLE DUO SYNERGY DASHBOARD
   ============================================= */
.synergy-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.synergy-header-bar {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
}

.synergy-header-bar:hover {
    background: var(--surface2);
}

.synergy-toggle {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.synergy-panel.expanded .synergy-toggle {
    transform: rotate(90deg);
}

.synergy-content {
    padding: 0 20px 20px;
    display: none;
}

.synergy-panel.expanded .synergy-content {
    display: block;
}

.synergy-stat-small {
    font-size: 15px;
    color: var(--muted);
}

.synergy-stat-small strong {
    color: var(--text);
    font-size: 18px;
    margin-right: 6px;
}
/* ── NO SHARED GAMES CARD ──────────────────────────────── */
.no-games-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    gap: 12px;
    animation: noGamesFade 0.6s ease forwards;
}

@keyframes noGamesFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.no-games-emote {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 18px rgba(56,189,248,0.15));
    margin-bottom: 8px;
}
.no-games-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.5px;
}
.no-games-sub {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
    max-width: 34ch;
    line-height: 1.5;
    text-wrap: balance;
}
.no-games-hint {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 0;
}

.no-games-emoji {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

/* New dashboard + expanded match layout */
.chart-shell {
    width: 100%;
    height: 210px;
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.carry-dashboard {
    margin: 0 0 20px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border2);
    background: linear-gradient(135deg, rgba(8, 15, 25, 0.92), rgba(17, 24, 39, 0.82));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.carry-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.carry-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
}

.carry-header h2 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    letter-spacing: 0.8px;
}

.designation-pill {
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.designation-pill strong,
.designation-pill span {
    display: block;
}

.designation-pill strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    color: var(--text);
}

.designation-pill span {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.tug-grid {
    display: grid;
    gap: 12px;
}

.tug-metric {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.tug-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.tug-track {
    display: flex;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.tug-fill-p1 { background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.tug-fill-p2 { background: linear-gradient(90deg, #fb923c, #f97316); }

.synergy-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.synergy-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.synergy-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    margin-right: auto;
}

.synergy-header-emote {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.synergy-panel {
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.synergy-attention {
    box-shadow:
        0 0 0 1px rgba(56,189,248,0.08),
        0 0 22px rgba(56,189,248,0.10);
    border-color: rgba(56,189,248,0.18);
}

@keyframes synergyBeacon {
    0%, 100% {
        box-shadow:
            0 0 0 1px rgba(56,189,248,0.08),
            0 0 18px rgba(56,189,248,0.08);
    }
    50% {
        box-shadow:
            0 0 0 1px rgba(56,189,248,0.12),
            0 0 28px rgba(56,189,248,0.14);
    }
}

.synergy-attention:not(.expanded) {
    animation: synergyBeacon 2.6s ease-in-out infinite;
}

.synergy-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(56,189,248,0.12);
    border: 1px solid rgba(56,189,248,0.18);
    color: #bcecff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.synergy-hero {
    display: grid;
    grid-template-columns: minmax(430px, 470px) minmax(0, 1fr);
    gap: 30px;
    margin: 20px 0 18px;
    padding: 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 40%),
        radial-gradient(circle at bottom right, rgba(249,115,22,0.10), transparent 36%),
        linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.07);
}

.synergy-hero-empty {
    grid-template-columns: 1fr;
}

.synergy-hero-art {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    max-width: 100%;
}

.synergy-hero-art-tall {
    grid-template-columns: minmax(190px, 210px) minmax(190px, 210px);
    justify-content: start;
    align-items: stretch;
    gap: 18px;
}

.synergy-hero-copy {
    min-width: 0;
    width: min(100%, 520px);
    justify-self: start;
    padding-right: 0;
    padding-left: 0;
    margin-left: -10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.synergy-hero-loading-card {
    position: relative;
    min-height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.88);
    background: #090d15;
    box-shadow: 0 18px 36px rgba(0,0,0,0.26);
}

.synergy-hero-loading-card::before,
.synergy-hero-loading-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.synergy-hero-loading-card::before {
    inset: 0;
    border-radius: inherit;
    z-index: 2;
    display: none;
}

.synergy-hero-loading-card::after {
    inset: auto 0 0 0;
    height: 38%;
    z-index: 3;
    background: linear-gradient(180deg, transparent, rgba(7,10,17,0.88));
}

.synergy-hero-loading {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: saturate(1.02) contrast(1.02);
}


.synergy-hero-champ {
    width: 92px;
    aspect-ratio: 1;
    object-fit: cover;
    justify-self: center;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.75);
    background: transparent;
}

.synergy-hero-icon {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.synergy-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #7ea0cb;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.synergy-hero-copy h3,
.synergy-section h3 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
}

.synergy-hero-copy h3 {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 12px;
}

.synergy-hero-copy p,
.synergy-empty-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    max-width: 56ch;
}

.synergy-hero-inline-stats {
    display: flex;
    gap: 10px;
    margin: 0 0 14px;
    flex-wrap: wrap;
}

.synergy-hero-inline-stats span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #d7e7fd;
    font-size: 12px;
    font-weight: 700;
}

.synergy-hero-inline-stats .synergy-stat-chip-games {
    background: rgba(148, 163, 184, 0.26);
    border-color: rgba(148, 163, 184, 0.38);
    color: #f3f7fd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.synergy-hero-inline-stats .synergy-stat-chip-wins {
    background: rgba(34, 197, 94, 0.26);
    border-color: rgba(34, 197, 94, 0.38);
    color: #d0f8dd;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.synergy-hero-inline-stats .synergy-stat-chip-wr {
    background: rgba(56, 189, 248, 0.30);
    border-color: rgba(56, 189, 248, 0.44);
    color: #d4f3ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.synergy-hero-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.synergy-hero-matrix div {
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

.synergy-hero-matrix strong {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    color: var(--text);
    line-height: 1.05;
}

.synergy-hero-matrix span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.synergy-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.synergy-columns-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.synergy-section {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.synergy-section h3 {
    margin: 0 0 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
}

.synergy-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.synergy-section-head span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

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

.synergy-pair-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
    box-shadow: 0 8px 18px rgba(2, 8, 20, 0.18), 0 0 16px rgba(56, 189, 248, 0.05);
}

.synergy-pair-row::before {
    content: "";
    position: absolute;
    inset: -28% auto -28% -30%;
    width: 52%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0.08) 36%, transparent 72%);
    opacity: 0.54;
    pointer-events: none;
    filter: blur(10px);
    transition: opacity 0.24s ease, transform 0.6s ease;
    animation: synergyPairSweep 6.4s ease-in-out infinite;
}

.synergy-pair-row > * {
    position: relative;
    z-index: 1;
}

.synergy-pair-row:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.045);
    border-color: rgba(97, 214, 255, 0.18);
    box-shadow: 0 10px 24px rgba(2, 8, 20, 0.24), 0 0 22px rgba(56, 189, 248, 0.10);
}

.synergy-pair-row.active {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(97, 214, 255, 0.24);
    box-shadow: 0 10px 24px rgba(2, 8, 20, 0.22), 0 0 24px rgba(56, 189, 248, 0.12);
}

.synergy-pair-row.active::before {
    opacity: 0.82;
}

.synergy-pair-row:hover::before {
    opacity: 0.72;
    transform: scale(1.03);
}

.synergy-pair-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.synergy-pair-icons {
    display: flex;
    align-items: center;
}

.synergy-pair-icons img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.72);
    margin-left: -8px;
    background: transparent;
}

.synergy-pair-icons img:first-child {
    margin-left: 0;
}

.synergy-pair-main strong,
.champ-card strong {
    display: block;
    font-size: 14px;
    color: var(--text);
}

.synergy-pair-main span,
.champ-card span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.synergy-pair-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 82px;
}

.synergy-mini-bar {
    width: 82px;
    height: 7px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.synergy-mini-bar div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.champ-duo-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.champ-player-column > p {
    margin: 0 0 10px;
    color: #b8cae7;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.champ-card {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.05);
}

.champ-card img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.72);
}

.synergy-empty-line {
    padding: 14px 0 4px;
    color: var(--muted);
    font-size: 13px;
}

.og-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.match-card-toggle {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
}

.match-card-open {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.expand-chip {
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: var(--accent);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.player-stat {
    min-width: 56px;
    text-align: right;
    color: var(--text);
    font-size: 12px;
}

.preview-ribbon {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
}

.match-expand {
    border-top: 1px solid var(--border);
    background: rgba(3, 7, 18, 0.5);
}

.match-expand-inner {
    padding: 14px 13px 12px;
}

.match-expand-loading,
.match-expand-error {
    padding: 18px 16px;
    color: var(--muted);
}

.detail-header h3 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 19px;
}

.detail-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.detail-header.compact {
    margin-bottom: 8px;
}

.team-summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}

.team-summary-card {
    padding: 11px 12px;
    border-radius: 11px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.team-summary-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.team-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
}

.team-summary-row.compact {
    margin: 12px 0;
}

.team-summary-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.team-summary-grid.compact span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-summary-grid.compact strong {
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1;
}

.team-summary-grid.compact em {
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: var(--muted);
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-column {
    padding: 11px 12px;
    border-radius: 11px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.detail-column-head {
    margin-bottom: 10px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    color: var(--accent);
}

.detail-player-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.detail-player-row:last-child {
    border-bottom: none;
}

.detail-player-main {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.detail-player-main-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.detail-player-main-btn:hover {
    transform: translateX(2px);
}

.detail-player-link {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.75;
    min-width: 40px;
    text-align: right;
}

.detail-player-copy span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--muted);
}

.detail-metrics.compact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
}

.detail-metrics.compact span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-metrics.compact strong {
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    line-height: 1;
}

.detail-metrics.compact em {
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: var(--muted);
}

.item-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.item-row img,
.item-empty {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
}

.stat-good { color: var(--win); }
.stat-bad { color: var(--loss); }

.detail-overview-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 10px;
    margin: 10px 0 10px;
}

.detail-overview-grid.compact {
    margin: 12px 0;
}

.detail-highlight-card,
.detail-timeline-card {
    padding: 12px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.07);
}

.carry-compact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-section-kicker {
    display: inline-block;
    margin-bottom: 7px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.detail-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.detail-section-head h4 {
    margin: 2px 0 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
}

.detail-section-note,
.detail-muted,
.team-summary-sub {
    color: var(--muted);
    font-size: 11px;
}

.lobby-carry {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lobby-carry-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}

.lobby-carry-copy strong,
.detail-player-copy strong {
    display: block;
}

.lobby-carry-copy span,
.objective-copy span,
.gold-snapshot-card span,
.detail-player-copy span {
    color: var(--muted);
}

.lobby-carry-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lobby-carry-stats span,
.gold-snapshot-card,
.pivot-chip {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
}

.lobby-carry-stats span {
    padding: 6px 9px;
    background: rgba(255,255,255,0.04);
    font-size: 11px;
}

.gold-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gold-snapshot-card {
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: rgba(255,255,255,0.035);
}

.gold-snapshot-card span:last-child {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
}

.gold-snapshot-card strong {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
}

.gold-blue strong { color: #44c4ff; }
.gold-red strong { color: #ff9859; }

.objective-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.objective-timeline.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.objective-event {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}

.objective-blue { box-shadow: inset 0 0 0 1px rgba(68, 196, 255, 0.08); }
.objective-red { box-shadow: inset 0 0 0 1px rgba(255, 152, 89, 0.08); }

.objective-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    font-size: 15px;
}

.objective-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.objective-copy strong {
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
}

.detail-player-row {
    padding: 10px 0;
}

.detail-player-main {
    margin-bottom: 8px;
}

.detail-player-row {
    position: relative;
}

.detail-player-row::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
}

.detail-player-win::before { background: rgba(46, 204, 113, 0.7); }
.detail-player-loss::before { background: rgba(255, 90, 90, 0.7); }

.detail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pivot-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.pivot-chip {
    padding: 6px 8px;
    background: rgba(56, 189, 248, 0.08);
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pivot-chip:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.22);
    transform: translateY(-1px);
}

[data-theme="light"] .detail-highlight-card,
[data-theme="light"] .detail-timeline-card,
[data-theme="light"] .detail-column,
[data-theme="light"] .team-summary-card,
[data-theme="light"] .objective-event,
[data-theme="light"] .gold-snapshot-card {
    background: rgba(255,255,255,0.84);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .lobby-carry-stats span,
[data-theme="light"] .pivot-chip {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .objective-icon {
    background: rgba(15, 23, 42, 0.05);
}

@keyframes synergyPairSweep {
    0%, 100% {
        opacity: 0.46;
        transform: translateX(6%) scale(0.97);
    }
    50% {
        opacity: 0.72;
        transform: translateX(132%) scale(1.01);
    }
}

@media (max-width: 900px) {
    .landing-shell { padding: 12px 0 10px; }
    h1 { font-size: 38px; }
    .hero-copy { max-width: 100%; }
    .altar-shell { padding: 18px 18px; }
    .synergy-hero,
    .synergy-columns,
    .detail-overview-grid,
    .detail-columns,
    .team-summary-row,
    .champ-grid {
        grid-template-columns: 1fr;
    }
    .gold-snapshot-grid {
        grid-template-columns: 1fr;
    }
    .detail-section-head,
    .detail-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .objective-timeline.compact,
    .detail-metrics.compact,
    .team-summary-grid.compact,
    .gold-snapshot-grid {
        grid-template-columns: 1fr;
    }
    .pivot-row {
        justify-content: flex-start;
    }
    .synergy-hero-matrix {
        grid-template-columns: 1fr 1fr;
    }
    .champ-duo-columns {
        grid-template-columns: 1fr;
    }
    .synergy-header-bar {
        flex-wrap: wrap;
    }
}
