/* ==================================================
   먹봇 모바일 전용 CSS V2
   실제 모바일 기기 공통 구조
   세로·가로 동일 배열
================================================== */

/* ==================================================
   1. 모바일 기본값
================================================== */

body.device-mobile{
  min-width:0;
  overflow-x:hidden;
  font-size:16px;

  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body.device-mobile *,
body.device-mobile *::before,
body.device-mobile *::after{
  box-sizing:border-box;
}

body.device-mobile img{
  max-width:100%;
  height:auto;
}

/* 화면 방향과 관계없이 같은 콘텐츠 비율 유지 */
body.device-mobile .container{
  width:calc(100% - 28px);
  max-width:560px;
  margin-left:auto;
  margin-right:auto;
}

body.device-mobile .section{
  padding-top:52px;
  padding-bottom:52px;
}

body.device-mobile .card-panel{
  width:100%;
  min-width:0;
  padding:30px 20px;
  border-radius:26px;
}

body.device-mobile h1{
  font-size:clamp(40px,11vw,58px);
}

body.device-mobile h2{
  font-size:clamp(28px,8vw,40px);
}

body.device-mobile h3{
  font-size:20px;
}

/* ==================================================
   2. Header
================================================== */

body.device-mobile .site-header{
  width:100%;
}

body.device-mobile .site-header__inner{
  width:calc(100% - 32px);
  max-width:none;
  height:72px;

  margin-left:auto;
  margin-right:auto;
}

body.device-mobile .site-logo{
  gap:12px;
}

body.device-mobile .site-logo__image{
  width:50px;
  height:50px;
  min-width:50px;
  flex:0 0 50px;

  border-radius:17px;
}

body.device-mobile .site-logo__text strong{
  font-size:22px;
}

body.device-mobile .site-logo__text span{
  display:none;
}

body.device-mobile .site-header__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* ==================================================
   3. 모바일 메뉴
================================================== */

body.device-mobile .site-nav{
  position:absolute;

  top:78px;
  left:16px;
  right:16px;

  width:auto;
  max-width:none;

  display:none;
  flex-direction:column;
  align-items:stretch;
  gap:8px;

  padding:14px;

  transform:none;

  border:1px solid var(--color-border);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow-lg);

  z-index:1000;
}

body.device-mobile .site-nav.is-open{
  display:flex;
}

body.device-mobile .site-nav a{
  width:100%;
  height:50px;

  display:flex;
  align-items:center;
  justify-content:center;
}

/* ==================================================
   4. Hero
   모든 모바일 기기·방향 공통 구조
================================================== */

body.device-mobile .hero{
  min-height:auto;

  padding-top:110px;
  padding-bottom:60px;
}

body.device-mobile .hero__inner{
  width:calc(100% - 36px);
  max-width:560px;
  min-width:0;
  min-height:auto;

  margin-left:auto;
  margin-right:auto;

  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:34px;

  text-align:center;
}

body.device-mobile .hero__content{
  width:100%;
  min-width:0;
  max-width:100%;

  margin-left:auto;
  margin-right:auto;

  overflow:visible;
}

body.device-mobile .hero__eyebrow{
  margin-left:auto;
  margin-right:auto;
}

/* 모바일 제목 잘림 방지 */
body.device-mobile .hero__title{
  width:100%;
  max-width:100%;

  margin-top:18px;
  margin-bottom:24px;

  font-size:42px;
  line-height:1.15;
  letter-spacing:-.05em;

  white-space:normal;
  word-break:keep-all;
  overflow-wrap:normal;
}

body.device-mobile .hero__title-line{
  display:block;

  width:100%;
  max-width:100%;

  white-space:normal;
}

body.device-mobile .hero__description{
  width:100%;
  max-width:520px;

  margin-left:auto;
  margin-right:auto;

  font-size:18px;
  line-height:1.75;

  white-space:normal;
  word-break:keep-all;
}

body.device-mobile .hero__actions{
  display:flex;
  justify-content:center;

  margin-left:auto;
  margin-right:auto;
  margin-top:32px;
}

/* --------------------------------
   Hero 공통 기준판
-------------------------------- */

body.device-mobile .hero__visual{
  position:relative;

  width:100%;
  max-width:340px;
  min-width:0;
  min-height:0;
  height:auto;

  aspect-ratio:340 / 390;

  margin-left:auto;
  margin-right:auto;

  display:block;
  overflow:visible;
}

/* 노란 배경 원 */
body.device-mobile .hero__visual::before{
  content:"";

  position:absolute;
  z-index:1;

  left:50%;
  top:50%;

  width:100%;
  height:auto;

  aspect-ratio:1 / 1;

  border-radius:50%;

  transform:translate(-50%,-50%);
}

/* Hero 먹봇 */
body.device-mobile .hero__image{
  position:absolute;
  z-index:2;

  left:50%;
  top:50%;
  bottom:auto;

  width:100%;
  min-width:0;
  max-width:none;

  height:auto;
  max-height:none;

  object-fit:contain;
  aspect-ratio:auto;

  transform:translate(-50%,-50%);
}

/* --------------------------------
   말풍선 공통
-------------------------------- */

body.device-mobile .speech{
  position:absolute;
  z-index:4;

  padding:9px 14px;

  font-size:13px;
  line-height:1.2;
  white-space:nowrap;

  pointer-events:none;
}

/* 맛집 데이터 저장 */
body.device-mobile .speech--top{
  top:18px;
  left:0;
  right:auto;
  bottom:auto;

  margin:0;
  transform:none;
}

/* 오늘의 탐험 시작 */
body.device-mobile .speech--middle{
  display:inline-flex;
  visibility:visible;
  opacity:1;

  top:48px;
  right:0;
  left:auto;
  bottom:auto;

  margin:0;
  transform:none;

  z-index:10;
}

/* 탐험 완료 */
body.device-mobile .speech--right{
  right:0;
  bottom:74px;
  left:auto;
  top:auto;

  margin:0;
  transform:none;
}

/* 먹봇 출동 */
body.device-mobile .speech--bottom{
  left:0;
  bottom:74px;
  right:auto;
  top:auto;

  margin:0;
  transform:none;
}

/* ==================================================
   5. About
================================================== */

body.device-mobile .section--about{
  padding-top:52px;
  padding-bottom:52px;
}

body.device-mobile
.section--about
.about-panel{
  width:100%;
  min-width:0;

  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:auto;
  gap:24px;

  padding:28px 20px;

  text-align:center;
}

body.device-mobile
.section--about
.about-panel__visual{
  grid-column:1;
  grid-row:auto;

  min-height:220px;

  display:flex;
  align-items:center;
  justify-content:center;
}

body.device-mobile
.section--about
.about-panel__visual img{
  width:min(70%,205px);
  height:auto;
  max-width:205px;
}

body.device-mobile
.section--about
.about-panel__heading{
  grid-column:1;
  grid-row:auto;

  width:100%;

  text-align:center;
}

body.device-mobile
.section--about
.about-panel__heading h2{
  font-size:clamp(28px,8vw,38px);
  line-height:1.2;
}

body.device-mobile
.section--about
.about-panel__heading
.section-heading__description{
  max-width:520px;

  margin-left:auto;
  margin-right:auto;

  font-size:15px;
  line-height:1.75;
}

/* 기능 카드 2열 × 2행 */
body.device-mobile
.section--about
.feature-list{
  grid-column:1;
  grid-row:auto;

  width:100%;

  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:0;
}

body.device-mobile
.section--about
.feature-card{
  position:relative;

  width:100%;
  min-width:0;
  min-height:130px;

  padding:8px 7px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;

  border-radius:0;
}

/* 왼쪽 열 세로 구분선 */
body.device-mobile
.section--about
.feature-card:nth-child(odd){
  border-right:
    2px solid rgba(67,215,184,.16);
}

/* 첫 번째 행 가로 구분선 */
body.device-mobile
.section--about
.feature-card:nth-child(-n+2){
  border-bottom:
    2px solid rgba(67,215,184,.16);
}

body.device-mobile
.section--about
.feature-card img{
  width:46px;
  height:46px;
  min-width:46px;
  flex:0 0 46px;

  margin:0 0 3px;
}

body.device-mobile
.section--about
.feature-card h3{
  margin:0;

  font-size:14px;
  line-height:1.25;
}

body.device-mobile
.section--about
.feature-card p{
  margin:0;

  font-size:11px;
  line-height:1.4;
}

body.device-mobile
.section--about
.feature-list::before,
body.device-mobile
.section--about
.feature-list::after{
  content:none;
}

/* ==================================================
   6. Channels
================================================== */

body.device-mobile .section--channels{
  padding-top:52px;
  padding-bottom:52px;
}

body.device-mobile
.section--channels
.channels-panel{
  width:100%;
  min-width:0;

  display:flex;
  flex-direction:column;
  align-items:center;

  gap:0;

  padding:30px 18px;

  text-align:center;
}

body.device-mobile
.section--channels
.channels-panel__intro{
  width:100%;
  max-width:none;

  margin:0 auto 30px;

  text-align:center;
}

body.device-mobile
.section--channels
.channels-panel__intro h2{
  margin:0 0 18px;
}

body.device-mobile
.section--channels
.channels-panel__intro p{
  max-width:520px;

  margin-left:auto;
  margin-right:auto;

  line-height:1.8;
}

/* 먹봇 캐릭터 */
body.device-mobile
.section--channels
.channels-panel__mascot{
  width:100%;
  height:76px;

  margin-bottom:-26px;

  position:relative;
  pointer-events:none;
}

body.device-mobile
.section--channels
.channels-panel__mascot img{
  position:absolute;

  left:50%;
  bottom:-25px;

  width:190px;
  max-width:190px;
  height:auto;

  transform:
    translateX(-50%)
    translateY(0)
    scale(1);

  transform-origin:center bottom;

  transition:
  transform .12s ease;
}

/* 채널 카드 1열 × 4행 */
body.device-mobile
.section--channels
.channel-grid{
  width:100%;

  display:grid;
  grid-template-columns:1fr;

  gap:12px;

  margin-top:8px;
}

body.device-mobile
.section--channels
.channel-card{
  width:100%;
  min-width:0;

  min-height:142px;

  padding:20px 14px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:14px;

  border-radius:22px;
}

body.device-mobile
.section--channels
.channel-card img{
  width:60px;
  height:60px;
}

body.device-mobile
.section--channels
.channel-card span{
  min-height:auto;

  font-size:15px;
  line-height:1.25;
}

/* 네이버 블로그 카드와 먹봇 동시 움직임 */
body.device-mobile
.section--channels
.channels-panel.is-blog-pressed
.channels-panel__mascot img{
  transform:
    translateX(-50%)
    translateY(3px)
    scale(.97);
}

/* ==================================================
   7. Pick
================================================== */

body.device-mobile .section--pick{
  padding-top:52px;
  padding-bottom:52px;
}

body.device-mobile
.section--pick
.pick-panel{
  width:100%;
  min-width:0;

  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:auto;

  gap:30px;

  padding:34px 18px;

  border-radius:28px;

  text-align:center;
}

body.device-mobile
.section--pick
.pick-panel__content{
  width:100%;
  min-width:0;

  text-align:center;
}

body.device-mobile
.section--pick
.pick-panel__content h2{
  margin:0 0 18px;
}

body.device-mobile
.section--pick
.pick-panel__content p{
  max-width:520px;

  margin-left:auto;
  margin-right:auto;

  line-height:1.78;
}

body.device-mobile
.section--pick
.pick-panel__content
> p:not(.badge){
  margin-bottom:24px;
}

body.device-mobile
.section--pick
.pick-panel__content .button{
  margin-left:auto;
  margin-right:auto;
}

/* Pick 먹봇 캐릭터 */
body.device-mobile
.section--pick
.pick-panel__mascot{
  width:100%;
  min-width:0;
  min-height:250px;

  margin-left:auto;
  margin-right:auto;

  display:flex;
  align-items:center;
  justify-content:center;

  position:relative;
}

body.device-mobile
.section--pick
.pick-panel__mascot::before{
  width:220px;
  height:220px;

  left:50%;

  transform:translateX(-50%);
}

body.device-mobile
.section--pick
.pick-panel__mascot img{
  width:245px;
  max-width:245px;
  height:auto;
}

/* 상품 카드 2열 × 2행 */
body.device-mobile
.section--pick
.product-grid{
  width:100%;
  min-width:0;

  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:12px;

  margin-left:auto;
  margin-right:auto;
}

body.device-mobile
.section--pick
.product-card{
  width:100%;
  min-width:0;

  height:auto;
  min-height:0;

  aspect-ratio:1 / 1;

  padding:16px 10px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  gap:12px;

  border-radius:22px;

  overflow:hidden;
}

body.device-mobile
.section--pick
.product-card img{
  flex:0 0 auto;
}

body.device-mobile
.section--pick
.product-card span{
  font-size:15px;
  line-height:1.25;
}

body.device-mobile
.section--pick
.product-grid__soon{
  grid-column:1 / -1;

  margin-top:4px;

  font-size:14px;
  text-align:center;
}

/* ==================================================
   8. Contact
================================================== */

body.device-mobile .section--contact{
  padding-top:52px;
  padding-bottom:64px;
}

body.device-mobile
.section--contact
.contact-panel{
  width:100%;
  min-width:0;

  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:auto;

  gap:26px;

  padding:30px 18px;

  text-align:center;
}

body.device-mobile
.section--contact
.contact-panel__content{
  width:100%;
  min-width:0;

  text-align:center;
}

body.device-mobile
.section--contact
.contact-panel__content h2{
  margin:0 0 14px;
}

body.device-mobile
.section--contact
.contact-panel__content p{
  max-width:520px;

  margin-left:auto;
  margin-right:auto;

  line-height:1.75;
}

/* Contact 먹봇 캐릭터 */
body.device-mobile
.section--contact
.contact-panel__mascot{
  width:240px;
  min-width:0;
  min-height:220px;

  margin-left:auto;
  margin-right:auto;

  display:flex;
  align-items:center;
  justify-content:center;
}

body.device-mobile
.section--contact
.contact-panel__mascot img{
  width:240px;
  max-width:240px;
  height:auto;
}

/* 문의 카드 1열 × 2행 */
body.device-mobile
.section--contact
.contact-list{
  width:100%;
  min-width:0;

  display:grid;
  grid-template-columns:1fr;

  gap:12px;

  margin-left:auto;
  margin-right:auto;
}

body.device-mobile
.section--contact
.contact-card{
  width:100%;
  min-width:0;

  padding:18px 14px;

  display:flex;
  align-items:center;
  justify-content:flex-start;

  gap:14px;

  border-radius:20px;

  text-align:left;
}

body.device-mobile
.section--contact
.contact-card img{
  width:44px;
  height:44px;
  flex:0 0 44px;
}

body.device-mobile
.section--contact
.contact-card span{
  min-width:0;
}

body.device-mobile
.section--contact
.contact-card strong{
  font-size:16px;
  line-height:1.25;
}

body.device-mobile
.section--contact
.contact-card small{
  font-size:13px;
  line-height:1.35;

  overflow-wrap:anywhere;
}

/* ==================================================
   9. Footer
================================================== */

body.device-mobile .site-footer{
  padding-top:46px;
  padding-bottom:28px;
}

body.device-mobile .site-footer__inner{
  width:calc(100% - 48px);
  max-width:560px;

  margin-left:auto;
  margin-right:auto;

  display:grid;
  grid-template-columns:1fr;

  gap:26px;

  text-align:center;
}

body.device-mobile .footer-logo{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:12px;
}

body.device-mobile .footer-logo strong{
  font-size:20px;
}

body.device-mobile .footer-social{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:10px;
}

body.device-mobile .footer-legal{
  width:100%;
}

body.device-mobile .footer-disclosure{
  margin-top:2px;
  padding-top:18px;
}

body.device-mobile .footer-disclosure__content{
  padding:16px;

  font-size:12px;
  line-height:1.7;
}

body.device-mobile
.footer-disclosure__content span{
  display:block;
}

body.device-mobile
.footer-disclosure__content
span + span::before{
  content:none;
}

body.device-mobile .site-footer__copyright{
  margin-top:6px;

  font-size:12px;
}

/* ==================================================
   10. 모바일 버튼·카드 터치 상태
================================================== */

body.device-mobile .channel-card,
body.device-mobile .product-card,
body.device-mobile .contact-card,
body.device-mobile .button,
body.device-mobile .site-header__toggle,
body.device-mobile .site-nav a,
body.device-mobile .footer-social a{
  position:relative;

  -webkit-tap-highlight-color:transparent;
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;

  touch-action:manipulation;

  transition:
    transform .12s ease,
    background-color .12s ease,
    border-color .12s ease,
    box-shadow .12s ease,
    color .12s ease;
}

/* 각 대상에 직접 눌림 효과 적용 */
body.device-mobile .channel-card.is-pressed,
body.device-mobile .product-card.is-pressed,
body.device-mobile .contact-card.is-pressed,
body.device-mobile .button.is-pressed,
body.device-mobile .site-header__toggle.is-pressed,
body.device-mobile .site-nav a.is-pressed,
body.device-mobile .footer-social a.is-pressed{
  transform:
    translateY(3px)
    scale(.97) !important;

  box-shadow:
    0 4px 10px rgba(15,23,42,.12) !important;
}

/* 민트색 버튼 */
body.device-mobile .button--primary,
body.device-mobile .site-header__toggle{
  background:var(--color-primary);
  color:#fff;
}

body.device-mobile .button--primary.is-pressed,
body.device-mobile .site-header__toggle.is-pressed{
  background:var(--color-primary-dark) !important;
  color:#fff;
}

/* 채널 카드 */
body.device-mobile .channel-card{
  background:#fff;
  color:var(--color-text);
  border-color:rgba(67,215,184,.14);
}

body.device-mobile .channel-card.is-pressed{
  background:#F0FFFB !important;
  border-color:rgba(67,215,184,.34) !important;
}

/* 상품 카드 */
body.device-mobile .product-card{
  background:rgba(255,255,255,.86);
  color:var(--color-text);
  border-color:rgba(67,215,184,.18);
}

body.device-mobile .product-card.is-pressed{
  background:#fff !important;
  border-color:rgba(67,215,184,.34) !important;
}

/* 문의 카드 */
body.device-mobile .contact-card{
  background:#fff;
  color:var(--color-text);
  border-color:rgba(67,215,184,.16);
}

body.device-mobile .contact-card.is-pressed{
  background:#F0FFFB !important;
  border-color:rgba(67,215,184,.34) !important;
}

/* 모바일 메뉴 */
body.device-mobile .site-nav a{
  background:transparent;
  color:var(--color-text);
}

body.device-mobile .site-nav a.is-active{
  background:rgba(67,215,184,.12);
  color:var(--color-primary-dark);
}

body.device-mobile .site-nav a.is-pressed{
  background:rgba(67,215,184,.18) !important;
  color:var(--color-primary-dark);
}

/* 모바일에서 PC hover 이동 제거 */
body.device-mobile .channel-card:hover:not(.is-pressed),
body.device-mobile .product-card:hover:not(.is-pressed),
body.device-mobile .contact-card:hover:not(.is-pressed),
body.device-mobile .footer-social a:hover:not(.is-pressed){
  transform:none !important;
}

/* 내부 텍스트 색상 유지 */
body.device-mobile .site-nav a.is-pressed *,
body.device-mobile .button--primary.is-pressed *,
body.device-mobile .site-header__toggle.is-pressed *{
  color:inherit;
}

/* 카드 이미지 드래그 방지 */
body.device-mobile .channel-card img,
body.device-mobile .product-card img,
body.device-mobile .contact-card img{
  -webkit-user-drag:none;
  pointer-events:none;
}

/* ==================================================
   12. 모바일 합성 레이어·잔상 방지
================================================== */

body.device-mobile .card-panel{
  background:rgba(255,255,255,.96);

  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

body.device-mobile .channel-card,
body.device-mobile .product-card,
body.device-mobile .contact-card{
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;

  transform-origin:center center;
}

body.device-mobile .contact-panel{
  isolation:isolate;
}

body.device-mobile .contact-list{
  isolation:isolate;
}

body.device-mobile .contact-card{
  overflow:hidden;
}
