:root {
    --bg-color: #050508;
    --text-main: #E0E2E5;
    --text-muted: #8A8D9B;
    --primary: #00FF7F; /* Vibrant green */
    --primary-glow: rgba(0, 255, 127, 0.5);
    --secondary: #1A1D24;
    --glass-bg: rgba(26, 29, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
    letter-spacing: 2px;
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 1rem;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto 3rem;
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 2px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
    letter-spacing: 4px;
}

.play-btn-nav {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    padding: 0.6rem 1.8rem;
    border: 1px solid var(--primary);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.play-btn-nav:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Apply a slow floating motion */
    transform: scale(1.05);
    animation: slowZoom 25s infinite alternate ease-in-out;
    z-index: -2;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to ensure text readability over the image */
    background: linear-gradient(
        to bottom, 
        rgba(5, 5, 8, 0.6) 0%, 
        rgba(5, 5, 8, 0.3) 50%, 
        rgba(5, 5, 8, 1) 100%
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 2rem;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

@keyframes fadeUp {
    to { transform: translateY(0); opacity: 1; }
}

.hero-content .sub-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    letter-spacing: 6px;
    text-shadow: 0 0 10px rgba(0,255,127,0.3);
}

.hero-content .main-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 5px 25px rgba(0,0,0,0.8);
}

.hero-content .main-title span {
    display: inline-block;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
    letter-spacing: 10px;
    margin-top: 5px;
}

.hero-desc {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 3.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Orbitron', 'Noto Sans JP', sans-serif;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 127, 0.3), inset 0 0 15px rgba(0, 255, 127, 0.1);
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.cta-button.primary:hover {
    color: #000;
    box-shadow: 0 0 40px var(--primary-glow);
    border-color: var(--primary);
}

.cta-button.primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button .arrow {
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(8px);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Story Section */
.story {
    padding: 10rem 0;
    position: relative;
    background: radial-gradient(circle at center, #11141a 0%, var(--bg-color) 70%);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.story-block h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.story-block h3::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary);
    margin-right: 12px;
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 50%;
}

.story-block p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: #ccc;
}

.story-block p:last-child {
    margin-bottom: 0;
}

.story-block.highlight {
    border: 2px solid rgba(0, 255, 127, 0.3);
    box-shadow: 0 0 30px inset rgba(0, 255, 127, 0.05);
    background: linear-gradient(135deg, rgba(26,29,36,0.7) 0%, rgba(0,255,127,0.05) 100%);
    backdrop-filter: blur(12px);
}

/* How to Play Section */
.how-to-play {
    padding: 8rem 0 10rem;
    background-color: var(--bg-color);
    position: relative;
}

.how-to-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(var(--glass-border) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 0;
}

.how-to-play > .container {
    position: relative;
    z-index: 1;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 5rem;
}

.instruction-card {
    position: relative;
    padding: 4.5rem 2rem 2.5rem;
    text-align: center;
    border-top: 3px solid transparent;
}

.instruction-card:hover {
    border-top: 3px solid var(--primary);
}

.step-num {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--bg-color);
    -webkit-text-stroke: 1px var(--primary);
    text-shadow: 0 0 15px rgba(0, 255, 127, 0.6);
    background: var(--bg-color);
    padding: 0 1.2rem;
    z-index: 2;
}

.instruction-card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1.2rem;
}

.instruction-card p {
    color: var(--text-muted);
}

/* CTA Bottom Section */
.bottom-cta {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bottom-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,255,127,0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.bottom-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    background: rgba(20, 24, 30, 0.6);
}

.bottom-cta h2 {
    font-size: 3rem;
    color: #fff;
}

.bottom-cta p {
    font-size: 1.3rem;
    color: #ccc;
}

.pulse {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0.4); }
    70% { box-shadow: 0 0 0 25px rgba(0, 255, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 127, 0); }
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    background: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 1.2rem; }
    .hero-content .main-title { font-size: 3.5rem; letter-spacing: 0; }
    .hero-content .main-title span { letter-spacing: 5px; }
    .hero-content .sub-title { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .story, .how-to-play, .bottom-cta { padding: 6rem 0; }
    .container { padding: 0 1.5rem; }
    .glass-panel { padding: 1.8rem; }
    .instruction-card { padding-top: 4rem; }
    .step-num { font-size: 3rem; top: -25px; }
    .bottom-cta h2 { font-size: 2.2rem; }
}
