:root {
    --compass-neon: #00f2ff;
    --compass-pink: #ff00de;
    --compass-gold: #ffd700;
}

.compass-container {
    max-width: 500px;
    margin: 40px auto;
    position: relative;
    perspective: 1200px;
}

/* 3D Compass Body */
.compass-body {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at 30% 30%, #1a1a2e, #0a0a15);
    border: 8px solid #222;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(0, 242, 255, 0.2),
        0 0 0 10px rgba(0, 242, 255, 0.1);
    transform-style: preserve-3d;
    transform: rotateX(20deg);
}

/* Outer Ring with Neon */
.compass-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--compass-neon);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--compass-neon);
    pointer-events: none;
}

/* Cardinal Points */
.cardinal {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    z-index: 2;
}

.north {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--compass-pink);
    text-shadow: 0 0 15px var(--compass-pink);
}

.south {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.east {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.west {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* The Needle (Fate) */
.needle-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 4s cubic-bezier(0.1, 0, 0.1, 1);
    z-index: 5;
}

.needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 130px;
    background: linear-gradient(to bottom, var(--compass-pink) 50%, var(--compass-neon) 50%);
    transform: translate(-50%, -100%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    filter: drop-shadow(0 0 15px var(--compass-pink));
}

.needle-pivot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    background: #fff;
    border: 4px solid #111;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Header & Title - NO CLIPPING FIXED */
.game-main-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 3.2rem;
    color: #fff;
    text-shadow:
        0 0 20px rgba(0, 242, 255, 0.5),
        0 0 40px rgba(0, 242, 255, 0.2);
    margin: 60px auto 20px;
    /* Increased margin to avoid clipping */
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 20;
    line-height: 1.4;
    /* Fixed clipping by giving enough space */
    padding-top: 20px;
    /* Security padding */
}

.game-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: var(--compass-neon);
    opacity: 0.9;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
}

/* Premium Button Area */
#setup-area {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 40px auto !important;
    min-height: 80px;
}

#spin-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;

    width: 320px !important;
    /* Balanced width */
    height: 70px !important;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 50%, #e67e22 100%) !important;
    color: #000 !important;
    font-size: 1.3rem !important;
    font-weight: 900 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
    box-shadow:
        0 10px 30px rgba(255, 215, 0, 0.4),
        inset 0 2px 2px rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    font-family: 'Orbitron', 'Noto Sans KR', sans-serif !important;
    text-shadow: none !important;
}

#spin-btn:hover {
    transform: scale(1.03) translateY(-3px) !important;
    filter: brightness(1.1);
    box-shadow: 0 15px 45px rgba(255, 215, 0, 0.5) !important;
}

/* Result Card */
.compass-result-card {
    max-width: 440px;
    margin: 10px auto 40px;
    /* Reduced top margin to place it directly below the button */
    background: rgba(10, 10, 20, 0.95);
    border: 3px solid var(--compass-neon);
    border-radius: 28px;
    padding: 30px;
    display: none;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.3);
    animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.result-prefix {
    color: var(--compass-neon);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

#result-text {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--compass-pink);
    text-shadow: 0 0 25px rgba(255, 0, 222, 0.5);
    margin: 20px 0 30px;
}

/* =========================================================================
   S-Style Help Section (Synchronized with Ladder Game)
   ========================================================================= */
.compass-info-section {
    max-width: 800px;
    /* Match standard sub-page width */
    margin: 80px auto 40px;
    padding: 0 20px;
}

.help-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    text-align: left;
    /* Critical: Left aligned */
}

.help-title {
    color: var(--compass-neon);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 2px;
}

.help-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-item {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    word-break: keep-all;
}

.help-icon {
    color: #ffcc00;
    /* Yellow Lightning */
    font-size: 1rem;
    flex-shrink: 0;
}

.help-subject {
    font-weight: 800;
    color: #fff;
    margin-right: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@media (max-width: 600px) {
    .compass-body {
        width: 260px;
        height: 260px;
    }

    .needle {
        height: 120px;
    }

    .game-main-title {
        font-size: 2.2rem;
    }

    #spin-btn {
        width: 90% !important;
    }
}