:root {
    color-scheme: dark;
    --color-primary: #7c3aed;
    --color-secondary: #a78bfa;
    --color-cta: #f43f5e;
    --color-background: #0f0f23;
    --color-text: #e2e8f0;
    --ink: #f8fbff;
    --muted: #9aa6c7;
    --muted-2: #647091;
    --panel: rgba(14, 16, 35, 0.82);
    --panel-strong: rgba(18, 20, 44, 0.94);
    --line: rgba(167, 139, 250, 0.18);
    --line-hot: rgba(244, 63, 94, 0.38);
    --good: #22c55e;
    --warn: #fbbf24;
    --bad: #fb7185;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --shadow-21: 0 16px 48px rgba(0, 0, 0, 0.36), 0 0 42px rgba(124, 58, 237, 0.1);
    --shadow-hot: 0 12px 34px rgba(244, 63, 94, 0.22), 0 0 24px rgba(124, 58, 237, 0.2);
    --sidebar-width: 260px;
    --ease: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    font-family: 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(244, 63, 94, 0.24), transparent 22rem),
        radial-gradient(circle at 88% 10%, rgba(124, 58, 237, 0.26), transparent 24rem),
        radial-gradient(circle at 50% 95%, rgba(14, 165, 233, 0.11), transparent 28rem),
        linear-gradient(180deg, #090913 0%, #0f0f23 54%, #090913 100%);
    overflow-x: hidden;
    font-size: 15px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
    background-size: 48px 48px, 48px 48px, 100% 4px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
}

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

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

button {
    border: 0;
}

h1,
h2,
h3,
.tf-brand-title,
.tf-stat-value,
.topbar-title {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.03em;
    font-weight: 700;
}

img {
    max-width: 100%;
}

code {
    display: block;
    overflow-wrap: anywhere;
    color: #ffd6de;
    font-size: 0.9rem;
}

.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;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 0.75rem;
    min-height: 100vh;
    padding: 0.65rem;
}

.main-shell,
.page-shell,
.public-shell,
.login-shell {
    min-width: 0;
}

.main-shell,
.page-shell {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.login-shell,
.public-shell {
    min-height: 100vh;
    padding: clamp(0.75rem, 2vw, 1.25rem);
}

.login-shell {
    display: grid;
    place-items: center;
}

.public-shell {
    width: min(100%, 1220px);
    margin: 0 auto;
    display: grid;
    align-content: start;
    gap: 1rem;
}

.tf-card,
.card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
        linear-gradient(180deg, var(--panel-strong), rgba(10, 11, 24, 0.92));
    box-shadow: var(--shadow-21);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.tf-card::before,
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.15), transparent);
    opacity: 0.42;
}

.tf-card-pad {
    padding: clamp(0.85rem, 1.6vw, 1.15rem);
}

.tf-button,
.primary-action,
.secondary-action,
.text-link,
.player-picker-trigger,
.player-picker-option,
.logout-button,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
}

@keyframes form-busy-spin {
    to {
        transform: rotate(360deg);
    }
}

.primary-action,
.tf-button-primary {
    padding: 0.68rem 1rem;
    color: white;
    background: linear-gradient(135deg, var(--color-cta), #ff7a3d 52%, var(--color-primary));
    box-shadow: var(--shadow-hot);
}

.secondary-action,
.tf-button-secondary,
.player-picker-trigger {
    padding: 0.62rem 0.92rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
}

.topbar-public-label-short {
    display: none;
}

.text-link {
    min-height: 34px;
    padding: 0.38rem 0.68rem;
    color: #d8ccff;
    background: rgba(124, 58, 237, 0.11);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.tf-button:hover,
.primary-action:hover,
.secondary-action:hover,
.text-link:hover,
.player-picker-trigger:hover,
.player-picker-option:hover,
.logout-button:hover,
.icon-button:hover {
    transform: translateY(-1px);
    border-color: var(--line-hot);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.text-link:focus-visible,
.sidebar-link:focus-visible,
.player-picker-trigger:focus-visible,
.player-picker-option:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(244, 63, 94, 0.9);
    outline-offset: 3px;
}

.form-busy-host {
    position: relative;
    isolation: isolate;
}

.form-busy-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 26px;
    background: rgba(6, 10, 20, 0.46);
    backdrop-filter: blur(2px);
}

.form-busy-overlay-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(14, 19, 36, 0.88);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
}

.form-busy-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: form-busy-spin 0.72s linear infinite;
}

.form-busy-label {
    letter-spacing: 0.02em;
}

.is-form-busy {
    pointer-events: none;
}

.brand-mark {
    position: relative;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), transparent 16%),
        conic-gradient(from 150deg, #f43f5e, #7c3aed, #06b6d4, #f43f5e);
    box-shadow: 0 0 34px rgba(124, 58, 237, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.brand-mark::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(15, 15, 35, 0.88);
    border-left-color: transparent;
    transform: rotate(45deg);
}

.brand-logo {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.brand-logo::after {
    display: none;
}

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

.tf-brand,
.login-brand,
.public-brand,
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.tf-brand-title,
.login-brand strong,
.public-brand strong,
.sidebar-brand strong {
    display: block;
    color: var(--ink);
    font-size: 0.95rem;
}

.tf-brand-subtitle,
.login-brand small,
.public-brand small,
.sidebar-brand small {
    display: block;
    color: var(--muted);
    margin-top: 0.1rem;
}

.sidebar-backdrop {
    display: none;
}

.sidebar {
    position: sticky;
    top: 0.65rem;
    height: calc(100vh - 1.3rem);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.96), rgba(8, 9, 20, 0.96));
    box-shadow: var(--shadow-21);
    backdrop-filter: blur(22px);
}

.sidebar-brand-wrap,
.sidebar-footer {
    padding: 0.25rem 0.15rem 0.75rem;
    border-bottom: 1px solid var(--line);
}

.sidebar-footer {
    margin-top: auto;
    padding: 0.75rem 0.15rem 0.15rem;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    display: grid;
    gap: 0.85rem;
}

.sidebar-section,
.sidebar-nav,
.sidebar-admin-box,
.sidebar-note {
    display: grid;
    gap: 0.55rem;
}

.sidebar-label,
.overline,
.metric-label,
.field span,
.field-label,
.summary-cell span {
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.66rem;
    font-weight: 700;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 40px;
    padding: 0.55rem 0.68rem;
    color: #cfd7ff;
    border-radius: 13px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease);
}

.sidebar-link:hover,
.sidebar-link.is-active {
    color: var(--ink);
    border-color: rgba(167, 139, 250, 0.26);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.24), rgba(244, 63, 94, 0.1));
}

.nav-icon {
    width: 12px;
    height: 12px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f43f5e, #a78bfa);
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.38);
}

.sidebar-note,
.sidebar-admin-box {
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
}

.sidebar-note strong,
.sidebar-admin-box strong {
    color: var(--ink);
}

.sidebar-note small {
    color: var(--muted);
}

.logout-form {
    margin: 0;
}

.logout-button {
    width: 100%;
    padding: 0.55rem 0.75rem;
    color: var(--ink);
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.26);
}

.topbar {
    position: static;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 0;
    padding: 0;
    margin-bottom: 0.85rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.topbar-left,
.page-actions,
.form-actions,
.centered-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.topbar-context {
    display: grid;
    gap: 0.28rem;
    min-width: 0;
}

.topbar-title {
    color: var(--ink);
    font-size: clamp(1.28rem, 2vw, 1.7rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-left {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0;
}

.topbar-public-link {
    flex-shrink: 0;
    flex-wrap: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    min-height: 56px;
    padding: 0.78rem 1.18rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background: rgba(10, 12, 31, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-public-link .button-icon {
    flex-shrink: 0;
}

.topbar-context small,
.section-title-block p,
.page-header p,
.public-subtitle,
.soft-meta,
.player-row-identity p,
.entry-head p,
.history-row-card p,
.centered-copy p {
    color: var(--muted);
}

.topbar-context small {
    color: var(--muted);
    font-size: 0.86rem;
}

.mobile-only {
    display: none;
}

.icon-button {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
}

.icon-button span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}

.page-header,
.public-leaderboard-header,
.public-player-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(0.9rem, 2vw, 1.3rem);
    border-radius: var(--radius-xl);
}

.page-header,
.public-player-hero {
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.26), transparent 34%),
        linear-gradient(180deg, rgba(18, 20, 44, 0.84), rgba(10, 11, 24, 0.9));
}

.page-header h1,
.public-leaderboard-header h1,
.section-title-block h1,
.centered-copy h1 {
    margin: 0.25rem 0;
    color: var(--ink);
    font-size: clamp(1.45rem, 3.2vw, 2.8rem);
    line-height: 1;
    text-shadow: 0 0 34px rgba(124, 58, 237, 0.32);
}

.page-header p,
.public-leaderboard-header p,
.section-title-block p {
    max-width: 68ch;
    margin: 0;
    font-size: 0.95rem;
}

.compact-head {
    margin-bottom: 0.55rem;
}

.metrics-grid,
.dashboard-grid,
.split-grid,
.summary-grid,
.player-entry-grid,
.form-grid {
    display: grid;
    gap: 0.75rem;
}

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

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

.span-8 {
    grid-column: span 8;
}

.span-4 {
    grid-column: span 4;
}

.split-grid {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.single-column-layout {
    display: grid;
    align-content: start;
}

.metric-card,
.split-form,
.split-list,
.compact-card,
.wide-form,
.setup-card,
.player-summary-card,
.public-match-history-card,
.login-card {
    padding: clamp(0.8rem, 1.45vw, 1.1rem);
}

.wide-form {
    overflow: visible;
}

.page-matches .tf-card {
    overflow: visible;
}

.metric-card {
    min-height: 112px;
    display: grid;
    align-content: space-between;
    border-radius: var(--radius-lg);
}

.metric-card strong,
.tf-stat-value {
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1;
}

.metric-card small {
    color: var(--muted);
}

.dashboard-hero-shell {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.15rem;
}

.dashboard-hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 4.1vw, 3.45rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
}

.dashboard-hero-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-menu-button {
    display: none;
    flex: 0 0 auto;
}

.dashboard-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.5rem;
    color: #9da2cc;
    font-size: clamp(0.95rem, 1.35vw, 1.08rem);
}

.dashboard-hero-date .button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #b97aff;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

.dashboard-hero-actions {
    display: grid;
    justify-items: end;
    gap: 0.75rem;
    width: min(100%, 324px);
}

.dashboard-public-link,
.dashboard-hero-cta-row .primary-action,
.dashboard-hero-cta-row .secondary-action {
    min-height: 56px;
    border-radius: 18px;
}

.dashboard-public-link {
    width: 100%;
    justify-content: center;
}

.dashboard-hero-cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    padding: 0.12rem;
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 20px;
    background: rgba(10, 12, 31, 0.72);
}

.dashboard-cta-primary,
.dashboard-cta-secondary {
    border-radius: 16px;
}

.dashboard-cta-primary {
    border-color: transparent;
    background: linear-gradient(90deg, #ff5c67, #c046ff);
    box-shadow: 0 12px 24px rgba(192, 70, 255, 0.16);
}

.dashboard-cta-secondary {
    background: transparent;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
}

.dashboard-kpi-card,
.dashboard-panel,
.dashboard-footer-note {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 19, 46, 0.96), rgba(10, 11, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dashboard-kpi-card {
    display: grid;
    gap: 0.6rem;
    min-height: 168px;
    padding: 1.05rem 1.1rem;
}

.dashboard-kpi-card::before {
    content: '';
    position: absolute;
    inset: auto -8% -18% 48%;
    height: 82px;
    border-radius: 100% 0 0 0;
    background: radial-gradient(circle at 30% 60%, rgba(124, 58, 237, 0.16), transparent 58%);
    pointer-events: none;
}

.dashboard-kpi-card::after {
    content: '';
    position: absolute;
    right: 0.9rem;
    bottom: 0.55rem;
    width: 132px;
    height: 54px;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 132px 54px;
    opacity: 0.92;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='54' viewBox='0 0 132 54' fill='none'%3E%3Cpath d='M1 53C14 53 19 39 31 39C45 39 48 54 62 54C74 54 78 43 89 43C102 43 105 28 118 28C124 28 127 30 131 33' stroke='%238D5CF7' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dashboard-kpi-card-matches::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='54' viewBox='0 0 132 54' fill='none'%3E%3Cpath d='M1 53C14 53 19 46 31 46C45 46 48 25 62 25C74 25 78 34 89 34C102 34 105 15 118 15C124 15 127 19 131 23' stroke='%236A7BFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dashboard-kpi-card-kills::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='54' viewBox='0 0 132 54' fill='none'%3E%3Cpath d='M1 53C14 53 19 40 31 40C45 40 48 52 62 52C74 52 78 35 89 35C102 35 105 18 118 18C124 18 127 22 131 27' stroke='%23FF5799' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dashboard-kpi-card-leader::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='54' viewBox='0 0 132 54' fill='none'%3E%3Cpath d='M1 53C14 53 19 53 31 53C45 53 48 53 62 53C74 53 78 53 89 53C102 53 105 43 118 43C124 43 127 41 131 37' stroke='%23FF9A40' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.dashboard-kpi-head {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.dashboard-kpi-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    background: rgba(10, 12, 31, 0.72);
}

.dashboard-kpi-icon .button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #b97aff;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

.dashboard-kpi-card-kills .dashboard-kpi-icon .button-icon {
    color: #ff5b8e;
}

.dashboard-kpi-card-leader .dashboard-kpi-icon .button-icon {
    color: #f0a63b;
}

.dashboard-kpi-card strong {
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 0.92;
}

.dashboard-kpi-card small {
    color: #9aa0cb;
    font-size: 0.98rem;
}

.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-panel {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
}

.dashboard-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-panel-head h2 {
    margin: 0.18rem 0 0;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1;
}

.dashboard-panel-chip {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.7rem 2.7rem 0.7rem 1rem;
    border: 1px solid rgba(167, 139, 250, 0.16);
    border-radius: 16px;
    background: rgba(10, 12, 31, 0.74);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
}

.dashboard-panel-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0.95rem;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23cfd7ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transform: translateY(-50%);
    opacity: 0.95;
}

.dashboard-chart-wrap {
    height: 380px;
}

.dashboard-empty-panel {
    min-height: 260px;
}

.dashboard-insight-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(167, 139, 250, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-insight-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(93, 45, 185, 0.82));
}

.dashboard-insight-icon .button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #fff;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

.dashboard-insight-copy strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.dashboard-insight-copy p {
    margin: 0.22rem 0 0;
    color: #9aa0cb;
    font-size: 0.96rem;
}

.dashboard-insight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #b97aff;
    font-weight: 700;
}

.dashboard-insight-link .button-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: currentColor;
    transform: rotate(-90deg);
    -webkit-mask-size: 14px 14px;
    mask-size: 14px 14px;
}

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

.dashboard-rank-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(167, 139, 250, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
}

.dashboard-rank-left {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.dashboard-rank-badge {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    background: linear-gradient(180deg, #7b45f4, #5b2bb6);
    box-shadow: 0 0 18px rgba(123, 69, 244, 0.16);
}

.dashboard-rank-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
}

.dashboard-rank-copy {
    min-width: 0;
}

.dashboard-rank-copy strong {
    display: block;
    color: #fff;
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-rank-copy small {
    color: #9aa0cb;
    font-size: 0.9rem;
}

.dashboard-rank-score {
    color: #ffb36a;
    font-size: clamp(1.08rem, 1.5vw, 1.5rem);
    font-weight: 800;
    white-space: nowrap;
    justify-self: end;
    text-align: right;
    line-height: 1;
}

.dashboard-footer-note {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
}

.dashboard-footer-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(93, 45, 185, 0.82));
}

.dashboard-footer-icon .button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #fff;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

.dashboard-footer-note p {
    margin: 0;
    color: #9aa0cb;
    font-size: 1rem;
}

@media (max-width: 1180px) {
    .dashboard-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .dashboard-hero-shell {
        gap: 0.85rem;
    }

    .dashboard-hero-title-row {
        gap: 0.65rem;
    }

    .dashboard-hero-copy h1 {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .dashboard-hero-date {
        margin-top: 0.55rem;
        font-size: 0.92rem;
    }

    .dashboard-hero-actions {
        width: 100%;
        justify-items: stretch;
    }

    .dashboard-public-link,
    .dashboard-hero-cta-row .primary-action,
    .dashboard-hero-cta-row .secondary-action {
        min-height: 52px;
    }

    .dashboard-hero-cta-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
        padding: 0.35rem;
        border-radius: 18px;
    }

    .dashboard-kpi-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-top: 1rem;
    }

    .dashboard-kpi-card {
        min-height: 140px;
        padding: 0.9rem;
    }

    .dashboard-kpi-card strong {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .dashboard-panel {
        gap: 0.85rem;
        padding: 0.9rem;
        border-radius: 22px;
    }

    .dashboard-panel-head,
    .dashboard-insight-card,
    .dashboard-rank-card,
    .dashboard-footer-note {
        gap: 0.75rem;
    }

    .dashboard-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-panel-chip {
        min-height: 42px;
        padding: 0.6rem 2.4rem 0.6rem 0.85rem;
        border-radius: 14px;
        font-size: 0.92rem;
    }

    .dashboard-chart-wrap {
        height: 300px;
    }

    .dashboard-empty-panel {
        min-height: 180px;
    }

    .dashboard-insight-card {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 0.9rem;
    }

    .dashboard-rank-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 0.85rem;
    }

    .dashboard-rank-left {
        width: 100%;
    }

    .dashboard-rank-score {
        align-self: center;
    }

    .dashboard-footer-note {
        align-items: flex-start;
        margin-top: 0.85rem;
        padding: 0.95rem;
    }
}

.accent-card {
    border-color: var(--line-hot);
    background:
        linear-gradient(135deg, rgba(244, 63, 94, 0.22), rgba(124, 58, 237, 0.2)),
        linear-gradient(180deg, rgba(18, 20, 44, 0.94), rgba(10, 11, 24, 0.94));
}

.card-head,
.compact-head,
.centered-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.card-head h2,
.compact-head h2,
.centered-card-head h2 {
    margin: 0.15rem 0 0;
    color: var(--ink);
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.centered-card-head,
.centered-copy,
.centered-actions {
    text-align: center;
    justify-content: center;
}

.soft-chip,
.status-pill,
.ranking-index,
.mobile-rank-meta span,
.history-row-metrics span,
.soft-meta {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #d8ccff;
    background: rgba(124, 58, 237, 0.1);
    font-size: 0.8rem;
    font-weight: 700;
}

.status-pill.is-live {
    color: #c9ffe0;
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.11);
}

.status-pill.is-muted {
    color: #c8cedf;
    background: rgba(100, 116, 139, 0.12);
}

.chart-wrap {
    height: 260px;
}

.empty-panel {
    display: grid;
    min-height: 96px;
    place-items: center;
    padding: 0.9rem;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(167, 139, 250, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
}

.ranking-list,
.player-list,
.history-list,
.form-stack {
    display: grid;
    gap: 0.65rem;
}

.ranking-row,
.player-row-card,
.history-row-card,
.mobile-rank-card,
.entry-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.68rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
    transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.ranking-row:hover,
.player-row-card:hover,
.history-row-card:hover,
.mobile-rank-card:hover {
    transform: translateY(-1px);
    border-color: var(--line-hot);
    background: rgba(255, 255, 255, 0.07);
}

.ranking-meta,
.public-history-main {
    min-width: 0;
    flex: 1;
}

.ranking-meta strong,
.player-row-identity strong,
.entry-head strong,
.history-row-card strong,
.table-link strong,
.mobile-rank-top strong {
    color: var(--ink);
}

.ranking-meta small {
    display: block;
    color: var(--muted);
}

.ranking-score {
    color: #ffd6de;
    font-weight: 800;
}

.app-form,
.form-section,
.roster-picker {
    display: grid;
    gap: 0.75rem;
}

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

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

.form-grid.cols-5,
.match-stat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.field,
.toggle-field,
.slim-field {
    display: grid;
    gap: 0.45rem;
}

.toggle-field {
    display: flex;
    align-items: center;
    width: fit-content;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
}

.toggle-field.toggle-switch {
    position: relative;
    gap: 0.7rem;
    padding: 0.5rem 0.85rem 0.5rem 0.55rem;
}

.toggle-field.toggle-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-switch-track {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.toggle-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--ink);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: transform var(--ease), background var(--ease);
}

.toggle-switch-label {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
}

.toggle-field.toggle-switch input:checked + .toggle-switch-track {
    border-color: rgba(244, 63, 94, 0.36);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.92), rgba(124, 58, 237, 0.88));
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.18);
}

.toggle-field.toggle-switch input:checked + .toggle-switch-track .toggle-switch-thumb {
    transform: translateX(20px);
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    color: var(--ink);
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 13px;
    background: rgba(3, 6, 23, 0.52);
    padding: 0.6rem 0.75rem;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

select,
input[type='date'],
input[type='datetime-local'] {
    padding-right: 2.9rem;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23cfd7ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.95rem center;
    background-size: 14px 14px;
}

input[type='date']::-webkit-calendar-picker-indicator,
input[type='datetime-local']::-webkit-calendar-picker-indicator {
    margin-right: 0.35rem;
    padding: 0.3rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.04);
}

.control-shell {
    position: relative;
    display: block;
}

.control-shell-chevron::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23cfd7ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.95;
}

.control-input {
    width: 100%;
    padding-right: 3rem;
}

.control-input-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

.control-input-datetime {
    appearance: none;
    -webkit-appearance: none;
    background-image: none;
}

.control-input-datetime::-webkit-calendar-picker-indicator,
.control-input-datetime::-webkit-inner-spin-button,
.control-input-datetime::-webkit-clear-button {
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
}

input[type='file'] {
    padding: 0.52rem;
}

input[type='checkbox'] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--color-cta);
}

input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--line-hot);
    background: rgba(3, 6, 23, 0.72);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.player-row-identity,
.player-row-meta,
.row-links,
.entry-head,
.mobile-rank-top,
.history-row-metrics {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.player-avatar {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-cta));
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.22);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.hero-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.75rem;
    border-radius: 26px;
}

.player-picker {
    position: relative;
    z-index: 120;
}

.player-picker-trigger {
    width: min(100%, 360px);
    justify-content: space-between;
}

.player-picker-menu {
    position: absolute;
    z-index: 140;
    top: calc(100% + 0.6rem);
    left: 0;
    width: min(100%, 440px);
    max-height: 420px;
    display: grid;
    gap: 0.5rem;
    overflow: auto;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(10, 11, 24, 0.98);
    box-shadow: var(--shadow-21);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.player-picker.is-open .player-picker-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.player-picker-option {
    width: 100%;
    justify-content: space-between;
    min-height: 50px;
    padding: 0.58rem 0.65rem;
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
    text-align: left;
}

.player-picker-option small {
    display: block;
    color: var(--muted);
}

.player-picker-option.is-pending,
.player-picker-option.is-selected {
    border-color: var(--line-hot);
    background: rgba(244, 63, 94, 0.12);
}

.player-picker-option:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.player-picker-actions {
    padding-top: 0.45rem;
}

.picker-action {
    width: 100%;
}

.entry-card {
    display: grid;
    align-items: stretch;
}

.match-entry-layout {
    gap: 0.65rem;
}

.match-entry-panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.match-form-card,
.recent-matches-card {
    padding: 0.75rem;
}

.match-form-card {
    position: relative;
    z-index: 90;
    overflow: visible;
}

.recent-matches-card {
    position: relative;
    z-index: 1;
}

.match-form {
    gap: 0.7rem;
}

.ocr-inline-panel {
    display: grid;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.ai-entry-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(164, 121, 255, 0.24);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 93, 143, 0.14), transparent 18rem),
        linear-gradient(180deg, rgba(11, 12, 31, 0.98), rgba(8, 9, 24, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 40px rgba(3, 4, 18, 0.3);
}

.ai-entry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 78%, rgba(130, 77, 255, 0.14) 87%, transparent 88%),
        linear-gradient(135deg, transparent 84%, rgba(255, 103, 185, 0.22) 93%, transparent 94%),
        linear-gradient(135deg, transparent 88%, rgba(255, 142, 102, 0.16) 98%, transparent 99%);
    pointer-events: none;
}

.ai-import-hero,
.ai-import-step-card,
.ai-import-footer {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(155, 118, 255, 0.2);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 19, 46, 0.96), rgba(10, 11, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-import-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 130px;
    padding: 1rem 1.05rem;
}

.ai-import-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 74%, rgba(126, 74, 255, 0.14) 85%, transparent 86%),
        linear-gradient(135deg, transparent 82%, rgba(255, 102, 185, 0.24) 93%, transparent 94%),
        linear-gradient(135deg, transparent 88%, rgba(255, 171, 121, 0.14) 99%, transparent 100%);
    pointer-events: none;
}

.ai-import-hero-icon,
.ai-status-icon {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    background: rgba(10, 12, 31, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 28px rgba(139, 92, 246, 0.12);
}

.ai-import-hero-icon .button-icon,
.ai-status-icon .button-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: #9f69ff;
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
}

.ai-import-hero-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.ai-import-hero-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.45rem, 2.5vw, 2.45rem);
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-import-hero-copy p {
    margin: 0;
    color: #9aa0cb;
    font-size: clamp(0.92rem, 1.2vw, 1.08rem);
}

.ai-import-step-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.ai-import-step-head,
.ocr-progress-head,
.ocr-result-head,
.ocr-result-meta,
.ai-status-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ai-import-step-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-import-step-title strong {
    color: #fff;
    font-size: clamp(1.1rem, 1.8vw, 1.55rem);
    line-height: 1.05;
}

.ai-import-step-number {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(180deg, #8b5cf6, #5d2db9);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.ai-import-step-note {
    color: #8f96c5;
    font-size: 0.9rem;
    font-weight: 600;
}

.ai-upload-dropzone {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    min-height: 188px;
    padding: 1rem;
    border: 1px dashed rgba(167, 139, 250, 0.32);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 10, 28, 0.96), rgba(12, 13, 31, 0.9));
    text-align: center;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
    cursor: pointer;
}

.ai-upload-dropzone:hover,
.ai-upload-dropzone.is-dragover {
    border-color: rgba(198, 146, 255, 0.66);
    background: linear-gradient(180deg, rgba(12, 14, 35, 0.98), rgba(16, 14, 41, 0.94));
    box-shadow: 0 0 0 1px rgba(155, 91, 255, 0.14), 0 0 26px rgba(145, 79, 255, 0.12);
    transform: translateY(-1px);
}

.ai-upload-dropzone-icon {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    color: #9f69ff;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.14), rgba(10, 12, 32, 0.18) 66%);
}

.ai-upload-dropzone-icon .button-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    -webkit-mask-size: 36px 36px;
    mask-size: 36px 36px;
}

.ai-upload-dropzone strong {
    color: #fff;
    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    line-height: 1.08;
}

.ai-upload-dropzone span {
    color: #959ac7;
    font-size: 0.96rem;
}

.ai-upload-choose {
    min-width: 198px;
    justify-content: center;
}

.ai-upload-selected {
    color: #9aa0cb;
    font-size: 0.9rem;
    font-weight: 600;
}

.ai-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.ai-setup-event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: end;
}

.ai-setup-plus {
    min-width: 54px;
    min-height: 54px;
    border-radius: 18px;
}

.ai-import-toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.8rem 0.95rem 0.8rem 0.7rem;
    border-top: 1px solid rgba(167, 139, 250, 0.14);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
}

.toggle-switch-copy {
    display: grid;
    gap: 0.12rem;
}

.toggle-switch-copy strong {
    color: #fff;
    font-size: clamp(1rem, 1.3vw, 1.22rem);
    line-height: 1.08;
}

.toggle-switch-copy small {
    color: #9499c6;
    font-size: 0.88rem;
    line-height: 1.35;
}

.ai-import-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.ai-import-action-grid-single {
    grid-template-columns: 1fr;
}

.ai-import-save-row {
    margin-top: -0.15rem;
}

.ai-import-process-button,
.ai-import-save-button {
    min-height: 68px;
    border-radius: 20px;
    justify-content: center;
    font-size: clamp(0.98rem, 1.3vw, 1.18rem);
}

.ai-import-process-button {
    position: relative;
    border-color: rgba(182, 113, 255, 0.34);
    background: linear-gradient(90deg, rgba(94, 51, 196, 0.94), rgba(164, 78, 255, 0.92));
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.18);
    color: #fff;
}

.ai-import-process-button.is-loading {
    pointer-events: none;
    filter: saturate(1.08);
}

.ai-import-process-button.is-loading .button-icon {
    opacity: 0;
}

.ai-process-loader {
    display: inline-grid;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(216, 204, 255, 0.24);
    border-top-color: #d8ccff;
    border-radius: 999px;
    animation: aiSpin 0.8s linear infinite;
}

.ai-process-loader[hidden],
.ai-import-save-button[hidden],
.ocr-notice[hidden] {
    display: none !important;
}

.ai-import-save-button {
    background: linear-gradient(90deg, #ff5c67, #c046ff);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(192, 70, 255, 0.22);
    color: #fff;
}

.ai-import-save-button:disabled {
    background: linear-gradient(180deg, rgba(43, 45, 74, 0.8), rgba(25, 26, 48, 0.84));
    border-color: rgba(167, 139, 250, 0.14);
    box-shadow: none;
}

.ocr-notice {
    margin: 0;
}

@media (max-width: 760px) {
    .match-entry-panel-grid {
        grid-template-columns: 1fr;
    }

    .ai-import-hero {
        grid-template-columns: 1fr;
        justify-items: start;
        min-height: 0;
        padding: 0.95rem;
    }

    .ai-import-hero-copy h2 {
        font-size: clamp(1.28rem, 5.1vw, 1.7rem);
    }

    .ai-import-step-card {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .ai-import-step-head,
    .ocr-progress-head,
    .ocr-result-head,
    .ocr-result-meta,
    .ai-status-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .ai-upload-dropzone {
        min-height: 170px;
        padding: 0.95rem 0.8rem;
    }

    .ai-upload-dropzone strong {
        font-size: 1.02rem;
    }

    .ai-setup-grid,
    .ai-import-action-grid,
    .ai-import-action-grid {
        grid-template-columns: 1fr;
    }

    .ai-setup-event-row {
        grid-template-columns: minmax(0, 1fr) 50px;
    }

    .ai-setup-plus {
        min-width: 50px;
        min-height: 50px;
    }

    .ai-import-process-button,
    .ai-import-save-button {
        min-height: 58px;
        font-size: 0.98rem;
    }
}

@media (min-width: 761px) and (max-width: 1120px) {
    .match-entry-panel-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes aiSpin {
    to {
        transform: rotate(360deg);
    }
}

.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;
}

.manual-entry-card {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(171, 114, 255, 0.24);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 93, 143, 0.14), transparent 18rem),
        linear-gradient(180deg, rgba(9, 10, 28, 0.98), rgba(7, 8, 22, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 40px rgba(3, 4, 18, 0.3);
}

.manual-entry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 74%, rgba(126, 74, 255, 0.14) 84%, transparent 85%),
        linear-gradient(135deg, transparent 82%, rgba(255, 102, 185, 0.24) 93%, transparent 94%),
        linear-gradient(135deg, transparent 88%, rgba(255, 171, 121, 0.14) 99%, transparent 100%);
    pointer-events: none;
}

.manual-entry-card .match-form {
    position: relative;
    z-index: 1;
    gap: 0.95rem;
}

.manual-entry-hero,
.manual-step-card {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(155, 118, 255, 0.2);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 19, 46, 0.96), rgba(10, 11, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.manual-entry-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-height: 122px;
    padding: 1rem 1.05rem;
}

.manual-entry-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 74%, rgba(126, 74, 255, 0.14) 85%, transparent 86%),
        linear-gradient(135deg, transparent 82%, rgba(255, 102, 185, 0.24) 93%, transparent 94%),
        linear-gradient(135deg, transparent 88%, rgba(255, 171, 121, 0.14) 99%, transparent 100%);
    pointer-events: none;
}

.manual-entry-hero-copy {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.manual-entry-hero-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.85rem, 3vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.manual-entry-hero-copy p {
    margin: 0;
    color: #9aa0cb;
    font-size: clamp(0.92rem, 1.15vw, 1.08rem);
}

.manual-step-card {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
}

.manual-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.manual-step-overline {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #a863ff;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

.manual-step-overline .button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: currentColor;
    -webkit-mask-size: 16px 16px;
    mask-size: 16px 16px;
}

.manual-input-shell {
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background: rgba(10, 12, 31, 0.94);
}

.manual-input-shell-icon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.9rem;
}

.manual-input-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #b97aff;
    -webkit-mask-size: 22px 22px;
    mask-size: 22px 22px;
}

.manual-control-input {
    min-height: 64px;
    padding-left: 0;
    padding-right: 3rem;
    border: 0;
    background: transparent;
    box-shadow: none !important;
}

.manual-upload-dropzone {
    display: grid;
    place-items: center;
    gap: 0.5rem;
    min-height: 230px;
    padding: 1.05rem;
    border: 1px dashed rgba(167, 139, 250, 0.32);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 10, 28, 0.96), rgba(12, 13, 31, 0.9));
    text-align: center;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
    cursor: pointer;
}

.manual-upload-dropzone:hover,
.manual-upload-dropzone.is-dragover {
    border-color: rgba(198, 146, 255, 0.66);
    background: linear-gradient(180deg, rgba(12, 14, 35, 0.98), rgba(16, 14, 41, 0.94));
    box-shadow: 0 0 0 1px rgba(155, 91, 255, 0.14), 0 0 26px rgba(145, 79, 255, 0.12);
    transform: translateY(-1px);
}

.manual-upload-icon {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 999px;
    color: #9f69ff;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.14), rgba(10, 12, 32, 0.18) 66%);
}

.manual-upload-icon .button-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    -webkit-mask-size: 36px 36px;
    mask-size: 36px 36px;
}

.manual-upload-dropzone strong {
    color: #fff;
    font-size: clamp(1.05rem, 1.7vw, 1.55rem);
}

.manual-upload-dropzone span,
.manual-upload-dropzone small {
    color: #9aa0cb;
}

.manual-upload-choose-row {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr);
    align-items: stretch;
    overflow: hidden;
    min-height: 60px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background: rgba(10, 12, 31, 0.92);
}

.manual-upload-button {
    border: 0;
    border-right: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 0;
    padding-inline: 1.15rem;
    min-height: 0;
}

.manual-upload-file-name {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #8f96c5;
    text-align: left;
}

.manual-current-screenshot-link {
    margin-top: -0.2rem;
}

.manual-event-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 0.75rem;
}

.manual-event-row .field {
    min-width: 0;
}

.manual-event-row .field > span:first-child {
    margin-bottom: 0.55rem;
}

.manual-event-row .control-shell {
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background: rgba(10, 12, 31, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    min-height: 58px;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.manual-event-row .manual-control-input {
    min-height: 58px;
    padding-left: 1rem;
    color-scheme: dark;
}

.manual-event-row select,
.manual-event-row option {
    color: #eef2ff;
    background: #111227;
}

.manual-event-plus {
    width: 84px;
    min-width: 84px;
    height: 58px;
    min-height: 58px;
    border-radius: 18px;
    align-self: end;
    padding: 0;
    justify-content: center;
    transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.manual-toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
    padding: 0.8rem 0.95rem 0.8rem 0.7rem;
    border-radius: 20px;
    border-color: rgba(167, 139, 250, 0.18);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.manual-bulk-input {
    min-height: 170px;
    border-color: rgba(244, 63, 94, 0.36);
    background: rgba(9, 10, 28, 0.94);
}

.manual-bulk-actions {
    justify-content: flex-start;
}

.manual-bulk-button {
    min-height: 54px;
    padding-inline: 1.1rem;
    border-radius: 18px;
    transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.manual-bulk-note {
    width: 100%;
    justify-content: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.9rem;
    border-radius: 18px;
}

.manual-bulk-note .button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: currentColor;
    -webkit-mask-size: 16px 16px;
    mask-size: 16px 16px;
}

.manual-player-picker-head {
    display: grid;
    gap: 0.6rem;
}

.manual-roster-picker {
    position: relative;
    z-index: 160;
}

.manual-player-trigger {
    width: 100%;
    min-height: 64px;
    padding-inline: 1.1rem;
    border-radius: 18px;
    background: rgba(10, 12, 31, 0.94);
    transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.manual-trigger-chevron {
    transform: rotate(-90deg);
}

.manual-roster-picker.player-picker.is-open {
    z-index: 190;
}

.manual-roster-picker.player-picker.is-open .player-picker-menu {
    z-index: 200;
}

.manual-player-entry-grid {
    margin-top: 0.2rem;
}

.manual-save-actions {
    justify-content: flex-start;
}

.manual-save-button {
    width: min(100%, 100%);
    min-height: 66px;
    justify-content: center;
    border-color: transparent;
    border-radius: 20px;
    font-size: clamp(1rem, 1.35vw, 1.26rem);
    background: linear-gradient(90deg, #ff5c67, #c046ff);
    box-shadow: 0 14px 30px rgba(192, 70, 255, 0.18);
    transition: transform var(--ease), box-shadow var(--ease), filter var(--ease);
}

.manual-save-button .button-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #fff;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
}

@media (max-width: 760px) {
    .manual-entry-hero {
        min-height: 0;
        padding: 0.95rem;
    }

    .manual-entry-hero-copy h2 {
        font-size: clamp(1.55rem, 7vw, 2.1rem);
    }

    .manual-step-card {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .manual-upload-dropzone {
        min-height: 190px;
        padding: 0.95rem 0.8rem;
    }

    .manual-upload-choose-row {
        grid-template-columns: 1fr;
    }

    .manual-event-plus {
        width: 58px;
        min-width: 58px;
        height: 58px;
        min-height: 58px;
    }

    .manual-event-row {
        grid-template-columns: minmax(0, 1fr) 58px;
        gap: 0.55rem;
    }

    .manual-event-row .field > span:first-child {
        margin-bottom: 0.45rem;
    }

    .manual-toggle {
        align-items: flex-start;
    }

    .manual-save-button {
        min-height: 60px;
    }
}

.match-asset-grid {
    align-items: end;
}

.current-screenshot-link {
    display: inline-flex;
    width: fit-content;
    color: #ffd6de;
    font-weight: 800;
    font-size: 0.88rem;
}

.entry-card {
    gap: 0.65rem;
}

.entry-head {
    justify-content: space-between;
}

.entry-head p {
    margin: 0.18rem 0 0;
}

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

.recent-pagination {
    margin-top: 0.7rem;
    justify-content: space-between;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.danger-link {
    color: #ffd6de;
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.12);
}

.recent-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.62rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
}

.recent-match-row strong {
    color: var(--ink);
}

.recent-match-row p {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hidden-card {
    display: none;
}

.entry-card > input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

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

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0 0.55rem;
}

.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
}

.data-table th {
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.72rem;
}

.data-table td {
    color: #dce4ff;
    background: rgba(255, 255, 255, 0.045);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.data-table td:first-child {
    border-left: 1px solid var(--line);
    border-radius: 16px 0 0 16px;
}

.data-table td:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 16px 16px 0;
}

.mobile-board {
    display: none;
}

.mobile-rank-card {
    color: inherit;
    display: grid;
    justify-content: stretch;
}

.mobile-rank-meta {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.public-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 0.55rem;
    width: 100%;
}

.public-filter.is-custom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.range-control {
    min-width: 0;
}

.range-control-main {
    min-width: 210px;
}

.public-filter:not(.is-custom) .date-range-field {
    display: none;
}

.range-pill {
    align-self: end;
    justify-content: center;
    min-height: 38px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-filter.is-custom .range-pill {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
    min-height: 30px;
    padding-block: 0.24rem;
}

.public-filter.is-custom .range-control-main {
    grid-column: 1 / -1;
}

.no-data-panel {
    min-height: 190px;
    text-align: center;
}

.no-data-panel strong {
    display: block;
    margin: 0.35rem 0;
    color: var(--ink);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.no-data-panel p {
    margin: 0;
    color: var(--muted);
}

.public-link-card {
    display: grid;
    gap: 0.5rem;
}

.settings-grid {
    align-items: start;
}

.settings-expired-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(244, 63, 94, 0.34);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 34%),
        linear-gradient(180deg, rgba(55, 12, 29, 0.86), rgba(26, 8, 19, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 36px rgba(32, 8, 20, 0.24);
}

.settings-expired-copy {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
}

.settings-expired-icon {
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 2.85rem;
    border-radius: 18px;
    border: 1px solid rgba(251, 113, 133, 0.3);
    background: rgba(244, 63, 94, 0.14);
}

.settings-expired-icon .button-icon {
    color: #fb7185;
}

.settings-expired-copy strong {
    display: block;
    color: #ffd5de;
    font-size: 1rem;
}

.settings-expired-copy p {
    margin: 0.25rem 0 0;
    color: #f2c6d0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.settings-expired-action {
    min-height: 50px;
    white-space: nowrap;
}

.settings-card,
.settings-preview-card {
    padding: 0.9rem;
}

.page-settings .settings-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.3rem, 2vw, 1.8rem);
    border: 1px solid rgba(124, 86, 255, 0.26);
    border-radius: 32px;
    background:
        linear-gradient(90deg, rgba(8, 9, 24, 0.98) 0%, rgba(9, 10, 27, 0.94) 42%, rgba(12, 11, 29, 0.86) 100%),
        radial-gradient(circle at 84% 20%, rgba(244, 114, 182, 0.2), transparent 20rem),
        radial-gradient(circle at 16% 18%, rgba(129, 91, 255, 0.18), transparent 18rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 46px rgba(0, 0, 0, 0.28), 0 0 30px rgba(138, 82, 255, 0.08);
}

.page-settings .settings-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 26%, transparent 72%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.page-settings .settings-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    max-width: 42rem;
}

.page-settings .settings-hero .overline {
    color: #cb8fff;
}

.page-settings .settings-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.page-settings .settings-hero p {
    margin: 0;
    max-width: 34rem;
    color: #d6d8f2;
    font-size: 1rem;
    line-height: 1.6;
}

.settings-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.settings-grid-redesign {
    margin-top: 1.25rem;
}

.settings-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.1rem, 1.8vw, 1.45rem);
    border: 1px solid rgba(135, 95, 255, 0.24);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(10, 12, 31, 0.96), rgba(8, 9, 23, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 34px rgba(2, 4, 16, 0.28), 0 0 24px rgba(138, 82, 255, 0.06);
}

.settings-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 28%, transparent 78%, rgba(176, 104, 255, 0.04));
    pointer-events: none;
}

.settings-panel > * {
    position: relative;
    z-index: 1;
}

.settings-panel-head {
    margin-bottom: 1.2rem;
}

.settings-panel-head h2 {
    margin: 0.2rem 0 0.45rem;
    color: #f6f6ff;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
}

.settings-panel-head p,
.settings-platform-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.settings-brand-form {
    display: grid;
    gap: 1rem;
}

.settings-brand-actions {
    margin-top: 0.15rem;
}

.settings-brand-actions .primary-action {
    min-height: 54px;
}

.settings-brand-preview {
    margin-bottom: 1rem;
}

.settings-link-card {
    margin-bottom: 1rem;
}

.settings-link-card code {
    display: block;
    padding: 0.8rem 0.95rem;
    overflow-wrap: anywhere;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.settings-platform-note {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 900px) {
    .settings-expired-action {
        width: 100%;
        justify-content: center;
    }

    .settings-hero-actions {
        width: 100%;
    }

    .settings-hero-actions .primary-action,
    .settings-hero-actions .secondary-action {
        flex: 1 1 220px;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .settings-expired-banner {
        padding: 0.95rem;
    }

    .settings-expired-copy {
        align-items: flex-start;
        width: 100%;
    }

    .page-settings .settings-hero {
        padding: 1rem;
        border-radius: 26px;
    }

    .page-settings .settings-hero h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
    }

    .settings-hero-actions {
        flex-direction: column;
    }

    .settings-hero-actions .primary-action,
    .settings-hero-actions .secondary-action,
    .settings-brand-actions .primary-action {
        flex: 0 0 auto;
        width: 100%;
    }

    .settings-panel {
        padding: 1rem;
        border-radius: 24px;
    }

    .brand-preview.settings-brand-preview {
        align-items: flex-start;
        flex-direction: column;
    }
}

.page-tutorials .tutorial-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.3rem, 2vw, 1.8rem);
    border: 1px solid rgba(95, 131, 255, 0.24);
    border-radius: 32px;
    background:
        linear-gradient(90deg, rgba(8, 10, 24, 0.98) 0%, rgba(10, 12, 31, 0.94) 42%, rgba(10, 15, 36, 0.9) 100%),
        radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.18), transparent 20rem),
        radial-gradient(circle at 16% 16%, rgba(168, 85, 247, 0.14), transparent 18rem);
}

.page-tutorials .tutorial-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.tutorial-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.7rem;
    max-width: 42rem;
}

.page-tutorials .tutorial-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 4.4vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.page-tutorials .tutorial-hero p {
    margin: 0;
    color: #d6d8f2;
    max-width: 34rem;
    line-height: 1.6;
}

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

.tutorial-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: 28px;
}

.tutorial-empty-card {
    grid-column: 1 / -1;
    min-height: 220px;
    place-items: center;
}

.tutorial-video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    aspect-ratio: 16 / 9;
}

.tutorial-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.tutorial-video-player {
    position: relative;
}

.tutorial-video-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 0;
    border-radius: inherit;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(5, 7, 18, 0.18), rgba(5, 7, 18, 0.72)),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 42%),
        #0b1021;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}

.tutorial-video-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.tutorial-video-play-icon {
    position: relative;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 999px;
    background: rgba(9, 13, 30, 0.86);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.tutorial-video-play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 0.7rem solid transparent;
    border-bottom: 0.7rem solid transparent;
    border-left: 1.05rem solid #ffffff;
}

.tutorial-video-play-label {
    position: absolute;
    left: 50%;
    bottom: 1.15rem;
    transform: translateX(-50%);
    z-index: 1;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tutorial-video-player iframe[hidden] {
    display: none;
}

body.tutorial-modal-open {
    overflow: hidden;
}

.tutorial-video-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tutorial-video-modal[hidden] {
    display: none;
}

.tutorial-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 7, 18, 0.82);
    backdrop-filter: blur(6px);
}

.tutorial-video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 960px);
}

.tutorial-video-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #fff;
    background: rgba(12, 17, 34, 0.88);
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}

.tutorial-video-modal-frame {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #060912;
    aspect-ratio: 16 / 9;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.tutorial-video-modal-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.tutorial-card-copy {
    display: grid;
    gap: 0.35rem;
}

.tutorial-card-copy h2 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
}

.tutorial-card-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-tutorials .tutorial-hero {
        padding: 1rem;
        border-radius: 26px;
    }

    .page-tutorials .tutorial-hero h1 {
        font-size: clamp(1.95rem, 9vw, 2.7rem);
    }

    .tutorial-card {
        padding: 0.9rem;
        border-radius: 24px;
    }

    .tutorial-video-frame {
        border-radius: 18px;
    }

    .tutorial-video-modal {
        padding: 0.75rem;
    }

    .tutorial-video-modal-frame {
        border-radius: 18px;
    }
}

.page-feedback .feedback-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.3rem, 2vw, 1.8rem);
    border: 1px solid rgba(105, 159, 255, 0.24);
    border-radius: 32px;
    background:
        linear-gradient(90deg, rgba(8, 11, 25, 0.98) 0%, rgba(10, 13, 30, 0.94) 42%, rgba(11, 16, 33, 0.9) 100%),
        radial-gradient(circle at 84% 20%, rgba(107, 190, 255, 0.2), transparent 20rem),
        radial-gradient(circle at 18% 14%, rgba(135, 95, 255, 0.16), transparent 18rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 46px rgba(0, 0, 0, 0.28), 0 0 30px rgba(90, 142, 255, 0.07);
}

.page-feedback .feedback-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 26%, transparent 72%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

.feedback-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.75rem;
    max-width: 40rem;
}

.page-feedback .feedback-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.page-feedback .feedback-hero p {
    margin: 0;
    max-width: 32rem;
    color: #d6def5;
    font-size: 1rem;
    line-height: 1.6;
}

.feedback-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feedback-grid {
    margin-top: 1.25rem;
    align-items: start;
}

.feedback-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.1rem, 1.8vw, 1.45rem);
    border: 1px solid rgba(98, 132, 255, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(10, 12, 31, 0.96), rgba(8, 9, 23, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 34px rgba(2, 4, 16, 0.28), 0 0 24px rgba(88, 140, 255, 0.05);
}

.feedback-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 28%, transparent 78%, rgba(96, 149, 255, 0.04));
    pointer-events: none;
}

.feedback-panel > * {
    position: relative;
    z-index: 1;
}

.feedback-panel-head {
    margin-bottom: 1.15rem;
}

.feedback-panel-head h2 {
    margin: 0.2rem 0 0;
    color: #f6f8ff;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
}

.feedback-form {
    display: grid;
    gap: 1rem;
}

.feedback-form-actions {
    margin-top: 0.15rem;
}

.feedback-list {
    display: grid;
    gap: 1rem;
}

.feedback-item-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
}

.feedback-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feedback-item-head strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
}

.feedback-item-head p,
.feedback-reply-box p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.feedback-item-head small,
.feedback-reply-box small {
    color: var(--muted-2);
}

.feedback-item-body {
    display: grid;
    gap: 0.85rem;
}

.feedback-image-link {
    display: inline-flex;
    width: 220px;
    height: 148px;
    max-width: 220px;
    flex: 0 0 220px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback-image-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feedback-reply-box {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 18px;
    background: rgba(124, 58, 237, 0.08);
}

.feedback-reply-box strong {
    color: #dfc2ff;
}

@media (max-width: 640px) {
    .feedback-hero-actions {
        flex-direction: column;
    }

    .feedback-hero-actions .secondary-action,
    .feedback-form-actions .primary-action {
        width: 100%;
    }

    .feedback-panel {
        padding: 1rem;
        border-radius: 24px;
    }

    .feedback-image-link {
        max-width: 100%;
    }
}

.brand-preview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.brand-preview-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
}

.brand-preview strong {
    display: block;
    color: var(--ink);
    font-size: 1.15rem;
}

.brand-preview small {
    color: var(--muted);
}

.roster-create-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(171, 114, 255, 0.24);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 93, 143, 0.14), transparent 18rem),
        linear-gradient(180deg, rgba(9, 10, 28, 0.98), rgba(7, 8, 22, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 22px 40px rgba(3, 4, 18, 0.3);
}

.roster-create-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 76%, rgba(126, 74, 255, 0.14) 86%, transparent 87%),
        linear-gradient(135deg, transparent 84%, rgba(255, 102, 185, 0.24) 94%, transparent 95%),
        linear-gradient(135deg, transparent 89%, rgba(255, 171, 121, 0.14) 99%, transparent 100%);
    pointer-events: none;
}

.roster-create-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.roster-create-hero,
.roster-create-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(155, 118, 255, 0.2);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(18, 19, 46, 0.96), rgba(10, 11, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.roster-create-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 156px;
    padding: 1rem 1.05rem;
}

.roster-create-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, transparent 74%, rgba(126, 74, 255, 0.14) 85%, transparent 86%),
        linear-gradient(135deg, transparent 82%, rgba(255, 102, 185, 0.24) 93%, transparent 94%),
        linear-gradient(135deg, transparent 88%, rgba(255, 171, 121, 0.14) 99%, transparent 100%);
    pointer-events: none;
}

.roster-create-hero-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.roster-create-hero-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.roster-create-hero-copy p {
    margin: 0;
    max-width: 20rem;
    color: #9aa0cb;
    font-size: clamp(0.95rem, 1.15vw, 1.08rem);
}

.roster-create-section {
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
}

.roster-create-section-title {
    color: #a863ff;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.roster-field > span:first-child {
    color: #eef2ff;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.98rem;
    font-weight: 600;
}

.roster-field > span:first-child b {
    color: #ff5c67;
}

.roster-input-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    min-height: 62px;
    padding-left: 1rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background: rgba(10, 12, 31, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.roster-input-shell .button-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #b97aff;
    -webkit-mask-size: 22px 22px;
    mask-size: 22px 22px;
}

.roster-input-shell input {
    min-height: 62px;
    border: 0;
    background: transparent;
    box-shadow: none !important;
    padding-left: 0;
}

.roster-upload-dropzone {
    display: grid;
    place-items: center;
    gap: 0.55rem;
    min-height: 286px;
    padding: 1rem;
    border: 1px dashed rgba(167, 139, 250, 0.38);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 10, 28, 0.96), rgba(12, 13, 31, 0.9));
    text-align: center;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
    cursor: pointer;
}

.roster-upload-dropzone:hover,
.roster-upload-dropzone.is-dragover {
    border-color: rgba(198, 146, 255, 0.66);
    background: linear-gradient(180deg, rgba(12, 14, 35, 0.98), rgba(16, 14, 41, 0.94));
    box-shadow: 0 0 0 1px rgba(155, 91, 255, 0.14), 0 0 26px rgba(145, 79, 255, 0.12);
    transform: translateY(-1px);
}

.roster-upload-icon {
    display: inline-grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 999px;
    color: #9f69ff;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.14), rgba(10, 12, 32, 0.18) 66%);
}

.roster-upload-icon .button-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    -webkit-mask-size: 40px 40px;
    mask-size: 40px 40px;
}

.roster-upload-dropzone strong {
    color: #fff;
    font-size: clamp(1.2rem, 1.7vw, 1.72rem);
}

.roster-upload-dropzone small,
.roster-upload-file-name {
    color: #9aa0cb;
}

.roster-upload-button {
    min-width: 220px;
    min-height: 60px;
    justify-content: center;
    border-radius: 18px;
}

.roster-upload-file-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.roster-active-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem;
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.roster-active-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.roster-active-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(167, 139, 250, 0.24);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.42), rgba(93, 45, 185, 0.82));
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.14);
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), opacity var(--ease);
}

.roster-active-icon .button-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #fff;
    -webkit-mask-size: 22px 22px;
    mask-size: 22px 22px;
    opacity: 1;
    transform: scale(1);
    transition: opacity var(--ease), transform var(--ease), color var(--ease);
}

.roster-active-copy {
    display: grid;
    gap: 0.12rem;
}

.roster-active-copy strong {
    color: #fff;
    font-size: 1.12rem;
}

.roster-active-copy small {
    color: #9aa0cb;
    font-size: 0.92rem;
    line-height: 1.35;
}

.roster-visibility-card {
    margin-top: -0.2rem;
}

.roster-visibility-icon {
    background: linear-gradient(180deg, rgba(93, 45, 185, 0.6), rgba(57, 34, 109, 0.9));
}

.roster-active-card input:not(:checked) + .roster-active-icon {
    border-color: rgba(167, 139, 250, 0.16);
    background: rgba(14, 16, 37, 0.92);
    box-shadow: none;
    opacity: 0.9;
}

.roster-active-card input:not(:checked) + .roster-active-icon .button-icon {
    opacity: 0.38;
    transform: scale(0.72);
}

.roster-active-card input:checked + .roster-active-icon {
    border-color: rgba(167, 139, 250, 0.32);
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.16);
}

.roster-active-card input:checked + .roster-active-icon .button-icon {
    opacity: 1;
    transform: scale(1);
}

.roster-active-card:hover {
    border-color: rgba(194, 145, 255, 0.34);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.roster-create-actions {
    display: grid;
    gap: 0.8rem;
}

.roster-save-button,
.roster-cancel-button {
    width: 100%;
    min-height: 66px;
    justify-content: center;
    border-radius: 20px;
    font-size: clamp(1rem, 1.25vw, 1.22rem);
}

.roster-save-button {
    border-color: transparent;
    background: linear-gradient(90deg, #ff5c67, #c046ff);
    box-shadow: 0 14px 30px rgba(192, 70, 255, 0.18);
}

.roster-save-button .button-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #fff;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
}

.roster-cancel-button {
    background: rgba(10, 12, 31, 0.9);
}

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

.roster-player-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(167, 139, 250, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 19, 46, 0.96), rgba(10, 11, 29, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.roster-player-card.is-public {
    border-color: rgba(201, 108, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(176, 94, 255, 0.08), 0 0 28px rgba(176, 94, 255, 0.14);
}

.roster-player-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.roster-player-identity {
    flex: 1;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.roster-card-avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    flex: 0 0 88px;
}

.roster-player-identity strong {
    display: block;
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.04;
}

.roster-player-identity p {
    margin: 0.35rem 0 0;
    color: #9aa0cb;
    font-size: 1rem;
}

.roster-player-chips {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.roster-hidden-chip {
    color: #ffd5dc;
    border-color: rgba(244, 63, 94, 0.22);
    background: rgba(244, 63, 94, 0.08);
}

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

.roster-player-action {
    min-height: 56px;
    justify-content: center;
    border-radius: 18px;
    background: rgba(13, 14, 35, 0.92);
}

.roster-player-action.is-danger {
    color: #ffd7df;
    border-color: rgba(244, 63, 94, 0.2);
    background: rgba(244, 63, 94, 0.08);
}

.roster-player-action .button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #d8ccff;
    -webkit-mask-size: 18px 18px;
    mask-size: 18px 18px;
}

@media (max-width: 760px) {
    .roster-player-card {
        gap: 0.85rem;
        padding: 0.85rem;
        border-radius: 22px;
    }

    .roster-card-avatar {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-radius: 22px;
    }

    .roster-player-identity p {
        font-size: 0.96rem;
    }

    .roster-player-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .roster-player-action {
        min-height: 48px;
        padding-inline: 0.55rem;
        font-size: 0.84rem;
    }
}

.confirm-modal[hidden] {
    display: none !important;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 320;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.confirm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(6px);
}

.confirm-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    display: grid;
    gap: 0.9rem;
    padding: 1.1rem;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(18, 19, 46, 0.98), rgba(10, 11, 29, 0.99));
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.3);
}

.confirm-modal-panel strong {
    color: #fff;
    font-size: 1.2rem;
}

.confirm-modal-panel p {
    margin: 0;
    color: #9aa0cb;
    line-height: 1.5;
}

.confirm-modal-actions {
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .roster-create-hero {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        min-height: 0;
        padding: 0.95rem;
    }

    .roster-create-hero-copy h2 {
        font-size: clamp(1.8rem, 7vw, 2.45rem);
    }

    .roster-create-section {
        gap: 0.8rem;
        padding: 0.9rem;
    }

    .roster-upload-dropzone {
        min-height: 230px;
        padding: 0.95rem 0.85rem;
    }

    .roster-upload-button {
        min-width: 0;
        width: 100%;
    }
}

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

.summary-cell {
    display: grid;
    gap: 0.45rem;
    padding: 0.75rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
}

.summary-cell strong {
    color: var(--ink);
    font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.public-history-card {
    align-items: stretch;
}

.history-screenshot {
    width: 180px;
    min-height: 108px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
}

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

.login-card {
    width: min(100%, 540px);
}

.login-brand,
.public-brand {
    margin-bottom: 1.1rem;
}

.login-form {
    margin-top: 1rem;
}

.alert {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
}

.alert-success {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.11);
}

.alert-error {
    border-color: rgba(244, 63, 94, 0.38);
    background: rgba(244, 63, 94, 0.12);
}

.app-popup-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1200;
    display: grid;
    gap: 0.75rem;
    width: min(100% - 2rem, 24rem);
    pointer-events: none;
}

.app-popup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(167, 139, 250, 0.22);
    background: rgba(15, 18, 38, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px);
    color: #eef1ff;
    pointer-events: auto;
}

.app-popup.is-success {
    border-color: rgba(34, 197, 94, 0.34);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 24px rgba(34, 197, 94, 0.12);
}

.app-popup.is-error {
    border-color: rgba(244, 63, 94, 0.38);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 24px rgba(244, 63, 94, 0.14);
}

.app-popup-copy {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.app-popup-copy strong {
    color: #fff;
    font-size: 0.96rem;
}

.app-popup-copy p {
    margin: 0;
    color: #b4bcdf;
    font-size: 0.88rem;
    line-height: 1.45;
}

.app-popup-close {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #eef1ff;
    cursor: pointer;
}

@media (max-width: 640px) {
    .app-popup-stack {
        top: auto;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

/* Public leaderboard: responsive rank surface. */
.public-body .public-shell {
    width: min(100% - 2rem, 1180px);
    padding: 1rem 0;
}

.public-body .topbar {
    position: static;
    height: auto;
    min-height: 54px;
    padding: 0.5rem 0.75rem;
}

.public-body .public-brand {
    margin-bottom: 0;
}

.public-leaderboard-header {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 520px);
    align-items: center;
    padding: clamp(1rem, 2.4vw, 1.75rem);
    border-radius: 22px;
}

.public-leaderboard-header h1 {
    margin: 0.22rem 0 0.35rem;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    line-height: 0.92;
}

.public-leaderboard-header .public-subtitle {
    max-width: 44rem;
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.public-filter {
    min-width: 0;
}

.public-filter .field {
    min-width: 0;
}

.public-leaderboard-panel {
    padding: clamp(0.75rem, 1.8vw, 1.2rem);
    border-radius: 22px;
}

.leaderboard-table {
    min-width: 760px;
    border-spacing: 0 0.65rem;
}

.leaderboard-table th {
    padding: 0.45rem 1rem 0.6rem;
}

.leaderboard-table td {
    padding: 0.95rem 1rem;
    vertical-align: middle;
}

.leaderboard-table tbody tr:first-child td {
    border-color: rgba(244, 63, 94, 0.34);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.13), rgba(124, 58, 237, 0.11));
}

.rank-cell,
.rank-badge {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #f4efff;
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.38), rgba(244, 63, 94, 0.18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.player-cell {
    display: grid;
    gap: 0.15rem;
    width: fit-content;
}

.player-cell small {
    color: var(--muted-2);
    font-size: 0.78rem;
}

.damage-cell {
    color: #ffd6de;
}

.public-rank-list {
    gap: 0.65rem;
}

.mobile-rank-card {
    position: relative;
    overflow: hidden;
    padding: 0.8rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
        rgba(255, 255, 255, 0.045);
}

.mobile-rank-card.is-leader {
    border-color: rgba(244, 63, 94, 0.36);
    background:
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.22), transparent 12rem),
        linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(255, 255, 255, 0.045));
}

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

.mobile-player {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

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

.mobile-player small,
.mobile-damage span,
.mobile-rank-stats small {
    color: var(--muted-2);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.mobile-damage {
    display: grid;
    gap: 0.1rem;
    text-align: right;
}

.mobile-damage strong {
    color: #ffd6de;
    font-size: 1.08rem;
}

.mobile-kd {
    color: #d8ccff;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-kd b {
    color: var(--ink);
    font-size: 0.88rem;
}

.mobile-rank-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.mobile-rank-stats span {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.55rem 0.6rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.1);
}

.mobile-rank-stats b {
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Public player profile: compact on mobile, rich on desktop. */
.public-profile-hero,
.public-profile-panel {
    padding: clamp(0.9rem, 2vw, 1.35rem);
    border-radius: 22px;
}

.public-profile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(244, 63, 94, 0.2), transparent 13rem),
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 255, 255, 0.045));
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-avatar {
    width: clamp(76px, 9vw, 112px);
    height: clamp(76px, 9vw, 112px);
    border-radius: 28px;
    flex: 0 0 auto;
}

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

.profile-title h1 {
    margin: 0.18rem 0 0.25rem;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 4.1rem);
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.profile-title p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.profile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.profile-section-title h2 {
    margin: 0.12rem 0 0;
    color: var(--ink);
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.profile-section-copy {
    margin: 0;
    max-width: 42rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.profile-section-title .profile-section-copy {
    margin-left: auto;
    text-align: right;
}

.profile-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.profile-view-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 0.95rem;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #cfd7ff;
    font-weight: 700;
    text-decoration: none;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.profile-view-tab.is-active,
.profile-view-tab:hover,
.profile-view-tab:focus-visible {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(244, 63, 94, 0.12));
    border-color: rgba(244, 63, 94, 0.34);
    color: #fff;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.7rem;
}

.profile-stat {
    display: grid;
    gap: 0.28rem;
    min-height: 86px;
    align-content: center;
    padding: 0.85rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.profile-stat.is-primary {
    border-color: rgba(244, 63, 94, 0.34);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.13), rgba(124, 58, 237, 0.11));
}

.profile-stat span,
.profile-match-stats small {
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.68rem;
    font-weight: 800;
}

.profile-stat strong {
    color: var(--ink);
    font-size: clamp(1.18rem, 2.2vw, 1.75rem);
    line-height: 1;
}

.profile-stat.is-primary strong {
    color: #ffd6de;
}

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

.profile-event-grid > .empty-panel {
    grid-column: 1 / -1;
}

.profile-event-card {
    display: grid;
    gap: 0.85rem;
    padding: 0.9rem;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.12), transparent 9rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.075), transparent 45%),
        rgba(255, 255, 255, 0.045);
}

.profile-event-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-event-head strong {
    display: block;
    margin-top: 0.18rem;
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.25;
}

.profile-event-head p {
    margin: 0.28rem 0 0;
    color: var(--muted);
}

.profile-event-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--ease), text-shadow var(--ease);
}

.profile-event-link:hover,
.profile-event-link:focus-visible {
    color: #ffd6de;
    text-shadow: 0 0 18px rgba(244, 63, 94, 0.28);
}

.profile-event-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.profile-event-stat {
    display: grid;
    gap: 0.14rem;
    min-width: 0;
    padding: 0.65rem;
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 15px;
    background: rgba(124, 58, 237, 0.08);
}

.profile-event-stat.is-primary {
    border-color: rgba(244, 63, 94, 0.28);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(124, 58, 237, 0.08));
}

.profile-event-stat b {
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

.profile-event-stat small {
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.64rem;
    font-weight: 800;
}

.profile-event-pagination {
    margin-top: 0.9rem;
    justify-content: center;
}

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

.profile-match-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.8rem;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 40%),
        rgba(255, 255, 255, 0.045);
}

.profile-match-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-match-head strong {
    color: var(--ink);
}

.profile-match-head p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

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

.profile-match-stats span {
    display: grid;
    gap: 0.1rem;
    padding: 0.55rem 0.6rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.1);
}

.profile-match-stats b {
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-screenshot {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    aspect-ratio: 16 / 9;
}

.profile-screenshot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform var(--ease);
}

.profile-screenshot:hover img {
    transform: scale(1.025);
}

.page-player .public-profile-hero {
    position: relative;
    overflow: hidden;
    align-items: center;
    min-height: 220px;
    padding: clamp(1.15rem, 2vw, 1.6rem);
    border: 1px solid rgba(138, 88, 255, 0.24);
    border-radius: 30px;
    background:
        linear-gradient(90deg, rgba(8, 9, 24, 0.98) 0%, rgba(8, 9, 24, 0.93) 40%, rgba(10, 10, 27, 0.82) 100%),
        radial-gradient(circle at 84% 22%, rgba(244, 114, 182, 0.22), transparent 18rem),
        radial-gradient(circle at 18% 18%, rgba(129, 91, 255, 0.2), transparent 18rem),
        linear-gradient(180deg, rgba(18, 15, 43, 0.9), rgba(8, 10, 24, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 48px rgba(0, 0, 0, 0.28), 0 0 32px rgba(143, 92, 255, 0.08);
}

.team-player-shell {
    display: grid;
    gap: 1rem;
}

.team-player-top-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.team-player-top-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(138, 88, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #cfd4f7;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: background var(--ease), border-color var(--ease), color var(--ease), transform var(--ease);
}

.team-player-top-tab.is-active,
.team-player-top-tab:hover,
.team-player-top-tab:focus-visible {
    color: #fff;
    border-color: rgba(244, 63, 94, 0.3);
    background: linear-gradient(90deg, #eb3b66 0%, #7f45d8 100%);
    transform: translateY(-1px);
}

.page-player .public-profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 26%, transparent 70%, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

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

.page-player .profile-identity {
    width: 100%;
    gap: 1.15rem;
}

.page-player .profile-title {
    display: grid;
    gap: 0.55rem;
    max-width: 34rem;
}

.page-player .profile-title .overline {
    color: #ce98ff;
    letter-spacing: 0.22em;
}

.page-player .profile-title h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
    color: transparent;
    background: linear-gradient(90deg, #ff8fc1 0%, #df86ff 38%, #a987ff 72%, #d8c5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

.page-player .profile-title p {
    margin: 0;
    color: #d5d8f6;
    font-size: 1rem;
    line-height: 1.55;
}

.page-player .public-profile-hero > .secondary-action {
    min-height: 3.4rem;
    border-radius: 20px;
    padding-inline: 1.1rem;
}

.page-player .public-profile-panel,
.page-player .player-summary-card,
.page-player .public-match-history-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(138, 88, 255, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(10, 12, 31, 0.96), rgba(8, 9, 23, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 36px rgba(2, 4, 16, 0.28), 0 0 24px rgba(138, 82, 255, 0.06);
}

.page-player .public-profile-panel::before,
.page-player .player-summary-card::before,
.page-player .public-match-history-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 28%, transparent 78%, rgba(176, 104, 255, 0.04));
    pointer-events: none;
}

.page-player .public-profile-panel > *,
.page-player .player-summary-card > *,
.page-player .public-match-history-card > * {
    position: relative;
    z-index: 1;
}

.page-player .profile-section-title,
.page-player .centered-card-head {
    margin-bottom: 1rem;
}

.page-player .profile-section-title h2,
.page-player .centered-card-head h2 {
    color: #f5f6ff;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}

.page-player .profile-section-copy {
    color: #adb5dc;
}

.page-player .profile-view-tabs {
    gap: 0.75rem;
}

.page-player .profile-view-tab {
    min-height: 44px;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border-color: rgba(138, 88, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #d9d9ff;
}

.page-player .profile-view-tab.is-active,
.page-player .profile-view-tab:hover,
.page-player .profile-view-tab:focus-visible {
    background: linear-gradient(135deg, rgba(255, 95, 152, 0.2), rgba(124, 58, 237, 0.2));
    border-color: rgba(244, 63, 94, 0.34);
    color: #fff;
}

.page-player .summary-grid-extended {
    gap: 0.8rem;
}

.page-player .summary-cell {
    padding: 0.95rem 0.85rem;
    border-color: rgba(138, 88, 255, 0.2);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
}

.page-player .summary-cell span {
    color: #9ca5cf;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 800;
}

.page-player .summary-cell strong {
    color: #fff;
    font-size: clamp(1.3rem, 2.1vw, 1.9rem);
}

.page-player .profile-event-card,
.page-player .public-history-card {
    border-color: rgba(138, 88, 255, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.1), transparent 9rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 42%),
        rgba(255, 255, 255, 0.04);
}

.page-player .profile-event-stat,
.page-player .history-row-metrics span {
    border-color: rgba(138, 88, 255, 0.16);
    border-radius: 16px;
    background: rgba(124, 58, 237, 0.08);
}

.page-player .profile-event-stat.is-primary {
    border-color: rgba(244, 63, 94, 0.26);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(124, 58, 237, 0.08));
}

.page-player .history-screenshot {
    width: 212px;
    border-radius: 18px;
    border-color: rgba(138, 88, 255, 0.18);
}

@media (max-width: 760px) {
    .team-player-top-tabs {
        grid-template-columns: 1fr;
    }

    .page-player .public-profile-hero {
        align-items: flex-start;
        min-height: 0;
        padding: 1rem;
        border-radius: 24px;
    }

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

    .page-player .public-profile-panel,
    .page-player .player-summary-card,
    .page-player .public-match-history-card {
        border-radius: 22px;
    }

    .page-player .history-screenshot {
        width: 100%;
    }
}

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

/* Dense admin layout: the app is a tool, not a landing page. */
.app-shell {
    gap: 0.5rem;
    padding: 0.5rem;
}

.main-shell,
.page-shell {
    gap: 0.5rem;
}

.topbar {
    height: 50px;
    min-height: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 18px;
}

.topbar .secondary-action {
    min-height: 34px;
    padding: 0.45rem 0.75rem;
}

.page-header {
    min-height: 0;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border-radius: 18px;
}

.page-header .overline,
.page-header p {
    display: none;
}

.page-header h1 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
    text-shadow: none;
}

.page-matches .page-header {
    display: none;
}

.wide-form,
.split-form,
.split-list,
.compact-card,
.leaderboard-table-card,
.player-summary-card,
.public-match-history-card {
    padding: 0.75rem;
    border-radius: 18px;
}

.form-stack,
.form-section,
.app-form,
.roster-picker,
.player-entry-grid,
.form-grid {
    gap: 0.55rem;
}

.card-head,
.compact-head,
.centered-card-head {
    margin-bottom: 0.45rem;
}

.card-head h2,
.compact-head h2,
.centered-card-head h2 {
    font-size: 1.05rem;
}

.compact-head .overline,
.form-section > .card-head .overline,
.form-section > .compact-head .overline {
    display: none;
}

.field,
.slim-field {
    gap: 0.28rem;
}

input,
select,
textarea {
    min-height: 38px;
    border-radius: 11px;
    padding: 0.48rem 0.65rem;
}

input[type='file'] {
    padding: 0.42rem 0.55rem;
}

.primary-action,
.secondary-action,
.player-picker-trigger,
.logout-button,
.text-link {
    min-height: 36px;
    padding: 0.48rem 0.75rem;
}

.player-picker-trigger {
    width: min(100%, 300px);
}

.player-picker-menu {
    max-height: 320px;
}

.entry-card,
.ranking-row,
.player-row-card,
.history-row-card,
.mobile-rank-card {
    padding: 0.55rem;
    border-radius: 14px;
}

.sidebar {
    border-radius: 20px;
}

.sidebar-note,
.sidebar-admin-box {
    padding: 0.55rem;
    border-radius: 14px;
}

.metrics-grid,
.dashboard-grid,
.split-grid,
.summary-grid,
.player-entry-grid,
.form-grid {
    gap: 0.55rem;
}

.chart-wrap {
    height: 220px;
}

@media (max-width: 1180px) {
    .metrics-grid,
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .span-8,
    .span-4 {
        grid-column: 1 / -1;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .dashboard-menu-button {
        display: inline-flex !important;
    }

    body.is-sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        grid-template-columns: 1fr;
        padding: 0.75rem;
    }

    .mobile-only {
        display: inline-flex;
    }

    .sidebar {
        position: fixed;
        z-index: 320;
        top: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: min(88vw, 320px);
        height: calc(100vh - 1.5rem);
        max-height: calc(100vh - 1.5rem);
        overscroll-behavior: contain;
        transform: translateX(calc(-100% - 1.5rem));
        transition: transform var(--ease);
    }

    body.is-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 310;
        pointer-events: none;
        background: rgba(0, 0, 0, 0);
        transition: background var(--ease);
    }

    .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0.55rem;
    }

    .topbar .secondary-action {
        flex: 0 0 auto;
    }

    body.is-sidebar-open .sidebar-backdrop {
        pointer-events: auto;
        background: rgba(0, 0, 0, 0.62);
    }

    .page-header,
    .public-leaderboard-header,
    .public-player-hero {
        align-items: start;
        flex-direction: column;
    }

    .form-grid.cols-2,
    .form-grid.cols-4,
    .form-grid.cols-5,
    .compact-grid,
    .metrics-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }

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

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

    .desktop-table {
        display: none;
    }

    .mobile-board {
        display: grid;
        gap: 0.75rem;
    }

    .player-row-card,
    .history-row-card,
    .ranking-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .history-screenshot {
        width: 100%;
        height: 180px;
    }

    .public-body .public-shell {
        width: 100%;
        padding: 0.75rem;
    }

    .public-leaderboard-header {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0.9rem;
    }

    .public-filter {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        justify-content: stretch;
    }

    .public-filter.is-custom {
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .public-filter .field,
    .public-filter select,
    .public-filter input,
    .public-filter .soft-meta {
        width: 100%;
    }

    .range-control-main,
    .range-pill {
        grid-column: 1 / -1;
    }

    .public-filter.is-custom .range-pill {
        width: 100%;
        justify-self: stretch;
    }

    .public-filter .soft-meta {
        justify-content: center;
    }

    .public-leaderboard-panel {
        padding: 0.65rem;
    }

    .public-profile-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .profile-identity {
        width: 100%;
    }

    .public-profile-hero .secondary-action {
        width: 100%;
    }

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

    .profile-event-grid,
    .profile-match-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .login-shell,
    .public-shell {
        padding: 0.75rem;
    }

    .topbar {
        min-height: 0;
        gap: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .topbar-left {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        align-items: center;
        gap: 0.5rem;
        padding: 0;
    }

    .icon-button {
        width: 36px;
        height: 36px;
    }

    .icon-button span {
        width: 15px;
        box-shadow: 0 4px 0 var(--ink), 0 -4px 0 var(--ink);
    }

    .topbar-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .topbar-context small {
        font-size: 0.88rem;
    }

    .topbar-public-link {
        min-width: 0;
        min-height: 50px;
        max-width: 8.75rem;
        padding-inline: 0.95rem;
        font-size: 0.82rem;
        gap: 0.4rem;
        justify-self: end;
        border-radius: 16px;
    }

    .topbar-public-label-full {
        display: none;
    }

    .topbar-public-label-short {
        display: inline;
    }

    .page-header h1,
    .public-leaderboard-header h1,
    .section-title-block h1,
    .centered-copy h1 {
        font-size: 2rem;
    }

    .public-body .public-shell {
        padding: 0.6rem;
        gap: 0.55rem;
    }

    .public-body .topbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.55rem;
        min-height: 48px;
        padding: 0.45rem 0.55rem;
        border-radius: 16px;
    }

    .public-body .public-brand {
        min-width: 0;
        gap: 0.65rem;
    }

    .public-body .public-brand > span:last-child {
        min-width: 0;
    }

    .public-body .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .public-body .public-brand strong {
        font-size: 0.92rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-body .public-brand small {
        font-size: 0.78rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-leaderboard-header {
        border-radius: 18px;
    }

    .public-filter {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .public-filter.is-custom {
        grid-template-columns: 1fr;
    }

    .range-control-main,
    .range-pill {
        grid-column: auto;
    }

    .public-leaderboard-header .overline {
        font-size: 0.62rem;
    }

    .public-leaderboard-header .public-subtitle {
        font-size: 0.92rem;
        line-height: 1.35;
    }

    .mobile-rank-main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .mobile-damage {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        gap: 0.14rem;
        padding-top: 0.2rem;
        text-align: left;
    }

    .mobile-rank-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
        margin-top: 0.6rem;
    }

    .mobile-rank-stats span {
        padding: 0.48rem 0.45rem;
    }

    .mobile-rank-stats b {
        font-size: 0.88rem;
    }

    .mobile-rank-stats small {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    .public-profile-hero,
    .public-profile-panel {
        padding: 0.75rem;
        border-radius: 18px;
    }

    .profile-identity {
        align-items: center;
        gap: 0.75rem;
    }

    .profile-avatar {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .profile-title h1 {
        font-size: clamp(1.55rem, 8vw, 2.1rem);
        line-height: 1;
    }

    .profile-title p {
        font-size: 0.9rem;
    }

    .profile-section-title {
        margin-bottom: 0.6rem;
    }

    .profile-section-title h2 {
        font-size: 1.1rem;
    }

    .profile-section-copy {
        font-size: 0.88rem;
        line-height: 1.45;
    }

    .profile-section-title .profile-section-copy {
        margin-left: 0;
        text-align: left;
    }

    .profile-view-tabs {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-view-tab {
        width: 100%;
        flex: none;
    }

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

    .profile-stat {
        min-height: 72px;
        padding: 0.65rem;
        border-radius: 15px;
    }

    .profile-stat strong {
        font-size: 1.15rem;
    }

    .profile-match-card {
        padding: 0.65rem;
        border-radius: 16px;
    }

    .profile-event-card {
        padding: 0.7rem;
        border-radius: 16px;
    }

    .profile-event-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .profile-event-head strong {
        font-size: 0.96rem;
    }

    .profile-event-stats {
        gap: 0.4rem;
    }

    .profile-event-stat {
        padding: 0.48rem 0.45rem;
    }

    .profile-event-stat b {
        font-size: 0.88rem;
    }

    .profile-event-stat small {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    .profile-match-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }

    .profile-match-stats {
        gap: 0.4rem;
    }

    .profile-match-stats span {
        padding: 0.48rem 0.45rem;
    }

    .profile-match-stats b {
        font-size: 0.88rem;
    }

    .profile-match-stats small {
        font-size: 0.6rem;
        letter-spacing: 0.06em;
    }

    .profile-screenshot {
        border-radius: 14px;
    }

    .match-form-card,
    .recent-matches-card {
        padding: 0.65rem;
    }

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

    .match-stat-grid .field:last-child {
        grid-column: 1 / -1;
    }

    .entry-card {
        padding: 0.65rem;
    }

    .entry-head {
        align-items: center;
        flex-direction: row;
    }
}

/* Current admin additions kept on the Backup theme. */
:root {
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 30px;
}

.nav-icon,
.button-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 0;
    color: currentColor;
    background: currentColor;
    box-shadow: none;
    -webkit-mask: var(--icon-mask) center / 18px 18px no-repeat;
    mask: var(--icon-mask) center / 18px 18px no-repeat;
}

.nav-icon-dashboard {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='7' height='9' x='3' y='3' rx='1'/%3E%3Crect width='7' height='5' x='14' y='3' rx='1'/%3E%3Crect width='7' height='9' x='14' y='12' rx='1'/%3E%3Crect width='7' height='5' x='3' y='16' rx='1'/%3E%3C/svg%3E");
}

.nav-icon-users {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.nav-icon-target {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}

.nav-icon-chart {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9'/%3E%3Cpath d='M13 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E");
}

.nav-icon-award {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E");
}

.nav-icon-settings {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.38a2 2 0 0 0-.73-2.73l-.15-.09a2 2 0 0 1-1-1.74v-.51a2 2 0 0 1 1-1.72l.15-.1a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.nav-icon-feedback {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.nav-icon-tutorials {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m22 8-6 4 6 4V8Z'/%3E%3Crect x='2' y='5' width='14' height='14' rx='2' ry='2'/%3E%3C/svg%3E");
}

.button-icon-external {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
}

.page-matches .page-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    align-items: stretch;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1.1rem, 2.4vw, 1.75rem);
    border: 1px solid rgba(207, 136, 255, 0.4);
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(14, 14, 34, 0.98), rgba(10, 11, 27, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 48px rgba(3, 4, 18, 0.44), 0 0 40px rgba(170, 84, 255, 0.16);
    isolation: isolate;
}

.page-matches .page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 24, 0.96) 0%, rgba(7, 8, 24, 0.9) 34%, rgba(7, 8, 24, 0.62) 58%, rgba(7, 8, 24, 0.76) 100%),
        url('/assets/images/match-entry.jpg') center right / cover no-repeat;
    opacity: 0.96;
    z-index: -2;
}

.page-matches .page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 16%, rgba(138, 92, 255, 0.28), transparent 22%),
        radial-gradient(circle at 100% 100%, rgba(255, 92, 188, 0.22), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.03));
    z-index: -1;
}

.page-matches .page-header .overline,
.page-matches .page-header p {
    display: block;
}

.page-matches .page-header h1 {
    margin: 0.35rem 0 0.65rem;
    font-size: clamp(2.35rem, 5vw, 4.15rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-shadow: 0 0 34px rgba(156, 80, 255, 0.42);
}

.page-matches .page-header p {
    max-width: 32rem;
    color: #d1d2f4;
    font-size: clamp(0.95rem, 1.45vw, 1.12rem);
    line-height: 1.7;
}

.page-matches .match-entry-header-copy,
.page-matches .match-entry-header-actions {
    position: relative;
    z-index: 1;
}

.page-matches .match-entry-header-copy {
    display: grid;
    align-content: start;
    gap: 0.25rem;
    min-width: 0;
    padding: clamp(0.15rem, 0.8vw, 0.45rem) 0;
}

.page-matches .match-entry-header .overline {
    color: #bd83ff;
    letter-spacing: 0.3em;
}

.page-matches .match-entry-header-actions {
    display: grid;
    gap: 1rem;
    align-content: end;
    width: min(100%, 24rem);
    margin-left: auto;
}

.page-matches .match-entry-header-action {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 74px;
    padding: 0.95rem 1.15rem;
    border: 1px solid rgba(154, 103, 255, 0.42);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(17, 18, 45, 0.88), rgba(12, 13, 33, 0.94));
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(146, 91, 255, 0.08), 0 14px 26px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
    backdrop-filter: blur(18px);
    cursor: pointer;
}

.page-matches .match-entry-header-action:hover,
.page-matches .match-entry-header-action:focus-visible {
    border-color: rgba(190, 139, 255, 0.58);
    background: linear-gradient(180deg, rgba(23, 24, 58, 0.94), rgba(14, 15, 38, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(173, 112, 255, 0.12), 0 18px 30px rgba(0, 0, 0, 0.24);
    transform: translateY(-2px);
}

.page-matches .match-entry-header-action-icon,
.page-matches .match-entry-header-action-arrow {
    display: inline-grid;
    place-items: center;
}

.page-matches .match-entry-header-action-icon {
    width: 34px;
    height: 34px;
}

.page-matches .match-entry-header-action-icon .button-icon,
.page-matches .match-entry-header-action-arrow .button-icon {
    color: #9f69ff;
}

.page-matches .match-entry-header-action-icon .button-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
}

.page-matches .match-entry-header-action-copy {
    display: grid;
    min-width: 0;
}

.page-matches .match-entry-header-action-copy strong {
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    font-weight: 700;
    line-height: 1.15;
}

.page-matches .match-entry-header-action-arrow {
    width: 28px;
    height: 28px;
}

.page-matches .match-entry-header-action-arrow .button-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    -webkit-mask-size: 22px 22px;
    mask-size: 22px 22px;
    transform: rotate(-90deg);
}

.page-matches .recent-matches-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.page-matches .recent-matches-card::before {
    content: none;
}

.page-matches .recent-matches-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.page-matches .recent-matches-hero-icon {
    display: inline-grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    border: 1px solid rgba(214, 142, 255, 0.34);
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(57, 38, 104, 0.88), rgba(33, 24, 71, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 22px rgba(171, 94, 255, 0.14);
}

.page-matches .recent-matches-hero-icon .button-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    color: #d9b3ff;
    -webkit-mask-size: 32px 32px;
    mask-size: 32px 32px;
}

.page-matches .recent-matches-hero-copy {
    min-width: 0;
}

.page-matches .recent-matches-hero-copy h2 {
    margin: 0;
    color: #f7f8ff;
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    line-height: 0.95;
}

.page-matches .recent-matches-hero-copy p {
    margin: 0.36rem 0 0;
    color: #a7a6cf;
    font-size: clamp(0.88rem, 1.3vw, 0.96rem);
    line-height: 1.45;
}

.page-matches .recent-match-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
}

.page-matches .recent-match-row {
    position: relative;
    border: 1px solid rgba(208, 121, 255, 0.52);
    border-radius: 30px;
    background:
        radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.08), transparent 18rem),
        radial-gradient(circle at 100% 100%, rgba(255, 74, 145, 0.11), transparent 16rem),
        linear-gradient(180deg, rgba(28, 22, 61, 0.98), rgba(15, 13, 37, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 34px rgba(0, 0, 0, 0.22), 0 0 20px rgba(160, 88, 255, 0.1);
    overflow: hidden;
}

.page-matches .recent-match-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: stretch;
}

.page-matches .recent-match-core {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.82rem;
    align-items: start;
    padding: 0.92rem 1rem;
}

.page-matches .recent-match-badge {
    display: grid;
    place-items: center;
    width: 72px;
    height: 82px;
    border: 1px solid rgba(181, 130, 255, 0.42);
    background:
        radial-gradient(circle at 50% 24%, rgba(170, 110, 255, 0.26), transparent 38%),
        linear-gradient(180deg, rgba(82, 56, 152, 0.6), rgba(35, 24, 72, 0.82));
    clip-path: polygon(50% 0, 92% 22%, 92% 78%, 50% 100%, 8% 78%, 8% 22%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 20px rgba(160, 95, 255, 0.14);
}

.page-matches .recent-match-badge .button-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    color: #d4b2ff;
    -webkit-mask-size: 30px 30px;
    mask-size: 30px 30px;
}

.page-matches .recent-match-main {
    min-width: 0;
}

.page-matches .recent-match-headline strong {
    display: block;
    color: #f8f8ff;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    line-height: 0.96;
    text-transform: uppercase;
}

.page-matches .recent-match-headline p {
    margin: 0.42rem 0 0;
    color: #a1a1c8;
    font-size: clamp(0.86rem, 1.2vw, 0.96rem);
    line-height: 1.4;
}

.page-matches .recent-match-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.64rem;
    margin-top: 0.82rem;
}

.page-matches .recent-match-stat-card {
    display: grid;
    align-content: center;
    gap: 0.14rem;
    min-height: 92px;
    padding: 0.62rem 0.56rem 0.54rem;
    border: 1px solid rgba(137, 112, 216, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(45, 38, 87, 0.58), rgba(28, 24, 60, 0.42));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-matches .recent-match-stat-card .button-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
}

.page-matches .recent-match-stat-card.is-players .button-icon {
    color: #a874ff;
}

.page-matches .recent-match-stat-card.is-damage .button-icon {
    color: #ff6a78;
}

.page-matches .recent-match-stat-card.is-kills .button-icon {
    color: #ffc84f;
}

.page-matches .recent-match-stat-card b {
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.45rem, 2.2vw, 1.85rem);
    line-height: 0.92;
}

.page-matches .recent-match-stat-card small {
    color: #8f92ba;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-matches .recent-match-actions {
    display: grid;
    align-content: start;
    gap: 0.52rem;
    padding: 0.92rem 0.92rem;
    border-left: 1px solid rgba(143, 132, 197, 0.22);
}

.page-matches .recent-match-action-form {
    margin: 0;
}

.page-matches .recent-match-action,
.page-matches .recent-match-action-form .recent-match-action {
    display: flex;
    align-items: center;
    gap: 0.58rem;
    width: 100%;
    min-height: 44px;
    padding: 0.54rem 0.72rem;
    border: 1px solid rgba(143, 121, 230, 0.3);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(61, 46, 123, 0.34), rgba(32, 24, 72, 0.34));
    color: #ddd5ff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), transform var(--ease), box-shadow var(--ease);
}

.page-matches .recent-match-action:hover,
.page-matches .recent-match-action:focus-visible,
.page-matches .recent-match-action-form .recent-match-action:hover,
.page-matches .recent-match-action-form .recent-match-action:focus-visible {
    border-color: rgba(203, 137, 255, 0.4);
    box-shadow: 0 0 18px rgba(159, 83, 255, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.page-matches .recent-match-action .button-icon,
.page-matches .recent-match-action-form .recent-match-action .button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    -webkit-mask-size: 16px 16px;
    mask-size: 16px 16px;
}

.page-matches .recent-match-action.is-status .button-icon,
.page-matches .recent-match-action:not(.is-danger):not(.is-disabled) .button-icon {
    color: #c29aff;
}

.page-matches .recent-match-action.is-danger,
.page-matches .recent-match-action-form .recent-match-action.is-danger {
    border-color: rgba(255, 91, 128, 0.46);
    background: linear-gradient(180deg, rgba(90, 28, 55, 0.56), rgba(62, 24, 46, 0.48));
    color: #ff8fa9;
}

.page-matches .recent-match-action.is-danger .button-icon,
.page-matches .recent-match-action-form .recent-match-action.is-danger .button-icon {
    color: #ff758f;
}

.page-matches .recent-match-action.is-disabled {
    opacity: 0.48;
    cursor: default;
}

.page-matches .recent-pagination {
    position: relative;
    z-index: 1;
    margin-top: 0.85rem;
    justify-content: space-between;
}

@media (max-width: 1100px) {
    .page-matches .page-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-matches .match-entry-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .page-matches .recent-match-shell {
        grid-template-columns: minmax(0, 1fr) 184px;
    }

    .page-matches .recent-match-actions {
        grid-template-columns: 1fr;
        padding: 0.95rem 0.82rem;
        border-left: 1px solid rgba(143, 132, 197, 0.18);
        border-top: 0;
    }
}

@media (max-width: 760px) {
    .page-matches .page-header {
        gap: 0.9rem;
        padding: 1rem;
        border-radius: 26px;
    }

    .page-matches .page-header::before {
        background:
            linear-gradient(180deg, rgba(7, 8, 24, 0.88) 0%, rgba(7, 8, 24, 0.92) 48%, rgba(7, 8, 24, 0.98) 100%),
            url('/assets/images/match-entry.jpg') center right / cover no-repeat;
    }

    .page-matches .page-header h1 {
        margin: 0.25rem 0 0.55rem;
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .page-matches .page-header p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .page-matches .match-entry-header-action {
        min-height: 72px;
        padding: 0.88rem 0.95rem;
        border-radius: 20px;
    }

    .page-matches .match-entry-header-action-icon {
        width: 32px;
        height: 32px;
    }

    .page-matches .match-entry-header-action-copy strong {
        font-size: 1rem;
    }

    .page-matches .recent-match-shell {
        grid-template-columns: minmax(0, 1fr) clamp(7.05rem, 31vw, 8.9rem);
    }

    .page-matches .recent-matches-card {
        padding: 0;
        border-radius: 0;
    }

    .page-matches .recent-matches-hero {
        gap: 0.72rem;
        margin-bottom: 0.78rem;
    }

    .page-matches .recent-matches-hero-icon {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    .page-matches .recent-matches-hero-icon .button-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        -webkit-mask-size: 24px 24px;
        mask-size: 24px 24px;
    }

    .page-matches .recent-matches-hero-copy h2 {
        font-size: clamp(1.28rem, 5.8vw, 1.65rem);
    }

    .page-matches .recent-matches-hero-copy p {
        font-size: 0.76rem;
    }

    .page-matches .recent-match-core {
        grid-template-columns: clamp(2.85rem, 12vw, 3.7rem) minmax(0, 1fr);
        grid-template-areas:
            'badge headline'
            'stats stats';
        gap: clamp(0.48rem, 1.6vw, 0.7rem) clamp(0.52rem, 2vw, 0.78rem);
        padding: clamp(0.72rem, 2.5vw, 1rem);
        align-items: start;
    }

    .page-matches .recent-match-badge {
        grid-area: badge;
        width: clamp(2.55rem, 11vw, 3.35rem);
        height: clamp(2.95rem, 12.5vw, 3.9rem);
    }

    .page-matches .recent-match-main {
        display: contents;
    }

    .page-matches .recent-match-headline {
        grid-area: headline;
        align-self: center;
        min-width: 0;
    }

    .page-matches .recent-match-badge .button-icon {
        width: clamp(1rem, 4vw, 1.28rem);
        height: clamp(1rem, 4vw, 1.28rem);
        flex: 0 0 clamp(1rem, 4vw, 1.28rem);
        -webkit-mask-size: clamp(1rem, 4vw, 1.28rem) clamp(1rem, 4vw, 1.28rem);
        mask-size: clamp(1rem, 4vw, 1.28rem) clamp(1rem, 4vw, 1.28rem);
    }

    .page-matches .recent-match-headline strong {
        font-size: clamp(0.95rem, 4.1vw, 1.28rem);
    }

    .page-matches .recent-match-headline p {
        margin-top: 0.24rem;
        font-size: clamp(0.58rem, 2.35vw, 0.72rem);
    }

    .page-matches .recent-match-stat-grid {
        grid-area: stats;
        gap: clamp(0.36rem, 1.5vw, 0.58rem);
        margin-top: clamp(0.52rem, 2vw, 0.78rem);
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .page-matches .recent-match-stat-card {
        min-height: clamp(3.95rem, 15vw, 5.2rem);
        padding: clamp(0.38rem, 1.5vw, 0.62rem) clamp(0.32rem, 1.5vw, 0.52rem) clamp(0.34rem, 1.3vw, 0.5rem);
        border-radius: clamp(0.68rem, 2vw, 0.88rem);
    }

    .page-matches .recent-match-stat-card .button-icon {
        width: clamp(0.82rem, 3.4vw, 1.1rem);
        height: clamp(0.82rem, 3.4vw, 1.1rem);
        flex: 0 0 clamp(0.82rem, 3.4vw, 1.1rem);
        -webkit-mask-size: clamp(0.82rem, 3.4vw, 1.1rem) clamp(0.82rem, 3.4vw, 1.1rem);
        mask-size: clamp(0.82rem, 3.4vw, 1.1rem) clamp(0.82rem, 3.4vw, 1.1rem);
    }

    .page-matches .recent-match-stat-card b {
        font-size: clamp(0.98rem, 4.2vw, 1.28rem);
    }

    .page-matches .recent-match-stat-card small {
        font-size: clamp(0.46rem, 1.9vw, 0.58rem);
        letter-spacing: 0.06em;
    }

    .page-matches .recent-match-actions {
        grid-template-columns: 1fr;
        gap: clamp(0.36rem, 1.5vw, 0.55rem);
        padding: clamp(0.72rem, 2.5vw, 1rem) clamp(0.52rem, 2vw, 0.78rem);
        border-left: 1px solid rgba(143, 132, 197, 0.18);
        border-top: 0;
    }

    .page-matches .recent-match-action,
    .page-matches .recent-match-action-form .recent-match-action {
        min-height: clamp(2.25rem, 8.5vw, 2.75rem);
        padding: clamp(0.34rem, 1.3vw, 0.52rem) clamp(0.48rem, 1.8vw, 0.72rem);
        border-radius: clamp(0.7rem, 2vw, 0.92rem);
        font-size: clamp(0.62rem, 2.35vw, 0.76rem);
        gap: clamp(0.34rem, 1.5vw, 0.52rem);
    }

    .page-matches .recent-match-action .button-icon,
    .page-matches .recent-match-action-form .recent-match-action .button-icon {
        width: clamp(0.75rem, 3vw, 1rem);
        height: clamp(0.75rem, 3vw, 1rem);
        flex: 0 0 clamp(0.75rem, 3vw, 1rem);
        -webkit-mask-size: clamp(0.75rem, 3vw, 1rem) clamp(0.75rem, 3vw, 1rem);
        mask-size: clamp(0.75rem, 3vw, 1rem) clamp(0.75rem, 3vw, 1rem);
    }
}

@media (max-width: 540px) {
    .page-matches .recent-match-shell {
        grid-template-columns: minmax(0, 1fr) clamp(6.6rem, 30vw, 7.3rem);
    }

    .page-matches .recent-match-core {
        grid-template-columns: clamp(2.5rem, 11vw, 3rem) minmax(0, 1fr);
        gap: 0.46rem 0.52rem;
        padding: 0.62rem;
    }

    .page-matches .recent-match-badge {
        width: clamp(2.25rem, 9.8vw, 2.65rem);
        height: clamp(2.65rem, 11vw, 3.05rem);
    }

    .page-matches .recent-match-badge .button-icon {
        width: 0.9rem;
        height: 0.9rem;
        flex: 0 0 0.9rem;
        -webkit-mask-size: 0.9rem 0.9rem;
        mask-size: 0.9rem 0.9rem;
    }

    .page-matches .recent-match-headline strong {
        font-size: clamp(0.82rem, 3.85vw, 0.98rem);
    }

    .page-matches .recent-match-headline p {
        font-size: clamp(0.52rem, 2.2vw, 0.62rem);
    }

    .page-matches .recent-match-stat-grid {
        gap: 0.32rem;
        margin-top: 0.44rem;
    }

    .page-matches .recent-match-stat-card {
        min-height: clamp(3.35rem, 14vw, 3.9rem);
        padding: 0.3rem 0.22rem 0.24rem;
        border-radius: 0.62rem;
    }

    .page-matches .recent-match-stat-card .button-icon {
        width: 0.72rem;
        height: 0.72rem;
        flex: 0 0 0.72rem;
        -webkit-mask-size: 0.72rem 0.72rem;
        mask-size: 0.72rem 0.72rem;
    }

    .page-matches .recent-match-stat-card b {
        font-size: clamp(0.78rem, 3.35vw, 0.92rem);
    }

    .page-matches .recent-match-stat-card small {
        font-size: 0.43rem;
    }

    .page-matches .recent-match-actions {
        gap: 0.32rem;
        padding: 0.62rem 0.46rem;
    }

    .page-matches .recent-match-action,
    .page-matches .recent-match-action-form .recent-match-action {
        min-height: 2rem;
        padding: 0.28rem 0.36rem;
        font-size: clamp(0.52rem, 2.1vw, 0.6rem);
        border-radius: 0.56rem;
        gap: 0.28rem;
    }

    .page-matches .recent-match-action .button-icon,
    .page-matches .recent-match-action-form .recent-match-action .button-icon {
        width: 0.68rem;
        height: 0.68rem;
        flex: 0 0 0.68rem;
        -webkit-mask-size: 0.68rem 0.68rem;
        mask-size: 0.68rem 0.68rem;
    }
}

@media (max-width: 900px) {
    .page-matches .recent-match-row {
        border-radius: clamp(1.35rem, 5.8vw, 2rem);
    }

    .page-matches .recent-match-shell {
        grid-template-columns: minmax(0, 1fr) clamp(7.2rem, 31vw, 9rem);
    }

    .page-matches .recent-match-core {
        grid-template-columns: clamp(3.05rem, 13.5vw, 4rem) minmax(0, 1fr);
        grid-template-areas:
            'badge headline'
            'stats stats';
        gap: clamp(0.5rem, 2vw, 0.75rem) clamp(0.56rem, 2.2vw, 0.82rem);
        padding: clamp(0.78rem, 3vw, 1rem);
    }

    .page-matches .recent-match-main {
        display: contents;
    }

    .page-matches .recent-match-badge {
        grid-area: badge;
        width: clamp(2.85rem, 12.8vw, 3.7rem);
        height: clamp(3.3rem, 14.6vw, 4.25rem);
    }

    .page-matches .recent-match-badge .button-icon {
        width: clamp(1.12rem, 4.8vw, 1.5rem);
        height: clamp(1.12rem, 4.8vw, 1.5rem);
        flex: 0 0 clamp(1.12rem, 4.8vw, 1.5rem);
        -webkit-mask-size: clamp(1.12rem, 4.8vw, 1.5rem) clamp(1.12rem, 4.8vw, 1.5rem);
        mask-size: clamp(1.12rem, 4.8vw, 1.5rem) clamp(1.12rem, 4.8vw, 1.5rem);
    }

    .page-matches .recent-match-headline {
        grid-area: headline;
        align-self: center;
        min-width: 0;
    }

    .page-matches .recent-match-headline strong {
        font-size: clamp(1rem, 4.45vw, 1.4rem);
        line-height: 1;
    }

    .page-matches .recent-match-headline p {
        margin-top: 0.26rem;
        font-size: clamp(0.6rem, 2.5vw, 0.78rem);
    }

    .page-matches .recent-match-stat-grid {
        grid-area: stats;
        gap: clamp(0.42rem, 1.8vw, 0.65rem);
        margin-top: clamp(0.62rem, 2.4vw, 0.9rem);
    }

    .page-matches .recent-match-stat-card {
        min-height: clamp(4.25rem, 18vw, 5.5rem);
        padding: clamp(0.42rem, 1.8vw, 0.66rem) clamp(0.34rem, 1.5vw, 0.56rem) clamp(0.34rem, 1.5vw, 0.54rem);
        border-radius: clamp(0.75rem, 2.7vw, 1rem);
    }

    .page-matches .recent-match-stat-card .button-icon {
        width: clamp(0.9rem, 3.8vw, 1.2rem);
        height: clamp(0.9rem, 3.8vw, 1.2rem);
        flex: 0 0 clamp(0.9rem, 3.8vw, 1.2rem);
        -webkit-mask-size: clamp(0.9rem, 3.8vw, 1.2rem) clamp(0.9rem, 3.8vw, 1.2rem);
        mask-size: clamp(0.9rem, 3.8vw, 1.2rem) clamp(0.9rem, 3.8vw, 1.2rem);
    }

    .page-matches .recent-match-stat-card b {
        font-size: clamp(1.1rem, 4.9vw, 1.55rem);
    }

    .page-matches .recent-match-stat-card small {
        font-size: clamp(0.48rem, 2vw, 0.6rem);
    }

    .page-matches .recent-match-actions {
        gap: clamp(0.38rem, 1.7vw, 0.6rem);
        padding: clamp(0.78rem, 3vw, 1rem) clamp(0.54rem, 2.2vw, 0.82rem);
    }

    .page-matches .recent-match-action,
    .page-matches .recent-match-action-form .recent-match-action {
        min-height: clamp(2.2rem, 9vw, 2.85rem);
        padding: clamp(0.36rem, 1.5vw, 0.55rem) clamp(0.52rem, 2vw, 0.76rem);
        border-radius: clamp(0.72rem, 2.6vw, 0.95rem);
        font-size: clamp(0.62rem, 2.5vw, 0.78rem);
        gap: clamp(0.36rem, 1.5vw, 0.52rem);
    }

    .page-matches .recent-match-action .button-icon,
    .page-matches .recent-match-action-form .recent-match-action .button-icon {
        width: clamp(0.78rem, 3.2vw, 1rem);
        height: clamp(0.78rem, 3.2vw, 1rem);
        flex: 0 0 clamp(0.78rem, 3.2vw, 1rem);
        -webkit-mask-size: clamp(0.78rem, 3.2vw, 1rem) clamp(0.78rem, 3.2vw, 1rem);
        mask-size: clamp(0.78rem, 3.2vw, 1rem) clamp(0.78rem, 3.2vw, 1rem);
    }
}

@media (max-width: 900px) {
    .page-matches .recent-match-shell {
        grid-template-columns: minmax(0, 1fr) clamp(112px, 32%, 140px) !important;
    }

    .page-matches .recent-match-core {
        grid-template-columns: clamp(58px, 16vw, 72px) minmax(0, 1fr) !important;
        gap: clamp(9px, 2.4vw, 14px) clamp(11px, 3vw, 18px) !important;
        padding: clamp(16px, 4.2vw, 24px) !important;
    }

    .page-matches .recent-match-badge {
        width: clamp(52px, 14vw, 66px) !important;
        height: clamp(60px, 16vw, 76px) !important;
    }

    .page-matches .recent-match-badge .button-icon {
        width: clamp(20px, 5.4vw, 26px) !important;
        height: clamp(20px, 5.4vw, 26px) !important;
        flex-basis: clamp(20px, 5.4vw, 26px) !important;
        -webkit-mask-size: clamp(20px, 5.4vw, 26px) clamp(20px, 5.4vw, 26px) !important;
        mask-size: clamp(20px, 5.4vw, 26px) clamp(20px, 5.4vw, 26px) !important;
    }

    .page-matches .recent-match-headline strong {
        font-size: clamp(18px, 5vw, 24px) !important;
    }

    .page-matches .recent-match-headline p {
        margin-top: clamp(4px, 1vw, 6px) !important;
        font-size: clamp(10px, 2.7vw, 13px) !important;
    }

    .page-matches .recent-match-stat-grid {
        gap: clamp(8px, 2.2vw, 13px) !important;
        margin-top: clamp(12px, 3.2vw, 18px) !important;
        grid-template-columns: minmax(66px, 1.45fr) minmax(52px, 1fr) minmax(52px, 1fr) !important;
    }

    .page-matches .recent-match-stat-card.is-players {
        min-width: 66px !important;
    }

    .page-matches .recent-match-stat-card {
        min-height: clamp(68px, 18vw, 92px) !important;
        padding: clamp(8px, 2vw, 12px) clamp(7px, 1.8vw, 10px) !important;
        border-radius: clamp(11px, 3vw, 16px) !important;
    }

    .page-matches .recent-match-stat-card .button-icon {
        width: clamp(15px, 4vw, 21px) !important;
        height: clamp(15px, 4vw, 21px) !important;
        flex-basis: clamp(15px, 4vw, 21px) !important;
        -webkit-mask-size: clamp(15px, 4vw, 21px) clamp(15px, 4vw, 21px) !important;
        mask-size: clamp(15px, 4vw, 21px) clamp(15px, 4vw, 21px) !important;
    }

    .page-matches .recent-match-stat-card b {
        font-size: clamp(21px, 5.8vw, 32px) !important;
    }

    .page-matches .recent-match-stat-card small {
        font-size: clamp(8px, 2.1vw, 11px) !important;
    }

    .page-matches .recent-match-actions {
        position: relative;
        justify-items: stretch !important;
        align-items: stretch !important;
        gap: clamp(8px, 2.2vw, 13px) !important;
        padding: clamp(16px, 4.2vw, 24px) clamp(18px, 4.8vw, 28px) clamp(16px, 4.2vw, 24px) clamp(10px, 2.8vw, 16px) !important;
        border-left: 0 !important;
    }

    .page-matches .recent-match-action-form {
        width: 100% !important;
    }

    .page-matches .recent-match-actions::before {
        content: '';
        position: absolute;
        top: 16px;
        bottom: 16px;
        left: 0;
        width: 1px;
        background: rgba(143, 132, 197, 0.22);
    }

    .page-matches .recent-match-action,
    .page-matches .recent-match-action-form .recent-match-action {
        width: 100% !important;
        justify-self: stretch !important;
        min-height: clamp(33px, 8.8vw, 48px) !important;
        padding: clamp(6px, 1.6vw, 10px) clamp(12px, 3.2vw, 18px) !important;
        border-radius: clamp(10px, 2.8vw, 16px) !important;
        font-size: clamp(10px, 2.7vw, 14px) !important;
        gap: clamp(7px, 1.9vw, 11px) !important;
    }

    .page-matches .recent-match-action .button-icon,
    .page-matches .recent-match-action-form .recent-match-action .button-icon {
        width: clamp(13px, 3.5vw, 18px) !important;
        height: clamp(13px, 3.5vw, 18px) !important;
        flex-basis: clamp(13px, 3.5vw, 18px) !important;
        -webkit-mask-size: clamp(13px, 3.5vw, 18px) clamp(13px, 3.5vw, 18px) !important;
        mask-size: clamp(13px, 3.5vw, 18px) clamp(13px, 3.5vw, 18px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-matches .recent-match-action,
    .page-matches .recent-match-action-form .recent-match-action {
        transition: none;
    }
}

.topbar-achievements {
    position: relative;
    width: min(100%, 1280px);
    margin: 0 auto;
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.8rem, 1.6vw, 1.2rem);
    padding: 0.1rem 0 0.35rem;
    margin-bottom: clamp(0.45rem, 1vw, 0.8rem);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
    isolation: auto;
}

.topbar-achievements::before,
.topbar-achievements::after {
    display: none;
}

.topbar-achievements .topbar-left {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(0.7rem, 1.4vw, 0.9rem);
    flex-wrap: nowrap;
    min-width: 0;
}

.topbar-achievements .achievement-menu-button {
    display: none;
    align-self: start;
    width: clamp(3.6rem, 5vw, 4.7rem);
    height: clamp(3.6rem, 5vw, 4.7rem);
    border-color: rgba(144, 115, 255, 0.34);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19, 21, 47, 0.96), rgba(10, 11, 28, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(131, 89, 255, 0.08), 0 12px 22px rgba(0, 0, 0, 0.18), 0 0 18px rgba(143, 95, 255, 0.1);
}

.topbar-achievements .achievement-menu-button span {
    width: 23px;
    height: 2.5px;
    background: #f9f5ff;
    box-shadow: 0 7px 0 #f9f5ff, 0 -7px 0 #f9f5ff;
}

.topbar-achievements .topbar-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.75rem;
    min-width: 0;
    row-gap: 0.24rem;
}

.topbar-achievements .topbar-title {
    display: block;
    grid-column: 1;
    font-size: clamp(1.82rem, 3.15vw, 3.1rem);
    line-height: 0.96;
    letter-spacing: -0.045em;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    text-shadow: 0 0 20px rgba(176, 104, 255, 0.1);
}

.topbar-achievements .topbar-context small {
    grid-column: 1;
    color: #9ca5d8;
    font-size: clamp(0.9rem, 1.05vw, 1.05rem);
}

.achievement-topbar-link {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    flex-shrink: 0;
    min-height: 4rem;
    padding: 0.72rem 1.1rem;
    border: 1px solid rgba(191, 120, 255, 0.45);
    border-radius: 21px;
    background: linear-gradient(180deg, rgba(19, 21, 48, 0.82), rgba(10, 11, 29, 0.78));
    color: #f8f5ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(162, 111, 255, 0.08), 0 0 20px rgba(168, 90, 255, 0.12), 0 12px 22px rgba(0, 0, 0, 0.16);
    font-size: 0.94rem;
}

.achievement-topbar-link:hover,
.achievement-topbar-link:focus-visible {
    border-color: rgba(226, 159, 255, 0.64);
    background: linear-gradient(180deg, rgba(24, 26, 58, 0.92), rgba(12, 13, 34, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(162, 111, 255, 0.1), 0 0 30px rgba(205, 100, 255, 0.18);
}

.achievement-topbar-link .button-icon {
    color: #f8e9ff;
}

.page-achievements .achievements-hero-cta .button-icon-external,
.achievement-topbar-link .button-icon-external {
    width: 0.92rem;
    height: 0.92rem;
    flex: 0 0 0.92rem;
    -webkit-mask-size: 0.92rem 0.92rem;
    mask-size: 0.92rem 0.92rem;
}

.page-achievements {
    gap: clamp(0.95rem, 1.8vw, 1.45rem);
}

.page-achievements .achievements-shell {
    display: grid;
    width: min(100%, 1280px);
    margin: 0 auto;
    gap: clamp(1rem, 1.8vw, 1.5rem);
}

.page-achievements .achievements-main-stack,
.page-achievements .achievements-history-stack {
    display: grid;
}

.page-achievements .achievements-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    min-height: clamp(280px, 25vw, 360px);
    padding: clamp(1.1rem, 2vw, 1.7rem);
    border: 1px solid rgba(197, 111, 255, 0.42);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(10, 11, 28, 0.98), rgba(6, 8, 21, 0.97));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 42px rgba(0, 0, 0, 0.3), 0 0 34px rgba(180, 92, 255, 0.14);
    isolation: isolate;
}

.page-achievements .achievements-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 8, 24, 0.99) 0%, rgba(7, 8, 24, 0.95) 36%, rgba(7, 8, 24, 0.68) 58%, rgba(7, 8, 24, 0.76) 100%),
        url('/assets/images/achievements-page-header-bg.png') center right / cover no-repeat;
    z-index: -2;
}

.page-achievements .achievements-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 95, 170, 0.18), transparent 20%),
        radial-gradient(circle at 80% 38%, rgba(168, 89, 255, 0.22), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%, transparent 72%, rgba(255, 255, 255, 0.04));
    z-index: -1;
}

.page-achievements .page-header .overline,
.page-achievements .page-header p {
    display: block;
}

.page-achievements .achievements-hero-copy,
.page-achievements .achievements-hero-visual {
    position: relative;
    z-index: 1;
}

.page-achievements .achievements-hero-copy {
    display: grid;
    align-content: center;
    gap: 0.6rem;
    max-width: 28rem;
}

.page-achievements .achievements-hero .overline {
    color: #c88eff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.26em;
}

.page-achievements .achievements-hero h1 {
    margin: 0;
    font-size: clamp(2.9rem, 4.2vw, 4.75rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
    color: transparent;
    background: linear-gradient(90deg, #ff83bc 0%, #f16fff 35%, #af74ff 68%, #dca9ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
}

.page-achievements .achievements-hero p {
    max-width: 27rem;
    color: #d5d8f6;
    font-size: clamp(0.96rem, 1.1vw, 1.12rem);
    line-height: 1.5;
}

.page-achievements .achievements-hero-actions {
    margin-top: 0.45rem;
}

.page-achievements .achievements-hero-cta {
    justify-self: start;
    min-height: 4rem;
    padding-inline: 1.3rem;
    border-radius: 22px;
    font-size: 1rem;
    background: linear-gradient(90deg, #ff5f98 0%, #d454ff 52%, #7f5fff 100%);
    box-shadow: 0 12px 26px rgba(255, 84, 159, 0.2), 0 0 20px rgba(168, 87, 255, 0.2);
}

.page-achievements .achievements-hero-cta .button-icon {
    color: #fff;
}

.page-achievements .achievements-hero-visual {
    display: none;
}

.page-achievements .achievements-hero-visual-glow {
    display: none;
}

.page-achievements .achievements-hero-trophy {
    display: none;
}

.page-achievements .achievement-panel {
    position: relative;
    padding: clamp(1.1rem, 1.8vw, 1.6rem);
    border: 1px solid rgba(176, 104, 255, 0.32);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 24%),
        linear-gradient(180deg, rgba(11, 13, 33, 0.94), rgba(8, 9, 23, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 32px rgba(2, 4, 16, 0.3), 0 0 26px rgba(138, 82, 255, 0.08);
    backdrop-filter: blur(18px);
}

.page-achievements .achievement-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 26%, transparent 74%, rgba(176, 104, 255, 0.06));
    opacity: 0.8;
}

.page-achievements .achievement-panel > * {
    position: relative;
    z-index: 1;
}

.page-achievements .achievement-panel-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.page-achievements .achievement-panel-title {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.page-achievements .achievement-panel-title h2 {
    margin: 0;
    color: #de93ff;
    font-size: clamp(1.04rem, 1.3vw, 1.3rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-achievements .achievement-panel-icon {
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    flex: 0 0 2.85rem;
    border: 1px solid rgba(184, 120, 255, 0.34);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(84, 45, 136, 0.36), rgba(26, 18, 61, 0.4));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 16px rgba(170, 82, 255, 0.1);
}

.page-achievements .achievement-panel-icon .button-icon {
    color: #f0b6ff;
}

.page-achievements .achievement-panel-icon.is-history {
    background: linear-gradient(180deg, rgba(94, 64, 156, 0.34), rgba(19, 22, 56, 0.42));
}

.page-achievements .achievement-panel-divider {
    flex: 1 1 auto;
    height: 1px;
    min-width: 2rem;
    background: linear-gradient(90deg, rgba(173, 113, 255, 0.42), rgba(173, 113, 255, 0.05));
}

.page-achievements .achievement-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.45rem 0.82rem;
    border: 1px solid rgba(173, 113, 255, 0.24);
    border-radius: 999px;
    color: #e9ddff;
    font-weight: 700;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.page-achievements .achievement-form {
    gap: 1.05rem;
}

.page-achievements .achievement-form-stack {
    display: grid;
    gap: 0.92rem;
}

.page-achievements .achievement-field {
    gap: 0.46rem;
}

.page-achievements .achievement-field > span:first-child {
    color: #aeb7e8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.page-achievements .achievement-field input,
.page-achievements .achievement-field select {
    min-height: 3.7rem;
    border-color: rgba(166, 110, 255, 0.28);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(15, 17, 42, 0.96), rgba(10, 11, 28, 0.94));
    background-color: #11142d;
    color: #fff;
    padding: 0.82rem 0.98rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(132, 88, 255, 0.04);
    font-size: 1rem;
}

.page-achievements .achievement-field select {
    color-scheme: dark;
}

.page-achievements .achievement-field select option {
    background: #11142d;
    color: #f6f1ff;
}

.page-achievements .achievement-field input::placeholder {
    color: #7f8ab8;
}

.page-achievements .achievement-field input:hover,
.page-achievements .achievement-field input:focus,
.page-achievements .achievement-field select:hover,
.page-achievements .achievement-field select:focus {
    border-color: rgba(225, 148, 255, 0.52);
    background: linear-gradient(180deg, rgba(19, 21, 49, 0.98), rgba(11, 12, 31, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(176, 104, 255, 0.08), 0 0 22px rgba(176, 104, 255, 0.14);
}

.page-achievements .achievement-event-row {
    grid-template-columns: minmax(0, 1fr) 4.4rem;
    gap: 0.85rem;
}

.page-achievements .achievement-square-button {
    width: 100%;
    min-width: 0;
    min-height: 3.7rem;
    padding: 0;
    border-radius: 20px;
    border-color: rgba(188, 123, 255, 0.38);
    background: linear-gradient(180deg, rgba(26, 21, 59, 0.95), rgba(12, 13, 34, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(176, 104, 255, 0.08), 0 0 18px rgba(176, 104, 255, 0.1);
}

.page-achievements .achievement-square-button .button-icon {
    width: 1.4rem;
    height: 1.4rem;
    flex: 0 0 1.4rem;
    color: #f3ddff;
    -webkit-mask-size: 1.4rem 1.4rem;
    mask-size: 1.4rem 1.4rem;
}

.page-achievements [data-new-event-field].is-visible {
    margin-top: -0.1rem;
    padding: 0.85rem;
    border: 1px solid rgba(160, 107, 255, 0.18);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(18, 19, 47, 0.74), rgba(10, 11, 28, 0.42));
}

.page-achievements .achievement-date-shell {
    position: relative;
    display: block;
}

.page-achievements .achievement-date-shell input {
    padding-right: 3.25rem;
}

.page-achievements .achievement-date-shell input[type='date']::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: relative;
    z-index: 2;
}

.page-achievements .achievement-date-icon {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    transform: translateY(-50%);
    color: #f2ddff;
    pointer-events: none;
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 1.2rem;
    -webkit-mask-size: 1.2rem 1.2rem;
    mask-size: 1.2rem 1.2rem;
}

.page-achievements .achievement-upload-field {
    gap: 0.6rem;
}

.page-achievements .achievement-upload-dropzone {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    min-height: 5.9rem;
    padding: 0.92rem 1rem;
    border: 1px dashed rgba(191, 120, 255, 0.42);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 17, 42, 0.84), rgba(10, 11, 29, 0.78));
    cursor: pointer;
    transition: border-color var(--ease), background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.page-achievements .achievement-upload-dropzone:hover,
.page-achievements .achievement-upload-dropzone:focus-visible,
.page-achievements .achievement-upload-dropzone.is-dragover {
    border-color: rgba(235, 151, 255, 0.68);
    background: linear-gradient(180deg, rgba(21, 22, 54, 0.92), rgba(12, 13, 34, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(191, 120, 255, 0.12), 0 0 26px rgba(176, 104, 255, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.page-achievements .achievement-upload-icon {
    display: grid;
    place-items: center;
    width: 3.9rem;
    height: 3.9rem;
    border: 1px solid rgba(177, 112, 255, 0.3);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(27, 21, 61, 0.86), rgba(13, 14, 35, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 16px rgba(176, 104, 255, 0.1);
}

.page-achievements .achievement-upload-icon .button-icon {
    width: 1.55rem;
    height: 1.55rem;
    flex: 0 0 1.55rem;
    color: #d793ff;
    -webkit-mask-size: 1.55rem 1.55rem;
    mask-size: 1.55rem 1.55rem;
}

.page-achievements .achievement-upload-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.page-achievements .achievement-upload-copy strong {
    color: #fff;
    font-size: 1.04rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.page-achievements .achievement-upload-copy small {
    color: #95a0d3;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.page-achievements .achievement-form-actions {
    gap: 0.7rem;
}

.page-achievements .achievement-save-button {
    width: 100%;
    min-height: 4rem;
    justify-content: center;
    border-radius: 22px;
    font-size: 1rem;
    background: linear-gradient(90deg, #ff5b98 0%, #d253ff 52%, #785bff 100%);
    box-shadow: 0 12px 24px rgba(255, 84, 159, 0.2), 0 0 22px rgba(168, 87, 255, 0.2);
}

.page-achievements .achievement-save-button .button-icon {
    color: #fff;
}

.page-achievements .achievement-cancel-button {
    min-height: 3.8rem;
    padding-inline: 1rem;
    border-radius: 20px;
}

.page-achievements .achievement-history-panel {
    border-color: rgba(132, 92, 216, 0.22);
    opacity: 0.98;
}

.page-achievements .achievement-history-head {
    justify-content: space-between;
}

.page-achievements .achievement-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.page-achievements .achievement-summary-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    min-height: 0;
    padding: 1rem 1.05rem;
    border-radius: 24px;
    border: 1px solid rgba(173, 113, 255, 0.2);
    background: linear-gradient(180deg, rgba(18, 16, 44, 0.95), rgba(9, 10, 24, 0.96));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.page-achievements .achievement-summary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 42%);
    pointer-events: none;
    opacity: 1;
}

.page-achievements .achievement-summary-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.15rem;
}

.page-achievements .achievement-summary-card .overline {
    color: #b9bfe8;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.page-achievements .achievement-summary-card strong {
    display: block;
    font-size: clamp(2.05rem, 3vw, 2.65rem);
    line-height: 0.92;
    color: #fff;
}

.page-achievements .achievement-summary-card small {
    color: #8c97c8;
    font-size: 0.88rem;
}

.page-achievements .achievement-summary-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.page-achievements .achievement-summary-icon .button-icon {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 1.35rem;
    -webkit-mask-size: 1.35rem 1.35rem;
    mask-size: 1.35rem 1.35rem;
}

.page-achievements .achievement-summary-total {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 0 26px rgba(168, 85, 247, 0.12), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.page-achievements .achievement-summary-total .overline,
.page-achievements .achievement-summary-total .achievement-summary-icon {
    color: #d46cff;
}

.page-achievements .achievement-summary-good {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.08), 0 0 24px rgba(34, 197, 94, 0.1), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.page-achievements .achievement-summary-good .overline,
.page-achievements .achievement-summary-good .achievement-summary-icon {
    color: #4ade80;
}

.page-achievements .achievement-summary-average {
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.08), 0 0 24px rgba(245, 158, 11, 0.12), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.page-achievements .achievement-summary-average .overline,
.page-achievements .achievement-summary-average .achievement-summary-icon {
    color: #f59e0b;
}

.page-achievements .achievement-summary-bad {
    border-color: rgba(244, 63, 94, 0.34);
    box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.08), 0 0 24px rgba(244, 63, 94, 0.12), 0 18px 36px rgba(0, 0, 0, 0.18);
}

.page-achievements .achievement-summary-bad .overline,
.page-achievements .achievement-summary-bad .achievement-summary-icon {
    color: #fb7185;
}

.page-achievements .achievement-empty-panel {
    padding: 1rem;
    border: 1px dashed rgba(176, 104, 255, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

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

.page-achievements .achievement-card,
.page-achievements .achievement-admin-card {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.1rem 1.05rem 1rem;
    border-radius: 28px;
    border: 1px solid rgba(124, 58, 237, 0.22);
    background: linear-gradient(180deg, rgba(23, 19, 54, 0.99), rgba(10, 10, 24, 0.97));
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.page-achievements .achievement-card::before,
.page-achievements .achievement-admin-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
        radial-gradient(circle at 0 0, rgba(255, 80, 160, 0.14), transparent 28%),
        radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.08), transparent 32%);
    pointer-events: none;
    opacity: 0.95;
}

.page-achievements .achievement-card::after,
.page-achievements .achievement-admin-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.page-achievements .achievement-card.vibe-green,
.page-achievements .achievement-admin-card.vibe-green {
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.04), 0 0 24px rgba(34, 197, 94, 0.08), 0 20px 38px rgba(0, 0, 0, 0.28);
}

.page-achievements .achievement-card.vibe-red,
.page-achievements .achievement-admin-card.vibe-red {
    border-color: rgba(244, 63, 94, 0.36);
    box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.06), 0 0 26px rgba(244, 63, 94, 0.12), 0 20px 38px rgba(0, 0, 0, 0.28);
}

.page-achievements .achievement-card.vibe-red::before,
.page-achievements .achievement-admin-card.vibe-red::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
        radial-gradient(circle at 0 0, rgba(255, 86, 138, 0.18), transparent 30%),
        radial-gradient(circle at 100% 100%, rgba(124, 58, 237, 0.1), transparent 34%);
}

.page-achievements .achievement-card.vibe-amber,
.page-achievements .achievement-admin-card.vibe-amber {
    border-color: rgba(245, 158, 11, 0.32);
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.05), 0 0 24px rgba(245, 158, 11, 0.1), 0 20px 38px rgba(0, 0, 0, 0.28);
}

.page-achievements .achievement-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.page-achievements .achievement-title-block {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.page-achievements .achievement-date-line {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    color: #b4bbdd;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.page-achievements .achievement-date-line .button-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    -webkit-mask-size: 1rem 1rem;
    mask-size: 1rem 1rem;
    color: #c8cfff;
}

.page-achievements .achievement-head h3 {
    margin: 0.34rem 0 0;
    color: #fff;
    font-size: clamp(1.18rem, 1.7vw, 1.58rem);
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-achievements .achievement-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-height: 2.1rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.14);
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.page-achievements .achievement-status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.page-achievements .achievement-status-pill.vibe-green {
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.08);
}

.page-achievements .achievement-status-pill.vibe-red {
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.24);
    background: rgba(244, 63, 94, 0.08);
}

.page-achievements .achievement-status-pill.vibe-amber {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.24);
    background: rgba(245, 158, 11, 0.08);
}

.page-achievements .achievement-meta {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.68rem;
}

.page-achievements .achievement-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.62rem;
    row-gap: 0.12rem;
    align-items: center;
    min-width: 0;
    min-height: 4rem;
    padding: 0.72rem 0.76rem;
    border: 1px solid rgba(167, 139, 250, 0.13);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(47, 30, 98, 0.26), rgba(18, 14, 42, 0.4));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.page-achievements .achievement-stat .button-icon {
    grid-row: 1 / span 2;
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    -webkit-mask-size: 1rem 1rem;
    mask-size: 1rem 1rem;
    color: #c38cff;
}

.page-achievements .achievement-stat strong {
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.08;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-achievements .achievement-stat small {
    color: #8f97bc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.6rem;
}

.page-achievements .achievement-actions,
.page-achievements .achievement-admin-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.72rem;
    align-items: stretch;
}

.page-achievements .achievement-action,
.page-achievements .achievement-action-primary,
.page-achievements .achievement-action-danger,
.page-achievements .achievement-action-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0.72rem 0.92rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.page-achievements .achievement-action-form {
    display: block;
}

.page-achievements .achievement-action {
    border: 1px solid rgba(167, 139, 250, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: #f1f3ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-achievements .achievement-action-primary {
    border: 1px solid rgba(244, 63, 94, 0.18);
    background: linear-gradient(90deg, rgba(212, 50, 140, 0.94), rgba(173, 54, 232, 0.92));
    color: #fff;
    box-shadow: 0 12px 24px rgba(173, 54, 232, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-achievements .achievement-action-danger {
    border: 1px solid rgba(244, 63, 94, 0.24);
    background: rgba(244, 63, 94, 0.08);
    color: #ffd7df;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.page-achievements .achievement-action-muted {
    border: 1px solid rgba(167, 139, 250, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #9aa6c7;
    cursor: default;
}

.page-achievements .achievement-action .button-icon,
.page-achievements .achievement-action-primary .button-icon,
.page-achievements .achievement-action-danger .button-icon,
.page-achievements .achievement-action-muted .button-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    -webkit-mask-size: 1rem 1rem;
    mask-size: 1rem 1rem;
    color: currentColor;
}

.page-achievements .achievement-action span:last-child,
.page-achievements .achievement-action-primary span:last-child,
.page-achievements .achievement-action-danger span:last-child,
.page-achievements .achievement-action-muted span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 1200px) {
    .page-achievements .achievement-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .page-achievements .achievement-grid,
    .page-achievements .achievement-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .page-achievements .achievements-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 1.15rem;
    }

    .page-achievements .achievements-hero::before {
        background:
            linear-gradient(180deg, rgba(7, 8, 24, 0.94) 0%, rgba(7, 8, 24, 0.8) 40%, rgba(7, 8, 24, 0.72) 100%),
            linear-gradient(90deg, rgba(7, 8, 24, 0.95) 0%, rgba(7, 8, 24, 0.78) 44%, rgba(7, 8, 24, 0.56) 100%),
            url('/assets/images/achievements-page-header-bg.png') center right / cover no-repeat;
    }

    .topbar-achievements .topbar-title {
        white-space: normal;
    }
}

@media (max-width: 860px) {
    .topbar-achievements {
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        gap: 1rem;
    }

    .topbar-achievements .achievement-menu-button {
        display: inline-flex;
    }

    .topbar-achievements .topbar-left {
        width: auto;
    }

    .achievement-topbar-link {
        align-self: center;
    }

    .page-achievements .achievement-grid,
    .page-achievements .achievement-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar-achievements {
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
    }

    .topbar-achievements .topbar-context {
        column-gap: 0.55rem;
    }

    .topbar-achievements .topbar-left {
        gap: 0.7rem;
    }

    .topbar-achievements .achievement-menu-button {
        width: 2.85rem;
        height: 2.85rem;
        border-radius: 18px;
    }

    .topbar-achievements .topbar-title {
        font-size: clamp(1.62rem, 8vw, 2.05rem);
    }

    .topbar-achievements .topbar-context small {
        font-size: 0.84rem;
    }

    .achievement-topbar-link {
        min-height: 3rem;
        padding: 0.68rem 0.85rem;
        border-radius: 16px;
        font-size: 0.86rem;
    }

    .page-achievements .achievements-hero {
        gap: 0.65rem;
        padding: 1rem;
        border-radius: 24px;
    }

    .page-achievements .achievements-hero h1 {
        font-size: clamp(2.4rem, 10.5vw, 3.1rem);
    }

    .page-achievements .achievements-hero p {
        max-width: 18.5rem;
        font-size: 0.9rem;
    }

    .page-achievements .achievements-hero-cta {
        min-height: 3.65rem;
        padding-inline: 1.05rem;
        border-radius: 18px;
        font-size: 0.94rem;
    }

    .page-achievements .achievement-panel {
        padding: 0.95rem;
        border-radius: 22px;
    }

    .page-achievements .achievement-panel-head,
    .page-achievements .achievement-history-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .page-achievements .achievement-summary-grid {
        gap: 0.72rem;
    }

    .page-achievements .achievement-summary-card {
        padding: 0.92rem 0.94rem;
        border-radius: 22px;
    }

    .page-achievements .achievement-summary-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 15px;
    }

    .page-achievements .achievement-card,
    .page-achievements .achievement-admin-card {
        gap: 0.9rem;
        padding: 0.98rem 0.94rem 0.94rem;
        border-radius: 24px;
    }

    .page-achievements .achievement-head {
        flex-direction: column;
    }

    .page-achievements .achievement-head h3 {
        font-size: 1.18rem;
        white-space: normal;
    }

    .page-achievements .achievement-status-pill {
        min-height: 1.95rem;
        font-size: 0.8rem;
    }

    .page-achievements .achievement-meta {
        gap: 0.56rem;
    }

    .page-achievements .achievement-stat {
        min-height: 3.7rem;
        padding: 0.62rem 0.6rem;
        border-radius: 14px;
    }

    .page-achievements .achievement-actions,
    .page-achievements .achievement-admin-actions {
        grid-template-columns: 1fr;
        gap: 0.58rem;
    }

    .page-achievements .achievement-action,
    .page-achievements .achievement-action-primary,
    .page-achievements .achievement-action-danger,
    .page-achievements .achievement-action-muted {
        min-height: 2.8rem;
        border-radius: 14px;
        font-size: 0.88rem;
    }

    .page-achievements .achievement-panel-head {
        margin-bottom: 1rem;
    }

    .page-achievements .achievement-panel-title h2 {
        font-size: 1.02rem;
    }

    .page-achievements .achievement-panel-icon {
        width: 2.55rem;
        height: 2.55rem;
        flex-basis: 2.55rem;
        border-radius: 16px;
    }

    .page-achievements .achievement-panel-divider {
        width: 100%;
    }

    .page-achievements .achievement-field input,
    .page-achievements .achievement-field select,
    .page-achievements .achievement-square-button {
        min-height: 3.15rem;
        border-radius: 16px;
        font-size: 0.94rem;
    }

    .page-achievements .achievement-field input,
    .page-achievements .achievement-field select {
        padding: 0.72rem 0.84rem;
    }

    .page-achievements .achievement-square-button {
        padding: 0;
        width: 100%;
    }

    .page-achievements .achievement-event-row {
        grid-template-columns: minmax(0, 1fr) 3.15rem;
        gap: 0.75rem;
    }

    .page-achievements .achievement-upload-dropzone {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: stretch;
        align-items: center;
        min-height: 0;
        gap: 0.8rem;
        padding: 0.95rem;
        border-radius: 18px;
    }

    .page-achievements .achievement-upload-icon {
        width: 3.2rem;
        height: 3.2rem;
        border-radius: 18px;
    }

    .page-achievements .achievement-upload-copy strong {
        font-size: 1rem;
    }

    .page-achievements .achievement-upload-copy small {
        font-size: 0.82rem;
    }

    .page-achievements .achievement-save-button,
    .page-achievements .achievement-cancel-button {
        width: 100%;
    }

    .page-achievements .achievement-save-button {
        min-height: 3.65rem;
        font-size: 0.96rem;
    }

    .page-achievements .achievement-cancel-button {
        min-height: 3.3rem;
    }
}

@media (max-width: 420px) {
    .topbar-achievements {
        grid-template-columns: minmax(0, 1fr);
        align-items: flex-start;
    }

    .topbar-achievements .topbar-left {
        width: 100%;
    }

    .topbar-achievements .topbar-title {
        font-size: clamp(1.4rem, 8vw, 1.72rem);
    }

    .topbar-achievements .topbar-context small {
        font-size: 0.8rem;
    }

    .achievement-topbar-link {
        justify-self: end;
        padding-inline: 0.76rem;
        font-size: 0.8rem;
    }

    .page-achievements .achievements-hero h1 {
        font-size: clamp(2.15rem, 10vw, 2.55rem);
    }

    .page-achievements .achievements-hero-cta {
        min-height: 3.35rem;
        padding-inline: 0.95rem;
        font-size: 0.9rem;
    }

    .page-achievements .achievement-panel-title h2 {
        letter-spacing: 0.13em;
    }

    .page-achievements .achievement-summary-grid {
        gap: 0.65rem;
    }

    .page-achievements .achievement-meta {
        grid-template-columns: 1fr;
    }

    .page-achievements .achievement-summary-card strong {
        font-size: 1.85rem;
    }

    .page-achievements .achievement-action,
    .page-achievements .achievement-action-primary,
    .page-achievements .achievement-action-danger,
    .page-achievements .achievement-action-muted {
        min-height: 2.65rem;
        font-size: 0.84rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-achievements .achievement-upload-dropzone,
    .achievement-topbar-link,
    .topbar-achievements .achievement-menu-button {
        transition: none;
    }
}

.match-form-card,
.form-section,
.entry-card {
    border-radius: var(--radius-lg);
}

/* Public mobile leaderboard redesign. */
.button-icon-search {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}

.button-icon-bell {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.268 21a2 2 0 0 0 3.464 0'/%3E%3Cpath d='M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326'/%3E%3C/svg%3E");
}

.button-icon-trophy {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0V4Z'/%3E%3Cpath d='M17 5h3a2 2 0 0 1 0 4h-3'/%3E%3Cpath d='M7 5H4a2 2 0 0 0 0 4h3'/%3E%3C/svg%3E");
}

.button-icon-calendar {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}

.button-icon-chart {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V10'/%3E%3Cpath d='M18 20V4'/%3E%3Cpath d='M6 20v-4'/%3E%3C/svg%3E");
}

.button-icon-users {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.button-icon-crown {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 7 4.41 4.41a2 2 0 0 0 2.83 0L12 8.66l2.76 2.75a2 2 0 0 0 2.83 0L22 7l-2 11H4L2 7Z'/%3E%3Cpath d='M5 21h14'/%3E%3Cpath d='M12 3v5'/%3E%3C/svg%3E");
}

.button-icon-check {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m9.55 18.55-5.7-5.7 1.4-1.4 4.3 4.3 8.8-8.8 1.4 1.4-10.2 10.2Z'/%3E%3C/svg%3E");
}

.button-icon-alert {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m10.3 3.9-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.7-3.1l-8-14a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.button-icon-gamepad {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='6' x2='10' y1='12' y2='12'/%3E%3Cline x1='8' x2='8' y1='10' y2='14'/%3E%3Cline x1='15' x2='15.01' y1='13' y2='13'/%3E%3Cline x1='18' x2='18.01' y1='11' y2='11'/%3E%3Crect width='20' height='12' x='2' y='6' rx='2'/%3E%3C/svg%3E");
}

.button-icon-crosshair {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 2v4'/%3E%3Cpath d='M12 18v4'/%3E%3Cpath d='m2 12 4 0'/%3E%3Cpath d='m18 12 4 0'/%3E%3C/svg%3E");
}

.button-icon-clock {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}

.button-icon-history {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3.05 13A9 9 0 1 0 6 5.3L3 8'/%3E%3Cpath d='M12 7v5l4 2'/%3E%3C/svg%3E");
}

.button-icon-burst {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='m12 2 2.2 5.16 5.6-2.33-2.33 5.6L22.6 12l-5.13 1.57 2.33 5.6-5.6-2.33L12 22l-2.2-5.16-5.6 2.33 2.33-5.6L1.4 12l5.13-1.57-2.33-5.6 5.6 2.33Z'/%3E%3C/svg%3E");
}

.button-icon-more-vertical {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='black'%3E%3Ccircle cx='12' cy='5' r='2.2'/%3E%3Ccircle cx='12' cy='12' r='2.2'/%3E%3Ccircle cx='12' cy='19' r='2.2'/%3E%3C/svg%3E");
}

.button-icon-edit {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 1 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.button-icon-trash {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3Cpath d='M19 6l-1 14H6L5 6'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

.button-icon-image {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
}

.button-icon-skull {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a7 7 0 0 0-7 7c0 2.4 1.2 4.2 3 5.3V19a1 1 0 0 0 1 1h1v-2h4v2h1a1 1 0 0 0 1-1v-3.7c1.8-1.1 3-2.9 3-5.3a7 7 0 0 0-7-7Z'/%3E%3Cpath d='M9 10h.01'/%3E%3Cpath d='M15 10h.01'/%3E%3Cpath d='M10 14a3 3 0 0 0 4 0'/%3E%3C/svg%3E");
}

.button-icon-chevron {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.button-icon-upload {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18.5h9.5A4.5 4.5 0 0 0 17 9.6a6 6 0 0 0-11.4 2A3.6 3.6 0 0 0 7 18.5Z'/%3E%3Cpath d='M12 16V9.2'/%3E%3Cpath d='m9.4 11.8 2.6-2.6 2.6 2.6'/%3E%3C/svg%3E");
}

.button-icon-folder {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H10l2 2h6.5A2.5 2.5 0 0 1 21 9.5v1H3z'/%3E%3Cpath d='M3 10.5h18v7A2.5 2.5 0 0 1 18.5 20h-13A2.5 2.5 0 0 1 3 17.5z'/%3E%3C/svg%3E");
}

.button-icon-eye {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6 10-6 10 6 10 6-3.6 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.button-icon-eye-off {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 3 18 18'/%3E%3Cpath d='M10.6 10.7A3 3 0 0 0 13.3 13.4'/%3E%3Cpath d='M9.9 5.1A10.9 10.9 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-3.1 4.2'/%3E%3Cpath d='M6.6 6.7C3.8 8.5 2 12 2 12s3.6 7 10 7c1.7 0 3.2-.4 4.5-1'/%3E%3C/svg%3E");
}

.button-icon-user {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 21a6 6 0 0 0-12 0'/%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3C/svg%3E");
}

.button-icon-shield {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='M12 8v7'/%3E%3C/svg%3E");
}

.button-icon-sparkles {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3-1.9 5.1L5 10l5.1 1.9L12 17l1.9-5.1L19 10l-5.1-1.9z'/%3E%3Cpath d='M5 3v4'/%3E%3Cpath d='M19 17v4'/%3E%3Cpath d='M3 5h4'/%3E%3Cpath d='M17 19h4'/%3E%3C/svg%3E");
}

.button-icon-save {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.2 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.8z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E");
}

.button-icon-file {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E");
}

.button-icon-arrow-left {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
}

.button-icon-plus {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
}

.button-icon-list {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3 6h.01'/%3E%3Cpath d='M3 12h.01'/%3E%3Cpath d='M3 18h.01'/%3E%3C/svg%3E");
}

.button-icon-info {
    --icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E");
}

body.is-public-menu-open {
    overflow: hidden;
}

.public-body .public-shell {
    width: min(100% - 0.9rem, 760px);
    padding: 0.72rem 0 1rem;
    gap: 0.62rem;
}

.public-body .page-shell.public-page-shell {
    gap: 0.62rem;
}

.public-topbar,
.public-topbar-left,
.public-topbar-actions,
.public-team-summary,
.public-team-summary-main,
.public-team-summary-badge,
.public-rank-name-row,
.public-board-signoff,
.public-hero-copy,
.public-page-tabs .public-tab,
.public-drawer-link {
    display: flex;
    align-items: center;
}

.public-topbar {
    position: sticky;
    top: 0.55rem;
    z-index: 40;
    min-height: 60px;
    padding: 0.55rem 0.7rem;
    border-radius: 20px;
    border-color: rgba(109, 75, 201, 0.28);
    background:
        linear-gradient(180deg, rgba(17, 18, 39, 0.96), rgba(9, 10, 24, 0.9)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 24px rgba(109, 75, 201, 0.08);
}

.public-topbar-left {
    gap: 0.65rem;
    min-width: 0;
    flex: 1 1 auto;
}

.public-topbar-actions {
    gap: 0.4rem;
    flex: 0 0 auto;
}

.public-menu-button,
.public-header-action,
.public-app-badge {
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(167, 139, 250, 0.16);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.public-header-action,
.public-app-badge {
    justify-content: center;
    color: #e8e7ff;
}

.public-menu-button {
    flex: 0 0 auto;
}

.public-app-badge {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.16), rgba(124, 58, 237, 0.22));
}

.public-app-badge-core {
    width: 15px;
    height: 15px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, #ff9a62, #ff4d8d 46%, #7c3aed 100%);
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.4));
}

.public-brand-header {
    min-width: 0;
    gap: 0.65rem;
}

.public-brand-header > span:last-child {
    min-width: 0;
}

.public-brand-header strong {
    font-size: 1rem;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-brand-header small {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(196, 199, 231, 0.76);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 44;
    border: 0;
    background: rgba(4, 4, 10, 0.68);
}

.public-mobile-drawer[hidden],
.public-drawer-backdrop[hidden] {
    display: none;
}

.public-mobile-drawer {
    position: fixed;
    top: 4.8rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 45;
    display: grid;
    gap: 0.45rem;
    padding: 0.72rem;
    border-radius: 22px;
    border-color: rgba(167, 139, 250, 0.24);
    background:
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.14), transparent 8rem),
        linear-gradient(180deg, rgba(18, 20, 44, 0.98), rgba(9, 10, 24, 0.96));
}

.public-drawer-link {
    justify-content: flex-start;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(167, 139, 250, 0.16);
    background: rgba(255, 255, 255, 0.045);
    color: #d4d8fb;
    font-weight: 700;
}

.public-drawer-link.is-active {
    color: #fff;
    border-color: rgba(244, 63, 94, 0.32);
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.16), rgba(124, 58, 237, 0.28));
}

.public-drawer-meta {
    padding-top: 0.1rem;
}

.public-team-summary {
    justify-content: space-between;
    gap: 0.72rem;
    padding: 0.72rem 0.82rem;
    border-radius: 22px;
    border-color: rgba(118, 88, 213, 0.34);
    background:
        radial-gradient(circle at 100% 50%, rgba(124, 58, 237, 0.14), transparent 10rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 36%),
        linear-gradient(180deg, rgba(18, 20, 44, 0.95), rgba(11, 12, 28, 0.92));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(109, 75, 201, 0.06);
}

.public-team-summary-main {
    gap: 0.72rem;
    min-width: 0;
}

.public-team-summary-logo {
    width: 56px;
    height: 56px;
    border-radius: 17px;
}

.public-team-summary-copy {
    min-width: 0;
}

.public-team-summary-copy strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.04;
}

.public-team-summary-copy small {
    display: block;
    margin-top: 0.14rem;
    color: #aeb4d8;
    font-size: 0.82rem;
}

.public-team-summary-badge {
    gap: 0.5rem;
    justify-content: flex-end;
    min-width: 76px;
    padding: 0.52rem 0.64rem;
    border-radius: 14px;
    border: 1px solid rgba(167, 139, 250, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.public-team-summary-badge strong {
    color: var(--ink);
    font-size: 0.96rem;
    line-height: 1;
}

.public-team-summary-badge small {
    display: none;
}

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

.public-tab {
    gap: 0.65rem;
    justify-content: center;
    min-height: 56px;
    padding: 0.82rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.14);
    background: rgba(255, 255, 255, 0.035);
    color: #b7bdd9;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.public-tab .button-icon {
    opacity: 0.82;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    -webkit-mask-size: 15px 15px;
    mask-size: 15px 15px;
}

.public-tab.is-active,
.public-tab:hover,
.public-tab:focus-visible {
    color: #fff;
    border-color: rgba(244, 63, 94, 0.36);
    background: linear-gradient(90deg, rgba(244, 63, 94, 0.92), rgba(124, 58, 237, 0.84));
    box-shadow: 0 10px 18px rgba(124, 58, 237, 0.14), 0 0 16px rgba(244, 63, 94, 0.08);
}

.public-scope-tabs .public-tab {
    min-height: 52px;
    font-size: 0.9rem;
}

.public-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        'copy'
        'filter';
    gap: 0.72rem 0.72rem;
    align-items: center;
    padding: 0.92rem 0.86rem 0.82rem;
    border-radius: 24px;
    border-color: rgba(93, 114, 255, 0.18);
    background:
        linear-gradient(90deg, rgba(10, 9, 28, 0.92) 0%, rgba(12, 11, 30, 0.82) 36%, rgba(11, 10, 28, 0.6) 64%, rgba(8, 8, 20, 0.74) 100%),
        linear-gradient(180deg, rgba(13, 12, 31, 0.35), rgba(9, 9, 22, 0.58)),
        url("/assets/images/public-hero-visual.png") center center / cover no-repeat;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(109, 75, 201, 0.05);
}

.public-hero-copy {
    grid-area: copy;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.public-hero-copy .overline {
    color: #f58de7;
    letter-spacing: 0.2em;
}

.public-hero-copy h1 {
    margin: 0.34rem 0 0.46rem;
    font-family: 'Russo One', 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 0.88;
    letter-spacing: -0.02em;
    text-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.public-hero-copy .public-subtitle {
    margin: 0;
    max-width: 14rem;
    color: #b5bcde;
    font-size: 0.8rem;
    line-height: 1.55;
}

.public-hero-filter {
    grid-area: filter;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.62rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.public-hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 0.82rem 0.9rem;
    border-radius: 17px;
    border: 1px solid rgba(167, 139, 250, 0.16);
    background: rgba(8, 10, 26, 0.64);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-weight: 700;
}

.public-hero-control .button-icon {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    -webkit-mask-size: 15px 15px;
    mask-size: 15px 15px;
}

.public-hero-control-select {
    gap: 0.6rem;
    padding-right: 0.78rem;
}

.public-hero-control-select select {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-weight: inherit;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    color-scheme: dark;
}

.public-hero-control-select select:focus {
    outline: none;
}

.public-hero-control-select option,
.public-hero-control-select optgroup {
    color: #f8fbff;
    background: #120f2f;
}

.public-hero-date-pill {
    justify-content: flex-start;
    gap: 0.55rem;
    padding-right: 0.9rem;
}

.public-hero-date-pill span:last-child {
    white-space: nowrap;
}

.public-hero-filter.is-custom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-hero-filter:not(.is-custom) .range-control-main,
.public-hero-filter:not(.is-custom) .range-pill {
    grid-column: auto;
}

.public-hero-filter.is-custom .range-control-main,
.public-hero-filter.is-custom .range-pill {
    grid-column: 1 / -1;
}

.public-hero-filter .field {
    gap: 0;
}

.public-hero-filter .field span {
    display: none;
}

.public-hero-filter input,
.public-hero-filter .range-pill {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(167, 139, 250, 0.16);
    background: rgba(8, 10, 26, 0.64);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.public-hero-filter select {
    appearance: none;
    min-height: 0;
    padding: 0 1.4rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    background-image: none;
}

.public-hero-filter .range-pill {
    justify-content: flex-start;
    gap: 0.55rem;
    padding-inline: 0.95rem;
    color: #e6e7f7;
}

.public-hero-filter .range-pill .button-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    -webkit-mask-size: 16px 16px;
    mask-size: 16px 16px;
}

.public-card-leaderboard {
    display: grid;
    gap: 0.8rem;
    padding: 0.86rem;
    border-radius: 24px;
    border-color: rgba(109, 75, 201, 0.24);
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 12rem),
        linear-gradient(180deg, rgba(15, 16, 38, 0.98), rgba(10, 11, 26, 0.96));
}

.public-top-ranks,
.public-compact-ranks {
    display: grid;
    gap: 0.78rem;
}

.public-rank-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 38%),
        linear-gradient(180deg, rgba(18, 20, 44, 0.96), rgba(10, 11, 26, 0.92));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

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

.public-rank-card-top {
    display: grid;
    grid-template-columns: 62px 190px minmax(0, 1fr);
    gap: 1.15rem;
    align-items: stretch;
    min-height: 146px;
    padding: 0.78rem 1rem 0.78rem 0.84rem;
}

.rank-theme-1 {
    border-color: rgba(255, 184, 58, 0.68);
    box-shadow: 0 0 0 1px rgba(255, 184, 58, 0.12), 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(255, 166, 0, 0.1);
}

.rank-theme-2 {
    border-color: rgba(170, 95, 255, 0.66);
    box-shadow: 0 0 0 1px rgba(170, 95, 255, 0.12), 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(124, 58, 237, 0.12);
}

.rank-theme-3 {
    border-color: rgba(255, 140, 78, 0.62);
    box-shadow: 0 0 0 1px rgba(255, 140, 78, 0.12), 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(255, 140, 78, 0.1);
}

.public-rank-ribbon {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    align-self: center;
    width: 62px;
    min-height: 126px;
    padding: 0.9rem 0.35rem 0.7rem;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
    background: linear-gradient(180deg, rgba(255, 214, 110, 0.56), rgba(105, 58, 16, 0.82));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 6px 16px rgba(0, 0, 0, 0.18);
}

.rank-theme-2 .public-rank-ribbon {
    background: linear-gradient(180deg, rgba(165, 104, 255, 0.62), rgba(67, 26, 116, 0.88));
}

.rank-theme-3 .public-rank-ribbon {
    background: linear-gradient(180deg, rgba(255, 163, 90, 0.56), rgba(117, 52, 24, 0.88));
}

.public-rank-ribbon strong {
    color: #fffaf2;
    font-family: 'Russo One', 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.28);
}

.public-rank-ribbon-label {
    margin-bottom: 0.4rem;
    color: rgba(255, 246, 228, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.52rem;
    font-weight: 700;
}

.public-rank-crown {
    position: absolute;
    top: 0.42rem;
    left: 50%;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 194, 74, 0.18);
    color: #ffe08f;
}

.public-rank-figure,
.compact-rank-avatar {
    position: relative;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.public-rank-figure {
    height: 130px;
    align-self: end;
    display: flex;
    align-items: start;
    justify-content: center;
    border-radius: 0 0 20px 20px;
    isolation: isolate;
}

.public-rank-figure img,
.compact-rank-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.public-rank-figure img {
    width: 210px;
    height: auto;
    max-width: none;
    max-height: none;
    position: relative;
    z-index: 1;
    align-self: flex-start;
    object-fit: contain;
    object-position: center top;
    transform: translateY(-4px);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
}

.public-rank-figure.is-fallback em,
.compact-rank-avatar.is-fallback span {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.94);
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.public-rank-figure.is-fallback em {
    bottom: 0.32rem;
    font-size: 0.82rem;
}

.public-rank-cutout {
    margin-left: -0.25rem;
}

.public-rank-cutout-aura {
    position: absolute;
    inset: 4px 14px 18px 6px;
    z-index: 0;
    border-radius: 999px 999px 18px 18px;
    background:
        radial-gradient(circle at 50% 28%, rgba(183, 102, 255, 0.34), transparent 48%),
        radial-gradient(circle at 50% 96%, rgba(80, 26, 155, 0.54), transparent 68%);
    filter: blur(8px);
}

.public-rank-cutout-floor {
    position: absolute;
    left: 12px;
    right: 18px;
    bottom: 8px;
    height: 18px;
    z-index: 0;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(130, 81, 235, 0.55), rgba(130, 81, 235, 0) 72%);
}

.public-rank-fallback-glow {
    position: absolute;
    inset: auto 0 0;
    height: 54%;
    background: radial-gradient(circle at 50% 100%, rgba(177, 90, 255, 0.46), transparent 72%);
}

.public-rank-fallback-head,
.public-rank-fallback-body {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(223, 223, 255, 0.9), rgba(148, 114, 255, 0.75));
}

.public-rank-fallback-head {
    top: 18px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.public-rank-fallback-body {
    bottom: 8px;
    width: 96px;
    height: 96px;
    border-radius: 24px 24px 18px 18px;
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

.public-rank-body {
    min-width: 0;
    display: grid;
    gap: 0.86rem;
    align-self: center;
}

.public-rank-head {
    display: grid;
    gap: 0.22rem;
}

.public-rank-name-row {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    min-width: 0;
}

.public-rank-name-row strong {
    min-width: 0;
    color: #fff;
    font-family: 'Russo One', 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: clamp(1.58rem, 4vw, 2rem);
    line-height: 1;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.public-rank-head small,
.compact-rank-name small {
    color: #9fa7ca;
    font-family: 'Chakra Petch', 'Inter', sans-serif;
    font-size: 0.66rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.public-rank-verified {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #9b5cff, #6d28d9);
    color: #fff;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.28);
}

.public-rank-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: center;
}

.public-rank-summary-item {
    display: grid;
    gap: 0.22rem;
    align-content: start;
}

.public-rank-summary-item span,
.compact-rank-stat small,
.public-rank-pill small {
    color: #8f98bc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.64rem;
    font-weight: 700;
}

.public-rank-summary-item strong {
    color: #fff;
    font-family: 'Russo One', 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: clamp(1.62rem, 4.4vw, 2.18rem);
    line-height: 1;
    letter-spacing: -0.02em;
}

.public-rank-summary-item.is-damage strong {
    color: #ffe4ea;
}

.public-rank-summary-item.is-kd {
    justify-items: end;
    text-align: right;
}

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

.public-rank-pill {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.62rem;
    row-gap: 0.1rem;
    min-width: 0;
    padding: 0.72rem 0.86rem;
    border-radius: 14px;
    border: 1px solid rgba(167, 139, 250, 0.14);
    background: linear-gradient(180deg, rgba(67, 38, 125, 0.42), rgba(43, 25, 88, 0.28));
}

.public-rank-pill .button-icon {
    grid-row: 1 / span 2;
    color: #d8ccff;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    -webkit-mask-size: 15px 15px;
    mask-size: 15px 15px;
}

.public-rank-pill b,
.compact-rank-stat b {
    min-width: 0;
    color: #fff;
    font-family: 'Russo One', 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: -0.015em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-rank-card-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
    padding: 0.86rem 0.95rem;
    border-radius: 18px;
}

.public-rank-row-identity {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    flex: 0 0 auto;
    min-width: 0;
}

.public-rank-row-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-rank-row-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: center;
    flex: 1 1 auto;
}

.compact-rank-index {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(167, 139, 250, 0.18);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.26), rgba(27, 14, 64, 0.92));
    color: #eae8ff;
    font-family: 'Russo One', 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
}

.compact-rank-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.14);
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), transparent 2rem),
        radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.24), transparent 4rem),
        linear-gradient(180deg, rgba(19, 21, 48, 0.98), rgba(10, 10, 25, 0.98));
}

.compact-rank-avatar img {
    object-position: center 20%;
    transform: scale(1.28) translateY(2px);
}

.compact-rank-avatar.is-fallback span {
    top: 50%;
    font-size: 0.72rem;
    transform: translate(-50%, -50%);
}

.compact-rank-name {
    min-width: 0;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.compact-rank-name strong {
    color: #fff;
    font-family: 'Russo One', 'Chakra Petch', sans-serif;
    font-weight: 400;
    font-size: 1.04rem;
    letter-spacing: -0.015em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-rank-name small {
    display: none;
}

.compact-rank-metrics {
    display: contents;
}

.compact-rank-stat {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    justify-items: start;
    text-align: left;
    padding: 0;
    border: 0;
    background: transparent;
}

.public-board-signoff {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.16rem 0 0;
    color: #8f92bb;
    font-size: 0.84rem;
}

.public-board-signoff p {
    margin: 0;
}

.public-board-signoff strong {
    color: #ff7cb8;
}

.public-board-signoff-mark {
    width: 18px;
    height: 18px;
    border-radius: 9px;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.3), transparent 38%),
        linear-gradient(180deg, rgba(124, 58, 237, 0.82), rgba(45, 14, 97, 0.92));
    clip-path: polygon(50% 0, 84% 18%, 84% 58%, 50% 100%, 16% 58%, 16% 18%);
    box-shadow: 0 0 14px rgba(124, 58, 237, 0.2);
}

@media (max-width: 860px) {
    .public-body .public-shell {
        width: 100%;
        padding: 0.7rem;
    }

    .public-rank-card-top {
        grid-template-columns: 56px 150px minmax(0, 1fr);
        gap: 0.82rem;
        padding: 0.74rem 0.82rem 0.74rem 0.72rem;
    }

    .public-rank-ribbon {
        width: 56px;
        min-height: 118px;
    }

    .public-rank-figure {
        height: 118px;
    }

    .public-rank-figure img {
        width: 172px;
        height: auto;
        transform: translateY(-2px);
    }

    .public-rank-summary {
        gap: 1rem;
    }

    .public-rank-pill {
        padding: 0.62rem 0.7rem;
    }

    .public-rank-card-row {
        align-items: flex-start;
    }

    .public-rank-row-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .public-rank-row-metrics {
        width: 100%;
        gap: 0.75rem;
    }
}

@media (max-width: 520px) {
    .public-body .public-shell {
        padding: 0.52rem;
        gap: 0.58rem;
    }

    .public-team-summary {
        padding: 0.66rem 0.72rem;
        border-radius: 20px;
    }

    .public-team-summary-logo {
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .public-team-summary-copy strong {
        font-size: 0.94rem;
    }

    .public-team-summary-copy small {
        font-size: 0.8rem;
    }

    .public-team-summary-badge {
        min-width: 70px;
        padding: 0.48rem 0.58rem;
    }

    .public-tab {
        min-height: 52px;
        padding: 0.76rem 0.8rem;
        font-size: 0.88rem;
    }

    .public-hero-card {
        padding: 0.82rem 0.74rem 0.72rem;
        border-radius: 22px;
    }

    .public-hero-copy h1 {
        margin: 0.3rem 0 0.42rem;
        font-size: clamp(1.9rem, 8.6vw, 2.55rem);
    }

    .public-hero-copy .public-subtitle {
        max-width: 11rem;
        font-size: 0.78rem;
        line-height: 1.48;
    }

    .public-hero-filter {
        gap: 0.5rem;
    }

    .public-hero-control {
        min-height: 48px;
        padding: 0.72rem 0.76rem;
        border-radius: 15px;
        font-size: 0.86rem;
    }

    .public-scope-tabs .public-tab {
        min-height: 48px;
        font-size: 0.86rem;
    }

    .public-card-leaderboard {
        padding: 0.58rem;
        border-radius: 20px;
    }

    .public-rank-card-top {
        grid-template-columns: 44px 92px minmax(0, 1fr);
        gap: 0.54rem;
        min-height: 124px;
        padding: 0.56rem 0.58rem 0.56rem 0.52rem;
        border-radius: 18px;
    }

    .public-rank-ribbon {
        width: 44px;
        min-height: 104px;
        padding: 0.76rem 0.2rem 0.56rem;
    }

    .public-rank-ribbon strong {
        font-size: 1.58rem;
    }

    .public-rank-ribbon-label {
        margin-bottom: 0.3rem;
        font-size: 0.46rem;
    }

    .public-rank-figure {
        height: 96px;
    }

    .public-rank-figure img {
        width: 118px;
        height: auto;
        transform: translateY(0);
    }

    .public-rank-body {
        gap: 0.54rem;
    }

    .public-rank-name-row strong {
        font-size: clamp(1.12rem, 5.2vw, 1.42rem);
    }

    .public-rank-summary {
        gap: 0.62rem;
    }

    .public-rank-summary-item.is-kd {
        justify-items: start;
        text-align: left;
    }

    .public-rank-summary-item strong {
        font-size: clamp(1.22rem, 5.4vw, 1.54rem);
    }

    .public-rank-pills {
        gap: 0.36rem;
    }

    .public-rank-pill {
        padding: 0.42rem 0.44rem;
        border-radius: 12px;
        column-gap: 0.32rem;
    }

    .public-rank-pill b,
    .compact-rank-stat b {
        font-size: 0.76rem;
        white-space: nowrap;
    }

    .public-rank-pill:last-child b {
        font-size: 0.64rem;
        letter-spacing: -0.02em;
        white-space: normal;
        line-height: 0.98;
    }

    .public-rank-pill small,
    .compact-rank-stat small,
    .public-rank-summary-item span {
        font-size: 0.56rem;
        letter-spacing: 0.06em;
    }

    .public-rank-card-row {
        gap: 0.58rem;
        padding: 0.58rem;
        border-radius: 16px;
    }

    .public-rank-row-identity {
        gap: 0.42rem;
    }

    .public-rank-row-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.38rem;
    }

    .compact-rank-index {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    .compact-rank-avatar {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .compact-rank-name strong {
        font-size: 0.88rem;
    }

    .public-board-signoff {
        font-size: 0.74rem;
    }
}

/*
  Recent Matches Card Redesign v3
  Horizontal stat cards + grid layout on wide screens.
*/

/* List: multiple cards per row on big screens */
.page-matches .recent-match-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 376px), 1fr));
    gap: 1rem;
    align-items: start;
}

.page-matches .recent-match-row {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(30, 30, 50, 0.98) 0%, rgba(18, 18, 36, 0.98) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.page-matches .recent-match-row:hover {
    border-color: rgba(167, 139, 250, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(167, 139, 250, 0.08);
    transform: translateY(-2px);
}

/* Shell / core / main — vertical */
.page-matches .recent-match-shell,
.page-matches .recent-match-core,
.page-matches .recent-match-main {
    display: flex;
    flex-direction: column;
}

.page-matches .recent-match-shell {
    gap: 0;
}

.page-matches .recent-match-core {
    padding: 1.05rem 1.1rem 0.5rem;
    gap: 0;
    align-items: stretch;
}

/* Badge hidden */
.page-matches .recent-match-badge {
    display: none;
}

/* Header: title + chevron row, then date */
.page-matches .recent-match-headline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
}

.page-matches .recent-match-headline strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.page-matches .recent-match-headline strong::after {
    content: '›';
    flex-shrink: 0;
    color: #a78bfa;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}

.page-matches .recent-match-headline p {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: #8b8da3;
    font-size: 0.8rem;
}

/* Stat grid */
.page-matches .recent-match-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin-top: 0.55rem;
}

/* Stat card — icon on left, number+label on right */
.page-matches .recent-match-stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(45, 38, 87, 0.35) 0%, rgba(28, 24, 60, 0.25) 100%);
    min-height: 72px;
    text-align: left;
}

.page-matches .recent-match-stat-card .button-icon {
    grid-row: span 2;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-right: 0.4rem;
    place-self: center;
}

/* Colored icons */
.page-matches .recent-match-stat-card.is-players .button-icon {
    color: #c084fc;
}

.page-matches .recent-match-stat-card.is-damage .button-icon {
    color: #f472b6;
}

.page-matches .recent-match-stat-card.is-kills .button-icon {
    color: #fb7185;
}

/* Number on top row of the right side */
.page-matches .recent-match-stat-card b {
    color: #ffffff;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    line-height: 1;
    letter-spacing: 0.005em;
}

/* Label on bottom row of the right side */
.page-matches .recent-match-stat-card small {
    color: rgba(139, 141, 163, 0.9);
    font-size: clamp(0.58rem, 1.6vw, 0.68rem);
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 0.05rem;
}

/* Bottom action bar */
.page-matches .recent-match-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.1rem 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none;
}

/* Compact pill buttons */
.page-matches .recent-match-action,
.page-matches .recent-match-action-form .recent-match-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 0;
    width: auto;
    min-width: fit-content;
    min-height: 30px;
    padding: 0.32rem 0.5rem;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 999px;
    background: transparent;
    color: #c4b5fd;
    font-size: clamp(0.65rem, 1.8vw, 0.75rem);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.18s ease;
    cursor: pointer;
}

.page-matches .recent-match-action:hover,
.page-matches .recent-match-action:focus-visible,
.page-matches .recent-match-action-form .recent-match-action:hover,
.page-matches .recent-match-action-form .recent-match-action:focus-visible {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.07);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Icon in buttons */
.page-matches .recent-match-action .button-icon,
.page-matches .recent-match-action-form .recent-match-action .button-icon {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    -webkit-mask-size: 13px 13px;
    mask-size: 13px 13px;
}

/* Non-danger icon tint */
.page-matches .recent-match-action.is-status .button-icon,
.page-matches .recent-match-action:not(.is-danger) .button-icon {
    color: #c084fc;
}

/* Danger / Delete — outline only */
.page-matches .recent-match-action.is-danger,
.page-matches .recent-match-action-form .recent-match-action.is-danger {
    border-color: rgba(251, 113, 133, 0.35);
    color: #fb7185;
    background: transparent;
}

.page-matches .recent-match-action.is-danger:hover,
.page-matches .recent-match-action-form .recent-match-action.is-danger:hover {
    border-color: rgba(251, 113, 133, 0.6);
    background: rgba(251, 113, 133, 0.07);
    box-shadow: 0 0 16px rgba(251, 113, 133, 0.1);
}

.page-matches .recent-match-action.is-danger .button-icon,
.page-matches .recent-match-action-form .recent-match-action.is-danger .button-icon {
    color: #fb7185;
}

/* Responsive */
@media (max-width: 480px) {
    .page-matches .recent-match-headline strong {
        font-size: 1.05rem;
    }

    .page-matches .recent-match-headline p {
        font-size: 0.72rem;
    }

    .page-matches .recent-match-stat-card b {
        font-size: 1.05rem;
    }

    .page-matches .recent-match-stat-card small {
        font-size: 0.55rem;
    }

    .page-matches .recent-match-action,
    .page-matches .recent-match-action-form .recent-match-action {
        padding: 0.3rem 0.45rem;
        gap: 0.25rem;
    }

    .page-matches .recent-match-action .button-icon,
    .page-matches .recent-match-action-form .recent-match-action .button-icon {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
        -webkit-mask-size: 12px 12px;
        mask-size: 12px 12px;
    }
}

.page-matches .recent-match-row:hover {
    border-color: rgba(167, 139, 250, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(167, 139, 250, 0.08);
    transform: translateY(-2px);
}

/* Shell, core, main — vertical */
.page-matches .recent-match-shell,
.page-matches .recent-match-core,
.page-matches .recent-match-main {
    display: flex;
    flex-direction: column;
}

.page-matches .recent-match-shell {
    gap: 0;
}

.page-matches .recent-match-core {
    padding: 1.05rem 1.1rem 0.5rem;
    gap: 0;
    align-items: stretch;
}

/* Badge removed */
.page-matches .recent-match-badge {
    display: none;
}

/* Headline: name + chevron, then date */
.page-matches .recent-match-headline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.65rem;
}

.page-matches .recent-match-headline strong {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.page-matches .recent-match-headline strong::after {
    content: '›';
    flex-shrink: 0;
    color: #a78bfa;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
}

.page-matches .recent-match-headline p {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: #8b8da3;
    font-size: 0.82rem;
}

/* Stat grid */
.page-matches .recent-match-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.55rem;
}

/* Stat card — icon on top, number middle, label bottom, all centered */
.page-matches .recent-match-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.6rem 0.3rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(45, 38, 87, 0.35) 0%, rgba(28, 24, 60, 0.25) 100%);
    min-height: 88px;
    text-align: center;
}

.page-matches .recent-match-stat-card .button-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin-bottom: 0.2rem;
}

/* Stat icon tints */
.page-matches .recent-match-stat-card.is-players .button-icon {
    color: #c084fc;
}

.page-matches .recent-match-stat-card.is-damage .button-icon {
    color: #f472b6;
}

.page-matches .recent-match-stat-card.is-kills .button-icon {
    color: #fb7185;
}

/* Stat number — prominent, bold */
.page-matches .recent-match-stat-card b {
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.3rem, 4vw, 1.55rem);
    line-height: 1;
    letter-spacing: 0.01em;
}

/* Stat label */
.page-matches .recent-match-stat-card small {
    color: rgba(139, 141, 163, 0.9);
    font-size: clamp(0.6rem, 1.8vw, 0.7rem);
    font-weight: 500;
    text-transform: capitalize;
    margin-top: 0.05rem;
}

/* Bottom action row */
.page-matches .recent-match-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.1rem 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-left: none;
}

/* Compact pill buttons */
.page-matches .recent-match-action,
.page-matches .recent-match-action-form .recent-match-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 0;
    width: auto;
    min-width: fit-content;
    min-height: 32px;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 999px;
    background: transparent;
    color: #c4b5fd;
    font-size: clamp(0.68rem, 2vw, 0.78rem);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.18s ease;
    cursor: pointer;
}

.page-matches .recent-match-action:hover,
.page-matches .recent-match-action:focus-visible,
.page-matches .recent-match-action-form .recent-match-action:hover,
.page-matches .recent-match-action-form .recent-match-action:focus-visible {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.07);
    box-shadow: 0 0 16px rgba(167, 139, 250, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Icon size inside buttons */
.page-matches .recent-match-action .button-icon,
.page-matches .recent-match-action-form .recent-match-action .button-icon {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    -webkit-mask-size: 13px 13px;
    mask-size: 13px 13px;
}

/* Non-danger icon color */
.page-matches .recent-match-action.is-status .button-icon,
.page-matches .recent-match-action:not(.is-danger) .button-icon {
    color: #c084fc;
}

/* Danger / Delete — outlined style */
.page-matches .recent-match-action.is-danger,
.page-matches .recent-match-action-form .recent-match-action.is-danger {
    border-color: rgba(251, 113, 133, 0.35);
    color: #fb7185;
    background: transparent;
}

.page-matches .recent-match-action.is-danger:hover,
.page-matches .recent-match-action-form .recent-match-action.is-danger:hover {
    border-color: rgba(251, 113, 133, 0.6);
    background: rgba(251, 113, 133, 0.07);
    box-shadow: 0 0 16px rgba(251, 113, 133, 0.1);
}

.page-matches .recent-match-action.is-danger .button-icon,
.page-matches .recent-match-action-form .recent-match-action.is-danger .button-icon {
    color: #fb7185;
}

/* Small-screen fine tuning */
@media (max-width: 480px) {
    .page-matches .recent-match-headline strong {
        font-size: 1.12rem;
    }

    .page-matches .recent-match-headline p {
        font-size: 0.76rem;
    }

    .page-matches .recent-match-stat-card b {
        font-size: 1.15rem;
    }

    .page-matches .recent-match-stat-card small {
        font-size: 0.58rem;
    }

    .page-matches .recent-match-action,
    .page-matches .recent-match-action-form .recent-match-action {
        padding: 0.32rem 0.5rem;
        gap: 0.3rem;
    }

    .page-matches .recent-match-action .button-icon,
    .page-matches .recent-match-action-form .recent-match-action .button-icon {
        width: 12px;
        height: 12px;
        flex: 0 0 12px;
        -webkit-mask-size: 12px 12px;
        mask-size: 12px 12px;
    }
}

body.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 16%, rgba(244, 63, 94, 0.18), transparent 20rem),
        radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.24), transparent 24rem),
        radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.08), transparent 24rem),
        linear-gradient(180deg, #070812 0%, #0a0c1f 48%, #070812 100%);
}

body.auth-body-register {
    overflow: hidden;
}

body.auth-body::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(180deg, rgba(124, 58, 237, 0.03), transparent 22%, transparent 78%, rgba(244, 63, 94, 0.035));
    background-size: 54px 54px, 54px 54px, 100% 100%;
    mask-image: none;
    opacity: 0.92;
}

.auth-stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(0.9rem, 2vw, 1.35rem);
}

.auth-frame {
    width: min(100%, 980px);
    display: grid;
    gap: 0;
    border-radius: 32px;
    border: 1px solid rgba(167, 139, 250, 0.26);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 24%),
        linear-gradient(180deg, rgba(10, 11, 29, 0.98), rgba(5, 6, 18, 0.98));
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46), 0 0 60px rgba(124, 58, 237, 0.12);
    overflow: hidden;
}

.auth-frame::before {
    opacity: 0.22;
}

.auth-frame-register {
    max-width: 1080px;
    grid-template-columns: 1fr;
}

.auth-frame-login {
    max-width: 560px;
    grid-template-columns: 1fr;
}

.auth-aside,
.auth-panel {
    position: relative;
    min-width: 0;
}

.auth-aside {
    display: grid;
    align-content: start;
    gap: 1.5rem;
    padding: clamp(1.15rem, 2.6vw, 2.5rem);
    border-right: 1px solid rgba(167, 139, 250, 0.18);
    background:
        linear-gradient(180deg, rgba(7, 8, 24, 0.74), rgba(8, 8, 24, 0.94)),
        radial-gradient(circle at 18% 20%, rgba(168, 85, 247, 0.22), transparent 22rem),
        url('/assets/images/match-entry.jpg') center center / cover no-repeat;
}

.auth-aside::before,
.auth-aside::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.auth-aside::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(95, 40, 255, 0.24), transparent 18rem);
}

.auth-aside::after {
    background:
        linear-gradient(0deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.34;
}

.auth-brand,
.auth-aside-copy,
.auth-feature-list,
.auth-trust-card,
.auth-badge-grid,
.auth-aside-emblem {
    position: relative;
    z-index: 1;
}

.auth-brand {
    align-items: center;
}

.auth-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.auth-body .brand-logo img {
    object-fit: contain;
    padding: 0.4rem;
}

.auth-aside-emblem {
    display: flex;
    justify-content: center;
    padding-block: 0.25rem 0.4rem;
}

.auth-emblem-mark {
    width: clamp(108px, 13vw, 136px);
    height: clamp(108px, 13vw, 136px);
    border-radius: 34px;
    box-shadow: 0 0 44px rgba(124, 58, 237, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.auth-aside-copy {
    display: grid;
    gap: 0.75rem;
    max-width: 28rem;
}

.auth-aside-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.auth-aside-copy h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #a855f7 0%, #f472b6 58%, #fb7185 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-aside-copy p {
    margin: 0;
    max-width: 26rem;
    color: #b3bddc;
    font-size: 1.03rem;
    line-height: 1.6;
}

.auth-feature-list,
.auth-badge-grid {
    display: grid;
    gap: 0.9rem;
}

.auth-feature-card,
.auth-badge-card,
.auth-trust-card,
.auth-preview-card,
.auth-info-card,
.auth-note-card {
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(19, 20, 51, 0.84), rgba(9, 10, 28, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-feature-card,
.auth-trust-card,
.auth-note-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.05rem;
}

.auth-feature-icon,
.auth-trust-icon,
.auth-note-icon,
.auth-section-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    background: rgba(124, 58, 237, 0.14);
    box-shadow: 0 0 18px rgba(124, 58, 237, 0.16);
}

.auth-feature-icon .button-icon,
.auth-trust-icon .button-icon,
.auth-note-icon .button-icon,
.auth-section-icon .button-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #c084fc;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
}

.auth-feature-card strong,
.auth-badge-card strong,
.auth-trust-card strong,
.auth-preview-card strong,
.auth-info-card strong,
.auth-note-card strong {
    display: block;
    color: #f8fbff;
    font-size: 1.08rem;
}

.auth-feature-card p,
.auth-trust-card p,
.auth-preview-card p,
.auth-info-card p,
.auth-note-card p,
.auth-badge-card small {
    margin: 0.35rem 0 0;
    color: #9ca8cc;
    line-height: 1.55;
}

.auth-trust-card {
    margin-top: auto;
    align-items: center;
    background:
        linear-gradient(180deg, rgba(28, 16, 63, 0.88), rgba(11, 10, 32, 0.92)),
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.22), transparent 10rem);
}

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

.auth-badge-card {
    padding: 1rem;
    min-height: 126px;
}

.auth-panel {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: clamp(1rem, 2.3vw, 1.8rem);
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 22rem),
        linear-gradient(180deg, rgba(8, 9, 24, 0.96), rgba(5, 6, 18, 0.98));
}

.auth-panel-compact {
    padding: clamp(1rem, 2.1vw, 1.6rem);
}

.auth-panel-register {
    align-self: center;
}

.auth-panel-brand {
    margin-bottom: 0.1rem;
}

.auth-title-block {
    display: grid;
    gap: 0.45rem;
}

.auth-title-block h1 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    line-height: 1;
}

.auth-title-block p {
    max-width: 38rem;
    color: #9ea9cc;
    font-size: 0.96rem;
    line-height: 1.5;
}

.auth-form {
    gap: 0.9rem;
}

.auth-register-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 1rem;
    align-items: start;
}

.auth-register-column {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.auth-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.auth-section-head strong {
    color: #b66eff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1rem;
}

.auth-section-line {
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.24), rgba(167, 139, 250, 0.08));
}

.auth-grid,
.auth-upload-grid {
    display: grid;
    gap: 1rem;
}

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

.auth-upload-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(180px, 0.82fr);
    align-items: stretch;
}

.auth-upload-stack {
    display: grid;
    gap: 0.55rem;
}

.auth-field {
    gap: 0.42rem;
}

.auth-field > span {
    color: #eef1ff;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

.auth-helper {
    color: #8d97bb;
    font-size: 0.84rem;
    line-height: 1.45;
}

.auth-form input {
    min-height: 48px;
    border-radius: 15px;
    border-color: rgba(122, 98, 255, 0.24);
    background: rgba(8, 11, 28, 0.82);
    padding: 0.72rem 0.88rem;
    font-size: 0.94rem;
}

.auth-form input::placeholder {
    color: #66739d;
}

.auth-form input:hover,
.auth-form input:focus {
    border-color: rgba(244, 63, 94, 0.38);
    background: rgba(8, 11, 28, 0.96);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12), 0 0 24px rgba(124, 58, 237, 0.08);
}

.auth-upload-zone {
    min-height: 138px;
    display: grid;
    place-items: center;
    justify-items: center;
    gap: 0.32rem;
    padding: 0.9rem;
    border: 1px dashed rgba(168, 85, 247, 0.52);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(17, 18, 45, 0.9), rgba(8, 9, 25, 0.92)),
        radial-gradient(circle at top, rgba(124, 58, 237, 0.14), transparent 12rem);
    text-align: center;
    cursor: pointer;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.auth-upload-zone.is-dragover,
.auth-upload-zone:hover {
    border-color: rgba(244, 63, 94, 0.58);
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.14), 0 22px 40px rgba(10, 11, 29, 0.28);
}

.auth-upload-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: rgba(124, 58, 237, 0.14);
}

.auth-upload-icon .button-icon {
    width: 20px;
    height: 20px;
    color: #c084fc;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
}

.auth-upload-zone strong {
    color: #f8fbff;
    font-size: 0.92rem;
}

.auth-upload-zone small,
.auth-upload-file-name {
    color: #92a0c7;
    font-size: 0.8rem;
}

.auth-upload-button {
    min-height: 38px;
    padding-inline: 0.9rem;
}

.auth-upload-file-name {
    font-size: 0.78rem;
}

.auth-preview-card,
.auth-info-card {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 1.05rem;
}

.auth-preview-logo-shell {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px solid rgba(167, 139, 250, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.auth-preview-logo-shell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.1rem;
}

.auth-preview-fallback {
    width: 72px;
    height: 72px;
    border-radius: 22px;
}

.auth-preview-title {
    margin: 0;
}

.auth-preview-path {
    color: #c084fc;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.auth-password-meta {
    display: grid;
    gap: 0.35rem;
    margin-top: -0.1rem;
}

.auth-strength {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
}

.auth-strength-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition: background var(--ease), box-shadow var(--ease);
}

.auth-strength-bar.is-active {
    background: linear-gradient(90deg, #f43f5e, #a855f7);
    box-shadow: 0 0 14px rgba(244, 63, 94, 0.18);
}

.auth-password-status {
    margin: 0;
    color: #8d97bb;
    font-size: 0.8rem;
}

.auth-password-match {
    color: #b7c1df;
}

.auth-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 0.1rem;
    border-radius: 16px;
    font-size: 0.94rem;
}

.auth-note-card-compact {
    padding: 0.85rem 0.95rem;
}

.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: #9ea9cc;
    text-align: center;
}

.auth-link-row a {
    color: #d8b4fe;
    font-weight: 700;
}

.auth-note-card-login {
    margin-top: 0.2rem;
}

.auth-title-block-login {
    max-width: 28rem;
}

@media (max-width: 1120px) {
    .auth-frame-register,
    .auth-frame-login {
        grid-template-columns: 1fr;
    }

    .auth-frame-register {
        max-width: 940px;
    }

    .auth-aside {
        border-right: 0;
        border-bottom: 1px solid rgba(167, 139, 250, 0.18);
        min-height: 0;
    }

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

@media (max-width: 820px) {
    body.auth-body-register {
        overflow: auto;
    }

    .auth-stage {
        padding: 0.9rem;
    }

    .auth-frame {
        border-radius: 26px;
    }

    .auth-grid-2,
    .auth-upload-grid,
    .auth-register-layout,
    .auth-badge-grid,
    .auth-feature-list {
        grid-template-columns: 1fr;
    }

    .auth-panel,
    .auth-aside {
        padding: 1.1rem;
    }

    .auth-aside-copy h1,
    .auth-title-block h1 {
        font-size: clamp(1.9rem, 7vw, 2.7rem);
    }

    .auth-upload-zone {
        min-height: 198px;
    }
}

@media (max-width: 560px) {
    .auth-stage {
        padding: 0.7rem;
    }

    .auth-frame {
        border-radius: 22px;
    }

    .auth-brand {
        gap: 0.7rem;
    }

    .auth-brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .auth-emblem-mark {
        width: 96px;
        height: 96px;
        border-radius: 28px;
    }

    .auth-feature-card,
    .auth-trust-card,
    .auth-note-card {
        grid-template-columns: 1fr;
    }

    .auth-feature-icon,
    .auth-trust-icon,
    .auth-note-icon,
    .auth-section-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .auth-title-block p,
    .auth-aside-copy p {
        font-size: 0.94rem;
    }

    .auth-form input {
        min-height: 52px;
        font-size: 0.96rem;
    }

    .auth-upload-zone {
        min-height: 184px;
        padding: 1rem;
    }

    .auth-preview-logo-shell {
        min-height: 146px;
    }

    .auth-link-row {
        flex-direction: column;
    }
}

body.auth-body-register,
body.auth-body-login {
overflow: auto;
}

.auth-frame-simple {
width: min(100%, 460px);
display: grid;
align-content: start;
gap: 1.4rem;
padding: 2.5rem 2rem;
border-radius: 20px;
border: 1px solid var(--line);
background: var(--color-background);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

.auth-simple-logo {
display: flex;
justify-content: center;
}

.auth-simple-logo img {
width: 56px;
height: 56px;
object-fit: contain;
border-radius: 16px;
padding: 0.3rem;
}

.auth-simple-logo-fallback {
width: 56px;
height: 56px;
margin-inline: auto;
border-radius: 16px;
background: rgba(124, 58, 237, 0.18);
border: 1px solid var(--line);
}

.sa-login-logo {
display: flex;
justify-content: center;
}

.sa-login-logo img {
width: 56px;
height: 56px;
object-fit: contain;
border-radius: 16px;
padding: 0.3rem;
}

.sa-login-logo-mark {
width: 56px;
height: 56px;
margin-inline: auto;
border-radius: 16px;
background: rgba(124, 58, 237, 0.2);
border: 1px solid rgba(167, 139, 250, 0.3);
}

.auth-simple-heading {
margin: 0;
color: var(--ink);
font-size: 1.6rem;
font-weight: 700;
letter-spacing: -0.03em;
text-align: center;
line-height: 1.15;
}

.auth-simple-subtitle {
margin: 0;
color: var(--muted);
font-size: 0.9rem;
text-align: center;
line-height: 1.5;
}

.auth-simple-form {
display: grid;
gap: 1rem;
align-content: start;
}

.auth-simple-field {
display: grid;
gap: 0.4rem;
}

.auth-simple-field > span {
color: var(--color-text);
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0;
text-transform: none;
}

.auth-simple-field input {
min-height: 46px;
padding: 0.65rem 0.9rem;
border-radius: 10px;
border: 1px solid var(--line);
background: #0a0c1f;
color: var(--color-text);
font-size: 0.92rem;
transition: border-color var(--ease), box-shadow var(--ease);
}

.auth-simple-field input::placeholder {
color: var(--muted-2);
}

.auth-simple-field input:hover {
border-color: rgba(167, 139, 250, 0.36);
}

.auth-simple-field input:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.auth-remember-row {
display: inline-flex;
align-items: center;
gap: 0.55rem;
color: var(--muted);
font-size: 0.88rem;
}

.auth-remember-row input {
width: 16px;
height: 16px;
margin: 0;
accent-color: var(--color-primary);
}

.auth-simple-section-label {
color: var(--color-secondary);
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
padding-bottom: 0.3rem;
border-bottom: 1px solid var(--line);
}

.auth-simple-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.85rem;
align-items: start;
}

.auth-simple-helper {
color: var(--muted-2);
font-size: 0.76rem;
line-height: 1.4;
}

.auth-simple-upload-area {
display: grid;
gap: 0.75rem;
}

.auth-simple-field-label {
color: var(--muted);
font-size: 0.8rem;
font-weight: 600;
}

.auth-simple-dropzone {
min-height: 110px;
display: grid;
place-items: center;
justify-items: center;
gap: 0.3rem;
padding: 0.85rem;
border: 1px dashed rgba(167, 139, 250, 0.36);
border-radius: 12px;
background: #0a0c1f;
text-align: center;
cursor: pointer;
transition: border-color var(--ease);
}

.auth-simple-dropzone:hover,
.auth-simple-dropzone.is-dragover {
border-color: var(--color-primary);
}

.auth-simple-dropzone-icon {
display: inline-grid;
place-items: center;
width: 38px;
height: 38px;
border-radius: 10px;
border: 1px solid rgba(168, 85, 247, 0.24);
background: rgba(124, 58, 237, 0.12);
}

.auth-simple-dropzone-icon .button-icon {
width: 16px;
height: 16px;
color: #c084fc;
-webkit-mask-size: 16px 16px;
mask-size: 16px 16px;
}

.auth-simple-dropzone strong {
color: var(--ink);
font-size: 0.85rem;
}

.auth-simple-dropzone small {
color: var(--muted-2);
font-size: 0.76rem;
}

.auth-simple-choose-btn {
min-height: 34px;
padding-inline: 0.8rem;
font-size: 0.82rem;
}

.auth-simple-file-name {
color: var(--muted-2);
font-size: 0.74rem;
}

.auth-simple-preview {
display: grid;
gap: 0.4rem;
align-content: start;
padding: 0.8rem;
border: 1px solid rgba(167, 139, 250, 0.14);
border-radius: 12px;
background: #0a0c1f;
}

.auth-simple-preview-shell {
display: grid;
place-items: center;
min-height: 72px;
border: 1px solid rgba(167, 139, 250, 0.1);
border-radius: 10px;
background: rgba(255, 255, 255, 0.02);
overflow: hidden;
}

.auth-simple-preview-shell img {
width: 100%;
height: 100%;
object-fit: contain;
padding: 0.7rem;
}

.auth-simple-preview-fallback {
width: 48px;
height: 48px;
border-radius: 14px;
}

.auth-simple-preview-name {
margin: 0;
color: var(--ink);
font-size: 0.88rem;
}

.auth-simple-preview-slug {
margin: 0;
color: var(--color-secondary);
font-size: 0.76rem;
letter-spacing: 0.03em;
}

.auth-simple-password-meta {
display: grid;
gap: 0.28rem;
margin-top: -0.15rem;
}

.auth-simple-strength {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 0.35rem;
}

.auth-simple-strength-bar {
height: 4px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08);
transition: background var(--ease);
}

.auth-simple-strength-bar.is-active {
background: var(--color-primary);
}

.auth-simple-password-status {
margin: 0;
color: var(--muted-2);
font-size: 0.76rem;
}

.auth-simple-password-match {
color: var(--muted);
}

.auth-simple-submit {
width: 100%;
min-height: 46px;
border-radius: 12px;
font-size: 0.94rem;
font-weight: 600;
margin-top: 0.2rem;
}

.auth-simple-link-row {
display: flex;
align-items: center;
justify-content: center;
gap: 0.4rem;
color: var(--muted);
font-size: 0.86rem;
}

.auth-simple-link-row a {
color: var(--color-secondary);
font-weight: 700;
}

@media (max-width: 480px) {
.auth-frame-simple {
padding: 1.6rem 1.1rem;
border-radius: 16px;
}

.auth-simple-row {
grid-template-columns: 1fr;
}

.auth-simple-heading {
font-size: 1.35rem;
}

.auth-simple-link-row {
flex-direction: column;
gap: 0.2rem;
}
}

/* ── Super Admin Panel ─────────────────────────────────────── */

.sa-body {
min-height: 100vh;
display: grid;
grid-template-columns: 240px 1fr;
background: var(--color-background);
}

.sa-sidebar {
position: sticky;
top: 0;
height: 100vh;
display: flex;
flex-direction: column;
border-right: 1px solid var(--line);
background: #0a0c1f;
overflow-y: auto;
}

.sa-sidebar-top {
padding: 1.25rem 1rem;
border-bottom: 1px solid var(--line);
}

.sa-sidebar-brand {
display: flex;
align-items: center;
gap: 0.65rem;
text-decoration: none;
}

.sa-sidebar-logo img {
width: 40px;
height: 40px;
object-fit: contain;
border-radius: 12px;
padding: 0.2rem;
}

.sa-sidebar-logo-mark {
width: 40px;
height: 40px;
border-radius: 12px;
background: rgba(124, 58, 237, 0.18);
border: 1px solid rgba(167, 139, 250, 0.2);
}

.sa-sidebar-brand-text {
display: grid;
gap: 0.05rem;
}

.sa-sidebar-brand-text strong {
color: var(--ink);
font-size: 0.92rem;
font-weight: 700;
}

.sa-sidebar-brand-text small {
color: var(--muted-2);
font-size: 0.74rem;
}

.sa-sidebar-nav {
flex: 1;
padding: 0.75rem 0.75rem;
display: flex;
flex-direction: column;
gap: 0.15rem;
}

.sa-nav-item {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.6rem 0.75rem;
border-radius: 10px;
color: var(--muted);
font-size: 0.88rem;
font-weight: 500;
text-decoration: none;
transition: background var(--ease), color var(--ease);
}

.sa-nav-item:hover {
background: rgba(255, 255, 255, 0.04);
color: var(--ink);
}

.sa-nav-item.is-active {
background: rgba(124, 58, 237, 0.14);
color: var(--color-secondary);
}

.sa-nav-icon {
display: flex;
align-items: center;
flex-shrink: 0;
opacity: 0.7;
}

.sa-nav-item.is-active .sa-nav-icon,
.sa-nav-item:hover .sa-nav-icon {
opacity: 1;
}

.sa-sidebar-bottom {
padding: 0.85rem 0.75rem;
border-top: 1px solid var(--line);
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.sa-sidebar-admin {
display: flex;
align-items: center;
gap: 0.6rem;
}

.sa-admin-avatar {
width: 32px;
height: 32px;
border-radius: 10px;
background: rgba(124, 58, 237, 0.15);
border: 1px solid rgba(167, 139, 250, 0.2);
display: flex;
align-items: center;
justify-content: center;
color: var(--color-secondary);
flex-shrink: 0;
}

.sa-admin-info {
display: grid;
gap: 0.05rem;
min-width: 0;
}

.sa-admin-info strong {
color: var(--ink);
font-size: 0.84rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.sa-admin-info small {
color: var(--muted-2);
font-size: 0.72rem;
}

.sa-logout-form {
width: 100%;
}

.sa-logout-btn {
width: 100%;
padding: 0.5rem;
border-radius: 9px;
background: transparent;
border: 1px solid var(--line);
color: var(--muted);
font-size: 0.84rem;
font-weight: 500;
cursor: pointer;
transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.sa-logout-btn:hover {
background: rgba(244, 63, 94, 0.08);
border-color: rgba(244, 63, 94, 0.3);
color: #fb7185;
}

.sa-main {
min-width: 0;
display: flex;
flex-direction: column;
}

.sa-content {
flex: 1;
padding: 2rem 2.5rem;
max-width: 1200px;
}

.sa-page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 1.5rem;
gap: 1rem;
}

.sa-page-title {
margin: 0;
color: var(--ink);
font-size: 1.6rem;
font-weight: 700;
letter-spacing: -0.03em;
}

.sa-stats-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 0.85rem;
margin-bottom: 1.5rem;
}

.sa-stat-card {
display: grid;
gap: 0.3rem;
padding: 1rem 0.9rem;
border-radius: 14px;
border: 1px solid var(--line);
background: #0a0c1f;
}

.sa-stat-value {
margin: 0;
color: var(--ink);
font-size: 1.8rem;
font-weight: 800;
letter-spacing: -0.04em;
line-height: 1;
}

.sa-stat-label {
margin: 0;
color: var(--muted);
font-size: 0.78rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}

.sa-card {
border-radius: 16px;
border: 1px solid var(--line);
background: #0a0c1f;
overflow: hidden;
}

.sa-card-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.9rem 1.1rem;
border-bottom: 1px solid var(--line);
gap: 0.75rem;
flex-wrap: wrap;
}

.sa-card-head h2 {
margin: 0;
color: var(--ink);
font-size: 1rem;
font-weight: 700;
}

.sa-filter-row {
display: flex;
align-items: center;
gap: 0.6rem;
flex: 1;
flex-wrap: wrap;
}

.sa-input {
min-height: 38px;
padding: 0.5rem 0.75rem;
border-radius: 9px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.04);
color: var(--color-text);
font-size: 0.86rem;
font-family: inherit;
transition: border-color var(--ease), box-shadow var(--ease);
}

.sa-input::placeholder {
color: var(--muted-2);
}

.sa-input:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}

.sa-input-search {
min-width: 200px;
flex: 1;
max-width: 320px;
}

.sa-input-select {
min-width: 130px;
}

.sa-table-wrap {
overflow-x: auto;
}

.sa-table {
width: 100%;
border-collapse: collapse;
font-size: 0.88rem;
}

.sa-table th {
padding: 0.65rem 1rem;
text-align: left;
color: var(--muted);
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
border-bottom: 1px solid var(--line);
white-space: nowrap;
}

.sa-table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.03);
color: var(--color-text);
vertical-align: middle;
}

.sa-table tr:last-child td {
border-bottom: none;
}

.sa-table tr:hover td {
background: rgba(255, 255, 255, 0.02);
}

.sa-table strong {
color: var(--ink);
font-weight: 600;
}

.sa-table code {
font-size: 0.82rem;
color: var(--color-secondary);
background: rgba(124, 58, 237, 0.1);
padding: 0.1rem 0.35rem;
border-radius: 5px;
}

.sa-table-empty {
text-align: center;
color: var(--muted-2);
font-size: 0.86rem;
padding: 2rem !important;
}

.sa-badge {
display: inline-block;
padding: 0.2rem 0.6rem;
border-radius: 999px;
font-size: 0.74rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.sa-badge-good {
background: rgba(34, 197, 94, 0.14);
color: #4ade80;
}

.sa-badge-warn {
background: rgba(251, 191, 36, 0.14);
color: #fbbf24;
}

.sa-badge-bad {
background: rgba(251, 113, 133, 0.14);
color: #fb7185;
}

.sa-badge-muted {
background: rgba(255, 255, 255, 0.06);
color: var(--muted-2);
}

.sa-btn {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.55rem 1rem;
border-radius: 10px;
font-size: 0.86rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
text-decoration: none;
border: 1px solid transparent;
transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.sa-btn-sm {
padding: 0.4rem 0.75rem;
font-size: 0.8rem;
border-radius: 8px;
}

.sa-btn-primary {
background: var(--color-primary);
color: #fff;
}

.sa-btn-primary:hover {
background: #6d28d9;
}

.sa-btn-ghost {
background: transparent;
border-color: var(--line);
color: var(--muted);
}

.sa-btn-ghost:hover {
background: rgba(255, 255, 255, 0.04);
color: var(--ink);
border-color: rgba(167, 139, 250, 0.3);
}

.sa-pagination {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
padding: 0.85rem 1rem;
border-top: 1px solid var(--line);
font-size: 0.84rem;
color: var(--muted);
}

.sa-pagination .sa-btn {
min-width: 80px;
justify-content: center;
}

.sa-pagination .sa-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
}

@media (max-width: 1100px) {
.sa-content {
padding: 1.5rem;
max-width: none;
}

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

@media (max-width: 900px) {
.sa-body {
grid-template-columns: 1fr;
}

.sa-sidebar {
position: relative;
top: auto;
height: auto;
flex-direction: column;
border-right: none;
border-bottom: 1px solid var(--line);
overflow: hidden;
}

.sa-sidebar-top {
padding: 1rem 1.25rem;
}

.sa-sidebar-nav {
flex-direction: row;
padding: 0.75rem 1.25rem;
gap: 0.5rem;
overflow-x: auto;
scrollbar-width: thin;
}

.sa-nav-item {
padding: 0.55rem 0.8rem;
white-space: nowrap;
flex-shrink: 0;
}

.sa-sidebar-bottom {
padding: 0.75rem 1.25rem;
}

.sa-content {
padding: 1.25rem;
max-width: none;
}

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

@media (max-width: 640px) {
.sa-sidebar-top,
.sa-sidebar-nav,
.sa-sidebar-bottom {
padding-inline: 1rem;
}

.sa-sidebar-brand {
min-width: 0;
}

.sa-sidebar-brand-text strong {
font-size: 0.88rem;
}

.sa-sidebar-admin {
width: 100%;
}

.sa-logout-form {
width: 100%;
}

.sa-page-header {
align-items: stretch;
flex-direction: column;
margin-bottom: 1rem;
}

.sa-page-actions {
width: 100%;
}

.sa-feedback-list {
display: grid;
gap: 1rem;
}

.sa-feedback-card .sa-card-body {
display: grid;
gap: 1rem;
}

.sa-feedback-meta {
display: grid;
gap: 0.2rem;
min-width: 0;
}

.sa-feedback-meta strong {
color: var(--ink);
font-size: 1rem;
}

.sa-feedback-meta span,
.sa-feedback-meta small {
color: var(--muted);
overflow-wrap: anywhere;
}

.sa-feedback-message {
margin: 0;
color: var(--color-text);
line-height: 1.6;
white-space: pre-wrap;
}

.sa-feedback-image-link {
    display: inline-flex;
    width: 220px;
    height: 148px;
    max-width: 220px;
    flex: 0 0 220px;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sa-feedback-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.03);
}

.sa-feedback-reply-box {
display: grid;
gap: 0.35rem;
padding: 0.95rem 1rem;
border-radius: 18px;
border: 1px solid rgba(124, 58, 237, 0.18);
background: rgba(124, 58, 237, 0.08);
}

.sa-feedback-reply-box strong {
color: #e7ceff;
}

.sa-feedback-reply-box p,
.sa-feedback-reply-box small {
margin: 0;
}

.sa-tutorial-layout {
display: grid;
grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
gap: 1rem;
align-items: start;
}

.sa-tutorial-list {
display: grid;
gap: 1rem;
}

.sa-tutorial-card .sa-card-body {
display: grid;
gap: 1rem;
}

.sa-tutorial-preview {
position: relative;
overflow: hidden;
border-radius: 16px;
border: 1px solid var(--line);
background: rgba(255, 255, 255, 0.03);
aspect-ratio: 16 / 9;
}

.sa-tutorial-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
display: block;
}

.sa-tutorial-copy {
display: grid;
gap: 0.3rem;
}

.sa-tutorial-copy strong {
color: var(--ink);
font-size: 1rem;
}

.sa-tutorial-copy small {
color: var(--muted);
}

.sa-tutorial-actions {
margin-top: 0;
padding-top: 0;
border-top: 0;
justify-content: flex-start;
}

.sa-tutorial-actions form {
margin: 0;
}

.sa-page-header > .sa-btn,
.sa-page-actions .sa-btn,
.sa-card-head > .sa-btn {
width: 100%;
justify-content: center;
}

.sa-filter-row {
align-items: stretch;
flex-direction: column;
}

.sa-input-search,
.sa-input-select {
width: 100%;
max-width: none;
min-width: 0;
}

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

.sa-pagination {
flex-wrap: wrap;
}

.sa-inline-form,
.sa-reset-form {
align-items: stretch;
flex-direction: column;
}

.sa-inline-form .sa-input,
.sa-reset-form .sa-input {
width: 100%;
}

.sa-inline-form .sa-btn,
.sa-reset-form .sa-btn {
justify-content: center;
width: 100%;
}

.sa-feedback-image-link {
max-width: 100%;
}

.sa-info-row {
align-items: flex-start;
flex-direction: column;
}

.sa-info-row > strong,
.sa-info-row > code {
max-width: 100%;
overflow-wrap: anywhere;
text-align: left;
}
}

@media (max-width: 480px) {
.sa-sidebar-top,
.sa-sidebar-nav,
.sa-sidebar-bottom,
.sa-content {
padding-inline: 0.85rem;
}

.sa-sidebar-brand-text {
display: none;
}

.sa-admin-info {
display: none;
}

.sa-nav-item {
font-size: 0.82rem;
padding: 0.5rem 0.7rem;
}

.sa-page-title {
font-size: 1.3rem;
}

.sa-stats-grid {
grid-template-columns: 1fr;
}

.sa-card-head,
.sa-card-body,
.sa-card-foot {
padding-inline: 0.85rem;
}

.sa-form-actions {
align-items: stretch;
flex-direction: column;
}

.sa-form-actions .sa-btn {
justify-content: center;
width: 100%;
}

.sa-table {
min-width: 560px;
}
}

/* ── Super Admin Extra Styles ─────────────────────────────── */

.sa-page-actions {
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
}

.sa-detail-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
gap: 1rem;
align-items: start;
}

.sa-detail-col {
display: flex;
flex-direction: column;
gap: 1rem;
}

.sa-card-body {
padding: 1rem 1.1rem;
}

.sa-card-foot {
padding: 0.75rem 1rem;
border-top: 1px solid var(--line);
display: flex;
align-items: center;
gap: 0.6rem;
flex-wrap: wrap;
}

.sa-info-row {
display: flex;
align-items: baseline;
justify-content: space-between;
padding: 0.4rem 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
gap: 0.75rem;
}

.sa-info-row:last-child {
border-bottom: none;
}

.sa-info-row > span {
color: var(--muted);
font-size: 0.84rem;
flex-shrink: 0;
}

.sa-info-row > strong {
color: var(--ink);
font-size: 0.88rem;
font-weight: 600;
text-align: right;
}

.sa-info-row > code {
font-size: 0.82rem;
color: var(--color-secondary);
}

.sa-text-danger {
color: #fb7185;
}

.sa-danger-desc {
color: var(--muted);
font-size: 0.85rem;
margin: 0 0 0.75rem;
line-height: 1.5;
}

.sa-form-section {
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: 1px solid var(--line);
}

.sa-form-section:last-of-type {
border-bottom: none;
margin-bottom: 0;
}

.sa-form-section h3 {
margin: 0 0 0.75rem;
color: var(--color-secondary);
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.07em;
}

.sa-form {
display: flex;
flex-direction: column;
gap: 0;
}

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

.sa-form-group {
display: flex;
flex-direction: column;
gap: 0.3rem;
}

.sa-form-group:last-child {
margin-bottom: 0;
}

.sa-label {
color: var(--color-text);
font-size: 0.83rem;
font-weight: 600;
}

.sa-label small {
color: var(--muted-2);
font-weight: 400;
}

.sa-form-actions {
display: flex;
align-items: center;
gap: 0.6rem;
margin-top: 0.5rem;
padding-top: 1rem;
border-top: 1px solid var(--line);
}

.sa-inline-form,
.sa-reset-form {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}

.sa-inline-form .sa-input,
.sa-reset-form .sa-input {
flex: 1 1 220px;
min-width: 0;
}

textarea.sa-input {
min-height: 60px;
resize: vertical;
}

.sa-btn-danger {
background: rgba(244, 63, 94, 0.12);
color: #fb7185;
border-color: rgba(244, 63, 94, 0.3);
}

.sa-btn-danger:hover {
background: rgba(244, 63, 94, 0.22);
}

.sa-btn-success {
background: rgba(34, 197, 94, 0.12);
color: #4ade80;
border-color: rgba(34, 197, 94, 0.3);
}

.sa-btn-success:hover {
background: rgba(34, 197, 94, 0.22);
}

.sa-btn-warning {
background: rgba(251, 191, 36, 0.12);
color: #fbbf24;
border-color: rgba(251, 191, 36, 0.3);
}

.sa-btn-warning:hover {
background: rgba(251, 191, 36, 0.22);
}

.sa-card-foot .sa-inline-form {
margin-top: 0;
}

@media (max-width: 900px) {
.sa-detail-grid {
grid-template-columns: 1fr;
}

.sa-tutorial-layout {
grid-template-columns: 1fr;
}
}

@media (max-width: 560px) {
.sa-form-row {
grid-template-columns: 1fr;
}
}
