@font-face {
    font-family: "Onest";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/static/onest-cyrillic.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Onest";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("/static/onest-latin.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("/static/unbounded-cyrillic.woff2") format("woff2-variations");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Unbounded";
    font-style: normal;
    font-display: swap;
    font-weight: 200 900;
    src: url("/static/unbounded-latin.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;
    --bg: #07090c;
    --bg-soft: #0a0d11;
    --surface: #0e1216;
    --surface-raised: #13181d;
    --surface-hover: #181e24;
    --surface-bright: #1c232a;
    --line: rgba(238, 246, 239, 0.09);
    --line-strong: rgba(238, 246, 239, 0.16);
    --text: #f4f6f1;
    --text-soft: #d8ddd7;
    --muted: #8f9a96;
    --muted-strong: #aab4b0;
    --lime: #d1ff4c;
    --lime-strong: #bff334;
    --lime-soft: rgba(209, 255, 76, 0.1);
    --pink: #ff7ca8;
    --cyan: #68d7ee;
    --red: #ff6b6f;
    --green: #6ee7a0;
    --amber: #ffc866;
    --violet: #9b86ff;
    --content: 1520px;
    --sidebar: 268px;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.18);
    --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.3);
    --ease: 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 5%, rgba(209, 255, 76, 0.075), transparent 26rem),
        radial-gradient(circle at 52% 55%, rgba(104, 215, 238, 0.025), transparent 35rem),
        var(--bg);
    color: var(--text);
    font-family: "Onest", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
    content: "";
    pointer-events: none;
}

::selection {
    background: var(--lime);
    color: #10130b;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #090c0f;
}

::-webkit-scrollbar-thumb {
    border: 3px solid #090c0f;
    border-radius: 999px;
    background: #313a3a;
}

button,
input,
select {
    font: inherit;
}

button,
a,
select,
input {
    -webkit-tap-highlight-color: transparent;
}

button,
select {
    cursor: pointer;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

strong,
b,
.metric,
.detail-stat,
.rank,
.leader-score {
    font-variant-numeric: tabular-nums;
}

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--lime);
    color: #11140d;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

.app-shell {
    display: grid;
    width: min(100%, calc(var(--content) + var(--sidebar)));
    min-height: 100vh;
    margin: 0 auto;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "sidebar hero"
        "sidebar main"
        "sidebar footer";
}

/* Sidebar */

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    height: 100vh;
    min-height: 0;
    flex-direction: column;
    grid-area: sidebar;
    padding: 22px 18px 18px;
    border-right: 1px solid var(--line);
    background: rgba(8, 11, 14, 0.88);
    backdrop-filter: blur(22px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 4px 18px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #efffc1, var(--lime) 56%, #a6d71f);
    box-shadow: 0 10px 30px rgba(209, 255, 76, 0.18);
    color: #0d1108;
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.brand-mark::after {
    position: absolute;
    right: -10px;
    bottom: -12px;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(9, 14, 4, 0.35);
    border-radius: 50%;
    content: "";
}

.brand-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.brand-copy strong {
    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-copy span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.global-search {
    position: relative;
    width: 100%;
    margin: 17px 0 10px;
}

.global-search::before {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--muted);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: translateY(-58%);
}

.global-search::after {
    position: absolute;
    z-index: 1;
    top: 24px;
    left: 25px;
    width: 6px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--muted);
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

.global-search input,
.compare-select select,
.lineup-controls select,
.lineup-controls input,
#filter-preset {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.global-search input {
    padding: 0 13px 0 40px;
    font-size: 12px;
}

.global-search input::placeholder,
.search-input::placeholder {
    color: #717d78;
}

.global-search input:focus,
.compare-select select:focus,
.lineup-controls select:focus,
.lineup-controls input:focus,
#filter-preset:focus {
    border-color: rgba(209, 255, 76, 0.55);
    background: rgba(209, 255, 76, 0.045);
    box-shadow: 0 0 0 3px rgba(209, 255, 76, 0.07);
}

#global-search-results {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(14, 18, 22, 0.98);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

#global-search-results:empty {
    display: none;
}

#global-search-results a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background var(--ease);
}

#global-search-results a:last-child {
    border-bottom: 0;
}

#global-search-results a:hover {
    background: var(--lime-soft);
}

#global-search-results strong {
    font-size: 13px;
}

#global-search-results span,
.search-empty {
    color: var(--muted);
    font-size: 11px;
}

.search-empty {
    display: block;
    padding: 15px;
}

.site-nav {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
    padding: 0 2px 12px;
    overflow-y: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.nav-section-label {
    margin: 14px 10px 6px;
    color: #68736f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 9px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    transition: color var(--ease), background var(--ease), border-color var(--ease), transform var(--ease);
}

.site-nav a::before {
    display: none;
    content: "";
}

.nav-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    padding: 6px;
    overflow: visible;
    border: 1px solid rgba(238, 246, 239, 0.075);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: #697571;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: color var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav a::after {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    content: "";
    transform: translateY(-50%);
    transition: background var(--ease), box-shadow var(--ease);
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transform: translateX(2px);
}

.site-nav a:hover .nav-icon {
    border-color: rgba(238, 246, 239, 0.14);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text-soft);
    transform: scale(1.04);
}

.site-nav a.active {
    border-color: rgba(209, 255, 76, 0.15);
    background: linear-gradient(90deg, rgba(209, 255, 76, 0.12), rgba(209, 255, 76, 0.035));
    color: var(--text);
}

.site-nav a.active .nav-icon {
    border-color: rgba(209, 255, 76, 0.35);
    background: rgba(209, 255, 76, 0.13);
    color: var(--lime);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 0 18px rgba(209, 255, 76, 0.08);
}

.site-nav a.active::after {
    background: var(--lime);
    box-shadow: 0 0 10px rgba(209, 255, 76, 0.6);
}

.sync-state {
    display: flex;
    align-items: center;
    min-height: 46px;
    gap: 9px;
    padding: 13px 8px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
}

.sync-state span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-dot {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(209, 255, 76, 0.24);
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 4px rgba(209, 255, 76, 0.08), 0 0 14px rgba(209, 255, 76, 0.35);
    animation: live-pulse 2.6s ease-in-out infinite;
}

.status-dot.error {
    border-color: rgba(255, 107, 111, 0.3);
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 107, 111, 0.08);
    animation: none;
}

/* Hero */

.brand-strip {
    position: relative;
    display: grid;
    min-height: 270px;
    margin: 24px 26px 0;
    overflow: hidden;
    grid-area: hero;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(112deg, rgba(17, 23, 27, 0.98) 0%, rgba(12, 16, 20, 0.96) 50%, rgba(12, 17, 17, 0.8) 100%);
    box-shadow: var(--shadow-sm);
    isolation: isolate;
}

body[data-route]:not([data-route="overview"]) .brand-strip {
    display: none;
}

.brand-strip::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 75% 16%, rgba(209, 255, 76, 0.22), transparent 20rem),
        linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.035) 50%, transparent 50.2%);
    content: "";
}

.brand-strip::after {
    position: absolute;
    z-index: 2;
    right: 35%;
    bottom: -80px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(209, 255, 76, 0.12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.brand-strip-copy {
    position: relative;
    z-index: 3;
    display: flex;
    max-width: 740px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 60px);
}

.brand-strip-copy > span {
    display: flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 10px;
    border: 1px solid rgba(209, 255, 76, 0.18);
    border-radius: 999px;
    background: rgba(209, 255, 76, 0.055);
    color: var(--lime);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.brand-strip-copy > span i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 10px rgba(209, 255, 76, 0.75);
}

.brand-strip-copy strong {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(32px, 4.1vw, 58px);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.brand-strip-copy strong em {
    color: var(--lime);
    font-style: normal;
}

.brand-strip-copy p {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--muted-strong);
    font-size: 14px;
    line-height: 1.65;
}

.brand-strip-media {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.brand-strip-media::before {
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(90deg, var(--surface) 0%, transparent 38%),
        linear-gradient(180deg, transparent 55%, rgba(7, 9, 12, 0.82) 100%);
    content: "";
}

.brand-strip-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    filter: saturate(0.85) contrast(1.08);
}

.hero-signal {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 22px;
    display: grid;
    gap: 1px;
    min-width: 120px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(8, 11, 13, 0.7);
    backdrop-filter: blur(12px);
}

.hero-signal b {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
}

.hero-signal span {
    color: var(--muted-strong);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

/* Main and filters */

main {
    min-width: 0;
    grid-area: main;
    padding: 0 26px;
}

.filter-band {
    display: grid;
    grid-template-columns: repeat(6, minmax(116px, 1fr)) auto;
    gap: 11px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(14, 18, 22, 0.78);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.filter-band:empty {
    display: none;
}

.filter-toolbar {
    display: none;
}

.field {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.field label,
.compare-select > span,
.lineup-controls label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field select,
.search-input,
.view-tools select {
    width: 100%;
    height: 44px;
    min-width: 0;
    padding: 0 36px 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    background-color: var(--surface-raised);
    color: var(--text-soft);
    font-size: 12px;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.search-input {
    padding-right: 12px;
}

.field select:hover,
.search-input:hover,
.view-tools select:hover {
    border-color: var(--line-strong);
    background-color: var(--surface-hover);
}

.field select:focus,
.search-input:focus,
.view-tools select:focus {
    border-color: rgba(209, 255, 76, 0.55);
    box-shadow: 0 0 0 3px rgba(209, 255, 76, 0.07);
}

.button,
.icon-button,
.page-button,
.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-raised);
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}

.button:hover,
.icon-button:hover,
.page-button:hover:not(:disabled),
.back-button:hover {
    border-color: rgba(209, 255, 76, 0.42);
    background: var(--surface-hover);
    color: var(--lime);
    transform: translateY(-1px);
}

.button.primary {
    border-color: var(--lime);
    background: var(--lime);
    box-shadow: 0 10px 28px rgba(209, 255, 76, 0.12);
    color: #10130b;
}

.button.primary:hover {
    border-color: #e2ff87;
    background: #dcff75;
    color: #10130b;
}

.filter-band > .button,
.filter-band > .icon-button,
.filter-band > #filter-preset {
    align-self: end;
}

.icon-button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    color: var(--lime);
    font-size: 20px;
}

#filter-preset {
    align-self: end;
    min-width: 132px;
    padding: 0 30px 0 12px;
    font-size: 11px;
}

/* Page headers */

.view {
    min-width: 0;
    padding: 34px 0 54px;
}

.view > * {
    animation: rise-in 300ms both;
}

.view > *:nth-child(2) {
    animation-delay: 35ms;
}

.view > *:nth-child(3) {
    animation-delay: 65ms;
}

.view-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.view-header > div:first-child,
.detail-title {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--lime);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.view-header h1,
.detail-title h1 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(27px, 3vw, 39px);
    font-weight: 620;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.view-header p:last-child,
.detail-title p:last-child {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.view-tools {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.view-tools .search-input {
    width: 260px;
}

.view-tools select {
    width: auto;
    min-width: 144px;
}

.section-block {
    min-width: 0;
}

.section-block + .section-block,
.split-grid + .section-block,
.analytics-boards + .section-block {
    margin-top: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.section-title h2,
.daily-board-head h2 {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title a,
.text-link,
.my-profile-link {
    color: var(--lime);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.section-title a:hover,
.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-title > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

/* Metrics */

.summary-grid,
.detail-grid,
.daily-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 11px;
}

.secondary-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr)) minmax(280px, 1.55fr);
    gap: 11px;
    margin-top: 11px;
}

.metric,
.detail-stat {
    position: relative;
    min-width: 0;
    min-height: 112px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.045), transparent 50%),
        var(--surface);
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.metric::after {
    position: absolute;
    right: 15px;
    bottom: 14px;
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: var(--line-strong);
    content: "";
}

.metric:hover,
.detail-stat:hover {
    border-color: var(--line-strong);
    background-color: var(--surface-raised);
    transform: translateY(-2px);
}

.metric span,
.detail-stat span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric strong,
.detail-stat strong {
    display: block;
    overflow: hidden;
    font-family: "Unbounded", sans-serif;
    font-size: clamp(22px, 2.1vw, 29px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric.accent {
    border-color: rgba(209, 255, 76, 0.25);
    background:
        radial-gradient(circle at 100% 0, rgba(209, 255, 76, 0.13), transparent 55%),
        linear-gradient(145deg, rgba(209, 255, 76, 0.07), var(--surface));
}

.metric.accent::after {
    width: 24px;
    background: var(--lime);
    box-shadow: 0 0 14px rgba(209, 255, 76, 0.42);
}

.metric.accent strong {
    color: var(--lime);
}

.form-panel {
    display: grid;
    align-content: center;
    gap: 13px;
    min-width: 0;
    min-height: 112px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.form-panel > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.form-dot {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--ease), background var(--ease);
}

.form-dot:hover {
    transform: translateY(-2px);
}

.form-dot.win {
    border-color: rgba(110, 231, 160, 0.32);
    background: rgba(110, 231, 160, 0.07);
    color: var(--green);
}

.form-dot.loss {
    border-color: rgba(255, 107, 111, 0.32);
    background: rgba(255, 107, 111, 0.07);
    color: var(--red);
}

.form-dot.pending {
    border-color: rgba(255, 200, 102, 0.32);
    background: rgba(255, 200, 102, 0.07);
    color: var(--amber);
}

/* Dashboard layouts */

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

.side-panel {
    position: relative;
    display: grid;
    min-height: 126px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: 5px 16px;
    overflow: hidden;
    padding: 21px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 124, 168, 0.13), transparent 55%),
        var(--surface);
}

.side-panel.defense {
    background:
        radial-gradient(circle at 100% 0, rgba(104, 215, 238, 0.13), transparent 55%),
        var(--surface);
}

.side-panel::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--pink);
    content: "";
}

.side-panel.defense::before {
    background: var(--cyan);
}

.side-panel span,
.side-panel small {
    color: var(--muted);
}

.side-panel span {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.side-panel strong {
    grid-row: span 2;
    font-family: "Unbounded", sans-serif;
    font-size: 28px;
    font-weight: 600;
}

.side-panel small {
    font-size: 11px;
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.record-card {
    display: grid;
    min-width: 0;
    min-height: 130px;
    align-content: space-between;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color var(--ease), transform var(--ease);
}

.record-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.record-card span,
.record-card small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-card span {
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.record-card strong {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 23px;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
    gap: 26px;
    margin-top: 34px;
}

.dashboard-column {
    min-width: 0;
}

.daily-board-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.daily-board {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.daily-board-head {
    min-height: 74px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(209, 255, 76, 0.08), transparent 65%);
}

.daily-board-head p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 10px;
}

/* Tables */

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.data-table th,
.data-table td {
    height: 56px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    vertical-align: middle;
}

.data-table th {
    height: 43px;
    background: #0b0f13;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.data-table th:first-child,
.data-table td:first-child,
.data-table th.name-column,
.data-table td.name-column {
    text-align: left;
}

.data-table th:first-child,
.data-table td:first-child {
    width: 48px;
    padding-left: 15px;
}

.data-table th.name-column,
.data-table td.name-column {
    width: 29%;
}

.data-table tbody tr {
    background: transparent;
    cursor: pointer;
    transition: background var(--ease);
}

.data-table tbody tr:hover,
.data-table tbody tr:focus-visible {
    background: rgba(209, 255, 76, 0.045);
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.rank {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.name-cell {
    overflow: hidden;
    font-size: 12px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-name-line,
.detail-name-line {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.player-name-line > strong,
.player-name-line > .name-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-name-line {
    flex-wrap: wrap;
}

.subtext {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #6f7a76;
    font-size: 9px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tier-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.tier-badge.s-tier {
    border-color: rgba(255, 124, 168, 0.4);
    background: rgba(255, 124, 168, 0.09);
    color: #ff9abe;
}

.tier-badge.tier-1 {
    border-color: rgba(209, 255, 76, 0.38);
    background: rgba(209, 255, 76, 0.07);
    color: var(--lime);
}

.tier-badge.tier-2 {
    border-color: rgba(104, 215, 238, 0.38);
    background: rgba(104, 215, 238, 0.07);
    color: var(--cyan);
}

.tier-badge.tier-3 {
    border-color: rgba(255, 200, 102, 0.38);
    background: rgba(255, 200, 102, 0.07);
    color: var(--amber);
}

.tier-badge.test {
    border-color: rgba(155, 134, 255, 0.38);
    background: rgba(155, 134, 255, 0.07);
    color: #b9aaff;
}

/* Result badges */

.result-badge,
.side-badge,
.account-owned,
.discord-role {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.result-badge.win {
    border-color: rgba(110, 231, 160, 0.34);
    background: rgba(110, 231, 160, 0.08);
    color: var(--green);
}

.result-badge.loss {
    border-color: rgba(255, 107, 111, 0.34);
    background: rgba(255, 107, 111, 0.08);
    color: var(--red);
}

.result-badge.pending {
    border-color: rgba(255, 200, 102, 0.34);
    background: rgba(255, 200, 102, 0.08);
    color: var(--amber);
}

.side-badge.attack {
    border-color: rgba(255, 124, 168, 0.27);
    color: var(--pink);
}

.side-badge.defense {
    border-color: rgba(104, 215, 238, 0.27);
    color: var(--cyan);
}

/* Lists */

.leader-list,
.performance-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.daily-board .leader-list {
    border: 0;
    border-radius: 0;
}

.leader-row,
.performance-row {
    display: grid;
    align-items: center;
    min-width: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: background var(--ease);
}

.leader-row:last-child,
.performance-row:last-child {
    border-bottom: 0;
}

.leader-row {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 61px;
    padding: 9px 14px;
    text-decoration: none;
}

.leader-row:hover {
    background: rgba(209, 255, 76, 0.045);
}

.leader-row > b {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 12px;
}

.leader-row > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.leader-row strong,
.leader-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leader-row span {
    color: var(--muted);
    font-size: 10px;
}

.leader-score {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 12px;
}

.performance-row {
    gap: 9px;
    padding: 14px 16px;
}

.performance-head,
.performance-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.performance-head {
    font-size: 11px;
    font-weight: 700;
}

.performance-head span:last-child {
    color: var(--lime);
}

.performance-meta {
    color: var(--muted);
    font-size: 9px;
}

.bar-track {
    display: block;
    width: 100%;
    height: 5px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #252d2f;
    appearance: none;
}

.bar-track::-webkit-progress-bar {
    border-radius: 999px;
    background: #252d2f;
}

.bar-track::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #a5d625, var(--lime));
}

.bar-track::-moz-progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #a5d625, var(--lime));
}

/* Match, map and opponent cards */

.capture-grid,
.map-grid,
.opponent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.capture-grid.wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.capture-card,
.map-card,
.opponent-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.035), transparent 55%),
        var(--surface);
    transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.capture-card {
    display: grid;
    min-height: 206px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.capture-card::before {
    position: absolute;
    top: 0;
    left: 20px;
    width: 42px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--red);
    content: "";
}

.capture-card.win::before {
    background: var(--green);
}

.capture-card.pending::before {
    background: var(--amber);
}

.capture-card:hover,
.map-card:hover,
.opponent-card:hover {
    border-color: var(--line-strong);
    background-color: var(--surface-raised);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.capture-head,
.capture-foot,
.map-head,
.map-meta,
.opponent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.capture-opponent {
    align-self: center;
}

.capture-opponent span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.capture-opponent strong {
    display: block;
    overflow: hidden;
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.capture-foot {
    align-self: end;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

.capture-foot strong {
    color: var(--text-soft);
    font-size: 9px;
}

.map-card,
.opponent-card {
    padding: 19px;
}

.map-head h2,
.opponent-head h2 {
    overflow: hidden;
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-head > strong,
.opponent-head > strong {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.map-card .bar-track,
.opponent-card .bar-track {
    height: 6px;
    margin: 17px 0 13px;
}

.map-meta {
    color: var(--muted);
    font-size: 9px;
}

.map-stats,
.opponent-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 17px;
    border-top: 1px solid var(--line);
}

.map-stats div,
.opponent-stats div {
    min-width: 0;
    padding: 13px 8px 2px 0;
}

.map-stats span,
.opponent-stats span {
    display: block;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.map-stats strong,
.opponent-stats strong {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.opponent-head {
    align-items: flex-start;
}

.opponent-head > div {
    min-width: 0;
}

.opponent-head span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.opponent-head h2 {
    margin-top: 7px;
}

/* Pagination and details */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.page-button {
    min-width: 78px;
}

.page-button:disabled {
    cursor: default;
    opacity: 0.35;
}

.page-label {
    min-width: 68px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.detail-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 23px;
}

.back-button {
    flex: 0 0 44px;
    width: 44px;
    padding: 0;
    font-size: 19px;
}

.detail-title h1 {
    overflow-wrap: anywhere;
}

.detail-head > .result-badge {
    margin-left: auto;
}

.detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.detail-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.detail-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 26px;
    margin-top: 30px;
}

.empty-state,
.error-state,
.loading-state {
    display: grid;
    min-height: 300px;
    padding: 50px 22px;
    place-items: center;
    color: var(--muted);
    text-align: center;
}

.empty-state strong,
.error-state strong {
    color: var(--text);
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.error-state p,
.empty-state p {
    max-width: 520px;
    margin: 8px 0 0;
    line-height: 1.6;
}

.season-empty-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(209, 255, 76, 0.22);
    border-radius: var(--radius-md);
    background: rgba(209, 255, 76, 0.055);
}

.season-empty-notice strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 13px;
}

.season-empty-notice p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.loading-state {
    align-content: center;
    gap: 10px;
}

.loading-line {
    display: block;
    width: 220px;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-bright);
    animation: skeleton 1.4s ease-in-out infinite;
}

.loading-line.short {
    width: 140px;
}

/* Feature views */

.profile-actions,
.compare-controls,
.lineup-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.trend-grid,
.comparison-trends {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.trend-card,
.leader-board,
.synergy-card,
.highlight-card,
.achievement,
.lineup-player,
.capture-insights article {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.trend-card {
    padding: 18px;
}

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

.trend-head span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trend-head strong {
    font-family: "Unbounded", sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.trend-bars {
    display: grid;
    height: 150px;
    grid-template-columns: repeat(20, minmax(3px, 1fr));
    align-items: end;
    gap: 4px;
    padding-top: 12px;
    border-bottom: 1px solid var(--line-strong);
}

.trend-bars a {
    display: block;
    min-height: 5%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--lime), #7b9d20);
    opacity: 0.68;
    transition: opacity var(--ease), filter var(--ease), transform var(--ease);
}

.trend-bars a:hover {
    filter: brightness(1.2);
    opacity: 1;
    transform: scaleX(1.08);
}

.trend-bars .bar-1 { height: 5%; }
.trend-bars .bar-2 { height: 10%; }
.trend-bars .bar-3 { height: 15%; }
.trend-bars .bar-4 { height: 20%; }
.trend-bars .bar-5 { height: 25%; }
.trend-bars .bar-6 { height: 30%; }
.trend-bars .bar-7 { height: 35%; }
.trend-bars .bar-8 { height: 40%; }
.trend-bars .bar-9 { height: 45%; }
.trend-bars .bar-10 { height: 50%; }
.trend-bars .bar-11 { height: 55%; }
.trend-bars .bar-12 { height: 60%; }
.trend-bars .bar-13 { height: 65%; }
.trend-bars .bar-14 { height: 70%; }
.trend-bars .bar-15 { height: 75%; }
.trend-bars .bar-16 { height: 80%; }
.trend-bars .bar-17 { height: 85%; }
.trend-bars .bar-18 { height: 90%; }
.trend-bars .bar-19 { height: 95%; }
.trend-bars .bar-20 { height: 100%; }

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

.achievement {
    display: flex;
    align-items: center;
    min-height: 76px;
    gap: 12px;
    padding: 14px;
}

.achievement > span {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(209, 255, 76, 0.32);
    border-radius: 11px;
    background: var(--lime-soft);
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.achievement div,
.lineup-player div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.achievement small,
.synergy-card span,
.highlight-card small,
.lineup-player span,
.capture-insights small {
    color: var(--muted);
    font-size: 10px;
}

.synergy-card,
.highlight-card {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 17px;
    color: var(--text);
    text-decoration: none;
    transition: transform var(--ease), border-color var(--ease);
}

.synergy-card:hover,
.highlight-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.synergy-card b,
.highlight-card strong {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.analytics-boards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
}

.leader-board {
    min-width: 0;
    overflow: hidden;
}

.leader-board > .section-title {
    min-height: 76px;
    margin: 0;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(209, 255, 76, 0.06), transparent 70%);
}

.leader-board .section-title div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leader-board .leader-list {
    border: 0;
    border-radius: 0;
}

.compare-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compare-select,
.lineup-controls label {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
}

.compare-select select,
.lineup-controls select,
.lineup-controls input {
    padding: 0 12px;
    font-size: 12px;
}

.comparison-table {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.comparison-row {
    display: grid;
    min-height: 54px;
    grid-template-columns: minmax(150px, 1.2fr) repeat(4, minmax(110px, 1fr));
    border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
    border-bottom: 0;
}

.comparison-row > * {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    border-right: 1px solid var(--line);
}

.comparison-row > *:last-child {
    border-right: 0;
}

.comparison-row > span {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comparison-head {
    background: rgba(255, 255, 255, 0.025);
}

.comparison-trends > div > h2 {
    margin: 0 0 9px;
    font-family: "Unbounded", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.lineup-controls {
    align-items: flex-end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.lineup-controls label {
    min-width: 160px;
}

.lineup-controls label:nth-child(3) {
    max-width: 150px;
}

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

.lineup-player {
    display: flex;
    align-items: center;
    min-height: 68px;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--ease), transform var(--ease);
}

.lineup-player:hover {
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.lineup-player > b {
    width: 30px;
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 14px;
}

.lineup-player em {
    color: var(--lime);
    font-style: normal;
    font-weight: 800;
}

.season-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 9px;
}

.season-progress article {
    display: flex;
    min-height: 90px;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(209, 255, 76, 0.07), transparent 60%),
        var(--surface);
}

.season-progress span,
.season-progress small {
    color: var(--muted);
    font-size: 10px;
}

.capture-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 13px;
}

.capture-insights article {
    display: flex;
    min-height: 104px;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    padding: 16px;
}

.capture-insights span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.capture-insights strong {
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.heatmap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.heatmap-row {
    display: grid;
    min-width: 560px;
    grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(90px, 1fr));
    border-bottom: 1px solid var(--line);
}

.heatmap-row:last-child {
    border-bottom: 0;
}

.heatmap-row > * {
    padding: 12px 14px;
}

.heatmap-row > span {
    background-repeat: no-repeat;
}

.heatmap-row > .heat-0 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 0%, transparent 0%); }
.heatmap-row > .heat-1 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 10%, transparent 10%); }
.heatmap-row > .heat-2 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 20%, transparent 20%); }
.heatmap-row > .heat-3 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 30%, transparent 30%); }
.heatmap-row > .heat-4 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 40%, transparent 40%); }
.heatmap-row > .heat-5 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 50%, transparent 50%); }
.heatmap-row > .heat-6 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 60%, transparent 60%); }
.heatmap-row > .heat-7 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 70%, transparent 70%); }
.heatmap-row > .heat-8 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 80%, transparent 80%); }
.heatmap-row > .heat-9 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 90%, transparent 90%); }
.heatmap-row > .heat-10 { background-image: linear-gradient(90deg, rgba(209, 255, 76, 0.13) 100%, transparent 100%); }

.heatmap-head {
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.opponent-history {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.opponent-history article {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 2fr 60px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.opponent-history article:last-child {
    border-bottom: 0;
}

/* Account */

.account-gate,
.account-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(88, 101, 242, 0.12), transparent 38%),
        var(--surface);
    padding: clamp(24px, 4vw, 48px);
}

.account-gate {
    display: flex;
    max-width: 820px;
    min-height: 390px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.account-gate h2,
.account-discord h2,
.account-player h2 {
    margin: 7px 0;
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.account-gate p,
.account-link-missing p {
    max-width: 620px;
    color: var(--muted);
    line-height: 1.65;
}

.account-mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 17px;
    background: var(--lime);
    color: #10130b;
    font-family: "Unbounded", sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.discord-login {
    margin-top: 18px;
    border-color: #7480ff;
    background: #5865f2;
    color: #fff;
}

.discord-login:hover {
    border-color: #8792ff;
    background: #6673f6;
    color: #fff;
}

.account-discord,
.account-player {
    display: flex;
    align-items: center;
    gap: 18px;
}

.account-discord > div,
.account-player > div {
    flex: 1;
}

.account-avatar {
    width: 74px;
    height: 74px;
    border: 2px solid rgba(209, 255, 76, 0.35);
    border-radius: 20px;
    background: var(--surface-bright);
    object-fit: cover;
}

.account-avatar.fallback {
    display: grid;
    place-items: center;
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.account-discord span,
.account-player span,
.account-roles > span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-roles {
    padding: 24px 0;
    margin: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.account-roles > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.discord-role {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
}

.account-owned {
    border-color: rgba(209, 255, 76, 0.35);
    background: var(--lime-soft);
    color: var(--lime);
}

.account-link-missing,
.account-link-candidate,
.account-unavailable,
.account-loading {
    display: block;
    padding: 20px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--lime);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.account-link-candidate {
    display: grid;
    gap: 16px;
    border-left-color: var(--lime);
    background:
        radial-gradient(circle at 100% 0, rgba(209, 255, 76, 0.09), transparent 46%),
        rgba(255, 255, 255, 0.025);
}

.account-link-candidate > div:first-child {
    display: grid;
    gap: 7px;
}

.account-link-candidate strong {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(17px, 2vw, 22px);
    letter-spacing: -0.03em;
}

.account-link-candidate p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.account-link-candidate code {
    color: var(--lime);
}

.account-link-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.account-link-error {
    padding: 10px 12px;
    border: 1px solid rgba(255, 98, 116, 0.3);
    border-radius: 10px;
    background: rgba(255, 98, 116, 0.08);
    color: #ff9aa7;
    font-size: 12px;
}

.account-link-missing code {
    color: var(--lime);
}

.account-notice {
    display: grid;
    max-width: 820px;
    gap: 3px;
    margin-bottom: 14px;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--muted);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.025);
}

.account-notice strong {
    font-size: 13px;
}

.account-notice span,
.account-unavailable span,
.account-unavailable small {
    color: var(--muted);
    font-size: 12px;
}

.account-notice.success {
    border-left-color: var(--green);
    background: rgba(110, 231, 160, 0.055);
}

.account-notice.error {
    border-left-color: var(--red);
    background: rgba(255, 107, 111, 0.055);
}

.account-permissions {
    display: grid;
    max-width: 620px;
    gap: 8px;
    margin: 6px 0 2px;
    padding: 16px 18px;
    border: 1px solid rgba(88, 101, 242, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(88, 101, 242, 0.06);
}

.account-permissions strong {
    font-size: 12px;
}

.account-permissions ul {
    display: grid;
    gap: 5px;
    padding-left: 19px;
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
}

.account-permissions > span {
    color: var(--muted);
    font-size: 11px;
}

.account-unavailable {
    display: grid;
    max-width: 620px;
    gap: 5px;
    margin-top: 18px;
}

.account-unavailable small {
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.account-unavailable code {
    overflow-wrap: anywhere;
    color: var(--lime);
    font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
    font-size: 11px;
}

/* MP schedule */

body.schedule-open {
    overflow: hidden;
}

.schedule-launcher {
    position: fixed;
    z-index: 90;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: min(350px, calc(100vw - 28px));
    min-height: 76px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(209, 255, 76, 0.3);
    border-radius: 17px;
    background:
        linear-gradient(100deg, rgba(209, 255, 76, 0.08), transparent 48%),
        rgba(10, 14, 17, 0.96);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.035);
    color: var(--text);
    text-align: left;
    backdrop-filter: blur(20px);
    transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.schedule-launcher:hover {
    border-color: rgba(209, 255, 76, 0.65);
    background-color: rgba(16, 21, 23, 0.98);
    transform: translateY(-2px);
}

.schedule-launcher-mark,
.schedule-event-icon,
.schedule-activity-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(209, 255, 76, 0.18);
    border-radius: 12px;
    background: var(--lime-soft);
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    font-weight: 750;
}

.schedule-launcher-mark {
    width: 42px;
    height: 42px;
}

.schedule-launcher > span:nth-child(2),
.schedule-launcher > span:last-child {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.schedule-launcher > span:last-child {
    justify-items: end;
    text-align: right;
}

.schedule-launcher small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.schedule-launcher > span:nth-child(2) small {
    text-transform: uppercase;
}

.schedule-launcher strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-launcher b {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.15;
}

.schedule-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    visibility: hidden;
    background: rgba(3, 5, 7, 0.72);
    opacity: 0;
    backdrop-filter: blur(7px);
    transition: visibility var(--ease), opacity var(--ease);
}

.schedule-panel {
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    display: grid;
    visibility: hidden;
    width: min(390px, 100vw);
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr);
    border-left: 1px solid rgba(209, 255, 76, 0.2);
    background:
        radial-gradient(circle at 0 0, rgba(209, 255, 76, 0.06), transparent 22rem),
        #080b0f;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateX(102%);
    transition: visibility 240ms ease, opacity 240ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.schedule-open .schedule-overlay,
body.schedule-open .schedule-panel {
    visibility: visible;
    opacity: 1;
}

body.schedule-open .schedule-panel {
    transform: translateX(0);
}

body.schedule-open .schedule-launcher {
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
}

.schedule-header {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px 13px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 11, 15, 0.88);
    backdrop-filter: blur(18px);
}

.schedule-header > div:first-child {
    display: grid;
    gap: 3px;
}

.schedule-header > div:first-child > span {
    font-family: "Unbounded", sans-serif;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-header small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.schedule-header small b {
    color: var(--text-soft);
}

.schedule-header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.schedule-reminder,
.schedule-close {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted-strong);
}

.schedule-reminder {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    font-size: 10px;
    font-weight: 700;
}

.schedule-reminder > span:first-child {
    color: var(--muted);
    font-size: 7px;
}

.schedule-reminder.is-active {
    border-color: rgba(209, 255, 76, 0.35);
    background: var(--lime-soft);
    color: var(--lime);
}

.schedule-reminder.is-active > span:first-child {
    color: var(--lime);
    box-shadow: 0 0 10px var(--lime);
}

.schedule-reminder:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.schedule-close {
    width: 38px;
    padding: 0;
    font-size: 23px;
    line-height: 1;
}

.schedule-reminder:hover:not(:disabled),
.schedule-close:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    color: var(--text);
}

.schedule-content {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.schedule-next {
    display: grid;
    min-height: 90px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(209, 255, 76, 0.22);
    background:
        linear-gradient(105deg, rgba(209, 255, 76, 0.1), rgba(209, 255, 76, 0.018) 70%),
        rgba(209, 255, 76, 0.02);
}

.schedule-event-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.schedule-next .schedule-event-icon {
    width: 42px;
    height: 42px;
}

.schedule-event-icon.drop {
    border-color: rgba(104, 215, 238, 0.2);
    background: rgba(104, 215, 238, 0.08);
    color: var(--cyan);
}

.schedule-event-icon.dealer {
    border-color: rgba(155, 134, 255, 0.22);
    background: rgba(155, 134, 255, 0.09);
    color: #b7a8ff;
}

.schedule-event-icon.workshop {
    border-color: rgba(255, 124, 168, 0.22);
    background: rgba(255, 124, 168, 0.08);
    color: var(--pink);
}

.schedule-next > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.schedule-next > div:last-child {
    justify-items: end;
    text-align: right;
}

.schedule-next small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-next strong {
    color: var(--lime);
    font-size: 14px;
}

.schedule-next time {
    color: var(--lime);
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.04em;
}

.schedule-list {
    display: grid;
    padding: 10px 0;
}

.schedule-row {
    position: relative;
    display: grid;
    min-height: 50px;
    grid-template-columns: 48px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 7px 18px;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transition: opacity var(--ease), background var(--ease), border-color var(--ease);
}

.schedule-row time {
    justify-self: start;
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted-strong);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.schedule-row strong {
    font-size: 12px;
    font-weight: 620;
}

.schedule-row small {
    color: var(--lime);
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-row.is-past {
    opacity: 0.28;
}

.schedule-row.is-next {
    border-color: rgba(209, 255, 76, 0.26);
    background: linear-gradient(90deg, rgba(209, 255, 76, 0.1), rgba(209, 255, 76, 0.025));
}

.schedule-row.is-next::before {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: var(--lime);
    box-shadow: 0 0 12px rgba(209, 255, 76, 0.55);
    content: "";
}

.schedule-row.is-next time {
    border-color: rgba(209, 255, 76, 0.3);
    background: rgba(209, 255, 76, 0.12);
    color: var(--text);
}

.schedule-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 14px 18px 8px;
}

.schedule-section-title span {
    font-family: "Unbounded", sans-serif;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.schedule-section-title small {
    color: var(--muted);
    font-size: 9px;
}

.schedule-activities {
    display: grid;
    padding-bottom: 8px;
    border-top: 1px solid var(--line);
}

.schedule-activity {
    display: grid;
    min-height: 66px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 8px 18px;
}

.schedule-activity-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.schedule-activity > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.schedule-activity strong {
    font-size: 12px;
}

.schedule-activity small {
    width: fit-content;
    color: var(--muted);
    font-size: 9px;
}

.schedule-activity > b {
    padding: 3px 7px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-strong);
    font-size: 9px;
    white-space: nowrap;
}

.schedule-activity.supply .schedule-activity-icon,
.schedule-activity.supply strong {
    color: #58e6b3;
}

.schedule-activity.supply .schedule-activity-icon {
    border-color: rgba(88, 230, 179, 0.2);
    background: rgba(88, 230, 179, 0.08);
}

.schedule-activity.contraband .schedule-activity-icon,
.schedule-activity.contraband strong,
.schedule-activity.contraband > b {
    color: var(--amber);
}

.schedule-activity.contraband .schedule-activity-icon {
    border-color: rgba(255, 200, 102, 0.2);
    background: rgba(255, 200, 102, 0.08);
}

.schedule-activity.island .schedule-activity-icon,
.schedule-activity.island strong {
    color: var(--pink);
}

.schedule-activity.island .schedule-activity-icon {
    border-color: rgba(255, 124, 168, 0.2);
    background: rgba(255, 124, 168, 0.08);
}

.schedule-activity.island.is-open small {
    color: var(--green);
}

.schedule-activity.capts .schedule-activity-icon,
.schedule-activity.capts strong {
    color: #b7a8ff;
}

.schedule-activity.capts .schedule-activity-icon {
    border-color: rgba(155, 134, 255, 0.2);
    background: rgba(155, 134, 255, 0.08);
}

.schedule-day-chips {
    display: flex;
    gap: 3px;
}

.schedule-day-chips span {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 750;
}

.schedule-day-chips span.is-today {
    border-color: rgba(155, 134, 255, 0.35);
    background: rgba(155, 134, 255, 0.14);
    color: #c6bbff;
}

.schedule-note {
    margin: 0;
    padding: 11px 18px 3px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

/* Footer */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 20px;
    grid-area: footer;
    margin: 0 26px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.site-footer div {
    display: grid;
    gap: 4px;
}

.site-footer strong {
    font-family: "Unbounded", sans-serif;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.06em;
}

.site-footer span,
.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.site-footer a {
    color: var(--lime);
    text-underline-offset: 3px;
}

/* Animations */

@keyframes live-pulse {
    0%, 100% { opacity: 0.65; transform: scale(0.88); }
    50% { opacity: 1; transform: scale(1); }
}

@keyframes skeleton {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */

@media (max-width: 1320px) {
    :root {
        --sidebar: 238px;
    }

    .site-header {
        padding-inline: 14px;
    }

    .site-nav a {
        min-height: 42px;
    }

    .brand-strip {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    }

    .filter-band {
        grid-template-columns: repeat(4, minmax(125px, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.8fr);
    }

    .capture-grid.wide {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .app-shell {
        display: block;
        width: 100%;
    }

    .site-header {
        position: sticky;
        top: 0;
        display: grid;
        width: 100%;
        height: auto;
        grid-template-columns: auto minmax(220px, 1fr) auto;
        grid-template-areas:
            "brand search sync"
            "nav nav nav";
        gap: 9px 14px;
        padding: 11px 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        background: rgba(8, 11, 14, 0.94);
    }

    .brand {
        min-height: 44px;
        grid-area: brand;
        padding: 0;
        border: 0;
    }

    .brand-mark {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 17px;
    }

    .brand-copy span {
        display: none;
    }

    .global-search {
        align-self: center;
        grid-area: search;
        margin: 0;
    }

    .global-search input {
        min-height: 40px;
    }

    .global-search::after {
        top: 22px;
    }

    #global-search-results {
        left: 0;
        width: min(440px, calc(100vw - 36px));
    }

    .site-nav {
        display: flex;
        min-height: 46px;
        flex-direction: row;
        grid-area: nav;
        gap: 4px;
        margin: 0 -18px;
        padding: 0 18px;
        overflow-x: auto;
        overflow-y: hidden;
        border-top: 1px solid var(--line);
    }

    .nav-section-label {
        display: none;
    }

    .site-nav a {
        flex: 0 0 auto;
        min-height: 46px;
        gap: 7px;
        padding: 8px 12px;
        border: 0;
        border-radius: 0;
        font-size: 11px;
    }

    .site-nav a::before {
        display: none;
    }

    .nav-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
        padding: 4px;
        border-radius: 8px;
    }

    .site-nav a::after {
        top: auto;
        right: 12px;
        bottom: 0;
        left: 12px;
        width: auto;
        height: 2px;
        border-radius: 2px 2px 0 0;
        transform: none;
    }

    .site-nav a:hover {
        transform: none;
    }

    .site-nav a.active {
        background: transparent;
    }

    .sync-state {
        align-self: center;
        min-height: 40px;
        grid-area: sync;
        padding: 0;
        border: 0;
    }

    .sync-state span:last-child {
        display: none;
    }

    .brand-strip {
        margin: 18px 18px 0;
    }

    main {
        padding: 0 18px;
    }

    .site-footer {
        margin-inline: 18px;
    }

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

    .capture-grid,
    .map-grid,
    .opponent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-grid,
    .detail-columns {
        grid-template-columns: 1fr;
    }

    .daily-board-grid {
        grid-template-columns: 1fr;
    }

    .daily-board .leader-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-board .leader-row:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

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

@media (max-width: 760px) {
    body::before {
        background-size: 48px 48px;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand sync"
            "search search"
            "nav nav";
        gap: 8px;
        padding: 10px 14px 0;
    }

    .brand-copy strong {
        font-size: 13px;
    }

    .global-search input {
        min-height: 42px;
    }

    .site-nav {
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .brand-strip {
        min-height: 258px;
        grid-template-columns: 1fr;
        margin: 14px 14px 0;
        border-radius: 21px;
    }

    .brand-strip-copy {
        z-index: 4;
        justify-content: flex-end;
        padding: 28px 24px;
    }

    .brand-strip-copy > span {
        margin-bottom: 14px;
    }

    .brand-strip-copy strong {
        font-size: clamp(28px, 8vw, 39px);
    }

    .brand-strip-copy p {
        max-width: 520px;
        margin-top: 14px;
        font-size: 12px;
    }

    .brand-strip-media {
        position: absolute;
        inset: 0;
    }

    .brand-strip-media::before {
        background:
            linear-gradient(90deg, rgba(9, 13, 16, 0.96), rgba(9, 13, 16, 0.58)),
            linear-gradient(0deg, rgba(7, 9, 12, 0.9), transparent 70%);
    }

    .hero-signal {
        display: none;
    }

    main {
        padding: 0 14px;
    }

    .filter-band {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 12px;
        padding: 12px;
        border-radius: 16px;
    }

    .filter-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        grid-column: 1 / -1;
        gap: 12px;
    }

    .filter-toolbar > div {
        display: grid;
        gap: 2px;
    }

    .filter-toolbar strong {
        font-size: 12px;
    }

    .filter-toolbar span {
        color: var(--muted);
        font-size: 10px;
    }

    .filter-toggle {
        min-height: 38px;
    }

    .filter-band:not(.is-open) > :not(.filter-toolbar) {
        display: none;
    }

    .filter-band > .button,
    .filter-band > .icon-button,
    .filter-band > #filter-preset {
        width: 100%;
    }

    .icon-button {
        width: 44px;
    }

    .view {
        padding: 28px 0 42px;
    }

    .view-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .view-header h1,
    .detail-title h1 {
        font-size: clamp(24px, 7vw, 32px);
    }

    .view-tools {
        width: 100%;
    }

    .view-tools .search-input {
        width: 100%;
    }

    .view-tools select {
        flex: 0 0 138px;
        min-width: 0;
    }

    .summary-grid,
    .detail-grid,
    .daily-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metric,
    .detail-stat {
        min-height: 102px;
        padding: 15px;
        border-radius: 15px;
    }

    .metric strong,
    .detail-stat strong {
        font-size: clamp(18px, 5vw, 23px);
    }

    .secondary-metrics,
    .record-grid,
    .split-grid,
    .analytics-boards,
    .trend-grid,
    .comparison-trends,
    .lineup-grid,
    .capture-insights {
        grid-template-columns: 1fr;
    }

    .capture-grid,
    .map-grid,
    .opponent-grid {
        grid-template-columns: 1fr;
    }

    .capture-grid.wide {
        grid-template-columns: 1fr;
    }

    .capture-card {
        min-height: 184px;
    }

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

    .table-scroll {
        margin-inline: -14px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .data-table {
        min-width: 760px;
    }

    .data-table th:first-child,
    .data-table td:first-child {
        position: sticky;
        z-index: 3;
        left: 0;
        background: #0d1115;
    }

    .data-table th.name-column,
    .data-table td.name-column {
        position: sticky;
        z-index: 2;
        left: 48px;
        background: #0d1115;
        box-shadow: 9px 0 16px rgba(0, 0, 0, 0.16);
    }

    .data-table tbody tr:hover td:first-child,
    .data-table tbody tr:hover td.name-column {
        background: #161d1c;
    }

    .daily-board .leader-list {
        grid-template-columns: 1fr;
    }

    .daily-board .leader-row:nth-child(odd) {
        border-right: 0;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-row {
        min-width: 720px;
    }

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

    .opponent-history article {
        grid-template-columns: 1fr;
    }

    .season-empty-notice,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        min-height: 116px;
        margin-inline: 14px;
    }
}

@media (max-width: 480px) {
    .brand-copy span {
        display: none;
    }

    .site-nav a {
        min-height: 44px;
        padding-inline: 11px;
        font-size: 10px;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        padding: 3.5px;
        border-radius: 7px;
    }

    .brand-strip {
        min-height: 250px;
    }

    .brand-strip-copy {
        padding: 24px 20px;
    }

    .brand-strip-copy p {
        display: none;
    }

    .filter-band {
        grid-template-columns: 1fr;
    }

    .summary-grid,
    .detail-grid,
    .daily-summary {
        gap: 8px;
    }

    .metric,
    .detail-stat {
        min-height: 94px;
        padding: 13px;
    }

    .metric span,
    .detail-stat span {
        font-size: 8px;
    }

    .metric strong,
    .detail-stat strong {
        font-size: 17px;
    }

    .view-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .view-tools select {
        width: 100%;
        flex-basis: auto;
    }

    .achievement-grid,
    .synergy-grid,
    .highlight-grid,
    .compare-controls {
        grid-template-columns: 1fr;
    }

    .profile-actions .button,
    .lineup-controls .button,
    .lineup-controls label {
        width: 100%;
        max-width: none;
    }

    .detail-head {
        gap: 12px;
    }

    .detail-head > .result-badge {
        display: none;
    }

    .map-stats,
    .opponent-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trend-bars {
        height: 120px;
        gap: 2px;
    }

    .account-discord,
    .account-player {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .account-discord .button,
    .account-player .button {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .schedule-launcher {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        width: calc(100vw - 28px);
        min-height: 70px;
        border-radius: 15px;
    }

    .schedule-panel {
        width: 100vw;
        border-left: 0;
    }

    .schedule-header {
        min-height: 66px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .schedule-row,
    .schedule-activity,
    .schedule-next {
        padding-inline: 14px;
    }
}

@media (max-width: 390px) {
    .schedule-launcher {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 9px;
        padding-inline: 10px;
    }

    .schedule-launcher-mark {
        width: 38px;
        height: 38px;
    }

    .schedule-launcher > span:nth-child(2) small,
    .schedule-reminder > span:last-child {
        display: none;
    }

    .schedule-reminder {
        width: 38px;
        justify-content: center;
        padding: 0;
    }

    .schedule-row {
        grid-template-columns: 45px 32px minmax(0, 1fr) auto;
        gap: 7px;
        padding-inline: 12px;
    }

    .schedule-row .schedule-event-icon {
        width: 32px;
        height: 32px;
    }

    .schedule-row small {
        max-width: 66px;
        white-space: normal;
        text-align: right;
    }

    .schedule-activity {
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .brand-strip-media img {
        visibility: hidden;
    }
}
