/* Mood mobile dock — 5 равных пунктов, SVG icons, без hub */

.mood-mob-dock {
  display: none;
}

@media (max-width: 1023px) {
  .mood-mob-dock {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: calc(var(--z-rail) + 10);
    display: block;
    pointer-events: none;
    transition:
      transform var(--dur-3, 280ms) var(--ease-out),
      opacity var(--dur-2, 180ms) var(--ease-out);
    will-change: transform;
  }

  body.mood-dock-hidden .mood-mob-dock {
    transform: translate3d(0, calc(100% + 16px + env(safe-area-inset-bottom, 0px)), 0);
    opacity: 0;
    pointer-events: none;
  }

  .mood-mob-dock__bar {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    min-height: var(--mood-tabbar-h);
    padding: 0;
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--border);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.24);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }

  .mood-mob-dock__item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 8px 4px 7px;
    border-radius: 0;
    color: var(--text-dim);
    font-family: var(--font-sans);
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
    transition: color var(--transition), background var(--transition), transform var(--dur-2) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
  }

  .mood-mob-dock__item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 16%;
    bottom: 16%;
    width: 1px;
    background: var(--border);
    pointer-events: none;
  }

  .mood-mob-dock__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: inherit;
    transition: color var(--transition), filter var(--transition);
  }

  .mood-mob-dock__icon svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .mood-mob-dock__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: inherit;
  }

  .mood-mob-dock__item:hover {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--surface-3) 65%, transparent);
  }

  .mood-mob-dock__item:active {
    transform: scale(0.97);
  }

  .mood-mob-dock__item.active {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent-dim) 55%, transparent);
  }

  .mood-mob-dock__item.active .mood-mob-dock__icon {
    color: var(--accent);
    filter: drop-shadow(0 2px 6px var(--accent-glow));
  }

  .mood-mob-dock__item.active .mood-mob-dock__label {
    color: var(--text);
  }

  .mood-mob-dock__item.active::before {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--grad-brand);
  }

  .mood-mob-dock__item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .mood-mob-dock__badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    min-width: 16px;
    padding: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--accent-2);
    font-size: 9px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(243, 83, 107, 0.35);
  }

  .mood-mob-dock__badge[hidden],
  .mood-mob-dock__badge.is-empty {
    display: none;
  }

  body.game-active .mood-mob-dock,
  body.play-page-active .mood-mob-dock {
    display: none;
  }

  body.game-active.mood-layout-v2 .casino-main,
  body.play-page-active.mood-layout-v2 .casino-main {
    padding-bottom: var(--space-6);
  }

  body.game-active.mood-layout-v2 .casino-footer,
  body.play-page-active.mood-layout-v2 .casino-footer {
    margin-bottom: 0;
  }

  body.mood-layout-v2 .casino-main {
    padding-bottom: calc(var(--mood-dock-offset) + var(--space-6));
    transition: padding-bottom var(--dur-3, 280ms) var(--ease-out);
  }

  body.mood-layout-v2 .casino-footer,
  body.mood-layout-v2 .footer-shell {
    margin-bottom: var(--mood-dock-offset);
    transition: margin-bottom var(--dur-3, 280ms) var(--ease-out);
  }

  body.mood-layout-v2.mood-mobile-v3.mood-dock-hidden .casino-main {
    padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  }

  body.mood-layout-v2.mood-mobile-v3.mood-dock-hidden .casino-footer,
  body.mood-layout-v2.mood-mobile-v3.mood-dock-hidden .footer-shell {
    margin-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  }

  @media (prefers-reduced-motion: reduce) {
    .mood-mob-dock,
    body.mood-layout-v2 .casino-main,
    body.mood-layout-v2 .casino-footer,
    body.mood-layout-v2 .footer-shell {
      transition: none;
    }
  }

  body.mob-menu-open .mood-mob-dock {
    z-index: calc(var(--z-rail) + 25);
  }

  body.mood-mobile-v3.mood-guest-active .casino-footer {
    margin-bottom: var(--mood-dock-offset);
  }

  html[data-theme="light"] .mood-mob-dock__bar {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(16, 24, 40, 0.08);
    box-shadow: 0 -6px 24px rgba(16, 24, 40, 0.12);
  }

  html[data-theme="light"] .mood-mob-dock__item.active {
    background: color-mix(in srgb, var(--accent-dim) 70%, #fff);
  }
}
