/**
 * LPデモ = 理想形 — 最終レイヤー（LP · 本番アプリ共通）
 * home-demo-mirror / battle-demo-mirror のプレミアム演出を
 * live-stats-density · home-numeric-unify · liver-compact-redesign より優先
 * Load LAST among shared/ui-shell CSS on website + dashboard
 */

@media (max-width: 960px) {
  /* ── シェル背景 · 高級感 ── */
  #liver-shell.mobile-tab-mode .main.liver-main {
    background: #05060c !important;
  }

  #liver-shell.mobile-tab-mode .bg-grid,
  #liver-shell.mobile-tab-mode .bg-glow {
    opacity: 0.35 !important;
  }

  /* ── 下部ナビ — LP同等のグラス演出 ── */
  #liver-shell.mobile-tab-mode .ui-shell-nav--fixed,
  #liver-shell.mobile-tab-mode #mobile-nav.ui-shell-nav {
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  /* ── ギフト — レガシーヘッダー非表示（phone-tab-title のみ） ── */
  #liver-shell.mobile-tab-mode .phone-tab-page--gift .gift-page__head {
    display: none !important;
  }

  /* ── ホーム — phone-demo-home（LPミラー準拠） ── */
  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home,
  .phone--demo .phone-demo-home {
    gap: 0.4rem !important;
    padding: 0.2rem 0.55rem 0.35rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-profile-strip__avatar,
  .phone--demo .phone-demo-home .home-profile-strip__avatar {
    width: 1.75rem !important;
    height: 1.75rem !important;
    font-size: 1.3rem !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.25)) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.2) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-profile-strip__name,
  .phone--demo .phone-demo-home .home-profile-strip__name {
    font-size: 1.44rem !important;
    line-height: 1.15 !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-profile-strip__handle,
  .phone--demo .phone-demo-home .home-profile-strip__handle {
    font-size: 0.96rem !important;
    margin-top: 0.06rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .profile-league-badge--home,
  .phone--demo .phone-demo-home .profile-league-badge--home {
    font-size: 0.88rem !important;
    padding: 0.12rem 0.32rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-row,
  .phone--demo .phone-demo-home .home-stat-row {
    gap: 0.3rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card,
  .phone--demo .phone-demo-home .home-stat-card {
    min-height: 3.1rem !important;
    padding: 0.38rem 0.35rem !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card--diamond,
  .phone--demo .phone-demo-home .home-stat-card--diamond {
    border-color: rgba(59, 130, 246, 0.28) !important;
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.14), rgba(255, 255, 255, 0.02)) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card--pk,
  .phone--demo .phone-demo-home .home-stat-card--pk {
    border-color: rgba(168, 85, 247, 0.28) !important;
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.14), rgba(255, 255, 255, 0.02)) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card--streak,
  .phone--demo .phone-demo-home .home-stat-card--streak {
    border-color: rgba(251, 146, 60, 0.28) !important;
    background: linear-gradient(160deg, rgba(234, 88, 12, 0.12), rgba(255, 255, 255, 0.02)) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card--gifter,
  .phone--demo .phone-demo-home .home-stat-card--gifter {
    border-color: rgba(52, 211, 153, 0.28) !important;
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.12), rgba(255, 255, 255, 0.02)) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card__label,
  .phone--demo .phone-demo-home .home-stat-card__label {
    font-size: 0.84rem !important;
    gap: 0.15rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card__icon,
  .phone--demo .phone-demo-home .home-stat-card__icon {
    font-size: 1.1rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card__value,
  .phone--demo .phone-demo-home .home-stat-card__value {
    margin-top: 0.12rem !important;
    font-size: clamp(1.24rem, 2.8vw, 1.56rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    color: rgba(255, 255, 255, 0.94) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card--diamond .home-stat-card__value,
  .phone--demo .phone-demo-home .home-stat-card--diamond .home-stat-card__value {
    color: #93c5fd !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card--gifter .home-stat-card__value--name,
  .phone--demo .phone-demo-home .home-stat-card--gifter .home-stat-card__value--name {
    font-size: 1.16rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card__sub,
  .phone--demo .phone-demo-home .home-stat-card__sub {
    font-size: 0.8rem !important;
    margin-top: 0.1rem !important;
    text-align: center !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-stat-card--diamond .home-stat-card__value::after,
  .phone--demo .phone-demo-home .home-stat-card--diamond .home-stat-card__value::after {
    content: none !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-block,
  .phone--demo .phone-demo-home .home-block {
    padding: 0.4rem 0.45rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-block__title,
  .phone--demo .phone-demo-home .home-block__title {
    font-size: 1.04rem !important;
    font-weight: 700 !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-pk-summary-grid,
  .phone--demo .phone-demo-home .home-pk-summary-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.28rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-pk-summary__cell,
  .phone--demo .phone-demo-home .home-pk-summary__cell {
    padding: 0.32rem 0.2rem !important;
    border-radius: 8px !important;
    background: rgba(139, 92, 246, 0.08) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-pk-summary__label,
  .phone--demo .phone-demo-home .home-pk-summary__label {
    font-size: 0.76rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-pk-summary__value,
  .phone--demo .phone-demo-home .home-pk-summary__value {
    font-size: 1.16rem !important;
    font-weight: 800 !important;
  }

  /* ホーム TOPギフター — ギフト分析 · 応援してくれた人 と同一の行サイズ。
   *
   * These two rules used to set 0.96rem / 0.88rem, and that is where the home list got its outsized rows:
   * this file loads last and its :is() selector outranks home-gifter-density.css, so the density that file
   * exists to define was silently overridden and the home screen was the one place that escaped the shared
   * sizing. Six stylesheets set a font-size on .home-gifter-row__name — the fix belongs at the rule that
   * WINS, not in a seventh layer on top.
   *
   * People lists read at one size across the product (home TOPギフター · ギフト分析 TOP10 · マイページ
   * 応援してくれた人): a viewer's name should not change size depending on which screen you found them on,
   * and the livers these lists serve have hundreds of contributors to scan. The values match
   * .phone-rank-list--compact in home-gifter-density.css — change them together. */
  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-gifter-row__name,
  .phone--demo .phone-demo-home .home-gifter-row__name {
    font-size: 0.56rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-demo-home .home-gifter-row__diamonds,
  .phone--demo .phone-demo-home .home-gifter-row__diamonds {
    font-size: 0.5rem !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: rgba(147, 197, 253, 0.72) !important;
  }

  /* ── 5タブ共通 — battle-demo-mirror 準拠 ── */
  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-tab-page,
  .phone--demo .phone-tab-page {
    gap: 0.55rem !important;
    padding: 0.15rem 0 0.35rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-tab-title,
  .phone--demo .phone-tab-title {
    font-size: 1.44rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.15rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-section-label,
  .phone--demo .phone-section-label {
    margin: 0.35rem 0 0.25rem !important;
    font-size: 1.04rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    color: rgba(255, 255, 255, 0.45) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-pk-hero,
  .phone--demo .phone-pk-hero {
    padding: 0.65rem 0.5rem !important;
    border-radius: 14px !important;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.08)) !important;
    border: 1px solid rgba(168, 85, 247, 0.22) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-pk-hero__val,
  .phone--demo .phone-pk-hero__val {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #c084fc, #22d3ee) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-pk-hero__label,
  .phone--demo .phone-pk-hero__label {
    font-size: 1.16rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-pk-career,
  .phone--demo .phone-pk-career {
    padding: 0.4rem 0.35rem !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-pk-career__label,
  .phone--demo .phone-pk-career__label {
    font-size: 0.96rem !important;
    margin-bottom: 0.15rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-pk-career__val,
  .phone--demo .phone-pk-career__val {
    font-size: 1.24rem !important;
    font-weight: 700 !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-vs-hero,
  .phone--demo .phone-vs-hero {
    padding: 0.65rem 0.5rem !important;
    border-radius: 14px !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-vs-hero__count,
  .phone--demo .phone-vs-hero__count {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-kpi,
  .phone--demo .phone-kpi {
    padding: 0.55rem 0.6rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-kpi__label,
  .phone--demo .phone-kpi__label {
    font-size: 1.04rem !important;
    margin-bottom: 0.2rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-kpi__val,
  .phone--demo .phone-kpi__val {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-kpi__sub,
  .phone--demo .phone-kpi__sub {
    font-size: 1rem !important;
    margin-top: 0.15rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-stat-row span,
  .phone--demo .phone-stat-row span {
    font-size: 1.3rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-stat-row small,
  .phone--demo .phone-stat-row small {
    font-size: 0.96rem !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .phone-stat-row div,
  .phone--demo .phone-stat-row div {
    padding: 0.4rem 0.25rem !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
  }

  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .pk-recent-expand,
  .phone--demo .pk-recent-expand {
    font-size: 1.16rem !important;
    padding: 0.45rem 0.75rem !important;
  }

  /* ── CAREER RECORD — クリップ防止 ── */
  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .cr-record,
  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .cr-record__spotlight,
  :is(#lp-phone-demo, #liver-shell.mobile-tab-mode) .cr-record__spotlight-val,
  .phone--demo .cr-record,
  .phone--demo .cr-record__spotlight,
  .phone--demo .cr-record__spotlight-val {
    overflow: visible !important;
  }
}
