@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --hk-panel: var(--hk-c-0f0f10);
  --hk-panel-head: var(--hk-c-0d0d0e);
  --hk-input: var(--hk-c-0d0d0e);
  --hk-line: var(--hk-c-232324);
  --hk-line-soft: var(--hk-c-1e1e1f);
  --hk-line-strong: var(--hk-c-2a2a2c);
  --hk-line-hover: var(--hk-c-3a3a3c);
  --hk-text: var(--hk-c-e4e4e4);
  --hk-muted: var(--hk-c-777777);
  --hk-btn-r: 6px;
  --hk-card-r: 8px;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font: 400 15px/1.7 Inter, sans-serif;
  color: var(--hk-text);
  background: var(--hk-c-0b0b0c);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.c {
  width: min(1320px, 95%);
  margin: auto;
}

header.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(var(--hk-n-0b0b0c),.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hk-line-soft);
}

header.topbar > .c {
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .08em;
  min-width: 0;
}

.logo-img {
  height: 32px;
  width: 32px;
  flex-shrink: 0;
}

.navr {
  display: flex;
  align-items: center;
  gap: 16px;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  min-height: 38px;
  border: 1px solid var(--hk-line-strong);
  border-radius: var(--hk-btn-r);
  background: var(--hk-c-141415);
  color: var(--hk-c-d4d4d4);
  font: 400 14px/1.4 Inter, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

button:hover {
  border-color: var(--hk-line-hover);
  color: var(--hk-text);
}

button svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 7px 14px;
  min-height: 32px;
  font-size: 13px;
}

.btn-discord {
  background: var(--hk-c-141415);
  border-color: var(--hk-line-strong);
  color: var(--hk-c-d4d4d4);
}

.btn-discord:hover {
  background: var(--hk-c-1a1a1b);
  border-color: var(--hk-line-hover);
  color: var(--hk-text);
}

.btn-dark,
.rowbtns button {
  background: var(--hk-c-d9d9db);
  border-color: var(--hk-c-d9d9db);
  color: var(--hk-c-18181b);
}

.btn-dark:hover,
.rowbtns button:hover {
  background: var(--hk-c-c4c4c7);
  border-color: var(--hk-c-c4c4c7);
  color: var(--hk-c-18181b);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--hk-line-strong);
  border-radius: var(--hk-card-r);
  background: var(--hk-input);
}

.lang-switch a {
  display: inline-block;
  padding: 5px 11px;
  border-radius: var(--hk-btn-r);
  font: 500 12px/1 Inter, sans-serif;
  letter-spacing: .06em;
  color: var(--hk-c-999999);
  transition: color .15s ease, background .15s ease;
}

.lang-switch a:hover {
  color: var(--hk-text);
}

.lang-switch a.on {
  background: var(--hk-c-d9d9db);
  color: var(--hk-c-18181b);
}

.layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  padding: clamp(14px, 2.4vw, 28px) 0;
  align-items: start;
}

.side {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hk-line-strong) transparent;
}

.side::-webkit-scrollbar {
  width: 6px;
}

.side::-webkit-scrollbar-thumb {
  background: var(--hk-line-strong);
  border-radius: 999px;
}

.legal-box {
  border: 1px solid var(--hk-line);
  border-radius: var(--hk-card-r);
  background: var(--hk-panel);
  overflow: hidden;
  width: 100%;
}

.legal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 10px;
  border-bottom: 1px solid var(--hk-line);
  background: var(--hk-panel-head);
}

.side a.legal-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hk-text);
}

.legal-head .ic {
  width: 28px;
  height: 28px;
  border-radius: var(--hk-btn-r);
  background: var(--hk-c-141415);
  border: 1px solid var(--hk-line-strong);
  color: var(--hk-c-999999);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-head .ic svg {
  width: 15px;
  height: 15px;
}

.side button.legal-close {
  display: none;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0;
  flex-shrink: 0;
  background: none;
  border-color: transparent;
  color: var(--hk-c-999999);
}

.side button.legal-close:hover {
  background: var(--hk-c-1a1a1b);
  border-color: var(--hk-line-strong);
  color: var(--hk-text);
}

.side button.legal-close svg {
  width: 14px;
  height: 14px;
}

.legal-label {
  padding: 16px 16px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--hk-c-6e6e72);
  text-transform: uppercase;
}

.legal-head + .legal-label {
  padding-top: 14px;
}

.side a.legal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  margin: 0 8px 2px;
  padding: 8px 10px;
  border-radius: var(--hk-btn-r);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .01em;
  color: var(--hk-c-999999);
  text-align: left;
  transition: background .15s ease, color .15s ease;
}

.side a.legal-item:hover {
  background: var(--hk-c-151516);
  color: var(--hk-text);
}

.side a.legal-item.current {
  background: var(--hk-c-1a1a1b);
  color: var(--hk-text);
  font-weight: 600;
}

.legal-item .chev {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.side a.legal-item.current[aria-expanded="true"] .chev {
  transform: rotate(90deg);
}

.legal-subwrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}

.legal-subwrap.open {
  grid-template-rows: 1fr;
}

.legal-sub {
  overflow: hidden;
  min-height: 0;
}

.legal-sub-inner {
  padding: 4px 0 8px;
  margin: 0 8px 4px 20px;
  border-left: 1px solid var(--hk-line);
}

.side .legal-sub a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--hk-c-888888);
  border-radius: 0 var(--hk-btn-r) var(--hk-btn-r) 0;
  transition: background .15s ease, color .15s ease;
}

.side .legal-sub a:hover {
  color: var(--hk-text);
}

.side .legal-sub a.active {
  background: var(--hk-c-151516);
  color: var(--hk-text);
  font-weight: 500;
}

.legal-foot {
  margin-top: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--hk-line);
  font-size: 12px;
  color: var(--hk-muted);
}

.legal-foot a {
  color: var(--hk-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

main {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.2vw, 24px);
  min-width: 0;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 4px;
}

.head h1 {
  font-size: 20px;
  font-size: round(clamp(18px, 16px + 0.4vw, 20px), 1px);
  font-weight: 600;
  letter-spacing: 0;
}

.head span {
  margin-left: 10px;
  color: var(--hk-muted);
  font-size: 13px;
  font-weight: 400;
}

.card {
  border: 1px solid var(--hk-line);
  border-radius: var(--hk-card-r);
  padding: clamp(12px, 2.4vw, 22px) clamp(14px, 2.4vw, 24px);
  background: var(--hk-panel);
  scroll-margin-top: 88px;
  overflow-wrap: anywhere;
}

.card h4 {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hk-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--hk-c-999999);
  text-transform: uppercase;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hk-line);
  font-size: 15px;
  font-weight: 600;
  color: var(--hk-text);
}

.sec-num {
  flex-shrink: 0;
  padding: 2px 7px;
  border: 1px solid var(--hk-line-strong);
  border-radius: 4px;
  background: var(--hk-input);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--hk-c-999999);
}

.card h5 {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hk-c-d4d4d4);
}

.card p {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--hk-c-b6b6b8);
}

.card p:last-child {
  margin-bottom: 0;
}

.card a {
  text-underline-offset: 3px;
  transition: color .15s ease;
}

.card p a,
.card li a {
  color: var(--hk-text);
}

.card p a:hover,
.card li a:hover {
  color: var(--hk-c-ffffff);
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0;
  padding-left: 0;
  list-style: none;
}

.card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--hk-c-b6b6b8);
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hk-c-4a4a4d);
}

.card ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 10px 20px;
  font-size: 14px;
  color: var(--hk-c-b6b6b8);
}

.card b {
  font-weight: 600;
  color: var(--hk-text);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--hk-c-aaaaaa) !important;
}

.warn-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(224, 82, 82, .2);
  border-radius: var(--hk-card-r);
  background: rgba(224, 82, 82, .07);
}

.warn-box svg {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--hk-c-d07a7a);
}

.warn-box p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--hk-c-d07a7a);
}

.accept-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--hk-line);
  border-radius: var(--hk-card-r);
  background: var(--hk-panel);
}

.accept-bar p {
  margin: 0;
  font-size: 13px;
  color: var(--hk-c-999999);
}

.accept-bar .rowbtns {
  margin: 0;
}

.rowbtns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.sitefooter {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--hk-line-soft);
  font-size: 13px;
  color: var(--hk-c-666666);
}

footer.sitefooter a:hover {
  color: var(--hk-text);
}

footer.sitefooter div {
  display: flex;
  gap: 18px;
}

.hamburger-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  width: 36px;
  min-height: 0;
  height: 36px;
  padding: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.sidebar-overlay.open {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .legal-subwrap,
  .legal-item .chev {
    transition: none;
  }
}

@media (max-width: 720px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hamburger-btn {
    display: inline-flex;
  }

  .sidebar-overlay {
    display: block;
  }

  header.topbar > .c {
    padding-left: 48px;
    min-height: 60px;
  }

  .logo {
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .logo-img {
    height: 26px;
    width: 26px;
  }

  .navr {
    gap: 8px;
    flex-shrink: 0;
  }

  .navr .btn-discord span.label {
    display: none;
  }

  .btn-discord {
    padding: 7px 10px;
  }

  .btn-discord svg {
    width: 18px;
    height: 18px;
  }

  .lang-switch a {
    padding: 5px 9px;
  }

  .side {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 25;
    width: min(88vw, 340px);
    max-height: none;
    height: 100vh;
    height: 100dvh;
    background: var(--hk-panel);
    border-right: 1px solid var(--hk-line-soft);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .side.open {
    transform: none;
    box-shadow: 24px 0 48px rgba(0,0,0,calc(.55*var(--hk-sh-a)));
  }

  .legal-box {
    min-height: 100%;
    padding-bottom: env(safe-area-inset-bottom);
    border: none;
    border-radius: 0;
  }

  .legal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: env(safe-area-inset-top);
  }

  .side button.legal-close {
    display: inline-flex;
  }

  .side a.legal-item {
    min-height: 44px;
  }

  .side .legal-sub a {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 13px;
  }

  .legal-foot {
    padding: 16px;
    font-size: 13px;
  }

  body.legal-drawer-open {
    overflow: hidden;
  }

  body.legal-drawer-open .hamburger-btn {
    opacity: 0;
    pointer-events: none;
  }

  .card ul {
    padding-left: 0;
  }

  .accept-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  footer.sitefooter {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 0 32px;
    text-align: center;
  }

  footer.sitefooter div {
    flex-wrap: wrap;
    justify-content: center;
  }
}
