/* Custom Fonts */
@font-face {
    font-family: 'RX100';
    src: url('font/RX100_Complete/Fonts/WEB/fonts/RX100-Regular.woff2') format('woff2'),
         url('font/RX100_Complete/Fonts/WEB/fonts/RX100-Regular.woff') format('woff'),
         url('font/RX100_Complete/Fonts/WEB/fonts/RX100-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NaNSuccess';
    src: url('font/nan-success-font-family-1762995737-0/NaNSuccessTextTRIAL-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Chrome/Silver Theme Variables */
:root {
    --chrome-primary: #c0c0c0;
    --chrome-secondary: #a8a8a8;
    --chrome-light: #e8e8e8;
    --chrome-bright: #f5f5f5;
    --chrome-dark: #808080;
    --chrome-darker: #505050;
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --text-light: #ffffff;
    --text-chrome: #d0d0d0;
    --accent-cyan: #00d4ff;
    --accent-blue: #4a9eff;
    --purple-light: #c084fc;
    --purple-medium: #a855f7;
    --pink-light: #f9a8d4;
    --pink-medium: #ec4899;
}

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

body {
    font-family: 'RX100', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    cursor: url('cursor/cursonicon.PNG') 32 32, auto;
}

/* Custom cursor for all elements */
* {
    cursor: url('cursor/cursonicon.PNG') 32 32, auto;
}

/* Custom cursor for clickable elements */
a, button, .close-btn, .info-panel, #entry-screen {
    cursor: url('cursor/cursonicon.PNG') 32 32, pointer;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Entry Screen */
#entry-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
}

#entry-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#entry-logo-image {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 300px;
    max-height: 150px;
    width: 60%;
    height: auto;
    z-index: 5;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

/* Mobile adjustments for logo */
@media (max-width: 768px) {
    #entry-logo-image {
        max-width: 250px;
        max-height: 120px;
        width: 65%;
        top: 65%;
    }
}

#entry-text {
    position: relative;
    z-index: 10;
    margin-top: 50vh;
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--chrome-light);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    animation: chromeGlow 1.5s infinite alternate;
    pointer-events: none;
}

@keyframes chromeGlow {
    from {
        text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px rgba(192, 192, 192, 0.5);
        color: var(--chrome-light);
    }
    to {
        text-shadow: 0 0 20px var(--accent-blue), 0 0 40px rgba(0, 212, 255, 0.6), 0 0 60px rgba(74, 158, 255, 0.4);
        color: var(--chrome-bright);
    }
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.loader {
    border: 4px solid #333;
    border-top: 4px solid #ffd93d;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen p {
    margin-top: 24px;
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    color: var(--chrome-light);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px var(--accent-cyan);
}

.loader {
    border-top-color: var(--chrome-primary);
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

/* Main Scene */
#scene-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

#ritual-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Interaction Hint */
#interaction-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.95), rgba(236, 72, 153, 0.95));
    padding: 20px 40px;
    border-radius: 15px;
    border: 2px solid var(--pink-light);
    z-index: 95;
    pointer-events: none;
    animation: hintPulse 1s infinite alternate;
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.6);
}

@keyframes hintPulse {
    from {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px rgba(192, 132, 252, 0.6);
    }
    to {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 0 0 50px rgba(236, 72, 153, 0.8);
    }
}

#hint-text {
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--bg-dark);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Instructions */
#instructions {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(40, 40, 40, 0.95));
    padding: 16px 40px;
    border-radius: 12px;
    border: 1px solid var(--chrome-dark);
    font-size: 0.875rem;
    color: var(--chrome-light);
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.2);
    letter-spacing: 0.05em;
    z-index: 90;
}

/* Info Panels */
.info-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('textbackground.png');
    background-size: 300% 300%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(10, 10, 10, 0.85);
    border: 2px solid rgba(192, 132, 252, 0.5);
    border-radius: 20px;
    padding: 40px 50px;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(192, 132, 252, 0.4),
        inset 0 1px 0 rgba(249, 168, 212, 0.2);
    z-index: 100;
    animation: panelAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
}

@keyframes panelAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.info-panel h2 {
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-size: 2.25rem;
    font-weight: 300;
    text-align: center;
    filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.4));
    letter-spacing: 0.08em;
}

.info-panel h3 {
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    color: var(--pink-light);
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.info-panel p {
    font-family: 'RX100', 'Courier New', monospace;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-chrome);
    font-size: 0.95rem;
}

.info-panel ul {
    margin-bottom: 20px;
}

.info-panel li {
    font-family: 'RX100', 'Courier New', monospace;
    color: var(--text-chrome);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--chrome-primary);
    font-size: 30px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
    color: var(--pink-light);
    filter: drop-shadow(0 0 8px var(--pink-light));
}

/* Event List */
.event {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(236, 72, 153, 0.08));
    padding: 24px;
    margin: 20px 0;
    border-left: 4px solid var(--purple-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event:hover {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.15), rgba(236, 72, 153, 0.12));
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.3);
}

.event h3 {
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    color: var(--chrome-light);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 300;
}

.event p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Patreon Button and Location Button */
.patreon-btn,
.location-btn {
    display: inline-block;
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-medium));
    color: var(--text-light);
    padding: 14px 40px;
    border-radius: 30px;
    text-decoration: none;
    margin: 24px 0;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.4);
    border: 1px solid var(--pink-light);
}

.patreon-btn:hover,
.location-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.6);
    background: linear-gradient(135deg, var(--pink-medium), var(--purple-medium));
    filter: brightness(1.2);
}

/* Access Code */
.access-code {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--chrome-darker);
}

.access-code p {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.access-code input {
    font-family: 'RX100', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--chrome-dark);
    padding: 14px 18px;
    border-radius: 8px;
    color: var(--chrome-light);
    width: 100%;
    margin: 12px 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.access-code input:focus {
    outline: none;
    border-color: var(--purple-light);
    background: rgba(192, 132, 252, 0.08);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
}

.access-code button {
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    color: var(--text-light);
    border: 1px solid var(--pink-light);
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 132, 252, 0.3);
}

.access-code button:hover {
    background: linear-gradient(135deg, var(--pink-medium), var(--purple-medium));
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.5);
}

/* Quote Popup */
.quote-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.15), rgba(236, 72, 153, 0.15));
    border: 2px solid var(--purple-light);
    padding: 40px 60px;
    border-radius: 15px;
    max-width: 600px;
    box-shadow:
        0 8px 50px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(192, 132, 252, 0.4),
        inset 0 1px 0 rgba(249, 168, 212, 0.2);
    animation: quoteAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 200;
    backdrop-filter: blur(20px);
    background-color: rgba(10, 10, 10, 0.92);
}

@keyframes quoteAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateY(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

.quote-popup p {
    font-family: 'NaNSuccess', 'Arial', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    filter: drop-shadow(0 0 15px rgba(192, 132, 252, 0.4));
    letter-spacing: 0.05em;
    line-height: 1.6;
}

/* Easter Egg Effect */
#easter-egg-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.3), transparent);
    pointer-events: none;
    animation: easterEggPulse 1s ease-out;
    z-index: 500;
}

@keyframes easterEggPulse {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1); }
}

/* Scrollbar Styling */
.info-panel::-webkit-scrollbar {
    width: 8px;
}

.info-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.info-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--chrome-primary), var(--accent-cyan));
    border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-cyan), var(--chrome-bright));
}

/* Contact Links */
.contact-info a {
    color: var(--pink-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--purple-light);
    text-shadow: 0 0 15px var(--pink-medium);
}

/* Gallery Placeholder */
.gallery-placeholder {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(236, 72, 153, 0.08));
    padding: 50px;
    text-align: center;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px dashed rgba(192, 132, 252, 0.4);
}

/* Footer */
#ritual-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 10, 0.95) 50%);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    z-index: 90;
    border-top: 1px solid var(--chrome-darker);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'RX100', 'Courier New', monospace;
    color: var(--chrome-primary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.08), rgba(192, 192, 192, 0.05));
    border: 1px solid transparent;
}

.footer-link:hover {
    color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(74, 158, 255, 0.1));
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.3);
}

.footer-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px currentColor);
}

.footer-link:hover .footer-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px var(--accent-cyan));
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .info-panel {
        max-width: 92%;
        padding: 30px 25px;
        border-radius: 15px;
    }

    .info-panel h2 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    .info-panel h3 {
        font-size: 1.2rem;
    }

    .info-panel p,
    .info-panel li {
        font-size: 0.875rem;
    }

    #entry-text {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }

    #interaction-hint {
        padding: 16px 30px;
    }

    #hint-text {
        font-size: 1rem;
    }

    #instructions {
        font-size: 0.75rem;
        padding: 12px 20px;
        bottom: 90px;
    }

    .quote-popup {
        max-width: 85%;
        padding: 30px 40px;
    }

    .quote-popup p {
        font-size: 1.2rem;
    }

    .event {
        padding: 18px;
    }

    .event h3 {
        font-size: 1.15rem;
    }

    .patreon-btn,
    .location-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
    }

    .footer-link {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    .footer-icon {
        width: 20px;
        height: 20px;
    }

    #ritual-footer {
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .info-panel {
        padding: 25px 20px;
    }

    .info-panel h2 {
        font-size: 1.5rem;
    }

    #entry-text {
        font-size: 1rem;
    }

    #interaction-hint {
        padding: 14px 24px;
    }

    #hint-text {
        font-size: 0.9rem;
    }

    .quote-popup {
        padding: 25px 30px;
    }

    .quote-popup p {
        font-size: 1.1rem;
    }
}
