/* --------------------------------------------------
   ROOT VARIABLES — Sanctuary Brand System
-------------------------------------------------- */
:root {
    --black: #0A0A0A;
    --purple-deep: #2A003E;
    --violet: #7A1CAC;
    --magenta: #C72C8C;
    --lavender: #D8B4F8;
    --white: #FFFFFF;
    --gray-light: #CCCCCC;
}

/* --------------------------------------------------
   GLOBAL STYLES
-------------------------------------------------- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    color: var(--lavender);
    text-shadow: 0 0 10px var(--violet);
    margin-top: 0;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
header {
    background: linear-gradient(to bottom, #2A003E, #15001F);
    padding: 20px;
    text-align: center;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin: 0 auto;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--lavender);
    border-radius: 3px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Nav */
nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

nav ul.open {
    max-height: 500px;
    opacity: 1;
}

nav a {
    color: var(--lavender);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--magenta);
    text-shadow: 0 0 6px var(--magenta);
}

nav a.active {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 6px var(--magenta); }
    50% { text-shadow: 0 0 14px var(--magenta); }
    100% { text-shadow: 0 0 6px var(--magenta); }
}

/* --------------------------------------------------
   HERO SECTION (base)
-------------------------------------------------- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--purple-deep);
}

.hero h2 { font-size: 2.5rem; }
.hero p { font-size: 1.2rem; margin-bottom: 20px; }

.btn {
    background-color: var(--violet);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover {
    background-color: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
}

/* --------------------------------------------------
   FEATURES
-------------------------------------------------- */
.features {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.features article {
    background-color: var(--purple-deep);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    border: 2px solid var(--violet);
}

.link {
    color: var(--lavender);
    font-weight: bold;
    text-decoration: none;
}

.link:hover { color: var(--magenta); }

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
    background-color: var(--purple-deep);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: var(--lavender);
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 0 0 8px var(--violet);
}

/* --------------------------------------------------
   CONTACT FORM
-------------------------------------------------- */
form { display: flex; flex-direction: column; gap: 15px; }

label { font-weight: bold; color: var(--lavender); }

input, textarea {
    padding: 12px;
    border-radius: 6px;
    border: 2px solid var(--violet);
    background-color: #1A1A1A;
    color: #aa53e4;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--magenta);
}

button.btn { cursor: pointer; border: none; }

/* --------------------------------------------------
   SOCIAL ICONS
-------------------------------------------------- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-icons .icon {
    font-size: 2rem;
    color: var(--lavender);
    transition: 0.3s ease;
    text-shadow: 0 0 10px var(--violet);
}

.social-icons .icon:hover {
    color: var(--magenta);
    text-shadow: 0 0 15px var(--magenta);
    transform: scale(1.2);
}

/* --------------------------------------------------
   EVENT & SERVICE CARDS
-------------------------------------------------- */
.event-card,
.service-card {
    background-color: var(--purple-deep);
    border: 2px solid var(--violet);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 12px rgba(122, 28, 172, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.event-card:hover,
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(199, 44, 140, 0.6);
}

.event-card h3,
.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--lavender);
}

.event-card .date {
    font-size: 0.95rem;
    color: var(--magenta);
    margin-bottom: 12px;
    font-weight: bold;
}

.event-card .details { font-size: 1rem; min-height: 80px; }

/* --------------------------------------------------
   EVENTS PAGE
-------------------------------------------------- */
.events-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --------------------------------------------------
   SERVICES PAGE
-------------------------------------------------- */
.services {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2.5rem; }

.section-subtitle { color: var(--gray-light); font-size: 1.1rem; }

.gothic-divider {
    position: relative;
    padding-bottom: 20px;
}

.gothic-divider::after {
    content: "";
    width: 180px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--violet), transparent);
    display: block;
    margin: 20px auto 0;
    box-shadow: 0 0 10px var(--violet);
}

.category-title {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    text-align: center;
}

.category-title.gothic-accent::before {
    content: "✦";
    color: var(--magenta);
    margin-right: 10px;
    text-shadow: 0 0 8px var(--magenta);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.price {
    color: var(--magenta);
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 6px var(--magenta);
}

.service-card ul { padding-left: 20px; margin: 10px 0; }
.service-card li { margin-bottom: 6px; }

/* --------------------------------------------------
   GAME & SETUP ICONS
-------------------------------------------------- */
.game-header,
.setup-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.game-icon,
.setup-icon {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(122, 28, 172, 0.5);
}

/* --------------------------------------------------
   MINI NAV (IFRAME PAGES)
-------------------------------------------------- */
.mini-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 10px;
    background: rgba(42, 0, 62, 0.4);
    border-bottom: 2px solid var(--violet);
    box-shadow: 0 0 12px rgba(122, 28, 172, 0.4);
    border-radius: 0 0 12px 12px;
    margin-bottom: 25px;
}

.mini-nav a {
    color: var(--lavender);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--violet);
    background: rgba(42, 0, 62, 0.5);
    transition: 0.3s ease;
    box-shadow: 0 0 8px rgba(122, 28, 172, 0.3);
}

.mini-nav a:hover {
    color: var(--magenta);
    border-color: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
    transform: translateY(-3px);
}

/* --------------------------------------------------
   PREMIUM SCROLLBAR
-------------------------------------------------- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: var(--violet);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--magenta);
}

/* --------------------------------------------------
   FLOATING MUSIC ORB
-------------------------------------------------- */
#music-orb {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--violet), var(--purple-deep));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 15px var(--violet),
        0 0 25px rgba(199, 44, 140, 0.6);
    cursor: pointer;
    z-index: 9999;
    animation: orbFloat 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover */
#music-orb:hover {
    transform: scale(1.12);
    box-shadow:
        0 0 20px var(--magenta),
        0 0 35px rgba(199, 44, 140, 0.8);
}

/* Crescent + Cat Ears Rune */
#music-orb::before {
    content: "";
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid var(--lavender);
    border-color: var(--lavender) transparent transparent transparent;
    transform: rotate(180deg);
    opacity: 0.55;
    filter: drop-shadow(0 0 6px var(--lavender));
}

/* Cat ears */
#music-orb::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 14px solid var(--lavender);
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.55;
    filter: drop-shadow(0 0 6px var(--lavender));
}

/* Visualizer bars */
#visualizer {
    display: flex;
    gap: 4px;
    z-index: 3;
}

#visualizer .bar {
    width: 6px;
    height: 20px;
    background: var(--white);
    border-radius: 3px;
    animation: bounce 1s ease-in-out infinite;
    opacity: 0.9;
    box-shadow: 0 0 8px var(--lavender);
}

/* Wave timing */
#visualizer .bar:nth-child(1) { animation-delay: 0s; }
#visualizer .bar:nth-child(2) { animation-delay: 0.2s; }
#visualizer .bar:nth-child(3) { animation-delay: 0.4s; }
#visualizer .bar:nth-child(4) { animation-delay: 0.6s; }

/* Bar animation */
@keyframes bounce {
    0%, 100% { height: 10px; }
    50% { height: 28px; }
}

/* Orb floating animation */
@keyframes orbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Paused state */
#music-orb.paused .bar {
    animation-play-state: paused;
    opacity: 0.4;
}

/* --------------------------------------------------
   SANCTUARY SERVICE TABLES
-------------------------------------------------- */
.service-table-wrapper {
    margin: 40px 0;
}

.service-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(42, 0, 62, 0.45);
    border: 2px solid var(--violet);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(122, 28, 172, 0.4);
}

.service-table th {
    background: rgba(122, 28, 172, 0.25);
    color: var(--lavender);
    padding: 14px;
    font-size: 1.2rem;
    text-align: left;
    border-bottom: 2px solid var(--violet);
    text-shadow: 0 0 8px var(--violet);
}

.service-table td {
    padding: 14px;
    color: var(--white);
    border-bottom: 1px solid rgba(122, 28, 172, 0.3);
    vertical-align: top;
}

.service-table tr:last-child td {
    border-bottom: none;
}

.service-table tr:hover {
    background: rgba(199, 44, 140, 0.15);
    transition: 0.3s ease;
}

/* Gothic divider under category titles */
.category-title + .gothic-table-divider {
    width: 180px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--violet), transparent);
    margin: 10px auto 25px;
    box-shadow: 0 0 10px var(--violet);
}

/* --------------------------------------------------
   SANCTUARY EVENTS TABLES
-------------------------------------------------- */
.events-table-wrapper {
    margin: 40px 0;
    position: relative;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(42, 0, 62, 0.45);
    border: 2px solid var(--violet);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(122, 28, 172, 0.4);
}

.events-table th {
    background: rgba(122, 28, 172, 0.25);
    color: var(--lavender);
    padding: 14px;
    font-size: 1.2rem;
    text-align: left;
    border-bottom: 2px solid var(--violet);
    text-shadow: 0 0 8px var(--violet);
}

.events-table td {
    padding: 14px;
    color: var(--white);
    border-bottom: 1px solid rgba(122, 28, 172, 0.3);
    vertical-align: top;
}

.events-table tr:last-child td {
    border-bottom: none;
}

.events-table tr:hover {
    background: rgba(199, 44, 140, 0.15);
    transition: 0.3s ease;
}

/* Weekly schedule highlight */
.weekly-schedule-box {
    background: rgba(42, 0, 62, 0.55);
    border: 2px solid var(--violet);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 0 15px rgba(122, 28, 172, 0.4);
    text-align: center;
}

.weekly-schedule-box h2 {
    margin-bottom: 10px;
    color: var(--lavender);
    text-shadow: 0 0 10px var(--violet);
}

.weekly-schedule-box p {
    color: var(--white);
    font-size: 1.1rem;
}

/* Past events faded style */
.past-events {
    opacity: 0.75;
    filter: grayscale(20%);
}

.past-table tr:hover {
    background: rgba(122, 28, 172, 0.1);
}

/* Animated runes around featured event */
.category-title.gothic-accent {
    position: relative;
}

.category-title.gothic-accent::before,
.category-title.gothic-accent::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--magenta);
    opacity: 0.6;
    text-shadow: 0 0 12px var(--magenta);
    animation: runeFloat 4s ease-in-out infinite;
}

.category-title.gothic-accent::before {
    left: -25px;
}

.category-title.gothic-accent::after {
    right: -25px;
    animation-delay: 1.2s;
}

@keyframes runeFloat {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-60%) scale(1.15); }
}

/* Glowing sigil behind event tables */
.events-table-wrapper::before {
    content: "✧";
    position: absolute;
    font-size: 5rem;
    color: var(--violet);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: sigilPulse 6s ease-in-out infinite;
}

@keyframes sigilPulse {
    0%, 100% { opacity: 0.05; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.12; transform: translate(-50%, -50%) scale(1.15); }
}

/* EVENTS PAGE FLOATING EFFECTS */
.events-page {
    animation: eventsFloat 10s ease-in-out infinite;
    position: relative;
}

@keyframes eventsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Float the event sections individually */
.weekly-schedule-box,
.service-category {
    animation: eventSectionFloat 12s ease-in-out infinite;
}

@keyframes eventSectionFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.events-page::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(122, 28, 172, 0.15), transparent 70%);
    z-index: -1;
    animation: auraPulse 8s ease-in-out infinite;
}

/* Shared aura pulse */
@keyframes auraPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* --------------------------------------------------
   CONTACT PAGE FLOATING EFFECTS
-------------------------------------------------- */
.contact-page {
    animation: contactFloat 10s ease-in-out infinite;
    position: relative;
}

@keyframes contactFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Floating sections */
.contact-section,
.contact-socials {
    animation: contactSectionFloat 12s ease-in-out infinite;
}

@keyframes contactSectionFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Ambient aura */
.contact-page::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(122, 28, 172, 0.15), transparent 70%);
    z-index: -1;
    animation: auraPulse 8s ease-in-out infinite;
}

/* CONTACT FORM — PREMIUM SANCTUARY STYLE */
.contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(42, 0, 62, 0.45);
    border: 2px solid var(--violet);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(122, 28, 172, 0.4);
}

.contact-section h2 {
    text-align: center;
    color: var(--lavender);
    text-shadow: 0 0 10px var(--violet);
    margin-bottom: 20px;
    position: relative;
}

.contact-section label {
    display: block;
    margin-top: 15px;
    color: var(--white);
    font-weight: bold;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    background: rgba(20, 0, 30, 0.6);
    border: 1px solid var(--violet);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
    border-color: var(--magenta);
    box-shadow: 0 0 12px var(--magenta);
}

.contact-section .btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: var(--violet);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-section .btn:hover {
    background: var(--magenta);
    box-shadow: 0 0 14px var(--magenta);
}

/* CONTACT PAGE SOCIAL ICONS */
.contact-socials {
    margin-top: 40px;
    text-align: center;
}

.sanctuary-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
}

.sanctuary-socials a {
    font-size: 2.4rem;
    color: var(--lavender);
    text-shadow: 0 0 12px var(--violet);
    transition: 0.3s ease;
}

.sanctuary-socials a:hover {
    color: var(--magenta);
    text-shadow: 0 0 18px var(--magenta);
    transform: scale(1.2);
}

/* Runes around Contact title */
.contact-section h2::before,
.contact-section h2::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--magenta);
    opacity: 0.6;
    text-shadow: 0 0 12px var(--magenta);
    animation: runeFloat 4s ease-in-out infinite;
}

.contact-section h2::before {
    left: -25px;
}

.contact-section h2::after {
    right: -25px;
    animation-delay: 1.2s;
}

/* Sigil behind form */
.contact-section::before {
    content: "✧";
    position: absolute;
    font-size: 5rem;
    color: var(--violet);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: sigilPulse 6s ease-in-out infinite;
}

/* --------------------------------------------------
   SETUP PAGE FLOATING EFFECTS
-------------------------------------------------- */
.setup-page {
    animation: setupFloat 10s ease-in-out infinite;
    position: relative;
}

@keyframes setupFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Floating sections */
.setup-category {
    animation: setupSectionFloat 12s ease-in-out infinite;
}

@keyframes setupSectionFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Ambient aura */
.setup-page::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(122, 28, 172, 0.15), transparent 70%);
    z-index: -1;
    animation: auraPulse 8s ease-in-out infinite;
}

/* SETUP TABLES */
.setup-table-wrapper {
    margin: 40px 0;
    position: relative;
}

.setup-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(42, 0, 62, 0.45);
    border: 2px solid var(--violet);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(122, 28, 172, 0.4);
}

.setup-table th {
    background: rgba(122, 28, 172, 0.25);
    color: var(--lavender);
    padding: 14px;
    font-size: 1.2rem;
    text-align: left;
    border-bottom: 2px solid var(--violet);
    text-shadow: 0 0 8px var(--violet);
}

.setup-table td {
    padding: 14px;
    color: var(--white);
    border-bottom: 1px solid rgba(122, 28, 172, 0.3);
    vertical-align: top;
}

.setup-table tr:last-child td {
    border-bottom: none;
}

.setup-table tr:hover {
    background: rgba(199, 44, 140, 0.15);
    transition: 0.3s ease;
}

/* GEAR IMAGES */
.setup-icon {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--violet);
    box-shadow: 0 0 12px rgba(122, 28, 172, 0.5);
    transition: 0.3s ease;
}

.setup-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 18px var(--magenta);
}

/* Runes around category titles (shared) */
/* already defined via .category-title.gothic-accent */

/* Sigil behind tables */
.setup-table-wrapper::before {
    content: "✧";
    position: absolute;
    font-size: 5rem;
    color: var(--violet);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: sigilPulse 6s ease-in-out infinite;
}

/* --------------------------------------------------
   ABOUT PAGE FLOATING EFFECTS & LORE
-------------------------------------------------- */
.about-page {
    animation: aboutFloat 10s ease-in-out infinite;
    position: relative;
}

@keyframes aboutFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-page::before {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 120%;
    background: radial-gradient(circle at center, rgba(122, 28, 172, 0.15), transparent 70%);
    z-index: -1;
    animation: auraPulse 8s ease-in-out infinite;
}

/* ABOUT LORE TABLE */
.lore-table-wrapper {
    margin: 40px auto;
    max-width: 900px;
    position: relative;
}

.lore-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(42, 0, 62, 0.45);
    border: 2px solid var(--violet);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(122, 28, 172, 0.4);
}

.lore-table th {
    background: rgba(122, 28, 172, 0.25);
    color: var(--lavender);
    padding: 14px;
    font-size: 1.2rem;
    text-align: left;
    border-bottom: 2px solid var(--violet);
    text-shadow: 0 0 8px var(--violet);
}

.lore-table td {
    padding: 14px;
    color: var(--white);
    border-bottom: 1px solid rgba(122, 28, 172, 0.3);
}

.lore-table tr:last-child td {
    border-bottom: none;
}

.lore-table tr:hover {
    background: rgba(199, 44, 140, 0.15);
    transition: 0.3s ease;
}

/* Sigil behind lore table */
.lore-table-wrapper::before {
    content: "✧";
    position: absolute;
    font-size: 5rem;
    color: var(--violet);
    opacity: 0.08;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: sigilPulse 6s ease-in-out infinite;
}

.about-section {
    animation: aboutSectionFloat 12s ease-in-out infinite;
}

@keyframes aboutSectionFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.about-portrait {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--violet);
    box-shadow: 0 0 20px rgba(122, 28, 172, 0.6);
    margin: 0 auto 20px;
    display: block;
    transition: 0.3s ease;
}

.about-portrait:hover {
    transform: scale(1.05);
    box-shadow: 0 0 28px var(--magenta);
}

/* Runes around About section titles */
.about-content h2 {
    position: relative;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 15px;
}

.about-content h2::before,
.about-content h2::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--magenta);
    opacity: 0.6;
    text-shadow: 0 0 12px var(--magenta);
    animation: runeFloat 4s ease-in-out infinite;
}

.about-content h2::before {
    left: -25px;
}

.about-content h2::after {
    right: -25px;
    animation-delay: 1.2s;
}

.gothic-ornament {
    text-align: center;
    font-size: 1.6rem;
    color: var(--lavender);
    margin: 25px 0;
    text-shadow: 0 0 10px var(--violet);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 30px;
    color: var(--white);
    line-height: 1.7;
    font-size: 1.1rem;
}

.theme-song {
    text-align: center;
    margin-top: 40px;
}

.theme-song audio {
    margin-top: 10px;
    width: 80%;
    max-width: 500px;
}

/* --------------------------------------------------
   HOME PAGE — Sanctuary Upgrade
-------------------------------------------------- */

/* Gothic Ornament (home) */
.gothic-ornament {
    text-align: center;
    font-size: 2.2rem;
    color: var(--lavender);
    margin: 25px 0;
    text-shadow: 0 0 12px var(--violet);
}

/* Hero Section Upgrade */
.hero {
    padding: 60px 20px !important;
    min-height: 200px !important;
    text-align: center;
    background: radial-gradient(circle at center, rgba(122,28,172,0.25), transparent 70%);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Home Navigation Grid */
.home-navigation {
    padding: 40px 20px;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    animation: gridFloat 10s ease-in-out infinite;
}

@keyframes gridFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Navigation Cards */
.nav-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
    background: rgba(42, 0, 62, 0.55);
    border: 2px solid var(--violet);
    border-radius: 12px;
    text-decoration: none;
    color: var(--lavender);
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    transition: 0.35s ease;
    box-shadow: 0 0 14px rgba(122, 28, 172, 0.4);
    position: relative;
    overflow: hidden;
}

/* Subtle rune accent */
.nav-card::before {
    content: "✦";
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.2rem;
    color: var(--magenta);
    opacity: 0.4;
    text-shadow: 0 0 10px var(--magenta);
}

/* Hover Effects */
.nav-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--magenta);
    color: var(--white);
    box-shadow: 0 0 18px var(--magenta);
}

.nav-card:hover::before {
    opacity: 0.8;
    text-shadow: 0 0 14px var(--magenta);
}

/* --------------------------------------------------
   IFRAME CONTENT FRAME
-------------------------------------------------- */
.content-frame {
    width: 100%;
    height: calc(100vh - 180px);
    border: none;
    background: var(--black);
    overflow-y: auto;
}

/* --------------------------------------------------
   RESPONSIVE — PHONES
-------------------------------------------------- */
@media (max-width: 768px) {

    body { font-size: 1rem; padding: 0 10px; }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .hero {
        padding: 50px 15px !important;
    }

    section,
    .events-page,
    .services,
    .setup-page,
    .games-page {
        padding: 40px 15px;
    }

    .features {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .features article {
        width: 90%;
        max-width: 350px;
    }

    .event-list,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-header,
    .setup-header {
        flex-direction: column;
        gap: 10px;
    }

    .game-icon,
    .setup-icon {
        width: 90px;
        height: 60px;
    }

    footer {
        font-size: 1.1rem;
        padding: 15px;
    }
}

/* --------------------------------------------------
   RESPONSIVE — TABLETS & DESKTOP NAV LAYOUT
-------------------------------------------------- */
@media (min-width: 769px) {

    nav ul {
        flex-direction: row;
    }
}
/* Make mini-nav always clickable and on top */
.mini-nav {
    position: relative;
    z-index: 9999;
}

/* Ensure page wrappers sit below the mini-nav */
.about-page,
.setup-page,
.hero {
    position: relative;
    z-index: 1;
}

/* Just in case something disabled pointer events */
.mini-nav a {
    pointer-events: auto;
}
/* Hide mini-nav on mobile */
@media (max-width: 768px) {
    .mini-nav {
        display: none;
    }
}
/* Make mobile menu appear above iframe */
nav ul {
    position: relative;
    z-index: 9999;
}
iframe {
    position: relative;
    z-index: 1;
}
nav ul {
    position: relative;
    z-index: 9999;
}
/* --------------------------------------------------
   RESPONSIVE — PHONES
-------------------------------------------------- */
@media (max-width: 768px) {

    /* Hide mini-nav on mobile */
    .mini-nav {
        display: none;
    }

    /* Make hamburger menu appear above iframe */
    nav ul {
        position: relative;
        z-index: 9999;
    }

    /* Push iframe behind menu */
    iframe {
        position: relative;
        z-index: 1;
    }
}
.social-icon-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px var(--violet));
    transition: 0.3s ease;
}

a:hover .social-icon-img {
    filter: drop-shadow(0 0 12px var(--magenta));
    transform: scale(1.15);
}
/* Global link color fix */
a {
    color: #b38bff; /* soft gothic purple */
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: #d8c2ff; /* lighter purple glow */
}
.btn-primary {
    background-color: #6a0dad; /* deep gothic purple */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background-color: #8b2be2; /* brighter purple */
    transform: translateY(-2px);
    box-shadow: 0 0 10px #b38bff;
}
.social-links a i {
    color: #b38bff;
    font-size: 1.8rem;
    margin: 0 10px;
    transition: 0.3s ease;
}

.social-links a i:hover {
    color: #d8c2ff;
    text-shadow: 0 0 8px #b38bff;
}
/* Primary Gothic Purple Button */
.btn-primary,
.btn-ghost {  /* make both use the same base */
    background-color: #7a1cc4; /* deep gothic purple */
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    display: inline-block;
    text-align: center;
}

/* Hover Glow */
.btn-primary:hover,
.btn-ghost:hover {
    background-color: #9b3ff0;
    box-shadow: 0 0 12px #c59bff;
    transform: translateY(-2px);
}
.hero-actions {
    display: flex;
    flex-direction: column; /* stack vertically */
    gap: 18px; /* perfect spacing between buttons */
    margin-top: 20px;
    margin-bottom: 20px;
    align-items: center; /* center them nicely */
}
.quick-actions {
    margin-top: 30px;
    margin-bottom: 30px;
}
/* Featured Game */
.featured-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #7a1cc4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 15px #7a1cc4;
    margin-bottom: 30px;
}

.featured-box img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Game Cards Glow */
.game-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #7a1cc4;
    border-radius: 10px;
    padding: 15px;
    transition: 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 18px #b38bff;
    border-color: #b38bff;
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    margin-right: 10px;
}

.game-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.game-card h3 {
    color: #c59bff;
    text-shadow: 0 0 6px #7a1cc4;
}
.featured-game {
    display: flex;
    justify-content: center;
}

.featured-box {
    max-width: 350px;   /* controls how small it becomes */
    width: 100%;
    margin: 0 auto;
}
.featured-game {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}
.featured-box {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
}
.featured-game h2 {
    text-align: center;
    width: 100%;
}
.featured-box img {
    display: block;
    margin: 0 auto;
}
.featured-game {
    margin-bottom: 30px;
}
/* --------------------------------------------------
   FIX: Center Featured Game Section
-------------------------------------------------- */

.featured-game {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    margin-bottom: 30px;
}

.featured-box {
    max-width: 320px; /* Option B size */
    width: 100%;
    margin: 0 auto;
}
.featured-box img {
    display: block;
    margin: 0 auto 15px auto;
    width: 100%;
    border-radius: 10px;
}
/* --------------------------------------------------
   HOME PAGE — UPDATED LAYOUT & CENTERING
-------------------------------------------------- */

/* Center the entire home navigation section */
.home-navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Keep the grid centered and evenly spaced */
.nav-grid {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

/* Improve hero spacing and centering */
.hero {
    text-align: center;
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 900px;
}

/* Make nav cards feel more interactive and consistent */
.nav-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 20px;
    background: rgba(42, 0, 62, 0.55);
    border: 2px solid var(--violet);
    border-radius: 12px;
    text-decoration: none;
    color: var(--lavender);
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    transition: 0.35s ease;
    box-shadow: 0 0 14px rgba(122, 28, 172, 0.4);
}

.nav-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--magenta);
    color: var(--white);
    box-shadow: 0 0 18px var(--magenta);
}
/* Floating rune behind hero */
.hero::before {
    content: "✧";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 8rem;
    color: var(--violet);
    opacity: 0.08;
    pointer-events: none;
    animation: heroRuneFloat 8s ease-in-out infinite;
    text-shadow: 0 0 20px var(--violet);
}

@keyframes heroRuneFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
    50% { transform: translate(-50%, -52%) scale(1.15); opacity: 0.14; }
}
/* Floating rune behind hero */
.hero::before {
    content: "✧";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: 8rem;
    color: var(--violet);
    opacity: 0.08;
    pointer-events: none;
    animation: heroRuneFloat 8s ease-in-out infinite;
    text-shadow: 0 0 20px var(--violet);
}

@keyframes heroRuneFloat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.08; }
    50% { transform: translate(-50%, -52%) scale(1.15); opacity: 0.14; }
}
/* Animated sigils on nav cards */
.nav-card::after {
    content: "✦";
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 1.2rem;
    color: var(--magenta);
    opacity: 0.4;
    animation: sigilPulse 4s ease-in-out infinite;
    text-shadow: 0 0 10px var(--magenta);
}

@keyframes sigilPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}
/* Aura pulse behind hero text */
.hero h2 {
    position: relative;
    z-index: 2;
}

.hero h2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180%;
    height: 180%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(122, 28, 172, 0.25), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: heroAuraPulse 7s ease-in-out infinite;
}

@keyframes heroAuraPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.75; transform: translate(-50%, -50%) scale(1.15); }
}
/* Subtle parallax background */
body {
    background: url('css/images/sanctuary-bg-stars.png'), var(--black);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}
/* --------------------------------------------------
   RASTAASIAN DATING PROFILE REDESIGN — FEATURED SERVICE
-------------------------------------------------- */

.dating-service {
    position: relative;
    border-color: var(--magenta) !important;
    box-shadow: 0 0 20px rgba(199, 44, 140, 0.45) !important;
    animation: datingGlow 8s ease-in-out infinite;
}

/* Title glow */
.dating-service h3 {
    color: var(--magenta) !important;
    text-shadow: 0 0 12px var(--magenta);
}

/* Animated runes */
.dating-service::before,
.dating-service::after {
    content: "✦";
    position: absolute;
    font-size: 1.6rem;
    color: var(--magenta);
    opacity: 0.55;
    text-shadow: 0 0 12px var(--magenta);
    animation: runeFloat 4s ease-in-out infinite;
}

.dating-service::before {
    top: 10px;
    left: 12px;
}

.dating-service::after {
    bottom: 10px;
    right: 12px;
    animation-delay: 1.2s;
}

/* Aura pulse */
@keyframes datingGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(199, 44, 140, 0.35); }
    50% { box-shadow: 0 0 28px rgba(199, 44, 140, 0.65); }
}
/* --------------------------------------------------
   SETUP & GEAR — SANCTUARY REVAMP
-------------------------------------------------- */

/* HERO SECTION */
.setup-hero {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1.2s ease;
}

.hero-title {
    font-size: 3rem;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* SECTION WRAPPER */
.setup-section {
    margin: 50px 0;
    animation: fadeInUp 1s ease;
}

.section-description {
    max-width: 700px;
    margin: 0 auto 20px auto;
    text-align: center;
    opacity: 0.9;
}

/* BENEFITS LIST */
.setup-benefits {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 20px;
    list-style: none;
}

.setup-benefits li {
    margin: 8px 0;
    position: relative;
    padding-left: 20px;
}

.setup-benefits li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

/* TABLES */
.setup-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.setup-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    overflow: hidden;
}

.setup-table th {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    text-align: left;
    color: var(--accent);
    font-weight: bold;
}

.setup-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setup-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

/* ICON IMAGES */
.setup-icon {
    width: 80px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.setup-icon:hover {
    transform: scale(1.08);
    box-shadow: 0 0 18px var(--accent);
}

/* SOFTWARE LIST */
.setup-software {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding-left: 0;
}

.setup-software li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.setup-software li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.4rem;
    line-height: 1;
}

/* FUTURE UPGRADES */
.setup-upgrades {
    max-width: 700px;
    margin: 0 auto;
    list-style: none;
    padding-left: 0;
}

.setup-upgrades li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}

.setup-upgrades li::before {
    content: "✧";
    position: absolute;
    left: 0;
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
