@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

.code-hunt {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  box-sizing: border-box;
  text-align: center;
}
.code-hunt__breadcrumb { padding: .75rem 1rem 0; }
.code-hunt__breadcrumb .breadcrumb-list { justify-content: flex-start; margin: 0; }
.code-hunt [hidden] { display: none !important; }
.code-hunt__card.is-correct { animation: code-hunt-correct .65s ease; }
.code-hunt__card.is-correct .code-hunt__lock { animation: code-hunt-unlock .85s cubic-bezier(.2,.85,.3,1.25); }
.code-hunt__card.is-wrong { animation: code-hunt-wrong .55s ease; }
.code-hunt__card.is-wrong .code-hunt__lock { animation: code-hunt-shake .55s ease; }
.code-hunt__card.is-correct #code-hunt-feedback { color: #15803d; font-size: 1.15rem; }
.code-hunt__card.is-wrong #code-hunt-feedback { color: #b91c1c; }
.code-hunt-phone { display: inline-block; margin: 0 .12em; padding: .08em .22em; border-radius: 7px; background: #fee2e2; color: #dc2626; filter: saturate(1.35); }
@keyframes code-hunt-correct {
  0%, 100% { background: #fff; }
  25%, 70% { background: #f0fdf4; box-shadow: 0 0 0 5px rgba(34, 197, 94, .18), 0 20px 40px rgba(15, 23, 42, .06); }
}
@keyframes code-hunt-unlock {
  0% { transform: scale(1) rotate(0); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  25% { transform: scale(1.3) rotate(-12deg); box-shadow: 0 0 0 14px rgba(34, 197, 94, .2), 0 0 30px rgba(34, 197, 94, .35); }
  55% { transform: scale(1.2) rotate(10deg); box-shadow: 0 0 0 20px rgba(34, 197, 94, .12), 0 0 36px rgba(34, 197, 94, .28); }
  100% { transform: scale(1) rotate(0); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@keyframes code-hunt-wrong {
  0%, 100% { background: #fff; }
  20%, 65% { background: #fff1f2; box-shadow: 0 0 0 5px rgba(239, 68, 68, .18), 0 20px 40px rgba(15, 23, 42, .06); }
}
@keyframes code-hunt-shake {
  0%, 100% { transform: translateX(0); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  20% { transform: translateX(-9px) rotate(-5deg); box-shadow: 0 0 0 13px rgba(239, 68, 68, .2), 0 0 28px rgba(239, 68, 68, .3); }
  40% { transform: translateX(9px) rotate(5deg); }
  60% { transform: translateX(-6px) rotate(-3deg); }
  80% { transform: translateX(4px) rotate(2deg); }
}

.code-hunt__intro,
.code-hunt__card,
.code-hunt__result {
  width: 100%;
  box-sizing: border-box;
  margin: 1rem auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  border: 1px solid rgba(99, 102, 241, 0.08);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}
.code-hunt__intro {
  background: linear-gradient(145deg, #fff 55%, #fdf2f8 100%);
}
.code-hunt__mark,
.code-hunt__lock {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe);
  font-size: 2rem;
}
.code-hunt__eyebrow,
.code-hunt__clue-label {
  margin: 0 0 .55rem;
  color: #7c3aed;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.code-hunt__intro h1 {
  max-width: 620px;
  margin: 0 auto .8rem;
  color: #1e293b;
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}
.code-hunt #code-hunt-status {
  max-width: 560px;
  margin: 0 auto;
  color: #64748b;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
}
.code-hunt__intro-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin: 1.25rem 0 0; }
.code-hunt__intro-meta span { display: inline-flex; align-items: center; justify-content: center; padding: .55rem .9rem; border-radius: 999px; background: #fff; color: #5b21b6; font-size: .86rem; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 18px rgba(30,41,59,.06); }
.code-hunt #code-hunt-start,
.code-hunt__answer-row button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(99, 102, 241, .24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.code-hunt #code-hunt-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  margin: 1.75rem auto 0;
  padding: 1rem 1.6rem;
  border-radius: 16px;
  font-size: 1.08rem;
}
.code-hunt #code-hunt-start:hover,
.code-hunt__answer-row button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(99, 102, 241, .3); }
.code-hunt__test-link { margin: 1rem 0 0; font-size: .88rem; }
.code-hunt__test-link a { color: #6366f1; font-weight: 750; text-decoration: none; }
.code-hunt__test-link a:hover { text-decoration: underline; }
.code-hunt__start-support { margin: 1.65rem auto .25rem; color: #64748b; font-size: .95rem; line-height: 1.55; }
.code-hunt__start-support strong { display: block; margin-bottom: .2rem; color: #334155; font-size: 1rem; }
.code-hunt__start-support p { margin: 0; }
.code-hunt__challenge { margin: 1.25rem auto; padding: 1rem 1.25rem; border-radius: 18px; background: #fef3c7; color: #92400e; line-height: 1.6; }

.code-hunt__card { padding-top: 1.5rem; }
.code-hunt__topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .65rem;
  color: #64748b;
  font-size: .9rem;
  font-weight: 800;
}
.code-hunt__topline p { margin: 0; }
.code-hunt__timer {
  color: #7c3aed;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.code-hunt__bar {
  height: 9px;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 99px;
  background: #f1f5f9;
}
.code-hunt__bar span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  transition: width .3s ease;
}
.code-hunt__lock { width: 72px; height: 72px; border-radius: 22px; font-size: 2rem; transition: background .2s ease; }
.code-hunt__card h2 {
  max-width: 580px;
  min-height: 2.5em;
  margin: .35rem auto 1rem;
  color: #1e293b;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 850;
  line-height: 1.3;
}
.code-hunt__card form { max-width: 590px; margin: 0 auto; }
.code-hunt__answer-label {
  display: block;
  margin-bottom: .35rem;
  color: #334155;
  font-size: .92rem;
  font-weight: 800;
  text-align: left;
}
.code-hunt__answer-row { display: flex; gap: .65rem; align-items: stretch; }
.code-hunt__answer-row input {
  flex: 1;
  min-width: 0;
  height: 58px;
  box-sizing: border-box;
  margin: 0;
  padding: .75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.code-hunt__answer-row input:focus { outline: none; border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .12); }
.code-hunt__answer-row button { min-width: 128px; min-height: 58px; padding: .75rem 1.25rem; border-radius: 14px; }
.code-hunt #code-hunt-hint {
  margin: 1rem auto .25rem;
  padding: .65rem 1rem;
  border: 0;
  background: transparent;
  color: #6366f1;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.code-hunt #code-hunt-hint:hover { color: #4338ca; }
.code-hunt #code-hunt-hint-text,
.code-hunt #code-hunt-feedback { min-height: 1.45em; margin: .45rem 0 0; color: #475569; font-weight: 700; }
.code-hunt #code-hunt-hint-notice { min-height: 1.2em; margin: .15rem 0 0; color: #94a3b8; font-size: .78rem; font-weight: 700; }

.code-hunt__result { min-height: 520px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 0, rgba(236,72,153,.13), transparent 38%), linear-gradient(145deg, #fff 45%, #f5f3ff 100%); }
.code-hunt__result #code-hunt-payoff { width: 100%; box-sizing: border-box; }
.code-hunt__payoff-mark { display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 28px; background: linear-gradient(135deg, #fef3c7, #fce7f3); font-size: 2.8rem; box-shadow: 0 14px 32px rgba(124,58,237,.16); transform: rotate(-3deg); }
.code-hunt__payoff-eyebrow { margin: 0 0 .5rem !important; color: #7c3aed; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.code-hunt__result #code-hunt-payoff h2 { max-width: none; margin: 0 auto .65rem; color: #1e293b; font-size: clamp(1.35rem, 3.8vw, 2.15rem); font-weight: 950; letter-spacing: -.01em; line-height: 1.08; white-space: nowrap; }
.code-hunt__payoff-lead { margin: 0 auto 1.5rem !important; color: #64748b; font-size: 1.05rem; }
.code-hunt__result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; max-width: 560px; margin: 0 auto 1.25rem; }
.code-hunt__result-stats div { padding: 1rem .65rem; border: 1px solid #e9e5ff; border-radius: 18px; background: rgba(255,255,255,.84); box-shadow: 0 8px 22px rgba(30,41,59,.06); }
.code-hunt__result-stats span { display: block; margin: 0 auto .3rem; color: #64748b; font-size: .76rem; font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }
.code-hunt__result-stats strong { display: block; color: #4c1d95; font-size: clamp(1.2rem, 4vw, 1.65rem); font-weight: 950; font-variant-numeric: tabular-nums; }
.code-hunt__comparison { margin: 0 auto 1rem; color: #334155; font-weight: 850; }
.code-hunt__payoff-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.code-hunt__result #code-hunt-payoff button {
  margin: 0;
  padding: .9rem 1.35rem;
  border: 0;
  border-radius: 14px;
  background: #7c3aed;
  color: #fff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(124, 58, 237, .2);
  cursor: pointer;
}
.code-hunt__result #code-hunt-payoff .code-hunt__share { flex-basis: 100%; max-width: 360px; padding: 1rem 1.5rem; background: linear-gradient(135deg, #7c3aed, #ec4899); font-size: 1.02rem; }
.code-hunt__result #code-hunt-payoff button:not(.code-hunt__share) { background: #fff; color: #4f46e5; border: 2px solid #e0e7ff; box-shadow: none; }
.code-hunt__result #code-hunt-payoff .code-hunt__replay { padding: .65rem 1rem; border-color: transparent; background: transparent; color: #64748b; font-size: .92rem; font-weight: 800; }
.code-hunt__share-feedback { min-height: 1.45em; margin: .85rem 0 0; color: #15803d; font-size: .9rem; font-weight: 800; }
.code-hunt__share-feedback.is-error { color: #b91c1c; }
.code-hunt__result #code-hunt-payoff button:hover { transform: translateY(-2px); }

@media (max-width: 560px) {
  .code-hunt { padding: .75rem .75rem 3rem; }
  .code-hunt__intro, .code-hunt__card, .code-hunt__result { border-radius: 24px; }
  .code-hunt__topline { align-items: flex-start; font-size: .82rem; text-align: left; }
  .code-hunt__topline p:last-child { text-align: right; }
  .code-hunt__answer-row { display: grid; grid-template-columns: 1fr; }
  .code-hunt__answer-row button { width: 100%; }
  .code-hunt__card h2 { margin-bottom: .65rem; }
  .code-hunt__result { min-height: 540px; padding-left: 1rem; padding-right: 1rem; }
  .code-hunt__result-stats { gap: .45rem; }
  .code-hunt__result-stats div { padding: .85rem .35rem; border-radius: 14px; }
  .code-hunt__payoff-actions button { width: 100%; max-width: 360px; }
  .code-hunt__result #code-hunt-payoff h2 { font-size: clamp(1.1rem, 5.2vw, 1.65rem); letter-spacing: 0; }
}

/* Code Hunt Hub Layout */
.code-hunt-hub-layout {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  box-sizing: border-box;
}
.code-hunt-hub-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}
.code-hunt-hub-kicker {
  display: inline-block;
  margin-bottom: .6rem;
  color: #7c3aed;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.code-hunt-hub-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  color: #1e293b;
  line-height: 1.1;
}
.code-hunt-hub-header p {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Hub Grid */
.code-hunt-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Hub Card */
.code-hunt-hub-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #fbcfe8;
  border-radius: 26px;
  background: radial-gradient(circle at 85% 15%, rgba(236,72,153,.07), transparent 32%), linear-gradient(135deg, #fff7fc, #f5f3ff);
  box-shadow: 0 12px 30px rgba(124,58,237,.06);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.code-hunt-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(124,58,237,.12);
}
.code-hunt-hub-card__visual {
  width: 100%;
  padding: 1.25rem;
  box-sizing: border-box;
  background: rgba(255,255,255,.45);
  border-bottom: 1px solid #ede9fe;
  text-align: center;
}
.code-hunt-hub-card__lock {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto .75rem;
  border-radius: 18px;
  background: linear-gradient(135deg,#fdf2f8,#ede9fe);
  font-size: 1.5rem;
}
.code-hunt-hub-card__progress {
  height: 6px;
  margin: 0 auto .75rem;
  max-width: 180px;
  overflow: hidden;
  border-radius: 99px;
  background: #e2e8f0;
}
.code-hunt-hub-card__progress span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#8b5cf6,#ec4899);
}
.code-hunt-hub-card__question-label {
  display: block;
  margin-bottom: .45rem;
  color: #1e293b;
  font-size: 1.15rem;
  font-weight: 850;
}
.code-hunt-hub-card__answer-field {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 160px);
  height: 38px;
  margin: 0 auto;
  box-sizing: border-box;
  border: 2px solid #c4b5fd;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font-size: .95rem;
  font-weight: 950;
  letter-spacing: .06em;
  box-shadow: 0 4px 10px rgba(124,58,237,.06);
}
.code-hunt-hub-card__answer-field span {
  display: inline-block;
  overflow: hidden;
  width: 0;
  white-space: nowrap;
  animation: home-code-type 4s steps(5, end) infinite;
}
.code-hunt-hub-card__answer-field i {
  width: 2px;
  height: 18px;
  margin-left: 2px;
  background: #ec4899;
  animation: home-code-caret .7s step-end infinite;
}

.code-hunt-hub-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  box-sizing: border-box;
}
.code-hunt-hub-card__content h2 {
  margin: 0 0 .5rem;
  color: #1e293b;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}
.code-hunt-hub-card__content p {
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.5;
  flex: 1;
  text-align: left;
}
.code-hunt-hub-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.code-hunt-hub-card__meta span {
  padding: .35rem .65rem;
  border-radius: 999px;
  background: #fff;
  color: #5b21b6;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(30,41,59,.04);
}
.code-hunt-hub-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg,#7c3aed,#ec4899);
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(124,58,237,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.code-hunt-hub-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(124,58,237,.24);
}
