/* ============================================================
   Pen & Paper Potsdam Power — Deine Rollenspiel-Community in Potsdam
   ============================================================ */

/* ===== LOCAL FONTS (self-hosted) ===== */
@font-face {
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/crimson-text-normal-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/crimson-text-normal-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Crimson Text';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/crimson-text-normal-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Crimson Text';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/crimson-text-italic-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Crimson Text';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/crimson-text-italic-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Special Elite';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/special-elite-normal-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
    background: #0d0a08;
    color: #cdc0a8;
    line-height: 1.75;
    overflow-x: hidden;
    font-size: 1.1rem;
}

/* ===== BODY TEXTURE & VIGNETTE ===== */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(45, 90, 61, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 60%, rgba(92, 26, 26, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 40%, rgba(45, 60, 90, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='60' height='60' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(8, 6, 4, 0.7) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: 'Crimson Text', 'Georgia', serif; line-height: 1.25; }
h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #c4a355;
    position: relative;
    font-weight: 700;
    letter-spacing: 0.03em;
}
/* Weird-Tales-style double rule */
h2::before,
h2::after {
    content: '';
    display: block;
    margin: 0.6rem auto;
}
h2::before {
    width: 80px;
    height: 2px;
    background: #2d5a3d;
}
h2::after {
    width: 50%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #5c1a1a, transparent);
    margin-top: 0.3rem;
}

h3 {
    font-size: 1.35rem;
    color: #c4a355;
    font-weight: 700;
    letter-spacing: 0.02em;
}

a { color: #8b7d3c; text-decoration: none; transition: all 0.3s; }
a:hover { color: #c4a355; }

strong { color: #d4c898; }

/* Typewriter accent class */
.typewriter {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.9em;
    letter-spacing: 0.02em;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}
section {
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 1;
}
section:nth-child(even) {
    background: rgba(255,255,255,0.01);
}

/* Zine-style section divider */
.section-divider {
    text-align: center;
    padding: 0;
    margin: -2rem 0;
    color: #2d5a3d;
    font-size: 1.8rem;
    letter-spacing: 0.4em;
    user-select: none;
}

/* ===== NAVIGATION ===== */
nav.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 6, 4, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 90, 61, 0.2);
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
}
nav.top-nav a {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #8b7d3c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
    white-space: nowrap;
}
nav.top-nav a:hover {
    color: #c4a355;
    text-shadow: 0 0 12px rgba(196, 163, 85, 0.3);
}
nav.top-nav a.active {
    color: #c4a355;
    border-bottom: 2px solid #5c1a1a;
}

/* Nav group: same-page anchors (centered) */
.nav-left-spacer {
    flex: 1;
}
.nav-center {
    display: flex;
    gap: 2rem;
}

/* Nav group: external page links (right-aligned) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
}

/* Visual separator between nav groups */
.nav-separator {
    color: #2d5a3d;
    font-size: 0.7rem;
    user-select: none;
    margin: 0 0.3rem;
    opacity: 0.6;
}

/* Logged-in user display in nav */
.nav-user {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.78rem;
    color: #c4a355;
    white-space: nowrap;
}
.nav-avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-left: 0.2rem;
}
.nav-logout {
    font-size: 0.78rem !important;
    color: #5c1a1a !important;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    padding-top: 5rem;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(45, 90, 61, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(92, 26, 26, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(60, 45, 80, 0.04) 0%, transparent 50%);
    pointer-events: none;
}
.hero .logo-icon {
    width: 170px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 35px rgba(139, 125, 60, 0.3)) sepia(0.2);
    animation: float 4s ease-in-out infinite;
    position: relative;
    z-index: 1;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    color: #c4a355;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 60px rgba(139, 125, 60, 0.2), 0 2px 4px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
    font-weight: 700;
}
.hero .tagline {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-style: italic;
    color: #7a6e5e;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-style: normal;
    letter-spacing: 0.04em;
}
.hero .subtitle {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: #908878;
    margin-bottom: 1rem;
    max-width: 650px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}
.hero .highlights {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.hero .highlight-badge {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #8b7d3c;
    background: rgba(45, 90, 61, 0.1);
    border: 1px solid rgba(45, 90, 61, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 3px;
    letter-spacing: 0.04em;
}
.hero .location {
    font-size: 1rem;
    color: #706050;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
    font-family: 'Special Elite', 'Courier New', monospace;
}
.hero .location span { color: #8b7d3c; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
    font-family: 'Special Elite', 'Courier New', monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.btn-primary {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2a);
    color: #d4c898;
    border: 1px solid rgba(196, 163, 85, 0.3);
    box-shadow: 0 4px 20px rgba(30, 60, 40, 0.5);
    font-size: 1.1rem;
    padding: 0.95rem 2.5rem;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 90, 61, 0.7);
    color: #e8dcc8;
    background: linear-gradient(135deg, #3a7a50, #1a3a2a);
}
.btn-outline {
    background: transparent;
    color: #8b7d3c;
    border: 2px solid #3a4a2d;
}
.btn-outline:hover {
    background: rgba(45, 90, 61, 0.12);
    color: #c4a355;
    border-color: #5c1a1a;
}
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ===== ABOUT ===== */
.about-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
}
.about-content p { margin-bottom: 1.3rem; }

/* ===== HIGHLIGHTS SECTION (What makes us special) ===== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    max-width: 900px;
    margin: 0 auto;
}
.highlight-card {
    background: linear-gradient(160deg, rgba(30, 25, 18, 0.9), rgba(20, 15, 10, 0.95));
    border: 1px solid rgba(45, 90, 61, 0.2);
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}
.highlight-card:hover {
    border-color: rgba(45, 90, 61, 0.5);
    box-shadow: 0 8px 25px rgba(0,0,0,0.5), inset 0 1px 0 rgba(196,163,85,0.05);
    transform: translateY(-3px);
}
.highlight-card .hl-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}
.highlight-card h3 {
    margin-bottom: 0.5rem;
}
.highlight-card p {
    font-size: 0.95rem;
    color: #908878;
    line-height: 1.6;
}

/* Zine-style stamp/callout */
.zine-stamp {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5c1a1a;
    border: 2px solid #5c1a1a;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    transform: rotate(-3deg);
    margin-top: 1rem;
    user-select: none;
}

/* ===== DISCORD SECTION ===== */
.discord-section {
    text-align: center;
}
.discord-card {
    background: linear-gradient(160deg, rgba(25, 20, 15, 0.92), rgba(15, 12, 8, 0.96));
    border: 2px solid rgba(45, 90, 61, 0.25);
    border-radius: 8px;
    padding: 3rem 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,125,60,0.05);
    position: relative;
}
.discord-card::before {
    content: '';
    position: absolute;
    top: 8px; left: 8px; right: 8px; bottom: 8px;
    border: 1px solid rgba(45, 90, 61, 0.1);
    border-radius: 4px;
    pointer-events: none;
}
.discord-card .server-name {
    font-size: 1.3rem;
    color: #c4a355;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-family: 'Special Elite', 'Courier New', monospace;
}
.discord-card .server-id {
    font-size: 0.8rem;
    color: #4a4030;
    font-family: 'Courier New', monospace;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}
.discord-card .btn {
    margin-bottom: 1.5rem;
}
.discord-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.discord-feature {
    font-size: 0.88rem;
    color: #7a6e5e;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* ===== GAMES GRID ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.game-card {
    background: linear-gradient(160deg, rgba(22, 18, 12, 0.9), rgba(18, 14, 8, 0.95));
    border: 1px solid rgba(45, 90, 61, 0.15);
    border-radius: 6px;
    padding: 2rem 1.3rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}
.game-card::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196,163,85,0.15), transparent);
    pointer-events: none;
}
.game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(45, 90, 61, 0.5);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}
.game-card .icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    display: block;
}
.game-card h3 {
    color: #c4a355;
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
.game-card p {
    font-size: 0.88rem;
    color: #7a6e5e;
    line-height: 1.5;
}

/* ===== JOIN SECTION ===== */
.join-steps {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.join-step {
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
}
.join-step .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d5a3d, #1a3a2a);
    color: #d4c898;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Special Elite', 'Courier New', monospace;
    border: 2px solid rgba(196,163,85,0.3);
}
.join-step h3 {
    margin-bottom: 0.5rem;
}
.join-step p {
    font-size: 0.92rem;
    color: #908878;
}

/* ===== PAGE HEADER (for sub-pages) ===== */
.page-header {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(45, 90, 61, 0.05) 0%, transparent 60%);
    pointer-events: none;
}
.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #c4a355;
    position: relative;
    z-index: 1;
}
.page-header .breadcrumb {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #5a5040;
    margin-top: 0.8rem;
    position: relative;
    z-index: 1;
}
.page-header .breadcrumb a { color: #5a5040; }
.page-header .breadcrumb a:hover { color: #8b7d3c; }

/* ===== CONTENT PAGE STYLES ===== */
.content-page {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
    position: relative;
    z-index: 1;
}
.content-page h2 {
    text-align: left;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}
.content-page h2::before,
.content-page h2::after { margin-left: 0; }
.content-page h2::before { width: 50px; }
.content-page h2::after { width: 120px; }
.content-page p {
    margin-bottom: 1.1rem;
    color: #b0a48e;
    line-height: 1.8;
}
.content-page ul, .content-page ol {
    margin: 0 0 1.5rem 1.5rem;
    color: #b0a48e;
}
.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.content-page a {
    color: #8b7d3c;
    border-bottom: 1px dotted #5c1a1a;
}
.content-page a:hover {
    color: #c4a355;
    border-bottom-color: #c4a355;
}
.content-page .contact-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    filter: sepia(0.3) brightness(0.95);
    border: 1px solid rgba(45, 90, 61, 0.2);
    border-radius: 4px;
}

/* Zine-style info box */
.info-box {
    background: rgba(30, 25, 15, 0.5);
    border-left: 3px solid #5c1a1a;
    padding: 1.2rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.95rem;
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #b0a48e;
}
.info-box strong {
    display: block;
    margin-bottom: 0.4rem;
    color: #c4a355;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 2px solid rgba(45, 90, 61, 0.15);
    font-size: 0.9rem;
    color: #5a5040;
    position: relative;
    z-index: 1;
    font-family: 'Special Elite', 'Courier New', monospace;
}
footer a { color: #6a5a40; }
footer a:hover { color: #8b7d3c; }
footer .footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
footer .footer-divider {
    display: block;
    text-align: center;
    color: #2d5a3d;
    margin-bottom: 1.2rem;
    letter-spacing: 0.3em;
    user-select: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d0a08; }
::-webkit-scrollbar-thumb {
    background: #1a3a2a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5a3d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    h2 { font-size: 1.7rem; }
    section { padding: 3rem 1rem; }
    .hero { min-height: 80vh; padding-top: 6rem; }
    .hero .logo-icon { width: 120px; }
    .hero h1 { font-size: 2rem; }
    .hero .highlights { gap: 0.7rem; }
    .hero .highlight-badge { font-size: 0.7rem; padding: 0.3rem 0.7rem; }
    .discord-card { padding: 2rem 1.2rem; }
    .games-grid { grid-template-columns: 1fr 1fr; }
    .highlights-grid { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; }
    nav.top-nav {
        gap: 0.5rem;
        padding: 0.5rem 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav.top-nav a { font-size: 0.7rem; }
    .nav-left-spacer { display: none; }
    .nav-center { flex-wrap: wrap; gap: 0.8rem; justify-content: center; }
    .nav-right { flex-wrap: wrap; gap: 0.8rem; flex: none; }
    .nav-separator { display: none; }
    .content-page h2 { font-size: 1.35rem; }
    .page-header { min-height: 20vh; padding: 5rem 1rem 2rem; }
}

/* ===== FULLCALENDAR OVERRIDES — Dark Fantasy Theme ===== */
.fc {
    background: rgba(18, 14, 8, 0.9);
    border: 1px solid rgba(45, 90, 61, 0.25);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Crimson Text', serif;
}
.fc .fc-toolbar-title {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 1.3rem !important;
    color: #c4a355;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.fc .fc-button {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2a) !important;
    border: 1px solid rgba(196, 163, 85, 0.3) !important;
    color: #d4c898 !important;
    font-family: 'Special Elite', 'Courier New', monospace !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.8rem !important;
    border-radius: 3px !important;
    transition: all 0.3s ease;
}
.fc .fc-button:hover {
    background: linear-gradient(135deg, #3a7a50, #1a3a2a) !important;
    border-color: #c4a355 !important;
    color: #e8dcc8 !important;
}
.fc .fc-button-active {
    background: #5c1a1a !important;
    border-color: #8b3a3a !important;
}
.fc .fc-col-header-cell {
    background: rgba(45, 90, 61, 0.2);
    color: #c4a355;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0 !important;
    border-color: rgba(45, 90, 61, 0.15) !important;
}
.fc .fc-daygrid-day {
    background: rgba(22, 18, 12, 0.5);
    border-color: rgba(45, 90, 61, 0.1) !important;
    transition: background 0.2s;
}
.fc .fc-daygrid-day:hover {
    background: rgba(45, 90, 61, 0.08);
}
.fc .fc-day-today {
    background: rgba(92, 26, 26, 0.1) !important;
}
.fc .fc-daygrid-day-number {
    color: #908878;
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem !important;
}
.fc .fc-daygrid-event {
    background: linear-gradient(135deg, #2d5a3d, #1a3a2a) !important;
    border: 1px solid rgba(196, 163, 85, 0.3) !important;
    border-radius: 3px !important;
    font-size: 0.8rem !important;
    padding: 0.15rem 0.3rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.fc .fc-daygrid-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    border-color: #c4a355 !important;
}
.fc .fc-timegrid-slot {
    border-color: rgba(45, 90, 61, 0.08) !important;
}
.fc .fc-timegrid-slot-label {
    color: #706050;
    font-size: 0.7rem;
}
.fc .fc-scrollgrid {
    border-color: rgba(45, 90, 61, 0.15) !important;
}
.fc .fc-day-other .fc-daygrid-day-top {
    opacity: 0.3;
}
.fc .fc-popover {
    background: #1a1612 !important;
    border: 2px solid #3a4a2d !important;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.fc .fc-popover-header {
    background: rgba(45, 90, 61, 0.2) !important;
    color: #c4a355 !important;
    font-family: 'Special Elite', monospace;
}

/* ===== AVAILABILITY MODAL ===== */
.avail-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.avail-modal {
    background: linear-gradient(160deg, rgba(22, 18, 12, 0.98), rgba(18, 14, 8, 0.98));
    border: 2px solid #3a4a2d;
    border-radius: 8px;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    color: #cdc0a8;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.avail-modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.avail-modal-header h2 {
    color: #c4a355;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    font-family: 'Special Elite', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.avail-modal-header h2::before,
.avail-modal-header h2::after {
    display: none;
}

.avail-modal-date {
    color: #908878;
    font-size: 1rem;
    font-family: 'Crimson Text', serif;
    font-style: italic;
}

.avail-modal-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.avail-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.avail-field-notes {
    flex: 1;
    min-width: 160px;
}

.avail-field label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #908878;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.avail-field input {
    background: #1a1612;
    color: #cdc0a8;
    border: 1px solid #3a4a2d;
    padding: 0.5rem 0.7rem;
    border-radius: 3px;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.avail-field input:focus {
    outline: none;
    border-color: #c4a355;
    box-shadow: 0 0 8px rgba(196, 163, 85, 0.15);
}

.avail-field input[type="time"] {
    width: 120px;
}

.avail-field-notes input {
    width: 100%;
}

.avail-modal-quick-pick {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(45, 90, 61, 0.15);
    border-bottom: 1px solid rgba(45, 90, 61, 0.15);
}

.avail-modal-quick-label {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #706050;
    margin-right: 0.3rem;
}

.quick-pick-mini {
    background: rgba(45, 90, 61, 0.15);
    border: 1px solid rgba(45, 90, 61, 0.3);
    color: #8b7d3c;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.7rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quick-pick-mini:hover {
    background: rgba(45, 90, 61, 0.3);
    color: #c4a355;
    border-color: #c4a355;
}

.avail-modal-existing {
    margin-bottom: 1rem;
    text-align: center;
}

.avail-delete-link {
    background: none;
    border: none;
    color: #5c1a1a;
    cursor: pointer;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.8rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.avail-delete-link:hover {
    color: #8b3a3a;
}

.avail-modal-footer {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.avail-btn-save {
    padding: 0.6rem 1.8rem;
    font-size: 0.85rem;
}

.avail-btn-cancel {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    pointer-events: none;
}

.toast {
    background: #1a1612;
    border: 1px solid #3a4a2d;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    color: #cdc0a8;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.85rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 90vw;
    text-align: center;
}

.toast.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: #2d5a3d;
    color: #d4c898;
}

.toast-error {
    border-color: #5c1a1a;
    color: #c4a0a0;
}

.toast-info {
    border-color: #5a5040;
    color: #b0a48e;
}

/* ===== CONFIRM DIALOG ===== */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(3px);
}

.confirm-dialog {
    background: linear-gradient(160deg, rgba(22, 18, 12, 0.98), rgba(18, 14, 8, 0.98));
    border: 2px solid #3a4a2d;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.confirm-dialog p {
    color: #cdc0a8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    font-family: 'Crimson Text', serif;
}

.confirm-footer {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-btn-yes {
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
    background: linear-gradient(135deg, #5c1a1a, #3a1010);
}

.confirm-btn-yes:hover {
    background: linear-gradient(135deg, #8b3a3a, #5c1a1a);
}

.confirm-btn-no {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

/* ===== POPOVER ===== */
.avail-popover {
    position: fixed;
    z-index: 998;
    background: linear-gradient(160deg, rgba(22, 18, 12, 0.98), rgba(18, 14, 8, 0.98));
    border: 2px solid #3a4a2d;
    border-radius: 6px;
    padding: 1rem;
    min-width: 220px;
    max-width: 300px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.avail-popover-content {
    margin-bottom: 0.8rem;
}

.avail-popover-date {
    color: #c4a355;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.avail-popover-time,
.avail-popover-notes {
    color: #908878;
    font-size: 0.85rem;
    font-family: 'Crimson Text', serif;
    line-height: 1.4;
}

.avail-popover-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    border-top: 1px solid rgba(45, 90, 61, 0.15);
    padding-top: 0.6rem;
}

.avail-popover-edit {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.8rem !important;
}

.avail-popover-delete {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.8rem !important;
    color: #5c1a1a !important;
    border-color: #5c1a1a !important;
}

.avail-popover-delete:hover {
    background: rgba(92, 26, 26, 0.15) !important;
    color: #8b3a3a !important;
}

/* ===== QUICK-PICK STRIP ===== */
.quick-pick-strip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.8rem 0;
    margin-bottom: 0.5rem;
}

.quick-pick-btn {
    background: rgba(45, 90, 61, 0.1);
    border: 1px solid rgba(45, 90, 61, 0.25);
    color: #8b7d3c;
    padding: 0.45rem 0.9rem;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.78rem;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.quick-pick-btn:hover {
    background: rgba(45, 90, 61, 0.2);
    color: #c4a355;
    border-color: #5c1a1a;
}

.quick-pick-btn.active {
    background: rgba(45, 90, 61, 0.25);
    border-color: #c4a355;
    color: #c4a355;
    box-shadow: 0 0 12px rgba(196, 163, 85, 0.2);
}

.quick-pick-free {
    color: #8b5050;
    border-color: rgba(92, 26, 26, 0.4);
}

.quick-pick-free:hover {
    background: rgba(92, 26, 26, 0.15);
    color: #c47070;
    border-color: #5c1a1a;
}

.quick-pick-free.active {
    background: rgba(92, 26, 26, 0.25);
    border-color: #c47070;
    color: #c47070;
    box-shadow: 0 0 12px rgba(200, 80, 80, 0.2);
}

.quick-pick-time {
    font-size: 0.65rem;
    opacity: 0.6;
    margin-left: 0.2rem;
}

.quick-pick-hint {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #5a5040;
    margin-left: 0.5rem;
    font-style: italic;
}

/* ===== CALENDAR LEGEND ===== */
.calendar-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    padding: 0.5rem 0;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #706050;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-avail {
    background: #2d5a3d;
    border: 1px solid #1a3a2a;
}

.legend-event {
    background: #5c4514;
    border: 2px solid #c4a355;
}

/* ===== MEMBER CALENDAR: EVENT HIGHLIGHT ===== */
.fc-event-member-event {
    border-width: 2px !important;
    box-shadow: 0 0 6px rgba(196, 163, 85, 0.25);
    font-weight: 600;
}

.fc-event-member-event.fc-event-cancelled {
    border-color: #8b3a3a !important;
    box-shadow: 0 0 6px rgba(180, 80, 80, 0.2);
}

/* ===== EVENT EDIT MODAL ===== */
.event-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.event-modal-overlay .avail-modal {
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
}

.event-modal-overlay .avail-field input[type="text"],
.event-modal-overlay .avail-field textarea,
.event-modal-overlay .avail-field select {
    width: 100%;
    background: #1a1612;
    color: #cdc0a8;
    border: 1px solid #3a4a2d;
    padding: 0.5rem 0.7rem;
    border-radius: 3px;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.event-modal-overlay .avail-field textarea {
    resize: vertical;
}

.event-modal-overlay .avail-field input[type="text"]:focus,
.event-modal-overlay .avail-field textarea:focus,
.event-modal-overlay .avail-field select:focus {
    outline: none;
    border-color: #c4a355;
    box-shadow: 0 0 8px rgba(196, 163, 85, 0.15);
}

.event-modal-overlay .avail-field input[type="date"],
.event-modal-overlay .avail-field input[type="time"],
.event-modal-overlay .avail-field input[type="number"] {
    background: #1a1612;
    color: #cdc0a8;
    border: 1px solid #3a4a2d;
    padding: 0.5rem 0.7rem;
    border-radius: 3px;
    font-family: 'Crimson Text', serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.event-modal-overlay .avail-field input[type="date"]:focus,
.event-modal-overlay .avail-field input[type="time"]:focus,
.event-modal-overlay .avail-field input[type="number"]:focus {
    outline: none;
    border-color: #c4a355;
    box-shadow: 0 0 8px rgba(196, 163, 85, 0.15);
}

/* Fix alignment: override base avail-modal-fields align-items:end */
.event-modal-overlay .avail-modal-fields {
    align-items: stretch;
    flex-direction: column;
}

/* Direct field children and rows fill full width */
.event-modal-overlay .avail-modal-fields > .avail-field,
.event-modal-overlay .event-modal-row {
    width: 100%;
}

/* Date/time inputs also fill width (undo base 120px) */
.event-modal-overlay .avail-field input[type="date"],
.event-modal-overlay .avail-field input[type="time"] {
    width: 100%;
}

/* ===== EVENT POPOVER ===== */
.event-popover {
    z-index: 1000;
}

.event-popover .event-popover-edit {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.8rem !important;
}

.event-popover .event-popover-delete {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.8rem !important;
    color: #5c1a1a !important;
    border-color: #5c1a1a !important;
}

.event-popover .event-popover-delete:hover {
    background: rgba(92, 26, 26, 0.15) !important;
    color: #8b3a3a !important;
}

/* ===== EVENT MODAL LAYOUT ===== */
.event-modal-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Row children share space proportionally */
.event-modal-row > .avail-field {
    flex: 1;
    min-width: 100px;
}

.event-modal-row > .avail-field:first-child {
    flex: 2;
}

.avail-field-fill {
    flex: 1;
    min-width: 150px;
}

.avail-field-fill input {
    width: 100% !important;
}

.event-modal-section {
    border-top: 1px solid rgba(45, 90, 61, 0.15);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.event-modal-section .player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0;
    min-height: 1.8rem;
    align-items: center;
}

.event-modal-section .player-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(45, 90, 61, 0.2);
    border: 1px solid rgba(45, 90, 61, 0.4);
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #d4c898;
}

.event-modal-section .player-chip .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(92, 26, 26, 0.4);
    color: #c4a0a0;
    cursor: pointer;
    font-size: 0.65rem;
    line-height: 1;
    border: none;
    transition: all 0.2s;
}

.event-modal-section .player-chip .chip-remove:hover {
    background: #5c1a1a;
    color: #e0c0c0;
}

.event-modal-section .player-search-wrap {
    position: relative;
}

.event-modal-section .player-search-input {
    background: #1a1612;
    color: #cdc0a8;
    border: 1px solid #3a4a2d;
    padding: 0.4rem 0.7rem;
    border-radius: 3px;
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.event-modal-section .player-search-input:focus {
    outline: none;
    border-color: #c4a355;
    box-shadow: 0 0 8px rgba(196, 163, 85, 0.15);
}

.event-modal-section .player-search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1612;
    border: 1px solid #3a4a2d;
    border-radius: 6px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.event-modal-section .player-search-dropdown.active {
    display: block;
}

.event-modal-section .player-search-dropdown .search-result-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-family: 'Crimson Text', serif;
    font-size: 0.85rem;
    color: #cdc0a8;
    transition: background 0.15s;
}

.event-modal-section .player-search-dropdown .search-result-item:hover {
    background: rgba(45, 90, 61, 0.2);
}

/* ===== EVENT POPOVER PLAYER LIST ===== */
.event-popover-players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.3rem;
}

.event-popover-player-tag {
    display: inline-block;
    background: rgba(45, 90, 61, 0.15);
    border: 1px solid rgba(45, 90, 61, 0.3);
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    font-size: 0.68rem;
    color: #b0a48e;
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* ===== OLD MODAL STYLES (event details popup) ===== */
.fc-event-detail-modal h3 {
    color: #c4a355;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}
.fc-event-detail-modal p {
    color: #908878;
    margin-bottom: 0.4rem;
}
.fc-event-detail-modal strong {
    color: #b0a48e;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }
    .avail-modal {
        padding: 1.2rem;
    }
    .avail-modal-fields {
        flex-direction: column;
    }
    .avail-field input[type="time"] {
        width: 100%;
    }
    .quick-pick-strip {
        gap: 0.3rem;
    }
    .quick-pick-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }
    .quick-pick-hint {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 0.3rem;
    }
    .avail-popover {
        max-width: 260px;
    }
}
