:root {
    --bg-dark: #0a0a14;
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ea;
    --text-color: #ffffff;
    --text-muted: #a0a0b0;

    --glass-bg: rgba(20, 20, 35, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

h1,
h2,
h3,
.rank,
.time {
    font-family: 'Orbitron', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(600px) rotateX(45deg) translateY(-200px) translateZ(-200px);
    animation: gridFlow 15s linear infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes gridFlow {
    0% {
        transform: perspective(600px) rotateX(45deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(600px) rotateX(45deg) translateY(50px) translateZ(-200px);
    }
}

.glow-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 30%, rgba(255, 0, 234, 0.15) 0%, rgba(10, 10, 20, 0) 50%);
    z-index: -1;
    pointer-events: none;
}

/* Back to Portal */
.back-to-portal {
    position: absolute;
    top: 25px;
    left: 25px;
    color: var(--neon-cyan);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    border: 1px solid var(--neon-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 1000;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.back-to-portal:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}

/* Hero */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.glow-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    margin-bottom: 20px;
    animation: pulse 2s infinite alternate;
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    }

    100% {
        text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan), 0 0 60px var(--neon-cyan);
    }
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* Neon Button */
.cta-container {
    margin-top: 40px;
}

.neon-btn {
    position: relative;
    display: inline-block;
    padding: 15px 50px;
    color: #000;
    background: var(--neon-cyan);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 4px;
    border-radius: 30px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    transition: 0.3s;
    overflow: hidden;
}

.neon-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.8), 0 0 50px rgba(0, 243, 255, 0.4);
}

.free-text {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Features */
.features {
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    letter-spacing: 3px;
    color: #fff;
}

.highlight {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.feature-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.card {
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 300px;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
}

.card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.card h3 {
    color: var(--neon-cyan);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* Ranking Section */
.ranking-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.ranking-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.ranking-board {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 30px;
}

.ranking-list {
    list-style: none;
    padding: 0;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.2rem;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item.empty {
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

.ranking-item .rank {
    font-weight: 700;
    width: 60px;
    text-align: left;
    color: #fff;
}

.ranking-item .time {
    font-weight: 900;
    font-size: 1.5rem;
}

.ranking-item .date {
    font-size: 0.9rem;
    color: var(--text-muted);
    width: 100px;
    text-align: right;
}

/* Bottom CTA */
.bottom-cta {
    padding: 100px 20px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.1) 0%, rgba(10, 10, 20, 1) 70%);
    position: relative;
    z-index: 10;
}

.bottom-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.neon-btn.large {
    font-size: 1.8rem;
    padding: 20px 60px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: #050510;
    color: #444;
    font-size: 0.9rem;
    border-top: 1px solid #111;
}

/* Ofuse Floating Button */
.ofuse-floating-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #ff4b6b, #ff718a);
    color: #fff;
    font-weight: bold;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 75, 107, 0.4);
    z-index: 1000;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ofuse-floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 75, 107, 0.6);
}

.ofuse-icon {
    font-size: 1.2rem;
}

/* --- Hero Illustration --- */
.hero-illustration {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.5));
}

.float-anim {
    animation: floatIll 4s ease-in-out infinite;
}

@keyframes floatIll {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-illustration {
        width: 180px;
        height: 180px;
    }

    .glow-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .back-to-portal {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .ranking-item {
        font-size: 1rem;
    }

    .ranking-item .time {
        font-size: 1.2rem;
    }

    .ofuse-floating-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}