:root {
    --bg: #05060a;
    --bg-elevated: rgba(9, 11, 20, 0.95);
    --accent: #4dd0e1;
    --accent-soft: rgba(77, 208, 225, 0.2);
    --accent-strong: #00e5ff;
    --text: #f5f7ff;
    --text-muted: #a3b1c6;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
}

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

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #121826 0, #05060a 55%, #000 100%);
    color: var(--text);
    scroll-behavior: smooth;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: linear-gradient(90deg, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.85));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
}
.logo-main {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.14em;
}
.logo-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.main-nav a {
    margin-left: 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover {
    color: var(--accent-strong);
    border-bottom-color: var(--accent-strong);
}

.site-main {
    padding: 2.5rem 0 3rem;
}

.section {
    background: radial-gradient(circle at top left, rgba(76, 175, 80, 0.04), transparent 55%),
                radial-gradient(circle at bottom right, rgba(77, 208, 225, 0.08), transparent 60%),
                var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.7rem 2.1rem;
    margin-bottom: 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.section h2 {
    margin-top: 0;
    font-size: 1.5rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border-left: 3px solid var(--accent);
    padding-left: 0.7rem;
}

.intro-section h1 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 0.7rem;
}
.intro-section p {
    margin: 0;
    color: var(--text-muted);
    max-width: 54rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
thead {
    background: linear-gradient(90deg, rgba(77, 208, 225, 0.14), rgba(77, 208, 225, 0.03));
}
th, td {
    padding: 0.65rem 0.8rem;
    text-align: left;
}
th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}
tbody tr:hover {
    background: rgba(77, 208, 225, 0.08);
}

.rules-section h3 {
    margin-top: 1.6rem;
    margin-bottom: 0.6rem;
}
.rules-text, .points-text, .participants-text {
    color: var(--text-muted);
    white-space: normal;
    line-height: 1.5;
}

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.4rem 0 1.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: linear-gradient(180deg, rgba(5,6,10,0.96), rgba(0,0,0,0.98));
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* FullCalendar Wrapper */
#calendar {
    background: rgba(0,0,0,0.35);
    border-radius: 16px;
    padding: 0.6rem;
    margin-top: 1rem;
}
.fc {
    --fc-page-bg-color: transparent;
    --fc-bg-event-opacity: 0.3;
    --fc-border-color: rgba(255,255,255,0.08);
    --fc-event-text-color: #000;
    --fc-event-bg-color: var(--accent);
    --fc-event-border-color: var(--accent-strong);
    --fc-today-bg-color: rgba(77,208,225,0.15);
    color: var(--text);
}
.fc-theme-standard .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
}
.fc .fc-toolbar-title {
    font-size: 1.1rem;
}
.fc .fc-button-primary {
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.16);
    text-transform: uppercase;
    font-size: 0.72rem;
}
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #000;
}

/* FullCalendar – DLHK Event-Layout */
.fc-daygrid-event {
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2px 6px;
}
.fc-daygrid-event-dot {
    display: none;
}
.fc-dlhk-time {
    font-weight: 600;
    margin-bottom: 2px;
}
.fc-dlhk-title {
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .main-nav {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .main-nav a {
        margin-left: 0;
        margin-right: 1rem;
        margin-top: 0.2rem;
    }
}



.rules-text p:first-child,
.points-text p:first-child,
.participants-text p:first-child {
    margin-top: 0;
}



.intro-text p:first-child {
    margin-top: 0;
}
