/* ================================
   Reaction Test - Page Layout
   ================================ */

.reaction-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
   ================================ */

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

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

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

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

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

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

/* ================================
   Game Screen
   ================================ */

.reaction-screen {
    height: 200px;
    border-radius: 14px;
    background: var(--light);
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, color 0.2s;
    text-align: center;
    padding: 1rem;
}

.reaction-screen.state-waiting {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
    font-size: 1.4rem;
}

.reaction-screen.state-go {
    background: var(--success);
    border-color: var(--success);
    color: white;
    font-size: 1.6rem;
    animation: pulse 0.3s ease-out;
}

.reaction-screen.state-fail {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--dark);
    font-size: 1.1rem;
}

/* ================================
   Stats
   ================================ */

.reaction-stats {
    display: flex;
    gap: 1rem;
}

.stat-box {
    flex: 1;
    background: var(--light);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-box .stat-label {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 0.3rem;
}

.stat-box .stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
}

/* ================================
   Buttons
   ================================ */

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

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

.start-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.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;
}

/* ================================
   Animations
   ================================ */

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}

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

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

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

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

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

    .reaction-screen {
        height: 170px;
    }
}

/* share-slot-btn 스타일은 css/styles.css에 정의됨 */
