:root {
  --font-emoji: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

[data-site-header] {
  display: contents;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 123, 172, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 34px);
}

.site-header a,
.site-footer a {
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(30, 167, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 6px 14px rgba(10, 42, 68, 0.06);
  color: rgba(10, 42, 68, 0.82);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(30, 167, 255, 0.52);
  box-shadow: 0 10px 18px rgba(10, 42, 68, 0.12);
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translateX(-50%);
}

.menu-toggle-icon::before {
  content: '';
  top: -6px;
}

.menu-toggle-icon::after {
  content: '';
  top: 6px;
}

.site-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: clamp(16px, 4vw, 34px);
  z-index: 21;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 10px;
  border: 1px solid rgba(255, 123, 172, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(10, 42, 68, 0.14);
}

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

.site-menu a {
  padding: 10px 12px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.88rem;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  background: rgba(30, 167, 255, 0.1);
}

.header-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(30, 167, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 6px 14px rgba(10, 42, 68, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.header-links a:hover,
.header-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(30, 167, 255, 0.52);
  box-shadow: 0 10px 18px rgba(10, 42, 68, 0.12);
}

.header-links i {
  font-size: 1rem;
}

.header-links .header-live-link {
  border-color: transparent;
  color: #ffffff;
  background: #252525;
}

.header-live-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  padding: 22px 18px;
  color: rgba(10, 42, 68, 0.66);
  font-weight: 600;
}

.footer-copyright {
  margin: 0;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-label {
  margin-right: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(30, 167, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 6px 14px rgba(10, 42, 68, 0.06);
  font-size: 0.98rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.share-link:hover,
.share-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(30, 167, 255, 0.52);
  box-shadow: 0 10px 18px rgba(10, 42, 68, 0.12);
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  color: rgba(10, 42, 68, 0.68);
  font-size: 0.8rem;
  font-weight: 400;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: rgba(10, 42, 68, 0.92);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 14px;
    gap: 10px;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }

  .brand img {
    width: 92px;
  }

  .header-links {
    gap: 6px;
  }

  .header-links a {
    width: 36px;
    min-height: 36px;
    padding: 7px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  .header-links span {
    display: none;
  }

  .header-links .header-live-link {
    width: auto;
    padding-inline: 11px;
  }

  .header-links .header-live-link span {
    display: inline;
    font-size: 0.74rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 10px;
  }

  .header-links .header-live-link span {
    display: none;
  }

  .header-links .header-live-link {
    width: 36px;
    padding: 7px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }

  .footer-legal-links a {
    display: inline-block;
    padding: 8px 6px;
  }
}
