/*
  Top-level pages share this header/footer shell so the brand position does not
  shift when moving between the main, game, photos, and docs pages.
*/
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  color: #111111;
  background: #f5f5f5;
  font-weight: 800;
  line-height: 1.7;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #2d2d2d;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(14px);
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Noto Sans KR",
    Arial,
    sans-serif;
  line-height: 1.7;
}

.header-inner {
  width: min(100% - 32px, 1180px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #f5f5f5;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.7;
  text-decoration: none;
}

.brand-link img {
  display: block;
  width: 34px;
  height: 34px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: #050505;
}

.brand-name {
  display: inline;
  color: #f5f5f5;
  font-size: 17px;
  line-height: 1.7;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #b8b8b8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #f5f5f5;
  background: #1a1a1a;
  outline: none;
}

.site-nav-game-list {
  color: #080808 !important;
  background: #d7b66f;
  box-shadow: 0 0 0 1px rgba(215, 182, 111, 0.45);
}

.site-nav-game-list:hover,
.site-nav-game-list:focus-visible {
  color: #050505 !important;
  background: #ffffff;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid #2d2d2d;
  color: #b8b8b8;
  background: #050505;
  font-family:
    "Pretendard",
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Noto Sans KR",
    Arial,
    sans-serif;
  line-height: 1.7;
}

.footer-inner {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-inner a {
  color: #d7b66f;
  font-weight: 800;
  text-decoration: none;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: #f5f5f5;
  outline: none;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }

  .footer-inner {
    align-items: center;
    flex-direction: row;
  }
}

@media (max-width: 620px) {
  .brand-link img {
    width: 34px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .site-nav {
    align-content: flex-start;
    min-height: 87px;
  }
}
