/* ================================
   Roulette - Page Layout
   ================================ */

.roulette-main {
    min-height: calc(100vh - 80px);
    background: var(--light);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
}

/* ================================
   Game Card
   ================================ */

.roulette-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 520px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.roulette-header {
    padding: 2.5rem 2rem;
    background: var(--gradient-2);
    color: white;
    text-align: center;
}

.roulette-header .game-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.roulette-header .game-title {
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.roulette-header .game-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.roulette-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ================================
   Input Section
   ================================ */

.input-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
}

.input-label span {
    font-weight: 400;
    color: #888;
}

.roulette-textarea {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--dark);
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
    line-height: 1.6;
}

.roulette-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-create {
    padding: 0.75rem 1rem;
    background: var(--light);
    color: var(--secondary);
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-create:hover {
    background: var(--secondary);
    color: white;
}

/* ================================
   Roulette Wheel
   ================================ */

.roulette-wrap {
    position: relative;
    width: 300px;
    height: 316px;
    margin: 0 auto;
}

.pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 26px solid var(--primary);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

canvas {
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--shadow-md);
    display: block;
    margin: 12px auto 0;
}

/* ================================
   Result
   ================================ */

.result-box {
    background: var(--gradient-1);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    animation: scaleIn 0.3s ease-out;
}

.result-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ================================
   Spin Button
   ================================ */

.btn-spin {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-spin:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-spin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================================
   Back Link
   ================================ */

.back-link {
    display: block;
    text-align: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    padding-top: 0.25rem;
}

.back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ================================
   Logo link reset
   ================================ */

header .logo {
    text-decoration: none;
    color: white;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 480px) {
    .roulette-main {
        padding: 1.5rem 1rem 3rem;
    }

    .roulette-header {
        padding: 2rem 1.5rem;
    }

    .roulette-header .game-title {
        font-size: 1.6rem;
    }

    .roulette-body {
        padding: 1.5rem 1.25rem;
    }

    .result-value {
        font-size: 1.5rem;
    }
}
