/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Fantasy RPG Theme */
    --primary-gold: #d4af37;
    --primary-gold-dark: #b8941f;
    --secondary-purple: #6b46c1;
    --secondary-purple-dark: #553c9a;
    --accent-emerald: #10b981;
    --accent-crimson: #dc2626;
    
    /* Neutral Colors */
    --dark-primary: #0f0f0f;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-purple), var(--secondary-purple-dark));
    --gradient-hero: linear-gradient(135deg, #0f0f0f 0%, #2d1b69 50%, #0f0f0f 100%);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.nav-brand i {
    font-size: 2rem;
}

.nav-brand i.fa-scroll {
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 2.35rem;
    display: inline-block;
    background: url('../images/logo-mark.png') center / contain no-repeat;
    color: transparent;
    font-size: 0 !important;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.32));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.username {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--dark-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background: var(--dark-tertiary);
    color: var(--text-primary);
    border-color: var(--primary-gold);
}

.btn-hero {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    background: var(--gradient-primary);
    color: var(--dark-primary);
    border-radius: var(--radius-lg);
}

.btn-hero-outline {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: var(--radius-lg);
}

.btn-hero-outline:hover {
    background: var(--primary-gold);
    color: var(--dark-primary);
}

.btn-hero-discord,
.btn-cta-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #ffffff;
    background: #5865f2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(88, 101, 242, 0.25);
}

.btn-hero-discord {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-hero-discord:hover,
.btn-cta-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(88, 101, 242, 0.32);
}

.btn-cta {
    padding: var(--spacing-md) var(--spacing-xxl);
    font-size: 1.2rem;
    background: var(--gradient-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-xl);
}

.btn-cta-discord {
    margin-left: 0.75rem;
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.05rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 70, 193, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    position: relative;
    padding: var(--spacing-xl);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.quest-card {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card.guild-card {
    bottom: 20%;
    left: 10%;
    animation-delay: 3s;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: var(--spacing-sm);
}

.floating-card h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.floating-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.reward {
    background: var(--gradient-primary);
    color: var(--dark-primary);
    padding: 0.25rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.status {
    background: var(--accent-emerald);
    color: var(--text-primary);
    padding: 0.25rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

/* Sections */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background: var(--dark-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--dark-tertiary);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-gold);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
}

.feature-icon i {
    font-size: 2rem;
    color: var(--dark-primary);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Games Section */
.games {
    padding: var(--spacing-xxl) 0;
    background: var(--dark-primary);
}

.games-carousel {
    position: relative;
    overflow: hidden;
    width: min(880px, 100%);
    margin: 0 auto;
    padding: 0.5rem 0 1rem;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.games-carousel::before,
.games-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 7rem;
    pointer-events: none;
    z-index: 3;
}

.games-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--dark-primary), transparent);
}

.games-carousel::after {
    right: 0;
    background: linear-gradient(270deg, var(--dark-primary), transparent);
}

.games-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    gap: var(--spacing-xl);
    width: max-content;
    animation: gamesMarquee 150s linear infinite;
    will-change: transform;
}

.games-carousel:hover .games-track,
.games-carousel:focus-within .games-track {
    animation-play-state: paused;
}

.game-card {
    flex: 0 0 400px;
    width: 400px;
    min-width: 400px;
    max-width: 400px;
    background: var(--dark-secondary);
    border: 1px solid rgba(107, 70, 193, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 0.05;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-purple);
}

.game-image {
    width: 100px;
    height: 100px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.game-image i {
    font-size: 3rem;
    color: var(--text-primary);
}

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.game-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.game-features {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.tag {
    background: rgba(107, 70, 193, 0.2);
    color: var(--secondary-purple);
    padding: 0.25rem var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(107, 70, 193, 0.3);
}

@keyframes gamesMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - (var(--spacing-xl) / 2)));
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-carousel {
        overflow-x: auto;
        mask-image: none;
    }

    .games-carousel::before,
    .games-carousel::after {
        display: none;
    }

    .games-track {
        animation: none;
    }
}

/* Call to Action */
.cta {
    padding: var(--spacing-xxl) 0;
    background: var(--gradient-secondary);
    text-align: center;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--dark-primary);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--primary-gold);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--dark-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-gold);
    color: var(--dark-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--dark-tertiary);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: var(--spacing-xl);
    }
    
    .nav-menu {
        gap: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .games-track {
        gap: var(--spacing-lg);
        animation-duration: 120s;
    }

    .game-card {
        flex-basis: min(400px, calc(100vw - 4rem));
        width: min(400px, calc(100vw - 4rem));
        min-width: min(400px, calc(100vw - 4rem));
        max-width: min(400px, calc(100vw - 4rem));
    }

    .games-carousel::before,
    .games-carousel::after {
        width: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .btn-hero-discord,
    .btn-cta-discord {
        width: 100%;
        max-width: 320px;
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
    
    .floating-card {
        position: static;
        margin: var(--spacing-md);
        animation: none;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .user-menu {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
}

/* Product polish pass */
:root {
    --surface: rgba(26, 26, 26, 0.92);
    --surface-raised: rgba(45, 45, 45, 0.88);
    --border-subtle: rgba(212, 175, 55, 0.16);
    --focus-ring: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.navbar {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-container,
.container {
    width: min(1200px, calc(100% - 2rem));
}

.hero {
    min-height: 88vh;
    isolation: isolate;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(180deg, transparent, var(--dark-secondary));
    pointer-events: none;
    z-index: 1;
}

.hero-content,
.hero-visual {
    z-index: 2;
}

.hero-description {
    max-width: 58ch;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
}

.btn:hover {
    text-decoration: none;
}

.feature-card,
.game-card,
.floating-card,
.dashboard-card,
.form-container,
.tips-section,
.management-section,
.settings-section,
.admin-section {
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.feature-card,
.game-card {
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.96), rgba(26, 26, 26, 0.96));
}

.notifications-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 3000;
    display: grid;
    gap: 0.75rem;
    width: min(380px, calc(100vw - 2rem));
}

.notification {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: rgba(26, 26, 26, 0.96);
    color: var(--text-primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
    animation: notificationSlide 0.22s ease-out;
}

.notification-success i { color: var(--accent-emerald); }
.notification-error i { color: #f87171; }
.notification-warning i { color: #fbbf24; }
.notification-info i { color: #93c5fd; }

.notification-close {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes notificationSlide {
    from {
        opacity: 0;
        transform: translateX(16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Arcane transfer overlay */
body.page-arrived .main-content,
body.page-arrived .auth-container,
body.page-arrived .hero,
body.page-arrived .container {
    animation: pageArriveSmooth 0.28s ease-out both;
}

.arcane-transfer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    contain: layout paint style;
}

.arcane-transfer-lock {
    cursor: wait;
}

.arcane-transfer__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 6, 8, 0.98), rgba(41, 24, 56, 0.96) 34%, rgba(245, 211, 111, 0.22) 50%, rgba(11, 9, 14, 0.98) 68%),
        radial-gradient(circle at center, rgba(245, 211, 111, 0.18), rgba(10, 8, 12, 0.92) 52%, rgba(0,0,0,0.98));
    transform: translate3d(-105%, 0, 0);
    opacity: 0;
    will-change: opacity, transform;
}

.arcane-transfer__circle {
    position: relative;
    width: min(42vw, 20rem);
    height: min(42vw, 20rem);
    border-radius: 50%;
    border: 2px solid rgba(245, 211, 111, 0.82);
    box-shadow:
        0 0 34px rgba(245, 211, 111, 0.65),
        inset 0 0 44px rgba(107, 70, 193, 0.34);
    transform: translateZ(0) scale(0.22) rotate(0deg);
    opacity: 0;
    will-change: opacity, transform;
}

.arcane-transfer__circle::before,
.arcane-transfer__circle::after,
.arcane-transfer__circle span {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(245, 211, 111, 0.55);
}

.arcane-transfer__circle::before {
    inset: 10%;
    border-style: dashed;
}

.arcane-transfer__circle::after {
    inset: 23%;
    border-color: rgba(16, 185, 129, 0.58);
    box-shadow: inset 0 0 26px rgba(16, 185, 129, 0.2);
}

.arcane-transfer__circle span:nth-child(1) {
    inset: -8%;
    border-color: rgba(107, 70, 193, 0.44);
}

.arcane-transfer__circle span:nth-child(2) {
    inset: 36%;
    border-color: rgba(255, 255, 255, 0.28);
}

.arcane-transfer__circle span:nth-child(3) {
    inset: 49%;
    background: rgba(245, 211, 111, 0.85);
    box-shadow: 0 0 42px rgba(245, 211, 111, 0.95);
}

.arcane-transfer__runes {
    position: absolute;
    width: min(68vw, 36rem);
    height: min(68vw, 36rem);
    border-radius: 50%;
    display: grid;
    place-items: center;
    opacity: 0;
    will-change: opacity, transform;
}

.arcane-transfer__runes span {
    position: absolute;
    color: rgba(245, 211, 111, 0.86);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(245, 211, 111, 0.7);
}

.arcane-transfer__runes span:nth-child(1) { transform: translateY(-16rem); }
.arcane-transfer__runes span:nth-child(2) { transform: translateX(16rem); }
.arcane-transfer__runes span:nth-child(3) { transform: translateY(16rem); }
.arcane-transfer__runes span:nth-child(4) { transform: translateX(-16rem); }

.arcane-transfer__label {
    position: absolute;
    top: calc(50% + min(34vw, 18rem));
    color: rgba(255, 244, 214, 0.9);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0;
    opacity: 0;
}

.arcane-transfer.is-active {
    opacity: 1;
    visibility: visible;
}

.arcane-transfer.is-active .arcane-transfer__veil {
    animation: transferVeil 0.46s cubic-bezier(0.2, 0.82, 0.22, 1) forwards;
}

.arcane-transfer.is-active .arcane-transfer__circle {
    animation: transferCircle 0.46s cubic-bezier(0.2, 0.82, 0.22, 1) forwards;
}

.arcane-transfer.is-active .arcane-transfer__runes {
    animation: transferRunes 0.46s ease-out forwards;
}

.arcane-transfer.is-active .arcane-transfer__label {
    animation: transferLabel 0.46s ease-out forwards;
}

@keyframes transferVeil {
    0% { opacity: 0; transform: translate3d(-105%, 0, 0); }
    18% { opacity: 1; }
    100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes transferCircle {
    0% { opacity: 0; transform: translate3d(-22vw, 0, 0) scale(0.65) rotate(0deg); }
    28% { opacity: 1; }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.12) rotate(220deg); }
}

@keyframes transferRunes {
    0% { opacity: 0; transform: translate3d(-18vw, 0, 0) scale(0.72) rotate(0deg); }
    36% { opacity: 1; }
    100% { opacity: 0.45; transform: translate3d(0, 0, 0) scale(1.08) rotate(-80deg); }
}

@keyframes transferLabel {
    0%, 18% { opacity: 0; transform: translate3d(0, 8px, 0); }
    36%, 70% { opacity: 1; transform: translate3d(0, 0, 0); }
    100% { opacity: 0; transform: translate3d(0, -6px, 0); }
}

@keyframes pageArriveSmooth {
    from {
        opacity: 0.88;
        transform: translate3d(10px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .arcane-transfer {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: sticky;
    }

    .nav-container {
        min-height: 70px;
        height: auto;
        padding: 0.85rem 0;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero {
        min-height: auto;
        padding-top: 2rem;
    }

    .hero-content {
        padding: 3rem 1rem 1rem;
    }
}
