/* ---------- header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; padding: 10px var(--gutter) 0; pointer-events: none; }
.site-header > * { pointer-events: auto; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(100%, var(--maxw)); margin-inline: auto; height: var(--header-h) ; padding: 0 10px 0 14px;
  background: rgba(15, 23, 17, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.8);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; border-radius: 12px; }
.brand__icon { width: 34px; height: 34px; image-rendering: pixelated; flex: none; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand__name { font-weight: 800; letter-spacing: 0.045em; font-size: 1.02rem; white-space: nowrap; }
.brand__tag { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.26em; color: var(--text-3); margin-top: 3px; white-space: nowrap; }

.nav { display: none; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(9, 14, 11, 0.5); }
.nav__link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 0.92rem; font-weight: 550; color: var(--text-2); transition: color 0.2s, background 0.25s var(--ease); white-space: nowrap; }
@media (hover: hover) { .nav__link:hover { color: var(--text); } }
.nav__link[aria-current="page"] { background: var(--mint); color: #07140d; font-weight: 650; }
.nav__link[aria-current="page"] .badge { background: rgba(7, 20, 13, 0.14); color: #07140d; }

.menu-toggle .icon { width: 22px; height: 22px; }
.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.buy-btn { --h: 44px; padding: 0 16px; }
.buy-btn .icon { width: 16px; height: 16px; }

@media (max-width: 359px) { .buy-btn { display: none; } .brand__tag { display: none; } }

.menu-sheet {
  position: absolute; top: calc(10px + var(--header-h) + 8px); left: var(--gutter); right: var(--gutter); max-width: var(--maxw); margin-inline: auto; padding: 10px; border-radius: 22px;
  background: rgba(15, 23, 17, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.99); transform-origin: top right;
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
}
.menu-sheet.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu-sheet__link { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px; border-radius: 16px; font-size: 1.05rem; font-weight: 620; color: var(--text); background: rgba(185, 245, 189, 0.03); }
.menu-sheet__link + .menu-sheet__link { margin-top: 6px; }
.menu-sheet__link[aria-current="page"] { background: rgba(121, 233, 164, 0.14); color: var(--mint); box-shadow: inset 0 0 0 1px rgba(121, 233, 164, 0.3); }

@media (min-width: 840px) {
  .nav { display: flex; }
  .menu-toggle, .menu-sheet { display: none; }
  .buy-btn { --h: 42px; }
  .site-header__bar { padding: 0 12px 0 16px; }
}

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 26, 19, 0.5), rgba(9, 14, 11, 0)); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: grid; gap: 22px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand img { image-rendering: pixelated; }
.site-footer__brand div { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.site-footer__brand strong { letter-spacing: 0.045em; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__nav a { min-height: 40px; display: inline-flex; align-items: center; color: var(--text-2); font-weight: 550; }
@media (hover: hover) { .site-footer__nav a:hover { color: var(--mint); } }
.site-footer__legal, .site-footer__copy { color: var(--text-3); font-size: 0.84rem; max-width: 62ch; }
.site-footer__copy { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; }
@media (min-width: 840px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
  .site-footer__legal { grid-column: 1; } .site-footer__copy { grid-column: 2; text-align: right; }
}
