/* Shadowry.xyz - Gothic Twilight Theme */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Work+Sans:wght@300;400;500;600&display=swap');

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

:root {
    --shadow-black: #0f0f12;
    --shadow-gray: #1a1a20;
    --twilight-purple: #2d2640;
    --ember-red: #c94c4c;
    --misty-silver: #b8b8c8;
    --ghost-white: #e8e8f0;
    --candlelight: #d4a84b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--shadow-black);
    color: var(--ghost-white);
    line-height: 1.7;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 18, 0.94);
    backdrop-filter: blur(14px);
    z-index: 9500;
    border-bottom: 1px solid rgba(201, 76, 76, 0.3);
}

.bar-inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emblem {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.emblem-glyph {
    width: 46px;
    height: 46px;
    background: linear-gradient(145deg, var(--ember-red), var(--twilight-purple));
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ghost-white);
    transform: rotate(-3deg);
}

.emblem-name {
    font-family: 'Crimson Text', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--ghost-white);
    letter-spacing: 2px;
}

.link-row {
    display: flex;
    gap: 2.4rem;
}

.link-row a {
    color: var(--misty-silver);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-row a:hover,
.link-row a.lit {
    color: var(--ember-red);
}

/* Mobile Trigger */
.menu-trigger {
    display: none;
    background: none;
    border: 1px solid var(--ember-red);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
}

.menu-trigger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ember-red);
    margin: 5px 0;
    transition: all 0.3s;
}

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

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

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 18, 0.98);
    border-bottom: 1px solid rgba(201, 76, 76, 0.3);
}

.dropdown-menu.revealed {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--ghost-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-menu a:hover {
    background: rgba(201, 76, 76, 0.1);
}

/* Main Wrapper */
main {
    padding-top: 76px;
}

/* Landing Section */
.landing-section {
    min-height: 87vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(175deg, var(--shadow-black) 0%, var(--shadow-gray) 50%, var(--twilight-purple) 100%);
    position: relative;
}

.landing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(201, 76, 76, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.landing-core {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.landing-core h1 {
    font-family: 'Crimson Text', serif;
    font-size: 3.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--ghost-white);
    line-height: 1.2;
}

.landing-core .intro {
    font-size: 1.12rem;
    color: var(--misty-silver);
    margin-bottom: 3rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Warning Blocks */
.warning-blocks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.w-block {
    background: rgba(26, 26, 32, 0.7);
    border: 1px solid rgba(201, 76, 76, 0.25);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.w-block .glyph {
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.w-block h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    color: var(--candlelight);
    margin-bottom: 0.4rem;
}

.w-block p {
    font-size: 0.85rem;
    color: var(--misty-silver);
}

/* Game Chamber */
.game-chamber {
    padding: 5rem 2rem;
    background: var(--shadow-gray);
}

.chamber-title {
    font-family: 'Crimson Text', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--ghost-white);
}

.chamber-frame {
    max-width: 1350px;
    margin: 0 auto;
    background: var(--shadow-black);
    border: 2px solid var(--twilight-purple);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.game-portal {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: #000;
}

/* Story Boxes */
.story-section {
    padding: 5rem 2rem;
    background: var(--shadow-black);
}

.story-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.story-box {
    background: linear-gradient(180deg, rgba(45, 38, 64, 0.4) 0%, rgba(26, 26, 32, 0.5) 100%);
    border: 1px solid rgba(201, 76, 76, 0.15);
    border-radius: 10px;
    padding: 2rem;
}

.story-box h3 {
    font-family: 'Crimson Text', serif;
    font-size: 1.35rem;
    color: var(--ember-red);
    margin-bottom: 1rem;
}

.story-box p {
    color: var(--misty-silver);
    line-height: 1.85;
}

/* Bottom Section */
.bottom-section {
    background: var(--shadow-black);
    border-top: 1px solid var(--twilight-purple);
    padding: 2.5rem 2rem;
}

.bottom-wrap {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.bottom-wrap p {
    color: var(--misty-silver);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.aid-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.aid-links a {
    color: var(--ember-red);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.aid-links a:hover {
    color: var(--candlelight);
}

/* Age Shroud */
.age-shroud {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 18, 0.97);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.age-shroud.lifted {
    display: none;
}

.shroud-card {
    background: var(--shadow-gray);
    border: 2px solid var(--ember-red);
    border-radius: 14px;
    padding: 2.5rem;
    text-align: center;
    max-width: 430px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7);
}

.shroud-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.shroud-card h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.7rem;
    color: var(--ghost-white);
    margin-bottom: 1rem;
}

.shroud-card p {
    color: var(--misty-silver);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.shroud-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-shroud {
    padding: 0.85rem 2.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Work Sans', sans-serif;
}

.btn-enter {
    background: var(--ember-red);
    color: #fff;
}

.btn-enter:hover {
    background: #d45f5f;
}

.btn-leave {
    background: transparent;
    color: var(--ghost-white);
    border: 1px solid var(--misty-silver);
}

.btn-leave:hover {
    border-color: var(--ghost-white);
}

/* Inner Page Header */
.page-head {
    padding: 9rem 2rem 3.5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--shadow-black) 0%, var(--shadow-gray) 100%);
}

.page-head h1 {
    font-family: 'Crimson Text', serif;
    font-size: 2.6rem;
    color: var(--ghost-white);
    margin-bottom: 0.5rem;
}

.page-head p {
    color: var(--misty-silver);
    font-size: 1.05rem;
}

/* Text Content */
.text-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.text-body h2 {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: var(--candlelight);
    margin: 2.2rem 0 1rem;
}

.text-body p, .text-body li {
    color: var(--misty-silver);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.text-body ul {
    list-style: none;
    padding-left: 1.3rem;
}

.text-body ul li::before {
    content: '†';
    color: var(--ember-red);
    margin-right: 0.8rem;
}

/* Responsive */
@media (max-width: 960px) {
    .link-row {
        display: none;
    }
    
    .menu-trigger {
        display: block;
    }
    
    .warning-blocks {
        grid-template-columns: 1fr;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-core h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .game-portal {
        height: 400px;
    }
    
    .shroud-btns {
        flex-direction: column;
    }
    
    .aid-links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .page-head h1 {
        font-size: 2rem;
    }
}
