:root {
    --app-bg: #F8F9FA;
    --text-main: #1D1D1F;
    --text-sub: #86868B;
    --accent: #0A84FF; 
    --border-color: #F2F2F7;
    --thumb-bg-color: #E5E5EA;
    --thumb-bg-image: none;
}

body {
    font-family: 'Pretendard', 'Inter', sans-serif;
    background-color: var(--app-bg);
    color: var(--text-main);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-font-smoothing: antialiased;
}

/* Quadrant Icons */
body[data-quadrant="0"] { --thumb-bg-color: #000000; --thumb-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /%3E%3Cpath d='M9 10l.01 0' /%3E%3Cpath d='M15 10l.01 0' /%3E%3C/svg%3E"); }
body[data-quadrant="1"] { --thumb-bg-color: #F28B82; --thumb-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 1 0 -18a9 9 0 1 1 0 18' /%3E%3Cpath d='M8 9l2 1' /%3E%3Cpath d='M16 9l-2 1' /%3E%3Cpath d='M14.5 16.05a3.5 3.5 0 0 0 -5 0' /%3E%3C/svg%3E"); }
body[data-quadrant="2"] { --thumb-bg-color: #FDD663; --thumb-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21a9 9 0 1 1 0 -18a9 9 0 1 1 0 18' /%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /%3E%3Cpath d='M9 10h.01' /%3E%3Cpath d='M10 14v2a2 2 0 0 0 4 0v-2' /%3E%3Cpath d='M15.5 14h-7' /%3E%3Cpath d='M17 10c-.5 -1 -2.5 -1 -3 0' /%3E%3C/svg%3E"); }
body[data-quadrant="3"] { --thumb-bg-color: #8AB4F8; --thumb-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /%3E%3Cpath d='M9 10l.01 0' /%3E%3Cpath d='M15 10l.01 0' /%3E%3Cpath d='M9.5 15.25a3.5 3.5 0 0 1 5 0' /%3E%3C/svg%3E"); }
body[data-quadrant="4"] { --thumb-bg-color: #81C995; --thumb-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0' /%3E%3Cpath d='M9 10l.01 0' /%3E%3Cpath d='M15 10l.01 0' /%3E%3Cpath d='M9.5 15a3.5 3.5 0 0 0 5 0' /%3E%3C/svg%3E"); }

/* Grid */
.mood-grid { display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--border-color); position: relative; width: 100%; }
.cell { cursor: pointer; transition: transform 0.1s ease; display: flex; align-items: center; justify-content: center; padding: 1px; min-width: 0; min-height: 0; }
.cell:hover { filter: brightness(1.05); transform: scale(1.05); z-index: 10; }
.cell-label { font-size: 5.5px; line-height: 1.0; text-align: center; color: rgba(0, 0, 0, 0.35); pointer-events: none; font-weight: 700; letter-spacing: -0.03em; word-break: break-all; overflow-wrap: anywhere; white-space: normal; display: block; width: 100%; }
@media (min-width: 768px) { .cell-label { font-size: 8px; } }

#mood-pointer { position: absolute; width: 21px; height: 21px; background-color: var(--thumb-bg-color); background-image: var(--thumb-bg-image); border: none; border-radius: 50%; pointer-events: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 20; transform: translate(-50%, -50%); background-size: 150%; background-position: center; background-repeat: no-repeat; }

/* Slider Layout */
.slider-row { display: flex; align-items: center; gap: 12px; width: 100%; }
.label-tag { font-size: 11px; font-weight: 800; color: #8E8E93; white-space: nowrap; min-width: 48px; text-align: center; flex-shrink: 0; }
.slider-wrapper { flex: 1; position: relative; padding: 0; }

input[type=range] { -webkit-appearance: none; width: 100%; height: 6px; background: #E5E5EA; border-radius: 10px; outline: none; cursor: pointer; display: block; margin: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 21px; height: 21px; border-radius: 50%; cursor: pointer; border: none; background-color: var(--thumb-bg-color); background-image: var(--thumb-bg-image); background-size: 150%; background-position: center; background-repeat: no-repeat; margin-top: -7.5px; }

.scale-container { position: relative; width: 100%; padding: 0 10.5px; margin-top: 8px; }
.scale-numbers { display: flex; width: 100%; justify-content: space-between; }
.scale-numbers span { width: 0; display: flex; justify-content: center; font-size: 10px; font-weight: 700; color: #D1D1D6; white-space: nowrap; }

/* 섹션 타이틀 (슬라이더 및 하단 질문 공통) */
.section-title { font-size: 13px; font-weight: 800; color: var(--text-sub); margin-bottom: 12px; }

/* Modals */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(8px); z-index: 100; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: white; width: 100%; max-width: 480px; border-radius: 28px; padding: 32px; box-shadow: 0 30px 60px rgba(0,0,0,0.15); max-height: 85vh; overflow-y: auto; }

/* 가이드 내부 색상 원형 버튼 스타일 */
.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}
.dot-yellow { background-color: #FDD663; }
.dot-red { background-color: #F28B82; }
.dot-green { background-color: #81C995; }
.dot-blue { background-color: #8AB4F8; }

footer { margin-top: 40px; padding-bottom: 40px; text-align: center; border-top: 1px solid #F2F2F7; padding-top: 20px; }
.footer-links { display: flex; justify-content: center; gap: 15px; font-size: 11px; color: var(--text-sub); }
.footer-link { text-decoration: underline; cursor: pointer; }
.nav-icon { display: flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.05); transition: all 0.2s; }
.nav-icon svg { width: 10px; height: 10px; }