/* ==========================================================================
   SERPENT'S CASK - COMING SOON DESIGN SYSTEM
   ========================================================================== */

@font-face {
    font-family: 'High Summit';
    src: url('High Summit.ttf') format('truetype'),
         url('High Summit.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Faculty Glyphic';
    src: url('FacultyGlyphic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-dark: #07090c;
    --bg-card: rgba(18, 22, 28, 0.65);
    --bg-card-border: rgba(212, 175, 55, 0.2);
    --bg-card-hover: rgba(26, 32, 42, 0.85);
    
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa820a;
    --gold-glow: rgba(212, 175, 55, 0.35);
    
    --emerald-dark: #0a1f18;
    --emerald-accent: #1e4d3b;
    --emerald-glow: rgba(30, 77, 59, 0.4);

    --text-primary: #f4f4f6;
    --text-secondary: #a0a6b2;
    --text-muted: #646b79;

    --font-heading: 'Faculty Glyphic', 'High Summit', 'Cinzel', Georgia, serif;
    --font-gothic: 'High Summit', Georgia, serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* Ambient Radial Glows */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

.glow-1 {
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-glow), transparent 70%);
}

.glow-2 {
    bottom: -15%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--emerald-glow), transparent 70%);
}

.glow-3 {
    bottom: 20%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(170, 130, 10, 0.15), transparent 70%);
}

/* Vignette Overlay */
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 40%, rgba(3, 4, 6, 0.85) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Wrapper */
.app-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    flex: 1;
}

/* Emblem Container */
.emblem-wrapper {
    position: relative;
    margin-bottom: 24px;
    cursor: pointer;
    perspective: 1000px;
}

.audio-icon-btn {
    position: absolute;
    top: 6px;
    right: -24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 18, 25, 0.75);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    z-index: 20;
}

.audio-icon-btn i {
    pointer-events: none;
}

.audio-icon-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    transform: scale(1.1);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.5);
}

.audio-icon-btn.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold-light);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.emblem-card {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.emblem-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Invert black snake graphic to brilliant gleaming white/gold */
    filter: invert(1) drop-shadow(0 0 18px rgba(212, 175, 55, 0.5)) brightness(1.1);
    transition: var(--transition-smooth);
}

.emblem-wrapper:hover .emblem-img {
    transform: scale(1.06);
    filter: invert(1) drop-shadow(0 0 30px rgba(212, 175, 55, 0.8)) brightness(1.3);
}

.emblem-aura {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
    animation: rotateAura 12s linear infinite;
    pointer-events: none;
}

/* Brand Typography Logo */
.brand-title-wrapper {
    margin-bottom: 20px;
    max-width: 580px;
    width: 90%;
}

.brand-logo-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(212, 175, 55, 0.25));
}

.brand-subtitle {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.brand-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* ==========================================================================
   FOOTER & LEGAL
   ========================================================================== */

.site-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.age-warning {
    font-size: 0.72rem;
    color: rgba(160, 166, 178, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   AGE VERIFICATION MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 7, 0.92);
    backdrop-filter: blur(24px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-box {
    background: #0d1117;
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.25);
    position: relative;
}

.modal-emblem {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    filter: invert(1) drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.modal-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-btn-confirm {
    background: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    color: #07090c;
}

.modal-btn-confirm:hover {
    background: #e5c158;
}

.modal-btn-deny {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.modal-btn-deny:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }

    .emblem-card {
        width: 120px;
        height: 120px;
    }

    .audio-icon-btn {
        top: 2px;
        right: -18px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }

    .brand-tagline {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .modal-box {
        padding: 30px 24px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 0 16px;
    }

    .hero {
        padding: 30px 0;
    }

    .emblem-card {
        width: 100px;
        height: 100px;
    }

    .audio-icon-btn {
        top: -4px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 0.88rem;
    }

    .brand-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }

    .brand-tagline {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .site-footer {
        padding: 24px 0;
        gap: 10px;
    }

    .footer-copy {
        font-size: 0.75rem;
    }

    .age-warning {
        font-size: 0.65rem;
    }

    .modal-box {
        padding: 24px 18px;
    }

    .modal-emblem {
        width: 55px;
        height: 55px;
        margin-bottom: 12px;
    }

    .modal-title {
        font-size: 1.2rem;
    }

    .modal-text {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes rotateAura {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
