/* ============================================================================
   nav-shell.css - the site menu for pages with their own stylesheet
   (svs-form.php, states.php, puzzle.php). GENERATED from css/styles-v3.css by
   a script; regenerate rather than editing by hand.
   Those pages add class="wos-shell" to <body>, load i18n.js, ui-v2.js,
   navbar.js and nav-groups.js, and put a .wos-shell-spacer after the <nav>.
   ========================================================================== */
body.wos-shell .navbar,
body.wos-shell .v2-drawer,
body.wos-shell .v2-backdrop {
  /* Dark frost is the default surface — the theme the site is designed in. */
  --bg:            #070b16;
  --background:    #070b16;
  --surface:       rgba(148, 183, 236, 0.07);
  --surface-2:     rgba(148, 183, 236, 0.12);
  --surface-solid: #111a2e;
  --card-bg:       rgba(17, 26, 46, 0.72);
  --text:          #eaf2ff;
  --text-light:    #94a9c9;
  --text-dim:      #6b7f9e;
  --border:        rgba(148, 197, 255, 0.16);
  --border-strong: rgba(148, 197, 255, 0.3);

  --primary:       #38bdf8;
  --primary-dark:  #0ea5e9;
  --primary-light: #7dd3fc;
  --accent:        #a78bfa;
  --accent-soft:   rgba(167, 139, 250, 0.16);
  --ok:            #34d399;
  --warn:          #fbbf24;
  --danger:        #fb7185;

  --input-bg:      rgba(9, 15, 28, 0.85);
  --slot-bg:       rgba(148, 183, 236, 0.08);
  --select-bg:     rgba(9, 15, 28, 0.85);
  --ring:          0 0 0 3px rgba(56, 189, 248, 0.35);

  --shadow-sm: 0 1px 2px rgba(2, 6, 18, 0.5);
  --shadow:    0 2px 10px rgba(2, 6, 18, 0.55);
  --shadow-md: 0 10px 28px rgba(2, 6, 18, 0.6);
  --shadow-lg: 0 24px 60px rgba(2, 6, 18, 0.7);
  --glow:      0 0 24px rgba(56, 189, 248, 0.22);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --nav-h: 56px;
  --pad: 0.85rem;
  --gap: 0.6rem;

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  color-scheme: dark;
}
body.wos-shell .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  height: var(--nav-h);
  padding: 0 0.6rem;
  background: color-mix(in srgb, var(--surface-solid) 82%, transparent);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
body.wos-shell .v2-brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-self: start;
  padding: 0;
}
body.wos-shell .v2-controls {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 0.3rem;
}
body.wos-shell .v2-brand img {
  width: auto;
  height: calc(var(--nav-h) - 26px);
  max-width: 150px;
  object-fit: contain;
  transition: var(--transition);
}
body.wos-shell .v2-brand:hover img {
  transform: scale(1.06);
}
body.wos-shell .nav-hamburger {
  order: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
body.wos-shell .nav-hamburger .bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: var(--transition);
}
body.wos-shell .navbar.nav-open .nav-hamburger .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.wos-shell .navbar.nav-open .nav-hamburger .bar:nth-child(2) {
  opacity: 0;
}
body.wos-shell .navbar.nav-open .nav-hamburger .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
body.wos-shell .v2-drawer {
  grid-column: 2;
  position: fixed;
  top: var(--nav-h);
  bottom: 0;
  right: 0;
  z-index: 999;
  width: min(84vw, 340px);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.75rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface-solid);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.28s;
}
body.wos-shell .navbar.nav-open ~ .v2-drawer {
  transform: translateX(0);
  visibility: visible;
}
body.wos-shell .v2-backdrop {
  position: fixed;
  inset: var(--nav-h) 0 0;
  z-index: 998;
  background: rgba(3, 7, 18, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
body.wos-shell .v2-backdrop.show {
  opacity: 1; visibility: visible;
}
body.wos-shell.v2-locked {
  overflow: hidden;
}
body.wos-shell .v2-drawer-title {
  padding: 0.5rem 0.65rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
body.wos-shell .nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
}
body.wos-shell .nav-item:hover {
  background: var(--surface); color: var(--text);
}
body.wos-shell .nav-item.active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), transparent);
  box-shadow: inset 2px 0 0 var(--primary);
}
body.wos-shell .language-selector,
body.wos-shell .dark-mode-toggle,
body.wos-shell .nav-hamburger,
body.wos-shell #globalSettingsBtn {
  flex: 0 0 auto;
}
body.wos-shell .dark-mode-toggle {
  display: flex; align-items: center;
}
body.wos-shell #globalSettingsBtn {
  min-width: 40px; min-height: 40px; color: var(--text-light) !important;
}
@media (max-width: 430px) {
body.wos-shell .navbar {
  gap: 0.15rem; padding: 0 0.35rem;
}
body.wos-shell .v2-brand img {
  height: calc(var(--nav-h) - 28px); max-width: 118px;
}
body.wos-shell .dropdown-toggle {
  padding: 0.3rem 0.35rem;
}
body.wos-shell .switch {
  width: 44px; height: 26px;
}
body.wos-shell .slider::before {
  width: 18px; height: 18px;
}
body.wos-shell .switch input:checked + .slider::before {
  transform: translateX(18px);
}
body.wos-shell #globalSettingsBtn {
  padding: 0 0.15rem !important;
}
}
body.wos-shell .switch {
  position: relative; display: inline-block; width: 52px; height: 30px; cursor: pointer;
}
body.wos-shell .switch input {
  opacity: 0; width: 0; height: 0;
}
body.wos-shell .slider {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: var(--transition);
}
body.wos-shell .slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transition: var(--transition);
}
body.wos-shell .switch input:checked + .slider::before {
  transform: translateX(22px);
}
body.wos-shell .slider .sun-icon,
body.wos-shell .slider .moon-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  color: var(--text-light);
  pointer-events: none;
}
body.wos-shell .slider .sun-icon {
  left: 8px;
}
body.wos-shell .slider .moon-icon {
  right: 8px;
}
body.wos-shell .dropdown {
  position: relative;
}
body.wos-shell .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 40px;
  min-width: 44px;
  padding: 0.3rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}
body.wos-shell .flag-icon {
  width: 22px; height: 16px; border-radius: 3px; object-fit: cover; display: block;
}
body.wos-shell .caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-light);
}
body.wos-shell .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1100;
  display: none;
  min-width: 190px;
  padding: 0.35rem;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
body.wos-shell .dropdown-menu.show {
  display: block;
}
body.wos-shell .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 44px;
  padding: 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
}
body.wos-shell .dropdown-item:hover {
  background: var(--surface); filter: none;
}
body.wos-shell .v2-drawer.grouped .nav-ico {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
}
body.wos-shell .v2-drawer.grouped .nav-ico-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
body.wos-shell .v2-drawer.grouped .nav-group-toggle {
  font: inherit;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
}
@media (max-width: 1023px) {
body.wos-shell .v2-drawer.grouped .nav-plan {
  order: -1;
  margin-bottom: 0.4rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(167, 139, 250, 0.14));
  border: 1px solid var(--border-strong);
}
body.wos-shell .v2-drawer.grouped .nav-group-toggle {
  width: 100%;
  min-height: 0;
  padding: 0.8rem 0.65rem 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  pointer-events: none;
}
body.wos-shell .v2-drawer.grouped .nav-group-toggle .fas {
  display: none;
}
body.wos-shell .v2-drawer.grouped .nav-group-menu {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem;
}
body.wos-shell .v2-drawer.grouped .nav-group[data-group="alliance"] .nav-group-menu {
  grid-template-columns: minmax(0, 1fr);
}
body.wos-shell .v2-drawer.grouped .nav-group-menu .nav-item {
  min-height: 44px; padding: 0 0.55rem; font-size: 0.92rem;
}
}
@media (min-width: 1024px) {
body.wos-shell .v2-drawer.as-row.grouped {
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
  gap: 0.25rem;
}
body.wos-shell .v2-drawer.grouped > .nav-item,
body.wos-shell .v2-drawer.grouped .nav-group-toggle {
  gap: 0.45rem;
  padding: 0 0.8rem;
  font-size: 0.86rem;
}
body.wos-shell .v2-drawer.grouped .nav-group {
  position: relative;
}
body.wos-shell .v2-drawer.grouped .nav-caret {
  font-size: 0.6rem; opacity: 0.7; transition: transform 0.2s;
}
body.wos-shell .v2-drawer.grouped .nav-group.open .nav-caret {
  transform: rotate(180deg);
}
body.wos-shell .v2-drawer.grouped .nav-group.has-active > .nav-group-toggle,
body.wos-shell .v2-drawer.grouped .nav-group.open > .nav-group-toggle {
  color: var(--text); background: var(--accent-soft);
}
body.wos-shell .v2-drawer.grouped .nav-group-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 1001;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem;
  width: 400px;
  padding: 0.5rem;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}
body.wos-shell .v2-drawer.grouped .nav-group[data-group="alliance"] .nav-group-menu {
  grid-template-columns: minmax(0, 1fr);
  width: 230px;
}
body.wos-shell .v2-drawer.grouped .nav-group.open .nav-group-menu {
  display: grid;
}
body.wos-shell .v2-drawer.grouped .nav-group-menu .nav-item {
  min-height: 44px;
  padding: 0 0.6rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}
body.wos-shell .v2-drawer.grouped .nav-plan {
  color: #04121f;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
body.wos-shell .v2-drawer.grouped .nav-plan:hover {
  color: #04121f; filter: brightness(1.08);
}
body.wos-shell .v2-drawer.grouped .nav-plan .nav-ico-glyph {
  display: none;
}
body.wos-shell .v2-drawer.grouped > .nav-item .nav-ico-glyph {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  background: none;
  border: none;
}
}
@media (min-width: 1024px) {
body.wos-shell .navbar,
body.wos-shell .v2-drawer,
body.wos-shell .v2-backdrop {
  --nav-h: 64px;
}
body.wos-shell .navbar {
  gap: 0.15rem; padding: 0 1.1rem;
}
body.wos-shell .nav-hamburger {
  display: none;
}
body.wos-shell .v2-backdrop {
  display: none;
}
body.wos-shell .v2-brand img {
  height: 38px; max-width: 176px;
}
body.wos-shell .v2-brand {
  margin-right: 0.75rem;
}
body.wos-shell .v2-drawer.as-row {
  position: static;
  grid-column: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: safe center;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  gap: 0.1rem;
  padding: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  background: none;
  border: none;
  box-shadow: none;
  transform: none;
  visibility: visible;
}
body.wos-shell .v2-drawer-title {
  display: none;
}
body.wos-shell .v2-drawer.as-row::-webkit-scrollbar {
  display: none;
}
body.wos-shell .nav-item {
  min-height: 34px;
  padding: 0 0.38rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-pill);
}
body.wos-shell .nav-item.active {
  box-shadow: none; background: var(--accent-soft);
}
}
@media (min-width: 1560px) {
body.wos-shell .nav-item {
  padding: 0 0.5rem;
}
}

/* Undo the pages' older navbar rules. */
body.wos-shell .navbar { flex-wrap: nowrap; justify-content: initial; background: var(--surface-solid); }
body.wos-shell .navbar a, body.wos-shell .v2-drawer a { text-decoration: none; margin: 0; }
body.wos-shell .navbar *, body.wos-shell .v2-drawer * { box-sizing: border-box; }
body.wos-shell .navbar, body.wos-shell .v2-drawer { font-family: var(--font); line-height: 1.4; }
body.wos-shell .navbar button, body.wos-shell .v2-drawer button { font-family: inherit; }
body.wos-shell .v2-drawer.as-row { -webkit-mask-image: none; mask-image: none; }
.wos-shell-spacer { height: 56px; }
@media (min-width: 1024px) { .wos-shell-spacer { height: 64px; } }
