:root {
    --primary: #3877FF;
    --accent: #ffcc00;
    --bg-dark: #121214;
    --card-bg: #1e1e22;
    --text-main: #e1e1e6;
    --text-dim: #a8a8b3;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
}

.container { width: 100%; max-width: 600px; margin: 0 auto; padding: 20px; }

header { text-align: center; margin-bottom: 20px; }
header h1 { 
    font-size: 2.5rem; 
    margin-bottom: 5px; 
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-nav { 
    background: var(--card-bg); 
    padding: 10px; 
    border-radius: 12px; 
    margin-bottom: 25px;
    position: sticky; top: 10px; z-index: 100;
}
.site-nav ul { list-style: none; display: flex; justify-content: center; gap: 20px; margin: 0; padding: 0; }
.site-nav a { color: var(--text-main); text-decoration: none; font-weight: bold; font-size: 0.9rem; }

.card-box { background: var(--card-bg); padding: 25px; border-radius: 20px; margin-bottom: 30px; }
.card-box h2 { text-align: center; margin-top: 0; color: var(--accent); }

/* 업로드 및 결과 */
.upload-box {
    border: 2px dashed #444; border-radius: 15px; height: 250px;
    display: flex; justify-content: center; align-items: center; cursor: pointer; overflow: hidden;
}
#preview-image { width: 100%; height: 100%; object-fit: cover; }

.details-box {
    background: #25252b; padding: 20px; border-radius: 15px; margin-top: 25px; text-align: left;
    border-left: 5px solid var(--accent);
}
.details-box h3 { color: var(--accent); margin-top: 0; }
.compatible-animal { font-weight: bold; color: var(--primary); }

/* 게임 */
#tetris { border: 3px solid #333; background: #000; display: block; margin: 0 auto; }
.score-display { display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; }
.stat-box { font-weight: bold; color: var(--accent); }
.controls-info { font-size: 0.8rem; color: var(--text-dim); margin-top: 10px; }

/* 결과 바 */
.result-bar-wrapper { margin-bottom: 15px; }
.bar-label { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.bar-bg { background: #333; height: 12px; border-radius: 10px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 10px; background: linear-gradient(to right, var(--primary), var(--accent)); transition: width 1s ease; }

.spinner {
    border: 3px solid rgba(255,255,255,0.1); width: 30px; height: 30px;
    border-radius: 50%; border-left-color: var(--accent);
    animation: spin 1s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.retry-btn {
    width: 100%; padding: 12px; border: none; border-radius: 8px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: #000; font-weight: bold; cursor: pointer; margin-top: 15px;
}

.content-section { margin-top: 40px; }
.content-box { background: var(--card-bg); padding: 20px; border-radius: 15px; color: var(--text-dim); font-size: 0.9rem; }

.contact-form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.contact-form input, .contact-form textarea { background: #25252b; border: 1px solid #444; padding: 10px; border-radius: 6px; color: #fff; }
.contact-form button { background: var(--primary); border: none; padding: 10px; color: #fff; border-radius: 6px; cursor: pointer; }

.ad-container { margin: 30px 0; min-height: 100px; text-align: center; }
#disqus_thread { margin-top: 40px; }