/* The shared shell is intentionally identical on all seven pages. */
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1600px;
  min-height: 88px;
  height: auto;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 78px);
  gap: 16px;
  background: #101f2c;
}
.site-header .wordmark { flex: 0 0 auto; align-self: center; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
.site-header .topnav {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  width: auto;
  gap: clamp(10px, 1.15vw, 19px);
  margin: 0;
  padding: 0;
  border: 0;
}
.site-header .topnav > a,
.site-header .topnav > a:first-child {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 0 !important;
  border: 0;
  background: transparent;
  color: #d4e3eb !important;
  font-size: .875rem !important;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: center;
}
.site-header .topnav > a:hover { color: #ffffff !important; }
.site-header .topnav > a[aria-current="page"] {
  color: #aedaf2 !important;
  border-bottom: 2px solid #aedaf2;
}
.site-header .topnav > .nav-partnership {
  min-height: 44px;
  margin: 0;
  padding: 11px 15px !important;
  border: 1px solid #83a9bf !important;
  border-radius: 6px;
  color: #edf4f5 !important;
  background: #25485e;
}
.site-header .topnav > .nav-partnership:hover { background: #37657f; }
.site-header .topnav > .nav-partnership[aria-current="page"] { border-color: #aedaf2 !important; }
.site-menu-toggle { display: none; }
.site-footer {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 78px) 70px;
  background: #101f2c;
  color: #bed0da;
  font-size: .875rem;
}
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-bottom: 28px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; border-bottom: 1px solid #527188; color: #edf4f5; font-size: .9375rem; }
.site-footer nav a:hover { border-color: #aedaf2; color: #aedaf2; }
.site-footer > div { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; color: #a9bfce; }
.site-footer > div span:last-child { font-size: .875rem; }
/* Apply the same finish to primary actions while preserving each page's layout. */
.brand-primary, .brand-secondary, .shop-button, .game-watch, .merch-all, .watch, .about-links .watch, .brand-community nav a {
  border-radius: 6px;
  min-height: 48px;
  line-height: 1.4;
  text-align: center;
}
.brand-primary:focus-visible, .brand-secondary:focus-visible, .shop-button:focus-visible,
.game-watch:focus-visible, .merch-all:focus-visible, .watch:focus-visible,
.site-menu-toggle:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid #aedaf2;
  outline-offset: 4px;
}
/* Arcade action stays beneath the content and is quiet enough to read over. */
#arcade-battle { opacity: .12; z-index: 1; }
.partnership-page #arcade-battle, .schedule-page #arcade-battle { opacity: .075; }
.site-header, .site-footer, .schedule-page main { position: relative; z-index: 2; }
.schedule-page #pork-stream-preview .homepage { background: radial-gradient(ellipse at 95% 15%,#244660 0,transparent 45%),radial-gradient(ellipse at 0 70%,#212946 0,transparent 45%); }
.battle-toggle { z-index: 6; bottom: max(12px, env(safe-area-inset-bottom)); right: 12px; min-height: 44px; padding: 10px 13px; border-radius: 6px; font: 700 .75rem/1.2 Arial,sans-serif; }
@media (max-width: 1180px) {
  .site-header { min-height: 76px; padding: 15px 20px; gap: 10px; }
  .site-js .site-header .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #83a9bf;
    border-radius: 6px;
    background: #25485e;
    color: #edf4f5;
    font: 700 .875rem/1.2 Arial,sans-serif;
  }
  .site-header .topnav { display: grid !important; flex: 0 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding-top: 8px; }
  .site-js .site-header .topnav { display: none !important; }
  .site-js .site-header.menu-open .topnav {
    display: grid !important;
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 0 4px;
    border-top: 1px solid #345063;
  }
  .site-header .topnav > a,
  .site-header .topnav > a:first-child {
    min-width: 0;
    min-height: 48px;
    padding: 10px 9px !important;
    border-radius: 5px;
    background: #193447;
    white-space: normal;
  }
  .site-header .topnav > a[aria-current="page"] { border: 1px solid #aedaf2; background: #28516a; }
  .site-header .topnav > .nav-partnership { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  #arcade-battle { opacity: .07; }
  .partnership-page #arcade-battle, .schedule-page #arcade-battle { opacity: .055; }
  .site-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .site-header .wordmark { align-self: center; }
  .site-footer { padding: 28px 20px 72px; }
  .site-footer nav { gap: 2px 22px; }
  .site-footer > div { display: flex; flex-direction: column; align-items: flex-start; }
  .schedule-page #pork-stream-preview .homepage { padding: 12px 20px 30px; }
  .schedule-page .battle-toggle { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { #arcade-battle, .battle-toggle { display: none !important; } }
