/* primal-hp · night-vision corridor. Own prefix. Do not reuse other quiz skins. */

.hp-main {
  padding-left: 1rem;
  padding-right: 1rem;
}

.hp-body {
  background: #07140e;
  color: #e8f0e4;
}

.hp-body .hidden,
.hp-hidden { display: none !important; }

.hp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.hp-woods,
.hp-quiz,
.hp-result {
  width: min(720px, 100%);
  margin: 0 auto;
}

.hp-woods {
  position: relative;
  padding: 0.4rem 0 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hp-fog {
  position: absolute;
  inset: -1rem 0 0;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(230, 184, 74, 0.1), transparent 46%),
    radial-gradient(ellipse at 50% 100%, #04100b 0%, transparent 55%),
    linear-gradient(180deg, #041208 0%, #07140e 48%, #0a1c14 100%);
  animation: hp-breathe 6.4s ease-in-out infinite;
  pointer-events: none;
}

.hp-eyes {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 2.4rem;
  z-index: 1;
  margin: 0.15rem 0 0.35rem;
  min-height: 2.4rem;
  align-items: center;
}

.hp-eye {
  width: 42px;
  height: 3px;
  border-radius: 50%;
  background: #1a2a1c;
  box-shadow: none;
  transition: height 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.hp-woods.is-open .hp-eye {
  height: 18px;
  background: #e6b84a;
  box-shadow: 0 0 18px 4px rgba(230, 184, 74, 0.45);
}

.hp-woods.is-open .hp-eye:last-child {
  background: #d7e4ee;
  box-shadow: 0 0 18px 4px rgba(201, 214, 224, 0.35);
}

.hp-range {
  position: relative;
  z-index: 2;
  margin: 0 0 0.7rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.7rem;
  letter-spacing: 0.18em;
  color: #c9d6e0;
  text-align: center;
}

.hp-welcome {
  position: relative;
  z-index: 2;
}

.hp-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9bb0a4;
}

.hp-welcome h1,
.hp-result h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e8f0e4;
}

.hp-lead,
.hp-note,
.hp-line,
.hp-q-note,
.hp-block p,
.hp-status,
.hp-foot,
.hp-login {
  color: #c5d4cb;
}

.hp-lead { margin: 0 0 0.55rem; font-size: 1.05rem; }
.hp-note { margin: 0 0 1.2rem; font-size: 0.92rem; }

.hp-gate {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.hp-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(201, 214, 224, 0.18);
  background: rgba(6, 18, 12, 0.72);
  color: #e8f0e4;
  cursor: pointer;
}

.hp-check input { margin-top: 0.25rem; accent-color: #e6b84a; }
.hp-check strong { display: block; color: #e8f0e4; }
.hp-check small { color: #8fa396; }

.hp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid rgba(201, 214, 224, 0.35);
  background: transparent;
  color: #e8f0e4;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.hp-btn:hover,
.hp-btn:focus-visible { border-color: #e6b84a; color: #e6b84a; outline: none; }

.hp-btn.primary {
  background: #e6b84a;
  border-color: #e6b84a;
  color: #142018;
}

.hp-btn.primary:hover,
.hp-btn.primary:focus-visible {
  background: #f0c96a;
  color: #142018;
}

.hp-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.hp-status { min-height: 1.2rem; font-size: 0.88rem; }

.hp-quiz {
  padding: 1.4rem 0 3rem;
}

.hp-tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-bottom: 1.3rem;
}

.hp-print {
  width: 0.72rem;
  height: 1.05rem;
  border-radius: 40% 40% 48% 48%;
  background: rgba(201, 214, 224, 0.12);
}

.hp-print.is-lit {
  background: #e6b84a;
  box-shadow: 0 0 8px rgba(230, 184, 74, 0.45);
}

.hp-print.is-prey-lit {
  background: #c9d6e0;
  box-shadow: 0 0 8px rgba(201, 214, 224, 0.4);
}

.hp-how {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #9bb0a4;
}

.hp-q {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  color: #e8f0e4;
  opacity: 1;
}

.hp-q.is-in {
  animation: hp-approach 0.42s ease;
}

.hp-q-note {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: #d7b36a;
}

.hp-q-note:empty { display: none; }

.hp-lands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.hp-land {
  min-height: 8.5rem;
  padding: 1.1rem 0.9rem;
  border: 1px solid transparent;
  text-align: left;
  font: inherit;
  font-size: 1.02rem;
  color: #e8f0e4;
  cursor: pointer;
}

.hp-land-a {
  background: rgba(230, 184, 74, 0.08);
  border-color: rgba(230, 184, 74, 0.45);
  box-shadow: inset 0 0 24px rgba(230, 184, 74, 0.08);
}

.hp-land-b {
  background: rgba(201, 214, 224, 0.08);
  border-color: rgba(201, 214, 224, 0.4);
  box-shadow: inset 0 0 24px rgba(201, 214, 224, 0.08);
}

.hp-land:hover,
.hp-land:focus-visible {
  filter: brightness(1.12);
  outline: none;
}

.hp-land.is-on { filter: brightness(0.55); }
.hp-land.is-dim { opacity: 0.38; }
.hp-land:disabled { cursor: wait; }

.hp-belt { margin-top: 0.4rem; }

.hp-belt-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  padding: 0.55rem;
  background: linear-gradient(90deg, #16343c 0%, #4a2a16 55%, #7a1a12 100%);
  border: 1px solid rgba(230, 184, 74, 0.28);
}

.hp-tick {
  min-height: 4.4rem;
  border: 1px solid rgba(232, 240, 228, 0.18);
  background: rgba(7, 20, 14, 0.35);
  color: #e8f0e4;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.hp-tick:hover,
.hp-tick:focus-visible {
  background: rgba(7, 20, 14, 0.6);
  outline: none;
}

.hp-tick.is-on {
  background: #e8f0e4;
  color: #142018;
  filter: brightness(0.78);
}

.hp-tick:disabled { cursor: wait; }

.hp-belt-label {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: #c5d4cb;
}

.hp-result { padding: 1.6rem 0 3.2rem; }

.hp-zero {
  min-height: 5.5rem;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(230, 184, 74, 0.35);
  background: rgba(4, 16, 11, 0.65);
}

.hp-zero.is-prey { border-color: rgba(201, 214, 224, 0.4); }
.hp-zero.is-switch { border-style: solid; }

.hp-zero .hp-range { margin: 0.4rem 0; }

.hp-bite {
  height: 14px;
  margin: 0.4rem 0 0.7rem;
  background: repeating-linear-gradient(
    90deg,
    #3a1410 0 10px,
    transparent 10px 16px
  );
  position: relative;
}

.hp-bite > span {
  display: block;
  height: 100%;
  width: 20%;
  background: repeating-linear-gradient(
    90deg,
    #c45a3a 0 10px,
    transparent 10px 16px
  );
}

.hp-bite.is-cool > span { width: 28%; opacity: 0.55; }
.hp-bite.is-warm > span { width: 62%; opacity: 0.85; }
.hp-bite.is-hot > span { width: 100%; opacity: 1; }

.hp-block {
  margin: 0 0 1rem;
  padding: 0.85rem 0 0.2rem;
  border-top: 1px solid rgba(201, 214, 224, 0.14);
}

.hp-block h2 {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #9bb0a4;
}

.hp-archive {
  margin: 1.4rem 0;
  padding: 1rem;
  border: 1px solid rgba(230, 184, 74, 0.28);
  background: rgba(8, 16, 10, 0.9);
}

.hp-archive pre {
  margin: 0 0 0.9rem;
  white-space: pre-wrap;
  color: #e8f0e4;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.hp-share-preview {
  margin-top: 0.9rem;
}

.hp-share-preview canvas {
  width: min(100%, 360px);
  height: auto;
  display: block;
  margin-bottom: 0.7rem;
  background: #04100b;
}

.hp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.hp-login a {
  color: #e6b84a;
}

.hp-end-nav { margin: 0.8rem 0; }

.hp-foot {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

@keyframes hp-breathe {
  0%, 100% { opacity: 0.78; }
  50% { opacity: 1; }
}

@keyframes hp-approach {
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 560px) {
  .hp-lands { grid-template-columns: 1fr; }
  .hp-land { min-height: 5.6rem; }
  .hp-tick { min-height: 3.6rem; font-size: 0.74rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hp-fog,
  .hp-q.is-in,
  .hp-eye { animation: none !important; transition: none !important; }
  .hp-woods.is-open .hp-eye { height: 18px; }
}
