/* Club overview module */

/* Legacy club overview header */
.club-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-overview {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.club-overview {
    position: relative;
}

.club-overview::before {
    content: none;
}

.overview-hero {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 100%;
    min-height: 230px;
    padding: 2rem;
}

.club-branded-hero {
    --club-brand-primary: var(--primary-color);
    --club-brand-secondary: var(--card-bg);
    --club-pattern-color: #ffffff;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--club-brand-primary) 22%, var(--card-bg)),
            color-mix(in srgb, var(--club-brand-secondary) 62%, var(--card-bg)));
}

.club-branded-hero.pattern-stripes {
    background:
        repeating-linear-gradient(90deg,
            color-mix(in srgb, var(--club-pattern-color) 12%, transparent) 0 14px,
            transparent 14px 32px),
        linear-gradient(135deg,
            color-mix(in srgb, var(--club-brand-primary) 25%, var(--card-bg)),
            color-mix(in srgb, var(--club-brand-secondary) 64%, var(--card-bg)));
}

.club-branded-hero.pattern-diagonal {
    background:
        repeating-linear-gradient(135deg,
            color-mix(in srgb, var(--club-pattern-color) 13%, transparent) 0 10px,
            transparent 10px 28px),
        linear-gradient(135deg,
            color-mix(in srgb, var(--club-brand-primary) 25%, var(--card-bg)),
            color-mix(in srgb, var(--club-brand-secondary) 64%, var(--card-bg)));
}

.club-branded-hero.pattern-diagonal-split {
    background:
        linear-gradient(135deg,
            var(--club-brand-primary) 0 50%,
            var(--club-brand-secondary) 50% 100%);
}

.club-branded-hero.pattern-vertical-split {
    background:
        linear-gradient(90deg,
            var(--club-brand-primary) 0 50%,
            var(--club-brand-secondary) 50% 100%);
}

.club-branded-hero.pattern-horizontal-split {
    background:
        linear-gradient(180deg,
            var(--club-brand-primary) 0 50%,
            var(--club-brand-secondary) 50% 100%);
}

.club-branded-hero.pattern-sash {
    background:
        linear-gradient(135deg,
            var(--club-brand-primary) 0 38%,
            var(--club-brand-secondary) 38% 52%,
            var(--club-brand-primary) 52% 100%);
}

.club-branded-hero.pattern-quartered {
    background:
        conic-gradient(from 90deg,
            var(--club-brand-primary) 0 25%,
            var(--club-brand-secondary) 25% 50%,
            var(--club-brand-primary) 50% 75%,
            var(--club-brand-secondary) 75% 100%);
}

.club-branded-hero.pattern-center-band {
    background:
        linear-gradient(180deg,
            var(--club-brand-primary) 0 35%,
            var(--club-brand-secondary) 35% 65%,
            var(--club-brand-primary) 65% 100%);
}

.club-branded-hero.pattern-corner-flash {
    background:
        linear-gradient(135deg,
            var(--club-brand-secondary) 0 22%,
            var(--club-brand-primary) 22% 100%);
}

.club-branded-hero.pattern-chevron {
    background:
        linear-gradient(135deg,
            transparent 0 44%,
            var(--club-brand-secondary) 44% 56%,
            transparent 56% 100%),
        var(--club-brand-primary);
}

.club-branded-hero.frame-simple {
    border: 1px solid var(--club-brand-secondary);
}

.club-branded-hero.frame-double {
    border: 1px solid var(--club-brand-secondary);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.28);
}

.club-branded-hero.frame-thick {
    border: 4px solid var(--club-brand-secondary);
}

.club-branded-hero.frame-inner-glow {
    box-shadow:
        inset 0 0 36px rgba(255, 255, 255, 0.14),
        0 18px 40px rgba(0, 0, 0, 0.28);
}

.club-branded-hero.frame-side-bars {
    border-left: 8px solid var(--club-brand-primary);
    border-right: 8px solid var(--club-brand-secondary);
}

.club-branded-hero.frame-badge-frame {
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 18px 44px rgba(0, 0, 0, 0.32);
}

.club-branded-hero.frame-modern-glass {
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 20px 48px rgba(0, 0, 0, 0.34);
}

.club-themed-card {
    --club-card-frame-color: var(--club-brand-secondary);
    position: relative;
    overflow: hidden;
}

.club-themed-card.frame-simple {
    border: 1px solid color-mix(in srgb, var(--club-card-frame-color) 58%, var(--border-color));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 46%, transparent),
        inset 0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 18%, transparent);
}

.club-themed-card.frame-double {
    border: 1px solid color-mix(in srgb, var(--club-card-frame-color) 62%, var(--border-color));
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 58%, transparent),
        0 0 0 4px color-mix(in srgb, var(--club-card-frame-color) 22%, transparent),
        inset 0 0 0 2px color-mix(in srgb, var(--club-card-frame-color) 46%, transparent),
        0 10px 26px rgba(0, 0, 0, 0.20);
}

.club-themed-card.frame-thick {
    border: 3px solid var(--club-card-frame-color);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 38%, transparent),
        0 10px 26px rgba(0, 0, 0, 0.18);
}

.club-themed-card.frame-inner-glow {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 40%, transparent),
        inset 0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 48%, transparent),
        inset 0 0 34px color-mix(in srgb, var(--club-card-frame-color) 24%, transparent),
        0 10px 26px rgba(0, 0, 0, 0.20);
}

.club-themed-card.frame-side-bars {
    border-left: 4px solid var(--club-card-frame-color);
    border-right: 4px solid var(--club-card-frame-color);
}

.club-themed-card.frame-badge-frame {
    border: 1px solid color-mix(in srgb, var(--club-card-frame-color) 50%, rgba(255, 255, 255, 0.18));
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 22%, rgba(255, 255, 255, 0.08)),
        0 10px 26px rgba(0, 0, 0, 0.22);
}

.club-themed-card.frame-modern-glass {
    border: 1px solid color-mix(in srgb, var(--club-card-frame-color) 44%, rgba(255, 255, 255, 0.18));
    backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--club-card-frame-color) 18%, rgba(255, 255, 255, 0.12)),
        0 12px 30px rgba(0, 0, 0, 0.24);
}

.club-branded-hero.has-background-image {
    background-image: var(--club-hero-background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.club-branded-hero.has-background-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg,
            rgba(15, 15, 15, 0.58) 0%,
            rgba(15, 15, 15, 0.18) 50%,
            rgba(15, 15, 15, 0.58) 100%);
    pointer-events: none;
}

.club-branded-hero .overview-club-title,
.club-branded-hero .overview-meta-line,
.club-branded-hero .overview-kicker-label,
.club-branded-hero .overview-hero-aside,
.club-branded-hero .text-muted {
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.76),
        0 1px 2px rgba(0, 0, 0, 0.92);
}

.club-branded-hero.has-background-image .overview-club-title,
.club-branded-hero.has-background-image .overview-meta-line,
.club-branded-hero.has-background-image .overview-kicker-label,
.club-branded-hero.has-background-image .overview-hero-aside,
.club-branded-hero.has-background-image .text-muted {
    color: #ffffff;
    text-shadow:
        0 3px 14px rgba(0, 0, 0, 0.82),
        0 1px 3px rgba(0, 0, 0, 0.96);
}

.overview-hero-main {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    flex: 1 1 520px;
    align-items: stretch;
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

.overview-club-mark {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.overview-club-logo-link {
    display: inline-flex;
    flex: 0 0 auto;
    color: inherit;
    text-decoration: none;
    border-radius: 30px;
}

.overview-club-logo-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.overview-club-logo {
    width: clamp(82px, 12vw, 136px);
    height: clamp(82px, 12vw, 136px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-color);
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color) 55%, white));
    box-shadow: 0 18px 38px rgba(var(--primary-color-rgb), 0.26);
    overflow: hidden;
}

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

.overview-club-logo.has-logo {
    background: transparent;
    box-shadow: none;
}

.overview-club-identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
}

.overview-club-title {
    font-size: 2.75rem;
    line-height: 1.04;
    font-weight: 900;
    max-width: min(18ch, 100%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.overview-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 0.9rem;
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.overview-meta-line span {
    display: inline-flex;
    align-items: center;
}

.overview-next-match {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.overview-hero-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-left: auto;
    min-width: 420px;
    flex: 0 1 260px;
    position: relative;
    z-index: 2;
}

.overview-hero-aside {
    align-self: flex-end;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--club-brand-primary) 28%, var(--border-color));
    background: color-mix(in srgb, var(--card-bg) 76%, transparent);
    text-align: right;
}

.overview-hero-aside strong {
    font-size: 1.2rem;
    line-height: 1.15;
}

.overview-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
}

.club-logo-upload-btn {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.club-logo-upload-btn input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.club-achievement-showcase {
    position: relative;
    overflow: visible;
    padding: 0;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.club-achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
}

.club-achievement-slot {
    --achievement-display-width: 136px;
    --achievement-display-height: 212px;
    --achievement-display-bottom: 140px;
    --achievement-pedestal-width: 230px;
    --achievement-pedestal-height: 198px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 410px;
    overflow: hidden;
    padding: 0.85rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    scroll-snap-align: start;
}

.club-achievement-slot.is-empty {
    border-color: transparent;
}

.club-achievement-spotlight {
    position: absolute;
    left: 50%;
    top: -18px;
    width: 76%;
    height: 72%;
    transform: translateX(-50%);
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    opacity: 0.22;
    pointer-events: none;
    z-index: 3;
}

.club-achievement-stage {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    width: 100%;
    min-height: 348px;
    padding-top: 0.5rem;
}

.club-achievement-display {
    position: absolute;
    left: 50%;
    bottom: var(--achievement-display-bottom);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--achievement-display-width);
    height: var(--achievement-display-height);
    transform: translateX(-50%);
    z-index: 2;
}

.club-achievement-banner {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter:
        drop-shadow(0 10px 14px rgba(0, 0, 0, 0.32)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

.club-achievement-medal {
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 900;
    color: color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 86%, white);
    background: color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 16%, transparent);
    border: 1px solid color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 36%, transparent);
}

.club-achievement-silhouette {
    position: relative;
    width: 3.6rem;
    height: 4.1rem;
    opacity: 0.56;
}

.club-achievement-silhouette::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.15rem;
    width: 2.25rem;
    height: 2.5rem;
    transform: translateX(-50%);
    border-radius: 42% 42% 46% 46%;
    border: 2px solid color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 45%, var(--text-muted));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 20%, transparent), transparent 70%);
}

.club-achievement-silhouette::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 2.8rem;
    height: 0.75rem;
    transform: translateX(-50%);
    border-radius: 999px 999px 6px 6px;
    background: color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 26%, var(--border-color));
}

.club-achievement-pedestal {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: var(--achievement-pedestal-width);
    height: var(--achievement-pedestal-height);
    transform: translateX(-50%);
    background: url("../../assets/podest-transparent.png") center bottom / contain no-repeat;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.club-achievement-plaque {
    position: relative;
    z-index: 2;
    display: flex;
    align-self: center;
    width: min(calc(100% - 1rem), 152px);
    min-height: 0;
    aspect-ratio: 305 / 139;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    margin-top: -5.2rem;
    padding: 0.3rem 0.52rem;
    border: 0;
    background: url("../../assets/shield.png") center / 100% 100% no-repeat;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
    text-align: center;
}

.club-achievement-plaque strong {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.club-achievement-plaque strong {
    color: #f7f1df;
    font-size: 1.04rem;
    line-height: 1.15;
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.7),
        0 -1px 0 rgba(255, 255, 255, 0.18);
}

.club-achievement-collection {
    display: grid;
    gap: 1rem;
}

.club-achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.club-achievement-list-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.club-achievement-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    color: color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 82%, white);
    background: color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 17%, transparent);
    border: 1px solid color-mix(in srgb, var(--club-brand-secondary, var(--primary-color)) 34%, transparent);
    font-weight: 900;
}

.club-achievement-list-item strong,
.club-achievement-list-item span,
.club-achievement-list-item small {
    display: block;
    min-width: 0;
}

.club-achievement-list-item strong {
    color: var(--text-color);
}

.club-achievement-list-item span,
.club-achievement-list-item small {
    margin-top: 0.15rem;
    color: var(--text-muted);
}

.club-achievement-empty {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.025);
}

.club-achievement-empty strong {
    color: var(--text-color);
}

.club-computed-achievement-book {
    display: grid;
    gap: 1rem;
}

.club-computed-achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.club-computed-achievement-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.club-computed-achievement-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-muted);
    cursor: pointer;
}

.club-computed-achievement-filter.is-active {
    border-color: rgba(69, 190, 125, 0.55);
    background: rgba(69, 190, 125, 0.16);
    color: var(--text-color);
}

.club-computed-achievement-filter strong {
    color: inherit;
    font-size: 0.75rem;
}

.club-computed-achievement-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
}

.club-computed-achievement-item.is-locked {
    opacity: 0.72;
}

.club-computed-achievement-icon {
    width: 44px;
    height: 75px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    font-weight: 800;
    font-size: 0.74rem;
    text-align: center;
    overflow-wrap: anywhere;
}

.club-computed-achievement-icon.has-image {
    padding: 0;
    overflow: hidden;
}

.club-computed-achievement-icon.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.club-computed-achievement-item.is-unlocked .club-computed-achievement-icon {
    background: rgba(69, 190, 125, 0.2);
    color: #bdf3d1;
}

.club-computed-achievement-body {
    min-width: 0;
    display: grid;
    gap: 0.45rem;
}

.club-computed-achievement-title-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.club-computed-achievement-title-row strong {
    min-width: 0;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.club-computed-achievement-title-row span,
.club-computed-achievement-meta span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.club-computed-achievement-body p,
.club-computed-achievement-body small {
    margin: 0;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.club-computed-achievement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
}

.club-computed-achievement-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.11);
}

.club-computed-achievement-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #45be7d, #7bd88f);
}

.club-achievement-room-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.club-achievement-room-note {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
}

.club-achievement-room-note strong {
    color: var(--text-color);
}

.club-achievement-room-note span {
    color: var(--text-muted);
}

.club-achievement-editor {
    display: grid;
    gap: 1rem;
}

.club-achievement-editor-form {
    display: grid;
    gap: 1rem;
}

.club-achievement-editor-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.club-achievement-editor-slot {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.club-achievement-editor-slot span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.club-achievement-editor-slot select {
    width: 100%;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--border-color) 88%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-bg) 78%, var(--panel-bg, #111));
    color: var(--text-color);
    padding: 0.62rem 0.7rem;
    font: inherit;
}

.club-achievement-editor-actions {
    display: flex;
    justify-content: flex-end;
}

.club-achievement-editor-error {
    margin: 0;
    color: var(--danger-color, #ef4444);
    font-weight: 700;
}

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

.overview-metric-card {
    --tile-status: var(--primary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 190px;
    overflow: hidden;
    border-color: rgba(var(--primary-color-rgb), 0.18);
    background: var(--card-bg);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.overview-metric-card::before {
    content: none;
}

.overview-metric-card::after {
    content: none;
}

.overview-metric-card[role="button"]:hover,
.overview-metric-card[role="button"]:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-color-rgb), 0.38);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
    outline: none;
}

.overview-metric-card.status-success {
    --tile-status: #38b86c;
}

.overview-metric-card.status-warning {
    --tile-status: #f0ab00;
}

.overview-metric-card.status-danger {
    --tile-status: #dc5353;
}

.overview-metric-card.status-info {
    --tile-status: #3b82f6;
}

.overview-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -1.5rem -1.5rem 0;
    min-height: 0;
    padding: 0.72rem 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 58%, rgba(0, 0, 0, 0.12)),
        rgba(28, 29, 28, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    position: relative;
    z-index: 2;
}

.card-header-pattern {
    position: relative;
    overflow: hidden;
}

.card-header-pattern::before {
    content: "";
    position: absolute;
    inset: -22px -18px;
    pointer-events: none;
    opacity: 0.34;
    background-image:
        linear-gradient(135deg, transparent 0 43%, rgba(255, 255, 255, 0.115) 44%, transparent 45% 100%),
        linear-gradient(45deg, transparent 0 43%, rgba(255, 255, 255, 0.085) 44%, transparent 45% 100%),
        linear-gradient(135deg, transparent 0 58%, rgba(0, 0, 0, 0.20) 59%, transparent 61% 100%);
    background-size:
        128px 128px,
        128px 128px,
        96px 96px;
    background-position:
        10px -52px,
        62px -28px,
        -20px -36px;
}

.card-header-pattern::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 26%, transparent 74%, rgba(0, 0, 0, 0.14)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 48%);
    opacity: 0.55;
}

.card-header-pattern>* {
    position: relative;
    z-index: 2;
}

.overview-card-head h3 {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 0;
}

.overview-status-badge {
    border-radius: 999px;
    padding: 0.22rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 800;
    color: color-mix(in srgb, var(--tile-status) 78%, white);
    background: color-mix(in srgb, var(--tile-status) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--tile-status) 28%, transparent);
    white-space: nowrap;
}

.overview-tile-watermark {
    position: absolute;
    right: 0.8rem;
    bottom: 0.3rem;
    font-size: 4.6rem;
    line-height: 1;
    font-weight: 900;
    color: rgba(var(--primary-color-rgb), 0.06);
    pointer-events: none;
    font-family: "Trebuchet MS", Arial, sans-serif;
}

.overview-tile-art {
    position: absolute;
    right: 50%;
    bottom: 50%;
    transform: translate(50%, 50%);
    width: min(62%, 13rem);
    aspect-ratio: 1;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.overview-tile-art--light {
    display: none;
}

.overview-tile-art::before {
    content: none;
}

.overview-tile-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 900;
    color: color-mix(in srgb, var(--tile-status) 82%, white);
    background: color-mix(in srgb, var(--tile-status) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--tile-status) 30%, transparent);
}

.overview-card-body::before,
.overview-card-foot::before {
    content: none;
}

.overview-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-height: 74px;
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}

.overview-card-foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 2;
}

.external-overview-metric-action {
    margin-top: 0.75rem;
}

.external-overview-metric-action .btn {
    width: 100%;
}

.overview-metric {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.overview-kicker-label {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.overview-mini-stats,
.overview-list-inline {
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.overview-mini-stats span,
.overview-list-inline span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.overview-mini-stats strong,
.overview-list-inline strong {
    white-space: nowrap;
}

.overview-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.overview-action-list,
.overview-event-list,
.overview-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overview-secondary-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
}

.overview-secondary-card>.section-split {
    margin: -1.5rem -1.5rem 1rem;
    padding: 1rem 1.5rem;
    background: color-mix(in srgb, var(--card-bg) 88%, #000000);
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.overview-secondary-card>.section-split h3 {
    font-size: 0.92rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.overview-secondary-card>.section-split p {
    margin-top: 0.35rem;
}

.overview-secondary-card>.overview-card-head {
    margin-bottom: 1rem;
}

.club-league-table-card {
    margin-top: 1rem;
    background: var(--card-bg);
}

.club-league-table-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr);
    gap: 1rem;
    align-items: center;
}

.club-league-table-card-stats {
    gap: 0.55rem;
    font-size: 1rem;
}

.club-league-table-card-stats span {
    font-size: 1rem;
}

.club-league-table-card-stats strong,
.club-league-table-link {
    font-size: 1.06rem;
    font-weight: 850;
}

.club-league-table-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: color-mix(in srgb, var(--club-brand-primary) 82%, #ffffff);
    cursor: pointer;
    text-align: right;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.club-league-table-link:hover,
.club-league-table-link:focus-visible {
    color: color-mix(in srgb, var(--club-brand-secondary) 70%, #ffffff);
    outline: none;
}

.club-league-table-preview {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    margin-top: 1rem;
    min-width: 0;
}

.club-league-table-preview-row {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem 2.4rem;
    gap: 0.6rem;
    align-items: center;
    padding: 0.48rem 0.65rem;
    border-radius: 8px;
    color: var(--text-color);
    background: color-mix(in srgb, var(--card-bg) 86%, #ffffff);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.club-league-table-preview-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-league-table-preview-head {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent;
    border-color: transparent;
    padding-top: 0;
    padding-bottom: 0.18rem;
}

.club-league-table-preview-row.is-target {
    color: color-mix(in srgb, var(--club-brand-primary) 78%, #ffffff);
    background: color-mix(in srgb, var(--club-brand-primary) 14%, var(--card-bg));
    border-color: color-mix(in srgb, var(--club-brand-secondary) 46%, transparent);
}

.club-league-table-empty {
    margin-top: 1rem;
}

.club-manager-word-statement {
    padding: 0.35rem 0 0.1rem;
}

.club-manager-word-statement-title {
    margin: 0 0 0.45rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.club-manager-word-statement-quote blockquote {
    color: color-mix(in srgb, var(--club-brand-primary) 82%, #ffffff);
    font-size: clamp(1.05rem, 0.9vw + 0.9rem, 1.35rem);
    font-weight: 800;
    line-height: 1.45;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

.club-manager-word-statement-quote figcaption {
    margin-top: 0.65rem;
}

.club-comment-wall {
    margin-top: 1.1rem;
}

.club-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.club-comment-management {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--border-color) 78%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-bg) 86%, var(--panel-bg, #111));
}

.club-comment-management-label {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
}

.club-comment-management .text-muted {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.12rem;
}

.club-comment-management-btn {
    border: 1px solid color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 34%, var(--border-color));
    border-radius: 999px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.42rem 0.78rem;
}

.club-comment-management-btn:hover,
.club-comment-management-btn:focus-visible {
    background: color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 10%, transparent);
    outline: none;
}

.club-comment-management-btn:disabled {
    cursor: wait;
    opacity: 0.62;
}

.club-comment-moderation {
    margin-bottom: 0.9rem;
    padding: 0.8rem 0.85rem;
    border: 1px dashed color-mix(in srgb, var(--border-color) 84%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-bg) 76%, transparent);
}

.club-comment-moderation-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.65rem;
}

.club-comment-moderation-head strong {
    color: var(--text-color);
    font-size: 0.9rem;
}

.club-hidden-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.club-hidden-comment-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid color-mix(in srgb, var(--border-color) 62%, transparent);
}

.club-hidden-comment-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.club-hidden-comment-item:last-child {
    padding-bottom: 0;
}

.club-hidden-comment-copy {
    min-width: 0;
}

.club-hidden-comment-copy strong,
.club-hidden-comment-copy span,
.club-hidden-comment-copy small {
    display: block;
}

.club-hidden-comment-copy strong {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.25;
}

.club-hidden-comment-copy span,
.club-hidden-comment-copy small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.1rem;
}

.club-hidden-comment-copy p {
    margin: 0.42rem 0 0;
    color: var(--text-color);
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.club-comment-moderation-state {
    padding: 0.75rem 0.85rem;
}

.club-comment-textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 82px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border-color) 88%, transparent);
    background: color-mix(in srgb, var(--card-bg) 78%, var(--panel-bg, #111));
    color: var(--text-color);
    padding: 0.75rem 0.85rem;
    font: inherit;
    line-height: 1.45;
}

.club-comment-textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 48%, transparent);
    outline-offset: 2px;
}

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

.club-comment-form .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.club-comment-counter {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.club-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.club-comment-item {
    position: relative;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--border-color) 76%, transparent);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 7%, transparent), transparent 36%),
        color-mix(in srgb, var(--card-bg) 82%, var(--panel-bg, #111));
    padding: 0.85rem 0.95rem 0.85rem 1rem;
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.club-comment-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 2px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 62%, transparent);
    opacity: 0.55;
}

.club-comment-item:hover {
    border-color: color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 28%, var(--border-color));
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 10%, transparent), transparent 38%),
        color-mix(in srgb, var(--card-bg) 88%, var(--panel-bg, #111));
}

.club-comment-state {
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--border-color) 86%, transparent);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 44%),
        color-mix(in srgb, var(--panel-bg, #111) 88%, var(--card-bg));
    padding: 0.9rem 1rem;
}

.club-comment-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
    background: transparent;
    border: 0;
    padding: 0;
}

.club-comment-author-block {
    flex: 1 1 auto;
    min-width: 0;
}

.club-comment-author {
    display: block;
    max-width: 100%;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-comment-meta {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.12rem;
    overflow-wrap: anywhere;
}

.club-comment-body {
    margin: 0.45rem 0 0;
    color: var(--text-color);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.club-comment-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0;
}

.club-comment-action-btn {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.12rem 0;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.club-comment-action-btn:hover,
.club-comment-action-btn:focus-visible {
    color: var(--club-brand-primary, var(--primary-color));
    outline: none;
    text-decoration-color: currentColor;
}

.club-comment-action-btn:disabled {
    cursor: wait;
    opacity: 0.6;
    text-decoration: none;
}

.club-comment-state {
    color: var(--text-muted);
}

.club-comment-disabled {
    margin-bottom: 0.85rem;
    border-style: dashed;
}

.club-comment-error {
    color: var(--danger-color, #ef4444);
}

.overview-tasks-card {
    background: var(--card-bg);
}

.overview-tasks-card::before {
    content: none;
}

.overview-tasks-card .section-split {
    position: relative;
}

.overview-tasks-card .overview-action-list {
    gap: 0.25rem;
}

.overview-tasks-card .overview-action-list.is-quiet {
    margin-top: -0.15rem;
}

.overview-action-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--panel-bg, #111) 88%, white);
}

.overview-action-item.tone-warning {
    border-color: rgba(240, 171, 0, 0.45);
    background: rgba(240, 171, 0, 0.08);
}

.overview-action-item.tone-danger {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.08);
}

.overview-action-item.tone-info {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
}

.overview-action-item.tone-success {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.overview-action-item p {
    color: var(--text-muted);
}

.overview-tasks-card .overview-action-item {
    padding: 0.82rem 0 0.82rem 1.2rem;
    border: 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: transparent;
}

.overview-tasks-card .overview-action-list.is-quiet .overview-action-item {
    padding-top: 0.45rem;
    padding-bottom: 0.2rem;
    border-bottom: 0;
}

.overview-tasks-card .overview-action-list.is-quiet .overview-action-item p {
    margin-bottom: 0;
}

.overview-tasks-card .overview-action-item::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 1.08rem;
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.48);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.08);
}

.overview-tasks-card .overview-action-item:last-child {
    border-bottom: 0;
}

.overview-tasks-card .overview-action-item strong {
    display: inline;
}

.overview-event-item,
.overview-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--panel-bg, #111) 92%, white);
    border: 1px solid var(--border-color);
}

.overview-facts-list {
    gap: 0;
}

.overview-fact-row {
    padding: 0.88rem 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 0;
    background: transparent;
}

.overview-fact-row:last-child {
    border-bottom: 0;
}

.overview-fact-row>span:first-child {
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.overview-fact-row .btn {
    padding: 0.34rem 0.62rem;
    min-height: 0;
    border-radius: 999px;
    font-size: 0.78rem;
}

.overview-fact-row.is-clickable {
    cursor: pointer;
    transition: background 0.18s ease, padding-inline 0.18s ease;
}

.overview-fact-row.is-clickable:hover,
.overview-fact-row.is-clickable:focus-visible {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    background: rgba(var(--primary-color-rgb), 0.06);
    outline: none;
}

body.light-mode .overview-action-item,
body.light-mode .overview-event-item,
body.light-mode .overview-summary-row {
    background: #f8fafc;
    color: #23303d;
    border-color: #d8e0e8;
}

body.light-mode .club-achievement-slot {
    background: transparent;
    color: #23303d;
    border-color: transparent;
}

body.light-mode .club-achievement-pedestal {
    filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.16));
}

body.light-mode .overview-fact-row {
    background: transparent;
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

body.light-mode .overview-metric-card {
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

body.light-mode .overview-card-head {
    background: #f1f5f9;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .overview-secondary-card {
    background: #ffffff;
}

body.light-mode .overview-secondary-card>.section-split {
    background: #f1f5f9;
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .club-manager-word-statement-quote blockquote {
    color: color-mix(in srgb, var(--club-brand-primary) 76%, #111827);
    text-shadow: none;
}

body.light-mode .club-comment-textarea,
body.light-mode .club-comment-state {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.018), transparent 44%),
        #f8fafc;
    border-color: #d8e0e8;
}

body.light-mode .club-comment-textarea {
    background: #ffffff;
}

body.light-mode .club-comment-management {
    background: #ffffff;
    border-color: #d8e0e8;
}

body.light-mode .club-comment-moderation {
    background: #ffffff;
    border-color: #d8e0e8;
}

body.light-mode .club-achievement-editor-slot select {
    background: #ffffff;
    border-color: #d8e0e8;
}

body.light-mode .club-comment-item {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 6%, transparent), transparent 36%),
        #ffffff;
    border-color: #d8e0e8;
}

body.light-mode .club-comment-item:hover {
    border-color: color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 26%, #cbd5e1);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--club-brand-primary, var(--primary-color)) 8%, transparent), transparent 38%),
        #ffffff;
}

body.light-mode .overview-card-foot {
    border-top-color: rgba(15, 23, 42, 0.08);
}

body.light-mode .club-themed-card.frame-simple,
body.light-mode .club-themed-card.frame-double,
body.light-mode .club-themed-card.frame-badge-frame,
body.light-mode .club-themed-card.frame-modern-glass {
    border-color: color-mix(in srgb, var(--club-card-frame-color) 52%, #cbd5e1);
}

body.light-mode .club-themed-card.frame-badge-frame,
body.light-mode .club-themed-card.frame-modern-glass {
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.05),
        0 10px 24px rgba(15, 23, 42, 0.08);
}

body.light-mode .club-themed-card.frame-double {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 52%, transparent),
        0 0 0 4px color-mix(in srgb, var(--club-card-frame-color) 18%, transparent),
        inset 0 0 0 2px color-mix(in srgb, var(--club-card-frame-color) 36%, transparent),
        0 10px 24px rgba(15, 23, 42, 0.08);
}

body.light-mode .club-themed-card.frame-inner-glow {
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 34%, transparent),
        inset 0 0 0 1px color-mix(in srgb, var(--club-card-frame-color) 38%, transparent),
        inset 0 0 34px color-mix(in srgb, var(--club-card-frame-color) 18%, transparent),
        0 10px 24px rgba(15, 23, 42, 0.08);
}

body.light-mode .overview-tile-watermark {
    color: rgba(var(--primary-color-rgb), 0.075);
}

body.light-mode .overview-tile-art--dark {
    display: none;
}

body.light-mode .overview-tile-art--light {
    display: block;
    opacity: 0.045;
}

body.light-mode .overview-tasks-card {
    background: #ffffff;
}

body.light-mode .overview-tasks-card::before {
    content: none;
}

body.light-mode .overview-tasks-card .overview-action-item {
    background: transparent;
    border-bottom-color: rgba(15, 23, 42, 0.1);
}

body.light-mode .overview-tasks-card .overview-action-item::before {
    background: rgba(var(--primary-color-rgb), 0.5);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.08);
}

body.light-mode .overview-action-item p,
body.light-mode .overview-action-item strong,
body.light-mode .overview-event-item,
body.light-mode .overview-summary-row {
    color: #23303d;
}

body.light-mode .overview-action-item.tone-warning {
    border-color: rgba(240, 171, 0, 0.38);
    background: #fff4db;
}

body.light-mode .overview-action-item.tone-danger {
    border-color: rgba(220, 38, 38, 0.3);
    background: #fde8e8;
}

body.light-mode .overview-action-item.tone-info {
    border-color: rgba(59, 130, 246, 0.28);
    background: #eaf3ff;
}

body.light-mode .overview-action-item.tone-success {
    border-color: rgba(34, 197, 94, 0.28);
    background: #e9f9ef;
}

.overview-summary-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.overview-manager-word-inline {
    flex: 1;
    min-width: min(100%, 260px);
}

.overview-manager-word-inline #manager-word-display {
    flex: 1 1 220px;
}

.overview-manager-word-inline #manager-word-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.overview-manager-word-inline textarea {
    width: 100%;
    min-width: 220px;
}

.overview-league-feed-card {
    background: var(--card-bg);
}

.overview-league-feed-card::before {
    content: none;
}

.overview-league-feed-card>* {
    position: relative;
}

.overview-event-item {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.9rem;
    background: rgba(255, 255, 255, 0.035);
}

.overview-event-badge {
    min-width: 6.6rem;
    padding: 0.28rem 0.45rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.overview-event-item.type-transfer .overview-event-badge {
    border-color: rgba(56, 189, 248, 0.32);
    background: rgba(56, 189, 248, 0.12);
}

.overview-event-item.type-injury .overview-event-badge {
    border-color: rgba(248, 113, 113, 0.34);
    background: rgba(248, 113, 113, 0.12);
}

.overview-event-item.type-suspension .overview-event-badge,
.overview-event-item.type-relegation .overview-event-badge {
    border-color: rgba(251, 146, 60, 0.36);
    background: rgba(251, 146, 60, 0.13);
}

.overview-event-item.type-league .overview-event-badge {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(34, 197, 94, 0.12);
}

.overview-event-item.type-promotion .overview-event-badge,
.overview-event-item.type-champion .overview-event-badge,
.overview-event-item.type-cup .overview-event-badge {
    border-color: rgba(250, 204, 21, 0.36);
    background: rgba(250, 204, 21, 0.13);
}

.overview-event-item.type-club .overview-event-badge {
    border-color: rgba(var(--primary-color-rgb), 0.34);
    background: rgba(var(--primary-color-rgb), 0.12);
}

.overview-event-copy {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.overview-event-copy strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.overview-event-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.overview-event-copy span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.light-mode .overview-league-feed-card::before {
    content: none;
}

body.light-mode .overview-event-item {
    background: #f8fafc;
}

body.light-mode .overview-event-badge,
body.light-mode .overview-event-copy strong {
    color: #23303d;
}

.club-frame-none .club-themed-card::after,
.club-frame-none .overview-metric-card::before,
.club-frame-none .overview-tasks-card::before,
.club-frame-none .overview-league-feed-card::before {
    content: none;
}

.club-frame-none .overview-facts-list {
    border-top: 0;
}

.club-frame-none .club-achievement-showcase,
.club-frame-none .club-achievement-slot {
    border-color: transparent;
}

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

    .overview-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .overview-hero {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        min-height: 0;
    }

    .overview-hero-main {
        width: 100%;
        align-items: flex-start;
        flex-basis: 100%;
    }

    .overview-hero-side.has-aside:not(.has-actions) {
        display: none;
    }

    .overview-hero-side.has-actions .overview-hero-aside {
        display: none;
    }

    .overview-hero-actions {
        justify-content: flex-start;
    }

    .overview-hero-side {
        align-items: stretch;
        margin-left: 0;
        min-width: 0;
        width: 100%;
    }

    .overview-hero-aside {
        align-self: stretch;
        text-align: left;
    }

    .club-achievement-grid {
        grid-template-columns: repeat(4, minmax(calc((100% - 1.3rem) / 3), 1fr));
        gap: 0.65rem;
        scroll-snap-type: x proximity;
    }

    .club-achievement-slot {
        min-height: 410px;
        padding: 0.58rem;
        border-radius: 12px;
    }

    .club-achievement-stage {
        min-height: 348px;
    }

    .club-achievement-silhouette {
        width: 2.8rem;
        height: 3.2rem;
    }

    .club-achievement-silhouette::before {
        width: 1.75rem;
        height: 1.95rem;
    }

    .club-achievement-silhouette::after {
        width: 2.25rem;
        height: 0.62rem;
    }

    .club-achievement-plaque {
        margin-top: -2.2rem;
        padding: 0.3rem 0.52rem;
    }

    .club-achievement-plaque strong {
        font-size: 1.04rem;
    }

}

@media (max-width: 640px) {
    .overview-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .overview-hero {
        padding: 1.2rem;
    }

    .overview-club-mark {
        width: 100%;
        align-items: center;
        gap: 0.85rem;
    }

    .overview-club-logo {
        width: clamp(68px, 23vw, 96px);
        height: clamp(68px, 23vw, 96px);
        border-radius: 22px;
        font-size: 1.45rem;
    }

    .overview-club-title {
        font-size: clamp(1.45rem, 7vw, 2rem);
        max-width: none;
        width: 100%;
    }

    .overview-club-identity {
        width: 100%;
    }

    .overview-meta-line {
        gap: 0.45rem;
        font-size: 0.84rem;
    }

    .overview-meta-line span {
        flex: 1 1 100%;
    }

    .overview-metric-card {
        min-width: 0;
    }

    .overview-card-head {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .club-league-table-card-body {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .overview-mini-stats,
    .overview-list-inline {
        gap: 0.5rem;
    }

    .club-achievement-grid {
        grid-template-columns: repeat(4, minmax(calc((100% - 0.65rem) / 2), 1fr));
    }

    .club-achievement-slot {
        min-height: 410px;
        padding: 0.55rem;
    }

    .club-achievement-stage {
        min-height: 348px;
    }

    .club-achievement-plaque {
        margin-top: -2.2rem;
        padding: 0.3rem 0.52rem;
    }

    .overview-action-item,
    .overview-event-item,
    .overview-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .overview-event-badge {
        min-width: 0;
    }

    .overview-summary-inline {
        justify-content: flex-start;
        width: 100%;
    }

    .overview-summary-inline .btn {
        width: 100%;
    }

    .club-comment-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .club-comment-management {
        align-items: stretch;
        flex-direction: column;
    }

    .club-comment-management-btn {
        width: 100%;
    }

    .club-comment-moderation-head,
    .club-hidden-comment-item {
        align-items: stretch;
        flex-direction: column;
    }

    .club-comment-actions {
        justify-content: flex-start;
    }

    .overview-action-item .btn {
        width: 100%;
    }
}
