/* Student dock · Menu B */
@layer bilgiIslands {
  html:not(.dm-teacher-portal) body #bottomNavMobile#bottomNavMobile.dm-nv2-on {
    --menu-muted: #666784;
    --menu-surface: #fff;
    --menu-edge: #d9d3f4;
    background: var(--menu-surface) !important;
    border-color: var(--menu-edge) !important;
    box-shadow: 0 3px 0 var(--menu-edge) !important;
    --menu-active: #3547e8;
    --menu-duel-label: #bf3645;
    --dm-dock-active-bg: transparent;
    --dm-dock-active-edge: transparent;
    overflow: visible !important;
    flex-wrap: nowrap !important;
  }

  html[data-dm-theme="night"]:not(.dm-teacher-portal) #bottomNavMobile#bottomNavMobile.dm-nv2-on {
    --menu-muted: #b6b8cf;
    --menu-surface: #242538;
    --menu-edge: #464561;
    --menu-active: #aab4ff;
    --menu-duel-label: #ff9098;
  }

  html:not(.dm-teacher-portal) #bottomNavMobile#bottomNavMobile.dm-nv2-on .bn-item[data-ekran] {
    flex: 1 1 0 !important;
    overflow: visible !important;
  }

  html:not(.dm-teacher-portal) #bottomNavMobile#bottomNavMobile.dm-nv2-on .bn-item.active {
    box-shadow: none !important;
  }

  html:not(.dm-teacher-portal) body #bottomNavMobile#bottomNavMobile.dm-nv2-on .bn-item .bn-label {
    font-size: clamp(8px, 2.55vw, 12px) !important;
    letter-spacing: 0 !important;
    color: var(--menu-label, var(--menu-muted)) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  #bottomNavMobile.dm-nv2-on .bn-item[data-menu-selected] { --menu-label: var(--menu-active); }
  #bottomNavMobile.dm-nv2-on .bn-item[data-ekran="tab-duel-home"] { --menu-label: var(--menu-duel-label); }
}

/* Use a real SVG child. Legacy dock styles suppress icon pseudo-elements. */
#bottomNavMobile .nav-akis-rozet { display: none !important; }
#bottomNavMobile .dm-nv2 { display: none; }
#bottomNavMobile.dm-nv2-on .bn-icon:has(> .dm-nv2) { position: relative; }
#bottomNavMobile.dm-nv2-on .bn-icon:has(> .dm-nv2) > .dm-nav-art { visibility: hidden; }

#bottomNavMobile.dm-nv2-on .dm-nv2 {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: clamp(32px, 10.5vw, 48px);
  height: 32px;
  border-radius: 999px;
  color: var(--menu-muted);
  pointer-events: none;
}

#bottomNavMobile.dm-nv2-on .dm-nv2 svg { display: block; width: 25px; height: 25px; fill: currentColor; }
#bottomNavMobile.dm-nv2-on .bn-item[data-menu-selected] .dm-nv2 { background: #3547e8; color: white; box-shadow: 0 2px 0 #2836b0; }


#bottomNavMobile.dm-nv2-on .bn-item[data-ekran="tab-duel-home"] .dm-nv2 {
  translate: -50% calc(-50% - 11px);
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  border: 2.5px solid #ffd462;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, transparent 23%, #ffffff35 24% 36%, transparent 37%), #f44d57;
  box-shadow: inset 0 -3.5px 0 #cb273a, 0 0 15px #ffc755c2;
}
#bottomNavMobile.dm-nv2-on .bn-item[data-ekran="tab-duel-home"] .dm-nv2 svg {
  width: 27px;
  height: 27px;
}

#bottomNavMobile.dm-nv2-on .bn-item[data-ekran="tab-duel-home"] .dm-nv2::after {
  content: "";
  position: absolute;
  inset: -6px -5px auto auto;
  width: 11px;
  height: 11px;
  background: #ffbf29;
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
}

#bottomNavMobile.dm-nv2-on .bn-item[data-ekran="tab-duel-home"] .dm-nv2::before {
  content: "";
  position: absolute;
  inset: auto auto -3px -5px;
  width: 8px;
  height: 8px;
  background: #ffe588;
  clip-path: polygon(50% 0%, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0% 50%, 36% 36%);
}

@media (prefers-reduced-motion: no-preference) {
  #bottomNavMobile.dm-nv2-on .bn-item[data-ekran="tab-duel-home"] .dm-nv2::before {
    animation: dm-duel-menu-glint 1.8s .55s ease-in-out infinite alternate;
  }
  #bottomNavMobile.dm-nv2-on .bn-item[data-ekran="tab-duel-home"] .dm-nv2::after {
    animation: dm-duel-menu-glint 1.8s ease-in-out infinite alternate;
  }
}

@keyframes dm-duel-menu-glint {
  from { opacity: .5; scale: .65; }
  to { opacity: 1; scale: 1.28; }
}
