@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito/Nunito-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Minecraft";
  src: url("../fonts/minecraft.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1d21;
  --ink-soft: #3f454c;
  --muted: #6d747d;
  --paper: #ffffff;
  --night: #11151b;
  --night-soft: #1c232c;
  --hairline: #e2e6ea;
  --moss: #FFAA00;
  --soil: #8a6b3f;
  --sky: #58a6e0;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background-color: rgba(91, 135, 49, 0.55);
}

::-moz-selection {
  background-color: rgba(91, 135, 49, 0.55);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--night);
  background-image: #ffffff;
  background-attachment: fixed;
  color: #eef1f4;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: url("../img/header_bg.png");
  background-size: cover;
  background-position: center;
  filter: blur(04px);
  transform: scale(1.05);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 16, 20, 0.55);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.site-header__logo {
  width: 220px;
  max-width: 70vw;
  display: block;
}

.hud__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  border-radius: 0;
  box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.28);
}

.hud__item {
  flex: none;
}

.hud__item + .hud__item {
  margin-left: 4px;
}

.hud__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 44px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  color: #000000;
  background-color: var(--moss);
  transition: transform 120ms ease;
}

.hud__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #ffffff;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
  z-index: 0;
}

.hud__btn-label {
  position: relative;
  z-index: 1;
}

.hud__btn:hover::before {
  opacity: 0.25;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background-color: rgba(0, 0, 0, 0.75);
  color: #eef1f4;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font-family: "Minecraft", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 150ms ease,
    visibility 150ms ease;
  z-index: 10;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
}

.hud__btn:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.hud__btn[data-copied] .tooltip {
  visibility: visible;
  opacity: 1;
}

.hud__btn:active {
  transform: translateY(2px);
}

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 112px;
}

.hero {
  max-width: 75ch;
  margin: 0 auto;
}

.hero__title {
  margin: 0 0 32px;
  font-family: "Minecraft", sans-serif;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: #ffffff;
  text-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.35),
    0 0 22px rgba(88, 166, 224, 0.22);
}

.hero__brand {
  color: var(--moss);
}

.hero p {
  margin: 0 0 22px;
  color: #cdd3da;
  text-align: left;
}

.hero p:first-of-type {
  margin-top: 0;
}

.hero a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid rgba(88, 166, 224, 0.35);
  transition: border-color 120ms ease;
}

.hero a:hover {
  border-bottom-color: var(--sky);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #55555523;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-group {
  flex: 1 1 280px;
  min-width: 0;
}

.footer-title {
  margin: 0 0 14px;
  font-family: "Minecraft", sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #cdd3da;
}

.footer-list a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid rgba(88, 166, 224, 0.35);
  transition: border-color 120ms ease;
}

.footer-list a:hover {
  border-bottom-color: var(--sky);
}

.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-social__item {
  display: block;
  width: 28px;
  height: 28px;
  transition: opacity 150ms ease;
}

.footer-social__item:hover {
  opacity: 0.7;
}

.footer-social__item--tiktok {
  width: 50px;
  height: 50px;
}

.footer-social__item--x {
  width: 35px;
  height: 35px;
}

.footer-social__item--youtube {
  width: 50px;
  height: 50px;
}

.footer-social__icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer-term {
  font-weight: 700;
  color: #ffffff;
}

.footer-value {
  color: #cdd3da;
}

@media (max-width: 520px) {
  .site-header__inner {
    padding: 28px 18px 24px;
  }

  .site-header__logo {
    width: 180px;
  }

  .content {
    padding: 40px 18px 88px;
  }

  .hero__title {
    font-size: 1.7rem;
  }

  .hud__btn {
    font-size: 0.92rem;
    width: 120px;
    height: 42px;
  }

  .site-footer__inner {
    padding: 20px 18px 24px;
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud__btn,
  .site-header__logo {
    transition: none;
  }
}
