/* style.css */
:root {
    --primary: #FFD700;
    --primary-dark: #FFC107;
    --secondary: #4A90E2;
    --point-navy: #1A237E;
    --bg-light: #E3F2FD;
    --text-main: #333;
    --text-muted: #78909C;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* ================= 인트로 페이지 ================= */
#page-intro {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.intro-hero {
    position: relative;
    height: 55vh;
    background-color: var(--bg-light);
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.intro-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    animation: zoomEffect 15s infinite alternate ease-in-out;
}

.intro-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--white) 100%);
}

.intro-content {
    flex: 1;
    padding: 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.intro-badge {
    background: var(--bg-light);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.intro-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--point-navy);
    margin-bottom: 12px;
    animation: fadeUp 0.7s ease-out both;
}

.intro-title span {
    color: var(--secondary);
}

.intro-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    animation: fadeUp 0.7s ease-out 0.2s both;
}

.intro-footer {
    padding: 0 24px 40px;
    text-align: center;
}

.btn-start {
    width: 90%;
    height: 56px;
    background: var(--primary);
    color: var(--point-navy);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-start:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-start:active {
    transform: scale(0.96);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.warrior-count {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #90A4AE;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

/* ================= Animations ================= */
@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}