:root {
  --nh-bg: #1d1820;
  --nh-chrome: #262626;
  --nh-panel: #2a2430;
  --nh-line: #3a3340;
  --nh-ink: #f4f1f5;
  --nh-mute: #9a93a3;
  --nh-pink: #ffb4d9;
  --nh-pink-ink: #2a1220;
  --nh-hero-w: 1480px;
  --nh-hero-h: 448px;
  --nh-side: 220px;
  --nh-top: 64px;
  --nh-radius: 20px;
  --nh-tap: 44px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--nh-bg);
  color: var(--nh-ink);
  font: 15px/1.4 "Segoe UI", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html { color-scheme: dark; }
body.page-home-candy {
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible {
  outline: 1px solid var(--nh-pink);
  outline-offset: 2px;
}

.nh-scrim {
  display: none;
}
.nh-side {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--nh-side);
  height: 100vh;
  height: 100dvh;
  background: var(--nh-chrome);
  padding: 0 12px 20px;
  display: flex;
  flex-direction: column;
  z-index: 8;
}
.nh-side .nh-logo {
  display: flex;
  align-items: center;
  height: var(--nh-top);
  padding: 0 14px;
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex: 0 0 auto;
  white-space: nowrap;
}
.nh-side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nh-side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--nh-mute);
}
.nh-side-nav a svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: 0 0 auto;
}
.nh-side-nav a.on,
.nh-side-nav a:hover {
  color: var(--nh-ink);
  background: rgba(255,255,255,0.04);
}
.nh-side-foot {
  margin-top: auto;
  padding: 12px 14px 4px;
  color: var(--nh-mute);
  font-size: 11px;
  line-height: 1.45;
}

.nh-shell { min-width: 0; margin-left: var(--nh-side); overflow-x: clip; }
.nh-top {
  position: sticky;
  top: 0;
  z-index: 7;
  height: var(--nh-top);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 28px 0 18px;
  background: var(--nh-chrome);
}
.nh-top-start {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: start;
}
.nh-burger {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--nh-ink);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nh-burger span,
.nh-burger span:before,
.nh-burger span:after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nh-burger span:before,
.nh-burger span:after {
  content: "";
  position: absolute;
  left: 0;
}
.nh-burger span:before { top: -5px; }
.nh-burger span:after { top: 5px; }
.nh-credits {
  justify-self: start;
  color: var(--nh-ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  white-space: nowrap;
}
.nh-credits:hover { color: var(--nh-pink); }
.nh-top-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nh-logout { margin: 0; }
.nh-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}
.nh-pill-pink {
  background: var(--nh-pink);
  color: var(--nh-pink-ink);
  font-weight: 600;
}
.nh-pill-dark {
  background: #3a3a3a;
  color: var(--nh-ink);
}

.nh-main {
  padding: 20px 28px 64px;
  max-width: calc(var(--nh-hero-w) + 56px);
}
.nh-flash {
  background: #3a2430;
  border: 1px solid #6a3a4a;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.nh-hero {
  display: block;
  width: var(--nh-hero-w);
  max-width: 100%;
  height: auto;
  aspect-ratio: 2066 / 761;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background-color: #05060c;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url("home-banner.png?v=3");
  text-decoration: none;
}

.nh-featured { margin-top: 28px; }
.nh-featured h1 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.nh-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.nh-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2f2a35;
  min-width: min(260px, 100%);
}
.nh-search svg {
  width: 16px;
  height: 16px;
  fill: var(--nh-mute);
  flex: 0 0 auto;
}
.nh-search input {
  border: 0;
  background: transparent;
  min-height: 40px;
  width: 100%;
  outline: none;
}
.nh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nh-chips button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #2f2a35;
  color: var(--nh-ink);
  cursor: pointer;
}
.nh-chips button.on {
  background: #eeeaf0;
  color: #1a1218;
  font-weight: 600;
}

.nh-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}
.nh-card {
  width: auto;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.nh-card.is-soon { cursor: default; }
.nh-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--nh-panel);
  display: grid;
  place-items: center;
  position: relative;
}
.nh-card:hover .nh-thumb,
.nh-card:focus-visible .nh-thumb {
  box-shadow: 0 0 0 2px rgba(255, 180, 217, 0.35);
}
.nh-card.is-soon .nh-thumb {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,180,217,0.12), transparent 55%),
    linear-gradient(180deg, #322838, #1e1822);
}
.nh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nh-try {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 8px 9px;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 10, 0.62));
  color: #f7f3f6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: background 0.18s ease, opacity 0.18s ease;
  pointer-events: none;
}
.nh-card:hover .nh-try,
.nh-card:focus-visible .nh-try,
.nh-card.is-hover .nh-try {
  background: linear-gradient(180deg, transparent, rgba(8, 6, 10, 0.82));
}
.nh-free {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 56px;
  padding: 14px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent, rgba(8, 6, 10, 0.28) 28%, rgba(255, 180, 217, 0.94));
  color: var(--nh-pink-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
}
.nh-card.is-free .nh-thumb {
  box-shadow: 0 0 0 2px rgba(255, 180, 217, 0.55);
}
.nh-vip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(18, 14, 20, 0.78);
  border: 1px solid rgba(255, 180, 217, 0.55);
  color: var(--nh-pink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
.nh-ph {
  color: var(--nh-mute);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}
.nh-empty {
  margin: 28px 0 0;
  color: var(--nh-mute);
}
.nh-card.is-soon .nh-soon {
  position: static;
}
.nh-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--nh-pink);
  color: var(--nh-pink-ink);
  font-size: 13px;
  font-weight: 650;
}
.nh-open.is-disabled {
  background: #3a3340;
  color: var(--nh-mute);
}

.nh-card[hidden] { display: none !important; }

.nh-lead {
  margin: -8px 0 22px;
  color: var(--nh-mute);
  max-width: 520px;
}
.nh-lead a { color: var(--nh-pink); }
.nh-choose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
}
.nh-choose-card {
  background: var(--nh-panel);
  border: 1px solid var(--nh-line);
  border-radius: 16px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.nh-choose-card h2 { margin: 0; font-size: 22px; }
.nh-choose-card p { margin: 0; color: var(--nh-mute); }
.nh-choose-card .nh-open { margin-top: auto; }
.nh-choose-card.is-soon { opacity: 0.72; cursor: default; }
.nh-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nh-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nh-soon {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #3a3340;
  color: var(--nh-ink);
  letter-spacing: 0.06em;
  font-size: 10px;
  font-weight: 700;
}
.page-home-candy .hero h1,
.page-home-candy .profile-copy h1 { color: var(--nh-ink); }
.page-home-candy .fine,
.page-home-candy .hero p { color: var(--nh-mute); }
.page-home-candy .panel {
  background: var(--nh-panel);
  border-color: var(--nh-line);
}
.nh-legal {
  margin: 0;
  padding: 8px 28px 28px;
  color: var(--nh-mute);
  font-size: 12px;
}
.page-home-candy .library-empty,
.page-home-candy .empty,
.page-home-candy .nh-miss {
  color: var(--nh-mute);
  max-width: 420px;
}
.page-home-candy .auth { max-width: 720px; }
.page-home-candy .auth a { color: var(--nh-pink); }

.nh-plans { max-width: 1080px; }
.nh-plans-head h1 { margin: 6px 0 10px; font-size: 32px; letter-spacing: -0.03em; }
.nh-plans-sub {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 650;
}
.nh-lead-tight { margin-top: 0; }
.nh-plan-swaps {
  margin: 0;
  color: var(--nh-pink);
  font-size: 13px;
  font-weight: 600;
}
.nh-plan-card.is-pack { border-style: dashed; }
.nh-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 22px;
}
.nh-plan-card {
  background: var(--nh-panel);
  border: 1px solid var(--nh-line);
  border-radius: 20px;
  padding: 22px 20px 20px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nh-plan-card.is-vip {
  border-color: rgba(255,180,217,0.45);
  box-shadow: 0 0 0 1px rgba(255,180,217,0.12);
}
.nh-plan-card h2 { margin: 0; font-size: 22px; }
.nh-plan-now {
  margin: 0;
  color: var(--nh-pink);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nh-plan-price {
  margin: 4px 0 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.nh-plan-price span { font-size: 14px; color: var(--nh-mute); font-weight: 600; }
.nh-plan-usd { margin: 0; color: var(--nh-mute); font-size: 13px; }
.nh-plan-card ul {
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
  color: var(--nh-ink);
}
.nh-plan-card li {
  padding: 8px 0;
  border-top: 1px solid var(--nh-line);
  font-size: 14px;
}
.nh-plan-stars,
.nh-plan-card .nh-pill { width: 100%; }
.nh-paypal { margin-top: 8px; display: grid; gap: 8px; }
.nh-plan-note { color: var(--nh-mute); max-width: 720px; font-size: 13px; }
.nh-plan-note a { color: var(--nh-pink); }
.nh-plan-soon {
  margin: 4px 0 0;
  color: var(--nh-mute);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  body.page-home-candy {
    display: block;
  }
  .nh-shell { margin-left: 0; }
  .nh-side {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 280px);
    height: 100dvh;
    flex: none;
    z-index: 9;
    box-shadow: 16px 0 40px rgba(0,0,0,0.4);
  }
  body.nh-open {
    overflow: hidden;
  }
  .nh-side.is-open,
  body.nh-open .nh-side {
    display: flex;
  }
  .nh-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 5;
  }
  .nh-scrim[hidden] { display: none; }
  .nh-burger { display: inline-flex; }
  .nh-side .nh-logo {
    height: var(--nh-top);
    font-size: 18px;
  }
  .nh-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    height: auto;
    min-height: var(--nh-top);
    padding: 8px 12px 8px 6px;
    gap: 8px;
  }
  .nh-top-start { grid-column: 1; grid-row: 1; min-width: 0; }
  .nh-credits {
    min-height: 28px;
    font-size: 13px;
    padding: 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nh-top-end {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    flex-shrink: 0;
  }
  .nh-top-end .nh-pill { padding: 0 10px; font-size: 13px; }
  .nh-main { padding: 16px 14px 32px; }
  .nh-legal { padding: 4px 14px 28px; }
  .nh-hero {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .nh-pill { min-height: 40px; }
  .nh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .nh-try {
    opacity: 1;
    transform: none;
  }
  .nh-free {
    min-height: 52px;
    font-size: 20px;
  }
  .nh-choose { grid-template-columns: 1fr; }
  .nh-plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .nh-top-end .nh-pill { font-size: 12px; min-height: 36px; padding: 0 8px; }
  .nh-top-end .nh-pill-join {
    font-size: 0;
    padding: 0 10px;
  }
  .nh-top-end .nh-pill-join::after {
    content: "Join";
    font-size: 12px;
  }
  .nh-credits { font-size: 12px; padding: 0 4px; }
  .nh-featured h1 { font-size: 20px; }
}
