/* ===== $SHELLTACIO — Lost & Found corkboard ===== */

:root{
  --cork: #b6884f;
  --cork-dark: #8c672f;
  --cork-darker: #6b4f24;
  --paper: #faf4e4;
  --paper-warm: #f3ecd6;
  --paper-shadow: rgba(50, 35, 10, 0.35);
  --ink: #2c2418;
  --ink-soft: #4a4030;
  --green: #59684e;
  --green-dark: #3d4735;
  --amber: #c96b3f;
  --amber-dark: #a6532c;
  --pin-red: #b8402f;
  --pin-blue: #3a5f7a;
  --pin-yellow: #c99a2e;
  --sticky-yellow: #f4dd7a;
  --sticky-pink: #f0b9c4;
  --sticky-blue: #a9d3d8;
  --sticky-green: #bcd39a;
  --font-hand: 'Kalam', cursive;
  --font-type: 'Courier Prime', monospace;
  --font-body: 'Inter', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cork);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.05) 0, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(0,0,0,0.08) 0, transparent 50%),
    repeating-radial-gradient(circle at 30% 40%, rgba(0,0,0,0.035) 0px, rgba(0,0,0,0.035) 1px, transparent 2px, transparent 9px),
    repeating-radial-gradient(circle at 70% 65%, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 2px, transparent 11px),
    linear-gradient(160deg, #c3945c, #a97845 55%, #8c6535);
  background-attachment: fixed;
}

img{ max-width: 100%; display:block; }
a{ color: inherit; }

/* ---------- flies layer (whole-page) ---------- */
#fliesLayer{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
}
.fly{
  position: absolute;
  width: 16px;
  height: 12px;
  will-change: transform;
  opacity: 0.92;
}
.fly svg{ width:100%; height:100%; display:block; overflow: visible; }
.fly .wing{
  transform-origin: 2px 4px;
  animation: wingFlap 0.09s linear infinite;
}
.fly .wing.wing-r{ transform-origin: 10px 4px; animation-delay: -0.045s; }
@keyframes wingFlap{
  0%,100%{ transform: scaleX(1) rotate(0deg); }
  50%{ transform: scaleX(0.35) rotate(8deg); }
}

/* ---------- marquee ---------- */
.marquee-bar{
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--cork-darker);
  position: relative;
  z-index: 300;
}
.marquee-track{
  display: inline-block;
  padding: 6px 0;
  animation: marquee 32s linear infinite;
}
@keyframes marquee{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}

/* ---------- nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(44, 36, 24, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--cork-darker);
}
.nav-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo{ text-decoration: none; }
.nav-logo-ticker{
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 24px;
  color: var(--paper);
  letter-spacing: 0.02em;
}
.nav-links{
  display: flex;
  gap: 22px;
  font-family: var(--font-type);
  font-size: 13px;
}
.nav-links a{
  text-decoration: none;
  color: var(--paper-warm);
  opacity: 0.85;
  transition: opacity 0.15s;
}
.nav-links a:hover{ opacity: 1; text-decoration: underline; }
.nav-actions{ display: flex; align-items: center; gap: 10px; }
.sound-toggle{
  background: transparent;
  border: 1px solid rgba(250,244,228,0.35);
  border-radius: 8px;
  font-size: 15px;
  padding: 6px 9px;
  cursor: pointer;
  color: var(--paper);
}
.hamburger{
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span{
  width: 22px; height: 2px; background: var(--paper); display:block;
}

/* ---------- generic board section ---------- */
.board-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 20px;
  position: relative;
}
.section-label{
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(250,244,228,0.75);
  text-align: center;
  margin: 0 0 18px;
}

.section-scatter{
  position: absolute;
  z-index: 0;
  pointer-events: none;
  --r: 0deg;
  --flip: 1;
  transform: scaleX(var(--flip)) rotate(var(--r));
  animation: shellDrift 7.5s ease-in-out infinite;
  opacity: 0.9;
}
@media (max-width: 700px){
  .section-scatter{ display: none; }
}

/* ---------- hero (full screen) ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 20px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.shell-scatter{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.scatter{
  position: absolute;
  --r: 0deg;
  --flip: 1;
  transform: scaleX(var(--flip)) rotate(var(--r));
  animation: shellDrift 7.5s ease-in-out infinite;
  opacity: 0.94;
}
.scatter.sc-front{ opacity: 1; }
@keyframes shellDrift{
  0%, 100%{ transform: scaleX(var(--flip)) rotate(var(--r)) translateY(0); }
  50%{ transform: scaleX(var(--flip)) rotate(calc(var(--r) + 2.4deg)) translateY(-10px); }
}

.hero-heading{
  position: relative;
  z-index: 3;
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: clamp(34px, 7vw, 64px);
  color: var(--ink);
  margin: 0 0 6px;
  text-shadow: 0 2px 0 rgba(250,244,228,0.5), 0 12px 26px rgba(30,20,5,0.4);
}

.mascot-frame{
  position: relative;
  z-index: 3;
  width: min(88vw, 760px);
  margin: 8px auto 0;
  aspect-ratio: 1100 / 638;
  cursor: pointer;
  border-radius: 4px;
  overflow: visible;
  outline: none;
}
.mascot-base{
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 26px 34px rgba(20,14,4,0.4));
  transition: filter 0.12s ease-out;
}
.mascot-ear{
  position: absolute;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: transform;
  transition: filter 0.12s ease-out;
}
.mascot-ear-left{
  left: 33.18%;
  top: 5.49%;
  width: 20.91%;
  height: 41.54%;
  transform-origin: 55% 92%;
}
.mascot-ear-right{
  left: 58.64%;
  top: 5.49%;
  width: 21.82%;
  height: 41.54%;
  transform-origin: 45% 92%;
}
.mascot-pupil{
  position: absolute;
  left: 52.36%;
  top: 25.08%;
  width: 6.73%;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* poke feedback: a brightness/saturation pop that follows the cutout's own
   alpha silhouette (a plain overlay rectangle would show as a frame again) */
.mascot-frame.flash .mascot-base,
.mascot-frame.flash .mascot-ear{
  filter: drop-shadow(0 26px 34px rgba(20,14,4,0.4)) brightness(1.55) saturate(1.25);
}

.hero-sub{
  position: relative;
  z-index: 3;
  font-family: var(--font-hand);
  font-size: clamp(18px, 2.6vw, 23px);
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(250,244,228,0.4);
  margin: 22px 0 4px;
}
.hero-poke-hint{
  position: relative;
  z-index: 3;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(44,36,24,0.65);
  margin: 2px 0 0;
}

.ca-card{
  position: relative;
  z-index: 3;
  margin-top: 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-type);
  font-size: 12px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.ca-label{ color: var(--pin-yellow); letter-spacing: 0.08em; }
.ca-value{
  word-break: break-all;
  max-width: 320px;
}
.ca-copy{
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-family: var(--font-type);
  font-size: 11px;
  cursor: pointer;
}
.ca-copy:hover{ background: var(--sticky-yellow); }

.hero-actions{
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
.btn{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn-primary{ background: var(--amber); color: var(--paper); }
.btn-secondary{ background: var(--paper); color: var(--ink); }

.crack-counter{
  position: relative;
  z-index: 3;
  margin-top: 16px;
  font-family: var(--font-type);
  font-size: 12px;
  color: var(--ink-soft);
  text-shadow: 0 1px 0 rgba(250,244,228,0.4);
}

.hero-scroll-cue{
  position: relative;
  z-index: 3;
  margin-top: 34px;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(44,36,24,0.55);
  animation: scrollCueBob 2.2s ease-in-out infinite;
}
@keyframes scrollCueBob{
  0%, 100%{ transform: translateY(0); opacity: 0.55; }
  50%{ transform: translateY(6px); opacity: 0.9; }
}

/* ---------- index card (typed lore + sightings) ---------- */
.index-card{
  background: var(--paper);
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 30px 24px;
  border-radius: 2px;
  box-shadow: 0 16px 34px var(--paper-shadow);
  transform: rotate(0.6deg);
  position: relative;
}
.index-card::before{
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6ea0c9, var(--pin-blue) 70%);
  box-shadow: 0 3px 4px rgba(0,0,0,0.4);
}
.card-tab{
  display: inline-block;
  font-family: var(--font-type);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 9px;
  border-radius: 3px;
  margin: 0 0 16px;
}
.typed-line{
  font-family: var(--font-type);
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.typed-body{
  font-family: var(--font-type);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 14px;
}
.typed-sign{
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--ink-soft);
  text-align: right;
  margin: 10px 0 0;
}

/* ---------- memo ---------- */
.memo-card{
  background: var(--paper-warm);
  max-width: 620px;
  margin: 0 auto;
  padding: 32px 34px 26px;
  border-radius: 2px;
  box-shadow: 0 16px 34px var(--paper-shadow);
  transform: rotate(-0.8deg);
  border-left: 5px solid var(--amber-dark);
  position: relative;
}
.memo-title{
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  margin: 0 0 2px;
}
.memo-subtitle{
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.memo-list{
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.memo-list li{
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 0;
}
.memo-tag{
  display: inline-block;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 11.5px;
  background: var(--green);
  color: var(--paper);
  padding: 2px 8px;
  border-radius: 3px;
  margin-right: 8px;
  letter-spacing: 0.03em;
}
.memo-stamp{
  font-family: var(--font-hand);
  font-size: 14px;
  color: rgba(44,36,24,0.55);
  text-align: right;
  margin: 0;
}

/* ---------- sightings ---------- */
.sightings-card{ max-width: 640px; }
.sightings-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 16px;
}
.sighting-stat{
  background: rgba(44,36,24,0.04);
  border: 1px dashed rgba(44,36,24,0.25);
  border-radius: 6px;
  padding: 14px 10px;
  text-align: center;
}
.sighting-value{
  display: block;
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.sighting-key{
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sightings-note{
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
  margin: 4px 0 0;
}

/* ---------- notes wall ---------- */
.notes-wall{
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  max-width: 940px;
  margin: 0 auto;
}
.sticky-note{
  width: 220px;
  min-height: 140px;
  padding: 20px 18px;
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  position: relative;
}
.sticky-note p{ margin: 0; }
.note-yellow{ background: var(--sticky-yellow); }
.note-pink{ background: var(--sticky-pink); }
.note-blue{ background: var(--sticky-blue); }
.note-green{ background: var(--sticky-green); }
.note-r1{ transform: rotate(-4deg); }
.note-r2{ transform: rotate(3deg); }
.note-r3{ transform: rotate(-2deg); margin-top: 30px; }
.note-r4{ transform: rotate(5deg); }
.note-r5{ transform: rotate(-3.5deg); margin-top: 18px; }
.note-r6{ transform: rotate(2deg); }
.sticky-note::before{
  content: "";
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8d76a, var(--pin-yellow) 70%);
  box-shadow: 0 3px 3px rgba(0,0,0,0.35);
}

/* ---------- adopt ---------- */
.adopt-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.adopt-card{
  background: var(--paper);
  padding: 22px 18px 20px;
  border-radius: 2px;
  box-shadow: 0 12px 26px var(--paper-shadow);
  position: relative;
}
.adopt-card:nth-child(odd){ transform: rotate(-1deg); }
.adopt-card:nth-child(even){ transform: rotate(1deg); }
.adopt-num{
  font-family: var(--font-type);
  font-weight: 700;
  font-size: 22px;
  color: var(--amber-dark);
  display: block;
  margin-bottom: 8px;
}
.adopt-title{
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 8px;
}
.adopt-body{
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer{
  background: var(--ink);
  padding: 46px 20px 34px;
  margin-top: 30px;
  border-top: 4px solid var(--cork-darker);
}
.footer-board{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.footer-ticker{
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 26px;
  color: var(--paper);
  margin: 0 0 16px;
}
.footer-ca{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-type);
  font-size: 12px;
  color: var(--paper);
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ca-copy-footer{
  background: rgba(250,244,228,0.12);
  color: var(--paper);
}
.footer-links{
  display: flex;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-type);
  font-size: 12px;
  color: rgba(250,244,228,0.7);
  margin-bottom: 20px;
}
.footer-links a{ text-decoration: none; color: inherit; }
.footer-links a:hover{ text-decoration: underline; }
.footer-disclaimer{
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(250,244,228,0.45);
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 820px){
  .adopt-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px){
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(44,36,24,0.98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .nav-links.open{
    max-height: 320px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a{
    padding: 14px 20px;
    border-top: 1px solid rgba(250,244,228,0.08);
  }
  .hamburger{ display: flex; }
}

@media (max-width: 700px){
  /* thin out the busiest scatter shells so mobile hero doesn't feel cluttered */
  .scatter:nth-child(4n){ display: none; }
}

@media (max-width: 560px){
  .hero{ padding: 100px 16px 40px; }
  .hero-heading{ font-size: 30px; }
  .mascot-frame{ width: 94vw; }
  .board-section{ padding: 50px 16px; }
  .memo-card, .index-card{ padding: 22px 18px 18px; }
  .adopt-grid{ grid-template-columns: 1fr; }
  .sticky-note{ width: 100%; max-width: 280px; }
}
