:root {
    --primary: #6c5ce7;
    --primary-soft: rgba(108, 92, 231, 0.18);
    --dark: #12182e;
    --dark-elevated: #18203b;
    --darker: #08111d;
    --light: #eef2ff;
    --muted: #97a2c9;
    --accent: #ff4757;
    --accent-soft: rgba(255, 71, 87, 0.16);
    --success: #2ecc71;
    --border: rgba(189, 198, 255, 0.16);
    --line: rgba(156, 167, 218, 0.24);
    --shadow: 0 24px 60px rgba(1, 8, 22, 0.4);
    --shadow-soft: 0 12px 28px rgba(1, 8, 22, 0.26);
    --radius-lg: 26px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1320px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Rajdhani', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(108, 92, 231, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 71, 87, 0.12), transparent 24%),
        linear-gradient(180deg, #0c1424 0%, #07101d 100%);
    color: var(--light);
    line-height: 1.55;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, #000 45%, transparent 100%);
    opacity: 0.45;
}

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

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    background: rgba(7, 16, 29, 0.84);
    border-bottom: 1px solid rgba(170, 185, 255, 0.12);
}

.header__inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    min-width: 0;
}

.brand__mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.4), rgba(255, 71, 87, 0.34));
    border: 1px solid rgba(196, 203, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.brand__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand__subtitle {
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.header__actions {
    display: flex;
    justify-content: flex-end;
}

.nav-link,
.nav-button,
.hero-button,
.donate-button,
.profile-button,
.add-player-btn,
.request-replacement-btn,
.change-name-btn,
.button-link {
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link {
    padding: 0.68rem 1.05rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light);
    background: rgba(108, 92, 231, 0.14);
    border-color: rgba(169, 158, 255, 0.22);
}

.nav-button,
.captain-button,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.25rem;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.9), rgba(139, 110, 255, 0.88));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 14px 28px rgba(108, 92, 231, 0.24);
}

.header__actions--cabinet {
    gap: 0.65rem;
    align-items: center;
}

.cabinet-header-logout {
    display: inline-flex;
    margin: 0;
}

.mobile-drawer__actions .cabinet-header-logout {
    width: 100%;
}

.nav-button--discord,
.nav-button--cabinet,
.nav-button--ghost {
    gap: 0.55rem;
}

.nav-button--cabinet-profile,
.nav-button--logout {
    min-height: 48px;
}

.nav-button--cabinet-profile {
    gap: 0.62rem;
    padding: 0.68rem 1.05rem 0.68rem 0.8rem;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(108, 92, 231, 0.2);
}

.nav-button--cabinet-profile span:last-child {
    line-height: 1;
}

.nav-button__avatar {
    width: 1.9rem;
    height: 1.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 16px rgba(7, 16, 29, 0.22);
}

.nav-button--cabinet-profile .nav-button__avatar {
    width: 1.78rem;
    height: 1.78rem;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 14px rgba(7, 16, 29, 0.18);
}

.nav-button__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.nav-button__avatar--fallback {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.nav-button--discord {
    background: linear-gradient(135deg, #5865f2, var(--primary));
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

.nav-button--ghost {
    background: rgba(255, 255, 255, 0.05);
}

.discord-mark {
    width: 1.7rem;
    height: 1.7rem;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.22));
}

.nav-button:hover,
.captain-button:hover,
.button-link:hover,
.hero-button:hover,
.donate-button:hover,
.profile-button:hover,
.add-player-btn:hover,
.request-replacement-btn:hover,
.change-name-btn:hover {
    transform: translateY(-2px);
}

main {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.page {
    display: grid;
    gap: 1.5rem;
}

.page-hero,
.hero-panel,
.glass-card,
.popup,
.stream-card,
.rules-card,
.team-info,
.captain-profile,
.players-list,
.auth-form,
.match-form,
.bracket-overview,
.bracket-board,
.bracket-side-info,
.bracket-extras,
.finals-card,
.finals-note,
.streams-empty,
.stat-card,
.schedule-card,
.info-card {
    background: linear-gradient(180deg, rgba(24, 32, 59, 0.86), rgba(11, 18, 34, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.page-hero::before,
.hero-panel::before,
.bracket-board::before,
.popup::before,
.rules-card::before,
.stream-card::before,
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.22), transparent 70%);
    pointer-events: none;
}

.page-hero--compact {
    padding-bottom: 1.5rem;
}

.page-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
    align-items: stretch;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge,
.section-kicker,
.round-pill,
.match-tag,
.team-tag,
.rules-tag,
.schedule-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.14);
    border: 1px solid rgba(169, 158, 255, 0.24);
    color: #d8d0ff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page h1,
.hero-title,
.auth-form h1 {
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 0.94;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #f4f6ff 0%, #c9d0ff 45%, #8f7cff 80%, #ff7a83 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-copy p,
.page-hero__lead,
.text-muted,
.popup-subtitle,
.rules-intro,
.streams-intro,
.page-hero__meta,
.bracket-description {
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions,
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-button,
.donate-button,
.add-player-btn,
.change-name-btn,
.request-replacement-btn,
.profile-button {
    padding: 0.9rem 1.25rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    background: rgba(108, 92, 231, 0.18);
    border-color: rgba(169, 158, 255, 0.24);
}

.hero-button--youtube {
    background: rgba(108, 92, 231, 0.18);
    border-color: rgba(169, 158, 255, 0.24);
}

.hero-button--youtube svg {
    width: 1.35rem;
    height: 1.35rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.22));
}

.hero-button--primary,
.donate-button,
.add-player-btn,
.change-name-btn {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    box-shadow: 0 18px 30px rgba(108, 92, 231, 0.18);
}

.hero-meta,
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.stat-card,
.info-card,
.schedule-card {
    padding: 1rem 1.1rem;
    position: relative;
    overflow: hidden;
}

.stat-card__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    line-height: 1;
}

.stat-card__label,
.info-card__label,
.schedule-card__label,
.match-meta,
.match-submeta,
.match-empty,
.footer-copy {
    color: var(--muted);
}

.hero-side {
    display: grid;
    gap: 1rem;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.panel-title,
.section-title,
.round-title,
.popup-title,
.stream-title,
.rules-card h2,
.rules-card h3,
.players-list h2,
.captain-profile h2,
.team-info h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.panel-list,
.popup-list,
.rules-list,
.stream-info,
.rules-content ul,
.rules-content ol {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.panel-list li,
.popup-list li,
.rules-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.hero-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.2rem;
    color: #d8d0ff;
    font-weight: 700;
    text-decoration: none;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.section-card {
    padding: 1.5rem;
}

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

.schedule-card__time {
    margin-top: 0.35rem;
    color: var(--light);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.schedule-card__note {
    margin-top: 0.5rem;
    color: var(--muted);
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 208, 255, 0.22), transparent);
}

.popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 9, 17, 0.78);
    backdrop-filter: blur(10px);
    z-index: 80;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.popup {
    position: relative;
    width: min(760px, 100%);
    max-height: min(84vh, 860px);
    overflow: auto;
    padding: 1.5rem;
}

.popup-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(201, 208, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--light);
    font-size: 1.4rem;
    cursor: pointer;
}

.popup-header {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.popup-list li {
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
}

.popup-list span {
    min-width: 0;
}

.profile-button,
.request-replacement-btn {
    white-space: nowrap;
    padding: 0.65rem 1rem;
    background: rgba(108, 92, 231, 0.18);
    border-color: rgba(169, 158, 255, 0.24);
}

.request-replacement-btn {
    background: rgba(255, 71, 87, 0.18);
    border-color: rgba(255, 130, 140, 0.22);
}

.participants-popup {
    max-width: min(920px, calc(100vw - 32px));
}

.participants-team-list {
    display: grid;
    gap: 0.9rem;
    max-height: min(62vh, 680px);
    overflow: auto;
    padding-right: 0.25rem;
}

.participants-team {
    display: grid;
    gap: 0.7rem;
    padding: 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(196, 203, 255, 0.1);
    background:
        radial-gradient(circle at 100% 0%, rgba(108, 92, 231, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(20, 30, 62, 0.78), rgba(10, 17, 36, 0.92));
}

.participants-team__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.participants-team__head h3 {
    margin: 0;
    color: var(--light);
    font-size: 1.18rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.participants-team__role,
.participants-team__no-profile,
.participants-team__empty {
    color: rgba(213, 222, 255, 0.62);
    font-size: 0.9rem;
    font-weight: 700;
}

.participants-team__players {
    display: grid;
    gap: 0.5rem;
}

.participants-team__player {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 15px;
    border: 1px solid rgba(196, 203, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.participants-team__player-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.participants-team__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
    font-size: 1.08rem;
    font-weight: 700;
}

.participants-team__role {
    flex: 0 0 auto;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.16);
    border: 1px solid rgba(169, 158, 255, 0.16);
}

.participants-team__profile {
    justify-self: end;
}

.participants-team__empty {
    margin: 0;
    padding: 0.65rem 0.75rem;
}

.participants-popup__empty {
    display: grid;
    gap: 0.45rem;
    align-content: center;
    justify-items: start;
    min-height: 220px;
    padding: 1.4rem 1.5rem;
    border-radius: 24px;
    border: 1px dashed rgba(217, 173, 88, 0.16);
    background: linear-gradient(180deg, rgba(24, 19, 14, 0.9), rgba(11, 9, 7, 0.96));
    color: var(--dpl-text);
}

.participants-popup__empty strong {
    color: var(--dpl-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.32rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.participants-popup__empty span {
    color: var(--dpl-muted-strong);
    line-height: 1.6;
}

.page-section {
    display: grid;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.section-header__copy {
    display: grid;
    gap: 0.35rem;
}

.section-header__copy p {
    color: var(--muted);
}

.bracket-overview {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.25rem;
}

.bracket-overview__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.bracket-board {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

.board-scroll {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.board-scroll::-webkit-scrollbar {
    height: 10px;
}

.board-scroll::-webkit-scrollbar-thumb {
    background: rgba(169, 158, 255, 0.18);
    border-radius: 999px;
}

.tournament-map {
    min-width: 1420px;
    display: grid;
    grid-template-columns: repeat(4, 270px) 300px;
    gap: 1.4rem 1.6rem;
    align-items: start;
    position: relative;
}

.tournament-map::before,
.tournament-map::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 208, 255, 0.18), transparent);
}

.tournament-map::before {
    top: calc(50% - 16px);
}

.tournament-map::after {
    top: calc(50% + 16px);
    opacity: 0.38;
}

.round-column {
    position: relative;
    display: grid;
    gap: 1rem;
}

.round-column::after {
    content: '';
    position: absolute;
    top: 62px;
    bottom: 26px;
    right: -0.85rem;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(190, 197, 255, 0.18), transparent);
}

.round-column--upper {
    grid-row: 1;
}

.round-column--lower {
    grid-row: 2;
}

.round-column--upper[data-depth="1"] { grid-column: 1; }
.round-column--upper[data-depth="2"] { grid-column: 2; padding-top: 88px; }
.round-column--upper[data-depth="3"] { grid-column: 3; padding-top: 210px; }
.round-column--lower[data-depth="1"] { grid-column: 1; padding-top: 16px; }
.round-column--lower[data-depth="2"] { grid-column: 2; padding-top: 54px; }
.round-column--lower[data-depth="3"] { grid-column: 3; padding-top: 122px; }
.round-column--lower[data-depth="4"] { grid-column: 4; padding-top: 178px; }

.round-column--upper[data-depth="3"]::after,
.round-column--lower[data-depth="4"]::after {
    display: none;
}

.round-header {
    display: grid;
    gap: 0.25rem;
    position: sticky;
    top: 0;
    z-index: 1;
}

.round-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 54px;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(196, 203, 255, 0.12);
    background: rgba(6, 13, 27, 0.44);
}

.round-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.round-column .match-stack {
    display: grid;
    gap: 1.2rem;
}

.bracket-match {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(24, 32, 59, 0.92), rgba(9, 16, 30, 0.96));
    border: 1px solid rgba(196, 203, 255, 0.12);
    box-shadow: 0 18px 30px rgba(1, 8, 22, 0.22);
}

.bracket-match::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.05rem;
    width: 1.05rem;
    border-top: 1px solid rgba(190, 197, 255, 0.22);
}

.round-column--upper[data-depth="3"] .bracket-match::after,
.round-column--lower[data-depth="4"] .bracket-match::after,
.bracket-finals .bracket-match::after,
.bracket-match.is-placeholder::after {
    display: none;
}

.bracket-match.is-placeholder {
    opacity: 0.74;
    border-style: dashed;
}

.bracket-match.is-winner {
    border-color: rgba(255, 136, 124, 0.26);
    box-shadow: 0 16px 28px rgba(255, 71, 87, 0.12);
}

.match-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-id {
    color: #d6ddff;
    font-weight: 700;
}

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

.match-teams {
    display: grid;
    gap: 0.65rem;
}

.match-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.match-team.is-winner {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.26), rgba(255, 71, 87, 0.12));
    border-color: rgba(163, 150, 255, 0.22);
}

.match-team__name {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.match-team__name span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-team__score {
    min-width: 36px;
    height: 36px;
    padding: 0 0.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
}

.replacement-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 71, 87, 0.16);
    color: #ffd6da;
    border: 1px solid rgba(255, 122, 131, 0.26);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: help;
}

.replacement-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 280px;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: rgba(7, 16, 29, 0.96);
    border: 1px solid rgba(196, 203, 255, 0.14);
    color: var(--light);
    font-size: 0.86rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: var(--shadow-soft);
    z-index: 5;
}

.replacement-chip:hover .replacement-tooltip {
    opacity: 1;
    visibility: visible;
}

.bracket-finals {
    grid-column: 5;
    grid-row: 1 / span 2;
    align-self: center;
    display: grid;
    gap: 1rem;
}

.finals-card,
.finals-note,
.bracket-side-info,
.bracket-extras {
    padding: 1.4rem;
}

.finals-card {
    display: grid;
    gap: 1rem;
}

.finals-card__header {
    display: grid;
    gap: 0.4rem;
}

.finals-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.finals-note {
    display: grid;
    gap: 0.75rem;
}

.legend-list,
.side-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.legend-list li,
.side-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(196, 203, 255, 0.18);
}

.legend-dot--winner {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.7), rgba(255, 71, 87, 0.55));
}

.legend-dot--replacement {
    background: rgba(255, 71, 87, 0.22);
}

.bracket-side-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 1rem;
}

.bracket-extras {
    display: grid;
    gap: 0.9rem;
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
}

.extra-stage {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
    display: grid;
    gap: 0.75rem;
}

.extra-stage h3 {
    font-size: 1.05rem;
    text-transform: uppercase;
}

.rules-layout,
.streams-layout {
    display: grid;
    gap: 1rem;
}

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

.rules-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.rules-card h2,
.rules-card h3 {
    margin: 0;
}

.rules-content {
    display: grid;
    gap: 0.9rem;
    color: #d8ddf6;
}

.rules-content ul,
.rules-content ol {
    gap: 0.55rem;
    padding-left: 1.2rem;
    list-style: disc;
}

.rules-content ol {
    list-style: decimal;
}

.streams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.stream-card {
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
    display: grid;
    gap: 1rem;
}

.stream-iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
}

.stream-title {
    margin: 0;
}

.stream-status {
    color: #d8d0ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.streams-empty {
    padding: 1.4rem;
    color: var(--muted);
    text-align: center;
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.auth-form {
    width: min(560px, 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    display: grid;
    gap: 1.2rem;
}

.auth-form form,
.match-form,
form {
    display: grid;
    gap: 0.9rem;
}

label {
    color: #d8ddf6;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(196, 203, 255, 0.12);
    border-radius: 16px;
    background: rgba(6, 13, 27, 0.6);
    color: var(--light);
    padding: 0.9rem 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(169, 158, 255, 0.36);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}

.auth-form button[type="submit"],
form button[type="submit"],
.match-form button,
.create-btn {
    justify-self: start;
    border: none;
    border-radius: 999px;
    padding: 0.88rem 1.35rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(108, 92, 231, 0.18);
}

.error-message {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 71, 87, 0.14);
    border: 1px solid rgba(255, 122, 131, 0.18);
    color: #ffd3d7;
    font-weight: 700;
}

.team-info,
.captain-profile,
.players-list {
    padding: 1.5rem;
}

.team-info,
.profile-info,
.players-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.players-list ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.players-list li {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.matches-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(24, 32, 59, 0.86), rgba(11, 18, 34, 0.9));
    border: 1px solid rgba(196, 203, 255, 0.12);
}

.matches-table th,
.matches-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(196, 203, 255, 0.08);
}

.matches-table th {
    color: #d6ddff;
    background: rgba(6, 13, 27, 0.5);
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edit-btn,
.delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
}

.edit-btn {
    background: rgba(108, 92, 231, 0.18);
    border: 1px solid rgba(169, 158, 255, 0.24);
}

.delete-btn {
    background: rgba(255, 71, 87, 0.18);
    border: 1px solid rgba(255, 122, 131, 0.2);
}

footer {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto 1.5rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(196, 203, 255, 0.08);
    border-radius: 22px;
    background: rgba(6, 13, 27, 0.56);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copy {
    display: grid;
    gap: 0.15rem;
}

.footer-copy strong {
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--light);
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-left: auto;
}

.footer-partner {
    display: block;
    line-height: 0;
    max-width: min(200px, 150%);
}

.footer-partner img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.footer-partner:hover img {
    transform: translateY(-2px);
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
}

@media (max-width: 1180px) {
    .page-hero__grid,
    .bracket-overview,
    .section-grid,
    .rules-grid,
    .bracket-side-layout,
    .hero-meta,
    .hero-stats,
    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .header__inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header__actions {
        width: 100%;
        justify-content: center;
    }

    .team-info,
    .profile-info,
    .players-list li,
    .section-header,
    .footer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-right {
        margin-left: 0;
        justify-content: flex-start;
    }

    .footer-partner img {
        max-width: 240px;
    }
}

@media (max-width: 820px) {
    .page-hero,
    .hero-panel,
    .bracket-board,
    .popup,
    .rules-card,
    .stream-card,
    .team-info,
    .captain-profile,
    .players-list,
    .auth-form,
    .match-form,
    .bracket-overview,
    .bracket-side-info,
    .bracket-extras,
    .finals-card,
    .finals-note {
        border-radius: 22px;
    }

    .page h1,
    .hero-title,
    .auth-form h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    main,
    .header__inner,
    footer {
        width: min(var(--container), calc(100% - 20px));
    }

    .header__nav {
        width: 100%;
    }

    .nav-link,
    .nav-button,
    .captain-button {
        width: 100%;
        justify-content: center;
    }

    .popup-overlay {
        padding: 12px;
    }

    .popup-list li {
        flex-direction: column;
        align-items: stretch;
    }

    .tournament-map {
        min-width: 1160px;
        grid-template-columns: repeat(4, 240px) 260px;
    }

    .round-column--upper[data-depth="2"] { padding-top: 70px; }
    .round-column--upper[data-depth="3"] { padding-top: 182px; }
    .round-column--lower[data-depth="2"] { padding-top: 42px; }
    .round-column--lower[data-depth="3"] { padding-top: 108px; }
    .round-column--lower[data-depth="4"] { padding-top: 156px; }
}

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

    .hero-actions,
    .hero-buttons,
    .footer-links {
        flex-direction: column;
    }

    .hero-button,
    .donate-button,
    .button-link,
    .nav-button,
    .captain-button {
        width: 100%;
        justify-content: center;
    }

    .participants-popup {
        max-width: 100%;
    }

    .participants-team-list {
        max-height: 68vh;
        padding-right: 0;
    }

    .participants-team__head,
    .participants-team__player,
    .participants-team__player-main {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .participants-team__profile,
    .participants-team__no-profile {
        justify-self: stretch;
        text-align: center;
    }

    .match-team {
        grid-template-columns: minmax(0, 1fr) 34px;
        padding: 0.68rem 0.75rem;
    }

    .match-team__name {
        font-size: 0.98rem;
    }

    .match-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

.hero-clean {
    padding: 1.7rem;
}

.page-hero__grid--compact {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1rem;
}





.hero-panel--compact {
    display: grid;
    gap: 1rem;
}

.page-hero__grid--compact .hero-panel--compact {
    align-self: start;
    height: fit-content;
}


.compact-panel__head {
    display: grid;
    gap: 0.35rem;
}

.compact-schedule {
    display: grid;
    gap: 0.7rem;
}

.compact-schedule__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.compact-schedule__item strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--light);
}

.compact-schedule__tag {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
}

.donate-button--full {
    width: 100%;
    justify-content: center;
}

.compact-panel__head .panel-title {
    margin: 0;
}

.home-highlights {
    display: grid;
    gap: 1.15rem;
    padding: 1.45rem;
}

.home-highlights__intro {
    display: grid;
    gap: 0.45rem;
}

.home-highlights__intro .panel-title {
    margin: 0;
}


.section-title-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    max-width: 100%;
}

.section-help {
    position: relative;
    width: 1.85rem;
    height: 1.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(196, 203, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--light);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.section-help:hover,
.section-help:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(130, 148, 255, 0.42);
    background: rgba(91, 107, 214, 0.16);
    outline: none;
}

.section-help::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 0.7rem);
    top: 50%;
    transform: translateY(-50%);
    width: min(320px, 72vw);
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(196, 203, 255, 0.16);
    background: rgba(11, 18, 40, 0.96);
    box-shadow: 0 18px 38px rgba(5, 9, 24, 0.28);
    color: rgba(236, 242, 255, 0.92);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
    text-align: left;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 20;
}

.section-help::before {
    content: "";
    position: absolute;
    left: calc(100% + 0.34rem);
    top: 50%;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 1px solid rgba(196, 203, 255, 0.16);
    border-right: 1px solid rgba(196, 203, 255, 0.16);
    background: rgba(11, 18, 40, 0.96);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 19;
}

.section-help:hover::after,
.section-help:hover::before,
.section-help:focus-visible::after,
.section-help:focus-visible::before {
    opacity: 1;
    visibility: visible;
}


.home-highlights__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-highlight-card {
    padding: 1.15rem 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(196, 203, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
    display: grid;
    gap: 0.55rem;
}

.home-highlight-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.home-highlight-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

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

.shortcut-card {
    padding: 1.4rem;
    text-decoration: none;
    display: grid;
    gap: 0.45rem;
}

.shortcut-card--wide {
    grid-column: span 1;
}

.footer-inner--compact {
    min-height: 20px;
}

.page-hero--simple {
    padding: 1.55rem 1.7rem;
}

.rules-grid--clean .rules-card,
.stream-card,
.shortcut-card,
.hero-panel--compact {
    border-radius: 20px;
}

.page--clean {
    gap: 1rem;
}

.bracket-stats-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.4rem;
}

.bracket-pill {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 203, 255, 0.12);
    color: var(--light);
    font-weight: 700;
}

.bracket-board--full {
    padding: 1.2rem;
}

.board-scroll--bracket {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.4rem;
}

.board-scroll--bracket::-webkit-scrollbar {
    height: 10px;
}

.board-scroll--bracket::-webkit-scrollbar-thumb {
    background: rgba(169, 158, 255, 0.18);
    border-radius: 999px;
}

.bracket-shell {
    min-width: 1368px;
    display: grid;
    gap: 1rem;
}

.bracket-head {
    display: grid;
    grid-template-columns: repeat(4, 240px) 280px;
    column-gap: 32px;
}

.bracket-head__item {
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    background: rgba(6, 13, 27, 0.52);
    border: 1px solid rgba(196, 203, 255, 0.12);
    color: #d6ddff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.86rem;
    font-weight: 700;
}

.bracket-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 240px) 280px;
    grid-template-rows: repeat(54, 20px);
    column-gap: 32px;
    min-height: 1080px;
    padding: 0.2rem 0;
}

.bracket-grid::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 694px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 203, 255, 0.18), transparent);
}

.bracket-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.bracket-path {
    fill: none;
    stroke: rgba(189, 198, 255, 0.22);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bracket-path--accent {
    stroke: rgba(255, 71, 87, 0.16);
}

.lane-label {
    align-self: center;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.bracket-match--grid {
    position: relative;
    z-index: 1;
    align-self: stretch;
    min-height: 80px;
    padding: 0.78rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(20, 28, 50, 0.94), rgba(9, 16, 30, 0.98));
    box-shadow: 0 12px 24px rgba(1, 8, 22, 0.18);
}

.bracket-match--grid.is-placeholder {
    opacity: 0.62;
}

.bracket-match--grid.is-winner {
    border-color: rgba(255, 136, 124, 0.26);
    box-shadow: 0 14px 28px rgba(255, 71, 87, 0.1);
}

.bracket-match--grid .match-meta {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
}

.bracket-match--grid .match-id {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.bracket-match--grid .match-time {
    font-size: 0.76rem;
}

.bracket-match--grid .match-teams {
    gap: 0.45rem;
}

.bracket-match--grid .match-team {
    padding: 0.6rem 0.72rem;
    border-radius: 14px;
}

.match-team__main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.bracket-match--grid .match-team__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.98rem;
    font-weight: 700;
}

.bracket-match--grid .match-team__score {
    min-width: 32px;
    height: 32px;
    font-size: 0.95rem;
}

.replacement-badge {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 71, 87, 0.16);
    color: #ffd6da;
    border: 1px solid rgba(255, 122, 131, 0.26);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    cursor: default;
}

.replacement-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 260px;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(7, 16, 29, 0.98);
    border: 1px solid rgba(196, 203, 255, 0.14);
    color: var(--light);
    display: grid;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: var(--shadow-soft);
    z-index: 6;
}

.replacement-badge:hover .replacement-tooltip,
.replacement-badge:focus-visible .replacement-tooltip {
    opacity: 1;
    visibility: visible;
}

.bracket-extras--compact {
    padding: 1.2rem;
}

.extra-stage {
    gap: 0.6rem;
}

.extra-stage__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.extra-stage__row strong {
    color: var(--light);
}

@media (max-width: 1180px) {
    .page-hero__grid--compact,
    .shortcut-grid {
        grid-template-columns: 1fr;
    }

    .shortcut-card--wide {
        grid-column: span 1;
    }
}

@media (max-width: 820px) {
    .compact-schedule__item {
        padding: 0.8rem 0.9rem;
    }

    .bracket-board--full {
        padding: 0.85rem;
    }

    .bracket-shell {
        min-width: 1220px;
    }

    .bracket-head {
        grid-template-columns: repeat(4, 214px) 248px;
        column-gap: 20px;
    }

    .bracket-head__item {
        min-height: 40px;
        padding: 0.65rem 0.8rem;
        font-size: 0.78rem;
    }

    .bracket-grid {
        grid-template-columns: repeat(4, 214px) 248px;
        column-gap: 20px;
    }
}

@media (max-width: 560px) {
    .compact-schedule__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .bracket-stats-line {
        flex-direction: column;
        align-items: stretch;
    }

    .bracket-match--grid .match-team {
        grid-template-columns: minmax(0, 1fr) 32px;
        padding: 0.55rem 0.65rem;
    }

    .bracket-match--grid .match-team__main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .replacement-tooltip {
        left: 0;
        transform: none;
        min-width: 200px;
    }
}



.bracket-canvas {
    position: relative;
    min-width: 1220px;
    padding: 0.25rem;
}

.bracket-canvas__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(860px, 1fr) 260px;
    grid-template-areas:
        "upper grand"
        "lower grand";
    gap: 28px 34px;
    align-items: start;
}

.bracket-canvas__content--single {
    grid-template-columns: 1fr;
    grid-template-areas:
        "upper"
        "lower";
}

.bracket-group {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.bracket-group--upper {
    grid-area: upper;
}

.bracket-group--lower {
    grid-area: lower;
}

.bracket-group--grand {
    grid-area: grand;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

.bracket-group__header {
    display: grid;
    gap: 0.3rem;
}

.stage-track {
    display: grid;
    grid-template-columns: repeat(var(--stage-count), minmax(220px, 1fr));
    gap: 28px;
    align-items: stretch;
}

.stage-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-width: 0;
}

.stage-column__head {
    min-height: 54px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(7, 16, 29, 0.54);
    border: 1px solid rgba(196, 203, 255, 0.12);
    color: #dce2ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    font-weight: 700;
}

.stage-column__body {
    min-height: var(--track-height, 420px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.stage-column__body--grand {
    min-height: calc(var(--track-height, 420px) * 2 + 28px);
    justify-content: center;
}

.match-card {
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 0.9rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(18, 27, 49, 0.94), rgba(8, 15, 28, 0.98));
    border: 1px solid rgba(196, 203, 255, 0.12);
    box-shadow: 0 18px 34px rgba(1, 8, 22, 0.2);
}

.match-card.is-placeholder {
    opacity: 0.7;
    border-style: dashed;
}

.match-card.is-decided {
    border-color: rgba(255, 136, 124, 0.24);
    box-shadow: 0 18px 34px rgba(255, 71, 87, 0.12);
}

.match-card--grand {
    border-color: rgba(255, 122, 131, 0.22);
}

.match-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-card__teams {
    display: grid;
    gap: 0.55rem;
}

.match-card__team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.72rem 0.78rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.match-card__team.is-winner {
    background: linear-gradient(90deg, rgba(108, 92, 231, 0.22), rgba(255, 71, 87, 0.1));
    border-color: rgba(169, 158, 255, 0.22);
}

.match-card__team-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.match-card__team-name {
    min-width: 0;
    display: -webkit-box;
    overflow: hidden;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.match-card__score {
    min-width: 34px;
    height: 34px;
    padding: 0 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--light);
    font-weight: 700;
    font-size: 0.96rem;
}

.replacement-inline {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 71, 87, 0.16);
    color: #ffd6da;
    border: 1px solid rgba(255, 122, 131, 0.26);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    cursor: default;
}

.replacement-inline__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 260px;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(7, 16, 29, 0.98);
    border: 1px solid rgba(196, 203, 255, 0.14);
    color: var(--light);
    display: grid;
    gap: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: var(--shadow-soft);
    z-index: 8;
}

.replacement-inline:hover .replacement-inline__tooltip,
.replacement-inline:focus-visible .replacement-inline__tooltip {
    opacity: 1;
    visibility: visible;
}

.dashboard-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dashboard-card,
.admin-section {
    padding: 1.45rem;
    display: grid;
    gap: 1rem;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.dashboard-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.dashboard-list__row--stack {
    align-items: flex-start;
}

.dashboard-list__copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.dashboard-list__copy strong {
    color: var(--light);
}

.dashboard-list__copy span {
    word-break: break-word;
}

.team-admin-list {
    display: grid;
    gap: 0.9rem;
}

.team-admin-card {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
    display: grid;
    gap: 0.9rem;
}

.team-admin-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.team-admin-card__head h3 {
    margin: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.team-admin-card__head span {
    color: var(--muted);
}

.roster-list {
    display: grid;
    gap: 0.6rem;
}

.roster-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
    background: rgba(7, 16, 29, 0.52);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.inline-form {
    display: grid;
    gap: 0.85rem;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(196, 203, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.status-pill--success {
    color: #d7ffe9;
    background: rgba(46, 204, 113, 0.14);
    border-color: rgba(46, 204, 113, 0.22);
}

@media (max-width: 1180px) {
    .dashboard-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .bracket-canvas {
        min-width: 1080px;
    }

    .bracket-canvas__content {
        grid-template-columns: minmax(780px, 1fr) 240px;
    }
}

@media (max-width: 820px) {
    .bracket-canvas {
        min-width: 980px;
    }

    .bracket-canvas__content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "upper"
            "lower"
            "grand";
    }

    .bracket-group--grand {
        align-self: start;
    }

    .stage-track {
        grid-template-columns: repeat(var(--stage-count), minmax(200px, 1fr));
        gap: 18px;
    }

    .stage-column__head {
        min-height: 48px;
        padding: 0.75rem 0.85rem;
        font-size: 0.8rem;
    }

    .dashboard-actions,
    .team-admin-card__head,
    .roster-row {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .match-card__team {
        grid-template-columns: minmax(0, 1fr) 32px;
        padding: 0.65rem 0.7rem;
    }

    .match-card__team-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .replacement-inline__tooltip {
        left: 0;
        transform: none;
        min-width: 190px;
    }
}


.bracket-board--clean {
    padding: 1.2rem;
}

.bracket-canvas--adaptive {
    position: relative;
    min-width: max(1180px, var(--bracket-width, 1180px));
    padding: 0.25rem 0.25rem 1rem;
}

.bracket-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) 320px;
    grid-template-areas:
        "upper grand"
        "lower grand";
    gap: 48px 40px;
    align-items: start;
}

.bracket-lane {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.bracket-lane--upper {
    grid-area: upper;
}

.bracket-lane--lower {
    grid-area: lower;
}

.bracket-grand {
    grid-area: grand;
    display: grid;
    gap: 1rem;
    width: 320px;
}

.bracket-lane__title {
    margin: 0;
    color: var(--light);
    font-size: clamp(1.8rem, 2.8vw, 2.65rem);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stage-track--absolute {
    display: grid;
    grid-template-columns: repeat(var(--stage-count), 296px);
    gap: 36px;
    align-items: start;
}

.stage-column {
    display: grid;
    gap: 0.95rem;
    min-width: 0;
}

.stage-column--grand {
    width: 100%;
}

.stage-column__head {
    min-height: 66px;
    padding: 1rem 1.15rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(6, 14, 28, 0.88), rgba(7, 16, 29, 0.72));
    border: 1px solid rgba(196, 203, 255, 0.12);
    color: #e8edff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.stage-column__body--absolute {
    position: relative;
    min-height: 320px;
}

.stage-column__body--absolute .match-card {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0;
}

.match-card {
    padding: 0.95rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(12, 23, 45, 0.96), rgba(6, 13, 26, 0.98));
    border: 1px solid rgba(196, 203, 255, 0.1);
    box-shadow: 0 20px 38px rgba(1, 8, 22, 0.22);
}

.match-card.is-placeholder {
    opacity: 1;
    border-style: dashed;
    box-shadow: none;
}

.match-card.is-decided {
    border-color: rgba(124, 139, 255, 0.28);
    box-shadow: 0 20px 38px rgba(108, 92, 231, 0.14);
}

.match-card--grand {
    border-color: rgba(255, 122, 131, 0.24);
    box-shadow: 0 20px 42px rgba(255, 71, 87, 0.14);
}

.match-card__meta {
    margin-bottom: 0.8rem;
    color: #9ca7cf;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-card__teams {
    gap: 0.6rem;
}

.match-card__team {
    min-height: 48px;
    padding: 0.78rem 0.84rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(14, 24, 45, 0.96), rgba(10, 18, 34, 0.98));
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.match-card__team.is-winner {
    background: linear-gradient(90deg, rgba(81, 76, 191, 0.72), rgba(48, 73, 152, 0.88));
    border-color: rgba(168, 178, 255, 0.3);
}

.match-card__team-name {
    font-size: 1rem;
    line-height: 1.15;
}

.match-card__score {
    min-width: 38px;
    height: 38px;
    font-size: 0.98rem;
}

.bracket-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.bracket-path {
    fill: none;
    stroke: rgba(147, 159, 225, 0.48);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(108, 92, 231, 0.16));
}

.bracket-path--accent {
    stroke: rgba(255, 99, 124, 0.54);
    filter: drop-shadow(0 0 6px rgba(255, 71, 87, 0.18));
}

.bracket-group__header .section-kicker,
.shortcut-card .section-kicker {
    display: none;
}

.shortcut-card .panel-title {
    margin-top: 0;
}

.page-hero--simple .hero-badge:empty {
    display: none;
}

.simple-stack {
    display: grid;
    gap: 1rem;
}

.streamer-list {
    display: grid;
    gap: 0.75rem;
}

.streamer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.streamer-meta {
    display: grid;
    gap: 0.2rem;
}

.streamer-meta strong {
    color: var(--light);
    font-size: 1rem;
}

.streamer-meta span {
    color: var(--muted);
    font-size: 0.92rem;
}

.form-grid-compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
}

.form-grid-compact button {
    min-width: 170px;
}

@media (max-width: 1080px) {
    .form-grid-compact,
    .streamer-row,
    .dashboard-list__row,
    .team-admin-card__head,
    .roster-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 920px) {
    .bracket-board--clean {
        padding: 0.9rem;
    }

    .bracket-canvas--adaptive {
        min-width: max(1040px, var(--bracket-width, 1040px));
    }

    .bracket-layout {
        grid-template-columns: minmax(max-content, 1fr) 300px;
        gap: 42px 30px;
    }

    .stage-track--absolute {
        grid-template-columns: repeat(var(--stage-count), 274px);
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .bracket-canvas--adaptive {
        min-width: max(980px, var(--bracket-width, 980px));
    }

    .stage-track--absolute {
        grid-template-columns: repeat(var(--stage-count), 258px);
        gap: 22px;
    }

    .bracket-layout {
        grid-template-columns: minmax(max-content, 1fr) 280px;
        gap: 36px 24px;
    }

    .bracket-lane__title {
        font-size: 1.55rem;
    }

    .stage-column__head {
        min-height: 58px;
        padding: 0.85rem 0.95rem;
    }

    .match-card {
        padding: 0.82rem;
    }
}


.bracket-layout--single {
    grid-template-columns: minmax(max-content, 1fr);
    grid-template-areas: "upper";
}

.bracket-layout--single .bracket-lane--upper {
    grid-area: upper;
}

.bracket-canvas--adaptive {
    padding-right: 1rem;
}

.stage-column__body--absolute {
    overflow: visible;
}

.stage-column__body--absolute .match-card {
    z-index: 2;
}

.match-card,
.match-card__team {
    isolation: isolate;
}

.match-card {
    background: linear-gradient(180deg, rgba(9, 18, 38, 1), rgba(6, 13, 26, 1));
}

.match-card.is-placeholder {
    background: linear-gradient(180deg, rgba(10, 18, 35, 0.98), rgba(8, 14, 27, 0.98));
    border-style: dashed;
}

.match-card__team {
    background: linear-gradient(180deg, rgba(18, 29, 53, 1), rgba(12, 21, 40, 1));
}

.match-card__team.is-placeholder {
    background: linear-gradient(180deg, rgba(14, 22, 40, 0.98), rgba(10, 18, 33, 0.98));
}

.bracket-svg {
    z-index: 1;
}

.bracket-layout,
.bracket-lane,
.bracket-grand,
.stage-column,
.stage-column__body--absolute {
    position: relative;
    z-index: 2;
}

.bracket-path {
    stroke: rgba(149, 162, 230, 0.62);
    stroke-width: 3;
    filter: none;
}

.bracket-path--accent {
    stroke: rgba(255, 110, 138, 0.65);
}

@media (max-width: 920px) {
    .bracket-layout--single {
        grid-template-columns: minmax(max-content, 1fr);
    }
}


.page-hero--bracket .page-hero__lead {
    max-width: 760px;
}

.bracket-shell {
    padding: 1.35rem;
    overflow: hidden;
}

.bracket-shell__top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bracket-shell__top h2 {
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bracket-shell__top p,
.bracket-shell__hint {
    color: var(--muted);
}

.bracket-shell__hint {
    white-space: nowrap;
    font-weight: 600;
}

.bracket-shell__detail {
    border: 1px solid rgba(179, 189, 255, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(13, 21, 42, 0.95), rgba(10, 17, 34, 0.88)),
        radial-gradient(circle at top left, rgba(108, 92, 231, 0.18), transparent 42%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.bracket-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.bracket-detail__stage {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.bracket-detail__time {
    color: var(--muted);
    font-weight: 600;
}

.bracket-detail__teams {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.bracket-detail__team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(175, 188, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.bracket-detail__team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.12rem;
    font-weight: 700;
}

.bracket-detail__team strong {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.15rem;
}

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

.bracket-shell__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
}

.bracket-shell__scroller::-webkit-scrollbar {
    height: 10px;
}

.bracket-shell__scroller::-webkit-scrollbar-thumb {
    background: rgba(144, 155, 223, 0.32);
    border-radius: 999px;
}

.bracket-shell__board {
    min-width: fit-content;
    padding: 0.5rem 0.3rem 0.8rem;
}

.bracket-shell__board .jQBracket {
    font-family: 'Rajdhani', sans-serif;
    color: var(--light);
}

.bracket-shell__board .jQBracket .tools {
    display: none !important;
}

.bracket-shell__board .jQBracket > .bracket,
.bracket-shell__board .jQBracket > .loserBracket,
.bracket-shell__board .jQBracket > .finals {
    float: left;
    clear: none;
    margin-right: 24px;
}

.bracket-shell__board .jQBracket > .finals {
    margin-right: 0;
}

.bracket-shell__board .jQBracket .round {
    margin-right: 0 !important;
}

.bracket-shell__board .jQBracket .match {
    filter: drop-shadow(0 14px 28px rgba(3, 10, 23, 0.22));
}

.bracket-shell__board .jQBracket .teamContainer {
    z-index: 2;
}

.bracket-shell__board .jQBracket .team {
    float: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    background: linear-gradient(135deg, rgba(16, 25, 50, 0.96), rgba(12, 20, 40, 0.92));
    color: rgba(238, 242, 255, 0.86);
    border: 1px solid rgba(174, 186, 255, 0.12);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.bracket-shell__board .jQBracket .team:first-child {
    border-bottom: 1px solid rgba(174, 186, 255, 0.12);
}

.bracket-shell__board .jQBracket .team.win {
    background: linear-gradient(135deg, rgba(55, 61, 132, 0.95), rgba(33, 41, 89, 0.94));
    color: #fff;
}

.bracket-shell__board .jQBracket .team.lose {
    background: linear-gradient(135deg, rgba(13, 20, 38, 0.95), rgba(10, 17, 34, 0.94));
    color: rgba(238, 242, 255, 0.68);
}

.bracket-shell__board .jQBracket .team.na,
.bracket-shell__board .jQBracket .team.np,
.bracket-shell__board .jQBracket .team.bye {
    background: linear-gradient(135deg, rgba(12, 18, 34, 0.88), rgba(8, 13, 25, 0.84));
    color: rgba(151, 162, 201, 0.92);
    border-style: dashed;
}

.bracket-shell__board .jQBracket .team div.label {
    position: static;
    height: auto;
    overflow: visible;
    padding: 0 1rem;
    width: calc(100% - 64px);
}

.bracket-shell__board .jQBracket .team div.score {
    float: none;
    min-width: 52px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.bracket-shell__board .jQBracket .team.lose div.score {
    color: rgba(238, 242, 255, 0.72);
}

.bracket-shell__board .jQBracket .connector,
.bracket-shell__board .jQBracket .connector div.connector {
    border-color: rgba(154, 167, 225, 0.52);
}

.bracket-shell__board .jQBracket .connector.highlightWinner,
.bracket-shell__board .jQBracket .connector div.connector.highlightWinner,
.bracket-shell__board .jQBracket .team.highlightWinner {
    border-color: rgba(255, 199, 69, 0.92);
}

.bracket-shell__board .jQBracket .team.highlightWinner {
    background: linear-gradient(135deg, rgba(76, 64, 18, 0.94), rgba(42, 34, 10, 0.96));
    color: #fff4c3;
}

.bracket-shell__board .jQBracket .team.highlightLoser,
.bracket-shell__board .jQBracket .team.highlight {
    color: #fff;
}

.bracket-team-render {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.bracket-team-render__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.18rem;
    font-weight: 700;
}

.bracket-team-render__badge {
    flex: 0 0 auto;
    padding: 0.16rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 71, 87, 0.14);
    border: 1px solid rgba(255, 71, 87, 0.24);
    color: #ffb6bf;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .bracket-shell {
        padding: 1rem;
    }

    .bracket-shell__top,
    .bracket-detail__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .bracket-detail__teams {
        grid-template-columns: 1fr;
    }

    .bracket-shell__board .jQBracket .team {
        min-height: 54px;
        margin-bottom: 10px;
    }

    .bracket-shell__board .jQBracket .team div.label {
        padding: 0 0.85rem;
        width: calc(100% - 58px);
    }

    .bracket-shell__board .jQBracket .team div.score {
        min-width: 46px;
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .bracket-team-render__name {
        font-size: 1.02rem;
    }
}



.brand__mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background-image: url("../assets/lina-logo.webp");
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 180, 110, 0.32);
    box-shadow:
        0 10px 28px rgba(255, 109, 44, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font-size: 0;
    line-height: 0;
    color: transparent;
    overflow: hidden;
    position: relative;
}

.brand__mark::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    pointer-events: none;
}

.brand__title {
    letter-spacing: 0.04em;
}


.konami-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity .28s ease;
}

.konami-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(18, 26, 54, 0.12), rgba(4, 8, 18, 0.38));
}

.konami-overlay.is-active {
    opacity: 1;
}

.konami-scene {
    position: relative;
    z-index: 1;
    width: min(540px, calc(100vw - 48px));
    display: grid;
    justify-items: center;
    gap: 12px;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
}

.konami-overlay.is-active .konami-scene {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.konami-scene__image {
    display: block;
    width: min(420px, 100%);
    max-height: 68vh;
    object-fit: contain;
    filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.45));
}

.konami-scene__text {
    max-width: 680px;
    text-align: center;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #f6f1ff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.tipsy-mode {
    animation: tipsy-wobble 3.8s ease-in-out infinite;
    transform-origin: 50% 8%;
}

.tipsy-mode .brand__mark {
    animation: logo-cheers 0.95s ease-in-out infinite;
}

@keyframes tipsy-wobble {
    0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); filter: hue-rotate(0deg); }
    12% { transform: rotate(0.6deg) translate3d(4px, -1px, 0); filter: hue-rotate(5deg); }
    24% { transform: rotate(-0.5deg) translate3d(-5px, 2px, 0); filter: hue-rotate(-4deg); }
    38% { transform: rotate(0.42deg) translate3d(3px, 1px, 0); filter: hue-rotate(3deg); }
    52% { transform: rotate(-0.72deg) translate3d(-6px, 0, 0); filter: hue-rotate(-6deg); }
    66% { transform: rotate(0.55deg) translate3d(5px, -2px, 0); filter: hue-rotate(4deg); }
    82% { transform: rotate(-0.36deg) translate3d(-3px, 1px, 0); filter: hue-rotate(-3deg); }
}

@keyframes logo-cheers {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-4deg) translateY(-2px); }
    50% { transform: rotate(3deg) translateY(0); }
    75% { transform: rotate(-2deg) translateY(-2px); }
}

@media (max-width: 820px) {
    .brand__mark {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .konami-scene {
        width: min(420px, calc(100vw - 28px));
        gap: 10px;
    }

    .konami-scene__image {
        width: min(320px, 100%);
        max-height: 56vh;
    }

    .konami-scene__text {
        font-size: clamp(20px, 5.8vw, 28px);
    }
}


.hero-badge,
.rules-tag {
    display: none !important;
}

.page-hero--simple h1,
.page-hero--simple .page-hero__lead {
    margin-top: 0;
}


@media (max-width: 980px) {
    .home-highlights__grid {
        grid-template-columns: 1fr;
    }
}



.page-hero__grid > * {
    min-width: 0;
}

.page-hero--bracket {
    overflow: hidden;
}

.page-hero--bracket .page-hero__grid--compact {
    grid-template-columns: minmax(0, 1fr);
}

.page-hero__content--single {
    min-width: 0;
    max-width: 920px;
}

.page-hero--bracket .page-hero__lead {
    max-width: 920px;
}

.bracket-stats-line,
.bracket-pill {
    max-width: 100%;
}



html, body {
    max-width: 100%;
    overflow-x: clip;
}

.page--clean,
.page--clean > *,
.page-hero,
.page-hero__grid,
.page-hero__content,
.tournament-views,
.tab-panel {
    min-width: 0;
    max-width: 100%;
}

.page-hero--bracket,
.tournament-views,
.tab-panel[data-view-panel="bracket"] {
    overflow-x: hidden;
}

.page-hero--bracket .page-hero__grid,
.page-hero--bracket .page-hero__grid--compact {
    grid-template-columns: minmax(0, 1fr) !important;
}

.page-hero--bracket .page-hero__content,
.page-hero--bracket .page-hero__content--single,
.page-hero--bracket .page-hero__lead {
    max-width: min(920px, 100%);
    min-width: 0;
}

.page-hero--bracket .page-hero__meta,
.page-hero--bracket .bracket-stats-line,
.page-hero--bracket .bracket-pill,
.page-hero--bracket .hero-badge,
.page-hero--bracket .stats-badge,
.page-hero--bracket .page-hero__aside {
    display: none !important;
}


.page--error404 {
    min-height: calc(100vh - 112px);
    align-items: center;
    padding-top: clamp(1rem, 2.2vw, 1.75rem);
    padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.error404-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.1rem;
    align-items: start;
}

.error404-shell--single {
    width: min(760px, 100%);
}

.error404-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 1.1rem;
}

.error404-card,
.error404-links-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24, 32, 59, 0.92), rgba(8, 14, 28, 0.96));
    border: 1px solid rgba(189, 198, 255, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(1, 8, 22, 0.38);
}

.error404-card::before,
.error404-links-card::before {
    content: '';
    position: absolute;
    inset: auto -10% 58% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.18), transparent 70%);
    pointer-events: none;
}

.error404-card--content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: grid;
    align-content: center;
    min-height: min(70vh, 760px);
}

.error404-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.42rem 0.82rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(169, 158, 255, 0.2);
    background: rgba(108, 92, 231, 0.12);
    color: #d9d1ff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error404-kicker {
    color: #b8c3ea;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.error404-title {
    max-width: 620px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 0.98;
    letter-spacing: 0.015em;
    margin-bottom: 0.95rem;
}

.error404-copy {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.error404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.45rem;
}

.error404-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.error404-meta-card {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(189, 198, 255, 0.1);
    background: rgba(7, 16, 29, 0.48);
}

.error404-meta-card__label {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.error404-meta-card code,
.error404-meta-card p {
    margin: 0;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}

.error404-card--visual {
    padding: 1.2rem;
    display: grid;
    gap: 0.9rem;
    align-content: center;
}

.error404-visual-frame {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(189, 198, 255, 0.12);
    background: linear-gradient(180deg, rgba(9, 16, 32, 0.96), rgba(13, 20, 38, 0.98));
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error404-visual-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.error404-visual-note {
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(189, 198, 255, 0.1);
    background: rgba(7, 16, 29, 0.48);
}

.error404-visual-note__tag {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.14);
    border: 1px solid rgba(169, 158, 255, 0.22);
    color: #e4ddff;
    font-size: 0.9rem;
    font-weight: 700;
}

.error404-visual-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.error404-links-card {
    padding: 0.95rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.error404-quick-link {
    min-height: 118px;
    display: grid;
    align-content: start;
    gap: 0.32rem;
    padding: 1rem 1.05rem;
    border-radius: 22px;
    text-decoration: none;
    border: 1px solid rgba(189, 198, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.error404-quick-link:hover {
    transform: translateY(-2px);
    border-color: rgba(169, 158, 255, 0.24);
    background: rgba(108, 92, 231, 0.08);
}

.error404-quick-link__title {
    font-size: 1.18rem;
    font-weight: 700;
}

.error404-quick-link__text {
    color: var(--muted);
    line-height: 1.45;
}

@media (max-width: 1080px) {
    .error404-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .page--error404 {
        min-height: auto;
    }

    .error404-card--content,
    .error404-card--visual,
    .error404-links-card {
        padding: 1rem;
    }

    .error404-title {
        font-size: clamp(1.75rem, 8vw, 2.45rem);
        line-height: 1;
        letter-spacing: 0.01em;
    }

    .error404-copy {
        font-size: 1rem;
    }

    .error404-visual-frame {
        min-height: 260px;
    }

    .error404-meta {
        grid-template-columns: 1fr;
    }

    .error404-actions {
        flex-direction: column;
    }

    .error404-actions > * {
        width: 100%;
        justify-content: center;
    }

    .error404-links-card {
        grid-template-columns: 1fr;
    }
}


* {
    scrollbar-width: thin;
    scrollbar-color: #6f63ff #101a44;
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-track {
    background: rgba(16, 26, 68, 0.95);
    border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7c6bff 0%, #5146d8 100%);
    border-radius: 999px;
    border: 2px solid rgba(16, 26, 68, 0.95);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9487ff 0%, #6359f0 100%);
}

.popup--wide {
    width: min(940px, 100%);
}

.winner-history-popup {
    padding-bottom: 1.35rem;
}

.winner-history-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.winner-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(21, 30, 58, 0.94), rgba(10, 17, 33, 0.98));
    border: 1px solid rgba(196, 203, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.winner-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.winner-card__eyebrow {
    display: inline-block;
    margin-bottom: 0.22rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.winner-card__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.winner-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.18);
    border: 1px solid rgba(169, 158, 255, 0.24);
    color: var(--light);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.winner-card__winner {
    font-size: 1.8rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--light);
}

.winner-card__note,
.winner-card__empty {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.winner-card__details {
    border-top: 1px solid rgba(196, 203, 255, 0.08);
    padding-top: 0.8rem;
}

.winner-card__details summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    color: #ddd8ff;
    font-weight: 700;
}

.winner-card__details summary::-webkit-details-marker {
    display: none;
}

.winner-card__details summary::after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(108, 92, 231, 0.16);
    border: 1px solid rgba(169, 158, 255, 0.22);
    color: var(--light);
    line-height: 1;
}

.winner-card__details[open] summary::after {
    content: '−';
}

.winner-card__players {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.winner-card__player {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 203, 255, 0.08);
    color: var(--light);
    font-weight: 700;
}

@media (max-width: 860px) {
    .winner-history-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .winner-card {
        padding: 1rem;
    }

    .winner-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .winner-card__winner {
        font-size: 1.45rem;
    }
}










.mobile-menu-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid rgba(196, 203, 255, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(18, 27, 54, 0.96), rgba(9, 16, 32, 0.98));
    color: var(--light);
    box-shadow: 0 14px 28px rgba(1, 8, 22, 0.22);
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(142, 156, 255, 0.34);
    background: linear-gradient(180deg, rgba(26, 36, 72, 0.98), rgba(13, 20, 40, 1));
    box-shadow: 0 16px 30px rgba(38, 50, 118, 0.22);
    outline: none;
}

.mobile-menu-toggle__lines {
    width: 1.15rem;
    height: 0.9rem;
    display: inline-grid;
    align-content: space-between;
}

.mobile-menu-toggle__line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.mobile-menu-toggle.is-active .mobile-menu-toggle__line:nth-child(1) {
    transform: translateY(0.38rem) rotate(45deg);
}

.mobile-menu-toggle.is-active .mobile-menu-toggle__line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .mobile-menu-toggle__line:nth-child(3) {
    transform: translateY(-0.38rem) rotate(-45deg);
}

.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 95;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.26s ease, visibility 0.26s ease;
}

.mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 8, 18, 0.72);
    backdrop-filter: blur(10px);
}

.mobile-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 88vw);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1rem;
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at top right, rgba(108, 92, 231, 0.2), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 48, 0.985), rgba(7, 13, 28, 0.995));
    border-left: 1px solid rgba(196, 203, 255, 0.12);
    box-shadow: -28px 0 60px rgba(2, 6, 18, 0.34);
    transform: translateX(106%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.mobile-drawer.is-open .mobile-drawer__panel {
    transform: translateX(0);
}

.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.mobile-drawer__brand {
    min-width: 0;
}

.mobile-drawer__brand .brand {
    gap: 0.75rem;
}

.mobile-drawer__brand .brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.mobile-drawer__close {
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    flex: 0 0 auto;
    border: 1px solid rgba(196, 203, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--light);
    cursor: pointer;
}

.mobile-drawer__close span {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.mobile-drawer__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-drawer__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-drawer__body {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0.9rem;
    overflow-y: auto;
    padding-right: 0.1rem;
}

.mobile-drawer__body::-webkit-scrollbar {
    width: 6px;
}

.mobile-drawer__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 160, 232, 0.22);
}

.mobile-drawer__nav,
.mobile-drawer__actions {
    display: grid;
    gap: 0.7rem;
}

.mobile-drawer__actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
}

.mobile-drawer__actions > * {
    min-width: 0;
}

.mobile-drawer__actions .cabinet-header-logout {
    width: 100%;
}

.mobile-drawer__nav .nav-link,
.mobile-drawer__actions .nav-button,
.mobile-drawer__actions .button-link,
.mobile-drawer__actions .mobile-drawer__action {
    width: 100%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(196, 203, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--light);
    font-weight: 700;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.mobile-drawer__nav .nav-link.active {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.24), rgba(255, 71, 87, 0.16));
    border-color: rgba(169, 158, 255, 0.24);
}

.mobile-drawer__nav .nav-link--streams-live:hover,
.mobile-drawer__nav .nav-link--streams-live.active,
.mobile-drawer__nav .nav-link--streams-live.active:hover {
    background: linear-gradient(180deg, rgba(217, 173, 88, 0.16), rgba(217, 173, 88, 0.05)) !important;
    border-color: rgba(217, 173, 88, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 229, 168, 0.06) !important;
    color: var(--dpl-text) !important;
}

.mobile-drawer__footer {
    color: rgba(220, 228, 255, 0.64);
    font-size: 0.84rem;
    line-height: 1.45;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 80;
    }

    .header__inner {
        width: calc(100% - 20px);
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
        padding: 0.8rem 0;
    }

    .brand {
        width: auto;
        min-width: 0;
    }

    .brand__mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 1.02rem;
    }

    .brand__title {
        font-size: 0.98rem;
    }

    .brand__subtitle {
        font-size: 0.74rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .header__nav,
    .header__actions {
        display: none !important;
    }

    .mobile-drawer__actions {
        grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
    }

    .mobile-drawer__actions > *:only-child {
        grid-column: 1 / -1;
    }

    .mobile-drawer__actions .nav-button--cabinet-profile,
    .mobile-drawer__actions .nav-button--discord {
        width: 100%;
        justify-content: flex-start;
    }

    .mobile-drawer__actions .nav-button--logout {
        width: 100%;
        justify-content: center;
        padding-inline: 1rem;
    }

    main,
    footer {
        width: calc(100% - 20px);
    }

    main {
        padding: 1rem 0 2rem;
    }

    .page {
        gap: 1rem;
    }

    .page-hero,
    .hero-panel,
    .home-highlights,
    .popup,
    .glass-card,
    .stream-card,
    .rules-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .page-hero__grid,
    .page-hero__grid--compact,
    .player-profile-layout {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .hero-copy {
        gap: 1rem;
    }

    .hero-title,
    .page h1,
    .page-hero h1 {
        font-size: clamp(2rem, 9vw, 2.9rem);
        line-height: 0.96;
    }

    .hero-copy p,
    .page-hero__lead {
        font-size: 0.98rem;
    }

    .hero-actions,
    .player-links,
    .player-card-actions,
    .players-search__row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .hero-button,
    .donate-button,
    .player-links a,
    .player-card-actions a,
    .players-search__row > * {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .hero-meta .stat-card:last-child {
        grid-column: 1 / -1;
    }

    .stat-card {
        padding: 0.9rem 0.8rem;
    }

    .stat-card__value {
        font-size: 1.5rem;
    }

    .stat-card__label {
        font-size: 0.73rem;
    }

    .compact-schedule {
        gap: 0.6rem;
    }

    .compact-schedule__item {
        padding: 0.85rem 0.9rem;
    }

    .compact-schedule__item strong {
        font-size: 1rem;
    }

    .compact-schedule__tag {
        font-size: 0.76rem;
    }

    .home-highlights__grid,
    .players-base-grid,
    .rules-grid,
    .player-sidebar-card__grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .home-highlight-card,
    .player-base-card,
    .player-section,
    .player-sidebar-card {
        padding: 1rem;
    }

    .popup-overlay {
        padding: 10px;
    }

    .popup {
        width: min(100%, 560px);
        max-height: calc(100vh - 20px);
        overflow-y: auto;
    }

    .popup-list li {
        gap: 0.6rem;
    }

    .section-title-row {
        align-items: flex-start;
    }

    .section-help::after {
        left: auto;
        right: 0;
        top: calc(100% + 0.7rem);
        transform: none;
        width: min(300px, calc(100vw - 56px));
    }

    .section-help::before {
        left: auto;
        right: 0.8rem;
        top: calc(100% + 0.28rem);
        transform: rotate(45deg);
    }

    .streams-container {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .stream-card {
        padding: 1rem;
    }

    .stream-iframe {
        min-height: 0;
        height: auto;
        aspect-ratio: 16 / 10;
    }

    footer {
        margin: 0 auto 1rem;
        padding: 0.85rem 0 0.15rem;
        border: 0;
        border-top: 1px solid rgba(196, 203, 255, 0.1);
        border-radius: 0;
        background: transparent;
    }

    .footer-inner {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: stretch;
        gap: 0.65rem;
    }

    .footer-copy {
        justify-items: center;
        text-align: center;
        gap: 0.1rem;
    }

    .footer-copy strong {
        font-size: 0.82rem;
        letter-spacing: 0.06em;
    }

    .footer-right {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: stretch;
        width: 100%;
        margin-left: 0;
        gap: 0.45rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.2rem 0.9rem;
        width: auto;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
        padding: 0.18rem 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: rgba(151, 162, 201, 0.9);
        font-size: 0.88rem;
        font-weight: 600;
        text-align: center;
    }

    .footer-partner {
        width: auto;
        max-width: 118px;
        margin: 0 auto;
        align-self: center;
        opacity: 0.72;
    }

    .footer-partner img {
        max-width: 118px;
        filter: grayscale(0.08) opacity(0.78) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
    }

    .footer-partner:hover img {
        transform: none;
        filter: grayscale(0.08) opacity(0.78) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
    }

    .error404-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .error404-actions > * {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .brand__subtitle {
        display: none;
    }

    .mobile-drawer__panel {
        width: min(100%, 100vw);
        padding-inline: 0.9rem;
    }

    .mobile-drawer__actions {
        grid-template-columns: 1fr;
    }

    .mobile-drawer__actions .nav-button--cabinet-profile,
    .mobile-drawer__actions .nav-button--discord,
    .mobile-drawer__actions .nav-button--logout {
        justify-content: center;
    }

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

    .hero-meta .stat-card:last-child {
        grid-column: auto;
    }

    .compact-schedule__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .compact-schedule__item strong {
        font-size: 0.96rem;
    }

    .footer-partner {
        max-width: 96px;
    }

    .footer-partner img {
        max-width: 96px;
    }

    .footer-links {
        gap: 0.1rem 0.7rem;
    }

    .footer-links a {
        font-size: 0.84rem;
    }
}

.players-base-layout,
.player-profile-page {
    display: grid;
    gap: 1rem;
}

.players-search {
    display: grid;
    gap: 0.85rem;
}

.players-search__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.players-search__hint {
    color: var(--muted);
    font-size: 0.95rem;
}

.players-base-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.player-base-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 1.45rem;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 1.05rem;
    border-radius: 28px;
    box-shadow: 0 22px 44px rgba(3, 8, 24, 0.28);
}

.player-base-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -28% auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(135, 110, 255, 0.26) 0%, rgba(135, 110, 255, 0) 72%);
    pointer-events: none;
    opacity: 0.9;
}

.player-base-card > * {
    position: relative;
    z-index: 1;
}

.player-base-card__top,
.player-links,
.player-card-actions,






.players-base-grid .player-fact {
    min-height: 70px;
    align-items: flex-start;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}



.players-base-grid .player-fact {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 0.85rem 1rem;
}

.players-base-grid .player-fact__label {
    display: inline;
}




.player-summary-grid,
.player-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.player-base-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    min-height: 5.2rem;
    padding-top: 0;
    padding-bottom: 0;
}

.player-base-card__title {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.player-base-card__title h2,
.player-section h2,
.player-sidebar-card h2,
.player-summary-card h2 {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.player-base-card__title h2,
.player-profile-page .hero-copy h1 {
    text-transform: none;
}

.player-base-card__subtitle,
.player-note,
.player-empty,
.player-meta,
.player-fact__label,
.player-section__empty {
    color: var(--muted);
}

.player-facts {
    gap: 0.55rem;
}

.player-base-card__subtitle {
    font-size: 1rem;
}

.player-fact {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(196, 203, 255, 0.12);
    font-weight: 700;
}

.player-base-card__badge {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(196, 203, 255, 0.18);
    background: rgba(108, 92, 231, 0.1);
    color: #eef2ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.player-base-card__result {
    display: grid;
    align-content: center;
    gap: 0.45rem;
    min-height: 104px;
    padding: 1rem 1.15rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(57, 70, 123, 0.34), rgba(20, 28, 54, 0.62));
    border: 1px solid rgba(196, 203, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(4, 8, 24, 0.14);
}

.player-base-card__result-label {
    color: rgba(206, 214, 255, 0.74);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.player-base-card__result-value {
    font-size: 1.06rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--light);
    text-wrap: balance;
}

.player-base-card__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
    align-content: start;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.player-base-card__link {
    width: 100%;
    min-height: 50px;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(122, 133, 255, 0.24);
    background: linear-gradient(180deg, rgba(49, 57, 113, 0.68), rgba(27, 34, 72, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.player-base-card__link:hover,
.player-base-card__link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(168, 156, 255, 0.42);
    background: linear-gradient(180deg, rgba(63, 73, 139, 0.82), rgba(35, 43, 91, 0.96));
}

.player-base-card__link:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.player-base-card__links--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px dashed rgba(196, 203, 255, 0.16);
    background: rgba(255, 255, 255, 0.025);
}

.player-base-card__links-empty {
    color: rgba(206, 214, 255, 0.74);
    font-size: 0.92rem;
    text-align: center;
}

.player-links a,
.player-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.player-card-actions {
    margin-top: auto;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.player-card-actions .hero-button {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.2rem;
    box-shadow: 0 16px 28px rgba(105, 88, 230, 0.22);
}

.player-activity-card {
    display: grid;
    align-content: stretch;
    gap: 1rem;
    margin-top: auto;
    padding: 1.1rem;
    min-height: 286px;
    border-radius: 26px;
    border: 1px solid rgba(196, 203, 255, 0.1);
    background:
        radial-gradient(circle at 8% 12%, rgba(255, 255, 255, 0.07), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(108, 92, 231, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(13, 20, 43, 0.54), rgba(7, 12, 28, 0.36));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.player-activity-card__head,
.player-activity-card__legend {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.player-activity-card__head h2 {
    margin: 0;
    color: var(--light);
    font-size: 1.12rem;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.player-activity-card__head span,
.player-activity-card__head strong,
.player-activity-card__legend,
.player-activity-chart__months,
.player-activity-chart__day {
    color: rgba(206, 214, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.player-activity-card__head strong,
.player-activity-card__legend strong {
    color: #eef2ff;
}

.player-activity-chart {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
    width: 100%;
    padding: 0.15rem 0 0.25rem;
}

.player-activity-chart__months,
.player-activity-chart__row {
    display: grid;
    grid-template-columns: 32px repeat(var(--activity-weeks, 5), minmax(0, 1fr));
    gap: 0.5rem;
    align-items: center;
}

.player-activity-chart__months {
    min-height: 1rem;
    padding-bottom: 0.1rem;
    text-transform: none;
    text-align: center;
}

.player-activity-chart__day {
    text-align: right;
    text-transform: none;
}

.player-activity-cell {
    position: relative;
    display: block;
    width: 100%;
    min-height: 22px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    border: 1px solid rgba(196, 203, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.player-activity-cell::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.player-activity-cell--level-1::after { width: 5px; height: 5px; opacity: 0.72; }
.player-activity-cell--level-2::after { width: 7px; height: 7px; opacity: 0.82; }
.player-activity-cell--level-3::after { width: 9px; height: 9px; opacity: 0.92; }
.player-activity-cell--level-4::after { width: 10px; height: 10px; opacity: 1; }

.player-activity-cell--win::after {
    background: #58c921;
    box-shadow: 0 0 10px rgba(88, 201, 33, 0.3);
}

.player-activity-cell--loss::after {
    background: #ff3448;
    box-shadow: 0 0 10px rgba(255, 52, 72, 0.28);
}

.player-activity-cell--even::after {
    background: #d98a18;
    box-shadow: 0 0 10px rgba(217, 138, 24, 0.26);
}

.player-activity-card__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(196, 203, 255, 0.16);
    color: rgba(206, 214, 255, 0.74);
    font-weight: 700;
    text-align: center;
}

.player-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.player-summary-card {
    padding: 1rem 1.1rem;
}

.player-summary-card__value {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 700;
}

.player-summary-card__label {
    color: var(--muted);
}

.player-profile-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.player-profile-main,
.player-profile-aside {
    display: contents;
}

.player-profile-card {
    align-self: stretch;
}

.player-profile-card--facts {
    order: 10;
    grid-column: 1 / -1;
}

.player-profile-card--about {
    order: 20;
    grid-column: 1 / -1;
}

.player-profile-card--history {
    order: 30;
}

.player-profile-card--achievements {
    order: 31;
}

.player-profile-card--mvp {
    order: 40;
}

.player-profile-card--custom {
    order: 50;
    grid-column: 1 / -1;
}

.player-section,
.player-sidebar-card {
    padding: 1.35rem;
}

.player-section__content {
    display: grid;
    gap: 0.9rem;
    margin-top: 0.85rem;
    color: #d8ddf6;
}

.player-section__content p {
    margin: 0;
}

.player-section__list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0.85rem 0 0;
}

.player-section__list li {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.player-sidebar-card {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    align-self: stretch;
}

.player-sidebar-card__grid {
    display: grid;
    gap: 0.75rem;
}

.player-side-fact {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(196, 203, 255, 0.08);
}

.player-side-fact strong {
    display: block;
    margin-bottom: 0.2rem;
}

.dotabuff-summary-card {
    display: grid;
    gap: 1rem;
}

.dotabuff-summary-card__head {
    align-items: flex-start;
}

.dotabuff-summary-card__eyebrow,
.dotabuff-summary-card__status,
.dotabuff-stat__label,
.dotabuff-stat__meta,
.dotabuff-hero-row__meta,
.dotabuff-summary-card__updated {
    color: rgba(206, 214, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dotabuff-summary-card__status {
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(196, 203, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.dotabuff-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.dotabuff-stat {
    min-width: 0;
    padding: 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(196, 203, 255, 0.1);
    background:
        radial-gradient(circle at 100% 0%, rgba(108, 92, 231, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.dotabuff-stat__label,
.dotabuff-stat__meta {
    display: block;
}

.dotabuff-stat__value {
    display: block;
    margin-top: 0.22rem;
    color: var(--light);
    font-size: 1.34rem;
    line-height: 1;
    overflow-wrap: anywhere;
}

.dotabuff-stat__meta {
    margin-top: 0.3rem;
    letter-spacing: 0.04em;
    text-transform: none;
}

.dotabuff-stat--rank {
    min-height: 96px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.stratz-rank-medal {
    display: grid;
    place-items: center;
    margin-top: 0.55rem;
    min-height: 68px;
}

.stratz-rank-medal__stack {
    position: relative;
    display: block;
    width: 68px;
    height: 68px;
    filter: drop-shadow(0 14px 22px rgba(5, 8, 22, 0.32));
}

.stratz-rank-medal__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.stratz-rank-medal__image--medal {
    z-index: 1;
}

.stratz-rank-medal__image--stars {
    z-index: 2;
    pointer-events: none;
    transform: translateY(-5px) scale(1.1);
}

.stratz-rank-medal__leaderboard {
    position: absolute;
    left: 50%;
    bottom: 2px;
    z-index: 3;
    min-width: 30px;
    width: max-content;
    padding: 0.02rem 0.28rem 0.08rem;
    border-radius: 999px;
    background: rgba(10, 8, 18, 0.72);
    border: 1px solid rgba(255, 238, 176, 0.34);
    box-shadow:
        0 8px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    color: #ffeeb0;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.62);
    transform: translateX(-50%);
}

.stratz-rank-medal__icon {
    --rank-a: #6d7a9b;
    --rank-b: #35415f;
    --rank-c: #dce5ff;
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 50% 50% 44% 44%;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.46), transparent 22%),
        linear-gradient(145deg, var(--rank-a), var(--rank-b));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 12px 24px rgba(5, 8, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    isolation: isolate;
}

.stratz-rank-medal__icon::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50% 50% 42% 42%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.24), transparent 46%);
    z-index: -1;
}

.stratz-rank-medal__icon span {
    width: 21px;
    height: 21px;
    border-radius: 5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--rank-c));
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
}

.stratz-rank-medal__icon--tier-1 { --rank-a: #6b6f7a; --rank-b: #2b303a; --rank-c: #cfd4dc; }
.stratz-rank-medal__icon--tier-2 { --rank-a: #61a879; --rank-b: #254f36; --rank-c: #b5ffd0; }
.stratz-rank-medal__icon--tier-3 { --rank-a: #5fb5c8; --rank-b: #235a6a; --rank-c: #b8f5ff; }
.stratz-rank-medal__icon--tier-4 { --rank-a: #7469d8; --rank-b: #342d78; --rank-c: #d7d1ff; }
.stratz-rank-medal__icon--tier-5 { --rank-a: #c78842; --rank-b: #6b3d18; --rank-c: #ffe0a6; }
.stratz-rank-medal__icon--tier-6 { --rank-a: #cf5a60; --rank-b: #6f202d; --rank-c: #ffc0c6; }
.stratz-rank-medal__icon--tier-7 { --rank-a: #d7c166; --rank-b: #776321; --rank-c: #fff2a7; }
.stratz-rank-medal__icon--tier-8 { --rank-a: #f1d575; --rank-b: #7b5018; --rank-c: #fff6b8; }

.dotabuff-heroes {
    display: grid;
    gap: 0.62rem;
}

.dotabuff-heroes h3 {
    margin: 0;
    color: var(--light);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dotabuff-heroes__list {
    display: grid;
    gap: 0.48rem;
}

.dotabuff-hero-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 0.8rem;
    border-radius: 15px;
    border: 1px solid rgba(196, 203, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.dotabuff-hero-row__name {
    min-width: 0;
    overflow: hidden;
    color: var(--light);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dotabuff-hero-row__meta {
    letter-spacing: 0.04em;
    text-transform: none;
}

.dotabuff-hero-row__win {
    color: #dfe5ff;
}

.dotabuff-summary-card__footer {
    display: grid;
    gap: 0.55rem;
}

.dotabuff-summary-card__updated {
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: none;
}

.dotabuff-summary-card__empty {
    padding: 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(196, 203, 255, 0.16);
    background: rgba(255, 255, 255, 0.025);
    color: rgba(206, 214, 255, 0.74);
    font-weight: 700;
    text-align: center;
}

.players-empty-state {
    padding: 1.35rem;
    text-align: center;
    color: var(--muted);
}

@media (max-width: 980px) {
    .player-profile-layout,
    .player-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .players-search__row {
        grid-template-columns: 1fr;
    }

    .players-base-grid,
    .player-sidebar-card__grid,
    .dotabuff-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .player-activity-card {
        min-height: 0;
        padding: 0.9rem;
    }

    .player-activity-chart__months,
    .player-activity-chart__row {
        grid-template-columns: 24px repeat(var(--activity-weeks, 5), minmax(0, 1fr));
        gap: 0.32rem;
    }

    .player-activity-cell {
        min-height: 18px;
    }

    .player-base-card,
    .player-section,
    .player-sidebar-card {
        padding: 1rem;
    }

    .player-base-card__top {
        min-height: 0;
        gap: 0.85rem;
    }

    .player-base-card__result {
        min-height: 92px;
        padding: 0.95rem 1rem;
    }

    .player-links,
    .player-card-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .player-links a,
    .player-card-actions a {
        width: 100%;
        justify-content: center;
    }

    .players-load-more__button {
        width: 100%;
        min-width: 0;
    }
}

.players-load-more {
    display: grid;
    justify-items: center;
    gap: 0.9rem;
    width: 100%;
    padding-top: 0.4rem;
}

.players-load-more__status {
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.players-load-more__button {
    min-width: 220px;
}

.players-load-more__button[hidden],
.players-load-more__button.is-hidden {
    display: none !important;
}






.hero-fund-strip__button,
.hero-fund-strip__total {
    height: 72px;
    min-height: 72px;
}

.hero-fund-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1rem;
    align-items: stretch;
    margin-top: auto;
}

.hero-fund-strip__total {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    height: 72px;
    padding: 0.8rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(24, 32, 59, 0.86), rgba(11, 18, 34, 0.9));
    border: 1px solid rgba(196, 203, 255, 0.10);
    box-shadow: var(--shadow-soft);
}

.hero-fund-strip__total::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.16), transparent 70%);
    pointer-events: none;
}

.hero-fund-strip__label {
    position: relative;
    z-index: 1;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-fund-strip__value {
    position: relative;
    z-index: 1;
    color: var(--light);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 700;
    line-height: 1;
    word-break: break-word;
}

.hero-fund-strip__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 75px;
    min-height: 72px;
    padding: 0 1.4rem;
    border-radius: 18px;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .hero-fund-strip {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .hero-fund-strip__button,
    .hero-fund-strip__total {
        min-height: 72px;
    }
}

@media (max-width: 560px) {
    .hero-fund-strip__total {
        padding: 1rem;
    }

    .hero-fund-strip__value {
        font-size: 1.65rem;
    }

    .hero-fund-strip__button {
        height: 64px;
        min-height: 64px;
        padding: 0 1rem;
        white-space: normal;
    }
}





















.player-profile-page.player-profile-page--pink {
    --girl-bg-top: #6b2358;
    --girl-bg-bottom: #1c0823;
    --girl-card-top: rgba(92, 34, 82, 0.82);
    --girl-card-bottom: rgba(30, 9, 35, 0.9);
    --girl-border: rgba(255, 190, 229, 0.18);
    --girl-border-soft: rgba(255, 220, 240, 0.08);
    --girl-text: #ffe8f5;
    --girl-text-soft: #d7a8c4;
    --girl-link: #ffc2e3;
    --girl-btn-1: #ffa8d9;
    --girl-btn-2: #ff6abd;
    --girl-shadow: rgba(255, 103, 184, 0.16);
    --girl-glow: rgba(255, 182, 224, 0.18);

    position: relative;
    overflow: visible;
    isolation: isolate;
}

.player-profile-page.player-profile-page--pink .player-profile-scene {
    position: absolute;
    inset: -1rem -3rem -2rem;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

.player-profile-page.player-profile-page--pink .player-profile-scene__petal {
    position: absolute;
    pointer-events: none;
    top: -14%;
    width: 18px;
    height: 24px;
    opacity: 0;
    will-change: transform, opacity;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 1c5.2 3.7 8.2 7.6 8.2 12.8 0 7-4.5 13.2-8.2 15.2-3.8-2-8.2-8.2-8.2-15.2C3.8 8.6 6.8 4.7 12 1Z' fill='%23ffd9ea'/%3E%3Cpath d='M12 5c2.4 2.2 4.1 4.8 4.1 8.3 0 4.4-2.5 8.4-4.1 10-1.7-1.6-4.2-5.6-4.2-10 0-3.5 1.8-6.1 4.2-8.3Z' fill='%23ffb7d8' fill-opacity='.82'/%3E%3C/svg%3E");
    filter: drop-shadow(0 5px 10px rgba(255, 154, 210, 0.18));
    animation: girl-profile-petal-fall var(--fall-duration, 16s) linear infinite;
    animation-delay: var(--fall-delay, 0s);
}

.player-profile-page.player-profile-page--pink .player-profile-scene__petal--1 { left: 6%; --fall-duration: 14s; --fall-delay: -2s; --drift-x: 7vw; --scale: 0.9; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--2 { left: 14%; --fall-duration: 18s; --fall-delay: -10s; --drift-x: -6vw; --scale: 0.76; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--3 { left: 25%; --fall-duration: 16s; --fall-delay: -5s; --drift-x: 8vw; --scale: 1.02; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--4 { left: 38%; --fall-duration: 20s; --fall-delay: -13s; --drift-x: -9vw; --scale: 0.84; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--5 { left: 51%; --fall-duration: 15s; --fall-delay: -7s; --drift-x: 6vw; --scale: 0.78; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--6 { left: 63%; --fall-duration: 19s; --fall-delay: -15s; --drift-x: -8vw; --scale: 1.08; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--7 { left: 72%; --fall-duration: 17s; --fall-delay: -4s; --drift-x: 7vw; --scale: 0.88; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--8 { left: 82%; --fall-duration: 21s; --fall-delay: -11s; --drift-x: -6vw; --scale: 0.82; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--9 { left: 90%; --fall-duration: 16s; --fall-delay: -8s; --drift-x: 5vw; --scale: 0.74; }
.player-profile-page.player-profile-page--pink .player-profile-scene__petal--10 { left: 96%; --fall-duration: 22s; --fall-delay: -17s; --drift-x: -5vw; --scale: 0.68; }

.player-profile-page.player-profile-page--pink::before {
    content: "";
    position: absolute;
    inset: -3rem -9rem -4rem;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(52% 46% at 50% 10%, rgba(255, 165, 220, 0.22), transparent 72%),
        radial-gradient(22% 84% at 4% 32%, rgba(178, 76, 137, 0.28), transparent 74%),
        radial-gradient(22% 84% at 96% 32%, rgba(178, 76, 137, 0.24), transparent 74%),
        linear-gradient(180deg, rgba(125, 40, 100, 0.26), rgba(58, 15, 57, 0.18) 34%, rgba(18, 9, 29, 0.05) 100%);
    filter: blur(42px);
}

.player-profile-page.player-profile-page--pink::after {
    content: "";
    position: absolute;
    inset: 0 -4rem auto;
    height: min(72vh, 760px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.74;
    background:
        radial-gradient(34% 40% at 50% 10%, rgba(255, 202, 232, 0.12), transparent 80%),
        radial-gradient(28% 52% at 0% 18%, rgba(94, 28, 74, 0.34), transparent 74%),
        radial-gradient(28% 52% at 100% 18%, rgba(94, 28, 74, 0.28), transparent 74%);
    filter: blur(34px);
}

.player-profile-page.player-profile-page--pink > * {
    position: relative;
    z-index: 1;
}



.player-profile-page.player-profile-page--pink .page-hero,
.player-profile-page.player-profile-page--pink .hero-panel,
.player-profile-page.player-profile-page--pink .player-section,
.player-profile-page.player-profile-page--pink .player-sidebar-card,
.player-profile-page.player-profile-page--pink .player-summary-card {
    background:
        linear-gradient(180deg, rgba(255, 244, 249, 0.05), rgba(255, 244, 249, 0) 26%),
        radial-gradient(circle at 14% 18%, rgba(255, 205, 234, 0.08), transparent 24%),
        radial-gradient(circle at 86% 78%, rgba(255, 144, 205, 0.06), transparent 22%),
        linear-gradient(180deg, var(--girl-card-top), var(--girl-card-bottom)) !important;
    border: 1px solid var(--girl-border) !important;
    box-shadow:
        0 0 0 1px rgba(255, 235, 245, 0.024) inset,
        0 20px 44px rgba(255, 88, 175, 0.10),
        0 0 42px rgba(255, 145, 209, 0.08) !important;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.player-profile-page.player-profile-page--pink .page-hero::before,
.player-profile-page.player-profile-page--pink .hero-panel::before,
.player-profile-page.player-profile-page--pink .glass-card::before {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle at 28% 24%, rgba(255, 204, 232, 0.2), rgba(255, 204, 232, 0) 68%);
    opacity: 0.82;
}

.player-profile-page.player-profile-page--pink .page-hero::after,
.player-profile-page.player-profile-page--pink .hero-panel::after,
.player-profile-page.player-profile-page--pink .player-section::after,
.player-profile-page.player-profile-page--pink .player-sidebar-card::after,
.player-profile-page.player-profile-page--pink .player-summary-card::after {
    content: "";
    position: absolute;
    inset: auto -8% -18% auto;
    width: 220px;
    height: 180px;
    background: radial-gradient(circle at center, rgba(255, 206, 231, 0.14), rgba(255, 206, 231, 0) 72%);
    opacity: 0.52;
    filter: blur(10px);
    pointer-events: none;
}


.player-profile-page.player-profile-page--pink .page-hero {
    background:
        linear-gradient(180deg, rgba(255, 245, 250, 0.06), rgba(255, 245, 250, 0) 22%),
        radial-gradient(circle at 12% 22%, rgba(255, 194, 229, 0.12), transparent 24%),
        radial-gradient(circle at 90% 12%, rgba(255, 120, 196, 0.06), transparent 16%),
        linear-gradient(180deg, rgba(93, 32, 80, 0.9), rgba(30, 8, 34, 0.96)) !important;
    box-shadow:
        0 0 0 1px rgba(255, 233, 244, 0.03) inset,
        0 24px 48px rgba(255, 93, 179, 0.12),
        0 0 56px rgba(255, 129, 201, 0.08) !important;
}


.player-profile-page.player-profile-page--pink .hero-panel {
    background:
        linear-gradient(180deg, rgba(255, 245, 250, 0.05), rgba(255, 245, 250, 0) 20%),
        radial-gradient(circle at 24% 18%, rgba(255, 193, 228, 0.08), transparent 22%),
        linear-gradient(180deg, rgba(54, 18, 52, 0.92), rgba(24, 8, 31, 0.96)) !important;
}



.player-profile-page.player-profile-page--pink.page h1 {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: #ffe8f5 !important;
    color: #ffe8f5 !important;
    text-shadow:
        0 0 8px rgba(255, 191, 229, 0.16),
        0 0 20px rgba(255, 110, 190, 0.10);
}

.player-profile-page.player-profile-page--pink .page-hero__lead,
.player-profile-page.player-profile-page--pink .player-base-card__subtitle,
.player-profile-page.player-profile-page--pink .player-note,
.player-profile-page.player-profile-page--pink .player-empty,
.player-profile-page.player-profile-page--pink .player-meta,
.player-profile-page.player-profile-page--pink .player-fact__label,
.player-profile-page.player-profile-page--pink .player-section__empty,
.player-profile-page.player-profile-page--pink .player-activity-card__head span,
.player-profile-page.player-profile-page--pink .player-activity-card__legend,
.player-profile-page.player-profile-page--pink .player-activity-chart__months,
.player-profile-page.player-profile-page--pink .player-activity-chart__day,
.player-profile-page.player-profile-page--pink .player-activity-card__empty,
.player-profile-page.player-profile-page--pink .dotabuff-summary-card__eyebrow,
.player-profile-page.player-profile-page--pink .dotabuff-summary-card__status,
.player-profile-page.player-profile-page--pink .dotabuff-stat__label,
.player-profile-page.player-profile-page--pink .dotabuff-stat__meta,
.player-profile-page.player-profile-page--pink .dotabuff-hero-row__meta,
.player-profile-page.player-profile-page--pink .dotabuff-summary-card__updated,
.player-profile-page.player-profile-page--pink .dotabuff-summary-card__empty,
.player-profile-page.player-profile-page--pink .player-summary-card__label {
    color: var(--girl-text-soft) !important;
}

.player-profile-page.player-profile-page--pink .player-section h2,
.player-profile-page.player-profile-page--pink .player-sidebar-card h2,
.player-profile-page.player-profile-page--pink .player-summary-card h2,
.player-profile-page.player-profile-page--pink .panel-title {
    color: #ffe4f2 !important;
    text-shadow:
        0 0 6px rgba(255, 192, 229, 0.10),
        0 0 14px rgba(255, 106, 188, 0.06);
}

.player-profile-page.player-profile-page--pink .player-section__content,
.player-profile-page.player-profile-page--pink .player-section__content p,
.player-profile-page.player-profile-page--pink .player-sidebar-card,
.player-profile-page.player-profile-page--pink .player-side-fact,
.player-profile-page.player-profile-page--pink .player-section__list li,
.player-profile-page.player-profile-page--pink .player-activity-card__head h2,
.player-profile-page.player-profile-page--pink .player-activity-card__head strong,
.player-profile-page.player-profile-page--pink .player-activity-card__legend strong,
.player-profile-page.player-profile-page--pink .dotabuff-stat__value,
.player-profile-page.player-profile-page--pink .dotabuff-heroes h3,
.player-profile-page.player-profile-page--pink .dotabuff-hero-row__name,
.player-profile-page.player-profile-page--pink .dotabuff-hero-row__win,
.player-profile-page.player-profile-page--pink .player-fact {
    color: var(--girl-text) !important;
}

.player-profile-page.player-profile-page--pink .player-summary-card__value {
    color: #ffeaf7 !important;
    text-shadow:
        0 0 8px rgba(255, 185, 227, 0.16),
        0 0 18px rgba(255, 110, 190, 0.08);
}



.player-profile-page.player-profile-page--pink .player-fact,
.player-profile-page.player-profile-page--pink .player-section__list li,
.player-profile-page.player-profile-page--pink .player-side-fact,
.player-profile-page.player-profile-page--pink .player-activity-card,
.player-profile-page.player-profile-page--pink .player-activity-cell,
.player-profile-page.player-profile-page--pink .player-activity-card__empty,
.player-profile-page.player-profile-page--pink .dotabuff-stat,
.player-profile-page.player-profile-page--pink .dotabuff-hero-row,
.player-profile-page.player-profile-page--pink .dotabuff-summary-card__empty {
    background:
        linear-gradient(180deg, rgba(255, 241, 248, 0.06), rgba(255, 241, 248, 0) 26%),
        linear-gradient(180deg, rgba(255, 212, 236, 0.05), rgba(255, 159, 211, 0.025)) !important;
    border: 1px solid var(--girl-border-soft) !important;
    box-shadow:
        0 0 0 1px rgba(255, 229, 242, 0.015) inset,
        0 0 18px rgba(255, 120, 196, 0.06);
}



.player-profile-page.player-profile-page--pink .player-links a,
.player-profile-page.player-profile-page--pink .profile-button,
.player-profile-page.player-profile-page--pink .button-link,
.player-profile-page.player-profile-page--pink .hero-button {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 32%),
        linear-gradient(135deg, var(--girl-btn-1), var(--girl-btn-2)) !important;
    border: 1px solid rgba(255, 228, 241, 0.20) !important;
    color: #fff !important;
    box-shadow:
        0 12px 24px rgba(255, 96, 181, 0.18),
        0 0 18px rgba(255, 150, 209, 0.14) !important;
}

.player-profile-page.player-profile-page--pink .player-links a:hover,
.player-profile-page.player-profile-page--pink .profile-button:hover,
.player-profile-page.player-profile-page--pink .button-link:hover,
.player-profile-page.player-profile-page--pink .hero-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 16px 28px rgba(255, 96, 181, 0.22),
        0 0 22px rgba(255, 150, 209, 0.16) !important;
}



.player-profile-page.player-profile-page--pink a:not(.profile-button):not(.button-link):not(.hero-button) {
    color: var(--girl-link) !important;
}

.player-profile-page.player-profile-page--pink a:not(.profile-button):not(.button-link):not(.hero-button):hover {
    color: #ffe5f4 !important;
}

@keyframes girl-profile-petal-fall {
    0% {
        transform: translate3d(0, -10%, 0) rotate(0deg) scale(var(--scale, 1));
        opacity: 0;
    }
    8% {
        opacity: 0.92;
    }
    42% {
        transform: translate3d(calc(var(--drift-x, 7vw) * 0.45), 34vh, 0) rotate(125deg) scale(var(--scale, 1));
    }
    100% {
        transform: translate3d(var(--drift-x, 7vw), 110%, 0) rotate(300deg) scale(var(--scale, 1));
        opacity: 0.08;
    }
}

@media (max-width: 980px) {
    .player-profile-page.player-profile-page--pink .player-profile-scene {
        inset: -1rem -1rem -2rem;
    }

    .player-profile-page.player-profile-page--pink::before {
        inset: -2rem -3rem -3rem;
    }

    .player-profile-page.player-profile-page--pink::after {
        inset: 0 -2rem auto;
        opacity: 0.56;
    }
}

@media (prefers-reduced-motion: reduce) {
    .player-profile-page.player-profile-page--pink .player-profile-scene__petal {
        animation: none;
        opacity: 0.3;
    }
}

.player-profile-page.player-profile-page--gold {
    --girl-bg-top: #6f4f19;
    --girl-bg-bottom: #181108;
    --girl-card-top: rgba(92, 64, 20, 0.84);
    --girl-card-bottom: rgba(26, 18, 9, 0.92);
    --girl-border: rgba(255, 224, 153, 0.18);
    --girl-border-soft: rgba(255, 236, 193, 0.08);
    --girl-text: #fff4d8;
    --girl-text-soft: #d9c295;
    --girl-link: #ffd778;
    --girl-btn-1: #f6c45b;
    --girl-btn-2: #c9972f;
    --girl-shadow: rgba(245, 185, 62, 0.16);
    --girl-glow: rgba(255, 218, 134, 0.17);
    --theme-petal-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 1c5.2 3.7 8.2 7.6 8.2 12.8 0 7-4.5 13.2-8.2 15.2-3.8-2-8.2-8.2-8.2-15.2C3.8 8.6 6.8 4.7 12 1Z' fill='%23ffe7a0'/%3E%3Cpath d='M12 5c2.4 2.2 4.1 4.8 4.1 8.3 0 4.4-2.5 8.4-4.1 10-1.7-1.6-4.2-5.6-4.2-10 0-3.5 1.8-6.1 4.2-8.3Z' fill='%23f5bf58' fill-opacity='.82'/%3E%3C/svg%3E");
    --theme-petal-shadow: rgba(255, 199, 84, 0.22);
    --theme-page-blur-main: rgba(255, 214, 120, 0.20);
    --theme-page-blur-side-left: rgba(170, 112, 28, 0.28);
    --theme-page-blur-side-right: rgba(170, 112, 28, 0.22);
    --theme-page-fade-main: rgba(255, 223, 154, 0.11);
    --theme-page-fade-left: rgba(104, 66, 16, 0.32);
    --theme-page-fade-right: rgba(104, 66, 16, 0.26);
    --theme-surface-sheen: rgba(255, 241, 210, 0.06);
    --theme-surface-accent-left: rgba(255, 215, 139, 0.09);
    --theme-surface-accent-right: rgba(255, 181, 67, 0.07);
    --theme-surface-shadow: rgba(237, 176, 53, 0.10);
    --theme-surface-ambient: rgba(255, 210, 116, 0.08);
    --theme-before-glow: rgba(255, 227, 169, 0.19);
    --theme-after-glow: rgba(255, 216, 145, 0.12);
    --theme-hero-accent-left: rgba(255, 220, 148, 0.13);
    --theme-hero-accent-right: rgba(255, 179, 61, 0.07);
    --theme-hero-bg-start: rgba(95, 64, 17, 0.92);
    --theme-hero-bg-end: rgba(27, 17, 7, 0.97);
    --theme-hero-shadow: rgba(228, 168, 44, 0.13);
    --theme-hero-shadow-soft: rgba(255, 204, 106, 0.08);
    --theme-panel-accent: rgba(255, 216, 138, 0.08);
    --theme-panel-bg-start: rgba(56, 38, 12, 0.93);
    --theme-panel-bg-end: rgba(20, 12, 6, 0.96);
    --theme-h1: #fff1cf;
    --theme-h1-glow-a: rgba(255, 223, 152, 0.14);
    --theme-h1-glow-b: rgba(255, 183, 74, 0.08);
    --theme-title: #fff2d7;
    --theme-title-glow-a: rgba(255, 227, 174, 0.10);
    --theme-title-glow-b: rgba(255, 190, 82, 0.06);
    --theme-summary-glow-a: rgba(255, 221, 151, 0.15);
    --theme-summary-glow-b: rgba(255, 187, 78, 0.08);
    --theme-item-sheen: rgba(255, 244, 221, 0.06);
    --theme-item-shadow: rgba(255, 187, 75, 0.06);
    --theme-button-top: rgba(255, 255, 255, 0.12);
    --theme-button-border: rgba(255, 239, 202, 0.22);
    --theme-button-shadow: rgba(218, 158, 49, 0.18);
    --theme-button-shadow-soft: rgba(255, 201, 104, 0.14);
    --theme-button-shadow-hover: rgba(218, 158, 49, 0.22);
    --theme-button-shadow-hover-soft: rgba(255, 201, 104, 0.16);
    --theme-link-hover: #fff7e5;
}

.player-profile-page.player-profile-page--silver {
    --girl-bg-top: #47515e;
    --girl-bg-bottom: #0f1218;
    --girl-card-top: rgba(63, 73, 87, 0.84);
    --girl-card-bottom: rgba(15, 19, 27, 0.94);
    --girl-border: rgba(214, 223, 235, 0.18);
    --girl-border-soft: rgba(236, 243, 255, 0.08);
    --girl-text: #eef4ff;
    --girl-text-soft: #b8c2d1;
    --girl-link: #dbe5f5;
    --girl-btn-1: #cfd7e6;
    --girl-btn-2: #9ca8bc;
    --girl-shadow: rgba(188, 200, 219, 0.15);
    --girl-glow: rgba(216, 226, 242, 0.16);
    --theme-petal-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M12 1c5.2 3.7 8.2 7.6 8.2 12.8 0 7-4.5 13.2-8.2 15.2-3.8-2-8.2-8.2-8.2-15.2C3.8 8.6 6.8 4.7 12 1Z' fill='%23edf3fb'/%3E%3Cpath d='M12 5c2.4 2.2 4.1 4.8 4.1 8.3 0 4.4-2.5 8.4-4.1 10-1.7-1.6-4.2-5.6-4.2-10 0-3.5 1.8-6.1 4.2-8.3Z' fill='%23c5cedd' fill-opacity='.82'/%3E%3C/svg%3E");
    --theme-petal-shadow: rgba(214, 224, 240, 0.20);
    --theme-page-blur-main: rgba(216, 226, 242, 0.18);
    --theme-page-blur-side-left: rgba(103, 116, 137, 0.26);
    --theme-page-blur-side-right: rgba(103, 116, 137, 0.20);
    --theme-page-fade-main: rgba(229, 236, 247, 0.10);
    --theme-page-fade-left: rgba(43, 54, 72, 0.30);
    --theme-page-fade-right: rgba(43, 54, 72, 0.24);
    --theme-surface-sheen: rgba(247, 250, 255, 0.05);
    --theme-surface-accent-left: rgba(219, 227, 239, 0.07);
    --theme-surface-accent-right: rgba(177, 189, 208, 0.06);
    --theme-surface-shadow: rgba(186, 196, 214, 0.08);
    --theme-surface-ambient: rgba(211, 221, 237, 0.07);
    --theme-before-glow: rgba(229, 237, 248, 0.17);
    --theme-after-glow: rgba(212, 222, 238, 0.10);
    --theme-hero-accent-left: rgba(224, 232, 243, 0.10);
    --theme-hero-accent-right: rgba(180, 191, 210, 0.06);
    --theme-hero-bg-start: rgba(63, 72, 86, 0.92);
    --theme-hero-bg-end: rgba(13, 16, 23, 0.97);
    --theme-hero-shadow: rgba(171, 183, 204, 0.11);
    --theme-hero-shadow-soft: rgba(216, 226, 242, 0.07);
    --theme-panel-accent: rgba(219, 228, 241, 0.07);
    --theme-panel-bg-start: rgba(39, 47, 59, 0.93);
    --theme-panel-bg-end: rgba(14, 17, 24, 0.96);
    --theme-h1: #f1f5fc;
    --theme-h1-glow-a: rgba(229, 236, 247, 0.13);
    --theme-h1-glow-b: rgba(186, 196, 214, 0.07);
    --theme-title: #f3f7ff;
    --theme-title-glow-a: rgba(233, 240, 250, 0.09);
    --theme-title-glow-b: rgba(190, 200, 217, 0.05);
    --theme-summary-glow-a: rgba(226, 234, 246, 0.13);
    --theme-summary-glow-b: rgba(183, 195, 214, 0.07);
    --theme-item-sheen: rgba(248, 251, 255, 0.05);
    --theme-item-shadow: rgba(184, 195, 213, 0.05);
    --theme-button-top: rgba(255, 255, 255, 0.10);
    --theme-button-border: rgba(237, 243, 252, 0.18);
    --theme-button-shadow: rgba(158, 169, 188, 0.16);
    --theme-button-shadow-soft: rgba(204, 214, 229, 0.12);
    --theme-button-shadow-hover: rgba(158, 169, 188, 0.20);
    --theme-button-shadow-hover-soft: rgba(204, 214, 229, 0.14);
    --theme-link-hover: #ffffff;
}

.player-profile-page.player-profile-page--gold .player-profile-scene,
.player-profile-page.player-profile-page--silver .player-profile-scene {
    display: none;
}

.player-profile-page.player-profile-page--gold::before,
.player-profile-page.player-profile-page--silver::before {
    background:
        radial-gradient(52% 46% at 50% 10%, var(--theme-page-blur-main), transparent 72%),
        radial-gradient(22% 84% at 4% 32%, var(--theme-page-blur-side-left), transparent 74%),
        radial-gradient(22% 84% at 96% 32%, var(--theme-page-blur-side-right), transparent 74%),
        linear-gradient(180deg, var(--theme-page-fade-main), var(--theme-page-fade-left) 34%, rgba(18, 9, 29, 0.05) 100%);
}

.player-profile-page.player-profile-page--gold::after,
.player-profile-page.player-profile-page--silver::after {
    background:
        radial-gradient(34% 40% at 50% 10%, var(--theme-page-fade-main), transparent 80%),
        radial-gradient(28% 52% at 0% 18%, var(--theme-page-fade-left), transparent 74%),
        radial-gradient(28% 52% at 100% 18%, var(--theme-page-fade-right), transparent 74%);
}

.player-profile-page.player-profile-page--gold .page-hero,
.player-profile-page.player-profile-page--gold .hero-panel,
.player-profile-page.player-profile-page--gold .player-section,
.player-profile-page.player-profile-page--gold .player-sidebar-card,
.player-profile-page.player-profile-page--gold .player-summary-card,
.player-profile-page.player-profile-page--silver .page-hero,
.player-profile-page.player-profile-page--silver .hero-panel,
.player-profile-page.player-profile-page--silver .player-section,
.player-profile-page.player-profile-page--silver .player-sidebar-card,
.player-profile-page.player-profile-page--silver .player-summary-card {
    background:
        linear-gradient(180deg, var(--theme-surface-sheen), rgba(255, 244, 249, 0) 26%),
        radial-gradient(circle at 14% 18%, var(--theme-surface-accent-left), transparent 24%),
        radial-gradient(circle at 86% 78%, var(--theme-surface-accent-right), transparent 22%),
        linear-gradient(180deg, var(--girl-card-top), var(--girl-card-bottom)) !important;
    box-shadow:
        0 0 0 1px rgba(255, 235, 245, 0.024) inset,
        0 20px 44px var(--theme-surface-shadow),
        0 0 42px var(--theme-surface-ambient) !important;
}

.player-profile-page.player-profile-page--gold .page-hero::before,
.player-profile-page.player-profile-page--gold .hero-panel::before,
.player-profile-page.player-profile-page--gold .glass-card::before,
.player-profile-page.player-profile-page--silver .page-hero::before,
.player-profile-page.player-profile-page--silver .hero-panel::before,
.player-profile-page.player-profile-page--silver .glass-card::before {
    background: radial-gradient(circle at 28% 24%, var(--theme-before-glow), rgba(255, 204, 232, 0) 68%);
}

.player-profile-page.player-profile-page--gold .page-hero::after,
.player-profile-page.player-profile-page--gold .hero-panel::after,
.player-profile-page.player-profile-page--gold .player-section::after,
.player-profile-page.player-profile-page--gold .player-sidebar-card::after,
.player-profile-page.player-profile-page--gold .player-summary-card::after,
.player-profile-page.player-profile-page--silver .page-hero::after,
.player-profile-page.player-profile-page--silver .hero-panel::after,
.player-profile-page.player-profile-page--silver .player-section::after,
.player-profile-page.player-profile-page--silver .player-sidebar-card::after,
.player-profile-page.player-profile-page--silver .player-summary-card::after {
    background: radial-gradient(circle at center, var(--theme-after-glow), rgba(255, 206, 231, 0) 72%);
}

.player-profile-page.player-profile-page--gold .page-hero,
.player-profile-page.player-profile-page--silver .page-hero {
    background:
        linear-gradient(180deg, rgba(255, 245, 250, 0.06), rgba(255, 245, 250, 0) 22%),
        radial-gradient(circle at 12% 22%, var(--theme-hero-accent-left), transparent 24%),
        radial-gradient(circle at 90% 12%, var(--theme-hero-accent-right), transparent 16%),
        linear-gradient(180deg, var(--theme-hero-bg-start), var(--theme-hero-bg-end)) !important;
    box-shadow:
        0 0 0 1px rgba(255, 233, 244, 0.03) inset,
        0 24px 48px var(--theme-hero-shadow),
        0 0 56px var(--theme-hero-shadow-soft) !important;
}

.player-profile-page.player-profile-page--gold .hero-panel,
.player-profile-page.player-profile-page--silver .hero-panel {
    background:
        linear-gradient(180deg, rgba(255, 245, 250, 0.05), rgba(255, 245, 250, 0) 20%),
        radial-gradient(circle at 24% 18%, var(--theme-panel-accent), transparent 22%),
        linear-gradient(180deg, var(--theme-panel-bg-start), var(--theme-panel-bg-end)) !important;
}

.player-profile-page.player-profile-page--gold.page h1,
.player-profile-page.player-profile-page--silver.page h1 {
    -webkit-text-fill-color: var(--theme-h1) !important;
    color: var(--theme-h1) !important;
    text-shadow:
        0 0 8px var(--theme-h1-glow-a),
        0 0 20px var(--theme-h1-glow-b);
}

.player-profile-page.player-profile-page--gold .player-section h2,
.player-profile-page.player-profile-page--gold .player-sidebar-card h2,
.player-profile-page.player-profile-page--gold .player-summary-card h2,
.player-profile-page.player-profile-page--gold .panel-title,
.player-profile-page.player-profile-page--silver .player-section h2,
.player-profile-page.player-profile-page--silver .player-sidebar-card h2,
.player-profile-page.player-profile-page--silver .player-summary-card h2,
.player-profile-page.player-profile-page--silver .panel-title {
    color: var(--theme-title) !important;
    text-shadow:
        0 0 6px var(--theme-title-glow-a),
        0 0 14px var(--theme-title-glow-b);
}

.player-profile-page.player-profile-page--gold .player-summary-card__value,
.player-profile-page.player-profile-page--silver .player-summary-card__value {
    text-shadow:
        0 0 8px var(--theme-summary-glow-a),
        0 0 18px var(--theme-summary-glow-b);
}

.player-profile-page.player-profile-page--gold .player-fact,
.player-profile-page.player-profile-page--gold .player-section__list li,
.player-profile-page.player-profile-page--gold .player-side-fact,
.player-profile-page.player-profile-page--gold .player-activity-card,
.player-profile-page.player-profile-page--gold .player-activity-cell,
.player-profile-page.player-profile-page--gold .player-activity-card__empty,
.player-profile-page.player-profile-page--gold .dotabuff-stat,
.player-profile-page.player-profile-page--gold .dotabuff-hero-row,
.player-profile-page.player-profile-page--gold .dotabuff-summary-card__empty,
.player-profile-page.player-profile-page--silver .player-fact,
.player-profile-page.player-profile-page--silver .player-section__list li,
.player-profile-page.player-profile-page--silver .player-side-fact,
.player-profile-page.player-profile-page--silver .player-activity-card,
.player-profile-page.player-profile-page--silver .player-activity-cell,
.player-profile-page.player-profile-page--silver .player-activity-card__empty,
.player-profile-page.player-profile-page--silver .dotabuff-stat,
.player-profile-page.player-profile-page--silver .dotabuff-hero-row,
.player-profile-page.player-profile-page--silver .dotabuff-summary-card__empty {
    background:
        linear-gradient(180deg, var(--theme-item-sheen), rgba(255, 241, 248, 0) 26%),
        linear-gradient(180deg, rgba(255, 212, 236, 0.05), var(--theme-item-shadow)) !important;
}

.player-profile-page.player-profile-page--gold .player-links a,
.player-profile-page.player-profile-page--gold .profile-button,
.player-profile-page.player-profile-page--gold .button-link,
.player-profile-page.player-profile-page--gold .hero-button,
.player-profile-page.player-profile-page--silver .player-links a,
.player-profile-page.player-profile-page--silver .profile-button,
.player-profile-page.player-profile-page--silver .button-link,
.player-profile-page.player-profile-page--silver .hero-button {
    background:
        linear-gradient(180deg, var(--theme-button-top), rgba(255, 255, 255, 0) 32%),
        linear-gradient(135deg, var(--girl-btn-1), var(--girl-btn-2)) !important;
    border: 1px solid var(--theme-button-border) !important;
    box-shadow:
        0 12px 24px var(--theme-button-shadow),
        0 0 18px var(--theme-button-shadow-soft) !important;
}

.player-profile-page.player-profile-page--gold .player-links a:hover,
.player-profile-page.player-profile-page--gold .profile-button:hover,
.player-profile-page.player-profile-page--gold .button-link:hover,
.player-profile-page.player-profile-page--gold .hero-button:hover,
.player-profile-page.player-profile-page--silver .player-links a:hover,
.player-profile-page.player-profile-page--silver .profile-button:hover,
.player-profile-page.player-profile-page--silver .button-link:hover,
.player-profile-page.player-profile-page--silver .hero-button:hover {
    box-shadow:
        0 16px 28px var(--theme-button-shadow-hover),
        0 0 22px var(--theme-button-shadow-hover-soft) !important;
}

.player-profile-page.player-profile-page--gold a:not(.profile-button):not(.button-link):not(.hero-button):hover,
.player-profile-page.player-profile-page--silver a:not(.profile-button):not(.button-link):not(.hero-button):hover {
    color: var(--theme-link-hover) !important;
}





















.nav-link--streams-live {
    position: relative;
    padding-right: 1.45rem;
}


.nav-link--streams-live::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.62rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4757;
    box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.55);
    animation: streams-live-pulse 1.8s infinite;
    pointer-events: none;
}


@media (max-width: 820px) {
    .nav-link--streams-live::after {
        right: 0.9rem;
    }
}

@keyframes streams-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.55);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(255, 71, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}




























.feedback-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 110;
    height: 56px;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    padding: 0 12px 0 16px;
    border: 1px solid rgba(169, 158, 255, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(19, 30, 63, 0.95), rgba(11, 19, 40, 0.98));
    color: var(--light);
    box-shadow: 0 18px 38px rgba(1, 8, 22, 0.32);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.feedback-fab:hover,
.feedback-fab:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(169, 158, 255, 0.3);
    box-shadow: 0 22px 42px rgba(35, 47, 120, 0.24);
    outline: none;
}

.feedback-fab__label {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    color: rgba(236, 242, 255, 0.94);
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translateX(10px);
    transition: max-width 0.26s ease, opacity 0.18s ease, transform 0.26s ease;
}

.feedback-fab__icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.94), rgba(108, 92, 231, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.feedback-fab__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feedback-fab:hover .feedback-fab__label,
.feedback-fab:focus-visible .feedback-fab__label {
    max-width: 180px;
    opacity: 1;
    transform: translateX(0);
}

.feedback-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 9, 17, 0.78);
    backdrop-filter: blur(10px);
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.feedback-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.feedback-popup {
    width: min(560px, 100%);
    max-height: min(84vh, 860px);
    overflow: auto;
    padding: 1.35rem;
}

.feedback-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    margin-left: 0;
    z-index: 2;
}

.feedback-popup__header {
    padding-right: 52px;
    margin-bottom: 1rem;
}

.feedback-form {
    display: grid;
    gap: 0.95rem;
}

.feedback-form__group {
    display: grid;
    gap: 0.45rem;
}

.feedback-form__group--captcha {
    gap: 0.7rem;
}

.feedback-form__group label {
    color: #d8ddf6;
    font-weight: 700;
}

.feedback-captcha-shell {
    position: relative;
    min-height: 104px;
    padding: 0.7rem;
    border: 1px solid rgba(196, 203, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(8, 15, 33, 0.96), rgba(5, 11, 24, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(1, 8, 22, 0.14);
}

.feedback-captcha {
    min-height: 90px;
}

.feedback-captcha__hint {
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select {
    width: 100%;
    border: 1px solid rgba(196, 203, 255, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(8, 15, 33, 0.96), rgba(5, 11, 24, 0.98));
    color: var(--light);
    padding: 0.9rem 1rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 10px 24px rgba(1, 8, 22, 0.14);
}

.feedback-form textarea {
    min-height: 132px;
    resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-form select:focus {
    outline: none;
    border-color: rgba(169, 158, 255, 0.36);
    box-shadow:
        0 0 0 4px rgba(108, 92, 231, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}


.feedback-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color-scheme: dark;
    padding-right: 3rem;
    background-image:
        linear-gradient(180deg, rgba(8, 15, 33, 0.96), rgba(5, 11, 24, 0.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%23d8ddff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, 14px 14px;
    background-position: center, right 1rem center;
}

.feedback-form select:hover {
    border-color: rgba(169, 158, 255, 0.24);
}

.feedback-form select:invalid {
    color: var(--muted);
}

.feedback-form select option {
    background: #0f1831;
    color: #eef2ff;
}

.feedback-form select option[value=""] {
    background: #0f1831;
    color: #97a2c9;
}

.feedback-form select option:checked {
    background: #17377e;
    color: #ffffff;
}


.feedback-form select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 var(--light);
}

.feedback-form__actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.2rem;
}

.feedback-form__submit {
    border: none;
    border-radius: 999px;
    padding: 0.88rem 1.35rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(108, 92, 231, 0.18);
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

.feedback-form__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.feedback-form__submit:disabled {
    opacity: 0.7;
    cursor: default;
}

.feedback-toast {
    position: fixed;
    top: 88px;
    left: 50%;
    transform: translate(-50%, -14px);
    min-width: 280px;
    max-width: calc(100vw - 24px);
    padding: 0.9rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(123, 232, 166, 0.24);
    background: linear-gradient(180deg, rgba(24, 48, 39, 0.96), rgba(10, 22, 18, 0.98));
    color: #dfffea;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    z-index: 140;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.feedback-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.feedback-toast.is-hiding {
    opacity: 0;
    transform: translate(-50%, -8px);
}

.feedback-toast.is-error {
    border-color: rgba(255, 122, 131, 0.22);
    background: linear-gradient(180deg, rgba(57, 24, 33, 0.96), rgba(24, 10, 15, 0.98));
    color: #ffd6da;
}

body.feedback-modal-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .feedback-popup-overlay {
        padding: 12px;
    }

    .feedback-popup {
        max-height: calc(100vh - 24px);
        padding: 1rem;
    }

    .feedback-fab {
        right: 14px;
        bottom: 14px;
        width: 56px;
        min-width: 56px;
        padding-inline: 12px;
        justify-content: center;
    }

    .feedback-fab__label {
        display: none;
    }
}

@media (max-width: 560px) {
    .feedback-fab {
        right: 12px;
        bottom: 12px;
        height: 52px;
        min-width: 52px;
    }

    .feedback-toast {
        top: 78px;
        min-width: 0;
        width: calc(100vw - 20px);
    }
}


.rules-layout--full {
    gap: 0.9rem;
}

.rules-hero {
    padding: 1.35rem 1.5rem;
    background: linear-gradient(180deg, rgba(24, 32, 59, 0.88), rgba(11, 18, 34, 0.92));
}

.rules-hero::before,
.rules-grid--modern .rules-card::before {
    display: none;
}

.rules-hero__copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.45rem;
}

.rules-hero .page-hero__lead {
    max-width: 780px;
}

.rules-grid--modern {
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.rules-grid--modern .rules-card,
.rules-grid--modern .rules-card--wide {
    grid-column: auto;
}

.rules-grid--modern .rules-card,
.rules-grid--modern .rules-card--danger,
.rules-grid--modern .rules-card--accent {
    padding: 1.15rem;
    background: linear-gradient(180deg, rgba(24, 32, 59, 0.82), rgba(11, 18, 34, 0.88));
}

.rule-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.rule-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.18);
    border-color: rgba(196, 203, 255, 0.14);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: none;
    font-size: 0.82rem;
}

.rule-card__head h2 {
    margin: 0;
    font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.rule-items {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    list-style: none;
}

.rule-items li {
    position: relative;
    display: block;
    min-height: 0;
    padding: 0.65rem 0.75rem 0.65rem 4.2rem;
    border-radius: 13px;
    border: 1px solid rgba(196, 203, 255, 0.09);
    background: rgba(255, 255, 255, 0.025);
    color: #dce2fb;
    line-height: 1.5;
}

.rule-items li::before {
    content: attr(data-rule);
    position: absolute;
    top: 0.72rem;
    left: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 0;
    padding: 0.1rem 0;
    border: 0;
    background: transparent;
    color: #aeb8df;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.rule-items li strong {
    color: #fff;
    font-weight: 800;
}

.rule-items li > div {
    min-width: 0;
}

.rule-settings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.65rem;
    padding: 0;
    list-style: none;
}

.rule-settings li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem;
    min-height: 0;
    padding: 0.6rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(196, 203, 255, 0.07);
    background: rgba(8, 17, 29, 0.28);
}

.rule-settings li::before {
    display: none;
}

.rule-settings span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rule-settings strong {
    color: #fff;
}

@media (max-width: 820px) {
    .rules-hero {
        padding: 1rem;
    }

    .rule-card__head {
        align-items: flex-start;
    }

    .rule-items li {
        padding-left: 3.6rem;
    }

    .rule-settings {
        grid-template-columns: 1fr;
    }
}

/* === DPL REDESIGN MERGED INTO CORE STYLE === */
:root {
    --dpl-gold-strong: #d9ad58;
    --dpl-gold: #c99a42;
    --dpl-gold-soft: #f0d69a;
    --dpl-gold-faint: rgba(217, 173, 88, 0.16);
    --dpl-gold-line: rgba(217, 173, 88, 0.24);
    --dpl-black: #060504;
    --dpl-black-soft: #0c0a08;
    --dpl-surface: rgba(15, 12, 9, 0.94);
    --dpl-surface-strong: rgba(10, 8, 6, 0.98);
    --dpl-surface-soft: rgba(22, 18, 14, 0.86);
    --dpl-text: #f7edd2;
    --dpl-muted: #b8a57d;
    --dpl-muted-strong: #8f7a50;
    --dpl-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
    --dpl-shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.34);
    --primary: var(--dpl-gold);
    --primary-soft: var(--dpl-gold-faint);
    --dark: var(--dpl-black-soft);
    --dark-elevated: #16110d;
    --darker: var(--dpl-black);
    --light: var(--dpl-text);
    --muted: var(--dpl-muted);
    --accent: #f2c46f;
    --accent-soft: rgba(242, 196, 111, 0.18);
    --success: #8acb68;
    --border: rgba(217, 173, 88, 0.16);
    --line: rgba(217, 173, 88, 0.2);
    --shadow: var(--dpl-shadow);
    --shadow-soft: var(--dpl-shadow-soft);
}

html {
    background: #040302;
}

body {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 50% -8%, rgba(242, 196, 111, 0.16), transparent 28%),
        radial-gradient(circle at 0% 18%, rgba(201, 154, 66, 0.12), transparent 26%),
        radial-gradient(circle at 100% 18%, rgba(201, 154, 66, 0.12), transparent 26%),
        linear-gradient(180deg, #040302 0%, #090705 52%, #0b0907 100%);
    color: var(--dpl-text);
    opacity: 0;
    transform: translateY(10px);
    animation: dpl-page-enter 0.48s cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
}

body::before {
    background-image:
        linear-gradient(rgba(217, 173, 88, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 173, 88, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, #000 32%, transparent 100%);
    opacity: 0.6;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 16%, rgba(242, 196, 111, 0.07), transparent 18%),
        radial-gradient(circle at 88% 16%, rgba(242, 196, 111, 0.07), transparent 18%),
        radial-gradient(circle at 50% 0%, rgba(255, 232, 177, 0.08), transparent 18%);
    opacity: 0.95;
}

body.is-page-leaving {
    animation: none;
    opacity: 0;
    transform: translateY(12px) scale(0.995);
    filter: saturate(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

@keyframes dpl-page-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.header {
    background:
        linear-gradient(180deg, rgba(9, 7, 5, 0.94), rgba(7, 5, 4, 0.8)),
        rgba(7, 5, 4, 0.82);
    border-bottom: 1px solid rgba(217, 173, 88, 0.16);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.header::after {
    content: '';
    position: absolute;
    left: max(16px, calc(50% - 640px));
    right: max(16px, calc(50% - 640px));
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 196, 111, 0.68), transparent);
}

.header__inner {
    width: min(var(--container), calc(100% - 40px));
    padding: 1rem 0 1.05rem;
    gap: 1.2rem;
}

.brand {
    gap: 1rem;
}

.brand__mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.22), rgba(242, 196, 111, 0.04) 62%, transparent 72%);
    border: 1px solid rgba(242, 196, 111, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(255, 230, 167, 0.08),
        0 0 0 6px rgba(217, 173, 88, 0.05),
        0 0 28px rgba(217, 173, 88, 0.08);
    padding: 0.35rem;
}

.brand__mark img,
.brand__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand__title,
.brand__subtitle,
.nav-link,
.nav-button,
.hero-button,
.donate-button,
.profile-button,
.button-link,
.panel-title,
.popup-title,
.page h1,
.hero-title,
.auth-form h1,
.stream-title,
.rules-card h2,
.rules-card h3 {
    font-family: 'Rajdhani', sans-serif;
}

.brand__title {
    font-size: 1.22rem;
    letter-spacing: 0.22em;
    color: var(--dpl-text);
}

.brand__subtitle {
    color: var(--dpl-muted-strong);
    font-size: 0.76rem;
    letter-spacing: 0.22em;
}

.header__nav {
    gap: 0.45rem;
}

.nav-link,
.nav-button,
.hero-button,
.donate-button,
.profile-button,
.button-link {
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        color 0.22s ease;
}

.nav-link {
    padding: 0.74rem 1.06rem;
    color: var(--dpl-muted);
    border-color: transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--dpl-text);
    background: linear-gradient(180deg, rgba(217, 173, 88, 0.16), rgba(217, 173, 88, 0.05));
    border-color: rgba(217, 173, 88, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 229, 168, 0.06);
}

.nav-button,
.captain-button,
.button-link {
    background: linear-gradient(135deg, #20180f, #0f0b08);
    border: 1px solid rgba(217, 173, 88, 0.18);
    color: var(--dpl-text);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.nav-button--discord,
.nav-button--cabinet,
.nav-button--ghost,
.hero-button,
.profile-button,
.request-replacement-btn {
    background: linear-gradient(135deg, rgba(23, 18, 13, 0.94), rgba(12, 9, 7, 0.98));
    border-color: rgba(217, 173, 88, 0.18);
    color: var(--dpl-text);
}

.hero-button--primary,
.donate-button,
.add-player-btn,
.change-name-btn,
.nav-button--logout {
    background: linear-gradient(135deg, #f1d99c 0%, #d0a04a 36%, #9d6d1f 100%);
    border-color: rgba(255, 237, 182, 0.22);
    color: #120d07;
    box-shadow:
        inset 0 1px 0 rgba(255, 249, 230, 0.45),
        0 18px 30px rgba(118, 79, 19, 0.28);
}

.hero-button--youtube svg {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.nav-button:hover,
.hero-button:hover,
.donate-button:hover,
.profile-button:hover,
.button-link:hover,
.add-player-btn:hover,
.change-name-btn:hover,
.request-replacement-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24);
}

main {
    width: min(var(--container), calc(100% - 40px));
    padding: 2.2rem 0 4.2rem;
}

.page-hero,
.hero-panel,
.glass-card,
.popup,
.stream-card,
.rules-card,
.team-info,
.captain-profile,
.players-list,
.auth-form,
.match-form,
.streams-empty,
.stat-card,
.schedule-card,
.info-card,
.player-activity-card,
.player-sidebar-card,
.player-summary-card,
.player-section,
.error404-card,
.error404-meta-card {
    background:
        linear-gradient(180deg, rgba(16, 13, 10, 0.96), rgba(10, 8, 6, 0.98));
    border: 1px solid rgba(217, 173, 88, 0.14);
    box-shadow: var(--dpl-shadow-soft);
}

.page-hero,
.hero-panel,
.glass-card,
.popup,
.stream-card,
.rules-card,
.auth-form,
.player-sidebar-card,
.player-summary-card,
.player-section,
.error404-card {
    backdrop-filter: blur(14px);
}

.page-hero::before,
.hero-panel::before,
.popup::before,
.rules-card::before,
.stream-card::before,
.glass-card::before,
.player-sidebar-card::before,
.player-summary-card::before,
.player-section::before {
    inset: 26px 32px auto 32px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 196, 111, 0.7), transparent);
}

.page-hero {
    padding: 2.2rem;
}

.page-hero__grid {
    gap: 1.8rem;
}

.hero-copy {
    gap: 1.8rem;
}

.hero-badge,
.section-kicker,
.round-pill,
.match-tag,
.team-tag,
.rules-tag,
.schedule-tag {
    background: rgba(217, 173, 88, 0.08);
    border-color: rgba(217, 173, 88, 0.2);
    color: var(--dpl-gold-soft);
}

.page h1,
.hero-title,
.auth-form h1 {
    color: var(--dpl-text);
    background: none;
    -webkit-text-fill-color: initial;
    line-height: 0.9;
    letter-spacing: 0.11em;
    text-shadow: 0 0 18px rgba(242, 196, 111, 0.08);
}

.hero-copy p,
.page-hero__lead,
.text-muted,
.popup-subtitle,
.rules-intro,
.streams-intro,
.page-hero__meta,
.bracket-description,
.rules-content,
.stream-status,
.footer-copy {
    color: var(--dpl-muted);
}

.hero-meta,
.hero-stats {
    gap: 1rem;
}

.stat-card,
.info-card,
.schedule-card,
.compact-schedule__item,
.home-highlight-card,
.participants-team,
.participants-team__player,
.player-base-card,
.player-fact,
.player-side-fact,
.dotabuff-stat,
.dotabuff-hero-row,
.dotabuff-summary-card__empty,
.player-activity-cell,
.rule-items li,
.rule-settings li,
.error404-meta-card,
.player-base-card__result {
    background: linear-gradient(180deg, rgba(24, 19, 14, 0.86), rgba(11, 9, 7, 0.96));
    border: 1px solid rgba(217, 173, 88, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 234, 181, 0.04);
}

.stat-card__value,
.player-summary-card__value,
.player-base-card__result-value,
.schedule-card__time {
    color: var(--dpl-text);
    text-shadow: 0 0 16px rgba(242, 196, 111, 0.06);
}

.hero-fund-strip {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(217, 173, 88, 0.14);
    background: linear-gradient(135deg, rgba(18, 14, 10, 0.94), rgba(10, 8, 6, 0.98));
    box-shadow: var(--dpl-shadow-soft);
}

.compact-panel__head,
.section-title-row,
.rule-card__head,
.section-header {
    align-items: center;
}

.panel-title,
.section-title,
.round-title,
.popup-title,
.stream-title,
.rules-card h2,
.rules-card h3,
.players-list h2,
.captain-profile h2,
.team-info h2 {
    color: var(--dpl-text);
    letter-spacing: 0.08em;
}

.home-highlights__grid,
.players-grid,
.streams-container {
    gap: 1.2rem;
}

.home-highlight-card,
.player-base-card {
    padding: 1.2rem;
    border-radius: 24px;
}

.player-base-card__badge {
    background: rgba(217, 173, 88, 0.08);
    color: var(--dpl-gold-soft);
    border: 1px solid rgba(217, 173, 88, 0.16);
}

.player-card-actions .hero-button,
.player-base-card__link {
    width: 100%;
}

.player-activity-card__head strong,
.dotabuff-summary-card__footer,
.players-progress,
.players-controls__meta {
    color: var(--dpl-muted);
}

.player-activity-cell--win {
    background: rgba(110, 179, 66, 0.85);
}

.player-activity-cell--loss {
    background: rgba(226, 77, 70, 0.92);
}

.player-activity-cell--even {
    background: rgba(214, 155, 49, 0.92);
}

.player-activity-cell--empty {
    background: rgba(255, 255, 255, 0.02);
}

.popup-overlay {
    background: rgba(2, 2, 1, 0.78);
    backdrop-filter: blur(14px);
}

.popup-close {
    border-color: rgba(217, 173, 88, 0.16);
    background: rgba(255, 255, 255, 0.02);
}

.participants-team__name,
.participants-team__head h3,
.match-id {
    color: var(--dpl-text);
}

.participants-team__role,
.replacement-chip,
.section-help {
    background: rgba(217, 173, 88, 0.1);
    border-color: rgba(217, 173, 88, 0.18);
    color: var(--dpl-gold-soft);
}

.section-help {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.streams-empty {
    color: var(--dpl-muted);
}

.rules-card {
    gap: 1.2rem;
}

.rule-card__number {
    color: #130e07;
    background: linear-gradient(135deg, #f1d99c, #c9963b);
    box-shadow: inset 0 1px 0 rgba(255, 249, 231, 0.38);
}

.rule-items {
    gap: 0.85rem;
}

.rule-items li {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    color: var(--dpl-text);
}

.stream-iframe {
    border: 1px solid rgba(217, 173, 88, 0.12);
    background: rgba(255, 255, 255, 0.02);
}

.error404-badge,
.error404-kicker {
    color: var(--dpl-gold-soft);
}

.error404-title {
    color: var(--dpl-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

footer {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto 2.2rem;
}

.footer-inner,
.footer-inner--compact {
    padding: 1.25rem 1.4rem;
    border-radius: 28px;
    border: 1px solid rgba(217, 173, 88, 0.14);
    background: linear-gradient(180deg, rgba(12, 9, 7, 0.98), rgba(8, 6, 5, 0.98));
    box-shadow: var(--dpl-shadow-soft);
}

.footer-copy {
    display: grid;
    gap: 0.16rem;
    color: var(--dpl-muted);
}

.footer-copy strong {
    color: var(--dpl-text);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
}

.footer-copy span {
    color: var(--dpl-muted-strong);
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links a {
    color: var(--dpl-muted);
}

.footer-links a:hover {
    color: var(--dpl-text);
}

.footer-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 173, 88, 0.16);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.footer-partner__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2d79b, #c28e35);
    box-shadow: 0 0 16px rgba(217, 173, 88, 0.28);
}

.footer-partner__text {
    display: grid;
    gap: 0.08rem;
}

.footer-partner__label {
    display: none;
}

.footer-partner__value {
    color: var(--dpl-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-partner img {
    display: none;
}

.mobile-menu-toggle {
    border: 1px solid rgba(217, 173, 88, 0.16);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle__line {
    background: var(--dpl-text);
}

.mobile-drawer__panel {
    background:
        linear-gradient(180deg, rgba(14, 11, 8, 0.98), rgba(8, 6, 5, 0.98));
    border-left: 1px solid rgba(217, 173, 88, 0.12);
}

.mobile-drawer__footer,
.mobile-drawer__brand .brand__subtitle {
    color: var(--dpl-muted);
}

.mobile-drawer__close {
    border-color: rgba(217, 173, 88, 0.16);
}

.mobile-drawer__close span {
    background: var(--dpl-text);
}

.mobile-drawer__link,
.mobile-drawer__action {
    border-color: rgba(217, 173, 88, 0.14);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .page-hero__grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 820px) {
    main,
    footer,
    .header__inner {
        width: min(var(--container), calc(100% - 28px));
    }

    .page-hero {
        padding: 1.5rem;
    }

    .hero-meta,
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .footer-inner,
    .footer-inner--compact {
        padding: 1rem;
    }
}

@media (max-width: 560px) {
    .brand__mark {
        width: 50px;
        height: 50px;
    }

    .brand__title {
        font-size: 1.06rem;
    }

    .brand__subtitle {
        font-size: 0.68rem;
    }

    .page h1,
    .hero-title,
    .auth-form h1 {
        letter-spacing: 0.08em;
    }

    .footer-partner {
        width: 100%;
        justify-content: center;
    }
}

.page--dpl-home {
    gap: 1.8rem;
}

.page--dpl-home .page-hero--dpl-home {
    min-height: 580px;
    background:
        radial-gradient(circle at 18% 18%, rgba(242, 196, 111, 0.14), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(242, 196, 111, 0.1), transparent 18%),
        linear-gradient(135deg, rgba(18, 14, 10, 0.96), rgba(8, 6, 5, 0.98));
}

.page--dpl-home .page-hero--dpl-home::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: calc(var(--radius-lg) - 6px);
    border: 1px solid rgba(217, 173, 88, 0.08);
    pointer-events: none;
}

.page--dpl-home .hero-copy {
    justify-content: space-between;
}

.page--dpl-home .hero-copy > :first-child {
    display: grid;
    gap: 0.95rem;
    max-width: 760px;
}

.page--dpl-home .hero-title {
    font-size: clamp(4.6rem, 8vw, 8rem);
    letter-spacing: 0.18em;
}

.page--dpl-home .hero-copy p {
    max-width: 620px;
    font-size: 1.12rem;
    line-height: 1.7;
}

.hero-signal-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-signal-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.68rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 173, 88, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: var(--dpl-muted);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.page--dpl-home .hero-actions {
    gap: 0.9rem;
}

.page--dpl-home .hero-actions > * {
    min-width: 188px;
}

.page--dpl-home .hero-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page--dpl-home .stat-card {
    min-height: 132px;
    display: grid;
    align-content: space-between;
}

.page--dpl-home .stat-card__value {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
}

.page--dpl-home .stat-card__label {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page--dpl-home .hero-fund-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}

.page--dpl-home .hero-fund-strip__total {
    min-height: 106px;
    display: grid;
    align-content: center;
}

.page--dpl-home .hero-fund-strip__value {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.hero-panel--dpl-home {
    display: grid;
    align-content: space-between;
    gap: 1.25rem;
}

.hero-panel__signal-list {
    display: grid;
    gap: 0.75rem;
}

.hero-panel__signal-item {
    display: grid;
    gap: 0.42rem;
    padding: 0.95rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(217, 173, 88, 0.12);
    background: linear-gradient(180deg, rgba(24, 19, 14, 0.86), rgba(11, 9, 7, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 234, 181, 0.04);
}

.hero-panel__signal-label {
    color: var(--dpl-muted-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-panel__signal-item strong {
    color: var(--dpl-text);
    font-size: 0.96rem;
    line-height: 1.55;
}

.hero-panel--dpl-home .compact-panel__head {
    margin-bottom: 0.3rem;
}

.hero-panel--dpl-home .compact-schedule {
    gap: 0.85rem;
}

.hero-panel--dpl-home .compact-schedule__item {
    min-height: 118px;
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1rem 1.05rem;
}

.hero-panel--dpl-home .compact-schedule__item strong {
    font-size: 1.35rem;
    line-height: 1.15;
}

.dpl-hero-emblem {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem;
    border-radius: 24px;
    border: 1px solid rgba(217, 173, 88, 0.12);
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.08), transparent 72%),
        linear-gradient(135deg, rgba(20, 15, 11, 0.96), rgba(9, 7, 5, 0.98));
}

.dpl-hero-emblem__mark {
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(217, 173, 88, 0.18);
    background: radial-gradient(circle at center, rgba(242, 196, 111, 0.14), rgba(242, 196, 111, 0.02) 70%, transparent 78%);
    box-shadow: inset 0 0 40px rgba(242, 196, 111, 0.04);
}

.dpl-hero-emblem__mark img {
    width: 78%;
    height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(242, 196, 111, 0.12));
}

.dpl-hero-emblem__copy {
    display: grid;
    gap: 0.35rem;
}

.dpl-hero-emblem__label {
    color: var(--dpl-muted-strong);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dpl-hero-emblem__copy strong {
    font-family: 'Rajdhani', sans-serif;
    color: var(--dpl-text);
    font-size: 1.22rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dpl-hero-emblem__copy p {
    color: var(--dpl-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-highlights--dpl {
    padding: 1.6rem;
}

.home-highlights--dpl .home-highlights__intro {
    display: grid;
    gap: 0.55rem;
    max-width: 740px;
}

.home-highlights--dpl .home-highlights__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.1rem;
}

.home-highlights--dpl .home-highlight-card {
    min-height: 220px;
    display: grid;
    align-content: start;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
}

.home-highlights--dpl .home-highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 232, 177, 0.03), transparent 36%);
    pointer-events: none;
}

.home-highlights--dpl .home-highlight-card h3 {
    position: relative;
    z-index: 1;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.34rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-highlights--dpl .home-highlight-card p {
    position: relative;
    z-index: 1;
    color: var(--dpl-muted);
    line-height: 1.65;
}

.page--dpl-players {
    gap: 1.6rem;
}

.page--dpl-players .page-hero--dpl-players {
    background:
        radial-gradient(circle at 18% 18%, rgba(242, 196, 111, 0.11), transparent 24%),
        linear-gradient(135deg, rgba(18, 14, 10, 0.96), rgba(8, 6, 5, 0.98));
}

.page--dpl-players .player-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.page--dpl-players .player-summary-card {
    min-height: 132px;
    display: grid;
    align-content: center;
    gap: 0.55rem;
}

.page--dpl-players .player-summary-card__label {
    color: var(--dpl-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-panel--dpl-search {
    min-height: 100%;
}

.hero-panel--dpl-search .players-search {
    display: grid;
    gap: 0.9rem;
}

.hero-panel--dpl-search .players-search__row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.hero-panel--dpl-search .players-search__row input,
.hero-panel--dpl-search .players-search__row button {
    min-height: 56px;
}

.hero-panel--dpl-search .players-search__row button {
    border-radius: 18px;
    border: 1px solid rgba(255, 237, 182, 0.22);
    background: linear-gradient(135deg, #f1d99c 0%, #d0a04a 36%, #9d6d1f 100%);
    color: #120d07;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 249, 230, 0.45), 0 18px 30px rgba(118, 79, 19, 0.2);
}

.page--dpl-players .players-base-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}

.page--dpl-players .player-base-card {
    min-height: 100%;
    border-radius: 28px;
    padding: 1.25rem;
    gap: 1rem;
}

.page--dpl-players .player-base-card__top {
    align-items: flex-start;
}

.page--dpl-players .player-base-card__title h2 {
    font-size: 1.82rem;
    letter-spacing: 0.06em;
}

.page--dpl-players .player-base-card__subtitle {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dpl-muted);
    font-size: 0.8rem;
}

.page--dpl-players .player-base-card__result {
    min-height: 104px;
    align-content: center;
}

.page--dpl-players .player-base-card__result-label {
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page--dpl-players .player-base-card__links {
    gap: 0.75rem;
}

.page--dpl-players .player-card-actions {
    margin-top: auto;
}

.page--dpl-player {
    gap: 1.6rem;
}

.page--dpl-player .page-hero--dpl-player {
    background:
        radial-gradient(circle at 18% 16%, rgba(242, 196, 111, 0.12), transparent 22%),
        linear-gradient(135deg, rgba(18, 14, 10, 0.96), rgba(8, 6, 5, 0.98));
}

.page--dpl-player .page-hero--dpl-player .page-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 1.2rem;
    align-items: start;
}

.page--dpl-player .player-facts {
    gap: 0.75rem;
}

.page--dpl-player .player-fact {
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1rem;
}

.page--dpl-player .player-links {
    gap: 0.8rem;
}

.page--dpl-player .player-links a {
    min-width: 140px;
}

.player-intel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.player-intel-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.45rem;
    min-height: 96px;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(217, 173, 88, 0.12);
    background: linear-gradient(180deg, rgba(24, 19, 14, 0.86), rgba(11, 9, 7, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 234, 181, 0.04);
}

.player-intel-card::after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.9rem;
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.68), transparent);
}

.player-intel-card__label {
    position: relative;
    z-index: 1;
    padding-top: 0.28rem;
    color: var(--dpl-muted-strong);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.player-intel-card__value {
    position: relative;
    z-index: 1;
    color: var(--dpl-text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.46rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.page--dpl-player .player-activity-card {
    margin-top: 0.2rem;
    padding: 1.2rem;
    border-radius: 24px;
}

.hero-panel--dpl-summary {
    gap: 1rem;
    padding-bottom: 0.35rem;
}

.page--dpl-player .dotabuff-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.page--dpl-player .dotabuff-stat {
    min-height: 126px;
    padding: 0.95rem 1rem;
}

.page--dpl-player .dotabuff-stat__label {
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page--dpl-player .dotabuff-stat__value {
    font-size: 2rem;
}

.page--dpl-player .dotabuff-heroes {
    display: grid;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
}

.page--dpl-player .dotabuff-heroes h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page--dpl-player .dotabuff-hero-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.9rem;
    align-items: center;
}

.page--dpl-player .dotabuff-heroes__list {
    display: grid;
    gap: 0.75rem;
    padding-bottom: 0.2rem;
}

.player-profile-layout--dpl {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1rem;
}

.page--dpl-player .player-profile-main,
.page--dpl-player .player-profile-aside {
    display: grid;
    gap: 1rem;
}

.page--dpl-player .player-profile-card {
    border-radius: 28px;
    overflow: hidden;
}

.page--dpl-player .player-profile-card h2 {
    margin-bottom: 1rem;
}

.page--dpl-player .player-section__list {
    gap: 0.8rem;
}

.page--dpl-player .player-section__list li {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(217, 173, 88, 0.1);
    background: linear-gradient(180deg, rgba(24, 19, 14, 0.86), rgba(11, 9, 7, 0.96));
}

.page--dpl-player .player-sidebar-card__grid {
    gap: 0.8rem;
}

.page--dpl-player .player-side-fact {
    min-height: 94px;
    display: grid;
    align-content: start;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
}

.winner-card {
    border-radius: 24px;
    border: 1px solid rgba(217, 173, 88, 0.12);
    background: linear-gradient(180deg, rgba(19, 15, 11, 0.96), rgba(8, 6, 5, 0.98));
    box-shadow: var(--dpl-shadow-soft);
}

.winner-card__winner {
    color: var(--dpl-text);
}

.winner-card__badge,
.winner-card__player,
.winner-card__details summary {
    border-color: rgba(217, 173, 88, 0.14);
}

@media (max-width: 1180px) {
    .page--dpl-home .page-hero--dpl-home,
    .page--dpl-players .page-hero--dpl-players,
    .page--dpl-player .page-hero--dpl-player {
        min-height: auto;
    }

    .page--dpl-player .page-hero--dpl-player .page-hero__grid,
    .player-profile-layout--dpl {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .home-highlights--dpl .home-highlights__grid {
        grid-template-columns: 1fr;
    }

    .page--dpl-home .hero-meta,
    .page--dpl-players .player-summary-grid,
    .page--dpl-player .dotabuff-summary-grid {
        grid-template-columns: 1fr;
    }

    .page--dpl-home .hero-fund-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .page--dpl-home .hero-title {
        font-size: clamp(3.2rem, 17vw, 4.6rem);
    }

    .page--dpl-home .hero-actions > * {
        width: 100%;
    }

    .dpl-hero-emblem {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dpl-hero-emblem__mark {
        margin: 0 auto;
    }
}

/* Stage 2: deeper public-page polish */

.page--dpl-home .page-hero--dpl-home,
.page--dpl-players .page-hero--dpl-players,
.page--dpl-player .page-hero--dpl-player {
    position: relative;
    overflow: hidden;
}

.page--dpl-player .page-hero--dpl-player {
    overflow: visible;
}

.page--dpl-home .page-hero--dpl-home::before,
.page--dpl-players .page-hero--dpl-players::before,
.page--dpl-player .page-hero--dpl-player::before {
    content: '';
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(242, 196, 111, 0.14);
    opacity: 0.8;
}

.page--dpl-home .page-hero--dpl-home::before {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -210px;
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.09), transparent 54%),
        conic-gradient(from 180deg, rgba(242, 196, 111, 0.18), transparent 22%, transparent 74%, rgba(242, 196, 111, 0.18));
    box-shadow: inset 0 0 0 1px rgba(255, 230, 167, 0.05);
}

.page--dpl-home .page-hero--dpl-home .page-hero__grid--compact {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: stretch;
}

.page--dpl-home .hero-copy {
    position: relative;
    z-index: 1;
}

.page--dpl-home .hero-copy > :first-child {
    position: relative;
    padding-bottom: 0.4rem;
}

.page--dpl-home .hero-copy > :first-child::after {
    content: '';
    display: block;
    width: min(220px, 36%);
    height: 1px;
    margin-top: 0.15rem;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.75), rgba(242, 196, 111, 0.08));
}

.page--dpl-home .hero-copy p {
    color: #d8c59f;
}

.page--dpl-home .hero-actions {
    flex-wrap: wrap;
}

.page--dpl-home .hero-actions .hero-button,
.page--dpl-home .hero-actions .donate-button {
    min-height: 58px;
    border-radius: 18px;
}

.page--dpl-home .stat-card,
.page--dpl-players .player-summary-card {
    position: relative;
    overflow: hidden;
}

.page--dpl-home .stat-card::after,
.page--dpl-players .player-summary-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 232, 177, 0.06), transparent 35%);
    pointer-events: none;
}

.page--dpl-home .stat-card__label,
.page--dpl-players .player-summary-card__label {
    color: var(--dpl-muted-strong);
}

.page--dpl-home .hero-fund-strip {
    position: relative;
}

.page--dpl-home .hero-fund-strip::after {
    content: '';
    position: absolute;
    inset: auto 1rem 0.9rem auto;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 196, 111, 0.48));
}

.hero-panel--dpl-home,
.hero-panel--dpl-search,
.hero-panel--dpl-summary {
    position: relative;
    overflow: visible;
}

.hero-panel--dpl-home::after,
.hero-panel--dpl-search::after,
.hero-panel--dpl-summary::after {
    content: '';
    position: absolute;
    inset: auto auto -72px -72px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(242, 196, 111, 0.14), transparent 70%);
    pointer-events: none;
}

.hero-panel--dpl-home .compact-schedule__item {
    position: relative;
    overflow: hidden;
}

.hero-panel--dpl-home .compact-schedule__item::after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.78), transparent);
}

.hero-panel--dpl-home .compact-schedule__tag {
    color: var(--dpl-muted-strong);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dpl-hero-emblem {
    position: relative;
    overflow: hidden;
}

.dpl-hero-emblem::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 232, 177, 0.1), transparent 28%),
        linear-gradient(135deg, transparent 0%, rgba(242, 196, 111, 0.03) 100%);
    pointer-events: none;
}

.dpl-hero-emblem__copy {
    position: relative;
    z-index: 1;
}

.home-highlights--dpl {
    position: relative;
    overflow: hidden;
}

.home-highlights--dpl::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -220px;
    border-radius: 50%;
    border: 1px solid rgba(242, 196, 111, 0.09);
    box-shadow: inset 0 0 0 1px rgba(255, 230, 167, 0.03);
    pointer-events: none;
}

.home-highlights--dpl .home-highlights__intro {
    position: relative;
    z-index: 1;
}

.home-highlights--dpl .home-highlight-card {
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.home-highlights--dpl .home-highlight-card::after {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    color: rgba(242, 196, 111, 0.14);
}

.home-highlights--dpl .home-highlight-card:nth-child(1)::after {
    content: '01';
}

.home-highlights--dpl .home-highlight-card:nth-child(2)::after {
    content: '02';
}

.home-highlights--dpl .home-highlight-card:nth-child(3)::after {
    content: '03';
}

.home-highlights--dpl .home-highlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 196, 111, 0.2);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
}

.participants-popup,
.winner-history-popup {
    border-radius: 30px;
    overflow: hidden;
}

.participants-popup::after,
.winner-history-popup::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 84% 14%, rgba(242, 196, 111, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(255, 232, 177, 0.02), transparent 18%);
    pointer-events: none;
}

.winner-history-list,
.participants-team-list {
    position: relative;
    z-index: 1;
}

.winner-history-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.participants-team-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.participants-team {
    position: relative;
    overflow: hidden;
    padding: 1.2rem;
    border-radius: 24px;
}

.participants-team::before,
.winner-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 232, 177, 0.05), transparent 36%);
    pointer-events: none;
}

.participants-team__head,
.participants-team__player,
.winner-card__top {
    position: relative;
    z-index: 1;
}

.participants-team__head {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(217, 173, 88, 0.12);
}

.participants-team__players {
    display: grid;
    gap: 0.8rem;
}

.participants-team__player {
    min-height: 84px;
    align-items: center;
}

.participants-team__profile {
    min-width: 116px;
    justify-content: center;
}

.winner-card {
    position: relative;
    min-height: 100%;
    padding: 1.2rem;
}

.winner-card__winner {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.72rem;
    letter-spacing: 0.06em;
}

.winner-card__note {
    max-width: 62ch;
    line-height: 1.6;
}

.winner-card__details summary {
    min-height: 46px;
    align-items: center;
}

.page--dpl-players .page-hero--dpl-players::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -180px;
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.08), transparent 54%),
        conic-gradient(from 0deg, rgba(242, 196, 111, 0.16), transparent 26%, transparent 72%, rgba(242, 196, 111, 0.1));
}

.page--dpl-players .page-hero--dpl-players .page-hero__grid--compact {
    grid-template-columns: minmax(0, 1.38fr) minmax(360px, 0.62fr);
    align-items: start;
    gap: 1.5rem;
}

.page--dpl-players .hero-panel--dpl-search {
    align-self: start;
    justify-self: end;
    min-height: 0;
    width: min(100%, 440px);
}

.page--dpl-players .hero-copy > div:first-child {
    display: grid;
    gap: 0.72rem;
    max-width: 720px;
}

.hero-panel--dpl-search .compact-panel__head {
    margin-bottom: 0.4rem;
}

.hero-panel--dpl-search .players-search__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.hero-panel--dpl-search .players-search__row input {
    width: 100%;
    padding: 0 1rem;
    border-radius: 18px;
    border: 1px solid rgba(217, 173, 88, 0.16);
    background: linear-gradient(180deg, rgba(19, 15, 11, 0.98), rgba(11, 9, 7, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 235, 184, 0.04);
    color: var(--dpl-text);
}

.hero-panel--dpl-search .players-search__row input::placeholder {
    color: rgba(184, 165, 125, 0.78);
}

.hero-panel--dpl-search .players-search__row button {
    min-width: 124px;
    padding-inline: 1.45rem;
}

.hero-panel--dpl-search .players-search__hint:empty {
    display: none;
}

.hero-panel--dpl-search .players-search__hint {
    margin: 0;
    color: var(--dpl-muted-strong);
    font-size: 0.84rem;
    line-height: 1.6;
}

.page--dpl-players > .glass-card.home-highlights {
    position: relative;
    overflow: hidden;
    padding: 1.6rem;
}

.page--dpl-players > .glass-card.home-highlights::after {
    content: '';
    position: absolute;
    right: -140px;
    bottom: -180px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(242, 196, 111, 0.08);
    pointer-events: none;
}

.home-highlights__intro--players {
    max-width: 720px;
}

.page--dpl-players .player-base-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.page--dpl-players .player-base-card::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 1.15rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.68), transparent 76%);
    pointer-events: none;
}

.page--dpl-players .player-base-card:hover {
    transform: translateY(-6px);
    border-color: rgba(242, 196, 111, 0.2);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.3);
}

.page--dpl-players .player-base-card__title {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.55rem;
    min-width: 0;
}

.page--dpl-players .player-base-card__title h2 {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

.page--dpl-players .player-base-card__badge {
    align-self: flex-start;
}

.page--dpl-players .player-base-card__result {
    padding: 0.95rem 1rem;
    border-radius: 20px;
}

.page--dpl-players .player-base-card__result-value {
    font-size: 1.34rem;
    line-height: 1.3;
}

.page--dpl-players .player-base-card__links {
    flex-wrap: wrap;
}

.page--dpl-players .player-base-card__links--empty {
    min-height: 56px;
    display: flex;
    align-items: center;
}

.page--dpl-players .player-base-card__links-empty {
    color: var(--dpl-muted-strong);
    letter-spacing: 0.04em;
}

.page--dpl-players .player-base-card__link {
    min-width: 116px;
    justify-content: center;
}

.page--dpl-players .player-card-actions {
    padding-top: 0.15rem;
}

.players-empty-state {
    padding: 1.3rem;
    border-radius: 24px;
    border: 1px dashed rgba(217, 173, 88, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.players-load-more {
    margin-top: 1.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(217, 173, 88, 0.1);
}

.players-load-more__status {
    color: var(--dpl-muted-strong);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.players-load-more__button {
    min-width: 240px;
}

.page--dpl-player .page-hero--dpl-player::before {
    width: 460px;
    height: 460px;
    right: -150px;
    top: -190px;
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.1), transparent 54%),
        conic-gradient(from 25deg, rgba(242, 196, 111, 0.16), transparent 24%, transparent 72%, rgba(242, 196, 111, 0.12));
}

.page--dpl-player .hero-copy {
    position: relative;
    z-index: 1;
}

.page--dpl-player .hero-copy > div:first-child {
    display: grid;
    gap: 0.8rem;
    max-width: 760px;
}

.page--dpl-player .hero-badge {
    width: max-content;
}

.page--dpl-player .player-facts {
    display: flex;
    flex-wrap: wrap;
}

.page--dpl-player .player-fact {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.page--dpl-player .player-fact::after {
    content: '';
    position: absolute;
    left: 0.95rem;
    top: 0.85rem;
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.76), transparent);
}

.page--dpl-player .player-fact__label {
    color: var(--dpl-muted-strong);
}

.page--dpl-player .player-links {
    flex-wrap: wrap;
}

.page--dpl-player .player-links a {
    justify-content: center;
}

.page--dpl-player .player-activity-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 20%, rgba(242, 196, 111, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(17, 13, 10, 0.98), rgba(10, 8, 6, 0.98));
}

.page--dpl-player .player-activity-card::before {
    content: '';
    position: absolute;
    inset: 1.1rem 1.2rem auto 1.2rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 196, 111, 0.7), transparent);
    pointer-events: none;
}

.page--dpl-player .player-activity-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 232, 177, 0.04), transparent 24%);
    pointer-events: none;
}

.page--dpl-player .player-activity-card__head,
.page--dpl-player .player-activity-card__legend,
.page--dpl-player .player-activity-chart {
    position: relative;
    z-index: 1;
}

.page--dpl-player .player-activity-card__head {
    margin-bottom: 1rem;
}

.page--dpl-player .player-activity-chart__months span {
    color: var(--dpl-muted-strong);
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page--dpl-player .player-activity-chart__day {
    color: var(--dpl-muted-strong);
    font-weight: 700;
}

.page--dpl-player .player-activity-cell {
    min-height: 30px;
    border-radius: 999px;
    border-color: rgba(217, 173, 88, 0.08);
}

.hero-panel--dpl-summary {
    align-self: start;
}

@media (min-width: 1181px) {
    .hero-panel--dpl-summary {
        position: sticky;
        top: 106px;
    }
}

.page--dpl-player .dotabuff-summary-grid {
    align-items: stretch;
}

.page--dpl-player .dotabuff-stat {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.page--dpl-player .dotabuff-stat::after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.7), transparent);
    pointer-events: none;
}

.page--dpl-player .dotabuff-stat--rank {
    grid-column: span 2;
    min-height: 188px;
    display: grid;
    place-items: center;
}

.page--dpl-player .dotabuff-stat--rank::after {
    left: 50%;
    top: 1rem;
    width: 88px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(242, 196, 111, 0.7), transparent);
}

.page--dpl-player .dotabuff-heroes {
    padding-top: 0.2rem;
}

.page--dpl-player .dotabuff-hero-row {
    border-radius: 18px;
    padding: 0.9rem 1rem;
}

.player-profile-layout--dpl {
    align-items: start;
}

.page--dpl-player .player-profile-card {
    position: relative;
    padding: 1.35rem;
}

.page--dpl-player .player-profile-card::after {
    content: '';
    position: absolute;
    left: 1.35rem;
    right: 1.35rem;
    top: 1.1rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.7), transparent 72%);
    pointer-events: none;
}

.page--dpl-player .player-profile-card > * {
    position: relative;
    z-index: 1;
}

.page--dpl-player .player-profile-card h2 {
    padding-top: 0.45rem;
}

.page--dpl-player .player-section__content p {
    max-width: 72ch;
    line-height: 1.78;
}

.page--dpl-player .player-section__list {
    display: grid;
}

.page--dpl-player .player-section__list li {
    position: relative;
    padding-left: 1.4rem;
}

.page--dpl-player .player-section__list li::before {
    content: '';
    position: absolute;
    left: 0.78rem;
    top: 1.34rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2d79b, #c28e35);
    box-shadow: 0 0 12px rgba(217, 173, 88, 0.2);
}

.page--dpl-player .player-sidebar-card__grid {
    grid-template-columns: 1fr;
}

.page--dpl-player .player-side-fact {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.page--dpl-player .player-side-fact span {
    color: var(--dpl-muted);
    line-height: 1.6;
}

@media (max-width: 1180px) {
    .page--dpl-home .page-hero--dpl-home .page-hero__grid--compact,
    .page--dpl-players .page-hero--dpl-players .page-hero__grid--compact {
        grid-template-columns: 1fr;
    }

    .participants-team-list,
    .winner-history-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .page--dpl-home .hero-fund-strip::after,
    .page--dpl-player .dotabuff-stat--rank::after {
        display: none;
    }

    .page--dpl-player .dotabuff-stat--rank {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .page--dpl-home .hero-actions .hero-button,
    .page--dpl-home .hero-actions .donate-button,
    .players-load-more__button {
        width: 100%;
    }

    .page--dpl-player .player-facts,
    .page--dpl-player .player-links {
        flex-direction: column;
    }

    .page--dpl-player .player-links a {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .mobile-drawer__actions {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }

    .mobile-drawer__actions > * {
        grid-column: 1 / -1;
    }

    .mobile-drawer__actions .nav-button,
    .mobile-drawer__actions .mobile-drawer__action {
        width: 100%;
        min-height: 56px;
        justify-content: flex-start;
        border-radius: 18px;
    }

    .mobile-drawer__actions .nav-button--logout {
        justify-content: center;
    }

    .mobile-drawer__actions .nav-button--cabinet-profile {
        padding-inline: 0.9rem 1rem;
    }

    .mobile-drawer__actions .nav-button__avatar {
        width: 1.95rem;
        height: 1.95rem;
    }
}

@media (max-width: 700px) {
    .hero-signal-strip {
        display: grid;
    }

    .hero-panel--dpl-search .players-search__row,
    .player-intel-grid {
        grid-template-columns: 1fr;
    }
}

.page--dpl-rules,
.page--dpl-streams,
.page--dpl-404 {
    gap: 1.5rem;
}

.page-hero--dpl-rules,
.page-hero--dpl-streams {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(242, 196, 111, 0.12), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(242, 196, 111, 0.08), transparent 18%),
        linear-gradient(135deg, rgba(18, 14, 10, 0.96), rgba(8, 6, 5, 0.98));
}

.page-hero--dpl-rules::after,
.page-hero--dpl-streams::after,
.error404-card--dpl::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: calc(var(--radius-lg) - 6px);
    border: 1px solid rgba(217, 173, 88, 0.08);
    pointer-events: none;
}

.page-hero--dpl-rules::before,
.page-hero--dpl-streams::before {
    content: '';
    position: absolute;
    right: -140px;
    top: -200px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(242, 196, 111, 0.12);
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.08), transparent 54%),
        conic-gradient(from 35deg, rgba(242, 196, 111, 0.14), transparent 24%, transparent 74%, rgba(242, 196, 111, 0.08));
    pointer-events: none;
}

.page-hero--dpl-rules .rules-hero__copy,
.page-hero--dpl-streams > * {
    position: relative;
    z-index: 1;
}

.page-hero--dpl-rules h1,
.page-hero--dpl-streams h1 {
    margin-bottom: 0.9rem;
}

.page-hero--dpl-rules .page-hero__lead,
.page-hero--dpl-streams .page-hero__lead {
    max-width: 760px;
    color: #d8c59f;
    line-height: 1.75;
}

.page--dpl-rules .rules-grid {
    align-items: start;
}

.page--dpl-rules .rules-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.page--dpl-rules .rules-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 232, 177, 0.04), transparent 34%);
    pointer-events: none;
}

.page--dpl-rules .rules-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 196, 111, 0.2);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.28);
}

.page--dpl-rules .rule-card__head,
.page--dpl-rules .rule-items,
.page--dpl-rules .rule-settings {
    position: relative;
    z-index: 1;
}

.page--dpl-rules .rule-card__head {
    padding-bottom: 0.9rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid rgba(217, 173, 88, 0.1);
}

.page--dpl-rules .rule-card__head h2 {
    max-width: 24ch;
}

.page--dpl-rules .rule-items li {
    position: relative;
    padding-left: 1.2rem;
}

.page--dpl-rules .rule-items li::before {
    content: '';
    position: absolute;
    left: 0.62rem;
    top: 1.32rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f2d79b, #c28e35);
    box-shadow: 0 0 12px rgba(217, 173, 88, 0.18);
}

.page--dpl-rules .rule-items li strong {
    color: var(--dpl-text);
}

.page--dpl-rules .rule-settings li {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(217, 173, 88, 0.1);
}

.page--dpl-streams .streams-container--dpl {
    position: relative;
    min-height: 360px;
    padding: 0.2rem 0;
}

.page--dpl-streams .streams-container--dpl::before {
    content: '';
    position: absolute;
    inset: -12px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 196, 111, 0.6), transparent);
}

.page--dpl-streams .stream-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.page--dpl-streams .stream-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 196, 111, 0.2);
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
}

.page--dpl-streams .stream-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 46px;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.72), transparent);
    pointer-events: none;
}

.page--dpl-streams .streams-empty {
    display: grid;
    place-items: center;
    min-height: 240px;
    border-radius: 28px;
    border: 1px dashed rgba(217, 173, 88, 0.16);
    background: linear-gradient(180deg, rgba(16, 13, 10, 0.7), rgba(10, 8, 6, 0.9));
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.18rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page--dpl-404 .error404-shell {
    max-width: 980px;
}

.error404-card--dpl {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 14%, rgba(242, 196, 111, 0.14), transparent 24%),
        linear-gradient(135deg, rgba(17, 13, 10, 0.98), rgba(8, 6, 5, 0.98));
}

.error404-card--dpl::before {
    content: '';
    position: absolute;
    right: -160px;
    bottom: -220px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(242, 196, 111, 0.1);
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.08), transparent 54%),
        conic-gradient(from 180deg, rgba(242, 196, 111, 0.16), transparent 24%, transparent 76%, rgba(242, 196, 111, 0.08));
    pointer-events: none;
}

.error404-card--dpl > * {
    position: relative;
    z-index: 1;
}

.page--dpl-404 .error404-title {
    max-width: 14ch;
    margin-bottom: 0.8rem;
}

.page--dpl-404 .error404-copy {
    max-width: 62ch;
    color: #d8c59f;
    line-height: 1.72;
}

.page--dpl-404 .error404-actions {
    flex-wrap: wrap;
    gap: 0.85rem;
}

.page--dpl-404 .error404-actions .hero-button {
    min-width: 184px;
}

.page--dpl-404 .error404-meta {
    gap: 0.9rem;
}

.page--dpl-404 .error404-meta-card {
    position: relative;
    overflow: hidden;
}

.page--dpl-404 .error404-meta-card::after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(242, 196, 111, 0.72), transparent);
    pointer-events: none;
}

.page--dpl-404 .error404-meta-card > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .page--dpl-404 .error404-actions .hero-button {
        width: 100%;
    }
}

/* Final polish: softer DPL surfaces, fewer lines, smoother page flow */

body {
    transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease, background 0.48s ease;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 14%, rgba(242, 196, 111, 0.06), transparent 20%),
        radial-gradient(circle at 84% 16%, rgba(242, 196, 111, 0.05), transparent 18%),
        radial-gradient(circle at 50% 38%, rgba(255, 232, 177, 0.03), transparent 28%);
    mask-image: none;
    opacity: 0.9;
}

body::after {
    background:
        radial-gradient(circle at 16% 10%, rgba(242, 196, 111, 0.09), transparent 16%),
        radial-gradient(circle at 84% 14%, rgba(242, 196, 111, 0.08), transparent 16%),
        radial-gradient(circle at 50% 100%, rgba(242, 196, 111, 0.06), transparent 22%);
    opacity: 0.76;
}

.header {
    border-bottom-color: transparent;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.header::after {
    display: none;
}

.page,
.page--dpl-home,
.page--dpl-players,
.page--dpl-player,
.page--dpl-rules,
.page--dpl-streams,
.page--dpl-404 {
    position: relative;
    isolation: isolate;
}

.page--dpl-home::before,
.page--dpl-players::before,
.page--dpl-player::before,
.page--dpl-rules::before,
.page--dpl-streams::before,
.page--dpl-404::before {
    content: '';
    position: absolute;
    left: 4%;
    right: 4%;
    top: 3.5rem;
    height: 16rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 40%, rgba(242, 196, 111, 0.08), transparent 28%),
        radial-gradient(circle at 80% 35%, rgba(242, 196, 111, 0.07), transparent 24%);
    filter: blur(48px);
    opacity: 0.52;
    pointer-events: none;
    z-index: 0;
}

.page--dpl-home::after,
.page--dpl-players::after,
.page--dpl-player::after,
.page--dpl-rules::after,
.page--dpl-streams::after,
.page--dpl-404::after {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 14rem;
    border-radius: 999px;
    background:
        radial-gradient(circle at 50% 50%, rgba(242, 196, 111, 0.05), transparent 34%),
        radial-gradient(circle at 22% 55%, rgba(255, 232, 177, 0.03), transparent 24%);
    filter: blur(52px);
    opacity: 0.42;
    pointer-events: none;
    z-index: 0;
}

.page--dpl-home > *,
.page--dpl-players > *,
.page--dpl-player > *,
.page--dpl-rules > *,
.page--dpl-streams > *,
.page--dpl-404 > * {
    position: relative;
    z-index: 1;
}

.page-hero,
.hero-panel,
.glass-card,
.popup,
.stream-card,
.rules-card,
.team-info,
.captain-profile,
.players-list,
.auth-form,
.match-form,
.streams-empty,
.stat-card,
.schedule-card,
.info-card,
.player-activity-card,
.player-sidebar-card,
.player-summary-card,
.player-section,
.error404-card,
.error404-meta-card,
.participants-team,
.winner-card {
    border-color: rgba(255, 235, 184, 0.05);
    background:
        radial-gradient(circle at 18% 16%, rgba(242, 196, 111, 0.05), transparent 28%),
        linear-gradient(180deg, rgba(16, 13, 10, 0.9), rgba(10, 8, 6, 0.96));
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 240, 202, 0.03);
}

.page-hero::before,
.hero-panel::before,
.popup::before,
.rules-card::before,
.stream-card::before,
.glass-card::before,
.player-sidebar-card::before,
.player-summary-card::before,
.player-section::before,
.header::after,
.page--dpl-home .hero-copy > :first-child::after,
.page--dpl-home .hero-fund-strip::after,
.hero-panel--dpl-home .compact-schedule__item::after,
.page--dpl-players .player-summary-card::before,
.page--dpl-players .player-base-card::after,
.player-intel-card::after,
.page--dpl-player .player-fact::after,
.page--dpl-player .player-activity-card::before,
.page--dpl-player .dotabuff-stat::after,
.page--dpl-player .dotabuff-stat--rank::after,
.page--dpl-player .player-profile-card::after,
.page-hero--dpl-rules::after,
.page-hero--dpl-streams::after,
.error404-card--dpl::after,
.page--dpl-streams .streams-container--dpl::before,
.page--dpl-streams .stream-card::after,
.page--dpl-404 .error404-meta-card::after {
    display: none !important;
}

.page--dpl-home .page-hero--dpl-home::before,
.page--dpl-players .page-hero--dpl-players::before,
.page--dpl-player .page-hero--dpl-player::before,
.page-hero--dpl-rules::before,
.page-hero--dpl-streams::before,
.error404-card--dpl::before,
.home-highlights--dpl::after,
.page--dpl-players > .glass-card.home-highlights::after,
.hero-panel--dpl-home::after,
.hero-panel--dpl-search::after,
.hero-panel--dpl-summary::after {
    border: none;
    box-shadow: none;
    filter: blur(10px);
    opacity: 0.68;
}

.participants-team__head,
.page--dpl-rules .rule-card__head {
    border-bottom: none;
}

.hero-signal-chip,
.hero-panel__signal-item,
.players-search__summary-item,
.page--dpl-player .player-fact,
.player-intel-card,
.page--dpl-player .dotabuff-stat,
.page--dpl-player .dotabuff-hero-row,
.page--dpl-players .player-base-card__result,
.hero-panel--dpl-home .compact-schedule__item,
.participants-team__player {
    border-color: rgba(255, 235, 184, 0.06);
    background:
        radial-gradient(circle at 18% 18%, rgba(242, 196, 111, 0.04), transparent 24%),
        linear-gradient(180deg, rgba(24, 19, 14, 0.78), rgba(11, 9, 7, 0.94));
}

.page--dpl-players .player-base-card,
.home-highlights--dpl .home-highlight-card,
.page--dpl-player .player-profile-card,
.page--dpl-rules .rules-card,
.page--dpl-streams .stream-card,
.page--dpl-404 .error404-meta-card,
.winner-card {
    border-color: rgba(255, 235, 184, 0.05);
}

.players-empty-state,
.page--dpl-streams .streams-empty {
    border-style: solid;
    border-color: rgba(255, 235, 184, 0.05);
    background:
        radial-gradient(circle at 50% 30%, rgba(242, 196, 111, 0.05), transparent 30%),
        linear-gradient(180deg, rgba(16, 13, 10, 0.76), rgba(10, 8, 6, 0.94));
}

.footer-inner,
.footer-inner--compact {
    border-color: rgba(255, 235, 184, 0.05);
    background:
        radial-gradient(circle at 84% 24%, rgba(242, 196, 111, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(12, 9, 7, 0.94), rgba(8, 6, 5, 0.98));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.page--dpl-home .hero-panel--dpl-home,
.page--dpl-players .hero-panel--dpl-search,
.page--dpl-player .hero-panel--dpl-summary {
    backdrop-filter: blur(18px);
}

body.is-page-leaving .header,
body.is-page-leaving main,
body.is-page-leaving footer {
    opacity: 0;
    transform: translateY(8px) scale(0.995);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

body.is-page-leaving .page-hero,
body.is-page-leaving .glass-card,
body.is-page-leaving .hero-panel {
    filter: saturate(0.9) blur(0.4px);
}

@media (max-width: 820px) {
    .page--dpl-home::before,
    .page--dpl-players::before,
    .page--dpl-player::before,
    .page--dpl-rules::before,
    .page--dpl-streams::before,
    .page--dpl-404::before,
    .page--dpl-home::after,
    .page--dpl-players::after,
    .page--dpl-player::after,
    .page--dpl-rules::after,
    .page--dpl-streams::after,
    .page--dpl-404::after {
        left: 2%;
        right: 2%;
    }
}

/* Final refinement: transition loader, leftover blue cleanup, softer shells */

body.has-page-loader,
body.is-page-leaving {
    overflow: hidden;
}

html.dpl-loader-active body,
body.has-page-loader,
body.is-page-leaving {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
}

.dpl-page-loader {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
    z-index: 10000;
}

html.dpl-loader-active .dpl-page-loader,
body.is-page-leaving .dpl-page-loader {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    pointer-events: auto;
}

.dpl-page-loader__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(242, 196, 111, 0.12), transparent 18%),
        radial-gradient(circle at 14% 16%, rgba(242, 196, 111, 0.05), transparent 20%),
        radial-gradient(circle at 86% 14%, rgba(242, 196, 111, 0.05), transparent 20%),
        linear-gradient(180deg, rgba(6, 5, 4, 0.96), rgba(4, 3, 2, 0.98));
    backdrop-filter: blur(16px);
}

.dpl-page-loader__inner {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(96px, 12vw, 148px);
    aspect-ratio: 1;
}

.dpl-page-loader__glow {
    position: absolute;
    inset: -42px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(242, 196, 111, 0.22) 0%, rgba(242, 196, 111, 0.08) 34%, transparent 72%);
    filter: blur(12px);
    animation: dplLoaderAura 1.6s ease-in-out infinite;
}

.dpl-page-loader__inner::before,
.dpl-page-loader__inner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.dpl-page-loader__inner::before {
    inset: -14px;
    border: 1px solid rgba(242, 196, 111, 0.18);
    opacity: 0.55;
}

.dpl-page-loader__inner::after {
    inset: -30px;
    border: 1px solid rgba(242, 196, 111, 0.08);
    opacity: 0.42;
}

.dpl-page-loader__logo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(0 0 16px rgba(242, 196, 111, 0.26))
        drop-shadow(0 0 44px rgba(242, 196, 111, 0.12));
    animation: dplLoaderBlink 1.55s ease-in-out infinite;
}

@keyframes dplLoaderAura {
    0%,
    100% {
        opacity: 0.48;
        transform: scale(0.96);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.04);
    }
}

@keyframes dplLoaderBlink {
    0%,
    100% {
        opacity: 0.82;
        transform: scale(1);
        filter:
            drop-shadow(0 0 16px rgba(242, 196, 111, 0.24))
            drop-shadow(0 0 42px rgba(242, 196, 111, 0.1));
    }

    50% {
        opacity: 1;
        transform: scale(1);
        filter:
            drop-shadow(0 0 20px rgba(242, 196, 111, 0.34))
            drop-shadow(0 0 58px rgba(242, 196, 111, 0.16));
    }
}

@media (prefers-reduced-motion: reduce) {
    .dpl-page-loader,
    .dpl-page-loader__glow,
    .dpl-page-loader__logo {
        animation: none !important;
        transition: none !important;
    }
}

footer {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.footer-inner,
.footer-inner--compact {
    border-color: rgba(242, 196, 111, 0.08) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22) !important;
}

.page--dpl-home .hero-panel__signal-list {
    display: none !important;
}

.page--dpl-home .hero-panel--dpl-home {
    align-content: start;
    gap: 1rem;
}

.page--dpl-home .hero-fund-strip {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.page--dpl-home .hero-fund-strip__total {
    background:
        radial-gradient(circle at 18% 24%, rgba(242, 196, 111, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(19, 15, 11, 0.98), rgba(9, 7, 5, 0.98));
    border-color: rgba(242, 196, 111, 0.12);
    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 240, 202, 0.04);
}

.page--dpl-home .hero-fund-strip__total::before {
    display: none !important;
}

.page--dpl-home .hero-fund-strip__button {
    min-height: 106px;
    border-radius: 24px;
}

.page--clean [data-view-panel="bracket"] > .panel-head {
    display: none;
}

.page--clean .view-tab,
.page--clean .empty-state,
.page--clean .playoff-empty,
.page--clean .bracket-shell__control {
    background: linear-gradient(180deg, rgba(20, 15, 11, 0.96), rgba(10, 8, 6, 0.98));
    border-color: rgba(242, 196, 111, 0.12);
    color: var(--dpl-text);
    box-shadow: none;
}

.page--clean .view-tab.is-active,
.page--clean .view-tab[aria-selected='true'] {
    background: linear-gradient(135deg, #f2d79b, #c79030);
    border-color: transparent;
    color: #140f08;
}

.page--clean .view-tab:hover,
.page--clean .view-tab:focus-visible {
    background: linear-gradient(180deg, rgba(39, 29, 18, 0.98), rgba(16, 12, 8, 0.99));
    border-color: rgba(242, 196, 111, 0.2);
    color: #fff0cb;
    box-shadow: inset 0 1px 0 rgba(255, 241, 214, 0.04);
}

.page--clean .view-tab.is-active:hover,
.page--clean .view-tab.is-active:focus-visible,
.page--clean .view-tab[aria-selected='true']:hover,
.page--clean .view-tab[aria-selected='true']:focus-visible {
    background: linear-gradient(135deg, #f2d79b, #c79030);
    border-color: transparent;
    color: #140f08;
    box-shadow: 0 12px 24px rgba(191, 145, 57, 0.2);
}

.page--clean .bracket-shell__control svg {
    stroke: currentColor;
}

.page--dpl-players .player-base-card__badge {
    display: none;
}

.page--dpl-players .profile-button,
.page--dpl-player .profile-button {
    background: linear-gradient(180deg, rgba(19, 15, 11, 0.96), rgba(10, 8, 6, 0.98));
    border-color: rgba(242, 196, 111, 0.12);
    color: var(--dpl-text);
    box-shadow: none;
}

.page--dpl-players .profile-button:hover,
.page--dpl-player .profile-button:hover {
    background: linear-gradient(135deg, #f2d79b, #c79030);
    border-color: transparent;
    color: #140f08;
}

.page-hero--dpl-rules,
.page-hero--dpl-streams {
    background:
        radial-gradient(circle at 18% 18%, rgba(242, 196, 111, 0.07), transparent 24%),
        linear-gradient(180deg, rgba(14, 11, 8, 0.96), rgba(8, 6, 5, 0.98)) !important;
}

.page--dpl-rules .rules-card,
.page--dpl-rules .rules-card--danger,
.page--dpl-rules .rules-card--accent {
    background:
        radial-gradient(circle at 18% 14%, rgba(242, 196, 111, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(15, 12, 9, 0.96), rgba(8, 6, 5, 0.99)) !important;
    border-color: rgba(242, 196, 111, 0.08) !important;
}

.page--dpl-rules .rule-card__head {
    padding-bottom: 0;
    margin-bottom: 0.55rem;
    border-bottom: 0;
}

.page--dpl-rules .rule-card__number {
    background: linear-gradient(135deg, #f0d487, #be842c) !important;
    border: 0 !important;
    color: #18110a !important;
}

.page--dpl-rules .rule-items li {
    padding: 1rem 1.05rem 1rem 4rem;
    background: linear-gradient(180deg, rgba(18, 14, 11, 0.94), rgba(10, 8, 6, 0.98)) !important;
    border-color: rgba(242, 196, 111, 0.08) !important;
    color: var(--dpl-text);
}

.page--dpl-rules .rule-items li::before {
    content: attr(data-rule);
    left: 1rem;
    top: 0.98rem;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    color: var(--dpl-gold-soft);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.page--dpl-rules .rule-settings li {
    background: linear-gradient(180deg, rgba(19, 15, 11, 0.9), rgba(10, 8, 6, 0.95)) !important;
    border-color: rgba(242, 196, 111, 0.08) !important;
}

@media (max-width: 820px) {
    .dpl-page-loader__inner {
        width: clamp(88px, 28vw, 112px);
    }

    .dpl-page-loader__glow {
        inset: -28px;
    }

    .page--dpl-home .hero-fund-strip__button {
        min-height: 72px;
    }
}

/* Final corrective pass: remove leftover hero décor, fix stream states, unify scrollbars */

html,
body,
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 154, 64, 0.86) rgba(11, 8, 6, 0.94);
}

*::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

*::-webkit-scrollbar-track {
    background: rgba(11, 8, 6, 0.94);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid rgba(11, 8, 6, 0.94);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(242, 214, 149, 0.96), rgba(191, 145, 57, 0.96));
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 227, 162, 0.98), rgba(204, 153, 56, 0.98));
}

.page--dpl-home .hero-signal-strip,
.page--dpl-home .dpl-hero-emblem,
.page--dpl-home .hero-panel__signal-list {
    display: none !important;
}

.page--dpl-home .hero-panel--dpl-home {
    grid-template-rows: auto;
    align-content: start;
    min-height: auto;
    justify-content: stretch;
}

.page--dpl-home .page-hero__grid--compact {
    align-items: start;
}

.header__nav .nav-link--streams-live,
.mobile-drawer__nav .nav-link--streams-live {
    padding-right: 2rem;
}

.header__nav .nav-link--streams-live::after,
.mobile-drawer__nav .nav-link--streams-live::after {
    right: 0.78rem;
    width: 7px;
    height: 7px;
}

.streams-empty[hidden] {
    display: none !important;
}

.page--dpl-streams .streams-container--dpl {
    align-items: start;
}

.page--dpl-streams .streams-container--dpl.streams-container--single {
    grid-template-columns: minmax(0, 1fr);
}

.page--dpl-streams .streams-container--dpl.streams-container--single .stream-card {
    width: min(100%, 980px);
    justify-self: center;
}

.page--dpl-player .player-activity-card {
    gap: 0.85rem;
}

.page--dpl-player .player-activity-chart {
    display: grid;
    gap: 0.65rem;
    width: 100%;
    padding: 0.15rem 0 0.3rem;
}

.page--dpl-player .player-activity-chart__months,
.page--dpl-player .player-activity-chart__row {
    display: grid;
    width: 100%;
    grid-template-columns: 34px repeat(var(--activity-weeks, 5), minmax(56px, 1fr));
    gap: 0.65rem 0.95rem;
    align-items: center;
    justify-items: center;
}

.page--dpl-player .player-activity-chart__months {
    padding-bottom: 0.2rem;
}

.page--dpl-player .player-activity-chart__months span:first-child {
    width: 34px;
}

.page--dpl-player .player-activity-chart__months span:not(:first-child) {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1;
}

.page--dpl-player .player-activity-chart__day {
    font-size: 0.82rem;
    line-height: 1;
    justify-self: end;
    width: 100%;
    text-align: right;
}

.page--dpl-player .player-activity-cell {
    justify-self: center;
    align-self: center;
    width: 22px;
    min-width: 22px;
    max-width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    border-radius: 7px;
    border-color: rgba(217, 173, 88, 0.08);
    background: linear-gradient(180deg, rgba(36, 28, 21, 0.94), rgba(17, 13, 10, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 202, 0.03),
        0 0 0 1px rgba(6, 4, 3, 0.12);
}

.page--dpl-player .player-activity-cell::after {
    box-shadow: none;
}

.page--dpl-player .player-activity-cell--level-1::after { width: 4px; height: 4px; opacity: 0.76; }
.page--dpl-player .player-activity-cell--level-2::after { width: 6px; height: 6px; opacity: 0.84; }
.page--dpl-player .player-activity-cell--level-3::after { width: 8px; height: 8px; opacity: 0.92; }
.page--dpl-player .player-activity-cell--level-4::after { width: 10px; height: 10px; opacity: 1; }

.page--dpl-player .player-activity-cell--win::after {
    background: #6db343;
    box-shadow: 0 0 10px rgba(109, 179, 67, 0.18);
}

.page--dpl-player .player-activity-cell--loss::after {
    background: #df4943;
    box-shadow: 0 0 10px rgba(223, 73, 67, 0.18);
}

.page--dpl-player .player-activity-cell--even::after {
    background: #d19a35;
    box-shadow: 0 0 10px rgba(209, 154, 53, 0.18);
}

@media (max-width: 820px) {
    .header__nav .nav-link--streams-live,
    .mobile-drawer__nav .nav-link--streams-live {
        padding-right: 2.15rem;
    }

    .page--dpl-player .player-activity-chart__months,
    .page--dpl-player .player-activity-chart__row {
        grid-template-columns: 24px repeat(var(--activity-weeks, 5), minmax(34px, 1fr));
        gap: 0.4rem 0.45rem;
    }

    .page--dpl-player .player-activity-chart__months span:first-child {
        width: 24px;
    }

    .page--dpl-player .player-activity-cell {
        width: 18px;
        min-width: 18px;
        max-width: 18px;
        height: 18px;
        min-height: 18px;
    }
}

.section-help {
    border-color: rgba(217, 173, 88, 0.24);
    background: rgba(34, 25, 16, 0.92);
    color: #f2e4bf;
    box-shadow:
        inset 0 1px 0 rgba(255, 241, 214, 0.04),
        0 0 0 1px rgba(18, 13, 8, 0.14);
}

.section-help:hover,
.section-help:focus-visible {
    border-color: rgba(242, 196, 111, 0.46);
    background: linear-gradient(180deg, rgba(58, 42, 25, 0.95), rgba(29, 21, 13, 0.98));
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(242, 196, 111, 0.12);
}

.section-help::after {
    border-color: rgba(217, 173, 88, 0.18);
    background: linear-gradient(180deg, rgba(22, 17, 12, 0.98), rgba(9, 7, 5, 0.99));
    box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 243, 214, 0.03);
    color: rgba(247, 233, 198, 0.92);
}

.feedback-fab {
    border-color: rgba(217, 173, 88, 0.18);
    background: linear-gradient(180deg, rgba(23, 17, 12, 0.96), rgba(10, 8, 6, 0.98));
    color: #f6ead0;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 241, 214, 0.04);
}

.feedback-fab:hover,
.feedback-fab:focus-visible {
    border-color: rgba(242, 196, 111, 0.34);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.34),
        0 0 0 1px rgba(242, 196, 111, 0.1);
}

.feedback-fab__label {
    color: rgba(247, 233, 198, 0.96);
}

.feedback-fab__icon {
    background: linear-gradient(135deg, rgba(225, 186, 104, 0.98), rgba(170, 118, 30, 0.96));
    color: #0f0b08;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 225, 0.22),
        0 10px 22px rgba(169, 117, 29, 0.18);
}

.feedback-popup-overlay {
    background: rgba(4, 3, 2, 0.82);
}

.feedback-popup.popup,
.feedback-popup {
    border: 1px solid rgba(217, 173, 88, 0.16);
    background:
        radial-gradient(circle at top left, rgba(242, 196, 111, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(19, 14, 10, 0.98), rgba(8, 6, 4, 0.99));
    box-shadow:
        0 26px 56px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 241, 214, 0.04);
}

.feedback-popup__header,
.feedback-popup .popup-header {
    border-bottom: 0;
}

.feedback-popup__close,
.feedback-popup .popup-close {
    border-color: rgba(217, 173, 88, 0.18);
    background: rgba(28, 20, 12, 0.88);
    color: rgba(247, 233, 198, 0.9);
}

.feedback-popup__close:hover,
.feedback-popup__close:focus-visible,
.feedback-popup .popup-close:hover,
.feedback-popup .popup-close:focus-visible {
    border-color: rgba(242, 196, 111, 0.32);
    background: rgba(46, 34, 21, 0.96);
}

.feedback-form__group label,
.feedback-captcha__hint {
    color: rgba(232, 214, 175, 0.84);
}

.feedback-captcha-shell,
.feedback-form input,
.feedback-form textarea,
.feedback-form select {
    border-color: rgba(217, 173, 88, 0.12);
    background: linear-gradient(180deg, rgba(23, 18, 13, 0.96), rgba(10, 8, 6, 0.98));
    color: #f5ead2;
    box-shadow:
        inset 0 1px 0 rgba(255, 241, 214, 0.03),
        0 10px 24px rgba(0, 0, 0, 0.16);
}

.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-form select:focus {
    border-color: rgba(242, 196, 111, 0.32);
    box-shadow:
        0 0 0 4px rgba(217, 173, 88, 0.1),
        inset 0 1px 0 rgba(255, 241, 214, 0.04);
}

.feedback-form select {
    background-image:
        linear-gradient(180deg, rgba(23, 18, 13, 0.96), rgba(10, 8, 6, 0.98)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%23f2d190' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.feedback-form select:hover {
    border-color: rgba(242, 196, 111, 0.24);
}

.feedback-form select:invalid {
    color: rgba(181, 160, 121, 0.82);
}

.feedback-form select option,
.feedback-form select option[value=""],
.feedback-form select option:checked {
    background: #17110c;
    color: #f5ead2;
}

.feedback-form__submit {
    background: linear-gradient(135deg, rgba(232, 192, 111, 1), rgba(183, 128, 39, 0.98));
    color: #100b08;
    box-shadow: 0 18px 34px rgba(169, 117, 29, 0.18);
}

.feedback-toast {
    border-color: rgba(217, 173, 88, 0.24);
    background: linear-gradient(180deg, rgba(27, 20, 14, 0.96), rgba(11, 8, 6, 0.99));
    color: #f5ead2;
}

.feedback-toast.is-error {
    border-color: rgba(214, 87, 71, 0.28);
    background: linear-gradient(180deg, rgba(55, 20, 16, 0.96), rgba(24, 9, 8, 0.99));
    color: #ffd9d2;
}
/* === END DPL REDESIGN MERGED INTO CORE STYLE === */
