:root {
    --bg: #08111f;
    --bg-deep: #050b16;
    --panel: rgba(9, 20, 36, 0.86);
    --panel-strong: rgba(14, 27, 48, 0.96);
    --panel-soft: rgba(14, 27, 48, 0.68);
    --line: rgba(146, 172, 214, 0.18);
    --line-strong: rgba(146, 172, 214, 0.28);
    --text: #edf4ff;
    --text-soft: #95a6c6;
    --text-muted: #6f7f9b;
    --orange: #ff7a1a;
    --orange-soft: rgba(255, 122, 26, 0.18);
    --blue: #5ec2ff;
    --blue-soft: rgba(94, 194, 255, 0.14);
    --green: #42d39b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(94, 194, 255, 0.1), transparent 30%),
        radial-gradient(circle at 85% 8%, rgba(255, 122, 26, 0.12), transparent 26%),
        linear-gradient(180deg, #091120 0%, #070e1a 50%, #040912 100%);
    overflow-x: hidden;
}

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: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

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

.ui-icon {
    width: 1.08em;
    height: 1.08em;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-only {
    display: inline-grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 13px;
}

.button.icon-only,
.profile-link.icon-only {
    display: inline-grid;
    place-items: center;
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
}

.profile-link.icon-only {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

button,
input,
textarea,
select {
    font: inherit;
    min-width: 0;
}

select,
option,
optgroup {
    color-scheme: dark;
}

select option,
select optgroup {
    background: #0f1b2e;
    color: #f2f7ff;
}

select option:checked {
    background: #204f7a;
    color: #ffffff;
}

select option:disabled {
    background: #0f1b2e;
    color: #8aa0c3;
}

.shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 11, 22, 0.82);
    backdrop-filter: blur(18px);
}

.email-missing-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 201, 107, 0.32);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 26, 0.18), transparent 38%),
        rgba(12, 24, 42, 0.94);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.email-missing-banner strong,
.email-missing-banner span {
    display: block;
}

.email-missing-banner strong {
    color: var(--text);
    font-size: 1.05rem;
}

.email-missing-banner span {
    margin-top: 3px;
    color: var(--text-soft);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
    min-width: 0;
}

.brand {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.brand small {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), #ff9b53);
    color: #08111f;
    font-weight: 700;
}

.menu {
    order: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    margin-left: auto;
}

.nav-actions {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.nav-toggle {
    order: 4;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.nav-toggle[hidden] {
    display: none !important;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(94, 194, 255, 0.1);
    transform: translateY(-1px);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

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

.menu a,
.inline-form button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--text-soft);
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.menu a:hover,
.inline-form button:hover {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.notification-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell-button {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.notification-bell-button:hover,
.notification-bell-button:focus-visible,
.notification-menu[data-open="true"] .notification-bell-button,
.notification-menu.is-active .notification-bell-button {
    color: var(--text);
    border-color: rgba(94, 194, 255, 0.38);
    background: rgba(94, 194, 255, 0.08);
    box-shadow: 0 10px 26px rgba(94, 194, 255, 0.12);
    outline: none;
}

.notification-bell-button .ui-icon {
    width: 1.12rem;
    height: 1.12rem;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffcf6f, #ff7a1a);
    color: #07111f;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    border: 2px solid rgba(5, 11, 22, 0.96);
    box-shadow: 0 8px 18px rgba(255, 122, 26, 0.26);
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 60;
    width: min(360px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(94, 194, 255, 0.22);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 201, 107, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(16, 30, 52, 0.98), rgba(7, 15, 28, 0.98));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

.notification-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    border-left: 1px solid rgba(94, 194, 255, 0.22);
    border-top: 1px solid rgba(94, 194, 255, 0.22);
    background: rgba(16, 30, 52, 0.98);
}

.notification-dropdown-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--line);
}

.notification-dropdown-head strong {
    color: var(--text);
    font-size: 1.05rem;
}

.notification-dropdown-head span {
    color: #ffcf87;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notification-dropdown-list {
    display: grid;
    max-height: 380px;
    overflow-y: auto;
}

.notification-dropdown-item {
    display: grid !important;
    justify-content: stretch !important;
    gap: 5px !important;
    min-height: auto !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--text) !important;
    text-align: left;
}

.notification-dropdown-item:hover,
.notification-dropdown-item:focus-visible {
    background: rgba(94, 194, 255, 0.08) !important;
    transform: none !important;
    outline: none;
}

.notification-dropdown-item.unread {
    background: rgba(255, 201, 107, 0.08) !important;
}

.notification-dropdown-item span {
    color: #ffcf87;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.notification-dropdown-item strong {
    color: var(--text);
    line-height: 1.15;
}

.notification-dropdown-item small,
.notification-dropdown-empty {
    color: var(--text-soft);
    line-height: 1.35;
}

.notification-dropdown-empty {
    padding: 18px 16px;
}

.notification-dropdown-all {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.035) !important;
    color: #bfe9ff !important;
    font-weight: 900;
    line-height: 1 !important;
    text-align: center;
}

.notification-dropdown-all::after,
.notification-dropdown-item::after {
    display: none !important;
}

.notifications-hero h1 {
    max-width: none;
    font-size: clamp(3rem, 7vw, 5.4rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.notifications-hero .lead {
    max-width: 52rem;
}

.menu a.is-active,
.menu a[aria-current="page"] {
    color: #ffffff;
    border-color: rgba(94, 194, 255, 0.46);
    background:
        linear-gradient(135deg, rgba(94, 194, 255, 0.16), rgba(255, 122, 26, 0.08)),
        rgba(94, 194, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 10px 26px rgba(94, 194, 255, 0.12);
}

.menu a.is-active::after,
.menu a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -9px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5ec2ff, #ffcf6f);
    box-shadow: 0 0 16px rgba(94, 194, 255, 0.46);
}

.menu a.menu-cta {
    background: linear-gradient(135deg, #fff7cf, #ffcf6f);
    color: #091120 !important;
    border: 1px solid rgba(255, 223, 138, 0.95) !important;
    box-shadow: 0 10px 28px rgba(255, 190, 72, 0.26);
    font-weight: 700;
}

.menu a.menu-cta:hover,
.menu a.menu-cta:focus-visible {
    background: linear-gradient(135deg, #fffbe1, #ffd98b);
    color: #050b16 !important;
    border-color: rgba(255, 239, 182, 1) !important;
    box-shadow: 0 14px 34px rgba(255, 204, 99, 0.34);
}

.menu a.menu-cta.is-active {
    box-shadow: 0 14px 34px rgba(255, 204, 99, 0.34), 0 0 0 1px rgba(94, 194, 255, 0.34);
}

.inline-form {
    margin: 0;
}

.hero,
.section,
.page-hero {
    padding: 36px 0 72px;
}

.hero {
    padding-top: 54px;
}

.hero-layout,
.page-hero-row,
.tournament-hero-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

.hero-layout,
.tournament-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.page-hero-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.hero-copy h1,
.section h1,
.page-hero h1 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(3.2rem, 8vw, 6.4rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    max-width: 11ch;
    overflow-wrap: anywhere;
}

.page-hero.notifications-hero h1 {
    max-width: none;
    font-size: clamp(3rem, 7vw, 5.4rem);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.hero-copy h1 {
    max-width: 9.5ch;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 34px;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 5%, rgba(255, 122, 26, 0.18), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(94, 194, 255, 0.16), transparent 28%);
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    gap: 28px;
    align-items: stretch;
}

.home-hero-copy {
    display: grid;
    align-content: center;
}

.home-hero h1 {
    max-width: 12ch;
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.82;
    letter-spacing: -0.04em;
}

.home-tagline {
    max-width: 760px;
    margin: 22px 0 0;
    color: #b7d4ff;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.5;
}

.home-live-card {
    display: grid;
    gap: 18px;
    align-content: space-between;
    min-height: 360px;
    padding: 24px;
    border: 1px solid rgba(94, 194, 255, 0.28);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 122, 26, 0.14), rgba(94, 194, 255, 0.08) 42%, rgba(8, 17, 31, 0.94)),
        rgba(8, 17, 31, 0.94);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.home-live-top,
.home-live-actions,
.home-scoreboard,
.home-player,
.home-proof-strip,
.home-community-row,
.home-player-pills {
    display: flex;
    align-items: center;
}

.home-live-top {
    justify-content: space-between;
}

.home-scoreboard {
    gap: 12px;
}

.home-player {
    flex: 1;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(10, 21, 38, 0.74);
}

.home-player.winner {
    border-color: rgba(255, 207, 111, 0.62);
    background: rgba(255, 122, 26, 0.12);
}

.home-player span {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-player strong {
    color: #ffcf6f;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.85;
}

.home-vs {
    color: #ffb783;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-live-actions {
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.home-live-actions span {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    font-weight: 800;
}

.home-proof-strip {
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(8, 17, 31, 0.72);
}

.home-proof-strip article {
    flex: 1;
    min-height: 84px;
    padding: 16px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
        rgba(10, 21, 38, 0.74);
}

.home-proof-strip strong {
    display: block;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 0.92;
}

.home-proof-strip span {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.home-showcase-card {
    display: grid;
    gap: 20px;
    min-height: 330px;
    align-content: space-between;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(8, 17, 31, 0.78);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.home-showcase-card:hover {
    border-color: rgba(94, 194, 255, 0.38);
    background: rgba(94, 194, 255, 0.07);
    transform: translateY(-2px);
}

.home-showcase-card h2,
.home-community-row h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
}

.home-showcase-card p:not(.eyebrow) {
    max-width: 58ch;
    color: var(--text-soft);
    line-height: 1.62;
}

.home-profile-mock,
.home-mini-bracket,
.home-rec-list span,
.home-rec-list a,
.home-civ-grid a {
    border: 1px solid var(--line);
    background: rgba(10, 21, 38, 0.76);
}

.home-profile-mock {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.home-profile-mock:hover,
.home-profile-mock:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 207, 111, 0.34);
    background: rgba(16, 34, 58, 0.88);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
}

.home-avatar-mock-wrap {
    display: inline-flex;
}

.home-avatar-mock,
.home-avatar-mock-fallback {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 1px solid rgba(255, 207, 111, 0.4);
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.28), rgba(94, 194, 255, 0.16));
    color: #ffffff;
    font-weight: 900;
}

.home-profile-mock-copy,
.home-profile-mock-copy strong,
.home-profile-mock-copy small {
    display: block;
    min-width: 0;
}

.home-profile-mock-copy strong,
.home-profile-mock-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-profile-mock-copy small {
    margin-top: 4px;
    color: var(--text-muted);
}

.home-mini-bracket {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-mini-bracket:hover,
.home-mini-bracket:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(94, 194, 255, 0.42);
    background: rgba(16, 34, 58, 0.88);
    outline: none;
}

.home-mini-bracket span,
.home-mini-bracket em {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-mini-bracket strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-card-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-aoe2cm-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 10px 4px 6px;
    border: 1px solid rgba(94, 194, 255, 0.28);
    border-radius: 999px;
    background: rgba(94, 194, 255, 0.08);
    color: #c7e9ff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.home-aoe2cm-brand img {
    width: 22px;
    height: 22px;
    border-radius: 7px;
}

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

.home-civ-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 74px;
    padding: 10px;
    border-radius: 18px;
    color: #ffe2a8;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.home-civ-grid img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.32));
}

.home-civ-grid span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-civ-grid a:hover,
.home-civ-grid a:focus-visible {
    border-color: rgba(255, 207, 111, 0.62);
    background: rgba(255, 122, 26, 0.12);
    color: #ffffff;
    outline: none;
}

.home-draft-demo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(94, 194, 255, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 201, 107, 0.11), transparent 30%),
        rgba(4, 10, 19, 0.34);
}

.home-draft-player {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 21, 38, 0.78);
}

.home-draft-player-host {
    border-color: rgba(255, 201, 107, 0.28);
}

.home-draft-player-guest {
    border-color: rgba(94, 194, 255, 0.3);
}

.home-draft-player-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.home-draft-seat {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 201, 107, 0.1);
    color: #ffe1a7;
    font-size: 0.72rem;
    font-weight: 900;
}

.home-draft-player-guest .home-draft-seat {
    background: rgba(94, 194, 255, 0.12);
    color: #bfe8ff;
}

.home-draft-player-head strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-draft-player-head small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-draft-picks {
    display: grid;
    gap: 7px;
}

.home-draft-pick {
    display: grid;
    grid-template-columns: auto 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(8, 17, 31, 0.76);
    color: #ffe2a8;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.home-draft-player-guest .home-draft-pick {
    color: #c7e9ff;
}

.home-draft-pick:hover,
.home-draft-pick:focus-visible {
    border-color: rgba(255, 201, 107, 0.5);
    background: rgba(255, 122, 26, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

.home-draft-player-guest .home-draft-pick:hover,
.home-draft-player-guest .home-draft-pick:focus-visible {
    border-color: rgba(94, 194, 255, 0.52);
    background: rgba(94, 194, 255, 0.1);
}

.home-draft-pick-order {
    color: var(--text-muted);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.home-draft-pick img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.34));
}

.home-draft-pick span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-draft-demo.is-observed .home-draft-pick {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
}

.home-draft-demo.is-observed.is-visible .home-draft-pick {
    animation: homeDraftPickIn 520ms cubic-bezier(0.2, 0.9, 0.22, 1) forwards;
}

.home-draft-demo.is-visible .home-draft-player-host .home-draft-pick:nth-child(1) { animation-delay: 80ms; }
.home-draft-demo.is-visible .home-draft-player-guest .home-draft-pick:nth-child(1) { animation-delay: 210ms; }
.home-draft-demo.is-visible .home-draft-player-host .home-draft-pick:nth-child(2) { animation-delay: 340ms; }
.home-draft-demo.is-visible .home-draft-player-guest .home-draft-pick:nth-child(2) { animation-delay: 470ms; }
.home-draft-demo.is-visible .home-draft-player-host .home-draft-pick:nth-child(3) { animation-delay: 600ms; }
.home-draft-demo.is-visible .home-draft-player-guest .home-draft-pick:nth-child(3) { animation-delay: 730ms; }

@keyframes homeDraftPickIn {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    72% {
        opacity: 1;
        transform: translateY(-2px) scale(1.015);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-draft-demo.is-observed .home-draft-pick,
    .home-draft-demo.is-observed.is-visible .home-draft-pick {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

.home-draft-link {
    align-self: flex-start;
    color: var(--blue-soft);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.home-draft-link:hover,
.home-draft-link:focus-visible {
    color: #ffffff;
}

.home-rec-list {
    display: grid;
    gap: 9px;
}

.home-rec-list span,
.home-rec-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-rec-list a:hover,
.home-rec-list a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 122, 26, 0.34);
    background: rgba(255, 122, 26, 0.08);
    outline: none;
}

.home-rec-list small {
    color: var(--text-muted);
}

.home-community-row {
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, 0.1), rgba(94, 194, 255, 0.055)),
        rgba(8, 17, 31, 0.78);
}

.home-player-pills {
    flex: 1;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.home-player-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
    max-width: 230px;
    min-height: 62px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(94, 194, 255, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.014)),
        rgba(11, 24, 43, 0.84);
    color: var(--text);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.home-player-card:hover,
.home-player-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 122, 26, 0.12), rgba(94, 194, 255, 0.08)),
        rgba(13, 30, 52, 0.92);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.home-player-photo,
.home-player-photo-fallback {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border: 1px solid var(--line-strong);
    border-radius: 15px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.36), rgba(94, 194, 255, 0.24));
    color: #fff;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-player-card-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.home-player-card-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-player-card-copy small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.home-player-card-all {
    border-color: rgba(255, 207, 111, 0.34);
}

.community-pill.accent {
    border-color: rgba(255, 207, 111, 0.5);
    color: #ffe2a8;
}

.section h2,
.panel h2,
.feature-card h2,
.timeline-step h3,
.card h2,
.card h3 {
    margin: 0;
}

.lead {
    margin: 18px 0 0;
    max-width: 64ch;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.4;
}

.hero-breadcrumb a {
    color: #9bcaff;
    font-weight: 800;
    text-decoration: none;
    transition: color 160ms ease, text-shadow 160ms ease;
}

.hero-breadcrumb a:hover,
.hero-breadcrumb a:focus-visible {
    color: var(--text);
    text-shadow: 0 0 18px rgba(94, 194, 255, 0.35);
    outline: none;
}

.hero-breadcrumb span {
    color: rgba(142, 169, 210, 0.68);
}

.hero-breadcrumb .breadcrumb-current {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid rgba(255, 201, 107, 0.34);
    border-radius: 999px;
    background: rgba(255, 201, 107, 0.08);
    color: #ffdf98;
    font-weight: 900;
}

.hero-breadcrumb .breadcrumb-separator {
    color: rgba(142, 169, 210, 0.54);
}

.match-context-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.match-context-actions .button {
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding-inline: 13px;
    font-size: 0.9rem;
}

.hero-breadcrumb + .chips {
    margin-top: 12px;
}

.match-context-actions + .chips {
    margin-top: 12px;
}

.eyebrow,
.meta,
.summary-label,
.panel-meta {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
}

.hero-actions,
.section-head,
.chips,
.card-topline,
.match-head {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-actions {
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--orange), #ff9b53);
    color: #08111f;
}

.button.subtle {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button.primary:hover,
.button.primary:focus-visible {
    background: linear-gradient(135deg, #ff8d3b, #ffb16c);
    box-shadow: 0 14px 34px rgba(255, 122, 26, 0.28);
}

.button.subtle:hover,
.button.subtle:focus-visible {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.stat-strip,
.feature-band,
.cards,
.timeline-grid,
.board-columns {
    display: grid;
    gap: 16px;
}

.stat-strip {
    margin-top: 32px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-strip article,
.feature-card,
.timeline-step,
.summary-panel,
.board-shell,
.panel,
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.stat-strip article {
    padding: 18px 20px;
}

.stat-strip strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-strip span {
    color: var(--text-soft);
}

.hero-board {
    position: relative;
    min-width: 0;
}

.board-shell {
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(16, 30, 52, 0.96), rgba(8, 17, 31, 0.96)),
        radial-gradient(circle at top right, rgba(255, 122, 26, 0.12), transparent 30%);
    min-width: 0;
}

.board-top,
.panel-head,
.footer-row,
.versus-row,
.roster li,
.match-card,
.stage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.live-pill,
.tag,
.chip,
.seed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.live-pill,
.tag {
    background: var(--orange-soft);
    color: #ffb783;
    border: 1px solid rgba(255, 122, 26, 0.28);
}

.muted-tag,
.chip,
.seed-badge {
    background: var(--blue-soft);
    color: #9bdfff;
    border: 1px solid rgba(94, 194, 255, 0.24);
}

.country-chip {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    min-width: 44px;
    padding: 0 9px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

.country-flag-image {
    display: block;
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.country-code-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.compact-list,
.roster,
.match-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.compact-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.compact-list li:first-child {
    border-top: 0;
}

.compact-list span,
.muted {
    color: var(--text-soft);
}

.board-bracket {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.bracket-node {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.bracket-node span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.bracket-node.accent {
    border-color: rgba(255, 122, 26, 0.3);
    background: rgba(255, 122, 26, 0.08);
}

.section-tight {
    padding-top: 0;
}

.section-bottom {
    padding-bottom: 88px;
}

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

.feature-card,
.timeline-step,
.panel,
.card,
.summary-panel {
    padding: 22px;
    min-width: 0;
}

.feature-card p,
.timeline-step p,
.card p {
    color: var(--text-soft);
    line-height: 1.65;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.02em;
}

.section-link {
    color: #9bdfff;
}

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

.community-card,
.player-directory-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.community-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px;
}

.community-card h2 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.02em;
}

.community-card p:last-child {
    color: var(--text-soft);
    line-height: 1.65;
}

.community-card-side,
.community-avatars,
.player-directory,
.player-directory-meta {
    display: grid;
    gap: 14px;
}

.community-card-side {
    justify-items: end;
}

.community-avatars {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    width: min(100%, 440px);
}

.community-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: #d8ebff;
    font-weight: 700;
}

.community-pill:hover,
.community-pill:focus-visible {
    border-color: rgba(255, 122, 26, 0.35);
    background: rgba(255, 122, 26, 0.09);
    color: #fff0c5;
}

.cards-compact {
    gap: 18px;
}

.tournament-cards-rich {
    gap: 20px;
}

.tournament-card-rich {
    gap: 18px;
}

.tournament-card-head,
.tournament-card-grid,
.tournament-overview-grid,
.tournament-info-grid,
.registration-meta-grid,
.share-grid {
    display: grid;
    gap: 16px;
}

.tournament-card-head,
.tournament-overview-grid,
.tournament-info-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
}

.tournament-card-grid,
.registration-meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tournament-card-grid strong,
.registration-meta-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 1.2rem;
}

.tournament-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tournament-title-row h2 {
    margin: 0;
}

.tournament-view-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(94, 194, 255, 0.32);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(94, 194, 255, 0.12), rgba(255, 122, 26, 0.06)),
        rgba(255, 255, 255, 0.035);
    color: #bfe8ff;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tournament-view-cue .ui-icon {
    width: 15px;
    height: 15px;
}

.tournament-view-cue:hover,
.tournament-view-cue:focus-visible {
    border-color: rgba(255, 201, 107, 0.58);
    background: rgba(255, 122, 26, 0.12);
    color: #fff0c5;
    transform: translateY(-1px);
    outline: none;
}

.tournament-view-cue.compact {
    width: fit-content;
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.72rem;
}

.tournament-card-copy,
.tournament-panel-lead {
    margin: 0;
}

.joined-tournament-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(66, 211, 155, 0.26);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(66, 211, 155, 0.15), rgba(94, 194, 255, 0.07)),
        rgba(255, 255, 255, 0.035);
}

.joined-tournament-strip strong {
    color: #d9ffef;
    text-align: right;
}

.tournament-card-actions {
    justify-content: flex-start;
}

.registration-badge {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.registration-badge strong {
    font-size: 1rem;
}

.registration-badge span {
    color: var(--text-soft);
    line-height: 1.5;
}

.registration-badge.open,
.registration-badge.joined,
.registration-badge.pool_ready,
.registration-badge.draft_ready {
    border-color: rgba(66, 211, 155, 0.32);
    background: rgba(66, 211, 155, 0.12);
}

.registration-badge.upcoming {
    border-color: rgba(94, 194, 255, 0.28);
    background: rgba(94, 194, 255, 0.12);
}

.registration-badge.full,
.registration-badge.closed,
.registration-badge.invite_only,
.registration-badge.private {
    border-color: rgba(255, 122, 26, 0.24);
    background: rgba(255, 122, 26, 0.11);
}

.share-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    margin-top: 18px;
}

.share-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.share-pill:hover,
.share-pill:focus-visible {
    border-color: rgba(255, 122, 26, 0.35);
    background: rgba(255, 122, 26, 0.08);
    transform: translateY(-2px);
}

.share-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.share-icon svg {
    width: 18px;
    height: 18px;
}

.share-label {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.share-pill-mail .share-icon {
    color: #ffd38b;
}

.share-pill-whatsapp .share-icon {
    color: #7ff2af;
}

.share-pill-x .share-icon {
    color: #f2f5ff;
}

.share-pill-instagram .share-icon {
    color: #ffb1cc;
}

.share-pill-link .share-icon {
    color: #9bdfff;
}

.share-help {
    margin: 14px 0 0;
}

.tournament-tabs-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    width: min(1180px, calc(100vw - 32px));
    justify-items: stretch;
}

.tournament-tabs-page > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.tournament-tabs {
    position: sticky;
    top: 78px;
    z-index: 12;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    padding: 10px 2px 12px;
    margin-top: -2px;
    background:
        linear-gradient(180deg, rgba(5, 11, 22, 0.96), rgba(5, 11, 22, 0.78)),
        var(--bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(94, 194, 255, 0.08);
    scrollbar-width: thin;
    scroll-padding-inline: 2px;
}

.tournament-tab,
.stage-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    height: auto;
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.tournament-tab span,
.stage-tab small {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
}

.tournament-tab:hover,
.tournament-tab:focus-visible,
.stage-tab:hover,
.stage-tab:focus-visible {
    border-color: rgba(94, 194, 255, 0.42);
    background: rgba(94, 194, 255, 0.08);
    color: var(--text);
    transform: translateY(-1px);
    outline: none;
}

.tournament-tab.is-active,
.stage-tab.is-active {
    border-color: rgba(255, 201, 107, 0.42);
    background:
        radial-gradient(circle at top right, rgba(255, 201, 107, 0.16), transparent 42%),
        rgba(255, 255, 255, 0.06);
    color: var(--text);
    box-shadow: inset 0 -2px 0 rgba(255, 201, 107, 0.48);
}

.tournament-tab-panel[hidden],
.stage-tab-panel[hidden] {
    display: none !important;
}

.tournament-tab-panels,
.tournament-tab-panel {
    display: block;
    width: 100%;
    min-width: 0;
    scroll-margin-top: 140px;
}

.tournament-tab-panel > .panel,
.tournament-info-layout > .panel,
.tournament-side-stack > .panel {
    grid-column: auto;
    width: 100%;
    max-width: none;
}

.tournament-info-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.tournament-info-layout > .panel {
    min-width: 0;
}

.compact-panel-block {
    display: grid;
    gap: 14px;
    align-content: start;
}

.tournament-side-stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    min-width: 0;
}

.tournament-side-stack .panel {
    grid-column: auto;
    min-width: 0;
}

.compact-matchmaking-form {
    grid-template-columns: minmax(0, 1fr) auto;
}

.compact-share-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
}

.compact-share-grid .share-pill {
    min-height: 44px;
    border-radius: 999px;
    padding: 0 12px 0 10px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
        rgba(11, 20, 34, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    white-space: nowrap;
    min-width: 0;
}

.compact-share-grid .share-pill:hover,
.compact-share-grid .share-pill:focus-visible {
    transform: scale(1.015);
}

.tournament-share-card {
    container-type: inline-size;
    gap: 12px;
    padding: 18px;
    overflow: visible;
}

.tournament-share-card .panel-head {
    gap: 10px;
    margin-bottom: 0;
}

.tournament-share-card h2 {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.tournament-share-row {
    overflow: visible;
    scrollbar-width: none;
    scrollbar-color: rgba(94, 194, 255, 0.65) rgba(255, 255, 255, 0.06);
    padding: 4px 0 0;
    margin-inline: 0;
}

.tournament-share-row::-webkit-scrollbar {
    display: none;
}

.tournament-share-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}

.tournament-share-row::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--blue), var(--orange));
    border-radius: 999px;
}

.compact-share-grid .share-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
    line-height: 1;
}

.compact-share-grid .share-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.compact-share-grid .share-pill-whatsapp .share-icon svg,
.compact-share-grid .share-pill-x .share-icon svg {
    fill: currentColor;
    stroke: none;
}

.compact-share-grid .share-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

@container (max-width: 560px) {
    .tournament-share-card .share-card-head {
        align-items: flex-start;
    }

    .tournament-share-card .share-card-head h2 {
        max-width: none;
    }

    .tournament-share-card .compact-share-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        justify-content: stretch;
        gap: 8px;
        width: 100%;
    }

    .tournament-share-card .share-pill {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0;
        gap: 0;
        position: relative;
        justify-content: center;
    }

    .tournament-share-card .share-icon {
        margin-inline: auto;
    }

    .tournament-share-card .share-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .tournament-share-card .share-pill::after {
        content: attr(aria-label);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 8px);
        z-index: 2;
        width: max-content;
        max-width: 160px;
        padding: 6px 9px;
        border: 1px solid var(--line);
        border-radius: 999px;
        background: rgba(8, 17, 31, 0.96);
        color: var(--text);
        font-family: "Space Grotesk", sans-serif;
        font-size: 0.72rem;
        font-weight: 800;
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 4px);
        transition: opacity 140ms ease, transform 140ms ease;
    }

    .tournament-share-card .share-pill:hover::after,
    .tournament-share-card .share-pill:focus-visible::after {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.compact-share-grid .share-pill-link .share-icon {
    color: #9bdfff;
}

.compact-share-grid .share-pill-mail .share-icon {
    color: #ffd38b;
}

.compact-share-grid .share-pill-whatsapp .share-icon {
    color: #25d366;
}

.compact-share-grid .share-pill-x .share-icon {
    color: #f2f5ff;
}

.tournament-player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 12px;
    width: 100%;
}

.tournament-player-card {
    position: relative;
    display: grid;
    container-type: inline-size;
    grid-template-rows: auto 1fr;
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 22% 18%, rgba(94, 194, 255, 0.1), transparent 34%),
        rgba(10, 21, 38, 0.72);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tournament-player-card:hover,
.tournament-player-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background:
        radial-gradient(circle at 22% 18%, rgba(255, 122, 26, 0.14), transparent 36%),
        var(--panel-strong);
    outline: none;
}

.tournament-player-top {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
}

.tournament-player-avatar,
.tournament-player-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    object-fit: cover;
}

.tournament-player-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.35), rgba(94, 194, 255, 0.28));
    color: var(--text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.tournament-player-copy {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding-right: 48px;
}

.tournament-player-card strong {
    display: block;
    min-width: 0;
    color: var(--text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.42rem, 10cqw, 1.96rem);
    line-height: 0.96;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

.tournament-player-card small {
    display: block;
    color: #ffd36b;
    font-weight: 800;
}

.tournament-player-card .country-chip {
    position: absolute;
    top: 16px;
    right: 16px;
}

.tournament-player-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.tournament-player-meta > div {
    min-width: 0;
}

.tournament-player-meta strong {
    margin-top: 6px;
    font-size: 1.34rem;
    line-height: 1.08;
}

.tournament-player-empty-rating {
    grid-column: 1 / -1;
}

.stage-tab-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}

.stage-tab {
    flex-direction: column;
    align-items: flex-start;
    min-height: 58px;
    padding: 9px 14px;
}

.stage-tab small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.stage-compact-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.stage-compact-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.7rem;
    line-height: 1;
}

.stage-standings-card {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(94, 194, 255, 0.2);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(94, 194, 255, 0.1), transparent 32%),
        rgba(255, 255, 255, 0.025);
}

.stage-standings-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
}

.stage-standings-head strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 1.08rem;
}

.stage-standings-head p {
    max-width: 48ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: right;
}

.stage-standings-table {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.stage-standings-row {
    display: grid;
    grid-template-columns: 38px minmax(180px, 1fr) 54px 74px 82px 58px;
    gap: 10px;
    align-items: center;
    min-width: 0;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(8, 17, 31, 0.62);
    color: var(--text-soft);
    font-size: 0.86rem;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.stage-standings-row:not(.stage-standings-row-head):hover,
.stage-standings-row:not(.stage-standings-row-head):focus-visible {
    border-color: rgba(255, 201, 107, 0.42);
    background: rgba(255, 122, 26, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.stage-standings-row-head {
    min-height: 0;
    padding-block: 4px;
    border-color: transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stage-standings-row > strong {
    color: #ffe1a7;
    font-size: 1rem;
}

.stage-standings-position {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(94, 194, 255, 0.11);
    color: #bfe8ff;
    font-weight: 900;
}

.stage-standings-player {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.stage-standings-player strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-standings-row .positive {
    color: #8ff2c1;
    font-weight: 900;
}

.stage-standings-row .negative {
    color: #ffb2a6;
    font-weight: 900;
}

.league-leg-grid {
    display: grid;
    gap: 14px;
}

.league-leg-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(94, 194, 255, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(94, 194, 255, 0.035)),
        rgba(5, 15, 30, 0.46);
}

.league-leg-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.league-leg-head strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 1.08rem;
}

.league-leg-head > span {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stage-matches-card {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.stage-matches-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 2px 2px 0;
}

.stage-matches-head strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 1.1rem;
}

.stage-matches-head p {
    max-width: 520px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    text-align: right;
}

.compact-match-list {
    display: grid;
    gap: 8px;
    width: 100%;
}

.compact-match-row-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.compact-match-row {
    display: grid;
    grid-template-columns: minmax(132px, 0.78fr) minmax(132px, 1fr) auto minmax(132px, 1fr) minmax(92px, auto);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

a.compact-match-row:hover,
a.compact-match-row:focus-visible {
    border-color: rgba(94, 194, 255, 0.38);
    background: rgba(94, 194, 255, 0.07);
    transform: translateY(-1px);
    outline: none;
}

.compact-match-meta,
.compact-match-status {
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.compact-match-meta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.compact-match-meta > span:not(.match-leg-pill) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-leg-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    height: 22px;
    padding: 0 8px;
    border: 1px solid rgba(94, 194, 255, 0.28);
    border-radius: 999px;
    background: rgba(94, 194, 255, 0.09);
    color: #bfe9ff;
    letter-spacing: 0.04em;
}

.compact-match-player {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    font-weight: 800;
}

.compact-match-player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-civ-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.34));
}

.compact-seed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 28px;
    height: 21px;
    padding: 0 7px;
    border: 1px solid rgba(255, 201, 107, 0.34);
    border-radius: 999px;
    background: rgba(255, 201, 107, 0.08);
    color: #ffe1a7;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
}

.compact-match-player-home {
    justify-content: flex-end;
    text-align: right;
}

.compact-match-player-away {
    justify-content: flex-start;
    text-align: left;
}

.compact-match-player.winner {
    color: #ffe2a8;
}

.compact-match-score {
    min-width: 54px;
    color: #ffb783;
    text-align: center;
    font-size: 1.08rem;
}

.compact-match-status {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 0 9px;
    border: 1px solid rgba(94, 194, 255, 0.2);
    border-radius: 999px;
    background: rgba(94, 194, 255, 0.055);
    letter-spacing: 0.11em;
}

.compact-match-row:hover .compact-match-status,
.compact-match-row:focus-visible .compact-match-status {
    border-color: rgba(94, 194, 255, 0.42);
    color: #cbeeff;
}

.compact-match-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.compact-match-quick-actions {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.compact-match-quick-actions .match-quick-action {
    flex: 0 1 auto;
}

.match-quick-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
        rgba(8, 17, 31, 0.86);
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.match-quick-action:hover,
.match-quick-action:focus-visible {
    border-color: rgba(94, 194, 255, 0.5);
    background: rgba(94, 194, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
    outline: none;
}

.match-quick-action.replay-link {
    color: #ffe0a3;
}

.match-quick-action.replay-link:hover,
.match-quick-action.replay-link:focus-visible {
    border-color: rgba(255, 217, 139, 0.72);
    background: rgba(255, 122, 26, 0.12);
    color: #fff6d3;
}

.match-quick-action.insights-link,
.button.insights-link {
    color: #bfe9ff;
}

.match-quick-action.insights-link:hover,
.match-quick-action.insights-link:focus-visible,
.button.insights-link:hover,
.button.insights-link:focus-visible {
    border-color: rgba(94, 194, 255, 0.58);
    background: rgba(94, 194, 255, 0.12);
    color: #ffffff;
}

.player-matchmaking-panel,
.result-report-panel {
    display: grid;
    gap: 18px;
}

.inline-matchmaking-form,
.result-report-form {
    display: grid;
    gap: 12px;
}

.inline-matchmaking-form {
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: center;
}

.result-report-form {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
}

.result-report-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.result-auto-score {
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 201, 107, 0.24);
    border-radius: 14px;
    background: rgba(255, 201, 107, 0.08);
}

.result-auto-score strong,
.result-auto-score small {
    display: block;
}

.result-auto-score small {
    margin-top: 2px;
    color: var(--text-soft);
}

.match-setup {
    display: grid;
    gap: 18px;
}

.match-manage-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.24fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.match-state-card,
.next-action-card,
.match-manage-main {
    min-width: 0;
}

.match-state-card {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(94, 194, 255, 0.1), transparent 42%),
        rgba(10, 21, 38, 0.84);
}

.match-state-card .button,
.match-state-card .profile-link {
    justify-content: center;
}

.match-manage-main {
    display: grid;
    gap: 18px;
}

.next-action-card {
    border-color: rgba(255, 201, 107, 0.28);
    background:
        radial-gradient(circle at top right, rgba(255, 122, 26, 0.14), transparent 38%),
        rgba(9, 20, 36, 0.9);
}

.next-action-card.report {
    border-color: rgba(255, 122, 26, 0.36);
}

.next-action-card.closed {
    border-color: rgba(66, 211, 155, 0.32);
}

.match-result-closed {
    margin: 0;
}

.match-compact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.match-compact-actions form {
    margin: 0;
}

.match-compact-actions .button {
    min-height: 42px;
    padding-inline: 16px;
}

.match-inline-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(94, 194, 255, 0.2);
    border-radius: 16px;
    background: rgba(94, 194, 255, 0.06);
    color: var(--text-soft);
}

.match-inline-note form {
    margin: 0;
}

.match-flow.compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0;
}

.match-flow.compact .match-flow-step {
    padding: 10px;
    border-radius: 14px;
}

.match-flow.compact .match-flow-step span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
}

.match-step-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.match-step-viewport {
    position: relative;
    min-width: 0;
    padding: 12px 0 18px;
    overflow: hidden;
}

.match-step-viewport::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 194, 255, 0.26), rgba(255, 201, 107, 0.22), transparent);
    transform: translateY(-50%);
    pointer-events: none;
}

.match-step-viewport::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--bg) 0%, transparent 8%),
        linear-gradient(270deg, var(--bg) 0%, transparent 8%);
}

.match-step-nav {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    position: relative;
    z-index: 1;
    padding: 8px 4px 16px;
    scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 194, 255, 0.46) rgba(9, 20, 36, 0.92);
}

.match-step-nav::-webkit-scrollbar {
    height: 12px;
}

.match-step-nav::-webkit-scrollbar-track {
    border: 1px solid rgba(146, 172, 214, 0.14);
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(94, 194, 255, 0.06), rgba(255, 201, 107, 0.08), rgba(94, 194, 255, 0.06)),
        rgba(9, 20, 36, 0.94);
}

.match-step-nav::-webkit-scrollbar-thumb {
    border: 3px solid rgba(9, 20, 36, 0.94);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(94, 194, 255, 0.86), rgba(255, 201, 107, 0.88));
    box-shadow: 0 0 18px rgba(94, 194, 255, 0.2);
}

.match-step-nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #8dd6ff, #ffda8a);
}

.match-step-tab {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: clamp(230px, 29vw, 330px);
    min-height: 76px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background:
        radial-gradient(circle at 12% 20%, rgba(94, 194, 255, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
        rgba(7, 16, 30, 0.88);
    color: var(--text-soft);
    appearance: none;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
    text-align: left;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.match-step-tab::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 180ms ease;
}

.match-step-tab:hover,
.match-step-tab:focus-visible {
    border-color: rgba(94, 194, 255, 0.45);
    background:
        radial-gradient(circle at 12% 20%, rgba(94, 194, 255, 0.18), transparent 38%),
        rgba(94, 194, 255, 0.08);
    color: var(--text);
    transform: translateY(-3px);
    outline: none;
}

.match-step-tab.is-selected {
    border-color: rgba(255, 201, 107, 0.5);
    background:
        radial-gradient(circle at 15% 22%, rgba(255, 201, 107, 0.28), transparent 36%),
        linear-gradient(135deg, rgba(255, 201, 107, 0.14), rgba(94, 194, 255, 0.08)),
        rgba(255, 255, 255, 0.07);
    color: var(--text);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 0 4px rgba(255, 201, 107, 0.08);
    transform: translateY(-2px);
}

.match-step-tab.is-selected::after {
    border-color: rgba(255, 201, 107, 0.34);
}

.match-step-tab.done {
    border-color: rgba(66, 211, 155, 0.28);
}

.match-step-tab.done .match-step-number,
.match-step-tab.done .match-step-state {
    border-color: rgba(66, 211, 155, 0.36);
    background: rgba(66, 211, 155, 0.13);
    color: #b7f8d8;
}

.match-step-tab.active .match-step-state,
.match-step-tab.is-selected .match-step-state {
    border-color: rgba(255, 201, 107, 0.34);
    background: rgba(255, 201, 107, 0.12);
    color: #ffe2a8;
}

.match-step-tab.locked {
    opacity: 0.58;
}

.match-step-number {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.match-step-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.match-step-copy small {
    color: var(--blue-soft);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-step-copy strong {
    color: inherit;
    font-size: 1.04rem;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-step-state {
    display: inline-grid;
    place-items: center;
    min-width: 70px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.match-step-arrow {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    appearance: none;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.match-step-arrow:hover,
.match-step-arrow:focus-visible {
    border-color: rgba(255, 201, 107, 0.4);
    background: rgba(255, 201, 107, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.match-step-arrow:disabled {
    cursor: default;
    opacity: 0.35;
    transform: none;
    box-shadow: none;
}

.match-step-panels {
    min-width: 0;
}

.match-step-panel[hidden] {
    display: none !important;
}

.match-step-panel {
    animation: panelIn 220ms ease both;
}

.match-setup[data-step-direction="backward"] .match-step-panel {
    --panel-enter-x: -18px;
}

.match-setup[data-step-direction="forward"] .match-step-panel {
    --panel-enter-x: 18px;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(var(--panel-enter-x, 18px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.match-player-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.match-player-card strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.match-seed-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 30px;
    height: 23px;
    padding: 0 8px;
    border: 1px solid rgba(255, 201, 107, 0.42);
    border-radius: 999px;
    background: rgba(255, 201, 107, 0.1);
    color: #ffe1a7;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
}

.draft-output {
    margin-top: 12px;
    border: 1px solid rgba(94, 194, 255, 0.22);
    border-radius: 20px;
    background: rgba(94, 194, 255, 0.055);
}

.draft-context-card-compact {
    padding-block: 18px;
}

.draft-context-card-compact .panel-head {
    margin-bottom: 10px;
}

.draft-status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(94, 194, 255, 0.22);
    border-radius: 16px;
    background: rgba(94, 194, 255, 0.08);
}

.draft-status-strip strong {
    color: var(--text);
    white-space: nowrap;
}

.draft-status-strip span {
    color: var(--text-soft);
    line-height: 1.35;
    text-align: right;
}

.draft-status-strip.external {
    border-color: rgba(255, 201, 107, 0.28);
    background: rgba(255, 201, 107, 0.09);
}

.draft-status-strip.expired {
    border-color: rgba(255, 122, 26, 0.28);
    background: rgba(255, 122, 26, 0.1);
}

.draft-output summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.draft-output summary::-webkit-details-marker {
    display: none;
}

.draft-output summary span {
    font-weight: 800;
}

.draft-output summary small {
    color: var(--text-soft);
}

.draft-output summary::after {
    content: "Ocultar";
    color: var(--blue-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.draft-output:not([open]) summary::after {
    content: "Mostrar";
}

.draft-output-body {
    display: grid;
    gap: 12px;
    padding: 0 18px 18px;
}

.compact-section-head {
    margin-top: 6px;
    margin-bottom: 0;
}

.compact-section-head h3 {
    margin: 0;
    color: var(--text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 0.95;
}

.registration-badge.active {
    border-color: rgba(66, 211, 155, 0.32);
    background: rgba(66, 211, 155, 0.12);
}

.match-step-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
}

.match-step-footer .profile-link {
    justify-self: center;
}

.match-step-footer .button:disabled {
    pointer-events: none;
    opacity: 0.42;
    transform: none;
}

.result-edit-details {
    display: grid;
    gap: 14px;
}

.result-edit-details summary {
    width: fit-content;
    list-style: none;
    cursor: pointer;
}

.result-edit-details summary::-webkit-details-marker {
    display: none;
}

.result-edit-details[open] summary {
    margin-bottom: 12px;
}

.public-match-panel {
    display: grid;
    gap: 18px;
}

.public-match-stack {
    display: grid;
    gap: clamp(22px, 3vw, 34px);
}

.public-match-stack .message-stack {
    margin-bottom: 0;
}

.public-match-stack .public-match-panel {
    margin: 0;
}

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

.match-context-grid article {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(94, 194, 255, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.035);
}

.match-context-grid strong {
    min-width: 0;
    color: var(--text);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.public-match-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
}

.public-match-player,
.public-match-score {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.public-match-player.winner {
    border-color: rgba(255, 201, 107, 0.42);
    background:
        radial-gradient(circle at top right, rgba(255, 201, 107, 0.16), transparent 42%),
        rgba(66, 211, 155, 0.08);
    box-shadow: 0 18px 48px rgba(255, 201, 107, 0.08);
}

.public-match-player strong {
    color: var(--text);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.public-match-versus .public-match-player:first-child {
    justify-items: end;
    text-align: right;
}

.public-match-versus .public-match-player:last-child {
    justify-items: start;
    text-align: left;
}

.public-match-player .winner-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.public-match-versus .public-match-player:first-child .winner-name {
    justify-content: flex-end;
}

.public-match-versus .public-match-player:last-child .winner-name {
    justify-content: flex-start;
}

.public-match-score {
    min-width: 170px;
    justify-items: center;
    text-align: center;
    border-color: rgba(255, 201, 107, 0.28);
    background: rgba(255, 201, 107, 0.08);
}

.public-match-score span {
    color: var(--text);
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(2.8rem, 7vw, 4.8rem);
    font-weight: 800;
    line-height: 0.9;
}

.public-match-score small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-soft);
}

.match-civ-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 38px;
    padding: 5px 10px 5px 6px;
    border: 1px solid rgba(94, 194, 255, 0.22);
    border-radius: 999px;
    background: rgba(8, 18, 32, 0.72);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.match-civ-pill:hover,
.match-civ-pill:focus-visible {
    border-color: rgba(255, 201, 107, 0.48);
    background: rgba(255, 201, 107, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.match-civ-pill img {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    object-fit: contain;
}

.match-civ-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-civ-pill small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 7px;
    border: 1px solid rgba(94, 194, 255, 0.28);
    border-radius: 999px;
    background: rgba(94, 194, 255, 0.12);
    color: #bfe8ff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.match-civ-pill:hover small,
.match-civ-pill:focus-visible small {
    border-color: rgba(255, 201, 107, 0.38);
    background: rgba(255, 201, 107, 0.12);
    color: #ffe3a8;
}

.match-analysis-panel {
    border-color: rgba(94, 194, 255, 0.22);
}

.match-analysis-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.match-analysis-summary article {
    display: grid;
    align-content: end;
    min-height: 116px;
    gap: 5px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(94, 194, 255, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.035);
    background-position: center;
    background-size: cover;
}

.match-analysis-summary strong {
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.05;
}

.match-analysis-summary small {
    color: var(--text-soft);
}

.match-eapm-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.match-eapm-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.match-eapm-head strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 1.12rem;
}

.match-eapm-legend {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.match-eapm-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.match-eapm-legend i {
    width: 18px;
    height: 6px;
    border-radius: 999px;
    background: var(--serie-color);
    box-shadow: 0 0 18px color-mix(in srgb, var(--serie-color) 44%, transparent);
}

.match-eapm-chart-wrap {
    overflow: hidden;
    border: 1px solid rgba(146, 172, 214, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(13, 25, 44, 0.86), rgba(9, 18, 32, 0.9));
}

.match-eapm-chart {
    display: block;
    width: 100%;
    height: auto;
    min-height: 230px;
}

.match-eapm-chart .history-grid-label {
    fill: rgba(184, 207, 242, 0.94);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    paint-order: normal;
    stroke: transparent;
    stroke-width: 0;
}

.match-eapm-chart .history-grid-label-y {
    text-anchor: start;
}

.match-eapm-axis-label {
    fill: var(--text-muted);
    font-family: "Space Grotesk", sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    paint-order: normal;
    stroke: transparent;
    stroke-width: 0;
}

.match-analysis-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.winner-name,
.winner-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.winner-name span,
.winner-inline {
    min-width: 0;
}

.winner-crown {
    width: 1.02em;
    height: 1.02em;
    color: #ffd36b;
    filter: drop-shadow(0 0 8px rgba(255, 201, 107, 0.36));
    fill: rgba(255, 201, 107, 0.16);
    stroke-width: 2;
}

.public-match-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0;
}

.public-match-actions .button {
    width: auto;
    min-height: 42px;
    padding: 0 16px;
}

.public-match-actions .button.primary {
    min-width: 0;
}

#match-step-4.match-step-panel {
    display: grid;
    gap: 14px;
    padding: 26px 22px 22px;
}

#match-step-4 .panel-head {
    align-items: flex-start;
    margin-bottom: 0;
}

#match-step-4 .panel-head .muted {
    margin: 6px 0 0;
}

#match-step-4 .result-report-form {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 10px 12px;
    margin-top: 2px;
}

#match-step-4 .result-report-form p {
    gap: 7px;
}

#match-step-4 .result-report-form .button {
    width: auto;
    min-width: 230px;
    padding-inline: 26px;
    justify-self: start;
}

#match-step-4 .result-auto-score {
    align-self: end;
    min-height: 50px;
    padding: 10px 14px;
}

#match-step-4 .registration-badge.upcoming {
    gap: 6px;
    margin-top: 0;
    padding: 14px 18px;
    border-radius: 16px;
}

#match-step-4 .registration-badge.upcoming span {
    line-height: 1.45;
}

#match-step-4 .profile-refresh-form .button.subtle {
    min-height: 44px;
    padding-inline: 18px;
}

#match-step-4 > .muted:last-child {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

.match-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.match-flow-step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
}

.match-flow-step span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 700;
    flex: 0 0 auto;
}

.match-flow-step strong {
    min-width: 0;
    line-height: 1.15;
}

.match-flow-step.done {
    border-color: rgba(66, 211, 155, 0.28);
    background: rgba(66, 211, 155, 0.1);
    color: #c8ffe9;
}

.match-flow-step.done span {
    background: rgba(66, 211, 155, 0.2);
    color: #9bf0c8;
}

.match-flow-step.active {
    border-color: rgba(255, 122, 26, 0.34);
    background: rgba(255, 122, 26, 0.12);
    color: #ffe0a3;
}

.match-flow-step.locked {
    opacity: 0.55;
}

.inline-matchmaking-form select,
.result-report-form select,
.result-report-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.inline-matchmaking-form select option,
.result-report-form select option,
.auth-form select option {
    background-color: #0f1b2e;
    color: #f2f7ff;
}

.inline-matchmaking-form select option:disabled,
.result-report-form select option:disabled,
.auth-form select option:disabled {
    color: #8aa0c3;
}

.inline-matchmaking-form select option:checked,
.result-report-form select option:checked,
.auth-form select option:checked {
    background-color: #245b8c;
    color: #ffffff;
}

.inline-matchmaking-form select:focus,
.result-report-form select:focus,
.result-report-form input:focus {
    outline: none;
    border-color: rgba(94, 194, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(94, 194, 255, 0.12);
}

.tournament-notes {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.tournament-notes p {
    margin: 10px 0 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.civ-pool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.public-civ-pool-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.public-civ-pool-grid .civ-pool-card {
    min-height: 126px;
    padding: 16px;
}

.public-civ-pool-grid .civ-pool-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

.draft-public-status {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
    padding: 16px;
    border: 1px solid rgba(94, 194, 255, 0.24);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(94, 194, 255, 0.14), transparent 36%),
        rgba(255, 255, 255, 0.035);
}

.draft-public-status-external {
    border-color: rgba(37, 214, 168, 0.34);
    background:
        radial-gradient(circle at top left, rgba(37, 214, 168, 0.16), transparent 38%),
        rgba(255, 255, 255, 0.035);
}

.draft-public-status-pending {
    border-color: rgba(255, 201, 107, 0.3);
    background:
        radial-gradient(circle at top left, rgba(255, 201, 107, 0.13), transparent 36%),
        rgba(255, 255, 255, 0.032);
}

.draft-public-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(8, 18, 32, 0.7);
    color: #ffe1a7;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.draft-public-status strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 1.02rem;
}

.draft-public-status span:not(.draft-public-icon) {
    color: var(--text-soft);
}

.draft-public-status .button {
    white-space: nowrap;
}

.draft-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 4px 0 0;
}

.draft-result-side {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(94, 194, 255, 0.12), transparent 42%),
        rgba(255, 255, 255, 0.035);
}

.draft-result-side h3 {
    margin: 6px 0 12px;
}

.draft-pick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.draft-pick-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 10px 6px 6px;
    border: 1px solid rgba(146, 172, 214, 0.22);
    border-radius: 999px;
    background: rgba(8, 18, 32, 0.76);
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.draft-pick-pill:hover,
.draft-pick-pill:focus-visible {
    border-color: rgba(255, 201, 107, 0.48);
    background: rgba(255, 201, 107, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.draft-pick-pill img {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    object-fit: contain;
}

.draft-pick-pill small {
    color: var(--orange);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.civ-pool-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    min-height: 144px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 26, 0.14), transparent 42%),
        rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    isolation: isolate;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.civ-pool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(94, 194, 255, 0.16), transparent 36%),
        radial-gradient(circle at 82% 14%, rgba(255, 201, 107, 0.22), transparent 30%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.civ-pool-card:hover,
.civ-pool-card:focus-visible {
    border-color: rgba(255, 201, 107, 0.48);
    background:
        radial-gradient(circle at top right, rgba(255, 122, 26, 0.2), transparent 42%),
        rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 54px rgba(5, 11, 22, 0.46);
    transform: translateY(-3px);
    outline: none;
}

.civ-pool-card:hover::before,
.civ-pool-card:focus-visible::before {
    opacity: 1;
}

.civ-pool-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.32));
    transition: transform 180ms ease, filter 180ms ease;
}

.civ-pool-card:hover .civ-pool-icon,
.civ-pool-card:focus-visible .civ-pool-icon {
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.38));
    transform: scale(1.08) rotate(2deg);
}

.civ-pool-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.25rem;
}

.civ-pool-link-cue {
    display: inline-flex;
    width: fit-content;
    margin-top: 12px;
    padding: 5px 9px;
    border: 1px solid rgba(94, 194, 255, 0.24);
    border-radius: 999px;
    color: var(--blue);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.civ-pool-card:hover .civ-pool-link-cue,
.civ-pool-card:focus-visible .civ-pool-link-cue {
    opacity: 1;
    transform: translateY(0);
}

.tournament-hero-chips {
    margin-top: 20px;
}

.tournament-card {
    display: grid;
    gap: 16px;
    min-height: 230px;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tournament-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: var(--panel-strong);
}

.card-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.page-hero {
    padding-top: 40px;
}

.page-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.summary-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    min-width: min(100%, 330px);
}

.summary-panel strong {
    display: block;
    margin-top: 6px;
    font-size: 1.9rem;
}

.profile-hero-grid,
.profile-summary-grid,
.rating-grid,
.match-history-grid,
.history-chart-grid {
    display: grid;
    gap: 18px;
}

.profile-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.profile-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.profile-avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar,
.profile-avatar-fallback {
    width: 112px;
    height: 112px;
    border-radius: 28px;
    border: 1px solid var(--line-strong);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.profile-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.35), rgba(94, 194, 255, 0.28));
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.profile-copy {
    min-width: 0;
}

.profile-copy h1 {
    max-width: none;
}

.profile-nickname {
    margin: 10px 0 0;
    color: #ffd98b;
    font-size: 1.08rem;
}

.profile-actions-panel,
.history-card,
.rating-card,
.summary-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.profile-actions-panel {
    padding: 20px 22px;
}

.profile-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.profile-actions.public-match-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.profile-actions.public-match-actions .button {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.94rem;
}

.profile-actions.public-match-actions .profile-refresh-form {
    width: auto;
    margin: 0;
}

.profile-actions.public-match-actions .button.primary {
    padding-inline: 18px;
}

.profile-actions-panel .profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.profile-actions-panel .profile-actions .button,
.profile-actions-panel .profile-refresh-form .button {
    min-height: 42px;
    padding: 0 16px;
}

.profile-actions-panel .profile-actions .button.primary {
    min-width: min(100%, 220px);
}

.profile-refresh-form {
    margin: 0;
}

.profile-meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.profile-meta-list > div {
    min-width: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(8, 17, 31, 0.62);
}

.profile-meta-list strong {
    display: block;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.message-card {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.05);
}

.message-card.success {
    border-color: rgba(66, 211, 155, 0.35);
    background: rgba(66, 211, 155, 0.12);
}

.message-card.error {
    border-color: rgba(255, 110, 110, 0.35);
    background: rgba(255, 110, 110, 0.12);
}

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

.summary-tile {
    padding: 20px 22px;
}

.summary-tile.primary {
    background: linear-gradient(180deg, rgba(255, 122, 26, 0.18), rgba(9, 20, 36, 0.92));
    border-color: rgba(255, 122, 26, 0.3);
}

.summary-tile strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(2rem, 5vw, 3.1rem);
    line-height: 1;
}

.summary-tile small {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
}

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

.rating-card {
    padding: 20px;
    display: grid;
    gap: 16px;
}

.rating-card-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rating-card-values strong {
    display: block;
    margin-top: 6px;
    font-size: 1.9rem;
}

.rating-card-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.match-history-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.history-chart-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
}

.history-chart-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.history-chart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.history-chart-summary strong {
    display: block;
    margin-top: 6px;
    font-size: 1.35rem;
}

.history-chart-svg-wrap {
    padding: 14px 12px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.history-chart-svg {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
}

.history-grid-line {
    stroke: rgba(237, 244, 255, 0.18);
    stroke-width: 1;
    stroke-dasharray: 7 8;
}

.history-grid-label {
    fill: rgba(237, 244, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(5, 11, 22, 0.92);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.history-grid-label-y {
    text-anchor: end;
}

.history-grid-label-x {
    text-anchor: middle;
    fill: rgba(237, 244, 255, 0.88);
    font-size: 11px;
}

.history-grid-line-vertical {
    stroke: rgba(237, 244, 255, 0.12);
    stroke-width: 1;
    stroke-dasharray: 7 8;
}

.history-chart-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
}

.history-change-badge {
    color: var(--history-accent);
    border-color: rgba(94, 194, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
}

.history-card {
    overflow: hidden;
}

.history-map {
    padding: 18px;
    min-height: 164px;
    background:
        linear-gradient(180deg, rgba(5, 11, 22, 0.22), rgba(5, 11, 22, 0.95)),
        linear-gradient(135deg, rgba(255, 122, 26, 0.1), rgba(94, 194, 255, 0.08));
    background-size: cover;
    background-position: center;
    display: grid;
    align-content: space-between;
    gap: 18px;
}

.history-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.history-map h3 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 2rem;
    line-height: 0.95;
}

.history-map p {
    margin: 0;
    color: var(--text-soft);
}

.history-result {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.history-result.win {
    color: #9bf0c8;
    background: rgba(66, 211, 155, 0.16);
    border: 1px solid rgba(66, 211, 155, 0.3);
}

.history-result.loss {
    color: #ffb0b0;
    background: rgba(255, 110, 110, 0.14);
    border: 1px solid rgba(255, 110, 110, 0.25);
}

.history-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.history-civ {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-civ img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.history-rating strong {
    font-size: 1.5rem;
}

.history-diff.up {
    color: #9bf0c8;
}

.history-diff.down {
    color: #ffb0b0;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 34px;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(94, 194, 255, 0.14), transparent 30%),
        radial-gradient(circle at 78% 4%, rgba(255, 122, 26, 0.12), transparent 28%);
    pointer-events: none;
}

.dashboard-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: 24px;
    align-items: stretch;
}

.dashboard-identity {
    display: grid;
    align-content: center;
    gap: 22px;
}

.dashboard-title-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.dashboard-title-row h1 {
    margin: 0;
    line-height: 0.9;
}

.dashboard-avatar-wrap {
    flex: 0 0 auto;
}

.dashboard-avatar {
    display: block;
    width: clamp(76px, 9vw, 116px);
    aspect-ratio: 1;
    border: 1px solid rgba(94, 194, 255, 0.35);
    border-radius: 30px;
    object-fit: cover;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, 0.28), rgba(94, 194, 255, 0.16)),
        rgba(8, 17, 31, 0.88);
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

.dashboard-avatar-fallback {
    display: grid;
    place-items: center;
}

.dashboard-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.dashboard-stat-strip article,
.dashboard-next-card,
.dashboard-panel {
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(8, 17, 31, 0.78);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.dashboard-stat-strip article {
    min-height: 86px;
    padding: 16px;
    border-radius: 20px;
}

.dashboard-stat-strip strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    line-height: 1;
}

.dashboard-next-card {
    display: grid;
    align-content: space-between;
    gap: 16px;
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 122, 26, 0.18), rgba(94, 194, 255, 0.08) 45%, rgba(8, 17, 31, 0.88)),
        rgba(8, 17, 31, 0.9);
}

.dashboard-next-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1;
}

.dashboard-next-card p {
    margin: 0;
    color: var(--text-soft);
}

.dashboard-card-kicker {
    color: #ffcf87;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.countdown-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid rgba(255, 201, 107, 0.34);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 201, 107, 0.14), rgba(94, 194, 255, 0.06)),
        rgba(8, 17, 31, 0.62);
    color: #ffe0a0;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.countdown-pill span {
    color: var(--text-muted);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.countdown-pill strong {
    color: #ffe0a0;
    font-size: 0.92rem;
}

.countdown-pill.is-expired {
    border-color: rgba(255, 122, 122, 0.42);
    background: rgba(255, 91, 91, 0.12);
    color: #ffb2b2;
}

.countdown-pill.is-expired strong {
    color: #ffb2b2;
}

.dashboard-countdown {
    margin-top: -2px;
}

.compact-countdown {
    padding: 6px 10px;
    font-size: 0.78rem;
}

.tiny-countdown {
    padding: 5px 8px;
    justify-self: end;
}

.tiny-countdown strong {
    font-size: 0.76rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.dashboard-main-column,
.dashboard-side-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.dashboard-panel {
    overflow: hidden;
}

.dashboard-priority-panel {
    border-color: rgba(94, 194, 255, 0.28);
}

.tournament-continue-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    border-color: rgba(255, 201, 107, 0.34);
    background:
        radial-gradient(circle at top right, rgba(255, 201, 107, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(94, 194, 255, 0.08), rgba(255, 122, 26, 0.06)),
        var(--panel);
}

.continue-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.continue-copy h2,
.continue-copy p {
    margin: 0;
}

.continue-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1;
}

.continue-copy p {
    color: var(--text-soft);
}

.continue-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-notification-panel {
    border-color: rgba(255, 201, 107, 0.26);
    background:
        radial-gradient(circle at top left, rgba(255, 201, 107, 0.1), transparent 34%),
        var(--panel);
}

.dashboard-match-stack,
.dashboard-activity-list,
.dashboard-mini-list,
.dashboard-external-grid,
.profile-local-match-list {
    display: grid;
    gap: 10px;
}

.dashboard-challenge-grid,
.challenge-list,
.notification-list,
.dashboard-notification-list {
    display: grid;
    gap: 10px;
}

.notification-preferences {
    margin-bottom: 18px;
}

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

.notification-channel-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(94, 194, 255, 0.12), transparent 38%),
        rgba(10, 21, 38, 0.74);
}

.notification-channel-card[data-push-manager] {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.notification-channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(94, 194, 255, 0.28);
    border-radius: 16px;
    background: rgba(94, 194, 255, 0.08);
    color: #9bdcff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.notification-channel-card strong {
    display: block;
    color: var(--text);
}

.notification-channel-card span:not(.notification-channel-icon) {
    color: var(--text-soft);
}

.notification-channel-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.challenge-card,
.challenge-row,
.notification-row,
.dashboard-notification-row {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 21, 38, 0.72);
}

.challenge-card.incoming,
.challenge-row.incoming,
.notification-row.unread,
.dashboard-notification-row.unread {
    border-color: rgba(255, 201, 107, 0.34);
    background:
        radial-gradient(circle at top right, rgba(255, 201, 107, 0.12), transparent 36%),
        rgba(10, 21, 38, 0.82);
}

.challenge-row.accepted {
    border-color: rgba(66, 211, 155, 0.36);
    background:
        radial-gradient(circle at top right, rgba(66, 211, 155, 0.12), transparent 38%),
        rgba(10, 21, 38, 0.82);
}

.challenge-card strong,
.challenge-row strong,
.notification-row strong,
.dashboard-notification-row strong {
    color: var(--text);
}

.challenge-card em,
.challenge-row em {
    color: var(--text-muted);
    font-style: normal;
    font-weight: 700;
}

.challenge-card p,
.challenge-row p,
.notification-row p {
    margin: 0;
    color: var(--text-soft);
}

.challenge-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.challenge-actions form {
    margin: 0;
}

.compact-button {
    min-height: 36px;
    padding-inline: 14px;
}

.notification-kind {
    width: fit-content;
    color: #ffcf87;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-notification-list {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.dashboard-notification-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-notification-row:hover,
.dashboard-notification-row:focus-visible {
    border-color: rgba(94, 194, 255, 0.38);
    background: rgba(94, 194, 255, 0.07);
    transform: translateY(-1px);
    outline: none;
}

.dashboard-notification-row span,
.dashboard-notification-row small {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-mini-row-action .seed-badge {
    min-width: 92px;
    min-height: 40px;
    padding-inline: 14px;
    border-color: rgba(255, 201, 107, 0.34);
    background: rgba(255, 201, 107, 0.08);
    color: #ffe1a7;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.dashboard-mini-row-action .seed-badge:hover,
.dashboard-mini-row-action .seed-badge:focus-visible {
    border-color: rgba(255, 201, 107, 0.62);
    background: rgba(255, 122, 26, 0.14);
    color: #fff2cf;
    transform: translateY(-1px);
    outline: none;
}

.notification-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.notification-main {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.notification-main small {
    color: var(--text-muted);
    font-weight: 800;
}

.compact-help {
    margin: 8px 0 0;
    font-size: 0.92rem;
}

.dashboard-match-card,
.dashboard-activity-row,
.dashboard-external-row,
.profile-local-match-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 21, 38, 0.72);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-match-card:hover,
.dashboard-activity-row:hover,
.dashboard-external-row:hover,
.profile-local-match-card:hover,
.profile-local-match-card:focus-visible {
    border-color: rgba(94, 194, 255, 0.38);
    background: rgba(94, 194, 255, 0.07);
    transform: translateY(-1px);
    outline: none;
}

.dashboard-match-main,
.dashboard-activity-main,
.dashboard-mini-row,
.dashboard-standing-row,
.profile-local-match-main {
    color: var(--text);
    min-width: 0;
}

.dashboard-match-main {
    display: grid;
    gap: 7px;
}

.dashboard-match-meta,
.dashboard-match-hint,
.dashboard-activity-row p,
.dashboard-external-row p,
.dashboard-mini-row small,
.dashboard-standing-row small,
.profile-local-match-main small,
.profile-local-date {
    margin: 0;
    color: var(--text-muted);
}

.profile-local-match-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    text-decoration: none;
    min-width: 0;
}

.profile-local-match-main {
    display: grid;
    gap: 4px;
}

.profile-local-match-main strong,
.profile-local-match-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-local-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(94, 194, 255, 0.24);
    border-radius: 999px;
    background: rgba(94, 194, 255, 0.08);
    color: #bfe9ff;
    font-weight: 900;
}

.profile-local-result.played {
    border-color: rgba(255, 217, 139, 0.34);
    background: rgba(255, 217, 139, 0.09);
    color: #ffe0a3;
}

.profile-local-result.win {
    border-color: rgba(66, 211, 155, 0.42);
    background: rgba(66, 211, 155, 0.1);
    color: #9bf0c8;
}

.profile-local-result.loss {
    border-color: rgba(255, 122, 122, 0.42);
    background: rgba(255, 122, 122, 0.1);
    color: #ffc0c0;
}

.profile-local-date {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-match-meta {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-versus-line {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.1;
}

.dashboard-versus-line strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-versus-line em {
    color: #ffb783;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-row-actions {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.dashboard-empty-state {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed rgba(143, 169, 211, 0.32);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    color: var(--text-soft);
}

.dashboard-empty-state .ui-icon {
    width: 28px;
    height: 28px;
    color: #5ec2ff;
}

.dashboard-empty-state.compact {
    display: block;
    padding: 14px;
}

.dashboard-result-pill,
.dashboard-record {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 900;
}

.dashboard-result-pill.is-win {
    border-color: rgba(66, 211, 155, 0.42);
    background: rgba(66, 211, 155, 0.1);
    color: #9bf0c8;
}

.dashboard-result-pill.is-loss {
    border-color: rgba(255, 122, 122, 0.42);
    background: rgba(255, 122, 122, 0.1);
    color: #ffc0c0;
}

.dashboard-activity-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.dashboard-mini-row,
.dashboard-standing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 21, 38, 0.68);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dashboard-mini-row:hover,
.dashboard-mini-row:focus-visible,
.dashboard-standing-row:hover,
.dashboard-standing-row:focus-visible {
    border-color: rgba(255, 122, 26, 0.45);
    background: rgba(255, 122, 26, 0.08);
    transform: translateY(-1px);
    outline: none;
}

.dashboard-mini-row span,
.dashboard-standing-row span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-mini-row .countdown-pill,
.dashboard-mini-row .countdown-pill span {
    display: inline-flex;
}

.dashboard-tournament-row {
    align-items: center;
}

.dashboard-tournament-main {
    display: grid;
    gap: 5px;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.dashboard-tournament-main:hover strong,
.dashboard-tournament-main:focus-visible strong {
    color: #fff0c5;
}

.dashboard-tournament-main:focus-visible {
    outline: none;
}

.dashboard-tournament-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding-inline: 12px;
}

.dashboard-tournament-action::after {
    content: "→";
    margin-left: 7px;
    font-weight: 900;
    transform: translateX(0);
    transition: transform 160ms ease;
}

.dashboard-tournament-action:hover::after,
.dashboard-tournament-action:focus-visible::after {
    transform: translateX(2px);
}

.dashboard-mini-row strong,
.dashboard-standing-row strong,
.dashboard-activity-row strong,
.dashboard-external-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-record {
    min-width: 58px;
    color: #ffcf87;
}

.dashboard-open-card {
    border-color: rgba(255, 122, 26, 0.24);
}

.dashboard-external-panel {
    max-width: none;
}

.dashboard-secondary-details {
    display: grid;
    gap: 14px;
}

.dashboard-secondary-details:not([open]) {
    padding-block: 18px;
}

.dashboard-secondary-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
    list-style: none;
}

.dashboard-secondary-summary::-webkit-details-marker {
    display: none;
}

.dashboard-secondary-summary::after {
    content: "Abrir";
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.dashboard-secondary-details[open] .dashboard-secondary-summary::after {
    content: "Ocultar";
}

.dashboard-secondary-summary:hover::after,
.dashboard-secondary-summary:focus-visible::after {
    border-color: rgba(94, 194, 255, 0.45);
    background: rgba(94, 194, 255, 0.08);
    color: var(--text);
    transform: translateY(-1px);
}

.dashboard-secondary-summary:focus-visible {
    outline: none;
}

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

.dashboard-external-row p {
    margin-top: 4px;
}

.external-match-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.replay-link {
    color: #ffe0a3;
}

.replay-link:hover,
.replay-link:focus-visible {
    color: #fff6d3;
    border-color: rgba(255, 217, 139, 0.7);
    background: rgba(255, 122, 26, 0.1);
}

.compare-rating-panel {
    display: grid;
    gap: 18px;
}

.compare-toggle {
    display: inline-flex;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.compare-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.compare-toggle-button:hover,
.compare-toggle-button:focus-visible {
    color: var(--text);
    border-color: var(--line);
    transform: translateY(-1px);
}

.compare-toggle-button.is-active {
    border-color: rgba(255, 122, 26, 0.35);
    background: rgba(255, 122, 26, 0.16);
    color: #ffe0a3;
}

.compare-chart-panel {
    display: none;
    gap: 16px;
}

.compare-chart-panel.is-active {
    display: grid;
}

.compare-chart-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.compare-player-stat {
    padding: 16px;
    border: 1px solid rgba(146, 172, 214, 0.2);
    border-left: 4px solid var(--compare-color);
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--compare-color) 18%, transparent), rgba(255, 255, 255, 0.025)),
        rgba(255, 255, 255, 0.025);
}

.compare-player-stat strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}

.compare-player-stat small {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
}

.compare-chart-wrap {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 122, 26, 0.08), transparent 30%),
        rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.compare-rating-svg {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
}

.compare-grid-line-vertical {
    stroke: rgba(237, 244, 255, 0.16);
    stroke-width: 1;
    stroke-dasharray: 7 7;
}

.compare-axis-label {
    fill: rgba(237, 244, 255, 0.58);
    font-size: 12px;
    font-weight: 700;
    paint-order: stroke;
    stroke: rgba(5, 11, 22, 0.9);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.compare-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.compare-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.compare-legend i {
    display: inline-block;
    width: 22px;
    height: 10px;
    border-radius: 999px;
    background: var(--compare-color);
}

.tournament-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
    padding-bottom: 82px;
}

.panel {
    grid-column: span 4;
}

.panel-wide {
    grid-column: span 12;
}

.tournament-layout > * {
    min-width: 0;
}

.tournament-tabs-page > *,
.tournament-tab-panels,
.tournament-tab-panel,
.tournament-tab-panel > .panel,
.tournament-info-layout,
.tournament-side-stack,
.tournament-side-stack > .panel {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.tournament-tabs-page {
    width: min(1180px, calc(100vw - 32px));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
}

.tournament-tab-panel > .panel,
.tournament-info-layout > .panel,
.tournament-side-stack > .panel {
    grid-column: auto;
}

.tournament-tabs-page > .tournament-page-panel,
.tournament-tab-panel > .tournament-page-panel,
.tournament-tab-panel > .tournament-tab-card {
    display: block;
    inline-size: 100%;
    max-inline-size: none;
    min-inline-size: 0;
    justify-self: stretch;
    grid-column: 1 / -1;
}

.tournament-tabs-page .tournament-continue-panel {
    display: grid;
    inline-size: 100%;
}

.tournament-tabs-page .tournament-info-layout {
    inline-size: 100%;
}

.tournament-tabs-page .tournament-tab-panels,
.tournament-tabs-page .tournament-tab-panel {
    inline-size: 100%;
}

.roster {
    display: grid;
    gap: 10px;
}

.roster li,
.match-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.stage-block {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.stage-block:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.stage-head h3 {
    font-size: 1.15rem;
}

.match-list {
    display: grid;
    gap: 14px;
}

.match-card {
    display: grid;
    gap: 12px;
}

.versus-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
}

.versus-player {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(8, 17, 31, 0.76);
    min-width: 0;
}

.versus-score {
    padding: 0 14px;
    color: #ffb783;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.timeline-step span {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--orange);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.14em;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.auth-form label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.notification-preferences-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(94, 194, 255, 0.22);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(94, 194, 255, 0.12), transparent 36%),
        rgba(255, 255, 255, 0.035);
}

.notification-preferences-card h2 {
    margin: 0;
}

.toggle-row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start !important;
    gap: 12px !important;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.toggle-row strong,
.toggle-row small {
    display: block;
}

.toggle-row strong {
    color: var(--text);
}

.toggle-row small {
    margin-top: 3px;
    color: var(--text-soft);
}

.field-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field-cue.required {
    border-color: rgba(255, 122, 26, 0.28);
    background: rgba(255, 122, 26, 0.12);
    color: #ffd29b;
}

.field-cue.optional,
.field-cue.conditional,
.field-cue.recommended {
    border-color: rgba(94, 194, 255, 0.24);
    background: rgba(94, 194, 255, 0.12);
    color: #b8e7ff;
}

.field-cue.conditional {
    color: #d3ebff;
}

.auth-form small {
    color: var(--text-muted);
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.auth-form input.toggle-checkbox,
.toggle-checkbox {
    width: 20px;
    min-height: 20px;
    height: 20px;
    margin-top: 2px;
    padding: 0;
    accent-color: var(--orange);
}

.auth-form input:focus,
.auth-form textarea:focus,
.auth-form select:focus {
    outline: none;
    border-color: rgba(94, 194, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(94, 194, 255, 0.12);
}

.auth-form .button {
    width: 100%;
}

.search-helper {
    margin-top: 2px;
    border: 1px dashed rgba(94, 194, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.search-helper summary {
    padding: 12px 14px;
    color: #b8e7ff;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.search-helper summary::-webkit-details-marker {
    display: none;
}

.search-helper summary::after {
    content: " +";
    color: #9bdfff;
}

.search-helper[open] summary::after {
    content: " -";
}

.search-helper-card {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
    color: var(--text-soft);
    line-height: 1.6;
}

.search-helper-card p {
    margin: 0;
}

.search-helper-card code {
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff0c5;
}

.search-helper-steps {
    margin: 0;
    padding-left: 20px;
}

.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ff9d9d;
    font-size: 0.9rem;
}

.search-results,
.selected-profile {
    display: grid;
    gap: 10px;
    margin: 4px 0 2px;
}

.result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 16px;
    color: inherit;
    font: inherit;
}

.result-card > div:first-child {
    min-width: 0;
}

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

.result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.result-card strong,
.roster strong,
.versus-player strong,
.card h2,
.card h3,
.feature-card h2,
.timeline-step h3,
.panel h2,
.stage-head h3 {
    overflow-wrap: anywhere;
}

button.result-card {
    cursor: pointer;
}

button.result-card:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

button.result-card:focus-visible {
    border-color: rgba(94, 194, 255, 0.45);
    background: rgba(94, 194, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(94, 194, 255, 0.1);
}

.result-card.selected {
    background: rgba(94, 194, 255, 0.08);
}

.result-card.empty {
    color: var(--text-soft);
}

.chip-highlight {
    border-color: rgba(255, 122, 26, 0.28);
    background: rgba(255, 122, 26, 0.12);
    color: #ffd29b;
}

.search-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 26, 0.28);
    background: rgba(255, 122, 26, 0.1);
    color: #ffe0a3;
    flex-shrink: 0;
}

.search-rating strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1;
}

.search-rating-label {
    display: block;
    color: #ffbe7e;
    font-size: 0.72rem;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.result-side {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.clear-link {
    border: 0;
    background: transparent;
    color: #9bdfff;
    cursor: pointer;
    transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.clear-link:hover,
.clear-link:focus-visible {
    color: #fff0c5;
    transform: translateY(-1px);
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cfe7ff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 160ms ease, border-color 160ms ease;
}

.profile-link:hover,
.profile-link:focus-visible {
    color: #fff4bf;
    border-color: rgba(255, 217, 139, 0.7);
}

.footer-link {
    color: #d7ecff;
    border-bottom: 1px solid transparent;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #fff2c7;
    border-color: rgba(255, 217, 139, 0.7);
}

.player-directory {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.player-directory-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.player-directory-shell {
    transition: opacity 140ms ease;
}

.player-directory-shell.is-loading .player-directory,
.player-directory-shell.is-loading .pagination-bar,
.player-directory-shell.is-loading .player-directory-status {
    opacity: 0.5;
}

.player-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.player-search-form input {
    flex: 1 1 320px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.player-search-form input:focus {
    outline: none;
    border-color: rgba(94, 194, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(94, 194, 255, 0.12);
}

.player-directory-status {
    margin: 0;
}

.player-directory-card {
    position: relative;
    display: grid;
    container-type: inline-size;
    gap: 18px;
    padding: 22px;
    grid-template-rows: auto 1fr;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.player-directory-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    background: var(--panel-strong);
}

.player-directory-top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    overflow: visible;
}

.player-directory-avatar,
.player-directory-avatar-fallback {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
    object-fit: cover;
}

.player-directory-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 122, 26, 0.35), rgba(94, 194, 255, 0.28));
    font-family: "Barlow Condensed", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.player-directory-copy {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding-right: 58px;
}

.player-directory-copy h2 {
    margin-top: 4px;
    max-width: 100%;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(1.36rem, 10cqw, 1.92rem);
    line-height: 0.96;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

.player-directory-nickname {
    margin: 8px 0 0;
    color: #ffd98b;
}

.player-directory-meta {
    grid-template-columns: minmax(72px, 1fr) minmax(72px, 1fr) minmax(132px, 1.05fr);
    align-items: start;
}

.player-directory-card .country-chip {
    position: absolute;
    top: 22px;
    right: 22px;
}

.player-directory-meta > div {
    min-width: 0;
}

.player-directory-meta strong {
    display: block;
    margin-top: 6px;
    font-size: 1.3rem;
    line-height: 1.14;
}

.player-directory-meta > div:last-child strong {
    font-size: 1.12rem;
    line-height: 1.18;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.pagination-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pagination-page.is-current {
    border-color: rgba(255, 122, 26, 0.28);
    background: rgba(255, 122, 26, 0.14);
    color: #ffe0a3;
    font-weight: 700;
}

.pagination-page:hover,
.pagination-page:focus-visible {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.pagination-page.is-current:hover,
.pagination-page.is-current:focus-visible {
    border-color: rgba(255, 122, 26, 0.35);
    background: rgba(255, 122, 26, 0.18);
    color: #fff0c5;
}

.button.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}

.narrow {
    max-width: 760px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(3, 8, 16, 0.8);
}

.footer-row {
    padding: 20px 0 32px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

@media (max-width: 980px) {
    .hero-layout,
    .home-hero-grid,
    .home-showcase-grid,
    .tournament-hero-grid,
    .page-hero-row,
    .profile-hero-grid,
    .feature-band,
    .timeline-grid,
    .community-card,
    .player-directory-meta,
    .tournament-card-head,
    .tournament-overview-grid,
    .tournament-info-grid {
        grid-template-columns: 1fr;
    }

    .tournament-info-layout {
        grid-template-columns: 1fr;
    }

    .tournament-continue-panel {
        grid-template-columns: 1fr;
    }

    .continue-actions {
        justify-content: flex-start;
    }

    .compact-match-row-shell {
        grid-template-columns: 1fr;
    }

    .compact-match-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
    }

    .compact-match-quick-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .match-quick-action {
        min-height: 40px;
    }

    .compact-match-meta,
    .compact-match-actions {
        grid-column: 1 / -1;
    }

    .compact-match-meta {
        flex-wrap: wrap;
        overflow: visible;
        row-gap: 5px;
    }

    .compact-match-meta > span:not(.match-leg-pill) {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .compact-match-status {
        grid-column: 2;
        justify-self: end;
    }

    .compact-match-score {
        grid-row: 2;
        grid-column: 2;
    }

    .compact-match-player {
        grid-column: 1;
        justify-content: flex-start;
        text-align: left;
    }

    .page-hero-actions {
        justify-content: flex-start;
    }

    .panel,
    .panel-wide {
        grid-column: span 12;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }

    .summary-panel {
        min-width: 0;
    }

    .profile-summary-grid {
        grid-template-columns: 1fr;
    }

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

    .dashboard-stat-strip,
    .dashboard-external-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-match-card,
    .dashboard-activity-row,
    .dashboard-external-row,
    .profile-local-match-card {
        grid-template-columns: 1fr;
    }

    .notification-channel-grid,
    .notification-channel-card[data-push-manager] {
        grid-template-columns: 1fr;
    }

    .notification-channel-actions {
        justify-content: flex-start;
    }

    .dashboard-row-actions {
        justify-content: flex-start;
    }

    .profile-local-result {
        justify-self: start;
    }

    .profile-local-date {
        justify-self: start;
    }

    .history-chart-summary {
        grid-template-columns: 1fr;
    }

    .draft-result-grid {
        grid-template-columns: 1fr;
    }

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

    .match-eapm-head {
        display: grid;
    }

    .match-eapm-legend {
        justify-content: flex-start;
    }

    .draft-public-status {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .draft-public-status .button {
        grid-column: 1 / -1;
        justify-content: center;
        width: 100%;
    }

    .compare-chart-summary {
        grid-template-columns: 1fr;
    }

    .community-card-side {
        justify-items: start;
    }

    .home-hero h1 {
        max-width: 9ch;
    }

    .home-live-card {
        min-height: 300px;
    }

    .home-community-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-player-pills {
        justify-content: flex-start;
    }

    .registration-meta-grid,
    .tournament-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .match-flow {
        grid-template-columns: 1fr 1fr;
    }

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

    .public-match-versus {
        grid-template-columns: 1fr;
    }

    .public-match-versus .public-match-player:first-child,
    .public-match-versus .public-match-player:last-child {
        justify-items: start;
        text-align: left;
    }

    .public-match-versus .public-match-player:first-child .winner-name,
    .public-match-versus .public-match-player:last-child .winner-name {
        justify-content: flex-start;
    }

    .match-manage-layout {
        grid-template-columns: 1fr;
    }

    .match-state-card {
        position: static;
    }

    .match-flow.compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .match-flow.compact .match-flow-step {
        align-items: flex-start;
        flex-direction: column;
    }

    .match-context-grid {
        grid-template-columns: 1fr;
    }

    .public-match-score {
        min-width: 0;
    }

    .match-context-actions .button {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .result-report-form {
        grid-template-columns: 1fr 1fr;
    }

    #match-step-4 .result-report-form {
        grid-template-columns: 1fr 1fr;
    }

    #match-step-4 .result-report-form .button {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 860px) {
    .tournament-tabs {
        top: 70px;
    }

    .nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: 10px;
        padding: 12px 0;
    }

    .brand {
        grid-column: 1;
    }

    .nav-actions {
        grid-column: 2;
        justify-self: end;
        gap: 6px;
    }

    .nav-toggle:not([hidden]) {
        display: inline-flex;
        grid-column: 3;
        justify-self: end;
    }

    .menu {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
    }

    .site-header[data-nav-open="true"] .menu {
        display: flex;
    }

    .menu a,
    .inline-form,
    .inline-form button {
        width: 100%;
    }

    .notification-menu {
        width: auto;
        justify-content: center;
    }

    .notification-bell-button {
        width: 46px;
        height: 46px;
        border-color: var(--line);
        background: rgba(255, 255, 255, 0.03);
    }

    .notification-dropdown {
        left: auto;
        right: 0;
        width: min(360px, calc(100vw - 36px));
    }

    .notification-dropdown::before {
        left: auto;
        right: 18px;
    }

    .nav-actions .inline-form,
    .nav-actions .inline-form button {
        width: auto;
    }

    .nav-actions .inline-form button {
        justify-content: center;
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
        border-color: var(--line);
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-actions .inline-form button span {
        display: none;
    }

    .menu a,
    .inline-form button {
        justify-content: flex-start;
        min-height: 46px;
        padding: 0 16px;
        border-color: var(--line);
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-actions .inline-form button {
        justify-content: center;
        width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
    }

    .menu a.is-active::after,
    .menu a[aria-current="page"]::after {
        left: 16px;
        right: auto;
        bottom: 5px;
        width: 28px;
    }

    .menu-cta {
        justify-content: center !important;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100vw - 20px, 1180px);
    }

    .hero-copy h1,
    .section h1,
    .page-hero h1 {
        font-size: clamp(2.6rem, 14vw, 4.2rem);
    }

    .hero,
    .section,
    .page-hero {
        padding: 28px 0 56px;
    }

    .hero-actions,
    .page-hero-actions,
    .section-head {
        align-items: stretch;
    }

    .email-missing-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .page-hero-actions .button {
        width: 100%;
    }

    .summary-panel {
        grid-template-columns: 1fr 1fr;
        min-width: 0;
    }

    .profile-identity {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .versus-row {
        grid-template-columns: 1fr;
    }

    .versus-score {
        padding: 0;
        text-align: center;
    }

    .footer-row,
    .roster li,
    .match-head,
    .stage-head,
    .panel-head,
    .board-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .compact-list li,
    .result-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .result-head {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
    }

    .result-side {
        width: 100%;
        justify-items: start;
    }

    .card-stats {
        gap: 8px;
    }

    .history-topline,
    .rating-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-form label {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .player-directory-top {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .tournament-player-top {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .player-directory-copy {
        padding-right: 0;
    }

    .tournament-player-copy {
        padding-right: 0;
    }

    .player-directory-card .country-chip {
        position: static;
    }

    .tournament-player-card .country-chip {
        position: static;
    }

    .share-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stage-compact-head {
        flex-direction: column;
    }

    .stage-standings-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .stage-standings-head p {
        text-align: left;
    }

    .stage-standings-table {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .stage-standings-row {
        min-width: 620px;
    }

    .compact-match-quick-actions .match-quick-action {
        width: 42px;
        min-width: 42px;
        padding-inline: 0;
    }

    .compact-match-quick-actions .match-quick-action span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

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

    .inline-matchmaking-form,
    .result-report-form {
        grid-template-columns: 1fr;
    }

    #match-step-4.match-step-panel {
        padding: 20px 16px;
    }

    #match-step-4 .result-report-form {
        grid-template-columns: 1fr;
    }

    .match-flow {
        grid-template-columns: 1fr;
    }

    .match-flow.compact {
        grid-template-columns: 1fr;
    }

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

    .match-step-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .match-step-tab {
        grid-template-columns: auto minmax(0, 1fr);
        min-width: min(250px, calc(100vw - 54px));
        padding-right: 14px;
    }

    .match-step-state {
        position: absolute;
        top: 8px;
        right: 10px;
        min-width: 0;
        min-height: 22px;
        padding: 0 7px;
        font-size: 0.62rem;
    }

    .match-step-copy {
        padding-right: 54px;
    }

    .match-step-arrow {
        display: none;
    }

    .match-player-grid {
        grid-template-columns: 1fr;
    }

    .draft-output summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .draft-status-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .draft-status-strip span {
        text-align: left;
    }

    .match-step-footer {
        grid-template-columns: 1fr 1fr;
    }

    .match-step-footer .profile-link {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
    }

    .compare-toggle {
        width: 100%;
    }

    .compare-toggle-button {
        flex: 1;
    }
}

@media (max-width: 560px) {
    .cards,
    .feature-band,
    .home-proof-strip,
    .home-civ-grid,
    .timeline-grid,
    .board-columns,
    .rating-card-values,
    .dashboard-stat-strip,
    .dashboard-external-grid,
    .match-analysis-summary,
    .summary-panel,
    .stat-strip {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        padding-top: 44px;
    }

    .dashboard-title-row {
        align-items: flex-start;
        gap: 14px;
    }

    .dashboard-avatar {
        width: 68px;
        border-radius: 20px;
        font-size: 1.7rem;
    }

    .dashboard-next-card {
        padding: 18px;
        border-radius: 22px;
    }

    .dashboard-versus-line {
        display: grid;
        gap: 5px;
    }

    .dashboard-versus-line em {
        width: max-content;
    }

    .dashboard-activity-main {
        grid-template-columns: 1fr;
    }

    .home-hero {
        padding-top: 44px;
    }

    .home-scoreboard,
    .home-proof-strip {
        display: grid;
    }

    .home-vs {
        width: max-content;
    }

    .home-profile-mock,
    .home-mini-bracket {
        grid-template-columns: 1fr;
    }

    .home-draft-demo {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .home-rec-list span,
    .home-rec-list a {
        display: grid;
    }

    .brand {
        gap: 10px;
    }

    .brand strong {
        font-size: 0.88rem;
    }

    .brand small {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }

    .button,
    .menu a,
    .inline-form button {
        width: 100%;
    }

    .profile-actions.public-match-actions .button {
        width: auto;
        flex: 1 1 calc(50% - 8px);
    }

    .stage-standings-head {
        display: grid;
        gap: 6px;
    }

    .stage-standings-head p {
        max-width: none;
        text-align: left;
    }

    .stage-standings-row {
        grid-template-columns: 32px minmax(0, 1fr) 48px 58px;
        min-width: 0;
    }

    .stage-standings-row > :nth-child(5),
    .stage-standings-row > :nth-child(6) {
        display: none;
    }

    .nav-actions .inline-form button {
        width: 46px;
    }

    .player-search-form .button {
        width: auto;
    }

    .feature-card,
    .timeline-step,
    .panel,
    .card,
    .summary-panel,
    .board-shell,
    .stat-strip article {
        padding: 18px;
    }

    .registration-meta-grid,
    .tournament-card-grid,
    .share-grid {
        grid-template-columns: 1fr;
    }

    .tournament-share-row {
        grid-template-columns: repeat(4, minmax(max-content, 1fr));
    }
}
