/* HungryComposer v5.1 — mobile navigation, typography and viewport fixes.
   Desktop layouts remain owned by the original page styles. */
@media (max-width: 780px) {
  html { scroll-padding-top: 112px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

  /* The previous horizontal header strips concealed important destinations. */
  body.hc-mobile-ready header nav.nav,
  body.hc-mobile-ready header nav.navlinks { display: none !important; }
  header .topbar, header .header-inner { row-gap: 10px; }

  .hc-mobile-dock {
    position: fixed; z-index: 180; inset: auto 0 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px; padding: 6px max(7px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(7px, env(safe-area-inset-right, 0px));
    background: rgba(20, 24, 24, .97); color: #f1ece4;
    border-top: 1px solid rgba(215,183,129,.38);
    box-shadow: 0 -9px 30px rgba(0,0,0,.22);
    backdrop-filter: blur(14px);
    font-family: Inter, Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  }
  .hc-mobile-dock a, .hc-mobile-dock button {
    min-width: 0; min-height: 57px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    padding: 5px 2px; border: 0; border-radius: 9px;
    background: transparent; color: #d2d0c9; text-decoration: none;
    font: 750 12px/1.2 Inter, Pretendard, 'Noto Sans KR', system-ui, sans-serif;
    cursor: pointer;
  }
  .hc-mobile-dock a[aria-current="page"], .hc-mobile-dock button[aria-expanded="true"] {
    color: #f1c889; background: rgba(215,183,129,.13);
  }
  .hc-mobile-dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
  .hc-mobile-dock a:focus-visible, .hc-mobile-dock button:focus-visible,
  .hc-mobile-menu a:focus-visible, .hc-mobile-menu button:focus-visible {
    outline: 2px solid #f1c889; outline-offset: -2px;
  }
  .hc-mobile-menu {
    position: fixed; z-index: 179; inset: 0; display: flex; align-items: flex-end;
    background: rgba(0,0,0,.65); font-family: Inter, Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  }
  .hc-mobile-menu[hidden] { display: none !important; }
  .hc-mobile-menu-panel {
    width: 100%; padding: 24px 20px calc(88px + env(safe-area-inset-bottom, 0px));
    border-radius: 22px 22px 0 0; background: #232728; color: #f5eee1;
    box-shadow: 0 -15px 60px #0008;
  }
  .hc-mobile-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
  .hc-mobile-menu-title { font-size: 21px; font-weight: 850; letter-spacing: -.03em; }
  .hc-mobile-menu-close { min-width: 44px; min-height: 44px; border: 1px solid #77736b; border-radius: 10px; background: #35393a; color: #fff; font-size: 26px; cursor: pointer; }
  .hc-mobile-menu-items { display: grid; gap: 9px; }
  .hc-mobile-menu-items a { display: flex; align-items: center; justify-content: space-between; min-height: 49px; border: 1px solid #625e56; padding: 11px 14px; border-radius: 10px; color: #f0e9de; text-decoration: none; font-weight: 750; font-size: 15px; }
  .hc-mobile-menu-items a span:last-child { color: #e2b978; }

  /* Keep descriptions readable in Korean as well as longer translations. */
  .hero-desc, .hero-lede, .hero .lead, .section-sub, .section-intro,
  .world-body p, .v4-path p, .v4-category p, .feature-info p, .collection p,
  .offer-card p, .way p, .service-card p, .vision-box p,
  .v4-coming p, .section-heading p { font-size: 15px !important; line-height: 1.75 !important; }
  .v4-note, .v4-availability, .offer-note, .offer-disclose,
  .hero-note, .disclosure, .mini .small, .caption, .footer-note,
  .v4-overline, .v4-partner small { font-size: 13px !important; line-height: 1.65 !important; }
  .btn, .cta, .v4-button, .world-body .world-link,
  .v4-extra-link, .collection a, .offer-card a { min-height: 44px; font-size: 14px; }
  .btn, .cta, .v4-button { text-wrap: balance; }

  /* Flex/grid minimum-content widths must never force page-wide panning. */
  .hero-grid > *, .section-head > *, .section-heading > *,
  .v4-grid > *, .v4-audience > *, .v4-path, .world > *,
  .featured > *, .feature-info, .collection-grid > *, .v4-partner,
  .cta-inner > *, .bottom-flex > * { min-width: 0; max-width: 100%; }
  img, iframe { max-width: 100%; }
}

@media (max-width: 690px) {
  body[data-hc-page="index"] .hero h1,
  body[data-hc-page="brands"] .hero h1,
  body[data-hc-page="shop"] .hero h1 { font-size: clamp(35px, 9.5vw, 49px) !important; overflow-wrap: anywhere; }
  body[data-hc-page="index"] .hero-copy { padding-top: 43px; }
  body[data-hc-page="index"] .hero-art { min-height: 275px; height: 290px; }
  body[data-hc-page="index"] .section-head h2,
  body[data-hc-page="index"] .section-title,
  body[data-hc-page="brands"] .section h2 { font-size: clamp(30px, 8vw, 40px) !important; }

  body[data-hc-page="brands"] .rail .wrap { flex-wrap: wrap; white-space: normal; gap: 8px 12px; }
  body[data-hc-page="brands"] .rail span { font-size: 11px; letter-spacing: .08em; }
  body[data-hc-page="brands"] .offer-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-hc-page="brands"] .offer-card { min-width: 0; padding: 22px; }
  body[data-hc-page="brands"] .offer-card p { font-size: 14px !important; }
  body[data-hc-page="brands"] .offer-card .offer-disclose { font-size: 13px !important; }
  body[data-hc-page="brands"] .world-body > div:last-child { max-width: 100%; }
  body[data-hc-page="brands"] .world-body .world-link,
  body[data-hc-page="brands"] .world-body .v4-extra-link { margin-left: 0; margin-right: 7px; white-space: normal; }

  body[data-hc-page="shop"] .feature-info { padding: 25px 21px; }
  body[data-hc-page="shop"] .feature-info .cta,
  body[data-hc-page="shop"] .hero-copy .cta { width: 100%; justify-content: center; }
  body[data-hc-page="shop"] .hero-note { max-width: 100%; }
  html:lang(ja) body[data-hc-page="shop"] :is(.hero p,.section-head p,.feature-info p,.disclosure,.collection p),
  html:lang(zh) body[data-hc-page="shop"] :is(.hero p,.section-head p,.feature-info p,.disclosure,.collection p) { word-break: normal !important; overflow-wrap: anywhere; }
  html:lang(ja) body[data-hc-page="shop"] .section h2,
  html:lang(zh) body[data-hc-page="shop"] .section h2 { word-break: normal !important; overflow-wrap: anywhere; }
  body[data-hc-page="shop"] .featured { grid-template-columns: minmax(0,1fr); }
  body[data-hc-page="shop"] .logo small,
  body[data-hc-page="merch"] .logo small { font-size: 10px; letter-spacing: .06em; }
  body[data-hc-page="merch"] .hero .caption { font-size: 13px !important; }

  body[data-hc-page="collab"] .wrap { width: 100%; max-width: 100%; }
  body[data-hc-page="collab"] .grid,
  body[data-hc-page="collab"] .contact { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-hc-page="collab"] .grid > *,
  body[data-hc-page="collab"] .contact > * { min-width: 0; max-width: 100%; }
  body[data-hc-page="collab"] .card { width: 100%; min-width: 0; padding: 21px 18px; }
  body[data-hc-page="collab"] .card.support-card { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 18px; }
  body[data-hc-page="collab"] .card.support-card .features { grid-template-columns: minmax(0,1fr); }
  body[data-hc-page="collab"] .card h3, body[data-hc-page="collab"] .contact h2 { overflow-wrap: anywhere; }
  body[data-hc-page="collab"] .contact { padding: 22px 18px; }
  body[data-hc-page="collab"] .actions, body[data-hc-page="collab"] .contact-actions { min-width: 0; }
  body[data-hc-page="collab"] .desc, body[data-hc-page="collab"] .features,
  body[data-hc-page="collab"] .section-note { font-size: 15px; line-height: 1.7; }
  body[data-hc-page="collab"] .notice, body[data-hc-page="collab"] .contact .subnote { font-size: 13px; }
  body[data-hc-page="collab"] .modal { max-width: 100%; max-height: calc(100dvh - 30px); overflow-y: auto; }

  body[data-hc-page="music"] .anchor-nav { flex-wrap: wrap; gap: 8px; }
  body[data-hc-page="music"] .studio-teaser > div { min-width: 0; }
  html:lang(ja) body[data-hc-page="music"] :is(.about-lede,.faq-answer,.faq summary,.pf-caption,.studio-teaser-title),
  html:lang(zh) body[data-hc-page="music"] :is(.about-lede,.faq-answer,.faq summary,.pf-caption,.studio-teaser-title) { word-break: normal !important; overflow-wrap: anywhere; }
  body[data-hc-page="music"] .anchor-nav a[href^="./"] { display: none; }
  body[data-hc-page="music"] .anchor-chip { min-height: 42px; display: inline-flex; align-items: center; font-size: 14px; }
  body[data-hc-page="music"] .tagline-animated,
  body[data-hc-page="music"] #tagline-sub,
  body[data-hc-page="music"] .collab-cta-sub,
  body[data-hc-page="music"] .footer-note,
  body[data-hc-page="music"] .identity-pill,
  body[data-hc-page="music"] .studio-teaser-eyebrow { font-size: 13px !important; line-height: 1.65; }
  body[data-hc-page="music"] .album-description,
  body[data-hc-page="music"] .info-text,
  body[data-hc-page="music"] .service-desc,
  body[data-hc-page="music"] .text-muted,
  body[data-hc-page="music"] .artist-identity-desc,
  body[data-hc-page="music"] .pf-caption,
  body[data-hc-page="music"] .use-hero-desc,
  body[data-hc-page="music"] .mood-hint,
  body[data-hc-page="music"] .faq-answer { font-size: 14px !important; line-height: 1.75; }
}

@media (min-width: 781px) {
  .hc-mobile-dock, .hc-mobile-menu { display: none !important; }
}
