/* Fixed phone dock — Home / Live / Find / Stats. Hidden on wide screens. */
.m-dock {
  display: none;
}

@media (max-width: 860px) {
  body.m-dock-on {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .m-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    min-height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 13, 16, .97);
    border-top: 1px solid rgba(239, 189, 72, .4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .m-dock-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 4px;
    border-radius: 8px;
    color: #b9b0a0;
    text-decoration: none;
    font: 800 13px/1 Barlow, "Segoe UI", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .m-dock-item.on {
    color: #0a0d10;
    background: #efbd48;
  }

  /* Live view stays obvious even when another tab is selected. */
  .m-dock-item.m-dock-live {
    color: #9eefb4;
    letter-spacing: .04em;
    font-size: 12px;
    position: relative;
  }
  .m-dock-item.m-dock-live::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #72db8c;
    box-shadow: 0 0 0 0 rgba(114, 219, 140, .65);
    animation: m-dock-live-ping 1.6s ease-out infinite;
    flex: 0 0 auto;
  }
  @keyframes m-dock-live-ping {
    0% { box-shadow: 0 0 0 0 rgba(114, 219, 140, .55); }
    70% { box-shadow: 0 0 0 8px rgba(114, 219, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(114, 219, 140, 0); }
  }

  .m-dock-item.live-hot.on,
  .m-dock-item.m-dock-live.on {
    color: #062210;
    background: #72db8c;
  }
  .m-dock-item.m-dock-live.on::before {
    background: #062210;
    box-shadow: none;
    animation: none;
  }
}
