:root {
  --hk-nav-blue: #3155f5;
  --hk-nav-ink: #15171c;
  --hk-nav-line: #e2e4de;
  --hk-nav-paper: #f3f4ef;
  --hk-nav-muted: #747982;
  --hk-nav-red: #e4484d;
}

.hk-menu-trigger {
  width: 38px;
  height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 2px 0 0;
  padding: 0;
  border: 1px solid var(--hk-nav-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--hk-nav-ink);
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(22, 25, 31, .035);
  -webkit-tap-highlight-color: transparent;
}
.hk-menu-trigger span {
  width: 17px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}
.hk-menu-trigger span:nth-child(2) { width: 12px; margin-right: 5px; }
.hk-menu-trigger:hover { border-color: #cbd1ef; color: var(--hk-nav-blue); }
.hk-menu-trigger:focus-visible,
.hk-nav-drawer a:focus-visible,
.hk-nav-drawer button:focus-visible,
.hk-bottom-nav a:focus-visible {
  outline: 3px solid rgba(49, 85, 245, .25);
  outline-offset: 2px;
}
.hk-menu-trigger.hk-menu-floating {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 72;
  background: #fff;
  box-shadow: 0 12px 35px rgba(21, 23, 28, .16);
}

.hk-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 980;
  border: 0;
  padding: 0;
  background: rgba(12, 14, 18, .52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.hk-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hk-nav-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 990;
  width: min(88vw, 360px);
  max-width: 100%;
  overflow-y: auto;
  padding: 22px 20px max(32px, env(safe-area-inset-bottom));
  border-right: 1px solid var(--hk-nav-line);
  background: #fff;
  color: var(--hk-nav-ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-shadow: 24px 0 70px rgba(15, 17, 22, .18);
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  overscroll-behavior: contain;
}
.hk-nav-drawer.is-open { transform: translateX(0); }
.hk-nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 5px 2px 18px;
  border-bottom: 1px solid var(--hk-nav-line);
}
.hk-nav-drawer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hk-nav-ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
}
.hk-nav-drawer-brand i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hk-nav-blue);
  box-shadow: 0 0 0 6px rgba(49, 85, 245, .1);
}
.hk-nav-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f2f3f0;
  color: var(--hk-nav-muted);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.hk-nav-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 24px;
  padding: 16px;
  border-radius: 15px;
  background: #e9edff;
  color: var(--hk-nav-blue);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}
.hk-nav-login small {
  display: block;
  margin-top: 4px;
  color: #6d7bd0;
  font-size: 10px;
  font-weight: 650;
}
.hk-nav-group { margin-top: 25px; }
.hk-nav-group-title {
  display: block;
  margin-bottom: 8px;
  color: #a3a7ae;
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}
.hk-nav-links { display: grid; grid-template-columns: 1fr; }
.hk-nav-links.categories { grid-template-columns: 1fr 1fr; gap: 7px; }
.hk-nav-links a {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 3px;
  border-bottom: 1px solid #eef0ec;
  color: #252830;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.hk-nav-links.categories a {
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #eceee9;
  border-radius: 12px;
  background: #fafbf8;
  font-size: 12px;
}
.hk-nav-links a:hover,
.hk-nav-links a[aria-current="page"] { color: var(--hk-nav-blue); }
.hk-nav-links a[aria-current="page"] { background-color: #f2f4ff; }
.hk-nav-icon {
  width: 25px;
  flex: 0 0 auto;
  color: var(--hk-nav-blue);
  text-align: center;
}
.hk-nav-links.categories .hk-nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex-basis: 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #fff;
  font-size: 15px;
  box-shadow: 0 4px 13px rgba(20, 25, 40, .07);
}
.hk-nav-links.categories .hk-nav-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hk-nav-meta {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--hk-nav-line);
  color: #9a9ea5;
  font-size: 10px;
  line-height: 1.6;
}
body.hk-nav-open { overflow: hidden !important; touch-action: none; }

.hk-bottom-nav { display: none; }

@media (max-width: 900px) {
  .hk-menu-trigger {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  body.hk-has-bottom-nav { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .hk-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 970;
    width: min(100%, 700px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 9px 8px max(9px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--hk-nav-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 35px rgba(20, 23, 28, .08);
    backdrop-filter: blur(16px);
    transform: translateX(-50%);
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .hk-bottom-nav a {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #999da4;
    font-size: 9px;
    font-weight: 750;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .hk-bottom-nav a > span {
    min-height: 20px;
    display: grid;
    place-items: center;
    font-size: 19px;
    line-height: 1;
  }
  .hk-bottom-nav a[aria-current="page"] { color: var(--hk-nav-blue); }
  .hk-bottom-nav .hk-bottom-ai > span {
    width: 44px;
    height: 44px;
    margin-top: -21px;
    border-radius: 15px;
    background: var(--hk-nav-ink);
    color: #fff;
    box-shadow: 0 7px 20px rgba(20, 23, 28, .28);
  }
}

@media (max-width: 380px) {
  .hk-nav-drawer { width: min(92vw, 340px); padding-right: 16px; padding-left: 16px; }
  .hk-nav-links.categories { gap: 6px; }
  .hk-nav-links.categories a { padding-right: 7px; padding-left: 7px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .hk-nav-overlay,
  .hk-nav-drawer { transition-duration: .01ms; }
}
