  path.line.svgChild {
                            stroke-width: 2 !important;
                            pointer-events: stroke !important;   /* ensures events only fire on stroke, not fill */
                            touch-action: none; 
                      }
                      marker {
                          pointer-events: none;
                        }

                      svg {
                          touch-action: none; /* prevent zoom/scroll on mobile */
                        }
                    ul.nav li:first-child {
                        display: none;
                    }
                    #deleteModeBtn.active {
                      background-color: red;
                      color: white;
                    }
                    svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 100vh; /* avoid overflow on mobile */
}
.hide{
    display:none;
}
@media screen and (max-width: 767px) {
    #mobile_note.hide{
        display:block;
    }
    .mobile-responsive div.color_select {
        width: auto;
    }
    ul.savedPlays li {
        width: 50%;
    }
    .mobile-responsive .container {
        padding: 5px 0 0 0;
    }
    .mobile-responsive .line_label {
        padding: 0 0 10px 0;
        line-height: 0.1;
        max-width: 350px;
    }
    .mobile-responsive span#vball {
        margin: 3px 0 0px;
    }
    .mobile-responsive .allBalls div {
        width: 8%;
        float: left;
        padding: 0 0 0px 0;
        min-width: 30px;
        margin-left: 2px;
    }
    .mobile-responsive .allBalls {
        width: 100%;
        float: none;
        padding: 0px 0 0 0%;
        margin-left: 8px;
        position: relative;
    }
    .mobile-responsive .defensive-images {
        width: 100%;
        float: none;
        display: flow-root;
        margin: auto;
        padding: 0 2%;
    }
    .mobile-responsive .delInfo img {
        max-width: 75px;
        margin-right: 1%;
    }
    .mobile-responsive a#buyNow{
        width: 65px;
        margin-right: 1%;
        padding: 6px 4px 6px 2px;
        margin-bottom: 1px;
    }
    .mobile-responsive .updateBtns a {
        width: auto;
        margin-right: 3px;
        padding: 0px 1% 4px 1%;
        margin-bottom: 1px;
    }
    .mobile-responsive .updateBtns {
        width: auto;
        float: left;
        padding: 0px 0px 0 0;
        display: contents;
    }
    .mobile-responsive .delInfo {
        width: auto;
        float: left;
        display: contents;
    }
    .mobile-responsive .updateBtns + .icons {
        display: inline-block;
        width: 100%;
    }
    .mobile-responsive .defensive-images span {
        cursor: pointer;
        padding: 1px 0;
        float: left;
        width: auto;
        max-width: 32px;
    }
ul.nav.active {
        width: 100%;
}
ul.nav.active li {
        width: 100%;
        text-align: left;
}
ul.nav.active li a {
        color: black;
        /* border: none; */
        padding: 10px;
        border-bottom: 2px solid;
}
ul.nav li a.navactive {
        border-bottom: 2px solid #ffff4f;
}
    .playdesigner + .wrapperFront.mobile-responsive {
        transform: scale(1);
    }
    .mobile-responsive .tools span {
        margin: 13px 1px 0;
        max-width: 37px;
    }
    .mobile-responsive .line_type {
        padding: 4px 0 4px 4px;
    }
    .mobile-responsive .line_type span {
        margin: 0 4px 0 0;
    }
    .mobile-responsive .line_label div.lineType {
        width: 75px;
    }
    .mobile-responsive .updateBtns a {
        font-size: 12px;
    }
    div#savePage table,table {
        width: 100%;
        max-width:100%;
    }
    .mobile-responsive .allBalls div span,
    .mobile-responsive .allBalls div span#qb {
        width: 30px;
        height: 30px;
    }
    .mobile-responsive .allBalls div span#qb {
        font-size: 12px;
        padding: 6px 0 0 5px;
    }
    img.lightboxClose {
    right: 3px;
    top: 0;
    }
    .mobile-responsive  #vball img, .mobile-responsive  #hball img {
        max-height: 30px;
        width: auto !important;
    }
    .centerBlock{
        max-width:100%;
    }
    #sketch svg {
        background-size: contain;
    }
}
/* Basic styles */
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

/* Hide hamburger button on desktop */
#menuToggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}
@media (max-width: 965px) and (min-width: 767px) {
    .defensive-images {
        position: absolute;
        right: 0;
    }
    .allBalls {
        position: absolute;
        left: -65px;
    }
    div#playSvgwrapper {
        width: calc(100% + 90px);
        position: relative;
        max-width: 860px;
    }
    .header-main a.logoutBtn {
        font-size: 16px;
    }
    ul.print_options li {
        width: 50%;
    }
}
div#savePage.showLoader table, .showLoader table {
        max-width: 90vw;
}
@media (max-width: 550px) {
    .mobile-responsive .updateBtns a {
                font-size: 10px;
        }
    .playTabs a {
        padding: 8px 5px;
        font-size: small;
    }
    ul.savedPlays li {
        height: auto;
    }
    svg {
      touch-action: manipulation; /* Prevents browser gestures */
    }
    .svgChild {
      pointer-events: visiblePainted; /* Only clickable when visible */
    }
    .mobile-responsive .tools span {
        max-width: 32px;
    }
}
/* Mobile styles */
@media (max-width: 767px) {
    div#savePage.showLoader {
        max-width: 100vw;
    }
    ul.print_options li {
        width: 100%;
    }
  .nav {
    display: none; /* hide nav by default */
    flex-direction: column;
    width: 100%;
    background-color: #fff; /* or your header bg */
    position: absolute;
    top: 100%; /* below header */
    left: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 999;
  }

  /* Show nav when active */
  .nav.active {
    display: flex;
  }

  /* Show hamburger */
  #menuToggle {
    display: block;
    color: white;
  }
.header-main a.logoutBtn {
        position: absolute;
        right: 0;
        top: 0;
        padding: 8px;
}
  /* Nav list items - full width */
  .nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }

  .nav li a {
    display: block;
    padding: 12px 0;
  }

  /* Optional: fix header height to avoid overlap */
  .header-main {
    position: relative;
  }
}