/* 편의점 케미 전체 스타일 — 모바일 우선, 밝고 장난기 있는 톤 */
:root {
  --bg: #fff8ef;
  --ink: #2b2622;
  --ink-soft: #6f675e;
  --accent: #ff6b35;
  --accent-deep: #e85420;
  --mint: #2ec4b6;
  --card: #ffffff;
  --line: #f0e6d8;
  --radius: 18px;
  --shadow: 0 4px 16px rgba(43, 38, 34, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.main-content { padding-top: 28px; padding-bottom: 64px; min-height: 60vh; }

a { color: inherit; text-decoration: none; }

/* 헤더 */
.site-header {
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 18px; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: 0.82rem; }
.site-footer .disclaimer { margin-bottom: 12px; }
.footer-nav { display: flex; gap: 14px; margin-bottom: 10px; }
.footer-nav a { text-decoration: underline; text-underline-offset: 3px; }
.copyright { opacity: 0.7; }

/* 공통 요소 */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-big { font-size: 1.1rem; padding: 16px 36px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }

.section-title { font-size: 1.25rem; font-weight: 800; margin: 40px 0 14px; letter-spacing: -0.02em; }
.muted { color: var(--ink-soft); }
.small-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

/* 홈 히어로 */
.hero { text-align: center; padding: 44px 0 28px; }
.hero-emoji { font-size: 3.4rem; display: block; margin-bottom: 10px; }
.hero h1 { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; }
.hero p { color: var(--ink-soft); margin: 12px 0 24px; }
.type-strip { display: flex; justify-content: center; gap: 6px; font-size: 1.5rem; margin-bottom: 26px; flex-wrap: wrap; }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
@media (min-width: 560px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-card { display: block; transition: transform 0.12s ease; }
.feature-card:hover { transform: translateY(-2px); }
.feature-card .f-emoji { font-size: 2rem; }
.feature-card h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.feature-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* 테스트 */
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 8px 0 6px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.25s ease; }
.progress-label { font-size: 0.82rem; color: var(--ink-soft); text-align: right; margin-bottom: 18px; }
.question-text { font-size: 1.3rem; font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; margin-bottom: 20px; white-space: pre-line; }
.option-list { display: grid; gap: 10px; }
.option-btn {
  text-align: left;
  font: inherit;
  font-weight: 600;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  cursor: pointer;
  transition: border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.option-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.option-btn.selected { border-color: var(--accent); background: #fff3ec; }
.test-nav { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; }
.back-link { background: none; border: none; font: inherit; color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.fade-in { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 유형 결과 페이지 */
.result-hero { text-align: center; padding: 30px 24px; }
.result-hero .r-emoji { font-size: 4rem; display: block; }
.result-label { color: var(--ink-soft); font-size: 0.9rem; margin-top: 10px; }
.result-hero h1 { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; margin: 2px 0 6px; }
.result-hero .tagline { color: var(--accent-deep); font-weight: 700; }
.type-desc p { margin-bottom: 12px; }
.pill-list { list-style: none; display: grid; gap: 8px; }
.pill-list li { background: var(--card); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-size: 0.95rem; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .two-col { grid-template-columns: 1fr 1fr; } }
.mini-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.mini-card h3 { font-size: 0.95rem; margin-bottom: 8px; }
.mini-card ul { list-style: none; font-size: 0.9rem; color: var(--ink-soft); display: grid; gap: 6px; }
.signature-box { text-align: center; font-weight: 800; font-size: 1.1rem; background: #fff3ec; border-radius: var(--radius); padding: 18px; }
.friend-card { display: flex; align-items: center; gap: 14px; }
.friend-card .f-emoji { font-size: 2.4rem; }
.friend-card .f-name { font-weight: 800; }
.friend-card .f-note { font-size: 0.88rem; color: var(--ink-soft); }

/* 궁합 */
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.food-btn {
  font: inherit;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.food-btn .food-emoji { font-size: 1.7rem; display: block; }
.food-btn .food-name { font-size: 0.78rem; font-weight: 600; display: block; margin-top: 4px; line-height: 1.3; }
.food-btn:hover { border-color: var(--mint); transform: translateY(-1px); }
.food-btn.selected { border-color: var(--accent); background: #fff3ec; }
.chemi-slots { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.05rem; font-weight: 800; margin: 18px 0 6px; min-height: 40px; }
.chemi-result { text-align: center; padding: 26px 20px; margin-top: 16px; }
.chemi-score { font-size: 3.2rem; font-weight: 900; color: var(--accent-deep); line-height: 1.1; }
.chemi-band { font-size: 1.2rem; font-weight: 800; margin-top: 4px; }
.chemi-comment { color: var(--ink-soft); margin-top: 10px; }
.chemi-extra { font-size: 0.88rem; color: var(--mint); font-weight: 700; margin-top: 8px; }
.chemi-kcal { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; margin-top: 10px; }

/* 도감 */
.combo-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .combo-grid { grid-template-columns: 1fr 1fr; } }
.combo-card { display: block; transition: transform 0.12s ease; }
.combo-card:hover { transform: translateY(-2px); }
.combo-card .c-emoji { font-size: 1.9rem; }
.c-icon { width: 56px; height: 56px; display: block; }
.shelf-icon { width: 48px; height: 48px; display: block; margin: 0 auto; }
.combo-card h3 { margin: 6px 0 2px; }
.combo-card .c-items { font-size: 0.85rem; color: var(--ink-soft); }
.combo-card .c-price { font-size: 0.8rem; color: var(--mint); font-weight: 700; margin-top: 6px; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #fff3ec; color: var(--accent-deep); margin-bottom: 8px; }
.badge.badge-mint { background: #e7f7f5; color: #1d8a80; }
.steps-list { counter-reset: step; list-style: none; display: grid; gap: 10px; margin-top: 8px; }
.steps-list li { background: var(--card); border-radius: 12px; padding: 13px 16px 13px 46px; box-shadow: var(--shadow); position: relative; font-size: 0.95rem; }
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 14px; top: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.caution-box { background: #fff6e5; border: 1px solid #f5dfb2; border-radius: 12px; padding: 12px 16px; font-size: 0.88rem; margin-top: 14px; }

/* 문서 페이지 (소개/개인정보) */
.doc h1 { font-size: 1.5rem; margin-bottom: 16px; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 0.95rem; color: #4a443d; margin-bottom: 8px; }
.doc ul { padding-left: 20px; }

/* 맛 프로필 */
.profile-card { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; padding: 18px 22px; }
@media (min-width: 560px) { .profile-card { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.profile-row { display: flex; align-items: center; justify-content: space-between; }
.profile-label { font-size: 0.88rem; font-weight: 700; color: var(--ink-soft); }
.profile-dots { display: inline-flex; gap: 4px; }
.profile-dots .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.profile-dots .dot.on { background: var(--accent); }

/* 대체 재료 */
.alt-box { background: #e7f7f5; border: 1px solid #bfe8e4; border-radius: 12px; padding: 12px 16px; font-size: 0.88rem; margin-top: 22px; }

/* 테마 칩 */
.theme-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-block;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }

/* 친구 케미 결과 */
.pair-types { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 2.6rem; }
.pair-types .pair-x { font-size: 1.4rem; color: var(--accent); font-weight: 900; }
.pair-names { display: flex; justify-content: center; gap: 18px; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }

/* ===== 편의점 무드 (2026-07 리뉴얼) ===== */

/* 차양 스트라이프 — 헤더 아래 편의점 천막 */
.awning {
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, #ffe3d2 14px 28px);
  border-bottom: 2px solid rgba(43, 38, 34, 0.08);
}

/* 간판 스타일 로고 */
.logo {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 4px 12px;
  box-shadow: 2px 2px 0 rgba(43, 38, 34, 0.85);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.logo:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(43, 38, 34, 0.85); }

/* 24H OPEN 네온 배지 */
.logo-group { display: flex; align-items: center; gap: 10px; }
.neon {
  background: #2b2622;
  color: #7efce7;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  border-radius: 999px;
  text-shadow: 0 0 6px rgba(46, 196, 182, 0.9), 0 0 14px rgba(46, 196, 182, 0.5);
  animation: neonFlicker 6s infinite;
  white-space: nowrap;
}
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  90% { opacity: 1; }
  91% { opacity: 0.4; }
  92% { opacity: 1; }
  94% { opacity: 0.55; }
  95% { opacity: 1; }
}
@media (max-width: 430px) { .neon { display: none; } }

/* 마스코트 (삼각김밥 캐릭터) */
.mascot-wrap { margin: 6px 0 2px; }
.mascot { width: 150px; height: auto; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.4s infinite; }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94%, 96% { transform: scaleY(0.08); } }
.mascot .arm-r { transform-box: fill-box; transform-origin: 12% 50%; animation: wave 5.2s ease-in-out infinite; }
@keyframes wave { 0%, 78%, 100% { transform: rotate(0); } 84% { transform: rotate(20deg); } 90% { transform: rotate(-8deg); } 96% { transform: rotate(14deg); } }

/* 말풍선 */
.bubble {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 rgba(43, 38, 34, 0.12);
  position: relative;
  animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both 0.25s;
}
.bubble::after {
  content: "";
  position: absolute;
  bottom: -8px; left: 50%; margin-left: -6px;
  width: 12px; height: 12px;
  background: #fff;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
@keyframes pop { from { opacity: 0; transform: scale(0.6) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* 유형 캐릭터 진열대 */
.type-strip { gap: 8px; }
.type-strip img { display: block; width: 40px; height: 40px; }
.r-char { width: 150px; height: 150px; display: inline-block; }
.pair-types img { width: 78px; height: 78px; }
.type-strip span {
  display: inline-flex;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 9px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
  animation: rise 0.5s ease both;
}
.type-strip span:hover { transform: translateY(-5px) rotate(4deg); }
.type-strip span:nth-child(1) { animation-delay: 0.05s; }
.type-strip span:nth-child(2) { animation-delay: 0.1s; }
.type-strip span:nth-child(3) { animation-delay: 0.15s; }
.type-strip span:nth-child(4) { animation-delay: 0.2s; }
.type-strip span:nth-child(5) { animation-delay: 0.25s; }
.type-strip span:nth-child(6) { animation-delay: 0.3s; }
.type-strip span:nth-child(7) { animation-delay: 0.35s; }
.type-strip span:nth-child(8) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 특가 스티커 배지 + 카드·버튼 모션 */
.badge.sticker {
  background: var(--accent);
  color: #fff;
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 rgba(43, 38, 34, 0.15);
}
.feature-card:hover { transform: translateY(-3px) rotate(-0.6deg); }
.btn-big:hover { transform: translateY(-2px) rotate(-1deg) scale(1.02); }

/* 이번 주 진열대 */
#shelf { margin-top: 6px; }
.shelf-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 8px; }
.shelf-item {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 10px 4px 12px;
  border-radius: 10px 10px 0 0;
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: center;
}
.shelf-item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.7); }
.shelf-emoji { font-size: 2.1rem; line-height: 1.2; }
.shelf-name { font-size: 0.78rem; font-weight: 700; margin-top: 4px; line-height: 1.25; }
.shelf-price {
  font-size: 0.68rem; font-weight: 800;
  background: var(--mint); color: #fff;
  padding: 2px 8px; border-radius: 999px;
  margin-top: 5px;
}
.shelf-board {
  height: 12px;
  background: linear-gradient(180deg, #e8b98a 0%, #d19a63 60%, #b97f47 100%);
  border-radius: 4px;
  box-shadow: 0 3px 5px rgba(43, 38, 34, 0.15);
  margin-bottom: 16px;
}

/* 꿀조합 월드컵 */
.wc-round { text-align: center; font-weight: 800; font-size: 1.05rem; margin-top: 20px; }
.wc-question { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin: 4px 0 18px; }
.wc-grid { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
@media (min-width: 560px) { .wc-grid { flex-direction: row; align-items: center; } }
.wc-card {
  flex: 1;
  font: inherit;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  cursor: pointer;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.wc-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.wc-card img { width: 88px; height: 88px; }
.wc-name { font-weight: 800; font-size: 1.05rem; }
.wc-items { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.35; }
.wc-vs { text-align: center; font-weight: 900; font-size: 1.3rem; color: var(--accent); flex: none; }

/* 출석 도장판 */
#stamp-card { margin-top: 14px; }
.stamp-card { text-align: center; }
.stamp-card.done { background: #fff8e1; border: 2px solid #f5d76e; }
.stamp-head { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.stamp-head h3 { font-size: 1.05rem; }
.stamp-count { font-size: 0.72rem; font-weight: 700; background: #fff3ec; color: var(--accent-deep); padding: 3px 10px; border-radius: 999px; }
.stamp-sub { font-size: 0.85rem; color: var(--ink-soft); margin: 6px 0 14px; }
.stamp-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.stamp {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem; font-weight: 700;
  background: #fffdf8;
}
.stamp.filled { border: 2px solid var(--accent); background: #fff3ec; font-size: 1.3rem; }
.stamp.just { animation: stampPop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes stampPop { 0% { transform: scale(0); } 70% { transform: scale(1.25) rotate(-8deg); } 100% { transform: scale(1); } }
.stamp-msg { font-size: 0.92rem; margin-bottom: 10px; }

/* 푸터 바코드 */
.barcode {
  width: 120px; height: 32px;
  margin: 18px auto 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 13px, transparent 13px 16px);
  opacity: 0.7;
}
.barcode-num {
  font-family: ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 4px;
  font-size: 0.68rem;
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* 모션 최소화 설정 존중 */
@media (prefers-reduced-motion: reduce) {
  .mascot, .mascot .eye, .mascot .arm-r, .bubble, .type-strip span, .fade-in { animation: none !important; }
  .logo, .type-strip span, .feature-card, .btn, .chip, .combo-card { transition: none !important; }
}

/* 이번 달 행사 꿀조합 */
.deal-card { padding: 20px 22px; }
.deal-combo { display: flex; align-items: center; gap: 14px; }
.deal-combo h3 { margin: 0; }
.deal-headline { font-size: 0.85rem; color: var(--accent-deep); font-weight: 700; margin-top: 2px; }
.deal-list { list-style: none; display: grid; gap: 8px; margin: 14px 0 10px; }
.deal-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.88rem; background: #fffaf2; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.deal-store { font-weight: 800; font-size: 0.72rem; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: 6px; flex: none; }
.deal-item { flex: 1; min-width: 140px; }
.deal-flag { font-weight: 800; font-size: 0.75rem; background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 999px; flex: none; }
.deal-price { font-weight: 700; color: var(--mint); flex: none; }
.deal-note { font-size: 0.85rem; color: var(--ink-soft); }

/* 용어 사전 */
.dict-list { display: grid; gap: 12px; }
.dict-item { padding: 18px 22px; }
.dict-item h2 { font-size: 1.05rem; margin-bottom: 6px; color: var(--accent-deep); }
.dict-item p { font-size: 0.92rem; color: #4a443d; }
.dict-item a { color: var(--mint); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 공유 토스트 */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(8px);
  background: var(--ink); color: #fff; font-size: 0.88rem; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
