@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,800&family=DM+Sans:wght@400;500;700;800&display=swap');

:root {
  --canvas: #F5F1E7;
  --canvas-alt: #EFE9DB;
  --ink: #22201C;
  --forest: #2E5141;
  --forest-light: #3C5C4E;
  --coral: #C8512E;
  --mustard: #F0C24B;
  --rule: #D6D1C4;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-hard: 3px 3px 0 0 rgba(34,32,28,.20);
  --shadow-hard-lg: 4px 4px 0 0 rgba(34,32,28,.14);
  --f-display: 'Bricolage Grotesque', sans-serif;
  --f-body: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, rgba(45, 74, 62, 0.16) 0 70px, transparent 71px),
    radial-gradient(circle at 93% 8%, rgba(255, 201, 64, 0.24) 0 86px, transparent 87px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.035) 1px, transparent 1px),
    linear-gradient(var(--canvas), var(--canvas));
  background-size: auto, auto, 48px 48px, auto;
}
button { font: inherit; }
a { color: inherit; }

.nc-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2.75rem);
}

.nc-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.nc-brand { display: flex; align-items: center; gap: 0.8rem; }
.nc-mark { position: relative; width: 38px; height: 38px; flex: none; }
.nc-mark::before,
.nc-mark::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--ink); }
.nc-mark::before { background: var(--mustard); transform: rotate(-13deg); }
.nc-mark::after { background: var(--forest); border-radius: 50%; transform: rotate(15deg) scale(0.82); opacity: 0.92; }

.nc-brand h1,
.nc-title,
.nc-card h2,
.nc-reward h2,
.nc-target-number {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
.nc-brand h1 { font-size: clamp(1.45rem, 4vw, 2rem); }
.nc-brand p,
.nc-kicker {
  margin: 0;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nc-link,
.nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
  min-height: 44px;
  padding: 0.78rem 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: 0.15s ease-in-out;
}
.nc-link:hover,
.nc-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
.nc-link:focus-visible,
.nc-btn:focus-visible,
.nc-line-stage:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.nc-btn--primary { background: var(--coral); color: var(--ink); }
.nc-btn--forest { background: var(--forest); color: var(--canvas); }
.nc-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.nc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  margin-bottom: 1.5rem;
}
.nc-title { font-size: clamp(2.45rem, 6vw, 4.6rem); max-width: 8.5ch; }
.nc-title span { background-image: linear-gradient(transparent 65%, var(--mustard) 65%); padding: 0 4px; }
.nc-lede {
  color: #444;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
  max-width: 54ch;
  margin: 1.25rem 0 0;
}

.nc-map-card {
  position: relative;
  min-height: 220px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--canvas-alt);
  box-shadow: var(--shadow-hard-lg);
  overflow: hidden;
}
.nc-map-card::before {
  content: '';
  position: absolute;
  left: 22px;
  right: 22px;
  top: 50%;
  height: 30px;
  background: repeating-linear-gradient(90deg, var(--forest) 0 26px, var(--mustard) 26px 42px, var(--forest) 42px 66px);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-8deg);
}
.nc-map-card::after {
  content: '';
  position: absolute;
  width: 116px;
  height: 116px;
  right: 44px;
  top: 35px;
  background: var(--forest);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-hard);
}
.nc-stamp {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  background: var(--mustard);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 0.45rem 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.nc-progress-wrap { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.nc-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nc-progress { height: 18px; border: 2px solid var(--ink); background: var(--canvas-alt); border-radius: 999px; overflow: hidden; }
.nc-progress span { display: block; height: 100%; width: var(--pct, 0%); background: linear-gradient(90deg, var(--forest), var(--mustard)); }

.nc-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-hard-lg);
  padding: clamp(1rem, 3vw, 2rem);
}
.nc-card h2 { font-size: clamp(1.7rem, 4vw, 2.55rem); margin-bottom: 0.75rem; }
.nc-card p { margin: 0; color: #444; font-weight: 500; }

.nc-play-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.nc-target-card { display: grid; gap: 1rem; align-content: start; }
.nc-target-number {
  display: inline-flex;
  align-self: start;
  width: fit-content;
  background: var(--mustard);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 0.55rem 0.9rem;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
}
.nc-series {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}
.nc-stone,
.nc-gap {
  min-width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--canvas-alt);
  box-shadow: 2px 2px 0 rgba(34,32,28,.20);
  font-weight: 900;
}
.nc-gap { background: var(--mustard); border-radius: var(--radius); }
.nc-mini-label {
  font-size: 0.74rem;
  font-weight: 900;
  color: #555;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.nc-work-card { display: grid; gap: 1rem; }
.nc-instruction { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nc-count-pill {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--canvas-alt);
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 900;
}

.nc-line-stage {
  display: grid;
  gap: 1rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--canvas-alt);
  padding: clamp(1rem, 4vw, 2rem);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  touch-action: manipulation;
}
.nc-line-wrap {
  position: relative;
  height: 150px;
  min-width: 0;
}
.nc-river {
  position: absolute;
  left: 0;
  right: 0;
  top: 66px;
  height: 18px;
  background: var(--forest);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.nc-tick {
  position: absolute;
  top: 48px;
  transform: translateX(-50%);
  width: 2px;
  height: 52px;
  background: var(--ink);
}
.nc-tick span {
  position: absolute;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}
.nc-known {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mustard);
  box-shadow: 2px 2px 0 rgba(34,32,28,.20);
}
.nc-marker {
  position: absolute;
  top: 15px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  gap: 0.35rem;
  pointer-events: none;
}
.nc-marker b {
  background: var(--coral);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
  font-family: var(--f-display);
  font-size: 1.2rem;
}
.nc-marker i {
  display: block;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid var(--coral);
  filter: drop-shadow(2px 2px 0 rgba(34,32,28,.20));
}
.nc-controls { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.nc-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: center; }

.nc-feedback,
.nc-success {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-hard);
}
.nc-feedback { background: var(--canvas-alt); display: grid; gap: 1rem; }
.nc-feedback h3,
.nc-success strong { font-family: var(--f-display); font-size: 1.35rem; margin: 0 0 0.25rem; display: block; }
.nc-feedback p,
.nc-success p { margin: 0; color: #444; }
.nc-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.nc-compare-panel { background: var(--canvas); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.75rem; }
.nc-success { background: var(--mustard); }
.nc-success p { color: var(--ink); }

.nc-reward {
  display: grid;
  gap: 1.35rem;
  max-width: 840px;
  margin: 2rem auto 0;
  text-align: center;
}
.nc-reward h2 { font-size: clamp(2.4rem, 8vw, 5rem); }
.nc-reward p { margin: 0 auto; max-width: 56ch; color: #444; font-size: 1.1rem; font-weight: 500; }
.nc-reward-map {
  min-height: 220px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 26% 52%, var(--forest) 0 54px, transparent 55px),
    radial-gradient(circle at 58% 42%, var(--mustard) 0 44px, transparent 45px),
    linear-gradient(100deg, transparent 0 20%, var(--forest) 20% 25%, transparent 25% 48%, var(--coral) 48% 53%, transparent 53%),
    linear-gradient(90deg, rgba(26, 26, 26, 0.12) 1px, transparent 1px),
    var(--canvas-alt);
  background-size: auto, auto, auto, 34px 34px, auto;
  box-shadow: var(--shadow-hard-lg);
  position: relative;
}
.nc-reward-map::after {
  content: 'CURRENT CHARTED';
  position: absolute;
  right: 28px;
  bottom: 28px;
  background: var(--mustard);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 0.55rem 0.8rem;
  font-weight: 900;
  transform: rotate(-6deg);
}

@media (max-width: 860px) {
  .nc-hero,
  .nc-play-grid { grid-template-columns: 1fr; }
  .nc-map-card { min-height: 180px; order: -1; }
}

@media (max-width: 560px) {
  .nc-shell { padding: 1rem; }
  .nc-topbar { align-items: flex-start; flex-direction: column; }
  .nc-link,
  .nc-actions .nc-btn,
  .nc-controls .nc-btn { width: 100%; }
  .nc-card { padding: 1rem; box-shadow: var(--shadow-hard); }
  .nc-title { font-size: clamp(2.35rem, 14vw, 3.2rem); }
  .nc-compare { grid-template-columns: 1fr; }
  .nc-line-wrap { height: 170px; }
  .nc-tick span { font-size: 0.68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .nc-link:hover,
  .nc-btn:hover { transform: none !important; }
}
