/* ============================================================
   ADK × ADK — High Peaks Trip Desk
   A WPA park-poster meets a trail journal: night-spruce sky,
   alpenglow dawn, cream paper cards, trail-marker discs.
   ============================================================ */

:root {
  --ink:        #0d1712;   /* spruce night */
  --ink-2:      #13211a;
  --ink-soft:   #1b2c22;
  --paper:      #f3ead7;   /* trail-journal cream */
  --paper-2:    #ece0c6;
  --paper-edge: #d9c9a8;
  --ink-on-paper: #2b2416;
  --faded-on-paper: #7c6f56;
  --alpenglow:  #e07b39;   /* dawn on the summit cone */
  --amber:      #d9942b;
  --marker-red:    #b5402e;  /* ADK trail-marker discs */
  --marker-blue:   #2e5f8a;
  --marker-yellow: #d9a520;
  --spruce:     #2e5c42;
  --mist:       #9db4a6;
  --rule:       rgba(157, 180, 166, 0.18);

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Fraunces', Georgia, serif;
  --font-hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Contour-line texture over the night sky */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'><g fill='none' stroke='%239db4a6' stroke-opacity='0.055'><path d='M210 60c86 0 150 62 150 150s-64 150-150 150S60 298 60 210 124 60 210 60Z'/><path d='M210 95c66 0 115 48 115 115s-49 115-115 115S95 277 95 210 144 95 210 95Z'/><path d='M210 130c46 0 80 34 80 80s-34 80-80 80-80-34-80-80 34-80 80-80Z'/><path d='M210 165c26 0 45 19 45 45s-19 45-45 45-45-19-45-45 19-45 45-45Z'/><path d='M0 40c60-18 120 18 210 0s150-22 210-4'/><path d='M0 400c70-22 130 14 210-2s140-18 210 2'/></g></svg>");
  background-size: 420px 420px;
}

/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='300' height='300' filter='url(%23n)'/></svg>");
}

.is-hidden { display: none !important; }

a { color: var(--amber); }

/* ============================ HERO ============================ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--alpenglow);
}

.hero-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ridge-far  { animation: drift 42s ease-in-out infinite alternate; }
.ridge-mid  { animation: drift 34s ease-in-out infinite alternate-reverse; }

@keyframes drift {
  from { transform: translateX(-8px); }
  to   { transform: translateX(8px); }
}

.hero-lockup {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16vh 24px 0;
  max-width: 900px;
}

.hero-lockup > * {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-lockup > :nth-child(1) { animation-delay: 0.15s; }
.hero-lockup > :nth-child(2) { animation-delay: 0.35s; }
.hero-lockup > :nth-child(3) { animation-delay: 0.6s; }
.hero-lockup > :nth-child(4) { animation-delay: 0.85s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--mist);
}
.eyebrow b { color: var(--amber); font-weight: 800; }

.title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 15vw, 11rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.25), 0 22px 60px rgba(224, 123, 57, 0.25);
  margin: 0.5rem 0 0.75rem;
}

.title .times {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  vertical-align: 0.12em;
  color: var(--alpenglow);
  padding: 0 0.08em;
}

.subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: rgba(243, 234, 215, 0.85);
  max-width: 34em;
  margin: 0 auto;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  border: 2px solid rgba(243, 234, 215, 0.55);
  border-radius: 999px;
  padding: 0.7em 1.8em;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.hero-cta:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-2px);
}

/* ============================ PANELS ============================ */

main { position: relative; z-index: 1; }

.panel {
  max-width: 1020px;
  margin: 0 auto;
  padding: 5.5rem 24px 2rem;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
}

.section-note {
  grid-column: 2;
  color: var(--mist);
  font-style: italic;
  max-width: 46em;
}

/* Numbered trail discs in section heads */
.disc {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--paper);
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}
.disc::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(243, 234, 215, 0.65);
}
.disc-red    { background: var(--marker-red); }
.disc-blue   { background: var(--marker-blue); }
.disc-yellow { background: var(--marker-yellow); color: var(--ink); }
.disc-yellow::before { border-color: rgba(13, 23, 18, 0.5); }

/* ==================== RANGE PROFILE PICKER ==================== */

.range-card {
  background: linear-gradient(180deg, var(--ink-2), var(--ink-soft));
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1rem;
  margin-bottom: 2rem;
}

.range-readout {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  min-height: 1.8em;
  margin-bottom: 0.8rem;
}
.readout-hint { color: var(--mist); opacity: 0.6; }
.readout-rank { color: var(--mist); font-size: 0.85em; margin-left: 0.9em; }

.range-profile {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 190px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.peak-bar {
  flex: 1 0 12px;
  min-width: 12px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.peak-bar .bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--mist) 0%, var(--spruce) 55%, var(--ink-soft) 100%);
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  transform-origin: bottom;
}

.peak-bar:hover .bar,
.peak-bar:focus-visible .bar {
  opacity: 1;
  transform: scaleY(1.04);
  background: linear-gradient(180deg, #f0c689 0%, var(--alpenglow) 55%, #7c3e1e 100%);
}

.peak-bar.selected .bar {
  opacity: 1;
  background: linear-gradient(180deg, #ffd9a0 0%, var(--alpenglow) 50%, #8a4522 100%);
  box-shadow: 0 0 18px rgba(224, 123, 57, 0.5);
}

.peak-bar.selected::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marker-red);
  box-shadow: 0 0 0 2px var(--paper);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.75;
}

/* ========================= TRIP FORM ========================= */

.trip-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.1rem 1.4rem;
  align-items: end;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 0.45rem;
}

.field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--rule);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.35rem;
  padding: 0.35em 0.1em;
  transition: border-color 0.25s;
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--alpenglow);
}
.field input::placeholder { color: rgba(157, 180, 166, 0.5); font-style: italic; }

.chips {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  background: none;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover, .chip.active {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

/* The brown-and-yellow DEC trail sign as a button */
.trail-sign {
  grid-column: 1 / -1;
  justify-self: start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4c94f;
  background: linear-gradient(180deg, #63492f, #4c3722);
  border: 3px solid #f4c94f;
  outline: 3px solid #4c3722;
  border-radius: 6px;
  padding: 0.75em 1.6em;
  cursor: pointer;
  box-shadow: 0 6px 0 #2c1f11, 0 12px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.2s;
}
.trail-sign:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 8px 0 #2c1f11, 0 16px 28px rgba(0,0,0,0.5); }
.trail-sign:active { transform: translateY(4px); box-shadow: 0 2px 0 #2c1f11, 0 6px 14px rgba(0,0,0,0.5); }
.trail-sign:disabled { filter: grayscale(0.6) brightness(0.7); cursor: wait; transform: none; }
.trail-sign .sign-arrow { color: var(--paper); margin-right: 0.35em; }
.trail-sign-small { font-size: 1.05rem; box-shadow: 0 4px 0 #2c1f11, 0 8px 16px rgba(0,0,0,0.4); }

/* ======================= THE EXPEDITION ======================= */

.scout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.scout-card, .guide-card, .register-card {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0 0.08 0 0 0 0.05 0'/></filter><rect width='240' height='240' filter='url(%23p)'/></svg>"),
    linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
  color: var(--ink-on-paper);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--paper-edge) inset, 0 18px 40px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
}

.scout-card { opacity: 0; animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.scout-card:nth-child(1) { transform: rotate(-0.5deg); animation-delay: 0.05s; }
.scout-card:nth-child(2) { transform: rotate(0.4deg);  animation-delay: 0.18s; }
.scout-card:nth-child(3) { transform: rotate(-0.3deg); animation-delay: 0.31s; }

.scout-card header, .guide-card header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-bottom: 1.5px solid rgba(43, 36, 22, 0.15);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
}

.scout-card h3, .guide-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scout-role {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--faded-on-paper);
}

/* Trail-marker discs on the cards */
.marker {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--paper);
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.marker::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(243, 234, 215, 0.7);
}
.marker-red    { background: var(--marker-red); }
.marker-blue   { background: var(--marker-blue); }
.marker-yellow { background: var(--marker-yellow); color: var(--ink); }
.marker-yellow::before { border-color: rgba(13, 23, 18, 0.5); }

/* the "done" state: a little punched check on the disc */
.scout-card.done .marker::after {
  content: '✓';
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--spruce);
  color: var(--paper);
  font-size: 0.8rem;
  font-family: var(--font-body);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.scout-body {
  font-size: 0.98rem;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 36, 22, 0.3) transparent;
}

.scout-report h4, .guide-brief h4, .final-output h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--spruce);
  margin: 0.9em 0 0.4em;
}

.scout-waiting, .guide-waiting {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-style: italic;
  color: var(--faded-on-paper);
  animation: breathe 2.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.scout-card.done .scout-waiting { display: none; }

/* tiny spinning compass */
.compass {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--faded-on-paper);
  border-radius: 50%;
  position: relative;
}
.compass::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 50%;
  width: 1.5px;
  height: 6px;
  margin-left: -0.75px;
  background: var(--marker-red);
  transform-origin: 50% 5.5px;
  animation: swing 1.6s ease-in-out infinite;
}
@keyframes swing {
  0%, 100% { transform: rotate(-50deg); }
  50%      { transform: rotate(230deg); }
}

.scout-report { display: none; }
.scout-card.done .scout-report {
  display: block;
  animation: rise 0.6s cubic-bezier(0.2,0.7,0.2,1);
}
.scout-report p { margin-bottom: 0.6em; }
.scout-report p:last-child { margin-bottom: 0; }

/* the junction between scouts and guide */
.trail-junction {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2.4rem 0;
}
.junction-line {
  flex: 1;
  height: 0;
  border-top: 2px dashed rgba(157, 180, 166, 0.35);
}
.junction-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ======================== GUIDE CARD ======================== */

.guide-card {
  max-width: 760px;
  margin: 0 auto;
  transform: rotate(-0.35deg);
  position: relative;
  padding: 2rem 2.2rem;
  animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1);
}

.pin {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8654a, var(--marker-red) 60%, #6e2418);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35);
}

.guide-badge {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--paper);
  background: var(--spruce);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.guide-brief {
  font-size: 1.06rem;
  line-height: 1.65;
}
.guide-brief p { margin-bottom: 0.85em; }
.guide-brief p:last-child { margin-bottom: 0; }
.guide-brief strong { color: var(--spruce); }
.guide-brief ul { margin: 0 0 0.85em 1.2em; }
.guide-brief li { margin-bottom: 0.35em; }
.guide-brief.revealed { animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1); }

/* ====================== TRAIL REGISTER ====================== */

.register-card {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding: 2.6rem 2.4rem 2.2rem;
  transform: rotate(0.3deg);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0 0.08 0 0 0 0.05 0'/></filter><rect width='240' height='240' filter='url(%23p)'/></svg>"),
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(46, 95, 138, 0.16) 26px 27px),
    linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
  animation: rise 0.7s cubic-bezier(0.2,0.7,0.2,1);
}
.register-card::before {
  /* red margin line, like a school ledger */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54px;
  width: 1.5px;
  background: rgba(181, 64, 46, 0.3);
}

.register-rings {
  position: absolute;
  top: -13px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 26%;
}
.register-rings span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 4px solid #8a8074;
  background: var(--ink);
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.5);
}

.register-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-left: 44px;
}

.reg-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7em 1.4em;
  border-radius: 5px;
  border: 2px solid var(--ink-on-paper);
  background: transparent;
  color: var(--ink-on-paper);
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.reg-btn:hover { transform: translateY(-2px); }
.reg-file { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.reg-file:hover { filter: brightness(1.1); }
.reg-scrap { border-color: rgba(43,36,22,0.4); color: var(--faded-on-paper); }
.reg-scrap:hover { border-color: var(--marker-red); color: var(--marker-red); }
.reg-again { margin-top: 1.4rem; }
.reg-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

.register-edit { padding: 1.4rem 0 0 44px; }
.register-edit label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faded-on-paper);
  margin-bottom: 0.5rem;
}
.register-edit textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(43, 36, 22, 0.25);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 26px;
  color: #1d3a8f; /* ballpoint */
  resize: vertical;
  padding: 0.2em 0.1em;
}
.register-edit textarea:focus { outline: none; border-bottom-color: var(--marker-blue); }
.register-edit .trail-sign { margin-top: 1.1rem; }

.register-result { padding-left: 44px; }

.stamp {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  letter-spacing: 0.18em;
  color: var(--marker-red);
  border: 5px double var(--marker-red);
  border-radius: 8px;
  padding: 0.1em 0.5em;
  transform: rotate(-7deg);
  opacity: 0.9;
  margin: 0.4rem 0 1.2rem;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='r'><feTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3'/><feComponentTransfer><feFuncA type='discrete' tableValues='0.55 0.75 0.9 1 1 1 1 1'/></feComponentTransfer></filter><rect width='200' height='200' filter='url(%23r)'/></svg>");
  mask-size: 200px;
  animation: stamp-in 0.45s cubic-bezier(0.2, 1.3, 0.35, 1);
}
.stamp.scrapped { color: #6b665c; border-color: #6b665c; }
@keyframes stamp-in {
  0%   { transform: rotate(-7deg) scale(2.1); opacity: 0; }
  70%  { transform: rotate(-7deg) scale(0.96); opacity: 1; }
  100% { transform: rotate(-7deg) scale(1); opacity: 0.9; }
}

.final-output {
  font-size: 1.02rem;
  line-height: 1.65;
}
.final-output p { margin-bottom: 0.85em; }
.final-output ul { margin: 0 0 0.85em 1.2em; }
.final-output strong { color: var(--spruce); }

/* ========================= TOAST / FOOTER ========================= */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 80;
  background: var(--marker-red);
  color: var(--paper);
  font-family: var(--font-body);
  padding: 0.9em 1.4em;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  max-width: min(90vw, 560px);
}

.colophon {
  margin-top: 6rem;
  padding: 3rem 24px 3.4rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--mist);
  font-size: 0.95rem;
}
.colophon-graph {
  width: min(560px, 92vw);
  color: var(--mist);
  opacity: 0.85;
  margin-bottom: 1rem;
}
.colophon code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85em;
  background: var(--ink-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.colophon-fine {
  margin-top: 0.8rem;
  font-style: italic;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ========================= RESPONSIVE ========================= */

@media (max-width: 860px) {
  .scout-grid { grid-template-columns: 1fr; }
  .trip-form { grid-template-columns: 1fr; }
  .register-card::before { left: 30px; }
  .register-actions, .register-edit, .register-result { padding-left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
