/* ⑤ 우리동네 맛집 — 초록 (시안 y 4859~6023, 높이 1164). 냄비는 아래 구역으로 117px 걸쳐 내려간다 */
.s05 {
  --s05-circle: #06331f;
  --s05-pill: #005030;
  --s05-gold-hi: #f0dd98;
  --s05-sub: #e2e6dc;
  background: radial-gradient(ellipse 62% 75% at 50% 35%, #035030 0%, #024d2e 40%, #023a22 75%, #012014 100%);
  color: var(--c-white);
  text-align: center;
  padding: 86px 0 141px;
  overflow: clip visible; /* 냄비가 아래로 걸치도록 세로는 열어 둔다 */
  z-index: 2;
}
.s05-head { position: relative; z-index: 3; }
.s05-stars { width: 210px; margin: 0 auto; }
.js .s05-stars.in { animation: pop .6s ease-out both, s05-twinkle 2.8s ease-in-out .6s infinite; }
@keyframes s05-twinkle { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35) drop-shadow(0 0 6px rgba(255,230,140,.7)); } }

.s05-title { margin-top: 21px; font-size: 62px; line-height: 73px; letter-spacing: -0.04em; }
.s05-gold { background: linear-gradient(180deg, var(--s05-gold-hi) 0%, var(--c-gold) 45%, #c9a75a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s05-sub { margin-top: 13px; font-size: 21px; line-height: 30px; color: var(--s05-sub); letter-spacing: -0.04em; }

/* 붓 띠 + 월 최고 매출액 */
.s05-best { position: relative; width: 825px; height: 223px; margin: 17px auto 0; background: url(../assets/s05/brush.png) center / 100% 100% no-repeat; }
.s05-best-k { position: absolute; left: 0; right: 0; top: 52px; font-size: 15px; font-weight: 700; color: var(--c-gold); letter-spacing: -0.02em; }
.s05-best-v { position: absolute; left: 0; right: 16px; top: 70px; font-size: 62px; line-height: 80px; color: var(--c-gold); letter-spacing: -0.03em; white-space: nowrap; }
.s05-best-v.is-hit { animation: s05-hit .9s ease-out both; }
@keyframes s05-hit {
  0% { transform: scale(1); text-shadow: none; }
  35% { transform: scale(1.14); text-shadow: 0 0 18px rgba(255,226,140,.9), 0 0 36px rgba(255,200,80,.6); color: #fff1b8; }
  100% { transform: scale(1); text-shadow: 0 0 10px rgba(255,226,140,.35); }
}

/* 매장 카드 슬라이드 */
.s05-slider { position: relative; z-index: 1; margin-top: -12px; }
.s05-track { list-style: none; margin: 0; padding: 0 80px; display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 80px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.s05-track::-webkit-scrollbar { display: none; }
.s05-track:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 4px; }
.s05-card { flex: 0 0 410px; scroll-snap-align: start; background: var(--c-white); color: var(--c-ink); border-radius: 30px 30px 36px 36px; overflow: hidden; }
.js .s05-card.in:nth-child(2n) { animation-delay: .12s; }
.js .s05-card.in:nth-child(3n) { animation-delay: .24s; }
.s05-photo { position: relative; height: 240px; }
.s05-photo img { width: 100%; height: 240px; object-fit: cover; }
.s05-pill { position: absolute; left: 50%; top: 209px; transform: translateX(-50%); width: 164px; height: 52px; border-radius: 26px; background: var(--s05-pill); color: #fff; font-size: 20px; font-weight: 700; line-height: 52px; letter-spacing: -0.04em; }
.s05-body { height: 196px; padding-top: 38px; }
.s05-name { font-size: 17px; line-height: 24px; letter-spacing: -0.04em; color: #222; }
.s05-before { margin-top: 4px; font-size: 16px; line-height: 22px; font-weight: 500; color: #8a8a8a; letter-spacing: -0.04em; }
.s05-before s { text-decoration-thickness: 1.5px; color: #8a8a8a; }
.s05-cap { position: absolute; right: 10px; top: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .38); color: rgba(255, 255, 255, .85); font-size: 11px; line-height: 1.3; letter-spacing: 0; pointer-events: none; }
.s05-amt { margin-top: 2px; font-size: 68px; line-height: 70px; color: var(--c-black); letter-spacing: -0.035em; }
.s05-amt small { font-size: 21px; font-weight: 700; margin-left: 4px; letter-spacing: -0.04em; }

/* 가운데 큰 감자탕 그릇 + 둥근 초록 받침 */
.s05-dish { position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 2; pointer-events: none; }
.s05-circle { position: absolute; left: 50%; top: -508px; width: 1040px; height: 1040px; margin-left: -520px; border-radius: 50%; background: var(--s05-circle); clip-path: inset(0 0 532px 0); }
.s05-pot { position: absolute; left: 50%; top: -518px; width: 1010px; max-width: none; margin-left: -508px; z-index: 1; filter: drop-shadow(0 18px 24px rgba(0,0,0,.35)); }

/* 휴대폰 + 태블릿·작은 노트북(1279px 이하): 머리글 → 월 최고 매출 → 카드 슬라이드 → 받침 위 냄비 순서로 한 줄 쌓기 */
@media (max-width: 1279px) {
  .s05 { padding: 56px 0 0; overflow: hidden; }
  .s05-stars { width: 150px; }
  .s05-title { margin-top: 14px; font-size: clamp(24px, 6.6vw, 40px); line-height: 1.3; padding-inline: 16px; }
  .s05-sub { margin-top: 10px; font-size: 15px; line-height: 1.5; padding-inline: 16px; }
  .s05-best { width: min(100%, 420px); height: auto; aspect-ratio: 825 / 223; margin-top: 14px; }
  .s05-best-k { top: 22%; font-size: 14px; }
  .s05-best-v { top: 33%; right: 8px; font-size: clamp(30px, 9vw, 40px); line-height: 1.3; }
  .s05-slider { margin-top: 8px; }
  .s05-track { padding: 6px 16px 10px; gap: 14px; scroll-padding-inline: 16px; }
  .s05-card { flex-basis: min(76vw, 300px); border-radius: 22px; }
  .s05-photo, .s05-photo img { height: auto; aspect-ratio: 410 / 240; }
  .s05-pill { top: auto; bottom: -19px; width: 120px; height: 38px; line-height: 38px; font-size: 15px; }
  .s05-body { height: auto; padding: 30px 10px 22px; }
  .s05-name { font-size: 14px; }
  .s05-before { font-size: 13px; line-height: 18px; }
  .s05-amt { font-size: 46px; line-height: 1.1; }
  .s05-amt small { font-size: 16px; }
  .s05-dish { position: relative; bottom: auto; height: auto; margin-top: 28px; padding-top: 6%; }
  .s05-circle { left: 50%; top: 0; width: 96vw; height: 96vw; margin-left: -48vw; clip-path: none; }
  .s05-pot { position: relative; left: auto; top: auto; width: 100%; margin: 0 auto -2px; filter: none; }
}

/* 태블릿·작은 노트북(769~1279px): 휴대폰 쌓기 그대로, 글·그림 크기에만 상한을 두고 가운데 정렬 */
@media (min-width: 769px) and (max-width: 1279px) {
  /* 아래 ⑤b는 PC 냄비 자리로 위 여백 180px을 비워 둔다(768 이하만 64px). 이 폭에서는 냄비가 걸치지 않으니
     ⑤를 116px 겹쳐 올려 그 빈 여백을 덮는다 → 냄비 아래~⑤b 제목 간격이 휴대폰과 같은 64px */
  .s05 { padding-top: 72px; margin-bottom: -116px; }
  .s05-stars { width: 180px; }
  .s05-title { max-width: 840px; margin-inline: auto; font-size: clamp(40px, 3.8vw, 46px); }
  .s05-sub { font-size: 18px; }
  .s05-best { width: min(100% - 32px, 600px); margin-top: 18px; }
  .s05-best-k { font-size: 16px; }
  .s05-best-v { font-size: 54px; }
  .s05-slider { margin-top: 12px; }
  .s05-track { padding-inline: 32px; gap: 20px; scroll-padding-inline: 32px; }
  .s05-name { font-size: 15px; }
  .s05-dish { max-width: 720px; margin: 36px auto 0; padding-top: 43px; }
  .s05-circle { width: 96%; height: auto; aspect-ratio: 1; margin-left: -48%; }
}
