/* ====================================
   행운의 숫자 룰렛 - 전용 스타일시트
==================================== */

/* How to Play Section */
.how-to-play-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.how-to-toggle {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border: none;
    border-bottom: 2px solid #DEB564;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5C4A1F;
}

.how-to-toggle:hover {
    background: linear-gradient(135deg, #FFEFD5, #FFE4B5);
}

.how-to-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.toggle-icon {
    font-size: 1.3rem;
    margin-right: 10px;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.how-to-content {
    padding: 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.how-to-content.hidden {
    display: none;
}

.how-to-content h3 {
    color: #5C4A1F;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #DEB564;
    transition: transform 0.2s;
}

.step-item:hover {
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #5C4A1F;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.how-to-tips {
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #27AE60;
}

.how-to-tips h4 {
    color: #16A085;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.how-to-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-to-tips li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #2C3E50;
    line-height: 1.7;
}

.how-to-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 숫자별 색상 */
:root {
    --roulette-1: #E74C3C;  /* 빨강 */
    --roulette-2: #F39C12;  /* 주황 */
    --roulette-3: #F1C40F;  /* 노랑 */
    --roulette-4: #2ECC71;  /* 초록 */
    --roulette-5: #3498DB;  /* 파랑 */
    --roulette-6: #9B59B6;  /* 보라 */
    --roulette-7: #1ABC9C;  /* 청록 */
    --roulette-8: #E91E63;  /* 분홍 */
    --roulette-9: #34495E;  /* 남색 */
}

/* Game Section */
.game-section {
    text-align: center;
    padding: 30px 0;
}

/* Roulette Container */
.roulette-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 30px;
}

/* Pointer */
.roulette-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #8B6914;
    z-index: 10;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.3));
    animation: pointerBounce 1s ease-in-out infinite;
}

@keyframes pointerBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

/* Roulette Wheel */
.roulette-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--roulette-1) 0deg 40deg,
        var(--roulette-2) 40deg 80deg,
        var(--roulette-3) 80deg 120deg,
        var(--roulette-4) 120deg 160deg,
        var(--roulette-5) 160deg 200deg,
        var(--roulette-6) 200deg 240deg,
        var(--roulette-7) 240deg 280deg,
        var(--roulette-8) 280deg 320deg,
        var(--roulette-9) 320deg 360deg
    );
    box-shadow: 
        0 0 0 8px #8B6914,
        0 0 0 12px #DEB564,
        0 0 30px rgba(0, 0, 0, 0.3),
        inset 0 0 50px rgba(0, 0, 0, 0.1);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.roulette-wheel.spinning {
    animation: none;
}

/* Wheel Segments - Number Labels */
.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.wheel-segment .segment-number {
    position: absolute;
    top: 25px;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Position each number */
.wheel-segment[data-number="1"] { transform: rotate(20deg); }
.wheel-segment[data-number="2"] { transform: rotate(60deg); }
.wheel-segment[data-number="3"] { transform: rotate(100deg); }
.wheel-segment[data-number="4"] { transform: rotate(140deg); }
.wheel-segment[data-number="5"] { transform: rotate(180deg); }
.wheel-segment[data-number="6"] { transform: rotate(220deg); }
.wheel-segment[data-number="7"] { transform: rotate(260deg); }
.wheel-segment[data-number="8"] { transform: rotate(300deg); }
.wheel-segment[data-number="9"] { transform: rotate(340deg); }

/* Wheel Center */
.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFF8DC, #DEB564);
    box-shadow: 
        0 0 0 5px #8B6914,
        0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Spin Button */
.spin-btn {
    padding: 20px 50px;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.4);
    margin-bottom: 30px;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 105, 20, 0.5);
}

.spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spin-btn .btn-icon {
    font-size: 1.5rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.spin-btn:disabled .btn-icon {
    animation: none;
}

/* Luck Index Display */
.luck-index-display {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.luck-index-display h3 {
    color: #5C4A1F;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.luck-meter {
    width: 200px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 10px;
}

.luck-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #E74C3C, #F39C12, #2ECC71);
    border-radius: 10px;
    transition: width 1s ease;
}

.luck-percent {
    font-size: 2rem;
    font-weight: 800;
    color: #8B6914;
}

/* Result Section */
.result-section {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selected Number Display */
.selected-number-display {
    text-align: center;
    margin-bottom: 40px;
}

.number-badge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--roulette-1), #c0392b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(231, 76, 60, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 50px rgba(231, 76, 60, 0.6);
        transform: scale(1.02);
    }
}

.big-number {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.result-title {
    color: #5C4A1F;
    font-size: 1.5rem;
}

/* Result Cards Grid */
.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.result-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.result-card h3 {
    color: #5C4A1F;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Color Card */
.color-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
}

.color-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.color-meaning {
    color: #666;
    font-size: 0.9rem;
}

/* Tarot Card */
.tarot-image {
    font-size: 4rem;
    margin-bottom: 10px;
}

.tarot-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.tarot-meaning {
    color: #666;
    font-size: 0.9rem;
}

/* Message Card */
.fortune-message {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
}

/* Elements Card */
.elements-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.element-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f8f8;
    border-radius: 10px;
}

.element-label {
    color: #666;
    font-size: 0.9rem;
}

.element-value {
    color: #333;
    font-weight: 600;
}

/* Detailed Fortune */
.detailed-fortune {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.detailed-fortune h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 25px;
}

.fortune-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.fortune-category {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #FFF8DC, #FFFAF0);
    border-radius: 12px;
}

.fortune-category .category-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.fortune-category .category-name {
    display: block;
    color: #5C4A1F;
    font-weight: 600;
    margin-bottom: 8px;
}

.fortune-category .category-stars {
    color: #F39C12;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.fortune-category .category-detail {
    color: #666;
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.5;
    text-align: left;
}

/* Time-based Fortune */
.time-fortune {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.time-fortune h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 25px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.time-item {
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.time-item.morning { background: linear-gradient(135deg, #FFF8DC, #FFE4B5); }
.time-item.afternoon { background: linear-gradient(135deg, #E3F2FD, #BBDEFB); }
.time-item.evening { background: linear-gradient(135deg, #FCE4EC, #F8BBD9); }
.time-item.night { background: linear-gradient(135deg, #EDE7F6, #D1C4E9); }

.time-item .time-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.time-item .time-label {
    display: block;
    font-weight: 600;
    color: #5C4A1F;
    margin-bottom: 10px;
}

.time-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.time-fill {
    height: 100%;
    background: linear-gradient(90deg, #F39C12, #E74C3C);
    border-radius: 4px;
    transition: width 1s ease;
}

.time-tip {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Lucky & Avoid Section */
.lucky-avoid-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.lucky-box,
.avoid-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.lucky-box h3,
.avoid-box h3 {
    color: #5C4A1F;
    margin-bottom: 20px;
    text-align: center;
}

.lucky-grid-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.lucky-detail-item {
    text-align: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    border-radius: 12px;
}

.lucky-detail-item .detail-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.lucky-detail-item .detail-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.lucky-detail-item .detail-value {
    display: block;
    font-weight: 700;
    color: #2C3E50;
}

.avoid-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.avoid-list li {
    padding: 12px 15px;
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border-radius: 10px;
    margin-bottom: 10px;
    color: #C62828;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.avoid-list li:last-child {
    margin-bottom: 0;
}

.avoid-list li::before {
    content: '❌';
}

/* Compatibility Section */
.compatibility-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.compatibility-section h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 25px;
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.compat-good,
.compat-bad {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.compat-good {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.compat-bad {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
}

.compat-good h4,
.compat-bad h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

.compat-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.compat-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.compat-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 5px solid #DEB564;
}

.quote-section h3 {
    color: #8B6914;
    margin-bottom: 20px;
}

.daily-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: #5C4A1F;
    line-height: 1.8;
    margin: 0 0 15px 0;
    padding: 0;
    border: none;
}

.daily-quote::before {
    content: '"';
    font-size: 2rem;
    color: #DEB564;
}

.daily-quote::after {
    content: '"';
    font-size: 2rem;
    color: #DEB564;
}

.quote-author {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

.quote-author::before {
    content: '— ';
}

/* Action Tips Section */
.action-tips-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.action-tips-section h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 25px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    transition: transform 0.2s;
}

.tip-item:hover {
    transform: translateX(5px);
}

.tip-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.tip-text {
    color: #333;
    line-height: 1.6;
}

/* Recommendations */
.recommendations {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.recommendations h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 25px;
}

.recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.recommendation-item {
    text-align: center;
    padding: 20px 15px;
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    border-radius: 15px;
    transition: transform 0.3s;
}

.recommendation-item:hover {
    transform: scale(1.03);
}

.recommendation-item .rec-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.recommendation-item .rec-label {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.recommendation-item .rec-value {
    display: block;
    color: #333;
    font-weight: 700;
    font-size: 1rem;
}

/* Today's Advice */
.today-advice {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border-left: 5px solid #DEB564;
}

.today-advice h3 {
    color: #8B6914;
    margin-bottom: 15px;
}

.advice-text {
    color: #5C4A1F;
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.retry-btn,
.share-btn {
    padding: 15px 35px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.retry-btn {
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
}

.share-btn {
    background: linear-gradient(135deg, #3498DB, #2980B9);
    color: white;
}

.retry-btn:hover,
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* History Section */
.history-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.history-section h3 {
    color: #5C4A1F;
    text-align: center;
    margin-bottom: 20px;
}

.history-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
}

.history-item {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: 15px 10px;
    background: #f8f8f8;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s;
}

.history-item:hover {
    transform: scale(1.05);
}

.history-item .history-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.history-item .history-time {
    font-size: 0.75rem;
    color: #888;
}

/* Number badge colors */
.number-badge[data-num="1"] { background: linear-gradient(135deg, var(--roulette-1), #c0392b); }
.number-badge[data-num="2"] { background: linear-gradient(135deg, var(--roulette-2), #d68910); }
.number-badge[data-num="3"] { background: linear-gradient(135deg, var(--roulette-3), #d4ac0d); }
.number-badge[data-num="4"] { background: linear-gradient(135deg, var(--roulette-4), #27ae60); }
.number-badge[data-num="5"] { background: linear-gradient(135deg, var(--roulette-5), #2874a6); }
.number-badge[data-num="6"] { background: linear-gradient(135deg, var(--roulette-6), #7d3c98); }
.number-badge[data-num="7"] { background: linear-gradient(135deg, var(--roulette-7), #148f77); }
.number-badge[data-num="8"] { background: linear-gradient(135deg, var(--roulette-8), #c2185b); }
.number-badge[data-num="9"] { background: linear-gradient(135deg, var(--roulette-9), #1c2833); }

.history-number[data-num="1"] { background: var(--roulette-1); }
.history-number[data-num="2"] { background: var(--roulette-2); }
.history-number[data-num="3"] { background: var(--roulette-3); }
.history-number[data-num="4"] { background: var(--roulette-4); }
.history-number[data-num="5"] { background: var(--roulette-5); }
.history-number[data-num="6"] { background: var(--roulette-6); }
.history-number[data-num="7"] { background: var(--roulette-7); }
.history-number[data-num="8"] { background: var(--roulette-8); }
.history-number[data-num="9"] { background: var(--roulette-9); }

/* Confetti effect */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: fall 3s linear forwards;
    pointer-events: none;
    z-index: 1000;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .how-to-content {
        padding: 20px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .roulette-container {
        width: 280px;
        height: 280px;
    }
    
    .wheel-segment .segment-number {
        font-size: 1.5rem;
        top: 20px;
    }
    
    .wheel-center {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .spin-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .result-cards {
        grid-template-columns: 1fr;
    }
    
    .fortune-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommendation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lucky-avoid-section {
        grid-template-columns: 1fr;
    }
    
    .compat-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .retry-btn,
    .share-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .daily-quote {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .roulette-container {
        width: 250px;
        height: 250px;
    }
    
    .wheel-segment .segment-number {
        font-size: 1.3rem;
        top: 15px;
    }
    
    .number-badge {
        width: 100px;
        height: 100px;
    }
    
    .big-number {
        font-size: 3rem;
    }
    
    .time-grid {
        grid-template-columns: 1fr;
    }
    
    .lucky-grid-detail {
        grid-template-columns: 1fr;
    }
    
    .recommendation-grid {
        grid-template-columns: 1fr;
    }
    
    .fortune-categories {
        grid-template-columns: 1fr;
    }
}

