/* Hallmark · reference: existing black/orange site · shared navigation and footer */
@import url('./tokens.css');

@font-face {
  font-family: 'SourceHanSansSC';
  src: url('/static/official/css/font/SourceHanSansSC-Regular.otf') format('opentype');
  font-display: swap;
}

.site-container {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: 1240px;
  margin: 0 auto;
}

.site-header,
.site-footer,
.site-header *,
.site-footer * {
  box-sizing: border-box;
}

.header.site-header {
  width: 100%;
  max-width: none;
  height: 76px;
  margin: 0;
  background: var(--color-header);
  font-family: var(--font-body);
}

.site-header .header-top {
  width: calc(100% - 48px);
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2xl);
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  display: flex;
  min-width: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  position: relative;
  color: var(--color-surface);
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--dur-hover) var(--ease-out);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--color-focus);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.site-header a:focus-visible,
.site-footer a:focus-visible,
.game-page a:focus-visible,
.game-page [tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 5px;
}

.site-footer {
  padding: var(--space-2xl) 0;
  background: var(--color-footer);
  color: var(--color-footer-text);
  font: 14px/2 var(--font-body);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-brand {
  margin: 0 0 var(--space-lg);
  color: var(--color-footer-heading);
  font-size: 25px;
  line-height: 1.5;
}

.site-footer a {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a:hover {
  color: var(--color-focus);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xs) var(--space-lg);
  margin-bottom: var(--space-md);
}

.site-footer-links a + a {
  position: relative;
}

.site-footer-links a + a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: .6em;
  height: 1em;
  border-left: 1px solid var(--color-footer-rule);
}

.site-footer .footer-products {
  margin-bottom: var(--space-md);
}

.health-notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.health-notice span {
  white-space: nowrap;
}

.footer-company span {
  display: inline-block;
}

.footer-separator {
  margin: 0 var(--space-xs);
}

@media (max-width: 600px) {
  .site-container {
    width: calc(100% - 32px);
  }

  .header.site-header {
    height: 64px;
  }

  .site-header .header-top {
    width: calc(100% - 24px);
  }

  .site-header nav {
    width: 100%;
  }

  .site-nav {
    justify-content: space-between;
    gap: var(--space-xs);
  }

  .site-nav a {
    font-size: 14px;
  }

  .site-footer {
    padding: 36px 0;
    font-size: 12px;
  }

  .site-footer-links {
    gap: var(--space-xs) 20px;
  }

  .site-footer-links a + a::before {
    left: -10px;
  }

  .footer-company span:last-child {
    display: block;
  }

  .footer-company .footer-separator {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a::after {
    transition: none;
  }
}
