/* ============================================================
   VAMPIRE GENESIS — Dark Gothic Aesthetic v4
   Shared stylesheet — vampire effects, no external images except logo
   ============================================================ */

:root {
    --bg:             #0a0608;
    --bg-panel:       rgba(14, 8, 12, 0.92);
    --bg-input:       rgba(0, 0, 0, 0.6);
    --crimson:        #8b1a1a;
    --crimson-mid:    #a82020;
    --crimson-bright: #d42a2a;
    --crimson-glow:   rgba(212, 42, 42, 0.35);
    --gold:           #d4b050;
    --gold-bright:    #e8c85c;
    --gold-dim:       rgba(212, 176, 80, 0.3);
    --text:           #d8ccb4;
    --text-bright:    #f0e8d8;
    --text-dim:       #9a8e7c;
    --text-faint:     #5c5248;
    --border:         rgba(139, 26, 26, 0.35);
    --border-gold:    rgba(212, 176, 80, 0.25);
    --font-heading:   'Cinzel', Georgia, 'Times New Roman', serif;
    --font-body:      'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --transition:     0.3s ease;
    --max-w:          600px;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.1875rem;
    line-height: 1.75;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--crimson-bright);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--gold-bright); }

img { max-width: 100%; height: auto; }

/* ============================================================
   VAMPIRE ATMOSPHERIC EFFECTS
   ============================================================ */

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    box-shadow: inset 0 0 150px 40px rgba(10, 2, 4, 0.9),
                inset 0 0 300px 60px rgba(60, 5, 5, 0.3);
}

.fog {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}
.fog__layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(139, 26, 26, 0.02) 45%,
        rgba(80, 10, 10, 0.04) 50%,
        transparent 55%,
        transparent 100%
    );
    opacity: 0.6;
}
.fog__layer--1 { animation: fogDrift1 45s linear infinite; }
.fog__layer--2 {
    animation: fogDrift2 60s linear infinite;
    opacity: 0.4;
    background: repeating-linear-gradient(
        75deg,
        transparent 0%,
        transparent 35%,
        rgba(139, 26, 26, 0.015) 42%,
        rgba(60, 5, 5, 0.035) 48%,
        transparent 55%,
        transparent 100%
    );
}
@keyframes fogDrift1 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes fogDrift2 {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.ambient-pulse {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 26, 26, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1;   transform: translateX(-50%) scale(1.15); }
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}
.ember {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: emberFloat linear infinite, emberFlicker 0.4s ease-in-out infinite alternate;
}
.ember--warm {
    background: radial-gradient(circle, #ffb830 0%, #e87020 40%, rgba(212,42,42,0.6) 70%, transparent 100%);
    box-shadow: 0 0 6px 2px rgba(255,160,30,0.5), 0 0 14px 4px rgba(232,112,32,0.25);
}
.ember--red {
    background: radial-gradient(circle, #ff6040 0%, #d42a2a 45%, rgba(139,26,26,0.5) 75%, transparent 100%);
    box-shadow: 0 0 6px 2px rgba(255,96,64,0.45), 0 0 12px 3px rgba(212,42,42,0.2);
}
.ember--gold {
    background: radial-gradient(circle, #ffe080 0%, #d4b050 40%, rgba(200,168,78,0.4) 75%, transparent 100%);
    box-shadow: 0 0 5px 2px rgba(255,224,128,0.4), 0 0 10px 3px rgba(212,176,80,0.2);
}

.ember:nth-child(1)  { left: 6%;  bottom: -3%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 0s; }
.ember:nth-child(2)  { left: 14%; bottom: -3%; width: 8px; height: 8px; animation-duration: 13s; animation-delay: 1.5s; }
.ember:nth-child(3)  { left: 22%; bottom: -3%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 4s; }
.ember:nth-child(4)  { left: 30%; bottom: -3%; width: 7px; height: 7px; animation-duration: 14s; animation-delay: 0.8s; }
.ember:nth-child(5)  { left: 38%; bottom: -3%; width: 4px; height: 4px; animation-duration: 9s;  animation-delay: 6s; }
.ember:nth-child(6)  { left: 46%; bottom: -3%; width: 9px; height: 9px; animation-duration: 12s; animation-delay: 2.5s; }
.ember:nth-child(7)  { left: 54%; bottom: -3%; width: 5px; height: 5px; animation-duration: 15s; animation-delay: 8s; }
.ember:nth-child(8)  { left: 62%; bottom: -3%; width: 7px; height: 7px; animation-duration: 11s; animation-delay: 3.2s; }
.ember:nth-child(9)  { left: 70%; bottom: -3%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 5.5s; }
.ember:nth-child(10) { left: 78%; bottom: -3%; width: 8px; height: 8px; animation-duration: 13s; animation-delay: 1s; }
.ember:nth-child(11) { left: 86%; bottom: -3%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 7s; }
.ember:nth-child(12) { left: 94%; bottom: -3%; width: 6px; height: 6px; animation-duration: 14s; animation-delay: 3.8s; }
.ember:nth-child(13) { left: 18%; bottom: -3%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 9s; }
.ember:nth-child(14) { left: 50%; bottom: -3%; width: 7px; height: 7px; animation-duration: 10s; animation-delay: 4.5s; }
.ember:nth-child(15) { left: 74%; bottom: -3%; width: 3px; height: 3px; animation-duration: 8s;  animation-delay: 11s; }
.ember:nth-child(16) { left: 42%; bottom: -3%; width: 6px; height: 6px; animation-duration: 11s; animation-delay: 6.5s; }

@keyframes emberFloat {
    0%   { transform: translateY(0) translateX(0) scale(1);       opacity: 0; }
    5%   { opacity: 0.9; }
    15%  { opacity: 1;   transform: translateY(-15vh) translateX(8px) scale(1.1); }
    40%  { opacity: 0.8; transform: translateY(-40vh) translateX(-12px) scale(0.9); }
    65%  { opacity: 0.5; transform: translateY(-65vh) translateX(6px) scale(0.7); }
    85%  { opacity: 0.15; }
    100% { transform: translateY(-105vh) translateX(-5px) scale(0.3); opacity: 0; }
}

@keyframes emberFlicker {
    0%   { filter: brightness(1); }
    100% { filter: brightness(1.4); }
}

/* ============================================================
   LAYOUT & COMPONENTS
   ============================================================ */

.ornament {
    text-align: center;
    color: var(--crimson);
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    margin: 2rem 0;
    user-select: none;
    animation: heartbeat 4s ease-in-out infinite;
}
.ornament::before,
.ornament::after {
    content: '';
    display: inline-block;
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--crimson), transparent);
    vertical-align: middle;
    margin: 0 1.25rem;
}
@keyframes heartbeat {
    0%, 100% { opacity: 0.5; }
    15%      { opacity: 1; }
    30%      { opacity: 0.6; }
    40%      { opacity: 0.9; }
    60%      { opacity: 0.5; }
}

/* === Navigation === */
.site-nav {
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.site-nav__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.site-nav__link {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.375rem 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}
.site-nav__link:hover,
.site-nav__link--active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
}

/* === Header / Logo Zone === */
.site-header {
    position: relative;
    text-align: center;
    padding: 3.5rem 1.5rem 0.5rem;
}
.site-header__logo {
    max-width: 420px;
    width: 80%;
    margin: 0 auto 1rem;
    display: block;
    filter: drop-shadow(0 0 30px rgba(212, 42, 42, 0.4))
            drop-shadow(0 0 60px rgba(139, 26, 26, 0.2));
    animation: logoGlow 6s ease-in-out infinite;
}
@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 25px rgba(212, 42, 42, 0.3)) drop-shadow(0 0 50px rgba(139, 26, 26, 0.15)); }
    50%      { filter: drop-shadow(0 0 40px rgba(212, 42, 42, 0.5)) drop-shadow(0 0 80px rgba(139, 26, 26, 0.25)); }
}
.site-header__sub {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--crimson-bright);
}

/* === Main Content Wrapper === */
.main-content {
    position: relative;
    z-index: 20;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* === Game Intro === */
.game-intro {
    text-align: center;
    margin-bottom: 1.5rem;
}
.game-intro__text {
    font-size: 1.1875rem;
    line-height: 1.85;
    color: var(--text);
    font-style: italic;
}

/* === Panels === */
.vg-panel {
    position: relative;
    max-width: 440px;
    margin: 0 auto 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5),
                0 0 80px rgba(139, 26, 26, 0.06);
    animation: panelPulse 8s ease-in-out infinite;
}
@keyframes panelPulse {
    0%, 100% { box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 0 60px rgba(139,26,26,0.04); }
    50%      { box-shadow: 0 4px 40px rgba(0,0,0,0.5), 0 0 100px rgba(139,26,26,0.1); }
}
.vg-panel--wide { max-width: var(--max-w); }

.vg-panel__header {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: rgba(139, 26, 26, 0.08);
}
.vg-panel__header h2 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
}

.vg-panel__body { padding: 1.75rem; }

/* === Forms === */
.vg-form-group { margin-bottom: 1.125rem; }
.vg-form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}
.vg-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.vg-input:focus {
    outline: none;
    border-color: var(--crimson-mid);
    box-shadow: 0 0 0 2px var(--crimson-glow), 0 0 20px rgba(139, 26, 26, 0.15);
}
.vg-input::placeholder { color: var(--text-faint); font-style: italic; }

.vg-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-bright);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    transition: border-color var(--transition);
}
.vg-select:focus { outline: none; border-color: var(--crimson-mid); }

/* === Buttons === */
.vg-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.875rem 2.5rem;
    border: 2px solid var(--crimson-mid);
    background: linear-gradient(180deg, var(--crimson-mid) 0%, var(--crimson) 100%);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(139, 26, 26, 0.3);
}
.vg-btn:hover {
    background: linear-gradient(180deg, var(--crimson-bright) 0%, var(--crimson-mid) 100%);
    border-color: var(--crimson-bright);
    color: #fff;
    box-shadow: 0 4px 24px var(--crimson-glow), 0 0 40px rgba(212, 42, 42, 0.2);
    transform: translateY(-1px);
}
.vg-btn:active { transform: translateY(0); }
.vg-btn--block { display: block; width: 100%; }
.vg-btn--large {
    padding: 1.125rem 3.5rem;
    font-size: 0.9375rem;
    letter-spacing: 0.25em;
}
.vg-btn--cta {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(212, 176, 80, 0.2) 0%, rgba(139, 26, 26, 0.5) 100%);
    color: var(--gold-bright);
    box-shadow: 0 2px 20px rgba(212, 176, 80, 0.15);
    animation: ctaPulse 3s ease-in-out infinite;
}
.vg-btn--cta:hover {
    background: linear-gradient(180deg, rgba(212, 176, 80, 0.35) 0%, rgba(139, 26, 26, 0.6) 100%);
    border-color: var(--gold-bright);
    color: #fff;
    box-shadow: 0 4px 30px rgba(212, 176, 80, 0.3), 0 0 50px rgba(212, 176, 80, 0.15);
    animation: none;
}
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 2px 20px rgba(212, 176, 80, 0.1); }
    50%      { box-shadow: 0 2px 30px rgba(212, 176, 80, 0.25), 0 0 40px rgba(212, 176, 80, 0.08); }
}

/* === Welcome Back === */
.welcome-back { text-align: center; }
.welcome-back__name {
    font-family: var(--font-heading);
    font-size: 1.1875rem;
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 1.25rem;
}

/* === Misc Links === */
.forgot-link {
    display: block;
    text-align: center;
    margin-top: 1.125rem;
    font-size: 0.9375rem;
    color: var(--text-dim);
    font-style: italic;
}
.forgot-link:hover { color: var(--crimson-bright); }

.back-link {
    display: block;
    text-align: center;
    margin: 2rem auto;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}
.back-link:hover { color: var(--gold-bright); }

/* === Content Section (sub-pages) === */
.content-section { }
.content-section .vg-panel { max-width: 100%; }

/* === Updates === */
.update-entry {
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(139, 26, 26, 0.12);
    font-size: 1.0625rem;
    line-height: 1.75;
}
.update-entry:last-child { border-bottom: none; }
.update-entry b { color: var(--text-bright); }

/* === Screenshots === */
.screenshot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.screenshot-card { text-align: center; }
.screenshot-card img {
    border: 1px solid var(--border);
    border-radius: 2px;
    width: 100%;
    transition: border-color var(--transition), opacity var(--transition);
    opacity: 0.8;
}
.screenshot-card img:hover { border-color: var(--crimson-bright); opacity: 1; }
.screenshot-card span {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* === T&C === */
.tac-body { font-size: 1rem; line-height: 1.9; color: var(--text-dim); }
.tac-body p { margin-bottom: 1rem; }
.tac-body strong { color: var(--text); }

/* === Signup / Flavor === */
.signup-note {
    text-align: center;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-dim);
    margin-top: 0.75rem;
}
.puzzle-display {
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.signup-result {
    text-align: center;
    padding: 0.5rem 0;
    line-height: 1.8;
    font-size: 1.0625rem;
}
.signup-result b { color: var(--text-bright); }
.flavor-text {
    text-align: center;
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.75rem;
    line-height: 1.85;
    font-size: 1.0625rem;
}

/* === CTA Section === */
.cta-section { text-align: center; margin: 2rem 0; }

/* === Vote === */
.vote-section { text-align: center; margin: 2rem auto; }

/* === Landing Page Feature Grid === */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}
.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.feature-card__icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--crimson-bright);
}
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-dim);
}

/* === Landing Page Content Sections === */
.landing-section {
    margin: 2.5rem 0;
}
.landing-section h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 1.25rem;
}
.landing-section p {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 1rem;
}

/* === SEO Footer === */
.seo-links {
    position: relative;
    z-index: 20;
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 0.625rem 2rem;
    max-width: 650px;
    margin: 3rem auto 1.5rem;
    padding: 0 1rem;
}
.seo-links a {
    font-family: var(--font-heading);
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.seo-links a:hover { color: var(--crimson-bright); }

/* === Site Footer === */
.site-footer {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 2rem 1rem 3rem;
    border-top: 1px solid rgba(139, 26, 26, 0.1);
}
.site-footer a { display: inline-block; }
.site-footer img {
    opacity: 0.35;
    transition: opacity var(--transition);
    filter: grayscale(100%);
}
.site-footer img:hover { opacity: 0.7; }
.site-footer__copy {
    font-family: var(--font-heading);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 0.75rem;
}
.site-footer__copy a { color: var(--text-faint); }
.site-footer__copy a:hover { color: var(--crimson-bright); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
    .site-nav__inner { gap: 1.75rem; }
    .site-nav__link { font-size: 0.6875rem; }
    .site-header { padding: 2.5rem 1rem 0.5rem; }
    .site-header__logo { max-width: 300px; width: 85%; }
    .site-header__sub { font-size: 0.75rem; letter-spacing: 0.25em; }
    .main-content { padding: 0 1rem 2rem; }
    .game-intro__text { font-size: 1.0625rem; }
    .vg-panel { margin-left: 0; margin-right: 0; max-width: 100%; }
    .vg-panel__body { padding: 1.5rem; }
    .ornament::before, .ornament::after { width: 50px; }
    .vg-btn--large { padding: 1rem 2.5rem; font-size: 0.875rem; }
    .vignette { box-shadow: inset 0 0 80px 20px rgba(10,2,4,0.9), inset 0 0 150px 30px rgba(60,5,5,0.25); }
    .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .site-nav__inner { gap: 1.25rem; }
    .site-nav__link { font-size: 0.625rem; letter-spacing: 0.15em; }
    .site-header__logo { max-width: 240px; }
    .vg-panel__body { padding: 1.25rem; }
    .vg-btn--large { padding: 0.875rem 2rem; }
}

@media (min-width: 960px) {
    .site-header__logo { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
