@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@600;700&display=swap');

:root {
    --sc-bg: #eef3f8;
    --sc-bg-2: #e4ebf3;
    --sc-card: #ffffff;
    --sc-line: #d5dee8;
    --sc-text: #1c2a38;
    --sc-muted: #5b6d80;
    --sc-cyan: #2aa4d4;
    --sc-gold: #c9a227;
    --sc-white: #ffffff;
    --sc-chrome: #08111c;
    --sc-chrome-2: #0c1828;
}

a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

.sc-body {
    margin: 0;
    background:
        radial-gradient(980px 420px at 50% -120px, rgba(42, 164, 212, 0.1), transparent 62%),
        radial-gradient(640px 280px at 100% 0, rgba(201, 162, 39, 0.06), transparent 55%),
        linear-gradient(180deg, #f6f9fc 0%, var(--sc-bg) 320px);
    color: var(--sc-text);
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

.sc-body.sc-home {
    background: var(--sc-bg);
}

.sc-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 17, 28, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(8, 17, 28, 0.18);
    color: var(--sc-white);
}

.sc-nav-inner,
.sc-footer-inner,
.sc-wrap,
.sc-hero-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.sc-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 16px;
}

.sc-logo {
    display: flex;
    align-items: center;
}

.sc-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.sc-nav-home {
    position: relative;
}

.sc-logo-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: var(--sc-chrome);
    padding: 16px 24px 12px;
}

.sc-logo-banner a {
    display: flex;
    justify-content: center;
    width: min(1120px, 100%);
}

.sc-logo-banner img {
    display: block;
    width: 100%;
    max-width: 1120px;
    height: auto;
    margin: 0 auto;
}

.sc-nav-bar {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--sc-chrome-2);
    text-align: center;
}

.sc-nav-inner-home {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 58px;
    width: 100%;
    max-width: none;
}

.sc-nav-inner-home .sc-nav-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.sc-nav-inner-home .sc-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    margin: 0 auto;
    gap: 22px;
}

.sc-nav-inner-home .sc-nav-actions {
    margin-left: 8px;
}

.sc-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.sc-links a {
    color: #c5d4e4 !important;
    font-size: 14px;
}

.sc-links a.is-active,
.sc-links a:hover {
    color: var(--sc-white) !important;
}

.sc-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.sc-btn,
.sc-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 14px;
}

.sc-btn {
    background: var(--sc-cyan);
    color: #08202c !important;
}

.sc-btn:hover {
    background: #4ec3ea;
    color: #08202c !important;
}

.sc-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--sc-white) !important;
}

.sc-main .sc-btn-ghost,
.sc-portal-body .sc-btn-ghost,
.sc-admin-body .sc-btn-ghost {
    border: 1px solid var(--sc-line);
    color: var(--sc-text) !important;
    background: var(--sc-white);
}

.sc-portal-body .sc-btn-ghost:hover,
.sc-admin-body .sc-btn-ghost:hover {
    background: #f3f7fa;
    color: var(--sc-text) !important;
}

.sc-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.sc-nav-toggle span {
    display: block;
    height: 2px;
    background: #fff;
}

.sc-hero {
    padding: 36px 0 12px;
}

.sc-kicker {
    color: var(--sc-cyan);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.sc-hero h1,
.sc-page h1 {
    color: var(--sc-text);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 16px;
}

.sc-lead,
.sc-hero p,
.sc-copy-block p,
.sc-card p {
    color: var(--sc-muted);
    font-size: 17px;
    line-height: 1.7;
}

.sc-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.sc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sc-card,
.sc-event-card,
.sc-form,
.sc-price {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 24px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 1px 2px rgba(16, 38, 64, 0.04),
        0 14px 32px rgba(16, 38, 64, 0.07);
}

a.sc-event-card {
    transition: transform 180ms ease, box-shadow 180ms ease;
}

a.sc-event-card:hover {
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 18px 36px rgba(16, 38, 64, 0.12);
}

.sc-card h3,
.sc-event-card h3,
.sc-price h3,
.sc-copy-block h2 {
    color: var(--sc-text);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sc-info {
    position: relative;
    overflow: hidden;
}

.sc-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sc-gold), var(--sc-cyan));
}

.sc-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #173049, #0d1824);
    color: #8fd8f2;
    font-size: 18px;
    box-shadow: inset 0 -2px 0 var(--sc-gold);
}

.sc-info h3 {
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: 26px;
    letter-spacing: 0.01em;
}

.sc-section {
    padding: 28px 0 64px;
}

.sc-event-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit !important;
}

.sc-event-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #e8eef4;
    overflow: hidden;
}

.sc-event-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.sc-event-logo-game-night img {
    object-fit: cover;
}

.sc-event-logo-fog-of-war,
.sc-event-logo-pak-family-reunion,
.sc-event-logo-fog-city-poker-classic,
.sc-event-logo-sfp-poker,
.sc-event-logo-3-stacks,
.sc-event-logo-daly-city-friday-night {
    background: #000;
}

.sc-event-logo-pak-family-reunion img,
.sc-event-logo-fog-city-poker-classic img,
.sc-event-logo-sfp-poker img,
.sc-event-logo-daly-city-friday-night img,
.sc-event-logo-fog-of-war img {
    width: 80%;
    height: 80%;
}

.sc-event-card > span:not(.sc-event-logo) {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--sc-line);
    color: var(--sc-cyan);
    font-weight: 600;
}

.sc-page {
    padding: 32px 0 24px;
}

.sc-page-head {
    position: relative;
    margin: 0 0 28px;
    padding: 26px 30px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--sc-gold);
    background:
        radial-gradient(120% 150% at 100% 0%, rgba(42, 164, 212, 0.32), transparent 48%),
        radial-gradient(80% 120% at 0% 120%, rgba(201, 162, 39, 0.16), transparent 46%),
        linear-gradient(165deg, #173049 0%, #0d1b2c 52%, #08111c 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -18px 30px rgba(0, 0, 0, 0.18),
        0 18px 40px rgba(8, 17, 28, 0.16);
    overflow: hidden;
    container-type: inline-size;
}

.sc-page-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sc-gold), #f0dd9a 28%, var(--sc-cyan) 72%, #8fd8f2);
}

.sc-page-head .sc-kicker,
.sc-page-head h1,
.sc-page-head .sc-lead,
.sc-page-head .sc-board-public-host,
.sc-page-head .sc-actions {
    position: relative;
    z-index: 1;
}

.sc-page-head .sc-kicker,
.sc-page-head .sc-kicker a {
    color: #e4c56a !important;
    margin-bottom: 8px;
}

.sc-page-head .sc-kicker a:hover {
    color: #fff !important;
}

.sc-page-head h1 {
    color: #fff;
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: clamp(32px, 7cqi, 52px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.02;
    margin: 0;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28);
}

.sc-page-head .sc-lead {
    color: #c9d7e6;
    max-width: 46rem;
    margin: 12px 0 0;
}

.sc-page-head .sc-board-public-host {
    color: #9aadc2;
    margin: 10px 0 0;
}

.sc-page-head .sc-actions {
    margin-top: 22px;
}

.sc-page-head .sc-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff !important;
}

.sc-page-head .sc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.sc-hero .sc-page-head {
    margin-bottom: 8px;
}

.sc-form label {
    display: block;
    margin: 0 0 6px;
    color: var(--sc-text);
    font-weight: 600;
}

.sc-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.sc-form-hint {
    margin: -8px 0 16px;
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-team-order-heading {
    margin: 8px 0 8px;
    font-size: 18px;
}

.sc-team-order-hint {
    margin: 0 0 16px;
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-team-order-event {
    margin: 0 0 8px;
    font-size: 15px;
}

.sc-team-order-list {
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.sc-team-order-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.sc-form .sc-team-order-row input {
    width: 72px;
    margin: 0;
    padding: 8px 10px;
}

.sc-form .sc-team-order-row label {
    margin: 0;
}

.sc-settings-hero-preview {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 12px;
    background: #0d1824;
}

.sc-form input,
.sc-form select,
.sc-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    border: 1px solid var(--sc-line);
    background: #f7fafc;
    color: var(--sc-text);
    border-radius: 10px;
    padding: 12px 14px;
}

.sc-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.sc-alert-error {
    background: #fde8eb;
    color: #9b1c2a;
}

.sc-alert-ok {
    background: #e4f7ea;
    color: #1d6b38;
}

.sc-price.featured {
    border-color: var(--sc-cyan);
    transform: translateY(-6px);
}

.sc-price {
    display: flex;
    flex-direction: column;
}

.sc-price-flag {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(42, 164, 212, 0.14);
    color: #0a4d66;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-price-amount {
    margin: 0 0 4px;
    color: var(--sc-text);
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.sc-price-amount span {
    font-size: 18px;
    font-weight: 600;
    color: var(--sc-muted);
}

.sc-price ul {
    margin: 18px 0 24px;
    padding: 0;
}

.sc-price li {
    list-style: none;
    color: var(--sc-muted);
    padding: 10px 0 10px 16px;
    border-top: 1px solid #edf2f6;
    position: relative;
}

.sc-price li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sc-cyan);
}

.sc-price .sc-btn,
.sc-price .sc-btn-ghost {
    margin-top: auto;
    align-self: flex-start;
}

.sc-surface {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 28px 32px;
    box-shadow: 0 10px 28px rgba(16, 38, 64, 0.06);
}

.sc-surface p + p {
    margin-top: 16px;
}

.sc-surface h2 {
    margin: 26px 0 8px;
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: 26px;
}

.sc-surface h2:first-child {
    margin-top: 0;
}

.sc-callout {
    margin: 22px 0 0;
    padding: 14px 16px;
    border-left: 3px solid var(--sc-gold);
    border-radius: 0 12px 12px 0;
    background: #f6f9fc;
    color: var(--sc-text);
    font-weight: 600;
}

.sc-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
}

.sc-next h2 {
    margin: 0 0 6px;
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.sc-next p {
    margin: 0;
    color: var(--sc-muted);
}

.sc-faq {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(16, 38, 64, 0.06);
    overflow: hidden;
}

.sc-faq article {
    padding: 20px 24px;
    border-bottom: 1px solid var(--sc-line);
}

.sc-faq article:last-child {
    border-bottom: 0;
}

.sc-faq h3 {
    margin-bottom: 6px;
}

.sc-form-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--sc-line);
}

.sc-form-foot p {
    margin: 6px 0 0;
    color: var(--sc-muted);
    font-size: 14px;
}

.sc-footer {
    background: var(--sc-chrome);
    border-top: 3px solid var(--sc-gold);
    padding: 48px 0 24px;
    color: #c5d4e4;
}

.sc-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
}

.sc-footer h4,
.sc-footer strong {
    color: var(--sc-white);
}

.sc-footer a,
.sc-footer p {
    display: block;
    color: #9aadc2;
    margin: 8px 0;
}

.sc-footer a:hover {
    color: var(--sc-white);
}

.sc-footer .sc-copy {
    width: 100%;
    margin: 24px 0 0;
    padding: 0;
    color: #7d8fa3;
    text-align: center;
}

.sc-topbar {
    background: #07101a;
    border-bottom: 3px solid var(--sc-cyan);
    font-family: 'Poppins', sans-serif;
}

.sc-topbar-inner {
    width: min(1200px, calc(100% - 24px));
    margin: 0 auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sc-topbar-brand,
.sc-topbar-nav a {
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}

.sc-topbar-brand img {
    height: 28px;
    width: auto;
    display: block;
}

.sc-topbar-nav {
    display: flex;
    gap: 14px;
    align-items: center;
}

.sc-topbar-cta {
    background: var(--sc-cyan);
    color: #08202c !important;
    border-radius: 999px;
    padding: 6px 12px;
}

.sc-help {
    color: var(--sc-muted);
    font-size: 14px;
    margin: -8px 0 16px;
}

.sc-section-title {
    margin: 48px 0 20px;
    color: var(--sc-text);
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sc-section-title::after,
.sc-board-public-heading::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--sc-gold), var(--sc-cyan));
}

.sc-winner-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sc-winner-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 10px;
    background: #0d1824;
    flex: 0 0 auto;
}

.sc-winner-cell span {
    font-weight: 600;
    font-size: 14px;
    color: var(--sc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.sc-winner-link {
    color: inherit !important;
}

.sc-winner-link:hover .sc-winner-cell span {
    color: #0a4d66;
}

.sc-muted,
.sc-muted-dash {
    color: var(--sc-muted);
}

.sc-winner {
    display: grid;
    grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-top: 24px;
    padding: 20px;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.04);
}

.sc-winner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    background: #0d1824;
}

.sc-winner img.is-flipped {
    transform: scaleX(-1);
}

.sc-winner-copy .sc-kicker {
    margin-bottom: 6px;
}

.sc-winner-copy h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.02em;
}

.sc-winner-copy p {
    margin: 0;
    color: var(--sc-muted);
}

@media (max-width: 720px) {
    .sc-winner {
        grid-template-columns: 1fr;
    }

    .sc-page-head {
        padding: 20px 18px 18px;
        border-radius: 16px;
    }
}

.sc-portal-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(800px 280px at 50% 0, rgba(42, 164, 212, 0.12), transparent 62%),
        #e8eef5;
}

.sc-portal-page > .sc-kicker {
    color: #8a6a12;
}

.sc-portal-page h1 {
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.05;
    padding-left: 14px;
    border-left: 3px solid var(--sc-gold);
}

.sc-portal-header {
    background: #0d1824;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 -2px 0 var(--sc-cyan);
    color: var(--sc-white);
}

.sc-portal-header-inner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sc-portal-cluster {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.sc-portal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sc-white) !important;
    font-weight: 700;
    white-space: nowrap;
}

.sc-portal-brand img {
    height: 36px;
    width: auto;
    display: block;
}

.sc-portal-brand span {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9eb3c7;
}

.sc-portal-links {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 4px;
}

.sc-portal-header a,
.sc-portal-footer a {
    text-decoration: none !important;
}

.sc-portal-links a {
    color: #c5d4e4 !important;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

.sc-portal-links a:hover {
    color: var(--sc-white) !important;
    background: rgba(255, 255, 255, 0.08);
}

.sc-portal-links a.is-active {
    background: #fff;
    color: #102033 !important;
}

.sc-portal-create {
    display: inline-flex;
    align-items: center;
    background: var(--sc-cyan);
    color: #08202c !important;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.sc-portal-create:hover,
.sc-portal-create.is-active {
    background: #7fd3ee !important;
    color: #08202c !important;
}

.sc-account-menu {
    position: relative;
}

.sc-account-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 4px 10px 4px 4px;
    color: #d7e3ee;
    cursor: pointer;
    font: inherit;
}

.sc-account-trigger:hover,
.sc-account-menu.is-open .sc-account-trigger,
.sc-account-menu.is-current .sc-account-trigger {
    background: rgba(255, 255, 255, 0.12);
}

.sc-portal-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sc-cyan);
    color: #08202c !important;
    font-weight: 700;
    font-size: 13px;
}

.sc-portal-username {
    color: #d7e3ee;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    color: var(--sc-text);
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(8, 17, 28, 0.18);
    padding: 6px;
    z-index: 50;
}

.sc-account-menu.is-open .sc-account-dropdown {
    display: block;
}

.sc-account-dropdown a {
    display: block;
    color: var(--sc-text) !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
}

.sc-account-dropdown a:hover {
    background: #eef3f8;
}

.sc-portal-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    margin-left: auto;
    cursor: pointer;
}

.sc-portal-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: #fff;
}

.sc-portal-main {
    flex: 1;
}

.sc-portal-page {
    width: min(960px, calc(100% - 32px));
    margin: 32px auto 48px;
}

.sc-portal-page.sc-board-page {
    width: min(1100px, calc(100% - 32px));
    margin-top: 24px;
}

.sc-board-hero {
    margin: 0 0 24px;
    padding: 22px 24px 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
        linear-gradient(135deg, #d9eef8 0%, transparent 42%, #f4e8c4 100%);
    border: 1px solid var(--sc-line);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
    overflow: hidden;
}

.sc-board-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.sc-board-back {
    color: var(--sc-muted) !important;
    font-size: 13px;
    font-weight: 600;
}

.sc-board-back:hover {
    color: var(--sc-text) !important;
}

.sc-board-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-board-hero-copy {
    padding-bottom: 8px;
}

.sc-board-hero-copy .sc-kicker {
    margin-bottom: 8px;
}

.sc-board-hero-copy h1 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sc-board-hero-copy .sc-lead {
    margin: 0 0 8px;
    max-width: 52rem;
}

.sc-board-meta {
    margin: 0;
    color: var(--sc-muted);
    font-size: 14px;
}

.sc-board-subnav-wrap {
    margin: 0 0 22px;
}

.sc-board-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    max-width: 100%;
    background: #0d1824;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(8, 17, 28, 0.18);
}

.sc-board-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    color: #b7c7d8 !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.01em;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sc-board-tabs a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.sc-board-tabs a.is-active {
    color: #102033 !important;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.sc-board-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #d5e2ef;
    font-size: 12px;
    font-weight: 700;
}

.sc-board-tabs a.is-active .sc-board-tab-count {
    background: rgba(42, 164, 212, 0.2);
    color: #0a4d66;
}

.sc-board-public-host {
    margin: -8px 0 0;
    color: var(--sc-muted);
    font-size: 14px;
}

.sc-board-cover {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    margin: 18px 0 0;
    border-radius: 16px;
    background: #0d1824;
}

.sc-team-heading {
    margin: 32px 0 12px;
}

.sc-team-rosters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
}

.sc-team-rosters.is-versus {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.sc-team-versus {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12px;
}

.sc-team-versus img {
    width: 72px;
    height: auto;
}

.sc-team-roster {
    padding: 16px 18px;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 16px;
}

.sc-team-roster h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.sc-team-symbol {
    height: 72px;
    width: auto;
    max-width: 88px;
    object-fit: contain;
    flex: none;
}

.sc-team-roster-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 14px;
    border-radius: 12px;
}

.sc-team-roster ul {
    margin: 0;
    padding-left: 18px;
}

@media (max-width: 720px) {
    .sc-team-rosters.is-versus {
        grid-template-columns: 1fr;
    }

    .sc-team-versus {
        padding-top: 0;
    }
}

.sc-team-round {
    margin-top: 28px;
}

.sc-team-round h3 {
    margin: 0 0 8px;
}

.sc-team-round .sc-table-wrap + .sc-table-wrap {
    margin-top: 20px;
}

.sc-team-note {
    margin: 0 0 12px;
    color: var(--sc-muted);
}

#sc-board-content,
.sc-fog-charts figure,
.sc-hs-bracket-figure {
    scroll-margin-top: 88px;
}

.sc-board-public-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 6px;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(16, 38, 64, 0.04);
}

.sc-board-public-section {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 10px;
    color: var(--sc-muted) !important;
    font-size: 14px;
    font-weight: 700;
}

.sc-board-public-section:hover {
    background: #f3f7fa;
    color: var(--sc-text) !important;
}

.sc-board-public-section.is-active {
    background: rgba(42, 164, 212, 0.16);
    color: #0a4d66 !important;
}

.sc-board-public-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    margin-top: 20px;
    align-items: start;
}

.sc-board-public-layout-wide {
    grid-template-columns: minmax(0, 1fr);
}

.sc-winners-year {
    margin-bottom: 32px;
}

.sc-winners-year-title {
    margin: 0 0 14px;
    font-size: 20px;
    letter-spacing: -0.02em;
    color: var(--sc-text);
}

.sc-winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.sc-winner-card {
    background: linear-gradient(180deg, #fff9e6 0%, #ffffff 42%);
    border: 1px solid #e6d59a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(92, 69, 0, 0.08);
    text-align: center;
}

.sc-winner-card-media {
    position: relative;
    aspect-ratio: 1;
    background: #0d1824;
    overflow: hidden;
}

.sc-winner-card-media a {
    position: absolute;
    inset: 0;
    display: block;
}

.sc-winner-card-media > a img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.sc-winner-card-media--trophy {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 10px;
    background: #e8e4d8;
}

.sc-winner-card-media--trophy img.sc-winner-card-trophy {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.sc-winner-card-body {
    padding: 12px 12px 14px;
}

.sc-winner-card-name {
    font-size: 15px;
    font-weight: 800;
    color: #5c4500;
    margin-bottom: 4px;
}

.sc-winner-card-event a {
    color: #0a4d66 !important;
    font-size: 13px;
    font-weight: 700;
}

.sc-winner-card-date {
    margin-top: 4px;
    color: var(--sc-muted);
    font-size: 12px;
}

.sc-board-public-nav {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 18px 16px;
    box-shadow: 0 8px 24px rgba(16, 38, 64, 0.06);
    position: sticky;
    top: 88px;
}

.sc-board-public-nav-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sc-muted);
    margin-bottom: 8px;
}

.sc-board-public-nav-link {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--sc-text) !important;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sc-board-public-nav-link:hover {
    background: #f3f7fa;
}

.sc-board-public-nav-link.is-active {
    background: rgba(42, 164, 212, 0.14);
    color: #0a4d66 !important;
}

.sc-board-public-nav-sub {
    padding-left: 22px;
    font-weight: 500;
    font-size: 13px;
    color: var(--sc-muted) !important;
}

.sc-board-public-nav-sub.is-active,
.sc-board-public-nav-deep.is-active {
    color: #0a4d66 !important;
}

.sc-board-public-nav-deep {
    padding-left: 40px;
    font-weight: 500;
    font-size: 13px;
    color: var(--sc-muted) !important;
}

.sc-board-public-main {
    min-width: 0;
}

.sc-fog-charts {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sc-fog-charts figure {
    margin: 0;
}

.sc-fog-charts figcaption {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--sc-text);
}

.sc-fog-charts img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
}

.sc-board-public-heading {
    margin: 0 0 8px;
    font-family: 'Rajdhani', 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sc-board-public-lead {
    margin: 0 0 20px;
    color: var(--sc-muted);
    font-size: 15px;
}

.sc-board-info-body {
    color: var(--sc-text);
    font-size: 15px;
    line-height: 1.7;
}

.sc-board-info-body h3 {
    margin: 22px 0 8px;
    font-size: 18px;
}

.sc-board-info-body p,
.sc-board-info-body ul {
    margin: 0 0 12px;
}

.sc-board-info-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.sc-enlarge {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px 24px;
    background: rgba(8, 17, 28, 0.88);
    box-sizing: border-box;
}

.sc-enlarge[hidden] {
    display: none !important;
}

.sc-enlarge-image {
    display: block;
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 96px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.sc-enlarge-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #08111c;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.sc-enlarge-open {
    overflow: hidden;
}

@media (max-width: 800px) {
    .sc-board-public-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .sc-board-public-nav {
        position: static;
    }
}

.sc-board-panel {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, 0.04);
    overflow: hidden;
}

.sc-board-panel > .sc-form {
    border-radius: 0;
    box-shadow: none;
}

.sc-board-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid var(--sc-line);
}

.sc-board-panel-head h2 {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: -0.01em;
}

.sc-board-panel-head p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 14px;
}

.sc-board-panel-count {
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sc-board-panel-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sc-board-sort {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 600;
}

.sc-board-sort select {
    min-width: 140px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--sc-line);
    border-radius: 10px;
    background: #fff;
    color: var(--sc-text);
    font-weight: 600;
}

.sc-board-empty {
    padding: 36px 24px;
    color: var(--sc-muted);
}

.sc-board-table {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sc-board-table .sc-table th {
    background: #f7fafc;
}

.sc-board-table .sc-table tr:last-child td {
    border-bottom: 0;
}

.sc-board-table .sc-table tbody tr:hover td {
    background: #f8fbfd;
}

.sc-board-actions {
    text-align: right;
    white-space: nowrap;
}

.sc-board-actions .sc-btn,
.sc-board-actions .sc-btn-ghost {
    padding: 8px 14px;
    font-size: 13px;
}

.sc-board-edit-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sc-event-players .sc-form select,
.sc-event-players .sc-form input[type="text"],
.sc-event-players .sc-form input:not([type]),
.sc-event-results > .sc-form select {
    min-width: 0;
    flex: 1;
}

.sc-event-results > .sc-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.sc-event-results .sc-table input,
.sc-event-results .sc-table select {
    width: 100%;
    max-width: 140px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid var(--sc-line);
    background: #f7fafc;
    color: var(--sc-text);
    border-radius: 10px;
    padding: 8px 10px;
}

.sc-event-results .sc-table select {
    max-width: 160px;
}

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

.sc-board-person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-board-person .sc-avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

@media (max-width: 720px) {
    .sc-board-hero {
        padding: 18px 16px 0;
    }

    .sc-board-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .sc-board-tabs {
        display: flex;
        width: 100%;
    }

    .sc-board-tabs a {
        flex: 1;
        justify-content: center;
        padding: 10px 12px;
    }

    .sc-board-panel-head {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 16px 16px;
    }
}

.sc-admin-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 24px;
}

.sc-admin-app {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    background: #eef1f4;
    color: var(--sc-text);
    font-family: 'Poppins', 'Open Sans', sans-serif;
}

.sc-admin-app *,
.sc-admin-app *::before,
.sc-admin-app *::after {
    box-sizing: border-box;
}

.sc-admin-sidebar a,
.sc-admin-top a {
    text-decoration: none !important;
}

.sc-admin-sidebar {
    background: #151b22;
    color: #d5dde6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
    border-right: 1px solid #2a3340;
}

.sc-admin-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    text-align: center;
    color: #fff !important;
    font-weight: 700;
    border-bottom: 1px solid #2a3340;
}

.sc-admin-brand img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.sc-admin-brand span {
    display: block;
    width: 100%;
    text-align: center;
}

.sc-admin-sidenav {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    gap: 4px;
    flex: 1;
}

.sc-admin-nav-label {
    margin: 14px 12px 0;
    color: #8b97a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sc-admin-sidenav a {
    color: #c3ced9 !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.sc-admin-sidenav a:hover {
    background: #1f2731;
    color: #fff !important;
}

.sc-admin-sidenav a.is-active {
    background: #24303c;
    color: #fff !important;
    border-left-color: var(--sc-gold);
}

.sc-admin-side-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 24px;
    border-top: 1px solid #2a3340;
    font-size: 13px;
}

.sc-admin-side-meta span {
    color: #8b97a6;
    font-weight: 600;
}

.sc-admin-side-meta a {
    color: #d5dde6 !important;
}

.sc-admin-frame {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.sc-admin-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid #d9e0e8;
}

.sc-admin-top h1 {
    margin: 0;
    font-size: 20px;
}

.sc-admin-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.sc-admin-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background: #151b22;
}

.sc-admin-main {
    flex: 1;
    padding: 28px 32px 16px;
}

.sc-admin-foot {
    padding: 12px 32px 20px;
    color: #6b7785;
    font-size: 13px;
}

.sc-admin-foot p {
    margin: 0;
}

.sc-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.sc-stat {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 18px 20px;
    color: inherit !important;
    display: block;
}

.sc-stat strong {
    display: block;
    font-size: 28px;
    color: var(--sc-text);
}

.sc-stat span,
.sc-stat em {
    display: block;
    color: var(--sc-muted);
    font-style: normal;
    font-size: 13px;
    margin-top: 4px;
}

.sc-dash .sc-lead {
    margin-bottom: 8px;
}

.sc-dash .sc-stats {
    margin: 0 0 20px;
}

.sc-dash .sc-stat {
    padding: 16px 18px 18px;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sc-dash .sc-stat:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 32, 51, 0.08);
}

.sc-dash .sc-stat span {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 11px;
}

.sc-dash .sc-stat strong {
    margin: 8px 0 4px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.sc-dash .sc-stat em {
    margin: 0;
}

.sc-dash .sc-chart-card {
    margin-bottom: 20px;
}

.sc-chart-compact {
    height: 160px;
}

.sc-dash-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.sc-dash-link {
    color: var(--sc-cyan) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sc-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-dash-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.sc-dash-list li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.sc-dash-list strong {
    display: block;
    font-size: 14px;
}

.sc-dash-list li > div span {
    display: block;
    color: var(--sc-muted);
    font-size: 13px;
    margin-top: 2px;
}

.sc-dash-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--sc-muted);
    font-size: 12px;
}

.sc-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    background: #e8eef4;
    color: #3d5164;
}

.sc-pill-ok {
    background: #e4f7ea;
    color: #1d6b38;
}

.sc-pill-wait {
    background: #fff4d6;
    color: #8a6100;
}

.sc-pill-gold {
    background: #f4ead0;
    color: #7a5b10;
}

.sc-chart-head .sc-admin-search {
    margin: 0;
}

.sc-chart-card .sc-form,
.sc-chart-card .sc-admin-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.sc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1c2a38;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.sc-manage-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-manage-list li {
    display: grid;
    grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

.sc-manage-list li:last-child {
    border-bottom: 0;
}

.sc-manage-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sc-manage-person strong {
    display: block;
    font-size: 14px;
}

.sc-manage-person span {
    display: block;
    color: var(--sc-muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-manage-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--sc-muted);
    font-size: 12px;
}

.sc-manage-amount {
    font-weight: 700;
    color: var(--sc-text) !important;
    font-size: 14px;
}

.sc-manage-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sc-admin-select {
    border: 1px solid var(--sc-line);
    background: #fff;
    color: var(--sc-text);
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
}

.sc-manage-tools .sc-btn,
.sc-manage-tools .sc-btn-ghost {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.sc-admin-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.sc-admin-card-body {
    padding: 0 22px 22px;
}

.sc-admin-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.sc-admin-field-grid label {
    margin-top: 0;
}

.sc-admin-field-span {
    grid-column: 1 / -1;
}

.sc-admin-field-check {
    display: flex;
    align-items: end;
    min-height: 68px;
}

.sc-admin-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--sc-line);
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-check-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
    font-weight: 600;
}

.sc-check-label input {
    width: auto !important;
    margin: 0;
}

@media (max-width: 900px) {
    .sc-admin-edit-grid,
    .sc-admin-field-grid {
        grid-template-columns: 1fr;
    }
}

.sc-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 180px;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 16px 12px 8px;
    margin: 12px 0 28px;
}

.sc-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.sc-bar-fill {
    width: 100%;
    max-width: 28px;
    background: var(--sc-cyan);
    border-radius: 6px 6px 0 0;
}

.sc-bar-fill.is-gold {
    background: var(--sc-gold);
}

.sc-bar span,
.sc-bar em {
    font-size: 11px;
    color: var(--sc-muted);
}

.sc-analytics .sc-lead {
    margin-bottom: 8px;
}

.sc-analytics .sc-stats {
    margin: 0 0 24px;
}

.sc-analytics-charts,
.sc-analytics-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.sc-analytics-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sc-chart-card {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 16px;
    padding: 18px 20px 16px;
    box-shadow: 0 1px 2px rgba(16, 32, 51, 0.04);
    min-width: 0;
}

.sc-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.sc-chart-head h2 {
    margin: 0;
    font-size: 16px;
}

.sc-chart-head p {
    margin: 4px 0 0;
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-chart-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sc-muted);
    font-size: 12px;
    font-weight: 600;
}

.sc-chart-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--sc-cyan);
}

.sc-chart-legend i.is-gold {
    background: var(--sc-gold);
}

.sc-chart {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 220px;
    padding: 4px 2px 0;
    background-image: repeating-linear-gradient(
        to top,
        #edf1f5 0,
        #edf1f5 1px,
        transparent 1px,
        transparent 25%
    );
    border-radius: 10px;
}

.sc-chart-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sc-chart-col span {
    font-size: 11px;
    font-weight: 600;
    color: var(--sc-text);
    line-height: 1;
    margin-bottom: 6px;
}

.sc-chart-track {
    flex: 1;
    width: 100%;
    max-width: 22px;
    display: flex;
    align-items: flex-end;
    background: #e8eef4;
    border-radius: 8px 8px 2px 2px;
}

.sc-chart-fill {
    width: 100%;
    background: linear-gradient(180deg, #4ec3e8 0%, #2aa4d4 100%);
    border-radius: 8px 8px 2px 2px;
}

.sc-chart-fill.is-gold {
    background: linear-gradient(180deg, #e0c15a 0%, #c9a227 100%);
}

.sc-chart-col em {
    margin-top: 8px;
    font-size: 10px;
    font-style: normal;
    color: var(--sc-muted);
}

.sc-meter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sc-meter-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 13px;
}

.sc-meter-label strong {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-meter-label span {
    color: var(--sc-muted);
    white-space: nowrap;
}

.sc-meter {
    height: 8px;
    background: #e8eef4;
    border-radius: 999px;
    overflow: hidden;
}

.sc-meter-fill {
    height: 100%;
    background: var(--sc-cyan);
    border-radius: 999px;
}

.sc-meter-fill.is-gold {
    background: var(--sc-gold);
}

.sc-meter-fill.is-slate {
    background: #4a6278;
}

.sc-analytics-empty {
    margin: 8px 0 4px;
    color: var(--sc-muted);
}

.sc-admin-search {
    display: flex;
    gap: 12px;
    margin: 16px 0 20px;
}

.sc-admin-search input {
    flex: 1;
    max-width: 360px;
    border: 1px solid var(--sc-line);
    background: #fff;
    color: var(--sc-text);
    border-radius: 10px;
    padding: 12px 14px;
}

.sc-message-filters {
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
}

.sc-message-filters .sc-admin-select,
.sc-message-filters input {
    min-height: 40px;
}

.sc-message-filters input {
    min-width: 200px;
}

.sc-manage-list li.is-unread .sc-manage-person strong a {
    font-weight: 800;
}

.sc-manage-list li.is-unread .sc-avatar {
    background: #8a6100;
}

.sc-message-detail .sc-message-body {
    margin: 0;
    padding: 16px 18px;
    background: #f7f9fb;
    border: 1px solid #e8eef4;
    border-radius: 12px;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    color: var(--sc-text);
}

.sc-chart-head .sc-message-filters {
    justify-content: flex-end;
}

.sc-message-detail .sc-manage-person a,
.sc-dash-list a {
    color: inherit;
    text-decoration: none;
}

.sc-dash-list a:hover,
.sc-manage-list .sc-manage-person strong a:hover {
    text-decoration: underline;
}

.sc-admin-form {
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 20px 24px;
    max-width: 520px;
}

.sc-table select {
    max-width: 140px;
}

.sc-portal-footer {
    background: #102033;
    color: #8ea0b3;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sc-portal-footer p {
    margin: 0;
    font-size: 13px;
}

.sc-portal-footer nav {
    display: flex;
    gap: 16px;
}

.sc-portal-footer a {
    color: #c5d4e4 !important;
    font-size: 13px;
    font-weight: 600;
}

.sc-table-wrap {
    overflow-x: auto;
    background: var(--sc-card);
    border: 1px solid var(--sc-line);
    border-radius: 18px;
}

.sc-table-wrap.sc-board-table {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
}

.sc-table th,
.sc-table td {
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sc-line);
    vertical-align: middle;
}

.sc-table th.sc-align-center,
.sc-table td.sc-align-center {
    text-align: center;
}

.sc-table tbody td > .sc-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.sc-table tbody td.sc-board-actions > .sc-cell {
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Stats rankings: compact body rows, normal header */
.sc-table.sc-table-compact td {
    padding: 5px 10px;
    line-height: 1.2;
}

.sc-table.sc-table-compact tbody td > .sc-cell {
    min-height: 0;
}

.sc-stats-table {
    width: max-content;
    min-width: 100%;
}

.sc-stats-table th,
.sc-stats-table td {
    text-align: center;
}

.sc-stats-table tbody td > .sc-cell {
    justify-content: center;
}

.sc-stats-table th.sc-stats-player,
.sc-stats-table td.sc-stats-player {
    text-align: left;
}

.sc-stats-table td.sc-stats-player > .sc-cell {
    justify-content: flex-start;
}

.sc-stats-table th.sc-stats-amount,
.sc-stats-table td.sc-stats-amount {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    width: auto;
    min-width: max-content;
    padding-left: 8px;
    padding-right: 8px;
}

.sc-stats-event-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.15;
}

.sc-stats-event-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--sc-muted);
    white-space: nowrap;
}

.sc-table-overall {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    font-size: 10px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.sc-table-overall th,
.sc-table-overall td {
    white-space: nowrap;
    padding: 3px 2px;
    font-size: inherit;
    letter-spacing: 0;
    text-transform: none;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-table.sc-table-compact.sc-table-overall td {
    padding: 3px 2px;
}

.sc-table.sc-table-compact.sc-table-overall th.sc-stats-amount,
.sc-table.sc-table-compact.sc-table-overall td.sc-stats-amount {
    padding-left: 8px;
    padding-right: 8px;
}

.sc-table-overall thead th {
    padding-top: 8px;
    padding-bottom: 8px;
}

.sc-table-overall .sc-overall-year,
.sc-table-overall .sc-overall-year-total {
    text-align: center;
    border-left: 1px solid var(--sc-line);
}

.sc-table-overall .sc-overall-year,
.sc-table-overall .sc-overall-year-total {
    padding: 8px 4px 4px;
    font-size: 10px;
    font-weight: 700;
    overflow: visible;
    text-overflow: clip;
}

.sc-table-overall .sc-overall-year {
    border-bottom: 0;
}

.sc-table-overall .sc-overall-season {
    text-align: center;
    padding: 4px 4px 8px;
    min-width: max-content;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    font-size: 9px;
    font-weight: 600;
}

.sc-table-overall .sc-stats-event-date {
    font-size: 9px;
}

.sc-table-overall .sc-overall-year-start {
    border-left: 1px solid var(--sc-line);
}

.sc-table-overall .sc-overall-pts {
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
}

.sc-table-overall .sc-overall-pts > .sc-cell,
.sc-table-overall .sc-overall-season {
    justify-content: center;
}

.sc-table-overall .sc-overall-total {
    text-align: center;
    width: auto;
    min-width: max-content;
    border-left: 1px solid var(--sc-line);
    padding-left: 8px;
    padding-right: 8px;
}

.sc-table-overall .sc-overall-total > .sc-cell {
    justify-content: center;
}

.sc-table-overall .sc-overall-sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--sc-card);
}

.sc-table-overall thead .sc-overall-sticky {
    z-index: 3;
    background: var(--sc-card);
}

.sc-table-overall .sc-overall-rank {
    left: 0;
    width: 2.2em;
    min-width: 2.2em;
    max-width: 2.8em;
    text-align: center;
}

.sc-table-overall .sc-overall-rank > .sc-cell {
    justify-content: center;
}

.sc-table-overall .sc-overall-player {
    left: 2.2em;
    width: 7em;
    min-width: 7em;
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 4px 0 6px -5px rgba(15, 23, 42, 0.18);
}

.sc-stats-fit .sc-stats-table {
    font-size: 14px;
}

.sc-stats-fit .sc-table-overall {
    font-size: 11px;
}

.sc-stats-fit .sc-table th {
    font-size: 0.82em;
    letter-spacing: 0;
}

.sc-stats-fit .sc-stats-event-date,
.sc-stats-fit .sc-table-overall .sc-stats-event-date {
    font-size: 0.78em;
}

.sc-stats-fit .sc-table-overall th,
.sc-stats-fit .sc-table-overall td {
    overflow: visible;
    text-overflow: clip;
}

.sc-stats-fit .sc-table-overall .sc-overall-player {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-stats-fit .sc-table.sc-table-compact.sc-table-overall th.sc-stats-amount,
.sc-stats-fit .sc-table.sc-table-compact.sc-table-overall td.sc-stats-amount,
.sc-stats-fit .sc-stats-table th.sc-stats-amount,
.sc-stats-fit .sc-stats-table td.sc-stats-amount {
    padding-left: 0.45em;
    padding-right: 0.45em;
}

.sc-table-overall tbody tr.sc-rank-1 td,
.sc-table-overall tbody tr.sc-rank-2 td,
.sc-table-overall tbody tr.sc-rank-3 td {
    font-size: inherit;
    padding-top: 3px;
    padding-bottom: 3px;
}

.sc-table-overall tbody tr.sc-rank-1 .sc-rank-num {
    min-width: 0;
    font-size: inherit;
}

.sc-table-overall tbody tr.sc-rank-1 strong {
    font-size: inherit;
}

.sc-table-overall tbody tr.sc-rank-1 .sc-overall-sticky {
    background: #f7e7a8;
}

.sc-table-overall tbody tr.sc-rank-2 .sc-overall-sticky {
    background: #e8edf2;
}

.sc-table-overall tbody tr.sc-rank-3 .sc-overall-sticky {
    background: #f3e6d8;
}

.sc-table-overall tbody tr.sc-rank-1:hover .sc-overall-sticky {
    background: #f3de8f;
}

.sc-table-overall tbody tr.sc-rank-2:hover .sc-overall-sticky {
    background: #dde4eb;
}

.sc-table-overall tbody tr.sc-rank-3:hover .sc-overall-sticky {
    background: #ecddd0;
}

.sc-table tbody tr.sc-rank-1 td,
.sc-table tbody tr.sc-rank-2 td,
.sc-table tbody tr.sc-rank-3 td {
    font-weight: 600;
}

.sc-table tbody tr.sc-rank-1 td {
    background: #f7e7a8;
    color: #5c4500;
    font-size: 1.08em;
    padding-top: 9px;
    padding-bottom: 9px;
}

.sc-table tbody tr.sc-rank-1 .sc-rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    font-size: 1.15em;
    font-weight: 800;
    color: #8a6800;
}

.sc-table tbody tr.sc-rank-1 strong {
    font-weight: 800;
    font-size: 1.05em;
}

.sc-table tbody tr.sc-rank-2 td {
    background: #e8edf2;
    color: #334155;
}

.sc-table tbody tr.sc-rank-2 .sc-rank-num {
    font-weight: 800;
    color: #64748b;
}

.sc-table tbody tr.sc-rank-3 td {
    background: #f3e6d8;
    color: #6b4423;
}

.sc-table tbody tr.sc-rank-3 .sc-rank-num {
    font-weight: 800;
    color: #9a6238;
}

.sc-table tbody tr.sc-rank-1:hover td {
    background: #f3de8f;
}

.sc-table tbody tr.sc-rank-2:hover td {
    background: #dde4eb;
}

.sc-table tbody tr.sc-rank-3:hover td {
    background: #ecddd0;
}

.sc-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sc-muted);
}

.sc-inline-form {
    display: inline;
}

.sc-link-btn {
    background: none;
    border: 0;
    color: #9b1c2a;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}

@media (max-width: 900px) {
    .sc-analytics-charts,
    .sc-analytics-split,
    .sc-dash-split {
        grid-template-columns: 1fr;
    }
    .sc-dash-list li {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .sc-manage-list li {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
    .sc-manage-tools {
        justify-content: flex-start;
    }
    .sc-chart-head {
        flex-wrap: wrap;
    }
    .sc-admin-app {
        grid-template-columns: 1fr;
    }
    .sc-admin-sidebar {
        display: none;
        position: fixed;
        z-index: 80;
        left: 0;
        top: 0;
        bottom: 0;
        width: 240px;
        min-height: 100%;
    }
    .sc-admin-nav-open .sc-admin-sidebar {
        display: flex;
    }
    .sc-admin-toggle {
        display: flex;
    }
    .sc-admin-main,
    .sc-admin-foot,
    .sc-admin-top {
        padding-left: 16px;
        padding-right: 16px;
    }
    .sc-portal-header-inner {
        flex-wrap: wrap;
        min-height: 56px;
        padding: 8px 0;
    }
    .sc-portal-toggle {
        display: flex;
        order: 2;
    }
    .sc-portal-cluster {
        order: 3;
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .sc-account-menu {
        order: -1;
        margin-left: auto;
    }
    .sc-portal-links,
    .sc-portal-create {
        display: none;
        width: 100%;
        max-width: none;
    }
    .sc-portal-nav-open .sc-portal-links,
    .sc-portal-nav-open .sc-portal-create {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .sc-portal-nav-open .sc-portal-links {
        border-radius: 14px;
        padding: 6px;
    }
    .sc-portal-nav-open .sc-portal-create {
        justify-content: center;
        margin: 4px 0;
    }
    .sc-portal-username {
        max-width: none;
    }
    .sc-portal-footer {
        justify-content: center;
        text-align: center;
    }
    .sc-grid,
    .sc-grid-2,
    .sc-grid-4,
    .sc-footer-inner {
        grid-template-columns: 1fr;
    }
    .sc-nav-toggle {
        display: flex;
    }
    .sc-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        background: #0b1726;
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        z-index: 50;
    }
    .sc-nav:not(.sc-nav-home) .sc-links {
        top: 76px;
    }
    .sc-nav-home .sc-links {
        top: 100%;
    }
    .sc-nav-open .sc-links {
        display: flex;
    }
    .sc-price.featured {
        transform: none;
    }
    .sc-next {
        align-items: flex-start;
        flex-direction: column;
    }
    .sc-surface {
        padding: 22px 18px;
    }
}

.sc-event-edit-title {
    margin-bottom: 6px;
}

.sc-event-back {
    display: inline-block;
    margin: 0 0 20px;
    font-weight: 600;
}

.sc-event-edit-stack {
    display: grid;
    gap: 20px;
    align-content: start;
}

.sc-event-delete p {
    margin: 0 0 14px;
    color: var(--sc-muted);
}

.sc-event-edit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 22px;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 14px;
}

.sc-event-edit-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--sc-muted) !important;
    font-weight: 600;
}

.sc-event-edit-tabs a:hover {
    color: var(--sc-text) !important;
}

.sc-event-edit-tabs a.is-active,
.sc-event-edit-tabs a.is-active:hover {
    background: #102033;
    color: #fff !important;
}

.sc-choice-grid {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.sc-form label.sc-choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    background: #f7fafc;
    cursor: pointer;
    font-weight: 600;
}

.sc-form .sc-choice input,
.sc-form .sc-check input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #1a4f86;
}

.sc-choice:has(input:checked) {
    border-color: var(--sc-cyan);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 164, 212, 0.16);
}

.sc-choice > span strong {
    display: block;
}

.sc-choice > span span {
    display: block;
    margin-top: 2px;
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 500;
}

.sc-form label.sc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-weight: 600;
}

.sc-field-hint {
    margin: -2px 0 8px;
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 500;
}

.sc-structure-fields [hidden] {
    display: none !important;
}

.sc-event-structure-note {
    margin: 8px 0 0;
    color: var(--sc-muted);
}

.sc-format-layout {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.sc-format-preview {
    position: sticky;
    top: 16px;
    background: #e7eef5;
    border: 1px solid var(--sc-line);
    border-radius: 18px;
    padding: 14px;
}

.sc-format-preview-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    color: var(--sc-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sc-format-sheet {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    padding: 18px 16px 20px;
    overflow: auto;
}

.sc-preview-title {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.sc-format-sample {
    margin: 0 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff6df;
    color: #7a5b12;
    font-size: 13px;
    font-weight: 600;
}

#event-format-options.is-locked {
    opacity: 0.48;
}

.sc-winner:not(:has(img)) {
    grid-template-columns: minmax(0, 1fr);
}

.sc-winner-feature {
    margin-top: 18px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(201, 162, 39, 0.18), transparent 46%),
        #fff;
}

.sc-winner-feature .sc-winner-copy h2 {
    font-size: clamp(32px, 4vw, 46px);
}

.sc-finish-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.sc-finish-card {
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    padding: 14px 14px 12px;
}

.sc-finish-card .sc-kicker {
    margin-bottom: 4px;
}

.sc-finish-card strong {
    display: block;
    font-size: 16px;
}

.sc-finish-card p {
    margin: 6px 0 0;
    color: var(--sc-muted);
    font-size: 13px;
}

.sc-finish-cards.is-compact {
    gap: 8px;
}

.sc-finish-cards.is-compact .sc-finish-card {
    padding: 8px 10px;
}

.sc-finish-cards.is-compact .sc-finish-card strong {
    font-size: 14px;
}

.sc-bracket-wrap {
    margin-top: 18px;
}

.sc-bracket-kicker {
    margin: 0 0 8px;
    color: #1a4f86;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sc-bracket {
    display: flex;
    align-items: stretch;
    gap: 28px;
    overflow-x: auto;
    padding: 4px 2px 12px;
}

.sc-bracket-round {
    display: flex;
    flex-direction: column;
    min-width: 168px;
    flex: 1;
}

.sc-bracket-round h4 {
    margin: 0 0 8px;
    min-height: 18px;
    color: #1a4f86;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sc-bracket-round-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.sc-bracket-slot {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 8px 0;
}

.sc-bracket-slot:not(.is-last)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -16px;
    width: 16px;
    border-top: 2px solid #c5d3e0;
}

.sc-bracket-slot:not(.is-single):not(.is-last)::before {
    content: "";
    position: absolute;
    top: 25%;
    right: -16px;
    bottom: 25%;
    width: 16px;
    border: 2px solid #c5d3e0;
    border-left: 0;
    border-radius: 0 10px 10px 0;
}

.sc-bracket-slot:not(.is-single):not(.is-last)::after {
    display: none;
}

.sc-bracket-match,
.sc-bracket-winner {
    background: #fff;
    border: 1px solid #d5dee8;
    border-radius: 8px;
    overflow: hidden;
}

.sc-bracket-player,
.sc-bracket-winner {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
}

.sc-bracket-player + .sc-bracket-player {
    border-top: 1px solid #e6edf4;
}

.sc-bracket-player span,
.sc-bracket-winner span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-bracket-player.is-empty,
.sc-bracket-winner.is-empty {
    color: #8aa0b5;
    font-weight: 500;
}

.sc-bracket-winner.is-empty {
    border-style: dashed;
}

.sc-bracket-champion-round {
    min-width: 150px;
}

.sc-hs-bracket-frame {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    padding: 22px 20px 26px;
}

.sc-hs-bracket {
    --hs-row: 34px;
    --hs-gap: 22px;
    --hs-card: 156px;
    --hs-gutter: 52px;
    --hs-arm: 16px;
    --hs-link: #4e75a0;
    width: max-content;
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}

.sc-hs-bracket-title {
    margin: 0 0 8px;
    text-align: center;
    color: #001a79;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sc-hs-board {
    display: grid;
    column-gap: 0;
    row-gap: var(--hs-gap);
    align-items: center;
    padding: 32px 4px 8px;
}

.sc-hs-round-label {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    color: #001a79;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.sc-hs-link {
    position: relative;
    align-self: stretch;
    height: 100%;
}

.sc-hs-join,
.sc-hs-arm,
.sc-hs-bridge,
.sc-hs-hop,
.sc-hs-out {
    position: absolute;
    background: var(--hs-link);
}

.sc-hs-join,
.sc-hs-hop {
    width: 2px;
}

.sc-hs-arm,
.sc-hs-bridge,
.sc-hs-out {
    height: 2px;
    margin-top: -1px;
}

.sc-hs-join {
    left: var(--hs-arm);
    top: calc(var(--y1) - 1px);
    height: calc(var(--y2) - var(--y1) + 1px);
}

.sc-hs-arm {
    left: 0;
    width: var(--hs-arm);
}

.sc-hs-arm-a { top: var(--y1); }
.sc-hs-arm-b { top: var(--y2); }

.sc-hs-bridge {
    left: var(--hs-arm);
    width: var(--hs-arm);
    top: calc((var(--y1) + var(--y2)) / 2);
}

.sc-hs-hop {
    left: calc(var(--hs-arm) * 2);
    top: calc(min((var(--y1) + var(--y2)) / 2, var(--yt)));
    height: calc(max((var(--y1) + var(--y2)) / 2, var(--yt)) - min((var(--y1) + var(--y2)) / 2, var(--yt)));
}

.sc-hs-out {
    right: -1px;
    top: calc((var(--y1) + var(--y2)) / 2);
    left: var(--hs-arm);
}

.sc-hs-link:not(.is-straight) .sc-hs-out {
    top: var(--yt);
    left: calc(var(--hs-arm) * 2);
}

.sc-hs-player {
    position: relative;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: var(--hs-card);
    height: var(--hs-row);
    background: #fff;
    border: 2px solid #000;
    color: #000;
    font-size: 13px;
    line-height: 1;
}

.sc-hs-player-champion {
    align-self: center;
}

.sc-hs-player-name {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-hs-player-score {
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #001a79;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.sc-hs-player-champion .sc-hs-player-name {
    justify-content: flex-start;
}

.sc-hs-player.is-empty {
    color: #8aa0b5;
}

.sc-hs-player.is-empty .sc-hs-player-score {
    background: #8aa0b5;
}

@media (max-width: 860px) {
    .sc-format-layout {
        grid-template-columns: 1fr;
    }

    .sc-format-preview {
        position: static;
    }

    .sc-event-edit-tabs {
        width: 100%;
    }

    .sc-event-edit-tabs a {
        flex: 1;
    }
}
