*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #060a14;
    --bg-nav: rgba(8, 12, 24, 0.7);
    --text: #d0d3da;
    --text-muted: #5a6178;
    --accent: #e0a840;
    --accent-glow: #f0c96e;
    --line-color: #5b8db8;
    --star-label: #a0c4e8;
    --nav-link: #7880a0;
    --nav-hover: #e0a840;
    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
}

html {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Starfield ── */
.starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.starfield::before,
.starfield::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 0;
}

.starfield::before {
    width: 1px;
    height: 1px;
    box-shadow:
        24vw 8vh 0 0 rgba(255,255,255,0.5),
        87vw 14vh 0 0 rgba(255,255,255,0.3),
        15vw 23vh 0 0 rgba(255,255,255,0.6),
        52vw 31vh 0 0 rgba(255,255,255,0.4),
        78vw 42vh 0 0 rgba(255,255,255,0.5),
        8vw 55vh 0 0 rgba(255,255,255,0.3),
        42vw 67vh 0 0 rgba(255,255,255,0.6),
        91vw 72vh 0 0 rgba(255,255,255,0.4),
        63vw 85vh 0 0 rgba(255,255,255,0.5),
        33vw 93vh 0 0 rgba(255,255,255,0.3),
        71vw 5vh 0 0 rgba(255,255,255,0.4),
        5vw 38vh 0 0 rgba(255,255,255,0.6),
        95vw 61vh 0 0 rgba(255,255,255,0.3),
        47vw 18vh 0 0 rgba(255,255,255,0.5),
        29vw 79vh 0 0 rgba(255,255,255,0.4),
        82vw 88vh 0 0 rgba(255,255,255,0.5),
        18vw 47vh 0 0 rgba(255,255,255,0.3),
        56vw 53vh 0 0 rgba(255,255,255,0.6),
        38vw 11vh 0 0 rgba(255,255,255,0.4),
        69vw 28vh 0 0 rgba(255,255,255,0.5),
        12vw 69vh 0 0 rgba(255,255,255,0.3),
        84vw 35vh 0 0 rgba(255,255,255,0.5),
        44vw 76vh 0 0 rgba(255,255,255,0.4),
        97vw 48vh 0 0 rgba(255,255,255,0.3),
        3vw 91vh 0 0 rgba(255,255,255,0.5),
        61vw 3vh 0 0 rgba(255,255,255,0.4),
        76vw 58vh 0 0 rgba(255,255,255,0.6),
        22vw 34vh 0 0 rgba(255,255,255,0.3),
        50vw 44vh 0 0 rgba(255,255,255,0.5),
        89vw 82vh 0 0 rgba(255,255,255,0.4);
}

.starfield::after {
    width: 1.5px;
    height: 1.5px;
    box-shadow:
        16vw 12vh 0 0 rgba(255,255,255,0.7),
        58vw 26vh 0 0 rgba(255,255,255,0.8),
        35vw 58vh 0 0 rgba(255,255,255,0.7),
        79vw 71vh 0 0 rgba(255,255,255,0.6),
        93vw 33vh 0 0 rgba(255,255,255,0.8),
        6vw 82vh 0 0 rgba(255,255,255,0.7),
        48vw 91vh 0 0 rgba(255,255,255,0.6),
        67vw 47vh 0 0 rgba(255,255,255,0.8),
        27vw 6vh 0 0 rgba(255,255,255,0.7),
        41vw 38vh 0 0 rgba(255,255,255,0.6),
        73vw 15vh 0 0 rgba(255,255,255,0.8),
        11vw 73vh 0 0 rgba(255,255,255,0.7),
        86vw 52vh 0 0 rgba(255,255,255,0.6),
        54vw 8vh 0 0 rgba(255,255,255,0.8),
        31vw 65vh 0 0 rgba(255,255,255,0.7);
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ── Ambient glow ── */
.ambient-glow {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(30, 60, 140, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 40% 50%, rgba(100, 60, 20, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── Nav ── */
nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.08em;
}

.nav-logo {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-body);
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--nav-hover);
}

/* ── Main ── */
main {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Hero ── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
}

#logo {
    width: min(90vw, 520px);
    height: auto;
    position: relative;
}

.logo-container {
    position: relative;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(224, 168, 64, 0.1) 0%, rgba(90, 141, 184, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

/* ── SVG elements ── */
.dot {
    fill: url(#star-fill);
}

.star-halo {
    fill: rgba(224, 168, 64, 0.15);
}

.connection {
    stroke: var(--line-color);
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.5;
    filter: url(#line-glow);
}

.member-label {
    fill: var(--text);
    font-size: 11px;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 500;
}

.star-label {
    fill: var(--star-label);
    font-size: 10px;
    font-style: italic;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 300;
}

/* ── Club heading ── */
.club-name {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f0c96e 0%, #e0a840 40%, #d4a24e 60%, #c49a5c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.club-subtitle {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 0.4rem;
    letter-spacing: 0.1em;
}

/* ── Rules ── */
.rules {
    max-width: 600px;
    margin: 4rem auto 0;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rules-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f0c96e, #e0a840);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rule {
    margin-bottom: 1.5rem;
}

.rule:last-child {
    margin-bottom: 0;
}

.rule h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
}

.rule p {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
}

.rating-table th {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-weight: 300;
}

.rating-table td:first-child {
    color: var(--accent);
    letter-spacing: 1px;
}

.rating-table td:nth-child(2) {
    color: var(--star-label);
    font-style: italic;
    font-size: 0.82rem;
}

.rating-table tbody tr:last-child td {
    border-bottom: none;
}

.rating-table tbody tr:last-child td:first-child {
    text-shadow: 0 0 8px rgba(224, 168, 64, 0.5);
}

.rating-note {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

/* ── Pages ── */
.page {
    padding-top: 2rem;
}

.page h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f0c96e, #e0a840);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page p {
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    nav {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .club-name {
        font-size: 1.4rem;
        letter-spacing: 0.15em;
    }

    .hero {
        padding-top: 2rem;
    }
}
