/* ========================================
   HERO SCENERY OVERLAY – Core Structure
   ======================================== */

/* Lock page scrolling when scenery is active */
body.scenery-mode-active {
    overflow: hidden !important;
    height: 100vh !important;
}

.hero-scenery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    pointer-events: none;
    transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.hero-scenery-overlay.active {
    opacity: 1;
    clip-path: circle(150% at 50% 50%);
    pointer-events: auto;
}

.hero-scenery-overlay.closing {
    clip-path: circle(0% at 50% 50%);
    opacity: 0;
    transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.1s;
}

/* ── Background Container ── */
.scenery-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ── Background image layer (used by all themes) ── */
.scenery-theme-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center bottom;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* ── Back Button ── */
.scenery-back-btn {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 120;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scenery-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
}

/* ── Content Area ── */
.scenery-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 90px 30px 220px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Loading Screen ── */
.scenery-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    color: white;
    transition: opacity 0.6s ease;
}

.scenery-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.scenery-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent, #ffb703);
    border-radius: 50%;
    animation: scenerySpin 1s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
}

.scenery-loader p {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: pulseText 2s ease-in-out infinite;
}

@keyframes scenerySpin {
    100% { transform: rotate(360deg); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}


/* ========================================
   SCENERY CARDS & PANELS
   ======================================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Event details card */
.scenery-event-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
    color: #fff;
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

.scenery-event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.scenery-event-title {
    font-size: 1.7rem;
    color: #fff;
    line-height: 1.3;
}

.scenery-event-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scenery-event-description {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.scenery-event-details {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.scenery-detail {
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Bio Panel */
.scenery-hero-bio {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.5s ease-out 0.5s both;
}

.scenery-bio-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.scenery-bio-avatar {
    width: 70px;
    height: 85px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    flex-shrink: 0;
}

.scenery-bio-name {
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 2px;
}

.scenery-bio-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0;
}

.scenery-bio-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
}

/* Pinned Hero Avatar */
.hero-avatar-pinned {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 50;
    pointer-events: none;
    animation: heroSceneryFloat 5s ease-in-out infinite;
}

.hero-avatar-img {
    width: 200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

@keyframes heroSceneryFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}


/* ========================================
   SCENERY REGISTRATION PANEL
   ======================================== */

.scenery-register-panel {
    animation: fadeInUp 0.5s ease-out 0.7s both;
}

.scenery-action-guest,
.scenery-action-parent,
.scenery-action-admin {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.scenery-action-guest p,
.scenery-action-parent h4 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.scenery-action-btn {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(255, 183, 3, 0.1));
    border: 1px solid rgba(255, 183, 3, 0.3);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scenery-action-btn:hover {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.4), rgba(255, 183, 3, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 183, 3, 0.2);
}

.scenery-children-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scenery-child-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scenery-child-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 183, 3, 0.3);
    transform: translateY(-2px);
}

.scenery-child-ok {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    color: #4ade80 !important;
}

.scenery-child-wait {
    background: rgba(251, 191, 36, 0.15) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
    color: #fbbf24 !important;
}

.scenery-admin-list {
    margin-top: 12px;
}

.scenery-reg-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.scenery-reg-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.scenery-reg-parent {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex: 1;
}


/* ========================================
   INDUSTRIALISIERUNG THEME
   ======================================== */

.scenery-industrialisierung .scenery-background {
    background: #0f1a2e;
}

.ind-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15, 26, 46, 0.4) 0%, rgba(15, 26, 46, 0.1) 40%, rgba(42, 26, 10, 0.3) 100%);
}

/* Animated smoke plumes */
.ind-smoke {
    position: absolute;
    width: 60px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 190, 210, 0.1) 0%, transparent 70%);
    animation: smokeRise 8s ease-out infinite;
    pointer-events: none;
}

@keyframes smokeRise {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    15%  { opacity: 0.3; }
    50%  { transform: translateY(-80px) scale(1.5) translateX(15px); opacity: 0.2; }
    100% { transform: translateY(-150px) scale(3) translateX(30px); opacity: 0; }
}

/* Airships */
.ind-airship {
    position: absolute;
    pointer-events: none;
    opacity: 0.9;
}

.ind-airship-1 {
    top: 15%;
    left: -150px;
    width: 150px;
    animation: airshipFloat 40s linear infinite;
}

.ind-airship-2 {
    top: 25%;
    right: -150px;
    width: 120px;
    animation: airshipFloatRev 55s linear infinite;
}

@keyframes airshipFloat {
    0%   { transform: translateX(0) translateY(0); }
    50%  { transform: translateX(600px) translateY(-20px); }
    100% { transform: translateX(1200px) translateY(0); }
}

@keyframes airshipFloatRev {
    0%   { transform: translateX(0) translateY(0) scaleX(-1); }
    50%  { transform: translateX(-600px) translateY(15px) scaleX(-1); }
    100% { transform: translateX(-1200px) translateY(0) scaleX(-1); }
}

/* Large spinning gear asset */
.ind-asset-gear {
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 200px;
    height: auto;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.8;
    animation: gearRealSpin 40s linear infinite;
    z-index: 3;
}

@keyframes gearRealSpin {
    100% { transform: rotate(360deg); }
}

/* Industrialisierung accent colors */
.scenery-industrialisierung .scenery-bio-name {
    color: #60a5fa;
}

.scenery-industrialisierung .scenery-event-card {
    border-color: rgba(60, 130, 200, 0.18);
}

.scenery-industrialisierung .scenery-hero-bio {
    border-color: rgba(60, 130, 200, 0.14);
}


/* ========================================
   ÄGYPTEN THEME
   ======================================== */

.scenery-aegypten .scenery-background {
    background: #1a1400;
}

.egypt-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(220, 130, 50, 0.1) 0%, rgba(180, 80, 20, 0.2) 60%, rgba(100, 20, 0, 0.4) 100%);
    pointer-events: none;
}

.egypt-bg {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 35%;
    background: radial-gradient(ellipse at 50% 100%, rgba(230, 190, 100, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating sand dust particles */
.egypt-dust {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffdb80;
    border-radius: 50%;
    box-shadow: 0 0 5px #ffb340;
    opacity: 0;
    animation: egyptDustFloat linear infinite;
    pointer-events: none;
}

@keyframes egyptDustFloat {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    20%  { opacity: 0.6; }
    80%  { opacity: 0.6; }
    100% { transform: translateY(-80px) translateX(30px); opacity: 0; }
}

/* Sun lens flares */
.egypt-flare {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 220, 150, 0.4) 0%, transparent 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.egypt-flare-1 {
    top: -50px;
    right: 10%;
    width: 400px;
    height: 400px;
    animation: flarePulse 8s ease-in-out infinite alternate;
}

.egypt-flare-2 {
    top: 20%;
    right: 30%;
    width: 200px;
    height: 200px;
    animation: flarePulse 6s ease-in-out infinite alternate-reverse;
}

@keyframes flarePulse {
    0%   { opacity: 0.4; transform: scale(0.9); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* Egypt accent colors */
.scenery-aegypten .scenery-bio-name {
    color: #f5c842;
}

.scenery-aegypten .scenery-event-card {
    border-color: rgba(212, 168, 85, 0.2);
}

.scenery-aegypten .scenery-hero-bio {
    border-color: rgba(212, 168, 85, 0.15);
}


/* ========================================
   RENAISSANCE THEME
   ======================================== */

.scenery-renaissance .scenery-background {
    background: #18120d;
}

.ren-bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(20, 15, 10, 0.4) 0%, rgba(30, 20, 5, 0.1) 40%, rgba(10, 5, 0, 0.6) 100%);
    pointer-events: none;
}

/* Ambient warm glow */
.ren-ambient-glow {
    position: absolute;
    bottom: 5%;
    right: 15%;
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 180, 60, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating sparks from candles/forges */
.ren-spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffeab0;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffb040, 0 0 2px #fff;
    opacity: 0;
    animation: renSparkleFloat linear infinite;
    pointer-events: none;
}

@keyframes renSparkleFloat {
    0%   { transform: translateY(0) scale(0.8); opacity: 0; }
    30%  { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
    70%  { transform: translateY(-70px) scale(0.9); opacity: 0.5; }
    100% { transform: translateY(-100px) scale(0.5); opacity: 0; }
}

/* Renaissance accent colors */
.scenery-renaissance .scenery-bio-name {
    color: #d4a060;
}

.scenery-renaissance .scenery-event-card {
    border-color: rgba(180, 130, 70, 0.18);
}

.scenery-renaissance .scenery-hero-bio {
    border-color: rgba(180, 130, 70, 0.14);
}


/* ========================================
   RESPONSIVE – Special Events & Scenery
   ======================================== */

@media (max-width: 768px) {
    .special-card-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .special-card-avatar-wrap {
        width: 100px;
        height: 120px;
    }

    .special-card-hero-name {
        font-size: 1.2rem;
    }

    .scenery-content {
        padding: 75px 15px 180px;
    }

    .scenery-event-card {
        padding: 20px;
    }

    .scenery-event-title {
        font-size: 1.3rem;
    }

    .hero-avatar-pinned {
        right: 10px;
    }

    .hero-avatar-img {
        width: 130px;
    }

    .scenery-back-btn {
        top: 14px;
        left: 14px;
        font-size: 0.88rem;
        padding: 8px 16px;
    }

    .scenery-bio-header {
        flex-direction: column;
        text-align: center;
    }

    .scenery-bio-avatar {
        width: 50px;
        height: 60px;
    }

    .scenery-children-grid {
        justify-content: center;
    }
}