:root {
    color-scheme: dark;
    --bg: #080b14;
    --surface: #101522;
    --surface-2: #151b2b;
    --border: #252d42;
    --text: #f3f5ff;
    --muted: #8f99af;
    --primary: #7c5cff;
    --primary-2: #9c80ff;
    --cyan: #48d6d2;
    --gold: #f7c75c;
    --green: #4fe09d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; min-height: 100vh; }
a { color: inherit; }
.site-container { width: min(1500px, calc(100% - 36px)); margin-inline: auto; }
.site-navbar { background: rgba(8, 11, 20, .88); border-bottom: 1px solid rgba(124, 92, 255, .15); backdrop-filter: blur(18px); }
.site-navbar .site-container { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: white; text-decoration: none; font-size: 1.25rem; font-weight: 700; letter-spacing: -.03em; }
.brand strong { color: var(--primary-2); }
.brand-mark { width: 36px; height: 36px; display: inline-grid; place-items: center; background: linear-gradient(145deg, var(--primary), #4832bc); border: 1px solid #a58dff; border-radius: 9px; box-shadow: 0 0 22px rgba(124, 92, 255, .35); font-size: 1.1rem; }
.brand-mark.small { width: 30px; height: 30px; font-size: .9rem; }
.navbar .nav-link { color: var(--muted); font-size: .94rem; font-weight: 600; padding-inline: .85rem !important; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: white; }
.navbar .nav-link.active { background: rgba(124, 92, 255, .1); border-radius: 8px; }
.hero-section { position: relative; overflow: hidden; min-height: 510px; display: grid; place-items: center; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 50% 130%, rgba(124, 92, 255, .15), transparent 42%), linear-gradient(180deg, #090d18, #080b14); }
.hero-section::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(124,92,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(124,92,255,.18) 1px, transparent 1px); background-size: 52px 52px; mask-image: linear-gradient(to bottom, transparent, black 25%, transparent); }
.hero-glow { position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(100px); opacity: .2; }
.hero-glow-one { background: var(--primary); left: 5%; top: 12%; }
.hero-glow-two { background: var(--cyan); right: 8%; bottom: -10%; }
.hero-content { position: relative; z-index: 1; padding-block: 72px; }
.eyebrow, .section-kicker { color: var(--primary-2); font-size: .73rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem .9rem; background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .25); border-radius: 999px; }
.eyebrow i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }
.hero-content h1 { margin: 1.3rem 0 1rem; font-size: clamp(2.55rem, 6vw, 5rem); line-height: .98; letter-spacing: -.065em; font-weight: 850; }
.hero-content h1 span { background: linear-gradient(90deg, #b4a3ff, #63e0dc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-content > p { color: var(--muted); max-width: 660px; margin-inline: auto; font-size: 1.1rem; }
.btn { border-radius: 9px; font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: #6a49ec; --bs-btn-hover-border-color: #6a49ec; box-shadow: 0 8px 28px rgba(124, 92, 255, .18); }
.btn-lg { padding: .78rem 1.35rem; font-size: .97rem; }
.home-content { max-width: 1200px; }
.ad-slot { color: #606a7f; border: 1px dashed #30384b; background: rgba(16, 21, 34, .45); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .25rem; text-align: center; text-transform: uppercase; letter-spacing: .09em; font-size: .65rem; }
.ad-slot small { color: #485165; font-size: .58rem; }
.ad-slot-horizontal { min-height: 84px; margin: 1.4rem 0 2.25rem; }
.ad-slot-sidebar { min-height: 520px; position: sticky; top: 94px; }
.ad-slot-mobile { display: none; min-height: 76px; margin: 1.5rem 0; }
.feature-strip { margin-bottom: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(21,27,43,.85), rgba(13,17,29,.85)); border-radius: 12px; }
.feature-strip > div { display: flex; justify-content: center; align-items: center; gap: .9rem; padding: 1.5rem; border-right: 1px solid var(--border); }
.feature-strip > div:last-child { border-right: 0; }
.feature-icon { color: var(--primary-2); font-size: 1.25rem; }
.feature-strip p { display: flex; flex-direction: column; margin: 0; }
.feature-strip strong { font-size: .88rem; }
.feature-strip small { color: var(--muted); font-size: .75rem; margin-top: .2rem; }
.section-block { padding-bottom: 1.5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.section-heading h2 { margin: .35rem 0 0; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; }
.text-link, .back-link { color: var(--primary-2); text-decoration: none; font-weight: 700; font-size: .88rem; }
.text-link:hover, .back-link:hover { color: white; }
.table-shell { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-hover-bg: rgba(124, 92, 255, .045); --bs-table-hover-color: white; }
.table > :not(caption) > * > * { padding: 1.15rem 1rem; border-bottom-color: var(--border); white-space: nowrap; }
.table thead th { background: #0d111d; color: #6f7990; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border-bottom-width: 1px; }
.comp-identity { min-width: 620px; }
.comp-cell-layout { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.comp-summary { min-width: 0; }
.comp-lineup { display: flex; align-items: flex-start; gap: .55rem; min-height: 88px; }
.lineup-unit { width: 58px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lineup-stars { min-height: 13px; color: var(--gold); font-size: .65rem; letter-spacing: -.06em; line-height: 1; text-shadow: 0 1px 5px rgba(247,199,92,.35); }
.lineup-portrait { position: relative; width: 50px; height: 50px; display: grid; place-items: center; background: #1a2032; border: 2px solid #303a56; border-radius: 7px; color: #c7bbff; font-size: .75rem; font-weight: 800; }
.lineup-portrait > img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.lineup-role { position: absolute; z-index: 3; top: -1px; left: -1px; padding: 2px 3px; color: #090c14; background: var(--gold); border-radius: 4px 0 4px 0; font-size: .42rem; font-weight: 900; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.lineup-unit.is-carry .lineup-portrait { border-color: var(--gold); box-shadow: 0 0 12px rgba(247,199,92,.22); }
.lineup-unit.is-tank .lineup-role { background: var(--cyan); }
.lineup-unit.is-tank .lineup-portrait { border-color: var(--cyan); box-shadow: 0 0 12px rgba(72,214,210,.18); }
.lineup-unit > strong { width: 100%; margin-top: .65rem; overflow: hidden; color: #b9c1d3; font-size: .58rem; font-weight: 650; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.lineup-items { position: absolute; z-index: 2; left: 50%; bottom: -8px; display: flex; transform: translateX(-50%); }
.lineup-items img { width: 18px; height: 18px; object-fit: contain; margin-left: -2px; background: #111725; border: 1px solid #b9943e; border-radius: 3px; }
.lineup-items img:first-child { margin-left: 0; }
.comp-name { color: var(--text); text-decoration: none; font-weight: 760; }
.comp-name:hover { color: var(--primary-2); }
.badge-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.badge { padding: .38em .58em; border-radius: 5px; font-size: .65rem; font-weight: 700; }
.trait-badge { display: inline-flex; align-items: center; gap: .25rem; color: #76e4df; background: rgba(72, 214, 210, .1); border: 1px solid rgba(72, 214, 210, .18); }
.trait-badge img { object-fit: contain; }
.meta-badge { color: #a8b0c2; background: rgba(143,153,175,.1); border: 1px solid rgba(143,153,175,.15); }
.tier-badge { color: #e7c76e; background: rgba(247,199,92,.09); border: 1px solid rgba(247,199,92,.15); }
.metric-good { color: var(--green); font-weight: 760; }
.text-secondary-light, .muted { color: var(--muted) !important; }
.score-pill { display: inline-grid; place-items: center; min-width: 48px; padding: .34rem .55rem; color: #d8ceff; background: rgba(124,92,255,.14); border: 1px solid rgba(124,92,255,.25); border-radius: 7px; font-weight: 800; }
.empty-state { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); gap: .45rem; }
.empty-state strong { color: var(--text); }
.empty-icon { color: var(--primary-2); font-size: 2rem; }
.ad-layout { display: grid; grid-template-columns: minmax(160px, 190px) minmax(620px, 1fr) minmax(160px, 190px); gap: clamp(18px, 2.2vw, 34px); align-items: start; }
.main-column { min-width: 0; }
.page-header { margin-bottom: 1.6rem; }
.page-header h1, .detail-hero h1, .info-page h1 { margin: .35rem 0 .5rem; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; font-weight: 800; }
.page-header p, .detail-hero p, .info-page p { color: var(--muted); margin: 0; }
.filter-panel { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)) auto; gap: .75rem; align-items: end; padding: 1rem; margin-bottom: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.filter-panel label { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 750; margin-bottom: .35rem; }
.form-control, .form-select { color: var(--text); background-color: #0c101b; border-color: var(--border); font-size: .85rem; }
.form-control:focus, .form-select:focus { color: white; background-color: #0c101b; border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(124, 92, 255, .14); }
.results-meta { color: var(--muted); font-size: .8rem; margin: 1rem 0 .65rem; }
.results-meta strong { color: white; }
.gamer-card { background: linear-gradient(145deg, rgba(21,27,43,.96), rgba(13,17,29,.96)); border: 1px solid var(--border); border-radius: 12px; }
.back-link { display: inline-block; margin-bottom: 1rem; }
.detail-hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: clamp(1.4rem, 4vw, 2.4rem); }
.detail-hero-main { display: flex; align-items: center; gap: 1.25rem; min-width: 0; }
.hero-champion { flex: 0 0 auto; object-fit: cover; border: 2px solid #7661d7; border-radius: 16px; box-shadow: 0 0 28px rgba(124,92,255,.25); }
.detail-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
.detail-score { flex: 0 0 112px; height: 112px; display: grid; place-items: center; align-content: center; background: radial-gradient(circle, rgba(124,92,255,.24), rgba(124,92,255,.04)); border: 1px solid rgba(124,92,255,.32); border-radius: 50%; }
.detail-score span { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-score strong { font-size: 2rem; color: #c6b9ff; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; margin: 1rem 0; }
.metric-card { padding: 1.15rem; display: flex; flex-direction: column; }
.metric-card span { color: var(--muted); font-size: .72rem; }
.metric-card strong { font-size: 1.5rem; margin-top: .2rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1rem; }
.detail-card { padding: 1.35rem; }
.detail-card h2 { font-size: 1.15rem; margin: .35rem 0 1rem; }
.role-build-heading { display: flex; align-items: center; gap: .75rem; margin: .45rem 0 1rem; }
.role-build-heading h2 { margin: 0; }
.role-build-heading img { width: 52px; height: 52px; object-fit: cover; border-radius: .75rem; border: 1px solid rgba(167, 139, 250, .45); }
.token-list { display: flex; flex-wrap: wrap; gap: .55rem; }
.token { display: flex; flex-direction: row; align-items: center; gap: .55rem; padding: .5rem .65rem; background: #0c101b; border: 1px solid var(--border); border-radius: 7px; font-size: .76rem; font-weight: 700; }
.token > span { display: flex; flex-direction: column; gap: .12rem; }
.token small { display: block; color: var(--muted); font-size: .6rem; font-weight: 500; }
.asset-icon { flex: 0 0 auto; object-fit: contain; background: #1c2336; border-radius: 7px; }
.trait-token { border-left-color: var(--cyan); }
.item-token { border-left-color: var(--gold); }
.augment-token { border-left-color: var(--primary-2); }
.unit-grid { display: flex; flex-wrap: wrap; gap: .65rem; }
.unit-token { width: 74px; display: flex; flex-direction: column; gap: .35rem; align-items: center; text-align: center; }
.unit-token span { width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #2a3150, #151a2a); border: 1px solid #3f496d; border-radius: 10px; color: #c9beff; font-size: 1.1rem; font-weight: 800; }
.unit-token span img { width: 100%; height: 100%; object-fit: cover; }
.unit-token.is-carry span { border-color: var(--gold); box-shadow: 0 0 14px rgba(247,199,92,.25); }
.unit-token strong { font-size: .65rem; line-height: 1.15; }
.unit-token small { color: var(--gold); font-size: .55rem; text-transform: uppercase; letter-spacing: .06em; }
.info-page { min-height: 65vh; display: grid; place-items: center; padding-block: 5rem; max-width: 850px; }
.info-page article { padding: clamp(1.5rem, 5vw, 3.5rem); }
.info-page p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.site-footer { padding: 2.4rem 0; background: #070a12; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: center; }
.footer-note { color: #697287; font-size: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .78rem; }
.footer-links a:hover { color: white; }
code { color: #b8aaff; }

@media (max-width: 1250px) {
    .ad-layout { grid-template-columns: minmax(0, 1fr); max-width: 1100px; }
    .ad-rail { display: none; }
    .ad-slot-mobile { display: flex; }
    .filter-panel { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .site-container { width: min(100% - 24px, 720px); }
    .hero-section { min-height: 470px; }
    .feature-strip { grid-template-columns: 1fr; }
    .feature-strip > div { justify-content: flex-start; border-right: 0; border-bottom: 1px solid var(--border); }
    .feature-strip > div:last-child { border-bottom: 0; }
    .filter-panel { grid-template-columns: repeat(2, 1fr); }
    .filter-panel .btn { grid-column: 1 / -1; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-score { flex-basis: 88px; height: 88px; }
    .detail-score strong { font-size: 1.5rem; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.65rem; }
    .filter-panel { grid-template-columns: 1fr; }
    .filter-panel .btn { grid-column: auto; }
    .detail-hero { align-items: flex-start; }
    .detail-hero-main { align-items: flex-start; }
    .hero-champion { width: 68px; height: 68px; border-radius: 12px; }
    .metric-grid { gap: .55rem; }
    .metric-card { padding: .85rem; }
    .metric-card strong { font-size: 1.2rem; }
}
