:root {
    --bg: #f8fafc;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --line: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --emerald: #14532d;
    --pine: #1f6b42;
    --navy: #0f172a;
    --gold: #b08922;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(20, 83, 45, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #f4f7f4 100%);
    overflow-x: hidden;
}

.app-shell-content {
    min-width: 0;
}

.surface-card {
    border-radius: 2rem;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.metric-card {
    display: flex;
    min-height: 168px;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    border-radius: 1.75rem;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    padding: 1.5rem;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.metric-card.elevated {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 244, 0.92));
}

.metric-card span,
.insight-card span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.metric-card strong,
.insight-card strong {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.metric-card em {
    font-style: normal;
    color: var(--muted);
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--pine);
}

.section-title {
    margin-top: 0.35rem;
    font-family: 'Sora', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
}

.section-copy {
    margin-top: 0.75rem;
    max-width: 48rem;
    color: var(--muted);
    line-height: 1.85;
}

.landing-shell {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(176, 137, 34, 0.1), transparent 22%),
        radial-gradient(circle at top right, rgba(20, 83, 45, 0.13), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef4ef 42%, #f8fafc 100%);
}

.landing-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.landing-command-panel {
    position: relative;
    z-index: 1;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.92));
    padding: 1rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(24px);
}

.landing-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
    opacity: 0.85;
    animation: landing-drift 11s ease-in-out infinite;
}

.landing-orb-one {
    top: -1.8rem;
    right: 3rem;
    z-index: 0;
    height: 7rem;
    width: 7rem;
    background: radial-gradient(circle at 35% 35%, rgba(176, 137, 34, 0.58), rgba(176, 137, 34, 0));
}

.landing-orb-two {
    bottom: 2rem;
    left: -1rem;
    z-index: 0;
    height: 9rem;
    width: 9rem;
    background: radial-gradient(circle at 35% 35%, rgba(20, 83, 45, 0.32), rgba(20, 83, 45, 0));
    animation-delay: 1.4s;
}

.landing-chip {
    display: grid;
    gap: 0.45rem;
    border-radius: 1.75rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.86);
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.landing-chip span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pine);
}

.landing-chip strong {
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--text);
}

.landing-stat-card {
    display: grid;
    gap: 0.4rem;
    min-height: 180px;
    border-radius: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    padding: 1.5rem;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.landing-stat-card span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.landing-stat-card strong {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1;
    color: var(--text);
}

.landing-stat-card p {
    color: var(--muted);
    line-height: 1.8;
}

.landing-club-card {
    position: relative;
    display: flex;
    min-height: 420px;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.14);
}

.landing-club-media,
.landing-club-media img,
.landing-club-overlay {
    position: absolute;
    inset: 0;
}

.landing-club-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.82));
}

.landing-club-copy {
    position: relative;
    z-index: 1;
    margin-top: auto;
    width: 100%;
    padding: 1.75rem;
}

.landing-rise {
    opacity: 0;
    transform: translateY(18px);
    animation: landing-rise 0.72s ease forwards;
}

@keyframes landing-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes landing-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, -10px, 0) scale(1.05);
    }
}

@media (max-width: 768px) {
    .landing-command-panel {
        padding: 0.75rem;
    }

    .landing-club-card {
        min-height: 360px;
    }
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.status-pill.success { background: #dcfce7; color: #166534; }
.status-pill.info { background: #e0f2fe; color: #075985; }
.status-pill.danger { background: #ffe4e6; color: #be123c; }

.insight-card,
.action-card,
.empty-state {
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: 1.25rem;
}

.action-card {
    display: grid;
    gap: 0.45rem;
}

.action-card strong { color: var(--text); }
.action-card span,
.empty-state { color: var(--muted); }

.shortcut-chip,
.builder-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #dbe3ec;
    background: #fff;
    padding: 0.8rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    transition: 180ms ease;
}

.shortcut-chip:hover,
.builder-tool:hover,
.builder-tool.active {
    border-color: var(--emerald);
    background: #ecfdf5;
    color: var(--emerald);
}

.builder-tool.ghost {
    background: #f8fafc;
}

.form-label {
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.form-input,
.form-textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid #dbe3ec;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
    color: var(--text);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(20, 83, 45, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(20, 83, 45, 0.08);
}

select.form-input {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 1.15rem) calc(50% - 2px),
        calc(100% - 0.8rem) calc(50% - 2px);
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
    padding-right: 2.8rem;
}

.pitch-shell {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #21734a 0%, #14532d 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 45px rgba(15, 23, 42, 0.12);
}

.pitch-markings {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(to bottom, transparent 49.8%, rgba(255,255,255,0.8) 50%, transparent 50.2%);
    background-size: 12.5% 100%, 100% 10%, 100% 100%;
}

.pitch-markings::before,
.pitch-markings::after {
    content: '';
    position: absolute;
    left: 50%;
    width: 130px;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.58);
    border-left: 0;
    border-right: 0;
}

.pitch-markings::before { top: 10%; height: 12%; }
.pitch-markings::after { bottom: 10%; height: 12%; }

.pitch-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    backdrop-filter: blur(8px);
}

.pitch-node.cone { background: rgba(176, 137, 34, 0.8); }
.pitch-node.arrow,
.pitch-node.path { background: rgba(15, 23, 42, 0.75); border-radius: 1rem; }
.pitch-node.zone { border-radius: 1.25rem; background: rgba(255, 255, 255, 0.14); }
.pitch-node.label { background: rgba(255, 255, 255, 0.18); }
.pitch-node.ball { background: rgba(248, 250, 252, 0.85); color: #0f172a; }

.training-builder .builder-tool {
    gap: 0.65rem;
}

.training-tool-groups {
    display: grid;
    gap: 1rem;
}

.training-tool-group {
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    padding: 1rem;
}

.training-tool-group-title {
    margin-bottom: 0.75rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.training-tool-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.training-tool-swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.training-tool-swatch.attack { background: #14532d; }
.training-tool-swatch.defend { background: #991b1b; }
.training-tool-swatch.support { background: #115e59; }
.training-tool-swatch.neutral { background: #1d4ed8; }
.training-tool-swatch.contact { background: #9a3412; }
.training-tool-swatch.warning { background: #a16207; }

.training-pitch {
    min-height: 720px;
    isolation: isolate;
}

.training-pitch::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, transparent 18%, rgba(255, 255, 255, 0.04) 36%, transparent 54%, rgba(255, 255, 255, 0.04) 72%, transparent 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.training-pitch .pitch-markings,
.training-pitch-labels {
    pointer-events: none;
}

.training-pitch-labels {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.training-pitch-labels span {
    position: absolute;
    left: 0.9rem;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.training-canvas-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.training-inspector {
    border-radius: 1.75rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    padding: 1.25rem;
}

.training-item {
    position: absolute;
    display: block;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: grab;
    transform-origin: center center;
}

.training-item:active {
    cursor: grabbing;
}

.training-item:focus-visible {
    outline: none;
}

.training-item-graphic {
    display: block;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.22));
}

.training-item-graphic svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.training-item-caption {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.28rem);
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    padding: 0.22rem 0.55rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
}

.training-item.is-selected::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.42);
}

.shortcut-chip:disabled,
.training-builder button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.tactics-builder .builder-tool {
    gap: 0.65rem;
}

.tactics-pitch {
    min-height: min(68vh, 720px);
    isolation: isolate;
}

.tactics-pitch::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07), transparent 26%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, transparent 18%, rgba(255, 255, 255, 0.04) 36%, transparent 54%, rgba(255, 255, 255, 0.04) 72%, transparent 100%);
    pointer-events: none;
}

.tactic-timeline {
    border-radius: 1.75rem;
}

.tactics-workbench {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    grid-template-columns: minmax(0, 1.22fr) 24rem;
}

.tactics-stage-panel {
    overflow: hidden;
}

.tactics-stage-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.tactics-stage-layout {
    display: grid;
    gap: 1rem;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 23rem;
}

.tactics-stage-sidebar,
.tactics-config-stack {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.tactics-config-stack {
    position: sticky;
    top: 5.75rem;
}

.tactics-stage-note-card {
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    padding: 1.1rem 1.15rem;
}

.tactic-frame-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
}

.tactic-playback-card {
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    padding: 1rem;
}

.tactic-preview-pitch {
    min-height: 220px;
}

.tactic-preview-item {
    position: absolute;
    display: block;
    background: transparent;
    pointer-events: none;
    transform-origin: center center;
}

.tactics-is-playing .tactics-item,
.tactics-pitch.is-playing .tactics-item {
    cursor: default;
}

.tactic-playback-progress {
    height: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.tactic-playback-progress span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #14532d 0%, #34d399 100%);
    transition: width 280ms ease;
}

.tactic-frame-chip {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: center;
    width: 100%;
    min-width: 230px;
    flex: 0 0 230px;
    border-radius: 1.25rem;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0.9rem 1rem;
    text-align: left;
    transition: 180ms ease;
    scroll-snap-align: start;
}

.tactic-frame-chip:hover,
.tactic-frame-chip.is-active {
    border-color: var(--emerald);
    background: #ecfdf5;
}

.tactic-frame-chip-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
}

.tactic-frame-chip.is-active .tactic-frame-chip-step {
    background: var(--emerald);
}

.tactic-frame-chip-body {
    display: grid;
    gap: 0.15rem;
}

.tactic-frame-chip-body strong {
    font-size: 0.9rem;
    color: var(--text);
}

.tactic-frame-chip-body span {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.tactics-item {
    position: absolute;
    display: block;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: grab;
    transform-origin: center center;
}

.tactics-item:active {
    cursor: grabbing;
}

.tactics-item:focus-visible {
    outline: none;
}

.tactics-item.is-selected::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.42);
}

.performance-score-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.performance-dial-card {
    border-radius: 1.75rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    padding: 1.25rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.performance-dial {
    --score-progress: 50%;
    display: inline-flex;
    width: 5rem;
    height: 5rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background:
        radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
        conic-gradient(#14532d 0 var(--score-progress), #dbe3ec var(--score-progress) 100%);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.performance-dial span {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.performance-dial small {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
}

.performance-range {
    margin-top: 1rem;
    width: 100%;
    appearance: none;
    height: 0.6rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #14532d 0%, #2a7a47 35%, #e2e8f0 35%, #e2e8f0 100%);
    outline: none;
}

.performance-range::-webkit-slider-thumb {
    appearance: none;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid #14532d;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
}

.performance-range::-moz-range-thumb {
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 999px;
    background: #ffffff;
    border: 3px solid #14532d;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
}

.performance-range::-moz-range-track {
    height: 0.6rem;
    border-radius: 999px;
    background: #e2e8f0;
}

.performance-report-row {
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: #fff;
    padding: 1rem 1rem 1.15rem;
}

.performance-report-bar {
    height: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.performance-report-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14532d 0%, #34d399 100%);
}

.rich-editor-shell {
    border-radius: 1.25rem;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    overflow: hidden;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.75rem;
}

.rich-editor-toolbar button {
    border-radius: 999px;
    border: 1px solid #dbe3ec;
    background: #ffffff;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text);
}

.rich-editor-shell .rich-editor-target {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.public-registration-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.conditional-form-section {
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    padding: 1.25rem;
}

.club-public-shell {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(176, 137, 34, 0.12), transparent 22%),
        radial-gradient(circle at top right, rgba(20, 83, 45, 0.13), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #eef5ef 38%, #f8fafc 100%);
}

.club-public-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 88%);
}

.club-public-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.76);
    padding: 0.85rem 1rem;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.club-public-chip,
.club-public-dark-chip,
.club-public-inline-status,
.club-public-rsvp-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
}

.club-public-chip {
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.club-public-command-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.92));
    padding: 1rem;
    box-shadow: 0 26px 82px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(24px);
}

.club-public-hero-media {
    display: block;
}

.club-public-banner-card,
.club-public-cta-card {
    border-radius: 2rem;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.2);
}

.club-public-banner-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(31, 107, 66, 0.78));
    padding: 1.6rem;
}

.club-public-dark-chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.club-public-stat-card {
    display: grid;
    gap: 0.45rem;
    min-height: 176px;
    border-radius: 2rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
    padding: 1.5rem;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.club-public-stat-card span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.club-public-stat-card strong {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--text);
}

.club-public-stat-card p {
    color: var(--muted);
    line-height: 1.8;
}

.club-public-story-spotlight {
    display: grid;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.club-public-story-media {
    min-height: 280px;
    background: #e2e8f0;
}

.club-public-story-media img,
.club-public-gallery-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-public-story-copy {
    padding: 1.5rem;
}

.club-public-story-card,
.club-public-event-card,
.club-public-contact-card {
    border-radius: 1.75rem;
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: 1.25rem;
}

.club-public-gallery-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #dbeafe;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.club-public-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.84));
}

.club-public-gallery-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 1.25rem;
}

.club-public-cta-card {
    background: linear-gradient(180deg, #0f172a 0%, #1f6b42 100%);
    padding: 1.8rem;
}

.club-public-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.club-public-inline-status,
.club-public-rsvp-pill {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.club-public-inline-status {
    border: 1px solid rgba(20, 83, 45, 0.12);
    background: #ecfdf5;
    color: #166534;
}

.club-public-rsvp-pill {
    border: 1px solid rgba(20, 83, 45, 0.12);
    background: #eff6ff;
    color: #1d4ed8;
}

.club-public-contact-card {
    display: grid;
    gap: 0.4rem;
}

.club-public-contact-card span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.club-public-contact-card strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.club-public-footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 2.25rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(135deg, #fff9eb 0%, #ffffff 52%, #eef6ef 100%);
    padding: 2rem;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.club-public-rise {
    opacity: 0;
    transform: translateY(18px);
    animation: landing-rise 0.72s ease forwards;
}

.club-public-hero {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    background-position: center center;
    background-size: cover;
}

.public-rich-copy :is(p, ul, ol, blockquote, h2, h3) {
    margin-top: 0.9rem;
}

.public-rich-copy :is(h2, h3) {
    font-family: 'Sora', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2;
}

.public-rich-copy ul,
.public-rich-copy ol {
    padding-left: 1.15rem;
}

.public-rich-copy li + li {
    margin-top: 0.3rem;
}

.public-rich-copy a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.public-rich-copy blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.32);
    padding-left: 0.9rem;
    color: rgba(226, 232, 240, 0.95);
}

.public-rich-copy-light :is(p, ul, ol, blockquote, h2, h3) {
    color: inherit;
}

.public-rich-copy-light a {
    color: #dcfce7;
}

.public-rich-copy-light blockquote {
    border-left-color: rgba(255, 255, 255, 0.2);
    color: rgba(226, 232, 240, 0.9);
}

.public-banner-card {
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.46));
    padding: 1.75rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(16px);
}

.lineup-pitch {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, #21734a 0%, #14532d 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 45px rgba(15, 23, 42, 0.12);
}

.public-lineup-pitch {
    min-height: 540px;
    padding-top: 4.25rem;
}

.public-lineup-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
    grid-template-columns: minmax(0, 1.18fr) minmax(15rem, 18rem);
}

.public-lineup-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.public-lineup-roster {
    display: grid;
    gap: 0.75rem;
}

.public-lineup-roster-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: center;
    border-radius: 1.25rem;
    border: 1px solid var(--line);
    background: #ffffff;
    padding: 0.9rem 1rem;
}

.public-lineup-roster-card.is-bench {
    background: #f8fafc;
}

.public-lineup-roster-number {
    display: inline-flex;
    width: 2.35rem;
    height: 2.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0f172a;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffffff;
}

.public-lineup-header {
    position: absolute;
    left: 1.25rem;
    top: 1.2rem;
    z-index: 2;
    display: grid;
    gap: 0.1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.42);
    padding: 0.7rem 0.9rem;
    backdrop-filter: blur(12px);
}

.public-lineup-header span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.88);
}

.public-lineup-header strong {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.lineup-pitch-markings {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255,255,255,0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(to bottom, transparent 49.8%, rgba(255,255,255,0.8) 50%, transparent 50.2%);
    background-size: 12.5% 100%, 100% 10%, 100% 100%;
}

.lineup-player-marker {
    position: absolute;
    display: grid;
    gap: 0.28rem;
    width: 4.8rem;
    transform: translate(-50%, -50%);
    justify-items: center;
    text-align: center;
}

.lineup-player-number {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: radial-gradient(circle at 30% 30%, rgba(31, 107, 66, 0.96), rgba(15, 23, 42, 0.95));
    font-size: 0.94rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.22);
}

.lineup-player-marker strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    max-width: 100%;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.16rem 0.42rem;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.cms-hero-image-preview {
    min-height: 240px;
    border-radius: 1.5rem;
    background-position: center center;
    background-size: cover;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 42px rgba(15, 23, 42, 0.12);
}

@media (max-width: 1024px) {
    .club-public-topbar,
    .club-public-footer-cta {
        border-radius: 2rem;
    }

    .club-public-command-panel {
        padding: 0.8rem;
    }

    .club-public-story-spotlight {
        grid-template-columns: 1fr;
    }

    .pitch-shell {
        min-height: 460px;
    }

    .training-pitch {
        min-height: 560px;
    }

    .tactics-pitch {
        min-height: 560px;
    }

    .tactics-workbench,
    .tactics-stage-layout {
        grid-template-columns: 1fr;
    }

    .tactics-config-stack {
        position: static;
    }

    .lineup-pitch {
        min-height: 500px;
    }

    .public-lineup-pitch {
        min-height: 460px;
    }

    .public-lineup-layout {
        grid-template-columns: 1fr;
    }

    .public-registration-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .club-public-topbar,
    .club-public-footer-cta {
        padding: 1rem;
    }

    .club-public-gallery-card {
        min-height: 220px;
    }

    .lineup-player-marker {
        width: 4.1rem;
    }

    .lineup-player-marker strong {
        font-size: 0.54rem;
    }
}


