/* -------------------------------------------------------------------------
   WHEREIS.CAM — 1973 BRUNSWICK ART DECO SALOON PLAQUE
   Aesthetic: Heavy bullnose timber bar tops, nicotine cream, burnt orange
   vinyl, mustard yellow coasters, textured amber glass, tactile pub grain.
   Typography: Chunky 70s Serif (Calistoga / Cooper Black) + Art Deco Sans.
   ------------------------------------------------------------------------- */

:root {
  /* Nicotine Cream & Warm Pub Enamel (No stark white!) */
  --bg-main: #f4eae0;
  --bg-bar-top: #f4eae0;
  --bg-bar-bottom: #e7dac9;
  --bg-plaque: #faf4eb;
  --bg-plaque-inner: #f3e8d7;
  --bg-plaque-sunken: #ede0cd;

  /* Mission Brown Solid Timber Palette */
  --mission-brown-dark: #231309;
  --mission-brown: #3c2214;
  --mission-brown-mid: #543420;
  --mission-brown-light: #754c30;
  --mission-brown-rim: #2d170b;

  /* Burnt Orange 70s Vinyl & Signage */
  --burnt-orange: #d4541b;
  --burnt-orange-dark: #aa3f0f;
  --burnt-orange-light: #e86c32;
  --burnt-orange-glow: rgba(212, 84, 27, 0.35);

  /* Mustard Yellow Pub Brass & Beer Coasters */
  --mustard-yellow: #e5a823;
  --mustard-yellow-dark: #c38914;
  --mustard-yellow-light: #f7c754;
  --mustard-yellow-soft: #fae4a8;

  /* Heritage Saloon Green (Cold Pots & Billiard Felt) */
  --pub-green: #1e5a3e;
  --pub-green-light: #2d7a55;

  /* Typography Colors */
  --text-dark: #231309;
  --text-muted: #6b503e;
  --text-light: #fdf8f0;

  /* Fonts: Chunky 70s Serif + Tall Clean Art Deco Sans */
  --font-chunky-serif: "Calistoga", "Cooper Black", "ITC Benguiat", "Fraunces", Georgia, serif;
  --font-art-deco-sans: "Josefin Sans", "Kabel", "Century Gothic", "Futura", sans-serif;
  --font-sans: var(--font-art-deco-sans);

  /* Shapes & Bullnose Bar Curves (No sharp 90-degree corners!) */
  --radius-bullnose: 26px;
  --radius-inner: 16px;
  --radius-pill: 9999px;
}

/* -------------------------------------------------------------------------
   GLOBAL RESET & BAR-TOP ENVIRONMENT
   ------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-bar-bottom);
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background:
    radial-gradient(ellipse at 50% 0%, #fef8ee 0%, var(--bg-bar-top) 60%, var(--bg-bar-bottom) 100%);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.65rem 2rem;
  line-height: 1.45;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------------------------------
   TEXTURE: SUBTLE TACTILE PUB GRAIN / NOISE OVERLAY
   ------------------------------------------------------------------------- */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* -------------------------------------------------------------------------
   AMBER GLASS REEDED EFFECT (TEXTURED PUB DOORS)
   ------------------------------------------------------------------------- */
.amber-glass {
  background-color: rgba(214, 142, 45, 0.32);
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(255, 235, 175, 0.12) 0px,
      rgba(255, 235, 175, 0.12) 6px,
      transparent 6px,
      transparent 14px
    ),
    linear-gradient(
      180deg,
      rgba(255, 225, 140, 0.30) 0%,
      rgba(180, 105, 25, 0.25) 100%
    );
  backdrop-filter: blur(14px) saturate(160%) contrast(108%);
  -webkit-backdrop-filter: blur(14px) saturate(160%) contrast(108%);
  border: 3px solid rgba(110, 58, 16, 0.7);
  box-shadow:
    inset 0 2px 3px rgba(255, 245, 200, 0.7),
    inset 0 -2px 4px rgba(45, 24, 12, 0.35),
    0 8px 20px rgba(45, 24, 12, 0.22);
}

/* -------------------------------------------------------------------------
   MAIN SALOON PLAQUE CARD (MOBILE-FIRST)
   ------------------------------------------------------------------------- */
.saloon-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.card {
  background: var(--bg-plaque);
  /* Bullnose timber bar framing */
  border: 7px solid var(--mission-brown-dark);
  border-radius: var(--radius-bullnose);
  padding: 1.15rem 0.95rem 1.35rem;
  text-align: center;
  position: relative;
  box-shadow:
    inset 0 4px 0 rgba(255, 250, 235, 0.85),
    inset 0 -5px 0 rgba(25, 12, 6, 0.45),
    inset 0 0 0 2px var(--mission-brown-light),
    0 16px 40px -8px rgba(35, 19, 9, 0.36),
    0 6px 14px rgba(35, 19, 9, 0.2);
}

/* -------------------------------------------------------------------------
   INTEGRATED SALOON BRASS CREST HEADER
   ------------------------------------------------------------------------- */
.saloon-crest {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.65rem;
}

.crest-ornament {
  height: 3px;
  width: 45%;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--mustard-yellow) 25%,
    var(--burnt-orange) 50%,
    var(--mustard-yellow) 75%,
    transparent 100%
  );
}

.top-ornament {
  margin-bottom: 0.45rem;
}

.bottom-ornament {
  margin-top: 0.45rem;
}

.crest-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crest-title {
  font-family: var(--font-chunky-serif);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--mission-brown-dark);
  text-shadow: 1px 1px 0 rgba(229, 168, 35, 0.4);
}

.crest-star {
  color: var(--burnt-orange);
  font-size: 0.95rem;
}

.crest-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mission-brown-mid);
}

/* -------------------------------------------------------------------------
   STATUS BADGE & BEACON PULSE
   ------------------------------------------------------------------------- */
.status-badge-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.65rem;
}

.coaster-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.75rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-art-deco-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--mission-brown-dark);
}

.pub-subtext {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 360px;
  margin: 0 auto 0.75rem;
}

.status-badge.at-pub {
  background: var(--pub-green);
  color: var(--text-light);
  border: 2.5px solid var(--mission-brown-dark);
}

.status-badge.not-at-pub {
  background: var(--burnt-orange);
  color: var(--text-light);
  border: 2.5px solid var(--mission-brown-dark);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mustard-yellow-light);
  box-shadow: 0 0 8px var(--mustard-yellow-light);
  animation: pulse-glow 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* -------------------------------------------------------------------------
   TACTILE HERO COASTER FRAME
   ------------------------------------------------------------------------- */
.coaster-frame {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 5px solid var(--mission-brown);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.75),
    inset 0 -4px 0 rgba(45, 24, 12, 0.35),
    0 8px 18px rgba(35, 19, 9, 0.22);
  transform: rotate(-3deg);
  transition: transform 0.25s ease;
}

.coaster-frame.at-pub {
  background: radial-gradient(circle, #fffaf0 0%, #fdeec9 55%, var(--mustard-yellow) 100%);
  transform: rotate(-3deg);
}

.coaster-frame.not-at-pub {
  background: radial-gradient(circle, #fffaf0 0%, #fdeec9 55%, #f6ca68 85%, var(--mustard-yellow) 100%);
  transform: rotate(3deg);
}

.card:hover .coaster-frame {
  transform: rotate(0deg) scale(1.04);
}

.retro-beer-icon {
  width: 50px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 3px 5px rgba(35, 19, 9, 0.35));
}

.retro-question-icon {
  width: 58px;
  height: 58px;
  display: block;
  filter: drop-shadow(0 3px 5px rgba(35, 19, 9, 0.35));
}

/* -------------------------------------------------------------------------
   HEADLINES & STATUS COPY (CHUNKY 70S SERIF)
   ------------------------------------------------------------------------- */
.status-intro {
  font-family: var(--font-art-deco-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mission-brown-light);
  margin-bottom: 0.15rem;
}

.pub-hero-name {
  display: block;
  font-family: var(--font-chunky-serif);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--burnt-orange);
  text-shadow:
    2px 2px 0 var(--mustard-yellow),
    4px 4px 0 var(--mission-brown-dark);
  margin: 0.1rem 0 0.35rem;
}

.headline {
  font-family: var(--font-chunky-serif);
  font-size: clamp(1.45rem, 5.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.25rem;
  color: var(--mission-brown-dark);
  text-shadow: 2px 2px 0 rgba(229, 168, 35, 0.35);
}

.subtext {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 0.75rem;
  transition: opacity 0.2s ease;
}

.subtext.pulse-update {
  animation: subtext-flash 0.5s ease-out;
}

@keyframes subtext-flash {
  0% { transform: scale(1.03); color: var(--burnt-orange); }
  100% { transform: scale(1); color: var(--text-muted); }
}

/* Meta line (Duration / Timer) */
.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mission-brown);
  background: var(--bg-plaque-inner);
  border: 1.5px solid var(--mission-brown-light);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.45rem;
}

.meta-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   HERO CALL-TO-ACTION BUTTONS (ABOVE THE FOLD)
   ------------------------------------------------------------------------- */
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 360px;
  padding: 0.78rem 1.3rem;
  max-width: 330px;
  background: linear-gradient(180deg, var(--burnt-orange-light) 0%, var(--burnt-orange) 60%, var(--burnt-orange-dark) 100%);
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-art-deco-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 3px solid var(--mission-brown-dark);
  border-radius: var(--radius-pill);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.35),
    0 5px 0 var(--mission-brown-dark),
    0 10px 18px var(--burnt-orange-glow);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 rgba(0, 0, 0, 0.4),
    0 7px 0 var(--mission-brown-dark),
    0 14px 22px var(--burnt-orange-glow);
}

.btn-hero:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    0 2px 0 var(--mission-brown-dark),
    0 4px 8px rgba(35, 19, 9, 0.2);
}

/* Radar Sweep Animation */
.btn-icon-spin {
  transition: transform 0.4s ease-in-out;
}

.btn-sweep:hover .btn-icon-spin {
  transform: rotate(180deg);
}

.btn-sweep.is-scanning .btn-icon-spin {
  animation: infinite-sweep 0.7s infinite linear;
}

@keyframes infinite-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------------
   QUIET SECONDARY MAP PILLS (SUBTLE 4-WAY SELECTOR)
   ------------------------------------------------------------------------- */
.map-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 400px;
  margin-top: 0.1rem;
}

.map-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  background: var(--bg-plaque-inner);
  color: var(--mission-brown-dark);
  text-decoration: none;
  border: 1.5px solid var(--mission-brown);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 0 var(--mission-brown);
  transition: all 0.15s ease;
}

.pill-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.map-pill:hover {
  background: var(--mustard-yellow);
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--mission-brown);
}

.map-pill:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--mission-brown);
}

/* -------------------------------------------------------------------------
   CAM'S REGULAR HAUNTS (CLICKABLE INTERACTIVE SALOON TOKENS)
   ------------------------------------------------------------------------- */
.haunts-section {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 2.5px dashed var(--mission-brown-light);
  width: 100%;
}

.haunts-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mission-brown-mid);
  margin-bottom: 0.25rem;
}

.deco-star {
  color: var(--burnt-orange);
  font-size: 1rem;
}

.haunts-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 0.65rem;
  line-height: 1.35;
}

.pub-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.pub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  background: var(--bg-plaque-inner);
  border: 2px solid var(--mission-brown);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mission-brown-dark);
  text-decoration: none;
  box-shadow: 0 3px 0 var(--mission-brown);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-beer-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

.chip-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.6;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.pub-chip:hover {
  background: var(--mustard-yellow);
  color: var(--mission-brown-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--mission-brown);
}

.pub-chip:hover .chip-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

.pub-chip:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--mission-brown);
}

/* -------------------------------------------------------------------------
   PLAQUE BOTTOM TRIM
   ------------------------------------------------------------------------- */
.card-deco-trim.bottom-trim {
  height: 8px;
  width: 70%;
  margin: 1.1rem auto 0;
  border-radius: var(--radius-pill);
}

/* -------------------------------------------------------------------------
   CLEAN SALOON FOOTER
   ------------------------------------------------------------------------- */
.saloon-footer {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-telemetry {
  letter-spacing: 0.04em;
  font-weight: 600;
}

.footer-quiet-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-link {
  color: var(--mission-brown-mid);
  font-family: var(--font-art-deco-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--burnt-orange);
}

.footer-dot {
  color: var(--mission-brown-light);
  font-size: 0.8rem;
}

/* -------------------------------------------------------------------------
   DESKTOP ENHANCEMENTS (SCALING & REFINEMENT)
   ------------------------------------------------------------------------- */
@media (min-width: 600px) {
  body {
    padding: 1.5rem 1rem 3rem;
  }

  .saloon-container {
    max-width: 530px;
  }

  .card {
    padding: 2.25rem 2rem 2.4rem;
    border-width: 8px;
    border-radius: var(--radius-bullnose);
  }

  .saloon-crest {
    margin-bottom: 1.25rem;
  }

  .crest-title {
    font-size: 1.45rem;
  }

  .status-badge {
    padding: 0.4rem 1.05rem;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
  }

  .coaster-frame {
    width: 104px;
    height: 104px;
    border-width: 6px;
    margin-bottom: 1.25rem;
  }

  .retro-beer-icon {
    width: 68px;
    height: 68px;
  }

  .retro-question-icon {
    width: 76px;
    height: 76px;
  }

  .status-intro {
    font-size: 1.15rem;
  }

  .pub-hero-name {
    font-size: 3.1rem;
    margin: 0.25rem 0 0.65rem;
  }

  .headline {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
  }

  .subtext {
    font-size: 1.08rem;
    margin-bottom: 1.25rem;
  }

  .btn-hero {
    padding: 0.95rem 1.65rem;
    font-size: 1.1rem;
  }

  .haunts-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}
