.home-preview {
    --mp-default: var(--hp-text);
    --hp-bg: #121212;
    --hp-surface: #1b1b1e;
    --hp-text: #f5f5f7;
    --hp-muted: #b0b0bd;
    --hp-line: #343438;
    --hp-accent: #a298ff;
    --hp-fill: #2c12d9;
    --hp-success: #8dcaa5;
    --hp-avatar: #35353e;
    --tov-surface: var(--hp-surface);
    --tov-surface-2: var(--hp-bg);
    --tov-line: var(--hp-line);
    --tov-line-strong: var(--hp-accent);
    --tov-text: var(--hp-text);
    --tov-muted: var(--hp-muted);
    --tov-dim: var(--hp-muted);
    --tov-accent: var(--hp-fill);
    --tov-accent-strong: var(--hp-accent);
    --tov-accent-soft: rgba(111, 92, 241, .12);
    --tov-live: var(--hp-success);
    --tov-radius: 0;
    color: var(--hp-text);
    background: var(--hp-bg);
    font-family: Inter, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    padding: 28px 0 48px;
}

html[data-theme="light"] .home-preview {
    --hp-bg: #f5f5f7;
    --hp-surface: #fafafa;
    --hp-text: #151518;
    --hp-muted: #5c5c68;
    --hp-line: #d4d4dc;
    --hp-accent: #2c12d9;
    --hp-success: #236a41;
    --hp-avatar: #e3e3e9;
}

@media (prefers-color-scheme: light) {
    html[data-theme="auto"] .home-preview {
        --hp-bg: #f5f5f7;
        --hp-surface: #fafafa;
        --hp-text: #151518;
        --hp-muted: #5c5c68;
        --hp-line: #d4d4dc;
        --hp-accent: #2c12d9;
        --hp-success: #236a41;
        --hp-avatar: #e3e3e9;
    }
}

.home-preview *,
.home-preview *::before,
.home-preview *::after { box-sizing: border-box; }

.home-preview h1,
.home-preview h2,
.home-preview h3,
.home-preview h4,
.home-preview p { margin: 0; }

.home-preview a { color: inherit; text-decoration: none; }
.home-preview a:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 4px; }
.home-preview em { color: var(--hp-accent); font-style: normal; }

.home-preview h1,
.home-preview h2,
.home-preview h3,
.home-preview h4 { font-family: 'Chakra Petch', sans-serif; font-weight: 700; }

.home-preview h1,
.home-preview h2 { text-transform: uppercase; line-height: 1.1; letter-spacing: -.035em; }
.home-preview h1 { font-size: clamp(36px, 4vw, 62px); }
.home-preview h2 { font-size: clamp(28px, 3vw, 44px); }
.home-preview h3 { font-size: 18px; line-height: 1.3; text-transform: uppercase; }
.home-preview .hp-container { width: min(1440px, 91%); margin: 0 auto; }
.home-preview .hp-muted { color: var(--hp-muted); }

.home-preview .hp-eyebrow {
    margin-bottom: 8px;
    color: var(--hp-muted);
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: .12em;
}

.home-preview .hp-square { width: 10px; height: 10px; background: var(--hp-fill); flex: 0 0 10px; }
.home-preview .hp-micro { display: block; color: var(--hp-muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.home-preview .hp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 13px 21px;
    min-height: 48px;
    border: 1px solid var(--hp-fill);
    background: var(--hp-fill);
    color: #fff;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-preview .hp-button:hover { background: #4a35e0; border-color: #4a35e0; }
.home-preview .hp-button--outline { background: transparent; border-color: var(--hp-line); color: var(--hp-text); }
.home-preview .hp-button--outline:hover { background: var(--hp-fill); color: #fff; }
.home-preview .hp-text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--hp-accent); font-size: 12px; white-space: nowrap; }
.home-preview .hp-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-preview .hp-text-link span { font-size: 19px; }
.home-preview .hp-skip { position: absolute; transform: translateY(-160px); padding: 12px; background: var(--hp-surface); z-index: 10; }
.home-preview .hp-skip:focus { transform: none; }

.home-preview .hp-dashboard-heading {
    position: relative;
    display: grid;
    align-items: center;
    min-height: clamp(340px, 28vw, 420px);
    margin-bottom: 22px;
    padding: 40px 48px;
    border: 1px solid var(--hp-line);
    background: #121216;
    isolation: isolate;
    overflow: hidden;
}

.home-preview .hp-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
}

.home-preview .hp-dashboard-heading::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(12, 12, 18, .92), rgba(12, 12, 18, .68) 35%, rgba(12, 12, 18, .06) 75%);
    pointer-events: none;
}

.home-preview .hp-hero-copy {
    --hp-accent: #b6adff;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 620px;
    color: #fff;
}

.home-preview .hp-hero-copy .hp-eyebrow { margin-bottom: 0; color: #dedde8; }
.home-preview .hp-hero-copy h1 { font-size: clamp(44px, 5vw, 76px); }
.home-preview .hp-hero-description { max-width: 360px; color: #e3e1eb; font-size: 16px; }

.home-preview .hp-mode-shelf { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.home-preview .hp-mode { display: flex; align-items: center; gap: 13px; flex: 1 1 230px; border: 1px solid var(--hp-line); background: var(--hp-surface); padding: 14px 18px; }
.home-preview .hp-mode strong { font-family: 'Chakra Petch', sans-serif; font-size: 20px; text-transform: uppercase; }
.home-preview .hp-mode > span:not(.hp-square) { color: var(--hp-muted); }
.home-preview .hp-mode .hp-mode-arrow { margin-left: auto; color: var(--hp-accent); font-size: 21px; }
.home-preview .hp-mode:hover { border-color: var(--hp-accent); }
.home-preview .hp-dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.home-preview .hp-panel { border: 1px solid var(--hp-line); background: var(--hp-surface); min-width: 0; }
.home-preview .hp-events { border-top: 2px solid var(--hp-accent); }
.home-preview .hp-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--hp-line); }
.home-preview .hp-panel-heading h2,
.home-preview .hp-panel-heading h3 { font-size: 18px; letter-spacing: .02em; }
.home-preview .hp-tournament { display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; padding: 16px 22px; }
.home-preview .hp-tournament + .hp-tournament { border-top: 1px solid var(--hp-line); }
.home-preview .hp-tournament strong { font-family: 'Chakra Petch', sans-serif; font-size: 22px; line-height: 1.3; grid-column: 1; }
.home-preview .hp-tournament .hp-muted { font-size: 12px; grid-column: 1; }
.home-preview .hp-tournament-arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; color: var(--hp-accent); font-size: 25px; }
.home-preview .hp-tournament:hover strong { color: var(--hp-accent); }
.home-preview .hp-empty { padding: 26px 22px; color: var(--hp-muted); font-size: 13px; }
.home-preview .hp-empty .hp-text-link { margin-top: 15px; }
.home-preview .hp-snapshot { padding-top: 10px; color: var(--hp-muted); font-size: 11px; }
.home-preview .hp-snapshot a { text-decoration: underline; text-underline-offset: 3px; }
.home-preview .hp-match-row { padding: 14px 22px; }
.home-preview .hp-match-row + .hp-match-row { border-top: 1px solid var(--hp-line); }
.home-preview .hp-own-match { border-left: 2px solid var(--hp-accent); }
.home-preview .hp-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 6px; }
.home-preview .hp-side { display: flex; flex-direction: column; font-size: 12px; min-width: 0; }
.home-preview .hp-side a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-preview .hp-side a:hover { text-decoration: underline; }
.home-preview .hp-side--red { text-align: right; }
.home-preview .hp-score-value { display: flex; align-items: center; gap: 10px; font-family: 'Chakra Petch', sans-serif; font-size: 25px; font-weight: 700; }
.home-preview .hp-score-divider { color: var(--hp-muted); }

.home-preview .hp-section { margin-top: 58px; padding-top: 38px; border-top: 1px solid var(--hp-line); }
.home-preview .hp-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.home-preview .hp-competition-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0 0 30px; padding: 20px 0; border-block: 1px solid var(--hp-line); }
.home-preview .hp-competition-facts dt { color: var(--hp-muted); font-size: 11px; text-transform: uppercase; }
.home-preview .hp-competition-facts dd { margin: 5px 0 0; font-size: 13px; font-weight: 600; }
.home-preview .hp-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.home-preview .hp-player-strip { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-bottom: 22px; padding: 15px 0; border-bottom: 1px solid var(--hp-line); font-size: 12px; }
.home-preview .hp-player-name { font-size: 15px; font-weight: 600; }
.home-preview .hp-player-strip > .hp-text-link { margin-left: auto; }
.home-preview .hp-form { display: flex; flex-wrap: wrap; gap: 5px; }
.home-preview .hp-form-result { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border: 1px solid var(--hp-line); font-weight: 600; }
.home-preview .hp-form-result--w { color: var(--hp-success); }
.home-preview .hp-form-result--l { color: var(--hp-muted); }
.home-preview .hp-queue-details { display: flex; flex-wrap: wrap; gap: 15px 30px; margin-bottom: 22px; }
.home-preview .hp-queue-details a { display: flex; gap: 12px; align-items: center; font-size: 12px; }
.home-preview .hp-queue-details a span { color: var(--hp-muted); }
.home-preview .hp-queue-details a:hover strong { color: var(--hp-accent); }
.home-preview .hp-ledger { list-style: none; margin: 0; padding: 8px 22px; }
.home-preview .hp-ledger li { display: flex; align-items: center; gap: 13px; padding: 12px 0; }
.home-preview .hp-ledger li + li { border-top: 1px solid var(--hp-line); }
.home-preview .hp-rank { color: var(--hp-muted); font-family: 'Chakra Petch', sans-serif; font-size: 13px; }
.home-preview .hp-ledger-player { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }
.home-preview .hp-ledger-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-preview .hp-avatar { width: 32px; height: 32px; object-fit: cover; flex: 0 0 32px; }
.home-preview .hp-avatar--initial { display: flex; align-items: center; justify-content: center; background: var(--hp-avatar); font-weight: 700; }
.home-preview .hp-ledger-value { display: flex; flex-direction: column; align-items: flex-end; }
.home-preview .hp-ledger-value strong { font-family: 'Chakra Petch', sans-serif; font-size: 20px; }
.home-preview .hp-ledger-value small { color: var(--hp-muted); font-size: 10px; }
.home-preview .hp-ledger-empty { padding: 26px 22px; color: var(--hp-muted); }

.home-preview .hp-community-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.home-preview .hp-community-links > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 240px;
    padding: 30px;
    overflow: hidden;
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    text-align: left;
    transition: border-color .25s ease;
}
.home-preview .hp-community-links > a::before { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, transparent 30%, rgba(111, 92, 241, .12)); opacity: .5; transition: opacity .3s ease; pointer-events: none; }
.home-preview .hp-community-links > a > * { position: relative; }
.home-preview .hp-community-links svg {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    fill: none;
    stroke: var(--hp-accent);
    stroke-width: 1.3;
    transition: transform .3s ease;
}
.home-preview .hp-community-links h3 { font-size: clamp(24px, 2.3vw, 34px); margin-bottom: 7px; }
.home-preview .hp-community-links p { color: var(--hp-muted); font-size: 13px; }
.home-preview .hp-community-links > a > span { margin-left: auto; color: var(--hp-accent); font-size: 30px; transition: transform .3s ease; }
.home-preview .hp-community-links > a:hover,
.home-preview .hp-community-links > a:focus-visible { border-color: var(--hp-accent); }
.home-preview .hp-community-links > a:hover::before,
.home-preview .hp-community-links > a:focus-visible::before { opacity: 1; }
.home-preview .hp-community-links > a:hover svg,
.home-preview .hp-community-links > a:focus-visible svg { transform: translateY(-8px); }
.home-preview .hp-community-links > a:hover > span,
.home-preview .hp-community-links > a:focus-visible > span { transform: translateX(6px); }

html[data-theme] .home-preview .mp-col { color: var(--mc-d, var(--mp-default)) !important; }
html[data-theme="light"] .home-preview .mp-col { color: var(--mc-l, var(--mp-default)) !important; }
@media (prefers-color-scheme: light) {
    html[data-theme="auto"] .home-preview .mp-col { color: var(--mc-l, var(--mp-default)) !important; }
}

@media (max-width: 900px) {
    .home-preview .hp-dashboard-grid,
    .home-preview .hp-two-columns { grid-template-columns: 1fr; }
    .home-preview .hp-competition-facts { grid-template-columns: repeat(2, 1fr); }
    .home-preview .hp-community-links > a { padding: 24px; gap: 18px; min-height: 220px; }
    .home-preview .hp-community-links svg { width: 44px; height: 44px; flex-basis: 44px; }
}

@media (max-width: 600px) {
    .home-preview { padding-top: 18px; }
    .home-preview .hp-container { width: 92%; }
    .home-preview .hp-dashboard-heading { min-height: 380px; padding: 28px 24px; }
    .home-preview .hp-dashboard-heading::before { background: linear-gradient(90deg, rgba(12, 12, 18, .86), rgba(12, 12, 18, .55)); }
    .home-preview .hp-hero-image { object-position: 60% 44%; }
    .home-preview .hp-section { margin-top: 40px; padding-top: 28px; }
    .home-preview .hp-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .home-preview .hp-panel-heading { padding: 16px 18px; }
    .home-preview .hp-tournament,
    .home-preview .hp-match-row { padding-inline: 18px; }
    .home-preview .hp-community-links { grid-template-columns: 1fr; gap: 14px; }
    .home-preview .hp-community-links > a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; min-height: 200px; }
    .home-preview .hp-community-links svg { width: 44px; height: 44px; }
    .home-preview .hp-community-links > a > span { margin-left: 0; font-size: 24px; }
    .home-preview .hp-competition-facts { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-preview *,
    .home-preview *::before,
    .home-preview *::after { scroll-behavior: auto; animation: none; transition: none; }
    .home-preview .hp-community-links > a,
    .home-preview .hp-community-links > a::before,
    .home-preview .hp-community-links svg,
    .home-preview .hp-community-links > a > span { transition: none; }
    .home-preview .hp-community-links > a:hover svg,
    .home-preview .hp-community-links > a:focus-visible svg,
    .home-preview .hp-community-links > a:hover > span,
    .home-preview .hp-community-links > a:focus-visible > span { transform: none; }
}
