/* AOW V11.12 — game-style mobile navigation drawer.
   Preserves all routes and visibility logic while matching the in-game menu language. */
body.aow-masters-theme .portal-menu-panel {
  position:relative;
  box-sizing:border-box!important;
  width:min(452px, 100%)!important;
  height:100vh!important;
  height:100dvh!important;
  max-height:100dvh!important;
  padding:16px 18px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:14px;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  background:
    linear-gradient(180deg, rgba(18,45,47,.95) 0%, rgba(8,21,24,.98) 100%),
    repeating-linear-gradient(-63deg, rgba(147,195,196,.055) 0 3px, transparent 3px 9px),
    radial-gradient(circle at 22% 0%, rgba(93,168,169,.14) 0 22%, transparent 38%);
  border-left:1px solid #5f989a!important;
  box-shadow:inset 0 0 0 1px rgba(92,138,140,.26), inset 5px 0 0 rgba(118,206,208,.13), -26px 0 72px rgba(0,0,0,.62)!important;
}
body.aow-masters-theme .portal-menu-panel::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.05), transparent 22%, transparent 78%, rgba(0,0,0,.2));
  mix-blend-mode:screen;
}
body.aow-masters-theme .portal-menu-head,
body.aow-masters-theme .portal-menu-section-shell,
body.aow-masters-theme .portal-menu-account-shell {
  position:relative;
  z-index:1;
}
body.aow-masters-theme .portal-menu-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) 48px;
  gap:12px;
  align-items:start;
  padding:10px 12px 12px!important;
  background:
    linear-gradient(180deg, rgba(20,52,56,.96) 0%, rgba(14,33,36,.96) 100%),
    repeating-linear-gradient(-54deg, rgba(130,184,186,.12) 0 2px, transparent 2px 8px);
  border:1px solid #467a7e!important;
  box-shadow:inset 0 0 0 1px rgba(128,204,204,.08), inset 0 -1px 0 rgba(151,224,225,.12);
}
body.aow-masters-theme .portal-menu-head-inner {min-width:0;}
body.aow-masters-theme .portal-menu-head-meta {
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  align-items:center;
  margin-bottom:6px;
}
body.aow-masters-theme .portal-menu-head .eyebrow,
body.aow-masters-theme .portal-menu-subtitle,
body.aow-masters-theme .portal-menu-section-shell {
  display:flex;
  flex:1 1 auto;
  min-height:0;
  flex-direction:column;
}
body.aow-masters-theme .portal-menu-account-shell {
  flex:0 0 auto;
}

body.aow-masters-theme .portal-menu-section-title,
body.aow-masters-theme .portal-menu-account-label {
  font-family:var(--aow-heading)!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
  line-height:1.05!important;
  text-transform:uppercase!important;
}
body.aow-masters-theme .portal-menu-head .eyebrow {
  margin:0!important;
  color:#97d7d8!important;
  font-size:17px!important;
}
body.aow-masters-theme .portal-menu-subtitle {
  color:#b7f1f2!important;
  font-size:16px!important;
  opacity:.84;
}
body.aow-masters-theme .portal-menu-head strong {
  display:block;
  margin:0;
  color:#f5ffff!important;
  text-shadow:0 1px 0 rgba(0,0,0,.45);
  font-size:clamp(25px,6vw,32px)!important;
  line-height:1.02;
  letter-spacing:.055em!important;
  overflow-wrap:anywhere;
}
body.aow-masters-theme .portal-menu-head .menu-close {
  align-self:start;
  width:48px!important;
  height:48px!important;
  display:grid;
  place-items:center;
  padding:0!important;
  color:#f3ffff!important;
  background:linear-gradient(180deg,#16383b 0%, #10282b 100%)!important;
  border:1px solid #5f9699!important;
  border-radius:2px!important;
  box-shadow:inset 0 0 0 1px rgba(133,210,210,.08);
  font-size:28px!important;
  line-height:1!important;
}
body.aow-masters-theme .portal-menu-head .menu-close:hover,
body.aow-masters-theme .portal-menu-head .menu-close:focus-visible {
  background:linear-gradient(180deg,#26595c 0%, #15373a 100%)!important;
  border-color:#a8e2e1!important;
}
body.aow-masters-theme .portal-menu-section-shell,
body.aow-masters-theme .portal-menu-account-shell {
  padding:10px 10px 11px;
  border:1px solid rgba(83,129,131,.92);
  background:linear-gradient(180deg, rgba(7,25,28,.86) 0%, rgba(5,17,19,.96) 100%);
  box-shadow:inset 0 0 0 1px rgba(128,195,196,.05);
}
body.aow-masters-theme .portal-menu-section-shell {
  display:flex;
  flex:1 1 auto;
  min-height:0;
  flex-direction:column;
}
body.aow-masters-theme .portal-menu-account-shell {
  flex:0 0 auto;
}

body.aow-masters-theme .portal-menu-section-title,
body.aow-masters-theme .portal-menu-account-label {
  margin:0 0 10px;
  color:#a6e5e5!important;
  font-size:16px!important;
}
body.aow-masters-theme .portal-menu-links {
  display:flex!important;
  flex:1 1 auto;
  min-height:0;
  flex-direction:column;
  gap:7px;
  margin:0!important;
  padding:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#5f8f92 #09181a;
}
body.aow-masters-theme .portal-menu-links a {
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center!important;
  gap:12px;
  min-height:58px!important;
  box-sizing:border-box;
  padding:7px 11px 7px 18px!important;
  margin:0!important;
  border:1px solid #4e8385!important;
  border-left:0!important;
  border-radius:0!important;
  background:
    linear-gradient(180deg, rgba(18,49,52,.86) 0%, rgba(8,25,28,.96) 100%),
    repeating-linear-gradient(0deg, rgba(116,173,174,.055) 0 2px, transparent 2px 6px);
  box-shadow:inset 0 0 0 1px rgba(145,205,206,.05), inset 0 1px 0 rgba(255,255,255,.04);
  color:#edf8f6!important;
  text-decoration:none!important;
  transition:background-color .15s, border-color .15s, color .15s, transform .15s;
}
body.aow-masters-theme .portal-menu-links a::before {
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  bottom:-1px;
  width:10px;
  background:linear-gradient(180deg, rgba(129,218,219,.22) 0%, rgba(52,126,129,.12) 100%);
  border-right:1px solid rgba(123,205,206,.34);
}
body.aow-masters-theme .portal-menu-links a[hidden] {display:none!important;}
body.aow-masters-theme .portal-menu-links a .portal-menu-label {
  min-width:0;
  color:inherit!important;
  font-family:var(--aow-heading)!important;
  font-size:clamp(23px,5vw,28px)!important;
  font-weight:800!important;
  line-height:1.04!important;
  letter-spacing:.015em!important;
  overflow-wrap:break-word;
}
body.aow-masters-theme .portal-menu-links a .portal-menu-number {
  box-sizing:border-box;
  display:grid!important;
  place-items:center;
  min-width:30px;
  height:30px;
  padding:0 4px;
  border:1px solid rgba(112,173,174,.82);
  background:linear-gradient(180deg,#16393c 0%, #0d2427 100%);
  color:#aae4e4!important;
  font-family:var(--aow-heading)!important;
  font-size:18px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:.08em!important;
}
body.aow-masters-theme .portal-menu-links a .tournament-chat-menu-right {
  display:inline-flex!important;
  align-items:center!important;
  gap:8px;
  margin-left:auto;
}
body.aow-masters-theme .portal-menu-links a:hover,
body.aow-masters-theme .portal-menu-links a:focus-visible {
  background:linear-gradient(180deg, rgba(33,77,81,.92) 0%, rgba(12,39,41,.98) 100%)!important;
  border-color:#7fbbbc!important;
  color:#fff!important;
  transform:translateX(1px);
}
body.aow-masters-theme .portal-menu-links a:hover::before,
body.aow-masters-theme .portal-menu-links a:focus-visible::before {
  background:linear-gradient(180deg, rgba(173,240,241,.48) 0%, rgba(95,162,164,.28) 100%);
}
body.aow-masters-theme .portal-menu-links a[aria-current="page"] {
  background:
    linear-gradient(180deg, rgba(114,196,198,.90) 0%, rgba(72,146,150,.92) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 2px, transparent 2px 5px)!important;
  border-color:#9be8e9!important;
  color:#f9ffff!important;
  box-shadow:inset 0 0 0 1px rgba(219,253,253,.18), 0 0 0 1px rgba(63,111,114,.35);
}
body.aow-masters-theme .portal-menu-links a[aria-current="page"]::before {
  background:linear-gradient(180deg, rgba(220,253,255,.78) 0%, rgba(129,214,216,.45) 100%);
  border-right-color:rgba(232,255,255,.72);
}
body.aow-masters-theme .portal-menu-links a[aria-current="page"] .portal-menu-number {
  color:#f4ffff!important;
  border-color:#d8fdff;
  background:linear-gradient(180deg,#2f6b70 0%, #1f4a4e 100%);
}
body.aow-masters-theme .portal-menu-account {
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:8px;
}
body.aow-masters-theme .portal-menu-account-shell {
  margin-top:0!important;
}
body.aow-masters-theme .portal-menu-account .menu-account-btn {
  box-sizing:border-box;
  display:flex!important;
  width:100%!important;
  min-height:50px!important;
  justify-content:center!important;
  align-items:center!important;
  padding:10px 12px!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:break-word;
  border-radius:0!important;
  font-family:var(--aow-heading)!important;
  font-size:clamp(16px,3.7vw,18px)!important;
  font-weight:800!important;
  letter-spacing:.03em!important;
  line-height:1.08!important;
  box-shadow:inset 0 0 0 1px rgba(160,214,215,.08);
}
body.aow-masters-theme .portal-menu-account .menu-account-btn--connections {
  background:linear-gradient(180deg,#1e4b4f 0%, #13363a 100%)!important;
  color:#ebffff!important;
  border-color:#73c3c4!important;
}
body.aow-masters-theme .portal-menu-account .menu-account-btn--logout {
  background:linear-gradient(180deg,#2b3b3e 0%, #1f2b2e 100%)!important;
  color:#ffe6e2!important;
  border-color:#91c4c7!important;
}
body.aow-masters-theme .portal-menu-account .menu-account-btn:hover,
body.aow-masters-theme .portal-menu-account .menu-account-btn:focus-visible {
  filter:brightness(1.12);
  border-color:#e0ffff!important;
}
body.aow-masters-theme .portal-menu-account .discord-login-btn {
  grid-column:1/-1;
  gap:8px;
}
body.aow-masters-theme .portal-menu-account .discord-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (max-width:380px) {
  body.aow-masters-theme .portal-menu-panel {
    padding:12px 10px 12px!important;
    gap:10px;
  }
  body.aow-masters-theme .portal-menu-head {
    grid-template-columns:minmax(0,1fr) 42px;
    gap:8px;
    padding:8px 9px 9px!important;
  }
  body.aow-masters-theme .portal-menu-head-meta {
    margin-bottom:4px;
    gap:6px 10px;
  }
  body.aow-masters-theme .portal-menu-head strong {
    font-size:22px!important;
  }
  body.aow-masters-theme .portal-menu-head .menu-close {
    width:42px!important;
    height:42px!important;
    font-size:25px!important;
  }
  body.aow-masters-theme .portal-menu-section-shell,
  body.aow-masters-theme .portal-menu-account-shell {
    padding:8px 8px 9px;
  }
  body.aow-masters-theme .portal-menu-section-title,
  body.aow-masters-theme .portal-menu-account-label {
    margin-bottom:6px;
    font-size:16px!important;
  }
  body.aow-masters-theme .portal-menu-links {gap:5px;}
  body.aow-masters-theme .portal-menu-links a {
    min-height:46px!important;
    padding:6px 8px 6px 14px!important;
  }
  body.aow-masters-theme .portal-menu-links a::before {
    width:8px;
  }
  body.aow-masters-theme .portal-menu-links a .portal-menu-label {
    font-size:19px!important;
  }
  body.aow-masters-theme .portal-menu-links a .portal-menu-number {
    min-width:28px;
    height:26px;
    font-size:17px!important;
  }
  body.aow-masters-theme .portal-menu-account {gap:6px;}
  body.aow-masters-theme .portal-menu-account .menu-account-btn {
    min-height:42px!important;
    font-size:16px!important;
    padding:8px 7px!important;
  }
}
@media (max-height:760px) {
  body.aow-masters-theme .portal-menu-panel {
    gap:11px;
    padding-top:12px!important;
    padding-bottom:12px!important;
  }
  body.aow-masters-theme .portal-menu-head,
  body.aow-masters-theme .portal-menu-section-shell,
  body.aow-masters-theme .portal-menu-account-shell {
    padding-top:8px;
    padding-bottom:8px;
  }
  body.aow-masters-theme .portal-menu-section-title,
  body.aow-masters-theme .portal-menu-account-label {
    margin-bottom:8px;
  }
  body.aow-masters-theme .portal-menu-links {gap:6px;}
  body.aow-masters-theme .portal-menu-links a {min-height:50px!important;}
}
@media (prefers-reduced-motion:reduce) {
  body.aow-masters-theme .portal-menu-links a,
  body.aow-masters-theme .portal-menu-head .menu-close,
  body.aow-masters-theme .portal-menu-account .menu-account-btn {
    transition:none!important;
    transform:none!important;
  }
}
