:root {
  --pn-ink: #201a12;
  --pn-muted: #766652;
  --pn-paper: #efe2c7;
  --pn-panel: #fff4dc;
  --pn-line: #cfb88e;
  --pn-leaf: #4c7d3f;
  --pn-sky: #3f7896;
  --pn-sun: #d2a33a;
  --pn-clay: #ad5f32;
  --pn-berry: #963f38;
  --pn-stone: #625274;
  --pn-shadow: 0 18px 38px rgba(32, 26, 18, 0.22);
}

* {
  box-sizing: border-box;
}

body.pistes-natura-body {
  margin: 0;
  background: var(--pn-paper);
  color: var(--pn-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pn-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(239, 226, 199, 0.88), rgba(215, 193, 150, 0.96)),
    repeating-linear-gradient(90deg, rgba(77, 54, 32, 0.05) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 12% 8%, rgba(76, 125, 63, 0.26), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(173, 95, 50, 0.22), transparent 28%);
}

.pn-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(36, 49, 43, 0.1);
  background: rgba(255, 244, 220, 0.92);
  backdrop-filter: blur(14px);
}

.pn-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.pn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pn-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #3c2b18;
  border-radius: 50%;
  background: linear-gradient(145deg, #d6a84f, #7b4a22);
  color: #fff4dc;
  font-weight: 800;
}

.pn-brand-text {
  display: grid;
  gap: 1px;
}

.pn-brand-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.pn-brand-subtitle {
  color: var(--pn-muted);
  font-size: 0.82rem;
}

.pn-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pn-step-text {
  color: var(--pn-muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.pn-wedges {
  display: grid;
  grid-template-columns: repeat(6, 18px);
  gap: 4px;
}

.pn-wedge {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(36, 49, 43, 0.28);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(45deg);
  background: #f1eadc;
}

.pn-wedge.is-done {
  border-color: rgba(36, 49, 43, 0.45);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.3);
}

.pn-wedge[data-wedge="arbres"].is-done {
  background: var(--pn-leaf);
}

.pn-wedge[data-wedge="plantes"].is-done {
  background: var(--pn-clay);
}

.pn-wedge[data-wedge="nuvols"].is-done {
  background: var(--pn-sky);
}

.pn-wedge[data-wedge="petjades"].is-done {
  background: var(--pn-stone);
}

.pn-wedge[data-wedge="riu"].is-done {
  background: var(--pn-sun);
}

.pn-wedge[data-wedge="final"].is-done {
  background: var(--pn-berry);
}

.pn-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

.pn-view[hidden],
.pn-modal[hidden] {
  display: none;
}

.pn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  gap: 24px;
  align-items: stretch;
}

.pn-welcome {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 92px);
  align-items: center;
  justify-items: center;
}

.pn-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: clamp(24px, 6vw, 68px) 0;
}

.pn-welcome-copy {
  align-items: center;
  min-height: auto;
  text-align: center;
}

.pn-kicker {
  margin: 0 0 10px;
  color: var(--pn-clay);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pn-title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 0.94;
}

.pn-lead {
  max-width: 56ch;
  margin: 20px 0 0;
  color: #405048;
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  line-height: 1.55;
}

.pn-welcome-image {
  display: block;
  width: min(72vw, 340px);
  margin: 22px auto 0;
  filter: drop-shadow(0 20px 26px rgba(32, 26, 18, 0.22));
}

.pn-game-facts {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pn-game-facts span {
  border: 1px solid rgba(32, 26, 18, 0.14);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--pn-ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.pn-rule-list {
  display: grid;
  gap: 10px;
  max-width: 58ch;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pn-welcome .pn-rule-list {
  text-align: left;
}

.pn-rule-list li {
  position: relative;
  padding-left: 28px;
  color: #405048;
  font-weight: 720;
  line-height: 1.35;
}

.pn-rule-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(32, 26, 18, 0.68);
  border-radius: 50%;
  background: var(--pn-sun);
  box-shadow: inset 0 0 0 3px #fff4dc;
}

.pn-js-warning {
  display: none;
  max-width: 42ch;
  margin: 18px 0 0;
  border: 1px solid rgba(150, 63, 56, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff0ec;
  color: #7d2f29;
  font-weight: 800;
}

.no-js .pn-js-warning {
  display: block;
}

.pn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pn-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: var(--pn-ink);
  color: #fffdf6;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.pn-button:hover {
  color: #fffdf6;
  transform: translateY(-1px);
}

.pn-button.secondary {
  border: 1px solid rgba(36, 49, 43, 0.18);
  background: #fffdf6;
  color: var(--pn-ink);
}

.pn-button.ghost {
  min-height: 38px;
  border: 1px solid rgba(36, 49, 43, 0.16);
  background: transparent;
  color: var(--pn-ink);
  font-size: 0.92rem;
}

.pn-card {
  border: 1px solid rgba(69, 47, 25, 0.18);
  border-radius: 8px;
  background: var(--pn-panel);
  box-shadow: var(--pn-shadow);
}

.pn-finale-card {
  overflow: hidden;
  text-align: center;
}

.pn-finale-burst {
  position: relative;
  width: min(250px, 70vw);
  height: 150px;
  margin: 0 auto 14px;
}

.pn-finale-burst::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 118px;
  border: 8px solid #4a3721;
  border-radius: 50%;
  background: conic-gradient(
    var(--pn-leaf) 0 60deg,
    var(--pn-clay) 60deg 120deg,
    var(--pn-sky) 120deg 180deg,
    var(--pn-stone) 180deg 240deg,
    var(--pn-sun) 240deg 300deg,
    #fff4dc 300deg 360deg
  );
  box-shadow: 0 18px 26px rgba(32, 26, 18, 0.22);
  content: "";
  transform: translate(-50%, -50%);
  animation: pn-finale-token 1.2s ease-out both;
}

.pn-finale-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 3px;
  background: var(--pn-sun);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: pn-finale-spark 1.25s ease-out infinite;
}

.pn-finale-burst span:nth-child(1) {
  --pn-x: -108px;
  --pn-y: -46px;
  background: var(--pn-leaf);
}

.pn-finale-burst span:nth-child(2) {
  --pn-x: 96px;
  --pn-y: -58px;
  background: var(--pn-clay);
  animation-delay: 0.12s;
}

.pn-finale-burst span:nth-child(3) {
  --pn-x: -84px;
  --pn-y: 56px;
  background: var(--pn-sky);
  animation-delay: 0.24s;
}

.pn-finale-burst span:nth-child(4) {
  --pn-x: 102px;
  --pn-y: 52px;
  background: var(--pn-stone);
  animation-delay: 0.36s;
}

.pn-finale-burst span:nth-child(5) {
  --pn-x: -12px;
  --pn-y: -78px;
  background: var(--pn-berry);
  animation-delay: 0.48s;
}

.pn-finale-burst span:nth-child(6) {
  --pn-x: 8px;
  --pn-y: 80px;
  animation-delay: 0.6s;
}

.pn-final-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.pn-final-form label,
.pn-final-form fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(69, 47, 25, 0.16);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf0;
}

.pn-final-form span,
.pn-final-form legend {
  color: var(--pn-ink);
  font-weight: 900;
}

.pn-final-form input[type="text"],
.pn-final-form input[type="file"],
.pn-final-form textarea {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(69, 47, 25, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: #fffdf6;
  color: var(--pn-ink);
  font: inherit;
}

.pn-final-form textarea {
  min-height: 110px;
  resize: vertical;
}

.pn-final-form.is-submitting {
  opacity: 0.72;
  pointer-events: none;
}

.pn-submit-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--pn-ink);
  font-weight: 900;
}

.pn-submit-status::before,
.pn-button.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: pn-spin 0.8s linear infinite;
}

.pn-submit-status::before {
  border-color: rgba(69, 47, 25, 0.22);
  border-top-color: var(--pn-leaf);
}

.pn-button.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  cursor: wait;
}

.pn-rating-choice {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pn-rating-choice label {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(69, 47, 25, 0.18);
  padding: 6px;
  font-weight: 900;
}

.pn-rating-choice label:has(input:checked) {
  border-color: var(--pn-leaf);
  background: #e8f2dc;
}

.pn-token {
  position: relative;
  width: min(230px, 68vw);
  aspect-ratio: 1;
  margin: 2px auto 4px;
  border: 12px solid #4a3721;
  border-radius: 50%;
  background: radial-gradient(circle, #5b3b20 0 18%, #9a6a31 19% 33%, #2d2418 34% 38%, transparent 39%);
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.18), 0 18px 34px rgba(32, 26, 18, 0.24);
}

.pn-token-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  border: 2px solid rgba(32, 26, 18, 0.36);
  border-radius: 48% 10% 48% 10%;
  transform-origin: 0 0;
  box-shadow: inset 0 8px 12px rgba(255, 255, 255, 0.22);
}

.pn-token-piece.leaf {
  background: var(--pn-leaf);
  transform: rotate(-90deg) skew(-14deg);
}

.pn-token-piece.sky {
  background: var(--pn-sky);
  transform: rotate(-30deg) skew(-14deg);
}

.pn-token-piece.sun {
  background: var(--pn-sun);
  transform: rotate(30deg) skew(-14deg);
}

.pn-token-piece.clay {
  background: var(--pn-clay);
  transform: rotate(90deg) skew(-14deg);
}

.pn-token-piece.berry {
  background: var(--pn-berry);
  transform: rotate(150deg) skew(-14deg);
}

.pn-token-piece.stone {
  background: var(--pn-stone);
  transform: rotate(210deg) skew(-14deg);
}

.pn-map-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 16px;
}

.pn-map-card img,
.pn-clue-image,
.pn-nature-card img,
.pn-stop-image {
  display: block;
  width: 100%;
  height: auto;
}

.pn-map-card img {
  border-radius: 8px;
}

.pn-map-strip {
  display: grid;
  gap: 10px;
}

.pn-route-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.pn-route-point {
  position: relative;
  min-height: 62px;
  border-radius: 8px;
  padding: 9px;
  border: 1px solid rgba(36, 49, 43, 0.13);
  background: #f5eedf;
}

.pn-route-point.is-current {
  outline: 3px solid rgba(79, 141, 88, 0.35);
  background: #fffdf6;
}

.pn-route-point.is-done {
  background: #e9f0df;
}

.pn-route-index {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--pn-ink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.pn-route-label {
  display: block;
  margin-top: 6px;
  color: var(--pn-ink);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15;
}

.pn-panel {
  display: grid;
  gap: 20px;
}

.pn-step-head {
  display: grid;
  gap: 10px;
}

.pn-step-count {
  color: var(--pn-clay);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pn-step-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
}

.pn-step-lead {
  max-width: 68ch;
  margin: 0;
  color: #405048;
  font-size: 1.05rem;
  line-height: 1.55;
}

.pn-clue-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: 20px;
  align-items: start;
}

.pn-clue-image {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.pn-clue-image.portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #1d1710;
}

.pn-clue-image.contain {
  object-fit: contain;
  background: #fff8e8;
}

.pn-task {
  padding: 18px;
}

.pn-task h3 {
  margin: 0;
  font-size: 1.28rem;
}

.pn-task p {
  color: #405048;
  line-height: 1.5;
}

.pn-small-note {
  color: var(--pn-muted);
  font-size: 0.92rem;
}

.pn-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 16px;
}

.pn-choice {
  position: relative;
  width: 100%;
  min-height: 0;
  border: 0;
  border-left: 4px solid rgba(76, 125, 63, 0.3);
  border-radius: 0;
  padding: 8px 10px 8px 34px;
  background: transparent;
  color: var(--pn-ink);
  font: inherit;
  font-weight: 780;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.pn-choice::before {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(32, 26, 18, 0.34);
  border-radius: 50%;
  background: #fffdf6;
  content: "";
  transform: translateY(-50%);
}

.pn-choice:hover {
  background: rgba(76, 125, 63, 0.08);
}

.pn-choice.is-selected {
  border-color: var(--pn-leaf);
  outline: 0;
  background: rgba(76, 125, 63, 0.12);
  color: #243c26;
}

.pn-choice.is-selected::before {
  border-color: var(--pn-leaf);
  background: radial-gradient(circle, var(--pn-leaf) 0 45%, #fffdf6 48%);
}

.pn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pn-match,
.pn-match-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.pn-match.compact {
  grid-template-columns: 1fr;
}

.pn-match h3,
.pn-match-board h3 {
  margin: 0 0 8px;
  font-size: 1.34rem;
}

.pn-match p,
.pn-match-board p {
  color: #405048;
  line-height: 1.5;
}

.pn-match-image {
  display: block;
  width: 100%;
  border: 1px solid rgba(32, 26, 18, 0.12);
  border-radius: 8px;
  background: #fffaf0;
}

.pn-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pn-tile-grid-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pn-match-tile {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  max-height: 230px;
  min-height: 0;
  justify-self: center;
  border: 3px solid rgba(32, 26, 18, 0.18);
  border-radius: 8px;
  background-color: #fffaf0;
  box-shadow: inset 0 8px 16px rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.pn-match-tile img {
  display: block;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.pn-match-tile span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 30px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(32, 26, 18, 0.84);
  color: #fff4dc;
  font-size: 0.78rem;
  font-weight: 900;
}

.pn-match-tile.is-selected {
  border-color: var(--pn-sun);
  outline: 4px solid rgba(210, 163, 58, 0.28);
}

.pn-match-tile.is-matched {
  border-color: var(--pn-leaf);
  outline: 4px solid rgba(76, 125, 63, 0.24);
  cursor: default;
}

.pn-match-tile.is-pop {
  animation: pn-pop 0.55s ease both;
}

.pn-match-tile.is-shake {
  animation: pn-shake 0.45s ease both;
}

.pn-track-guide {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.pn-track-guide h3 {
  margin: 0;
  font-size: 1.28rem;
}

.pn-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pn-guide-grid article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(32, 26, 18, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: #fffaf0;
}

.pn-guide-grid img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.pn-guide-grid strong {
  display: block;
  color: var(--pn-ink);
  font-weight: 950;
}

.pn-guide-grid p {
  margin: 2px 0 0;
  color: #405048;
  font-size: 0.86rem;
  line-height: 1.25;
}

.pn-match-form {
  display: grid;
  gap: 12px;
}

.pn-match-form label {
  display: grid;
  gap: 6px;
  color: var(--pn-ink);
  font-weight: 900;
}

.pn-match-form select {
  min-height: 44px;
  border: 2px solid rgba(32, 26, 18, 0.22);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fffaf0;
  color: var(--pn-ink);
  font: inherit;
  font-weight: 750;
}

.pn-match-form select:focus {
  outline: 3px solid rgba(210, 163, 58, 0.35);
  border-color: #8d5d23;
}

.pn-nature-card {
  overflow: hidden;
  border: 1px solid rgba(36, 49, 43, 0.12);
  border-radius: 8px;
  background: #fffdf6;
}

.pn-nature-card img {
  aspect-ratio: 1;
  object-fit: contain;
  padding: 12px;
  background: #f7f0e4;
}

.pn-nature-body {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.pn-nature-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.pn-nature-body p {
  margin: 0;
  color: #4b594f;
  font-size: 0.9rem;
  line-height: 1.35;
}

.pn-cloud-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
}

.pn-cloud-card h3 {
  margin: 0;
  font-size: 1.28rem;
}

.pn-cloud-card p {
  margin: 0;
  color: #405048;
  line-height: 1.45;
}

.pn-cloud-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pn-cloud-option {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 2px solid rgba(32, 26, 18, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: #fffaf0;
  cursor: pointer;
}

.pn-cloud-option input {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 20px;
  height: 20px;
  accent-color: var(--pn-sky);
}

.pn-cloud-option img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  background: #f7f0e4;
}

.pn-cloud-option span {
  color: var(--pn-ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.15;
}

.pn-cloud-option:has(input:checked) {
  border-color: var(--pn-sky);
  outline: 4px solid rgba(63, 120, 150, 0.22);
  background: #eef8fb;
}

.pn-accordion {
  display: grid;
  gap: 10px;
}

.pn-accordion-item {
  overflow: hidden;
  border: 1px solid rgba(32, 26, 18, 0.16);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--pn-shadow);
}

.pn-accordion-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 15px;
  background: linear-gradient(180deg, #fff4dc, #f0dfbb);
  color: var(--pn-ink);
  font-weight: 950;
  cursor: pointer;
}

.pn-accordion-item summary span {
  min-width: 0;
}

.pn-summary-thumb {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(32, 26, 18, 0.14);
  border-radius: 8px;
  background: #fffaf0;
  object-fit: contain;
}

.pn-accordion-item summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(32, 26, 18, 0.12);
  font-size: 1.1rem;
}

.pn-accordion-item[open] summary::after {
  content: "−";
}

.pn-accordion-body {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.pn-accordion-body img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f0e4;
}

.pn-accordion-body p {
  margin: 0 0 8px;
  color: #405048;
  line-height: 1.42;
}

.pn-accordion-compact .pn-accordion-item {
  box-shadow: none;
}

.pn-accordion-compact .pn-accordion-item summary {
  min-height: 46px;
  padding: 10px 12px;
}

.pn-accordion-compact .pn-accordion-body {
  grid-template-columns: minmax(0, 1fr);
  padding: 12px;
}

.pn-accordion-compact .pn-accordion-body img {
  aspect-ratio: 16 / 9;
  max-height: 320px;
  object-fit: contain;
}

.pn-accordion-compact .pn-accordion-body p {
  font-size: 0.92rem;
}

.pn-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pn-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid rgba(36, 49, 43, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: #fffdf6;
  cursor: pointer;
}

.pn-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--pn-leaf);
}

.pn-check span {
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.25;
}

.pn-stop {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.pn-stop-image {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 8px;
}

.pn-lookout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 20px;
  align-items: stretch;
}

.pn-lookout-scene {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(104, 155, 179, 0.72) 0 43%, rgba(139, 116, 81, 0.9) 44% 100%),
    #d8c39b;
}

.pn-lookout-photo {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.pn-landscape {
  position: absolute;
  inset: 0;
}

.pn-sky-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  background:
    radial-gradient(ellipse at 24% 36%, rgba(255, 250, 240, 0.88) 0 12%, transparent 13%),
    radial-gradient(ellipse at 36% 30%, rgba(255, 250, 240, 0.65) 0 9%, transparent 10%),
    linear-gradient(180deg, #87b6ca, #c6d4c3);
}

.pn-mountain-band {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 22%;
  height: 42%;
  background:
    linear-gradient(145deg, transparent 0 38%, #706f55 39% 52%, transparent 53%),
    linear-gradient(30deg, transparent 0 30%, #4f6956 31% 47%, transparent 48%),
    linear-gradient(180deg, transparent 0 42%, #897b57 43% 100%);
  opacity: 0.96;
}

.pn-village-dot {
  position: absolute;
  left: 54%;
  bottom: 24%;
  width: 74px;
  height: 34px;
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(90deg, transparent 0 12%, #fff4dc 13% 23%, transparent 24% 31%, #fff4dc 32% 42%, transparent 43% 52%, #fff4dc 53% 63%, transparent 64%),
    linear-gradient(180deg, #8d5d23 0 32%, #e8d4aa 33% 100%);
  box-shadow: 0 10px 0 rgba(32, 26, 18, 0.14);
}

.pn-telescope {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 2;
  width: min(250px, 74%);
  height: 82px;
  transform: translate(-50%, -50%) rotate(-9deg);
  border: 8px solid #3c2b18;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #6c4528, #d2a33a 22%, #8d5d23 47%, #2e2116 48% 54%, #ad5f32 55%, #f2cf72);
  box-shadow: 0 20px 26px rgba(32, 26, 18, 0.32);
}

.pn-telescope::before,
.pn-telescope::after {
  content: "";
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translateY(-50%);
}

.pn-telescope::before {
  left: -22px;
  width: 54px;
  height: 54px;
  border: 7px solid #2e2116;
  background: rgba(255, 244, 220, 0.34);
}

.pn-telescope::after {
  right: -18px;
  width: 44px;
  height: 44px;
  border: 6px solid #2e2116;
  background: rgba(255, 250, 240, 0.18);
}

.pn-telescope span {
  position: absolute;
  left: 51%;
  bottom: -104px;
  width: 10px;
  height: 110px;
  border-radius: 999px;
  background: #3c2b18;
  transform: rotate(9deg);
  transform-origin: top;
}

.pn-lookout-checks {
  margin: 14px 0;
}

.pn-fact-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pn-fact-list li {
  border-left: 4px solid var(--pn-sky);
  padding: 8px 0 8px 12px;
  color: #405048;
}

.pn-watch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.pn-watch-list > div,
.pn-watch-panel {
  border: 1px solid rgba(32, 26, 18, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: #fffaf0;
}

.pn-watch-panel-wide {
  grid-column: 1 / -1;
}

.pn-watch-list h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
}

.pn-watch-list ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #405048;
}

.pn-path-clues {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.pn-path-clues h3 {
  margin: 0;
  font-size: 1.28rem;
}

.pn-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pn-path-grid figure {
  display: grid;
  gap: 7px;
  margin: 0;
}

.pn-path-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 3px solid rgba(32, 26, 18, 0.18);
  border-radius: 8px;
  background: #fffaf0;
}

.pn-path-grid figcaption {
  color: var(--pn-ink);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.15;
}

.pn-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(22, 30, 26, 0.45);
}

.pn-modal-box {
  width: min(520px, 100%);
  border-radius: 8px;
  padding: 22px;
  background: #fffdf6;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  border: 4px solid var(--pn-line);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
}

.pn-modal-box.is-animated {
  animation: pn-feedback-in 0.28s ease-out forwards;
}

.pn-modal-box.is-success {
  border-color: #4c7d3f;
  background: linear-gradient(180deg, #f5ffe9, #fffaf0);
}

.pn-modal-box.is-error {
  border-color: #963f38;
  background: linear-gradient(180deg, #fff0eb, #fffaf0);
}

.pn-modal-box.is-hint {
  border-color: #d2a33a;
  background: linear-gradient(180deg, #fff7d8, #fffaf0);
}

.pn-modal-box.is-info {
  border-color: #3f7896;
  background: linear-gradient(180deg, #eef8ff, #fffaf0);
}

.pn-modal-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--pn-ink);
  color: #fff4dc;
  font-size: 1.45rem;
  font-weight: 1000;
  box-shadow: 0 8px 18px rgba(32, 26, 18, 0.2);
}

.pn-modal-box.is-success .pn-modal-icon {
  background: #4c7d3f;
}

.pn-modal-box.is-error .pn-modal-icon {
  background: #963f38;
}

.pn-modal-box.is-hint .pn-modal-icon {
  background: #d2a33a;
  color: #201a12;
}

.pn-modal-box.is-info .pn-modal-icon {
  background: #3f7896;
}

.pn-modal-box h2 {
  margin: 0;
  font-size: 1.7rem;
}

.pn-modal-box p {
  color: #405048;
  line-height: 1.5;
}

.pn-modal-box a {
  color: var(--pn-ink);
  font-weight: 900;
  text-decoration-thickness: 2px;
}

.pn-modal-token {
  display: block;
  width: min(100%, 420px);
  margin: 18px auto 0;
  border-radius: 8px;
  filter: drop-shadow(0 14px 18px rgba(32, 26, 18, 0.18));
}

@keyframes pn-feedback-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pn-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.07);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pn-finale-token {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.55) rotate(-22deg);
  }
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
}

@keyframes pn-finale-spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.4);
  }
  25% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--pn-x)), calc(-50% + var(--pn-y))) rotate(220deg) scale(1);
  }
}

@keyframes pn-shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@keyframes pn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pn-modal-box.is-animated,
  .pn-match-tile.is-pop,
  .pn-match-tile.is-shake,
  .pn-finale-burst::before,
  .pn-finale-burst span,
  .pn-submit-status::before,
  .pn-button.is-loading::before {
    animation: none;
  }

  .pn-modal-box {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .pn-topbar-inner {
    width: min(100% - 20px, 1120px);
  }

  .pn-main {
    width: min(100% - 20px, 1120px);
    padding-top: 16px;
  }

  .pn-brand-subtitle {
    display: none;
  }

  .pn-step-text {
    font-size: 0.78rem;
  }

  .pn-wedges {
    grid-template-columns: repeat(4, 15px);
  }

  .pn-wedge {
    width: 15px;
    height: 15px;
  }

  .pn-hero,
  .pn-clue-layout,
  .pn-stop,
  .pn-lookout-grid,
  .pn-match,
  .pn-match-board {
    grid-template-columns: 1fr;
  }

  .pn-hero-copy {
    min-height: auto;
    padding: 28px 0 8px;
  }

  .pn-welcome {
    min-height: auto;
  }

  .pn-title {
    max-width: 9ch;
  }

  .pn-route-line,
  .pn-grid,
  .pn-checks,
  .pn-choice-grid,
  .pn-cloud-grid,
  .pn-guide-grid,
  .pn-watch-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pn-tile-grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pn-tile-grid {
    gap: 7px;
  }

  .pn-match-tile {
    max-width: 240px;
  }

  .pn-stop-image {
    min-height: 260px;
  }

  .pn-lookout-scene {
    min-height: 300px;
  }

  .pn-lookout-photo {
    min-height: 300px;
  }
}

@media (max-width: 520px) {
  .pn-topbar-inner {
    gap: 10px;
  }

  .pn-mark {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .pn-brand-title {
    font-size: 0.9rem;
  }

  .pn-progress {
    gap: 7px;
  }

  .pn-step-text {
    max-width: 72px;
    white-space: normal;
    text-align: right;
    line-height: 1.1;
  }

  .pn-route-line,
  .pn-checks,
  .pn-watch-list,
  .pn-path-grid,
  .pn-guide-grid,
  .pn-cloud-grid,
  .pn-choice-grid {
    grid-template-columns: 1fr;
  }

  .pn-accordion-body {
    grid-template-columns: 1fr;
  }

  .pn-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pn-actions {
    display: grid;
  }

  .pn-button {
    width: 100%;
  }
}
