/**
 * TikLog UI Shell — 下部5タブ（LPイメージ · サービス画面共通）
 * ソース: shared/ui-shell/tabs.js
 */

.ui-shell-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.12rem;
  background: linear-gradient(180deg, rgba(10, 8, 22, 0.96), rgba(6, 7, 14, 1));
  border-top: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.45);
}

.ui-shell-nav--embedded {
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.45rem 0.35rem calc(0.5rem + env(safe-area-inset-bottom));
}

.ui-shell-nav--fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.45rem 0.35rem calc(0.5rem + env(safe-area-inset-bottom));
  backdrop-filter: blur(14px);
}

.ui-shell-nav__item,
.phone__nav-btn.ui-shell-nav__item,
.mobile-nav__item.ui-shell-nav__item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  padding: 0.32rem 0.1rem 0.28rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.ui-shell-nav__icon,
.phone__nav-btn__icon {
  display: block;
  font-size: 1rem;
  line-height: 1;
  filter: grayscale(0.35);
  opacity: 0.75;
  transition: filter 0.15s, opacity 0.15s, transform 0.15s;
}

.ui-shell-nav__label,
.phone__nav-btn__label {
  display: block;
  width: 100%;
  font-size: 0.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ui-shell-nav__item--active,
.ui-shell-nav__item.is-active,
.mobile-nav__item--active.ui-shell-nav__item {
  color: #fff;
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow:
    0 0 16px rgba(124, 58, 237, 0.38),
    inset 0 -2px 0 rgba(168, 85, 247, 0.55);
}

.ui-shell-nav__item--active .ui-shell-nav__icon,
.ui-shell-nav__item.is-active .ui-shell-nav__icon,
.mobile-nav__item--active.ui-shell-nav__item .ui-shell-nav__icon,
.phone__nav-btn.ui-shell-nav__item--active .ui-shell-nav__icon,
.phone__nav-btn.is-active .ui-shell-nav__icon {
  filter: drop-shadow(0 0 7px rgba(168, 85, 247, 0.7));
  opacity: 1;
  transform: scale(1.1);
}

.ui-shell-nav__item--active .ui-shell-nav__label,
.ui-shell-nav__item.is-active .ui-shell-nav__label,
.mobile-nav__item--active.ui-shell-nav__item .ui-shell-nav__label,
.phone__nav-btn.ui-shell-nav__item--active .ui-shell-nav__label,
.phone__nav-btn.is-active .ui-shell-nav__label {
  color: #e9d5ff;
}

.ui-shell-nav__item:active {
  transform: scale(0.96);
}

/* サービス画面 — mobile-tab-mode 時のみ表示 */
#liver-shell.mobile-tab-mode .ui-shell-nav--fixed {
  display: flex !important;
}

@media (min-width: 961px) {
  .ui-shell-nav--fixed {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .ui-shell-nav--fixed .ui-shell-nav__icon {
    font-size: 1.05rem;
  }

  .ui-shell-nav--fixed .ui-shell-nav__label {
    font-size: 0.44rem;
  }

  .ui-shell-nav--fixed {
    padding: 0.5rem 0.4rem calc(0.55rem + env(safe-area-inset-bottom));
    gap: 0.15rem;
  }
}
