@charset "utf-8";

:root {
    --imperial-green: #4af626;
    --imperial-bg: #112211;
    --greybear-gold: #c5a05b;
    --greybear-bg: #221111;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: #050505;
    color: var(--text-main);
    font-family: "Noto Serif JP", serif;
    margin: 0;
    overflow-x: hidden;
}

/* Background Animation */
.bg-anim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    z-index: -1;
}

/* Intro Screen */
.intro-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.intro-screen img {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: transform 0.5s;
}

.intro-screen img:hover {
    transform: scale(1.05);
}

.main-title {
    font-family: "Cinzel", serif;
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    background: linear-gradient(to right, var(--imperial-green), #fff, var(--greybear-gold));
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(74, 246, 38, 0.2);
    margin: 20px 0 10px;
}

.sub-title {
    font-family: "Cinzel", serif;
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.5em;
    margin-bottom: 60px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* World Selector */
.world-selector {
    display: flex;
    width: 90%;
    max-width: 1100px;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.world-panel {
    flex: 1;
    position: relative;
    transition: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
}

.world-panel:hover {
    flex: 1.8;
}

.panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: 0.6s;
    filter: brightness(0.6) grayscale(0.5);
}

/* Dynamic Backgrounds via Gradients/SVG if images missing */
.imperial-bg {
    background: linear-gradient(135deg, #0b1a0b, #1d331d);
    position: relative;
}

.imperial-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 100 L100 0' stroke='rgba(74,246,38,0.1)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 20px 20px;
}

.greybear-bg {
    background: linear-gradient(135deg, #1f1505, #3a2a0a);
    position: relative;
}

.greybear-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='30' stroke='rgba(197,160,91,0.1)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

.world-panel:hover .panel-bg {
    filter: brightness(1) grayscale(0);
    transform: scale(1.05);
}

.panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    /* Slight overlay */
    padding: 30px;
    box-sizing: border-box;
    z-index: 2;
    transition: 0.4s;
}

.panel-title {
    font-family: "Cinzel", serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    transition: 0.5s;
    letter-spacing: 2px;
}

.panel-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 320px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s 0.1s;
    /* Delay */
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.world-panel:hover .panel-title {
    transform: translateY(0);
}

.world-panel:hover .panel-desc {
    opacity: 1;
    transform: translateY(0);
}

.panel-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Concept Section */
.concept-container {
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.concept-section {
    width: 100%;
    max-width: 800px;
    padding: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.concept-title {
    font-family: "Cinzel", serif;
    font-size: 1.8rem;
    color: var(--imperial-green);
    margin-bottom: 30px;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.concept-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: var(--imperial-green);
    margin: 10px auto 0;
}

.concept-text {
    font-size: 1.0rem;
    line-height: 2.2;
    color: #ccc;
    font-weight: 300;
}

footer {
    text-align: center;
    padding: 30px;
    color: #555;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-family: "Cinzel", serif;
}

@media (max-width: 768px) {
    .world-selector {
        flex-direction: column;
        height: auto;
    }

    .world-panel {
        height: 300px;
    }

    .world-panel:hover {
        flex: 1;
        /* Reset flex expansion on mobile */
    }

    .panel-desc {
        opacity: 1;
        /* Always show on mobile */
        transform: translateY(0);
    }

    .main-title {
        font-size: 2.5rem;
    }
}