/* Keep the character, stories and controls legible on handheld screens. */
@media (max-width: 880px) {
  html { scroll-snap-type: none !important; scroll-padding-top: calc(80px + env(safe-area-inset-top)); }
  body { overflow-x: clip; }
  #lpv-name { white-space: pre-line; max-width: calc(100vw - 40px); font-size: clamp(26px, 7.5vw, 34px); line-height: 1.45; }
  .lp-page .lp-topbar, .lp-page .lp-topbar.is-scrolled { height: calc(64px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); padding-inline: 12px; }
  .lp-page .lpf-wordmark { font-size: 19px; gap: 6px; flex-shrink: 0; }
  .lp-page .lpf-wordmark svg { width: 26px; }
  .lp-page .lpf-tools { gap: 6px; }
  .lp-page .lpf-voice, .lp-page .lp-back { min-height: 44px; }
  .lp-page .lpf-voice { min-width: 44px; }
  .lp-page .lp-back { display: inline-flex; align-items: center; padding-inline: 10px; }
  .lp-page .lp-cast-tabs { position: relative; inset: auto; transform: none; margin-top: calc(64px + env(safe-area-inset-top)); padding: 10px 12px; gap: 12px; background: #0a1524; }
  .lp-page .lp-cast-tab, .lp-page .lp-cast-tab.is-active { width: 44px; min-height: 44px; flex: 0 0 44px; }
  .lp-page .lp-cast-tab-face { width: 44px; height: 44px; }
  .lp-page .lp-stage { width: 100%; height: auto; min-height: 100svh; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .lp-page .lp-hero { position: relative; inset: auto; width: 100%; height: clamp(340px, 55svh, 500px); transform: none !important; filter: none !important; opacity: 1 !important; }
  .lp-page .lp-info-panel { position: relative; inset: auto; transform: none; margin: 18px 16px 0; padding: 22px 18px; max-width: none; background: linear-gradient(180deg, #0a1524d9, #0a1524f5); border: 1px solid #ffffff26; }
  .lp-page .lp-info-major { font-size: 11px; letter-spacing: .2em; }
  .lp-page .lp-info-major-jp { font-size: 14px; }
  .lp-page .lp-info-name { font-size: clamp(28px, 8vw, 36px); line-height: 1.45; letter-spacing: .04em; overflow-wrap: anywhere; }
  .lp-page .lp-info-name .char { opacity: 1 !important; transform: none !important; filter: none !important; will-change: auto; }
  .lp-page .lp-info-name .lp-name-line { display: block; white-space: nowrap; }
  .lp-page .lp-info-name.is-mobile-luna { font-size: clamp(26px, 7.6vw, 34px); }
  .lp-page .lp-info-kana { font-size: 12px; letter-spacing: .16em; }
  .lp-page .lp-info-catch { font-size: 15px; line-height: 1.85; margin-top: 14px; }
  .lp-page .lp-info-stats { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 14px; padding: 12px 10px; }
  .lp-page .lp-stat-value { white-space: normal; overflow-wrap: anywhere; font-size: 13px; }
  .lp-page .lp-info-tag { font-size: 12px; line-height: 1.5; padding: 5px 9px; }
  .lp-page .lp-info-cta { display: flex; flex-wrap: wrap; gap: 12px; }
  .lp-page .lp-info-btn, .lp-page .lpf-sns a { min-height: 44px; }
  .lp-page .lpf-sns a { min-width: 44px; }
  .lp-page .lp-info-btn { font-size: 13px; letter-spacing: .06em; }
  .lp-page .lp-scenes.lpf-photos { position: relative; inset: auto; transform: none; margin: 10px 12px 0; max-width: calc(100% - 24px); padding: 8px; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
  .lp-page .lpf-photos .lp-scene-tab { flex: 0 0 52px; width: 52px; height: 60px; --tw: 52px; --th: 60px; scroll-snap-align: start; }
  .lp-page .lp-scroll-hint { display: none; }
  .lp-page .lp-section, .lp-page #lp-section-crests { min-height: 0; padding: 48px 20px 56px; scroll-margin-top: 0; }
  .lp-page .lp-section-head { position: relative; inset: auto; margin-bottom: 28px; }
  .lp-page .lp-section-head .en { font-size: 18px; }
  .lp-page .lp-section-head .jp { font-size: 13px; }
  .lp-page .lp-profile-body { font-size: 16px; line-height: 1.95; }
  .lp-page .lp-profile-body p { margin-bottom: 1.2em; }
  .lp-page .lp-qa-q { min-height: 52px; font-size: 15px; line-height: 1.7; }
  .lp-page .lp-qa-a { font-size: 15px; line-height: 1.85; }
  .lp-page .lp-sched-item { min-height: 48px; }
  .lp-page .lp-sched-time { font-size: 13px; }
  .lp-page .lp-sched-label { font-size: 14px; }
  .lp-page .lp-talents-list, .lp-page .lp-fav-card, .lp-page .lp-rel-card { font-size: 14px; line-height: 1.8; }
  .lp-page .lp-relations-table { display: block; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  .lp-page .lp-relations-table th, .lp-page .lp-relations-table td { font-size: 13px; line-height: 1.7; min-width: 90px; padding: 10px 8px; }
  .lp-page .lp-diary-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-page .lp-diary-card { min-width: 0; }
  .lp-page .lp-diary-title { font-size: 16px; line-height: 1.6; }
  .lp-page .fp { padding: 36px 12px 32px; }
  .lp-page .fp-rin { padding-top: 84px; }
  .lp-page .rin-marquee.is-top { top: 32px; }
  .lp-page .fp .lpf-sns a { width: 44px; height: 44px; }
  .lp-page .mako-links a[data-fp-diary], .lp-page .chi-foot a, .lp-page .luna-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .lp-page .lp-footer { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  .lp-page .lpf-wordmark { font-size: 16px; }
  .lp-page .lpf-wordmark svg { width: 23px; }
  .lp-page .lp-back { font-size: 10px; padding-inline: 8px; }
  .lp-page .lp-info-panel { margin-inline: 12px; padding: 20px 14px; }
  .lp-page .lp-info-stats { gap: 9px; }
}
@media (max-width: 880px) and (orientation: landscape) {
  .lp-page .lp-topbar, .lp-page .lp-topbar.is-scrolled { height: calc(56px + env(safe-area-inset-top)); }
  .lp-page .lp-cast-tabs { margin-top: calc(56px + env(safe-area-inset-top)); padding-block: 6px; }
  .lp-page .lp-hero { height: max(120px, calc(100svh - 210px)); }
  .lp-page .lp-info-panel { margin-top: 18px; }
}
