/* site-header.css */
/* MCBattle.jp shared header / navigation */

:root {
  --home-header-max: 1040px;
}

.home-header {
  position: relative;
  margin-bottom: 18px;
  padding: 26px 0 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    radial-gradient(circle at 96% 0%, rgba(216,180,106,.07), transparent 34%);
  border-bottom: 1px solid rgba(255,255,255,.14);
  z-index: 40;
}

.home-header-inner {
  width: min(calc(100% - (var(--page-gutter, 24px) * 2)), var(--home-header-max));
  margin-left: auto;
  margin-right: auto;
}

.home-logo {
  margin: 0 0 6px;
  font-family: "Times New Roman", Georgia, serif;
  font-style: italic;
  font-size: clamp(2.08rem, 7.8vw, 3.15rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.055em;
  color: var(--accent);
  text-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.home-logo a {
  color: inherit;
  text-decoration: none !important;
}

.home-lead {
  margin: 0 0 13px;
  color: #f0f2f6;
  font-size: 1rem;
  line-height: 1.45;
  letter-spacing: -.02em;
}

.home-tabs {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008)),
    rgba(8,10,16,.58);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.018) inset,
    0 14px 26px rgba(0,0,0,.16);
}

.home-tabs-row {
  display: grid;
  width: 100%;
  min-width: 0;
}

.home-tabs-row-primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-tabs-row-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.14);
}

.home-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 11px 8px 12px;
  color: #f3f4f6;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  opacity: .96;
  transition:
    color .18s ease,
    opacity .18s ease,
    filter .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
  cursor: pointer;
  text-decoration: none !important;
  box-sizing: border-box;
}

.home-tabs-row-primary .home-tab + .home-tab,
.home-tabs-row-secondary .home-tab + .home-tab {
  border-left: 1px solid rgba(255,255,255,.14);
}

.home-tab-text {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-tab-events,
.home-tab-mcs,
.home-tab-score,
.home-tab-prize {
  background:
    linear-gradient(180deg, rgba(216,180,106,.12), rgba(216,180,106,.035)),
    rgba(42, 32, 12, .36);
}

.home-tab-simulator {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.010)),
    rgba(72, 22, 26, .50);
}

.home-tab-reading {
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.010)),
    rgba(18, 34, 64, .54);
}

.home-tab.is-current {
  color: var(--accent);
  opacity: 1;
}

.home-tab.is-current::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  border-radius: 0 !important;
  background: var(--accent);
  box-shadow: none !important;
  display: block;
}

.home-tab:not(.is-current)::before {
  display: none !important;
  content: none !important;
}

.home-tab:hover,
.home-tab:focus,
.home-tab:focus-visible {
  filter: brightness(1.22) saturate(1.06);
  outline: none;
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .14) inset,
    0 0 14px rgba(216, 180, 106, .16);
}

.home-tab:not(.is-current):hover::before,
.home-tab:not(.is-current):focus::before,
.home-tab:not(.is-current):focus-visible::before {
  display: none !important;
  content: none !important;
}

@media (min-width: 768px) {
  .home-header-inner {
    width: min(var(--home-header-max), calc(100% - var(--pc-left-gutter, 24px) - var(--page-gutter, 24px)));
    margin-left: var(--pc-left-gutter, 24px);
    margin-right: auto;
  }

  .home-tabs {
    border-radius: 0;
  }

  .home-tab {
    min-height: 50px;
    font-size: .98rem;
  }
}

@media (max-width: 767px) {
  .home-header {
    padding-top: 26px;
  }

  .home-header-inner {
    width: calc(100% - 48px);
    max-width: calc(100% - 48px);
    margin-left: 24px;
    margin-right: 24px;
  }

  .home-logo {
    font-size: clamp(2.08rem, 7.8vw, 3.15rem);
    line-height: .95;
    white-space: nowrap;
  }

  .home-lead {
    font-size: 1rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .home-tabs {
    border-radius: 12px;
  }

  .home-tab {
    min-height: 45px;
    padding: 9px 5px 10px;
    font-size: .84rem;
    letter-spacing: -.035em;
  }

  .home-tab-simulator,
  .home-tab-reading {
    font-size: .90rem;
    letter-spacing: -.02em;
  }
}

@media (max-width: 374px) {
  .home-header-inner {
    width: calc(100% - 36px);
    max-width: calc(100% - 36px);
    margin-left: 18px;
    margin-right: 18px;
  }

  .home-tab {
    padding-left: 4px;
    padding-right: 4px;
    font-size: .78rem;
  }

  .home-tab-simulator,
  .home-tab-reading {
    font-size: .84rem;
  }
}
