/* Mobile bottom navigation bar */
@media (max-width: 768px) {
  /* hide original top nav wrapper space */
  header.ascii-wrapper {
    margin-bottom: 10px;
  }

  /* bigger logo */
  header.ascii-wrapper img {
    max-width: 95% !important;
  }

  /* hide bottom nav bar for hamburger */
  .nav-bar {
    display: none !important;
    max-width: 360px;
    border-radius: 40px;
    height: 68px;
    z-index: 3000;
    background: transparent;
    backdrop-filter: none;
    transition: transform 0.35s cubic-bezier(.4,1.4,.4,1), box-shadow 0.25s ease, background 0.25s ease;
  }

  /* buttons fill bar equally */
  .nav-btn {
    flex: 1 1 0;
    height: 46px;
    border-left: 1px solid rgba(255,255,255,0.3);
  }
  .nav-btn:first-child { border-left: none; }

  /* smaller icons */
  .nav-btn img {
    height: 28px !important;
    margin-top: 4px !important;
  }

  /* push main content bottom padding so it isn't hidden behind bar */
  body {
    padding-bottom: 60px;
  }

  /* Hide start button */
  #start-button { display: none; }

  /* Vista taskbar moves to top */
  #vista-taskbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4000;
  }

  /* Add top padding so content isn't hidden */
  body {
    padding-top: 50px;
  }

  /* Stack content vertically */
  .main-content{
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Floating nav behaviour */
  .nav-bar.bounce-up { transform: translate(-50%, -12px); }
  .nav-bar.bounce-down { transform: translate(-50%, 12px); }
  .nav-bar.scrolled {
    background: rgba(14,16,20,0.6);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  }
  .nav-bar.nav-hide {
    transform: translate(-50%, 130%);
    pointer-events: none;
  }

  /* Chat box top-left */
  .chat-box {
    top: 60px !important;
    left: 8px !important;
    bottom: auto !important;
  }
  

  /* Video box directly under panel */
  .desktop-video { display: none !important; }
  .mobile-video {
    display: flex !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: 95%;
    max-width: 600px;
    margin: -18px auto 0;
  }

  /* Mobile Frosted Nav Panel Styles */
  .mobile-nav-panel {
    background: rgba(255, 255, 255, 0.62);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(30,40,60,0.11), 0 1.5px 8px rgba(80,120,180,0.08);
    backdrop-filter: blur(8px) saturate(1.2);
    padding: 3px 0 3px 0;
    margin-top: 8px;
    width: 94vw;
    max-width: 380px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1.2px solid rgba(180,200,255,0.15);
  }
  .mobile-nav-list {
    list-style: none;
    padding: 0 0 0 0;
    margin: 10px 0 0 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-nav-list li {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav-list a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
    height: 46px;
    background: linear-gradient(180deg, #ffffff 0%, #e8f0f8 45%, #c9d3dd 100%);
    color: #b0b0b0;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    border: 2px solid #a0a0a0;
    box-shadow:
      inset 0 1px 1px #fff,
      0 0 5px #ccc;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-family: inherit;
    padding: 0;
  }
  .mobile-nav-list a:hover, .mobile-nav-list a:focus {
    background-color: var(--light-blue);
    color: #223b6b;
    border-color: var(--light-blue);
    box-shadow: 0 0 8px var(--light-blue);
    transform: scale(1.05);
    outline: none;
  }
  .mobile-nav-img {
    height: 32px;
    width: auto;
    margin: 0 0 0 0;
    filter: drop-shadow(0 1px 3px rgba(80,120,180,0.08));
    border-radius: 8px;
    background: transparent;
    transition: box-shadow 0.18s;
    display: block;
  }
  .mobile-nav-list a:hover .mobile-nav-img, .mobile-nav-list a:focus .mobile-nav-img {
    box-shadow: 0 2px 10px rgba(80,120,180,0.13);
    background: rgba(44, 68, 120, 0.07);
  }

  .mobile-nav-list a:active {
    transform: scale(0.95);
    box-shadow: none;
    background-color: var(--light-blue);
    color: white;
    border-color: var(--light-blue);
  }
  /* Optionally add an arrow icon before link text */
  .mobile-nav-list a::before {
    content: '\203A';
    font-size: 1.1em;
    color: #7e8ba8;
    margin-right: 0.65em;
    vertical-align: middle;
  }

/* mobile.css – inside the existing @media (max-width: 768px) { … } */

.frosted-panel{
    width: 95%;
    max-height: 15%;
    max-width: none;
}

.mobile-nav-panel.frosted-panel {
    min-height: 200px !important;
    max-height: 80vh !important;
    height: auto !important;
    overflow-y: auto !important;
    padding-bottom: 0 !important;
    border: 2px solid var(--frosted-border) !important;
    border-radius: 12px !important;
    box-shadow:
      inset -2px -2px 1px rgba(255,255,255,0.7),
      inset 2px 2px 2px rgba(160,160,160,0.5),
      2px 2px 4px rgba(0,0,0,0.1) !important;
    background: var(--frosted-bg) !important;
    margin: 14px auto 0 auto !important;
    width: 95%;
}

.nav-header {
    width: 94%;
    height: 27px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    background: linear-gradient(180deg, #ffffff 0%, #e8f0f8 45%, #c9d3dd 100%) !important;
    border-bottom: 1px solid rgba(200,200,200,0.5) !important;
    font-family: 'Michroma', Verdana, sans-serif;
    font-size: 12px;
    color: #446688;
    user-select: none;
    box-shadow: none;
}

.nav-title {
    font-size: 12px;
    font-family: 'Michroma', Verdana, sans-serif;
    color: #446688;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.nav-close {
    background: white;
    border: 2px outset #e0e0e0;
    border-radius: 6px;
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: bold;
    color: #888;
    line-height: 1;
    cursor: not-allowed;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
    margin-left: 4px;
    opacity: 0.6;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-close:active {
    background-color: var(--light-blue);
    box-shadow: 0 0 6px var(--light-blue);
}


.nav-header {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    background: linear-gradient(180deg, #ffffff 0%, #e8f0f8 45%, #c9d3dd 100%) !important;
    border-bottom: 1px solid rgba(200,200,200,0.5) !important;
    font-family: 'Michroma', Verdana, sans-serif;
    font-size: 14px;
    color: #446688;
    user-select: none;
    box-shadow: none;
}

.nav-title {
    font-size: 14px;
    font-family: 'Michroma', Verdana, sans-serif;
    color: #446688;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.nav-close {
    background: white;
    border: 2px outset #e0e0e0;
    border-radius: 6px;
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: bold;
    color: #888;
    line-height: 1;
    cursor: default;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
    margin-left: 8px;
    opacity: 0.6;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.nav-close:active {
    background-color: var(--light-blue);
    box-shadow: 0 0 6px var(--light-blue);
}


.nav-header {
    height: 27px;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    background: linear-gradient(180deg, #ffffff 0%, #e8f0f8 45%, #c9d3dd 100%);
    border-bottom: 1px solid rgba(200,200,200,0.5);
    font-family: 'Michroma', Verdana, sans-serif;
    font-size: 11px;
    color: #446688;
    user-select: none;
    box-shadow: none;
}

.nav-title {
    font-size: 14px;
    font-family: 'Michroma', Verdana, sans-serif;
    color: #446688;
    letter-spacing: 0.5px;
    margin-right: 10px;
}

.nav-close {
    background: white;
    border: 2px outset #e0e0e0;
    border-radius: 6px;
    width: 16px;
    height: 16px;
    font-size: 12px;
    font-weight: bold;
    color: #888;
    line-height: 1;
    cursor: not-allowed;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #808080;
    margin-left: 4px;
    opacity: 0.6;
    pointer-events: none;
}

.nav-close:active {
    background-color: #d6e6f8;
}