.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.main-container h3 {
    color: mediumpurple;
}

.main-container p {
    color: #664589;
    margin-bottom: 50px;
}

/* 퍼스널 컬러 배너 스타일 */
.personal-color-banner {
    background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #fff8e1 100%);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 800px;
    width: 90%;
}

.banner-content h2 {
    color: #e91e63;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content p {
    color: #9c27b0;
    font-size: 1.1em;
    margin-bottom: 25px;
    font-weight: 500;
}

.cta-button {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    text-decoration: none;
    color: white;
}

/* 주요 기능 섹션 스타일 */
.main-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 90%;
    max-width: 900px;
    margin: 0 auto 50px;
    justify-content: center;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-header h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 8px;
    font-weight: 600;
    margin-top: 5px;
}

.card-header p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

/* 추천 상품 카드 */
.recommendation-card {
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
}

/* 내 아이템 기반 검색 카드 */
.item-search-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
}

.search-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.search-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.search-image {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.search-info h4 {
    color: #1976d2;
    font-size: 1.2em;
    margin-bottom: 8px;
    font-weight: 600;
    margin-top: 10px;
}

.search-info p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.4;
}

.product-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 30px;
}

.product-image {
    width: 150px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-info h4 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-info p {
    color: #666;
    font-size: 0.85em;
    margin: 0;
    line-height: 1.4;
}

/* 무드 테스트 카드 */
.mood-test-card {
    background: linear-gradient(135deg, #f8f4ff 0%, #fff 100%);
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 50px 0 30px 0;
}

.mood-option {
    background: #f3e5f5;
    border: 2px solid #e1bee7;
    border-radius: 20px;
    padding: 8px 12px;
    color: #7b1fa2;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 80px;
}

.mood-option:hover {
    background: #e1bee7;
    transform: scale(1.05);
}

/* 색상 매트릭스 카드 */
.color-matrix-card {
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
}

.matrix-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.mini-color-matrix {
    position: relative;

    width: 300px;
    height: 250px;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.quadrant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.quadrant {
    position: relative;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.quadrant.top-left {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.quadrant.top-right {
    background: linear-gradient(135deg, #fff8f0 0%, #fff0e6 100%);
}

.quadrant.bottom-left {
    background: linear-gradient(135deg, #f0f0ff 0%, #e6e6ff 100%);
}

.quadrant.bottom-right {
    background: linear-gradient(135deg, #fff0f0 0%, #ffe6e6 100%);
}

.quadrant-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.quadrant-label {
    font-size: 0.7em;
    color: #666;
    font-weight: 600;
    line-height: 1.2;
}

.color-dots {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.axis-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.axis-label {
    position: absolute;
    font-size: 0.75em;
    color: #888;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.axis-label.top {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label.bottom {
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label.left {
    left: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.axis-label.right {
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
}

/* 컬러 투표 카드 */
.voting-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
    position: relative;
    grid-column: 1 / -1;
    /* 전체 너비 사용 */
}

.voting-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.vote-product-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vote-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2196f3;
}

.vote-product-card.selected {
    border-color: #ff6b9d;
    background: linear-gradient(135deg, #fff5f7 0%, #fff 100%);
}

.product-vote-image {
    position: relative;
    margin-bottom: 12px;
}

.product-vote-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.vote-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    color: #e91e63;
    font-weight: 600;
}

.product-vote-info h4 {
    color: #333;
    font-size: 0.9em;
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.3;
}

.product-vote-info p {
    color: #666;
    font-size: 0.8em;
    margin-bottom: 8px;
    font-weight: 500;
}

.vote-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    flex-grow: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #4ecdc4);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.vote-percentage {
    color: #333;
    font-size: 0.8em;
    font-weight: 700;
    min-width: 30px;
    text-align: right;
}

.voting-stats {
    text-align: center;
    padding: 15px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(33, 150, 243, 0.1);
}

.voting-stats p {
    color: #666;
    font-size: 0.85em;
    margin: 0;
    font-weight: 500;
}

.voting-stats strong {
    color: #2196f3;
}

/* 투표 메시지 스타일 */
.vote-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    z-index: 10;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.vote-message-success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    color: white;
}

.vote-message-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.vote-message-info {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    white-space: pre-wrap;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.no-voting-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px dashed #ddd;
}

.no-voting-products p {
    font-size: 1em;
    margin: 0;
    font-weight: 500;
}

.card-action {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: white;
}

/* 메인페이지 랭킹 섹션 */
.ranking-section {
    margin-top: 10px;
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 1020px;
}

.ranking-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.ranking-section .section-header h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ranking-section .section-header p {
    color: mediumpurple;
    font-size: 1em;
}

.ranking-preview {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 20px;
}

.ranking-item {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 215px;
    max-width: 240px;
}

.ranking-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.ranking-item:nth-child(1) {
    border: 2px solid #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 255, 255, 1));
}

.ranking-item:nth-child(2) {
    border: 2px solid #c0c0c0;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05), rgba(255, 255, 255, 1));
}

.ranking-item:nth-child(3) {
    border: 2px solid #cd7f32;
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.05), rgba(255, 255, 255, 1));
}

.ranking-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    z-index: 2;
}

.ranking-item:nth-child(1) .ranking-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.ranking-item:nth-child(2) .ranking-badge {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.ranking-item:nth-child(3) .ranking-badge {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.ranking-item:nth-child(1)::before {
    content: "👑";
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 1.8em;
    transform: rotate(25deg);
    z-index: 3;
}

.ranking-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ranking-info {
    width: 100%;
}

.ranking-info .product-brand {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 5px;
    font-weight: 500;
}

.ranking-info .product-name {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.ranking-info .like-count-display {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
}

.ranking-actions {
    text-align: center;
}

.ranking-detail-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ranking-detail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.no-ranking {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    border: 2px dashed #ddd;
    margin: 0 20px;
}

.no-ranking p {
    font-size: 1.1em;
    margin: 0;
}

/* 투표 결과 부분 css */
.prev-result {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100px;
  padding: 15px;
  background-color: #f7f9fc;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  box-sizing: border-box;
  overflow: hidden;
  margin: 20px 0 0 0;
}

/* 왼쪽: 우승자 정보 */
.prev-result__winner {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.winner__image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.winner__info {
  display: flex;
  flex-direction: column;
}

.winner__label {
  font-size: 12px;
  color: #868e96;
}

.winner__name {
  font-size: 16px;
  font-weight: bold;
  color: #212529;
}

/* 오른쪽: 상세 득표율 */
.prev-result__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

a.details__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}

a.details__bar:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.bar__label {
  width: 100px; /* 라벨 너비를 고정해 정렬 */
  color: #495057;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar__progress {
  flex-grow: 1; /* 남은 공간을 모두 차지 */
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden; /* fill이 삐져나가지 않도록 */
}

.bar__fill {
  height: 100%;
  background-color: #4C6EF5;
  border-radius: 5px;
  transition: width 0.5s ease-in-out;
}

.bar__percentage {
  width: 35px;
  font-weight: bold;
  color: #343a40;
  text-align: right;
  flex-shrink: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mood-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .color-grid {
        width: 100px;
    }

    .color-cell {
        width: 30px;
        height: 30px;
    }

    .ranking-section {
        margin-top: 40px;
        padding: 30px 0;
    }

    .ranking-section .section-header h2 {
        font-size: 1.8em;
    }

    .ranking-preview {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .ranking-item {
        width: 280px;
        max-width: 90%;
    }

    .ranking-item img {
        width: 100px;
        height: 100px;
    }
}

.moodico-splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

.moodico-splash-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.moodico-banner h3,
.moodico-banner p {
    color: mediumpurple;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;

    background: linear-gradient(135deg, mediumpurple, #cf8bf3, #f6d2f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.moodico-banner h3 {
    font-size: 3em;
    margin-bottom: 10px;
    animation-delay: 0.3s;
}

.moodico-banner p {
    font-size: 1.5em;
    animation-delay: 1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 퍼스널 컬러 페이지 스타일 */
   /* ===== Personal Color Onboarding (scoped with .pc-*) ===== */
   :root {
    --pc-brand: #6f4cff;
    --pc-brand-600: #5b3ce6;
    --pc-line: #ece8ff;
    --pc-muted: #6b7280;
    --pc-card: #fff;
    --pc-shadow: 0 10px 30px rgba(24,19,56,.12);
    --pc-radius: 16px;
    --pc-radius-lg: 22px;

  }
  .pc-section { padding: 10px 0; }
  .pc-container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
  .pc-title-xl { font-size: clamp(28px,3.6vw,40px); line-height: 1.15; margin: 150px 0 70px; }
  .pc-subtitle { color: var(--pc-muted); font-size: clamp(15px,1.9vw,18px); }
  .pc-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #472ec7; }

  .pc-card { background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); padding: 20px; }
  .pc-grid { display: grid; gap: 18px; }
  .pc-g2 { grid-template-columns: repeat(2,1fr); }
  .pc-g3 { grid-template-columns: repeat(3,1fr); }
  .pc-g4 { grid-template-columns: repeat(4,1fr); }
  @media (max-width: 1000px) { .pc-g4{grid-template-columns:repeat(2,1fr);} }
  @media (max-width: 820px) { .pc-g2,.pc-g3,.pc-g4{grid-template-columns:1fr;} }

  .pc-hero {
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius-lg);
    box-shadow: var(--pc-shadow);
    padding: clamp(20px,4vw,42px);
    display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(18px,4vw,36px);

}

.pc-section {
    padding-bottom: 25px;
}

.pc-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

.pc-title-xl {
    font-size: clamp(28px, 3.6vw, 40px);
    line-height: 1.15;
    margin: 95px 0 12px;
}

.pc-subtitle {
    color: var(--pc-muted);
    font-size: clamp(15px, 1.9vw, 18px);
}

.pc-eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #472ec7;
}

.pc-card {
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    padding: 20px;
}

.pc-grid {
    display: grid;
    gap: 18px;
}

.pc-g2 {
    grid-template-columns: repeat(2, 1fr);
}

.pc-g3 {
    grid-template-columns: repeat(3, 1fr);
}

.pc-g4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1000px) {
    .pc-g4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 820px) {

    .pc-g2,
    .pc-g3,
    .pc-g4 {
        grid-template-columns: 1fr;
    }
}

.pc-hero {
    border-radius: var(--pc-radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    padding: clamp(20px, 4vw, 42px);
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: clamp(18px, 4vw, 36px);

    background: #fff;
  }
  @media (max-width: 900px) { .pc-hero{grid-template-columns:1fr;} }

  .pc-ring {
    aspect-ratio: 1/1; border-radius: 24px; position: relative; overflow: hidden;
    background: conic-gradient(
      from 0deg,
      #ffad92 0 25%, #cbb8ff 0 50%, #d9a46b 0 75%, #9bd3ff 0 100%
    );
    border: 1px solid var(--pc-line);
  }
  .pc-ring::after {
    content: ""; position: absolute; inset: 14%; background: radial-gradient(circle at 50% 50%, #fff 0 60%, transparent 60%);
    border-radius: 22px; box-shadow: inset 0 0 0 1px var(--pc-line);
  }

  .pc-badge { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:800; border:1px solid var(--pc-line); }
  .pc-badge.warm { background:#fff7ed; color:#b45309; border-color:#fed7aa; }
  .pc-badge.cool { background:#eef2ff; color:#3730a3; border-color:#c7d2fe; }

  .pc-chips { display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
  .pc-chip { --c:#ddd; --label:""; position:relative; width:42px; height:42px; border-radius:10px; background:var(--c);
    border:1px solid rgba(0,0,0,.06); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 8px rgba(16,16,24,.12);
  }
  .pc-chip::after { content:var(--label); position:absolute; bottom:-18px; left:50%; transform:translateX(-50%); font-size:10px; color:var(--pc-muted); white-space:nowrap; }

  .pc-list { margin:10px 0 0 0; padding:0 0 0 18px; color:var(--pc-muted); }
  .pc-list li { margin:6px 0; }

  .pc-cta { border: 1px dashed #dcd3ff; background: linear-gradient(180deg, #faf9ff 0%, #fff 100%); border-radius: var(--pc-radius);
            padding: 24px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; align-items:center; }
  @media (max-width: 900px) { .pc-cta{grid-template-columns:1fr;} }

  .pc-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; font-weight:800; font-size:14px; border:1px solid transparent; cursor:pointer; text-decoration:none; }
  .pc-btn.primary { background: var(--pc-brand); color:#fff; box-shadow:0 8px 18px rgba(111,76,255,.28); }
  .pc-btn.primary:hover { background: var(--pc-brand-600); text-decoration: none;}
  .pc-btn.ghost { background:#fff; border-color:var(--pc-line); color:#111; }
  .pc-btn.ghost:hover { background:#fbfaff; border-color:#d9d3ff; }

  .pc-mood-tag { border: 1px solid var(--pc-line); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 13px; background:#fff; }
  .pc-mood-dot { width:10px; height:10px; border-radius:999px; display:inline-block; border:1px solid rgba(0,0,0,.08); vertical-align:middle; margin-right:8px; }

  /* simple reveal */
  .pc-reveal { opacity:0; transform: translateY(10px); transition: opacity .5s ease, transform .6s ease; }
  .pc-reveal.on { opacity:1; transform: translateY(0); }

/* 반응형 디자인 */
@media (max-width: 480px) {
    .main-container {
        padding: 15px 10px;
    }
    
    .personal-color-banner {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .main-features {
        width: 98%;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .banner-content h2 {
        font-size: 1.8em;
        margin-bottom: 12px;
    }
    
    .banner-content p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 1em;
    }
    
    .card-header h3 {
        font-size: 1.5em;
    }
    
    .ranking-section .section-header h2 {
        font-size: 1.6em;
    }
    
    .ranking-item {
        width: 260px;
        padding: 15px;
    }
    
    .ranking-item img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 360px) {
    .main-container {
        padding: 12px 8px;
    }
    
    .personal-color-banner {
        padding: 18px;
        margin-bottom: 20px;
        border-radius: 20px;
    }
    
    .main-features {
        width: 100%;
        gap: 12px;
    }
    
    .feature-card {
        padding: 18px;
        border-radius: 18px;
    }
    
    .banner-content h2 {
        font-size: 1.6em;
        margin-bottom: 10px;
    }
    
    .banner-content p {
        font-size: 0.95em;
        margin-bottom: 18px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    
    .card-header h3 {
        font-size: 1.4em;
    }
    
    .ranking-section .section-header h2 {
        font-size: 1.5em;
    }
    
    .ranking-item {
        width: 240px;
        padding: 12px;
    }
    
    .ranking-item img {
        width: 80px;
        height: 80px;
    }
}


.matrix-section {
    flex: 1;
    min-width: 400px;
}

.color-matrix-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom right,
            #f8f0ff,
            #e0efff,
            #ffe0f0,
            #fff8e0);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: visible;
    border: 1px solid #ddd;
    min-width: 400px;
}




.axis-label {
    position: absolute;
    font-weight: bold;
    color: #777;
    font-size: 0.9em;
    z-index: 5;
}

.top-label {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.bottom-label {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.left-label {
    left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

.right-label {
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
}

.makeup-products-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    min-width: 400px;
    border-radius: 15px;
}

