*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green: #4dcf6a;
    --green-bright: #a3e8b0;
    --green-dim: #1f4a28;
    --bg: #0a0d0a;
    --panel: rgba(14, 22, 15, 0.65);
    --panel-border: rgba(77, 207, 106, 0.22);
    --red: #e05a5a;
    --text: #cfe0cf;
    --text-dim: #7c8f7c;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Chakra Petch', sans-serif;
    min-height: 100vh;
    padding: 2.5rem 1.25rem 4rem;
    position: relative;
    overflow-x: hidden;
}

/* ── Ambient effects ─────────────────────────────────────── */
.glow-vignette {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(77, 207, 106, 0.06), transparent 65%);
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.08) 3px,
        rgba(0, 0, 0, 0) 4px
    );
    opacity: 0.3;
}

/* ── Layout ──────────────────────────────────────────────── */
.dashboard {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── Hero / logo ─────────────────────────────────────────── */
.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--bg);
    border: 2px solid var(--green);
    box-shadow: inset 0 0 12px rgba(77, 207, 106, 0.25);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 7vw, 2.8rem);
    letter-spacing: 0.1em;
    color: var(--green-bright);
    text-shadow: 0 0 14px rgba(77, 207, 106, 0.3);
}

.tagline {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.24em;
    color: var(--text-dim);
    text-transform: uppercase;
}

.blink-dot {
    display: inline-block;
    color: var(--green);
    animation: blink 1.6s ease-in-out infinite;
    font-size: 0.65rem;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Blade nav ───────────────────────────────────────────── */
.blade-nav {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.blade {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-dim);
    padding: 0.55rem 1.3rem;
    border: 1px solid rgba(77, 207, 106, 0.18);
    border-radius: 4px;
    background: rgba(77, 207, 106, 0.03);
    transition: color 0.15s, border-color 0.15s;
    cursor: pointer;
}

.blade.active {
    color: var(--green-bright);
    border-color: rgba(77, 207, 106, 0.5);
}

/* ── Panels ──────────────────────────────────────────────── */
.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
}

/* ── Summoner cards ──────────────────────────────────────── */
.summoner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.summoner-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(77, 207, 106, 0.14);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.summoner-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.7rem;
    gap: 0.5rem;
}

.summoner-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--green-bright);
}

.summoner-rank {
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Match chips ─────────────────────────────────────────── */
.match-row {
    display: flex;
    gap: 0.4rem;
}

.match-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.2rem 0.4rem;
    border-radius: 5px;
    border: 1px solid transparent;
}

.match-chip.win {
    background: rgba(77, 207, 106, 0.08);
    border-color: rgba(77, 207, 106, 0.3);
}

.match-chip.loss {
    background: rgba(224, 90, 90, 0.07);
    border-color: rgba(224, 90, 90, 0.28);
}

.champ-icon {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: block;
    background: rgba(255, 255, 255, 0.04);
    object-fit: cover;
}

.match-chip.win .champ-icon { outline: 1px solid rgba(77, 207, 106, 0.4); }
.match-chip.loss .champ-icon { outline: 1px solid rgba(224, 90, 90, 0.4); }

.match-result {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.match-chip.win .match-result { color: var(--green-bright); }
.match-chip.loss .match-result { color: #f2a3a3; }

.match-kda {
    font-size: 0.55rem;
    color: var(--text-dim);
}

.data-note {
    margin-top: 1.25rem;
    font-size: 0.62rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* ── Schedule tab ────────────────────────────────────────── */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-row {
    display: grid;
    grid-template-columns: 3.2rem 5.2rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(77, 207, 106, 0.14);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
}

.schedule-league {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--green-bright);
}

.schedule-date {
    font-size: 0.7rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.schedule-matchup {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.schedule-at {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.schedule-venue {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-align: right;
    white-space: nowrap;
}

.schedule-empty {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: center;
    padding: 1rem 0;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    body { padding: 1.75rem 0.9rem 3rem; }
    .summoner-grid { grid-template-columns: 1fr; }

    .schedule-row {
        grid-template-columns: 1fr;
        gap: 0.3rem;
    }
    .schedule-venue { text-align: left; }
}
