/* Reset & Base */
:root {
    --bg-deep: #050505;
    --text-color: #ffffff;
    --accent-blue: #00f0ff;
    --accent-purple: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
    --font-main: 'Pretendard', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Dynamic Cyber Aurora Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.15), transparent 25%);
    z-index: -2;
    animation: auroraMove 10s infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

@keyframes auroraMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

/* Utilities */
.text-blue {
    color: var(--accent-blue) !important;
    text-shadow: 0 0 10px var(--accent-blue);
}

.text-purple {
    color: var(--accent-purple) !important;
    text-shadow: 0 0 10px var(--accent-purple);
}

/* Header */
.game-header {
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px var(--accent-blue);
}

.header-message {
    font-size: 0.9rem;
    color: var(--accent-blue);
    font-weight: 600;
    background: rgba(0, 240, 255, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Quest Board Layout */
.quest-board {
    margin-top: 120px;
    padding-bottom: 8rem;
}

/* Main Quest Card - Glassmorphism */
.main-quest {
    margin-bottom: 4rem;
    perspective: 1000px;
}

.quest-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.main-card {
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 15, 0.9));
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.main-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--accent-blue);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.3);
}

.quest-visual {
    width: 100%;
    height: 350px;
    background: #000;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.quest-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s;
}

.main-card:hover .quest-visual img {
    opacity: 1;
    transform: scale(1.05);
}

.quest-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent-blue);
    color: #000;
    padding: 0.5rem 1rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 0 20px var(--accent-blue);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.quest-content {
    padding: 3rem;
    text-align: center;
    position: relative;
}

/* Scanline Effect */
.quest-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.1;
}

.quest-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(white, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.quest-desc {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.quest-rewards {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem 3rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.reward-item {
    display: flex;
    flex-direction: column;
}

.reward-item .label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reward-item .value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.reward-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.quest-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-blue), #00aaff);
    color: #000;
    font-family: var(--font-display);
    font-weight: 900;
    padding: 1.5rem 4rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.quest-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.quest-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.6);
}

.quest-btn:hover::before {
    left: 100%;
}

/* Trust Dashboard - HUD Style */
.trust-dashboard {
    margin-bottom: 2rem;
}

.dashboard-panel {
    background: rgba(10, 10, 16, 0.7);
    border: 1px solid #333;
    border-top: 2px solid var(--accent-blue);
    border-bottom: 2px solid #333;
    padding: 2.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

.dashboard-panel::before {
    content: 'STATUS_MONITOR';
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--bg-deep);
    padding: 0 10px;
    color: var(--accent-blue);
    font-size: 0.7rem;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: bold;
}

.stat-value.active {
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, #333, transparent);
}

/* Partner Banners - Holographic Chips */
.partner-banners {
    margin-top: 4rem;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
}

.banner-track {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.banner-item {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    width: 200px;
    /* Slightly wider */
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.banner-item strong {
    font-weight: 900;
    margin-right: 6px;
}

.banner-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2), 0 0 20px var(--accent-blue);
}

.banner-item:hover::after {
    transform: scaleX(1);
}

/* Portal Button - Floating Object */
.portal-section {
    text-align: center;
    margin-top: 3rem;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    /* Subtle Gold border for 'treasure folder' feel */
    padding: 1.2rem 3rem;
    border-radius: 50px;
    color: #ddd;
    font-size: 1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.portal-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-3px);
}

.portal-icon {
    font-size: 1.4rem;
}

/* Footer */
footer {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
    padding-top: 2rem;
    border-top: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-message {
        display: none;
    }

    .quest-visual {
        height: 220px;
    }

    .quest-title {
        font-size: 1.8rem;
    }

    .dashboard-panel {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
        background: #333;
    }

    .banner-item {
        width: 45%;
        height: 50px;
        font-size: 0.8rem;
    }

    .quest-rewards {
        width: 100%;
        gap: 1.5rem;
        padding: 1rem;
    }

    .reward-item .value {
        font-size: 1.4rem;
    }
}

/* Links Page Specifics */
.page-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 30px var(--accent-blue);
    margin-bottom: 0.5rem;
}

.full-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.sub-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.sub-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.sub-card .quest-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
    transition: transform 0.3s;
}

.sub-card:hover .quest-icon {
    transform: scale(1.2) rotate(10deg);
}

.sub-card h3 {
    font-family: var(--font-display);
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.sub-card p {
    color: #aaa;
    font-size: 0.9rem;
}

.quest-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #555;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: #ccc;
    text-transform: uppercase;
    font-weight: bold;
}