/* ==========================================================================
   CircleUp - House Rules Custom Standalone Stylesheet (Fixed Dark Theme)
   ========================================================================== */

/* 1. Global Reset & Layout Configuration */
html {
    background-color: #0f0f1a; /* Prevents visual flash while Three.js initializes */
}

body {
    height: auto !important;
    min-height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: transparent !important; /* Forces body transparent so 3D background displays clearly */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

/* 3D Canvas Layer Settings */
canvas, #bg-canvas, body > canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important; /* Placed immediately behind foreground content layers */
    pointer-events: none !important;
}

/* Foreground content container stack alignment */
main {
    height: auto !important;
    overflow: visible !important;
    position: relative;
    z-index: 10 !important;
}

/* 2. Glassmorphism Design Engine Layouts */
.glass-card {
    background: rgba(20, 20, 35, 0.88) !important; /* Protected contrast mask backing */
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.65);
}

/* 3. Typography Configuration */
.cu-color {
    background: linear-gradient(45deg, #ff007f, #7f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    position: relative;
    display: inline-block;
}

/* 4. Core Card List Formatting Rules */
.rule-card-left {
    text-align: left !important;
}

.rule-card-left h3,
.rule-card-left ul, 
.rule-card-left li {
    text-align: left !important;
}

.rule-card-left ul {
    padding-left: 1.5rem !important;
}

.rule-card-left li {
    margin-bottom: 0.5rem;
}

/* 5. Utility & Action Elements */
.contact-link {
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.fab-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(26, 26, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.25);
}

/* 6. Functional Animation System Keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}