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

:root {
    --deep-night: #0d1821;
    --midnight-blue: #1a2332;
    --dark-wood: #2a1810;
    --aged-wood: #3d2817;
    --gold-shine: #d4af37;
    --gold-dark: #b8941f;
    --bronze-glow: #cd7f32;
    --ice-blue: #4a7c9e;
    --frost-white: #e8f1f5;
    --rune-silver: #c0c5ce;
    --shadow-deep: rgba(13, 24, 33, 0.8);
    --wood-grain: linear-gradient(135deg, #2a1810 0%, #3d2817 100%);
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #b8941f 50%, #d4af37 100%);
    --nordic-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --rune-glow: 0 0 20px rgba(212, 175, 55, 0.4);
}

body {
    font-family: 'Lora', serif;
    background: var(--deep-night);
    color: var(--frost-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.realm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Age Gate */
.valhalla-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, rgba(13, 24, 33, 0.98) 0%, rgba(26, 35, 50, 0.98) 100%);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.valhalla-gate.active {
    opacity: 1;
    visibility: visible;
}

.gate-wrapper {
    background: var(--wood-grain);
    border-radius: 8px;
    padding: 50px 40px;
    text-align: center;
    border: 3px solid var(--gold-shine);
    box-shadow: var(--nordic-shadow), inset 0 0 30px rgba(0, 0, 0, 0.5);
    max-width: 520px;
    width: 90%;
    position: relative;
}

.gate-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gold-gradient);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
    animation: border-pulse 3s ease-in-out infinite;
}

.gate-content .rune-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gold-gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: var(--rune-glow);
    color: var(--deep-night);
    border: 2px solid var(--gold-dark);
}

.gate-content h2 {
    font-size: 36px;
    margin-bottom: 18px;
    color: var(--gold-shine);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.gate-content p {
    color: var(--rune-silver);
    margin-bottom: 35px;
    font-size: 17px;
}

.gate-actions {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.rune-btn-accept, .rune-btn-decline {
    flex: 1;
    padding: 16px 32px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.rune-btn-accept {
    background: var(--gold-gradient);
    color: var(--deep-night);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.rune-btn-accept:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.rune-btn-decline {
    background: transparent;
    color: var(--rune-silver);
    border: 2px solid var(--ice-blue);
}

.rune-btn-decline:hover {
    border-color: #8b4513;
    color: #cd7f32;
    background: rgba(139, 69, 19, 0.1);
}

.gate-content small {
    color: var(--rune-silver);
    font-size: 14px;
    opacity: 0.7;
}

.main-content.hidden {
    display: none;
}

/* Navigation */
.viking-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(13, 24, 33, 0.95) 0%, rgba(26, 35, 50, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--gold-shine);
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 26px;
    text-decoration: none;
    color: var(--gold-shine);
}

.logo-rune {
    font-size: 32px;
    color: var(--gold-shine);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.logo-title {
    color: var(--gold-shine);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
}

.menu-items {
    display: flex;
    gap: 35px;
    align-items: center;
}

.menu-link {
    color: var(--rune-silver);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Cinzel', serif;
}

.menu-link:hover {
    color: var(--gold-shine);
    transform: translateY(-2px);
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: width 0.3s ease;
}

.menu-link:hover::after {
    width: 100%;
}

.menu-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-burger span {
    width: 28px;
    height: 3px;
    background: var(--gold-shine);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.saga-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
}

.nordic-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(74, 124, 158, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(205, 127, 50, 0.1) 0%, transparent 60%),
        linear-gradient(135deg, var(--deep-night) 0%, var(--midnight-blue) 100%);
    z-index: -1;
}

.nordic-backdrop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(212, 175, 55, 0.03) 2px, rgba(212, 175, 55, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 175, 55, 0.03) 2px, rgba(212, 175, 55, 0.03) 4px);
    animation: rune-drift 30s linear infinite;
}

@keyframes rune-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.saga-content {
    text-align: center;
    max-width: 850px;
    padding: 0 20px;
    animation: fade-rise 1.2s ease-out;
}

.saga-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-shine);
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 35px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
}

.saga-heading {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
}

.heading-intro {
    display: block;
    color: var(--rune-silver);
    font-size: 0.5em;
    margin-bottom: 12px;
    letter-spacing: 3px;
}

.heading-main {
    display: block;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.saga-text {
    font-size: 19px;
    color: var(--rune-silver);
    margin-bottom: 45px;
    line-height: 1.8;
}

.rune-action-btn {
    background: var(--gold-gradient);
    color: var(--deep-night);
    border: none;
    padding: 20px 45px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.rune-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.rune-action-btn:hover .btn-shimmer {
    left: 100%;
}

/* Overview Section */
.realm-intro {
    padding: 110px 0;
    background: linear-gradient(180deg, var(--midnight-blue) 0%, var(--deep-night) 100%);
    position: relative;
}

.realm-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-gradient);
}

.realm-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.realm-visual img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--nordic-shadow);
    border: 3px solid var(--gold-shine);
}

.realm-story h2 {
    font-size: 2.8rem;
    margin-bottom: 28px;
    color: var(--gold-shine);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.realm-story p {
    font-size: 19px;
    color: var(--rune-silver);
    line-height: 1.8;
}

/* Features Section */
.treasure-hall {
    padding: 110px 0;
    background: var(--deep-night);
}

.hall-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 70px;
    color: var(--gold-shine);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.treasure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.treasure-item {
    background: var(--wood-grain);
    border-radius: 8px;
    padding: 45px 35px;
    text-align: center;
    border: 2px solid var(--gold-shine);
    transition: all 0.4s ease;
    box-shadow: var(--nordic-shadow);
    position: relative;
}

.treasure-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.treasure-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--bronze-glow);
}

.treasure-item:hover::before {
    opacity: 1;
}

.treasure-rune {
    font-size: 52px;
    color: var(--gold-shine);
    margin-bottom: 28px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.treasure-item h3 {
    font-size: 1.7rem;
    margin-bottom: 22px;
    color: var(--gold-shine);
}

.treasure-item p {
    color: var(--rune-silver);
    line-height: 1.7;
    font-size: 16px;
}

/* Game Preview */
.battle-preview {
    padding: 110px 0;
    background: linear-gradient(180deg, var(--midnight-blue) 0%, var(--deep-night) 100%);
}

.preview-stage {
    text-align: center;
}

.game-frame {
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--nordic-shadow);
    border: 4px solid var(--gold-shine);
}

.game-frame img {
    width: 100%;
    max-width: 650px;
    height: auto;
    display: block;
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 24, 33, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.game-frame:hover .frame-overlay {
    opacity: 1;
}

.launch-btn {
    background: var(--gold-gradient);
    color: var(--deep-night);
    border: none;
    padding: 22px 35px;
    border-radius: 6px;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

.launch-btn:hover {
    transform: scale(1.08);
}

.launch-icon {
    font-size: 26px;
}

/* About Section */
.saga-lore {
    padding: 110px 0;
    background: var(--deep-night);
}

.lore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
}

.lore-scroll {
    background: var(--wood-grain);
    border-radius: 8px;
    padding: 45px;
    border: 2px solid var(--gold-shine);
    transition: all 0.4s ease;
    box-shadow: var(--nordic-shadow);
}

.lore-scroll:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.25);
}

.scroll-header h3 {
    font-size: 2rem;
    margin-bottom: 22px;
    color: var(--gold-shine);
}

.lore-scroll p {
    color: var(--rune-silver);
    line-height: 1.8;
    font-size: 16px;
}

.contact-rune {
    color: var(--gold-shine);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.contact-rune:hover {
    color: var(--bronze-glow);
}

/* Disclaimer Section */
.oath-section {
    padding: 110px 0;
    background: linear-gradient(180deg, var(--midnight-blue) 0%, var(--deep-night) 100%);
}

.oath-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 70px;
    align-items: center;
}

.oath-list {
    margin-top: 45px;
}

.oath-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 28px;
}

.oath-mark {
    font-size: 22px;
    color: var(--gold-shine);
    flex-shrink: 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.oath-item p {
    color: var(--rune-silver);
    line-height: 1.7;
    font-size: 16px;
}

.oath-visual img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--nordic-shadow);
    border: 3px solid var(--gold-shine);
}

/* Contact Section */
.messenger-hall {
    padding: 110px 0;
    background: var(--deep-night);
}

.messenger-intro {
    text-align: center;
    margin-bottom: 70px;
}

.messenger-intro p {
    color: var(--rune-silver);
    font-size: 19px;
    margin-top: 18px;
}

.rune-form {
    max-width: 850px;
    margin: 0 auto;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 35px;
}

.input-field {
    margin-bottom: 35px;
}

.input-field label {
    display: block;
    margin-bottom: 12px;
    color: var(--gold-shine);
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.input-field input,
.input-field textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gold-shine);
    border-radius: 6px;
    background: rgba(26, 35, 50, 0.6);
    color: var(--frost-white);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Lora', serif;
}

.input-field input:focus,
.input-field textarea:focus {
    outline: none;
    border-color: var(--bronze-glow);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(26, 35, 50, 0.8);
}

.send-rune-btn {
    background: var(--gold-gradient);
    color: var(--deep-night);
    border: none;
    padding: 20px 45px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.send-rune-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* Badges Section */
.shield-gallery {
    padding: 90px 0;
    background: linear-gradient(180deg, var(--midnight-blue) 0%, var(--deep-night) 100%);
}

.shield-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
}

.shield-emblem {
    text-align: center;
}

.shield-emblem img {
    width: 178px;
    height: 98px;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.shield-emblem:hover img {
    transform: translateY(-8px);
    filter: drop-shadow(0 8px 15px rgba(212, 175, 55, 0.3));
}

/* Footer */
.realm-footer {
    background: var(--deep-night);
    border-top: 2px solid var(--gold-shine);
    padding: 70px 0 35px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.footer-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 70px;
    margin-bottom: 45px;
}

.footer-emblem {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 22px;
}

.footer-main p {
    color: var(--rune-silver);
    line-height: 1.7;
    margin-bottom: 35px;
    font-size: 16px;
}

.raven-post h4 {
    color: var(--gold-shine);
    margin-bottom: 18px;
    font-family: 'Cinzel', serif;
}

.post-form {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.post-form input {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--gold-shine);
    border-radius: 6px;
    background: rgba(26, 35, 50, 0.6);
    color: var(--frost-white);
    font-family: 'Lora', serif;
}

.post-form button {
    background: var(--gold-gradient);
    color: var(--deep-night);
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
}

.post-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.footer-paths h4 {
    color: var(--gold-shine);
    margin-bottom: 22px;
    font-family: 'Cinzel', serif;
}

.path-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.path-links a {
    color: var(--rune-silver);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.path-links a:hover {
    color: var(--gold-shine);
}

.footer-seal {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--rune-silver);
}

/* Animations */
@keyframes fade-rise {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes border-pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-items {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: linear-gradient(180deg, rgba(13, 24, 33, 0.98) 0%, rgba(26, 35, 50, 0.98) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        transition: left 0.4s ease;
        border-right: 2px solid var(--gold-shine);
    }

    .menu-items.active {
        left: 0;
    }

    .menu-burger {
        display: flex;
    }

    .menu-burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-burger.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -7px);
    }

    .realm-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .oath-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .form-columns {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gate-actions {
        flex-direction: column;
    }

    .saga-heading {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }

    .saga-text {
        font-size: 17px;
    }

    .hall-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
}

@media (max-width: 480px) {
    .gate-wrapper {
        padding: 40px 25px;
    }

    .treasure-grid {
        grid-template-columns: 1fr;
    }

    .lore-grid {
        grid-template-columns: 1fr;
    }

    .shield-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.content {
    padding: 40px 10%;
}

.content-block h2 {
    color: var(--gold-shine);
}

.content-block p,
ul {
    color: var(--rune-silver);
}

.play-ground-area {
    padding: 2rem;
    background: var(--deep-night);
}

.play-game {
    max-width: 940px;
    margin: 0 auto;
}
