#nav .tab {
  --nav-glass: rgba(10, 15, 27, .65);
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid #b5deef66;
  border-radius: 28px 17px 26px 28px / 28px 14px 24px 28px;
  clip-path: none;
  color: #e3d3ff;
  background: linear-gradient(158deg, #d7edff28, transparent 44%), var(--nav-glass);
  box-shadow: inset 0 1px 1px #fff7, inset 0 -1px 0 #889fc866, 0 4px 12px #02060f42;
  -webkit-backdrop-filter: blur(5px) saturate(1.15);
  backdrop-filter: blur(5px) saturate(1.15);
  text-shadow: 0 1px 3px #060913, 0 0 6px #b481ec65;
  font-size: clamp(11px, 1.05vw, 15px);
  line-height: 1.25;
  text-align: left;
  transform: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
#nav .tab::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #e3d3ff;
  -webkit-mask: var(--nav-icon) center / contain no-repeat;
  mask: var(--nav-icon) center / contain no-repeat;
  clip-path: none;
  transform: none;
  animation: none;
}
#nav .tab::after {
  content: "";
  position: absolute;
  inset: auto 12% 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #87eaffb3, #bfa0ffab, transparent);
  opacity: .38;
  pointer-events: none;
}
#nav [data-sec="home"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10h-6v-6H9v6H3z'/%3E%3C/svg%3E");
}
#nav [data-sec="about"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2'/%3E%3C/svg%3E");
}
#nav [data-sec="game"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10a4 4 0 0 1 4 3l1 6a2 2 0 0 1-3 2l-3-3H8l-3 3a2 2 0 0 1-3-2l1-6a4 4 0 0 1 4-3zm0 3v4m-2-2h4m7-1h.01m3 2h.01'/%3E%3C/svg%3E");
}
#nav [data-sec="social"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4m-6.8 7 6.8 4'/%3E%3C/svg%3E");
}
#nav [data-sec="contact"] {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
#nav #installNavBtn {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v11m-4-4 4 4 4-4M4 16v4h16v-4'/%3E%3C/svg%3E");
}
#nav .broadcast-menu-button {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H9l-5 4zM8 8h8m-8 4h5'/%3E%3C/svg%3E");
}
#nav .home-account-menu {
  --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='9' r='3'/%3E%3Cpath d='M6 18c1-5 11-5 12 0'/%3E%3C/svg%3E");
}
body:not(.arcade-index) #nav .tab.home-account-menu { white-space: nowrap; }
#nav .tab:focus-visible {
  outline: 2px solid #c9f3ff;
  outline-offset: 2px;
}
#nav .tab:is([aria-current="page"], :focus-visible, .nav-pointer-hover) {
  border-color: #a5d6fac2;
  color: #d8fcff;
  background-image: linear-gradient(116deg, #17647c8f, #463183d9 43%, #703674bb 76%, #86498099);
  box-shadow: inset 0 1px 1px #fff8, inset 0 -1px #c89dffc2, 0 4px 13px #080d214a;
}
#nav .tab:is(:focus-visible, .nav-pointer-hover) { transform: translateX(2px); }
#nav .tab.nav-pointer-hover {
  background-image: url('/icons/nav-moustache.webp'), var(--nav-highlight, linear-gradient(116deg, #17647c8f, #463183d9 43%, #703674bb 76%, #86498099));
  background-position: right 12px center, center;
  background-size: 19px auto, 100% 100%;
  background-repeat: no-repeat;
}
@media (width < 1025px), (height <= 400px) {
  #burger { display: flex; }
  #nav {
    position: fixed;
    inset: 0 0 0 auto;
    right: 0;
    width: min(76vw, 270px);
    height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(64px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) 10px;
    gap: 8px;
    visibility: hidden;
    pointer-events: none;
    background: #090d18e8;
    border: 0;
    border-left: 1px solid #a9c9e338;
    box-shadow: -10px 0 26px #080a1377;
    transform: translateX(110%);
    transition: transform .2s ease, visibility .2s;
  }
  #nav.open {
    visibility: visible;
    transform: none;
    pointer-events: auto;
    /* Use one blur only while the drawer is open. Mobile normally disables it. */
    -webkit-backdrop-filter: blur(12px) saturate(.85) !important;
    backdrop-filter: blur(12px) saturate(.85) !important;
  }
  #nav.open > * {
    flex-shrink: 0;
  }
  #nav .tab {
    font-size: 13px;
    padding: 9px 12px;
    min-height: 44px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.menu-open, body.menu-open #app { overflow: hidden; }
}
@media (height <= 400px) {
  #nav { padding-top: calc(56px + env(safe-area-inset-top)); gap: 6px; }
  #nav .tab { min-height: 36px; padding-block: 6px; }
}
@media (max-width: 950px) and (max-height: 520px) and (orientation: landscape) {
  #nav { width: min(48vw, 270px); gap: 6px; padding-top: calc(54px + env(safe-area-inset-top)); }
  #nav .tab { min-height: 40px; }
}
@media (max-width: 600px) and (orientation: portrait) {
  #nav { height: max-content; bottom: auto; }
}
@media (width >= 1025px) and (height > 400px) {
  #nav { max-width: min(182px, 10vw); }
  #nav .tab {
    --nav-glass: #17130ff0;
    --nav-highlight: linear-gradient(116deg, #a873384f, #4b392878 52%, #34564770);
    border-color: #c7a86e87;
    color: #fff2d3;
    background: linear-gradient(155deg, #f0cc801f, transparent 48%), var(--nav-glass);
    box-shadow: inset 0 1px 1px #fff0cb3b, inset 0 -1px 0 #99724565, 0 4px 12px #100b075d;
    text-shadow: 0 1px 3px #14100c;
    overflow: clip;
    padding-inline-end: 35px;
  }
  #nav #installNavBtn { font-size: 12px; letter-spacing: .045em; }
  body:not(.arcade-index) #nav .tab.home-account-menu { font-size: 12px; letter-spacing: .025em; }
  #nav .tab::before { background: currentColor; }
  #nav .tab:is([aria-current="page"], :focus-visible, .nav-pointer-hover) {
    color: #fff8e3;
    border-color: #e5c489c9;
    background-image: var(--nav-highlight);
    box-shadow: inset 0 1px 1px #ffeccc85, inset 0 -1px #ebc18087, 0 4px 13px #15100b66;
  }
  #nav .tab.home-account-menu {
    --nav-glass: #261623f4;
    --nav-highlight: linear-gradient(110deg, #7c375d62, #50304a59);
    color: #ffd2eb;
    border-color: #d586b494;
  }
  #nav .broadcast-menu-button {
    --nav-glass: #261a0df0;
    color: #ffdfa1;
    border-color: #cf954e99;
  }
  #nav .tab.nav-pointer-hover {
    background-image: url('/icons/nav-moustache.webp'), var(--nav-highlight);
    background-position: right 12px center, center;
    background-size: 18px auto, 100% 100%;
    background-repeat: no-repeat;
    text-shadow: 0 1px 3px #14100c, 0 0 4px #ffda8a66;
  }
  #nav .tab:is(.home-account-menu, .broadcast-menu-button):is(:focus-visible, .nav-pointer-hover) {
    color: #fff8e3;
  }
}
#nav .nav-smoke { position: absolute; top: 0; left: 0; display: block; pointer-events: none; z-index: 1; }
#nav.nav-smoke-active .tab::after { opacity: 0; }
#nav.nav-smoke-active [data-sec="game"]::before { animation: nav-game-icon 4.2s ease-in-out -.6s infinite; }
#nav.nav-smoke-active [data-sec="game"].nav-pointer-hover::before { animation-duration: 1.9s; }
@keyframes nav-game-icon {
  0%, 73%, 100% { transform: scale(1); background-color: #ffedc6; opacity: .8; }
  24% { transform: translateY(-1px) scale(1.13); background-color: #ffc45f; opacity: 1; }
  43% { transform: translateY(-1px) scale(1.27); background-color: #fff7d8; opacity: 1; }
}
@media (width >= 1025px) and (height > 400px) and (max-width: 1450px) {
  #nav .tab::before { width: 16px; height: 16px; flex-basis: 16px; }
  #nav .broadcast-menu-new { right: 5px; }
}
@media (width >= 1025px) and (height > 400px) and (max-width: 1599px) {
  #nav { gap: 6px; }
  #nav .tab { padding: 9px 31px 9px 10px; gap: 6px; font-size: 12px; letter-spacing: .065em; }
  #nav #installNavBtn { font-size: 10.5px; letter-spacing: .025em; }
  body:not(.arcade-index) #nav .tab.home-account-menu { font-size: 10.5px; }
  #nav .tab.nav-pointer-hover { background-size: 15px auto, 100% 100%; }
}
@media (width >= 1025px) and (height > 400px) and (max-width: 1320px) and (max-height: 800px) {
  #nav { top: max(78px, 13dvh); gap: 5px; }
  #nav .tab { padding-block: 6px; }
}
@media (width >= 1025px) and (height > 400px) and (max-width: 1320px) {
  #nav .tab { padding-inline: 7px 27px; gap: 5px; font-size: clamp(10px, .83vw, 11px); letter-spacing: .04em; }
  #nav #installNavBtn { font-size: 10px; }
  body:not(.arcade-index) #nav .tab.home-account-menu {
    padding-inline-end: 16px;
    font-size: clamp(9px,.84vw,10.5px);
    letter-spacing: .015em;
  }
  body:not(.arcade-index) #nav .tab.home-account-menu.nav-pointer-hover {
    background-position: right 4px center, center;
    background-size: 10px auto, 100% 100%;
  }
  #nav .tab::before { width: 13px; height: 13px; flex-basis: 13px; }
  #nav .tab.nav-pointer-hover { background-position: right 9px center, center; background-size: 14px auto, 100% 100%; }
}
@supports not ((backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px))) {
  #nav .tab { --nav-glass: rgba(13, 20, 34, .84); }
  #nav.open { background: #101524ee; }
}
@media (prefers-reduced-motion: reduce) {
  #nav, #nav .tab { transition: none; }
  #nav .tab::after { opacity: 0; }
  #nav .tab:is(:focus-visible, .nav-pointer-hover) { transform: none; }
}
