:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --accent-color: #d97706;
    --accent-light: #fef3c7;
    --accent-border: #f59e0b;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(37, 99, 235, 0.18);
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #cbd5e1;
    color: var(--text-main);
    line-height: 1.6;
    word-break: keep-all;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Mobile Frame Wrapper */
.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-color);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    position: relative;
    padding-bottom: 30px;
    overflow-x: hidden;
}

/* Hero Header */
.hero-header {
    position: relative;
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    color: #ffffff;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.apt-name-tag {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.hero-title {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 6px;
}

.hero-title .highlight {
    color: #38bdf8;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: #cbd5e1;
    font-weight: 300;
}

/* Main Content Section */
.main-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: -10px;
    position: relative;
    z-index: 3;
}

/* Base Card Style */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.section-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Notice Card */
.notice-card {
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
}

.notice-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Ranking Items Section */
.results-card .section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.header-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.ranking-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item.top3 {
    background: #ffffff;
    border: 1.5px solid #93c5fd;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.08);
}

.item-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    background: #e2e8f0;
    color: #475569;
}

.ranking-item.rank-1 .rank-badge {
    background: #fef08a;
    color: #854d0e;
}
.ranking-item.rank-2 .rank-badge {
    background: #e2e8f0;
    color: #334155;
}
.ranking-item.rank-3 .rank-badge {
    background: #ffedd5;
    color: #9a3412;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    flex-grow: 1;
    margin-left: 10px;
}

.vote-count {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

.ranking-item.rank-1 .progress-bar-fill {
    background: linear-gradient(90deg, #eab308 0%, #facc15 100%);
}

.vote-pct {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

/* Verification Details */
.calc-box {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.6;
    margin-top: 10px;
    border-left: 3px solid var(--primary-light);
}

/* Footer */
.footer-section {
    text-align: center;
    padding: 24px 10px 10px 10px;
    color: var(--text-muted);
}

.closing-text {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.thanks-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.copyright {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 14px;
}
