/* ==========================================================================
   Design Tokens
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --page-red: #690b2c;
  --accent: #b3124b;
  --accent-soft: rgba(179, 18, 75, .4);
  --panel: rgba(15, 15, 15, .88);
  --panel-soft: rgba(10, 10, 10, .72);
  --text: #f2f2f2;
  --muted: #b8b8b8;
}

/* ==========================================================================
   Base Page
   ========================================================================== */

html,
body {
  background: var(--page-red);
}

body {
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--page-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -12px;
  z-index: 0;
  background:
    linear-gradient(#690b2c, rgba(8, 8, 10, .96)),
    url("/images/background.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.03);
  pointer-events: none;
}


/* ==========================================================================
   Shared Elements
   ========================================================================== */

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  padding: 22px clamp(8px, 4vw, 72px) 80px;
  position: relative;
  z-index: 1;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  margin-bottom: 8px;
}

/* ==========================================================================
   Account Menu
   ========================================================================== */

.account-chip {
  min-height: 46px;
  max-width: min(260px, 44vw);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(179, 18, 75, .35);
  border-radius: 999px;
  background: rgba(18, 18, 18, .88);
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
}

.account-menu-wrap {
  margin-left: auto;
  position: relative;
  z-index: 7;
}

.account-chip:hover {
  background: rgba(10, 10, 10, .96);
}

.account-chip[data-signed-in="true"] {
  cursor: pointer;
  width: 46px;
  max-width: 46px;
  padding-right: 5px;
  gap: 0;
  overflow: hidden;
  transition: max-width .22s ease, width .22s ease, gap .22s ease, padding .22s ease, background .2s ease;
}

.account-chip[data-signed-in="true"]:hover,
.account-chip[data-signed-in="true"]:focus-visible,
.account-chip[data-signed-in="true"][aria-expanded="true"] {
  width: auto;
  max-width: min(260px, 44vw);
  gap: 10px;
  padding-right: 14px;
  transform: none;
}

.account-chip[data-signed-in="true"] #accountLabel {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .22s ease, opacity .16s ease;
}

.account-chip[data-signed-in="true"]:hover #accountLabel,
.account-chip[data-signed-in="true"]:focus-visible #accountLabel,
.account-chip[data-signed-in="true"][aria-expanded="true"] #accountLabel {
  max-width: 180px;
  opacity: 1;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  min-width: 170px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(179, 18, 75, .35);
  border-radius: 14px;
  background: rgba(10, 10, 10, .96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .32);
}

.account-menu[hidden] {
  display: none;
}

.account-menu button {
  width: 100%;
  min-height: 40px;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: .92rem;
}

.account-menu button:hover {
  background: rgba(179, 18, 75, .18);
}

.account-avatar {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(242, 242, 242, .14);
  color: var(--muted);
  overflow: hidden;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   Site Branding And Section Menus
   ========================================================================== */

.site-brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  position: relative;
  min-width: 0;
}

.logo {
  width: 62px;
  height: auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.logo-home,
.site-home {
  display: inline-flex;
  align-items: flex-end;
  color: var(--text);
  text-decoration: none;
  transition: .2s ease;
}

.logo-home:hover,
.site-home:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.splatoon-title-brand {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr minmax(220px, auto);
  align-items: flex-start;
  min-width: 0;
  position: relative;
}

.splatoon-site-stack {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 0;
  flex: 0 0 auto;
  text-decoration: none;
  transition: none;
}

.splatoon-site-stack:hover {
  opacity: 1;
  transform: none;
}

.splatoon-site-main {
  display: inline-flex;
  align-items: flex-end;
}

.splatoon-home-button {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 69px;
  margin-top: -5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .92);
  font-size: .88rem;
  font-weight: 900;
  text-decoration: none;
  transition: .2s ease;
}

.splatoon-home-button i {
  transform: rotate(-90deg);
}

.splatoon-site-stack:hover .splatoon-home-button,
.splatoon-site-stack:focus-visible .splatoon-home-button {
  color: var(--splat-nullbat);
  transform: translateY(-1px);
}

.splatoon-logo-link {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  margin-top: clamp(-176px, -17vw, -64px);
  padding: 0;
  text-decoration: none;
  transform: rotate(-1.5deg);
  filter:
    drop-shadow(0 0 18px rgba(232, 255, 25, .2))
    drop-shadow(0 0 18px rgba(81, 48, 255, .18));
}

@media (max-width: 900px) {
  .splatoon-header-logo {
    width: clamp(240px, 38vw, 340px);
  }
}

.splatoon-header-logo {
  width: clamp(300px, 44vw, 640px);
  height: auto;
  display: block;
}

@media (max-width: 820px) {
  .splatoon-site-main h1,
  .splatoon-home-button span {
    visibility: hidden;
  }

  .splatoon-site-stack {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 0;
    width: auto;
  }

  .splatoon-site-main {
    grid-column: 1;
    grid-row: 1;
  }

  .splatoon-home-button {
    position: absolute;
    left: 70px;
    top: 20px;
    min-height: 28px;
    margin-top: 0;
    margin-left: 0;
    font-size: 1.05rem;
  }
}

.section-menu-wrap {
  position: relative;
}

.site-title-button {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.site-title-button:hover {
  background: transparent;
  opacity: .88;
  transform: none;
}

.site-title-button i {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: .9rem;
  transition: transform .16s ease;
}

.site-title-button[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.site-title-button h1,
.site-home h1 {
  margin-bottom: 15px;
}

.section-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -2px;
  z-index: 6;
  min-width: 160px;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(179, 18, 75, .35);
  border-radius: 14px;
  background: rgba(10, 10, 10, .96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .32);
}

.section-menu[hidden] {
  display: none;
}

.section-menu a {
  display: block;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.section-menu a:hover,
.section-menu a.active {
  background: rgba(179, 18, 75, .28);
}

.section-tabs {
  display: none;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  gap: 3px;
  position: absolute;
  left: calc(100% + 18px);
  bottom: 12px;
  margin: 0;
  width: max-content;
  white-space: nowrap;
}

.section-tabs a {
  position: relative;
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: rgba(242, 242, 242, .64);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 900;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.section-tabs a:hover,
.section-tabs a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-1px);
}

.section-tabs a.active {
  background: rgba(179, 18, 75, .18);
  color: #ffd8e6;
}

.section-tabs a.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(179, 18, 75, .45);
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1 {
  font-size: 2.35rem;
  line-height: 1;
  color: #f4f4f4;
  letter-spacing: .5px;
  text-shadow:
    0 0 18px rgba(179, 18, 75, .35),
    0 0 40px rgba(179, 18, 75, .18);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-align: left;
}

h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.45rem;
  margin-top: 30px;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 15px 0;
}

/* ==========================================================================
   Primary Navigation
   ========================================================================== */

.navbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px;
  margin-bottom: 60px;
  background: var(--panel-soft);
  border: 1px solid rgba(179, 18, 75, .35);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  transition: .2s ease;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .5px;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(179, 18, 75, .4);
}

@media (min-width: 700px) {
  .section-tabs {
    display: inline-flex;
  }

  .site-title-button {
    pointer-events: none;
  }

  .site-title-button i {
    display: none;
  }

  .section-menu {
    display: none;
  }
}
