/* ============================================================
   MEOWDY — style.css
   Palette: sand #E8C88F | parchment #F5E6C4 | leather #7A4A21
   ink #2B1B0E | sunset #F2762E | bandana #C0392B
   sol-green #14F195 | sol-purple #9945FF | dusk #3B2C4F
   ============================================================ */
:root {
  --sand: #E8C88F;
  --parchment: #F5E6C4;
  --leather: #7A4A21;
  --ink: #2B1B0E;
  --sunset: #F2762E;
  --bandana: #C0392B;
  --sol-green: #14F195;
  --sol-purple: #9945FF;
  --dusk: #3B2C4F;
  --display: 'Luckiest Guy', 'Impact', 'Arial Black', fantasy;
  --body: -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 84px; /* nav anchors clear the fixed header */
}
body {
  font-family: var(--body);
  background: var(--sand);
  color: var(--ink);
  overflow-x: hidden;
  max-width: 100%;
  line-height: 1.5;
}
h1, h2, h3, .sign span { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; }
a { color: var(--leather); }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============ SALOON DOORS OVERLAY ============ */
#doors {
  position: fixed; inset: 0; z-index: 90; display: flex;
  pointer-events: auto; perspective: 1200px;
}
#doors .door {
  width: 50%; height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(43,27,14,0.18) 0 6px, transparent 6px 46px),
    linear-gradient(180deg, #8A5A2B, #7A4A21 60%, #5E3817);
  border: 6px solid var(--ink);
}
.door-l { transform-origin: left center; border-right-width: 3px; }
.door-r { transform-origin: right center; border-left-width: 3px; }
#doors.open .door-l { animation: swingL 0.55s ease-in forwards; }
#doors.open .door-r { animation: swingR 0.55s ease-in forwards; }
#doors.gone { display: none; }
@keyframes swingL { to { transform: rotateY(-95deg); opacity: 0.4; } }
@keyframes swingR { to { transform: rotateY(95deg); opacity: 0.4; } }
@media (max-width: 767px) {
  #doors.open .door-l, #doors.open .door-r { animation-duration: 0.35s; }
}

/* ============ HEADER ============ */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px;
  background: rgba(43, 27, 14, 0.94);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(43,27,14,0.35);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
#topbar.show { transform: translateY(0); }
#topbar .brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
#topbar .brand img { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--parchment); }
#topbar .brand span { font-family: var(--display); font-size: 22px; color: var(--sol-green); }
.nav-links {
  display: flex; gap: 20px; list-style: none;
  margin: 0 auto; padding: 0;
}
.nav-links a {
  font-family: var(--display); font-size: 15px; letter-spacing: 0.04em;
  color: var(--parchment); text-decoration: none;
  padding: 6px 2px; border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--sol-green); border-bottom-color: var(--sol-green); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-x {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--parchment); color: var(--ink);
  border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.nav-x svg { width: 18px; height: 18px; }
.nav-buy {
  font-family: var(--display); font-size: 16px;
  color: var(--ink); text-decoration: none;
  background: var(--sol-green);
  border: 3px solid var(--ink); border-radius: 10px;
  padding: 10px 18px;
  box-shadow: 0 4px 0 var(--ink);
}
.nav-buy:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  #topbar { justify-content: space-between; }
}

/* ============ HERO ============ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, #E8C88F 0%, #F2762E 55%, #C0392B 100%);
  overflow: hidden;
  padding-bottom: 40px;
}
.mesas { position: absolute; bottom: 0; left: 0; width: 100%; height: 46%; z-index: 0; }
.ticker {
  position: absolute; top: 18%; left: -10%; width: 120%;
  transform: rotate(-15deg);
  overflow: hidden; z-index: 0; opacity: 0.85;
}
.ticker-track {
  display: inline-block; white-space: nowrap;
  font-family: var(--display); font-size: clamp(28px, 5vw, 54px);
  color: var(--sol-green);
  text-shadow: 3px 3px 0 var(--ink);
  animation: tick 24s linear infinite;
}
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.paused .ticker-track, body.paused #tumbleweed { animation-play-state: paused; }

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 16px 0;
}
#meowdyBtn {
  background: none; border: none; -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease;
  animation: bob 3.4s ease-in-out infinite;
}
#meowdyBtn:active { transform: scale(0.96); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
#meowdyImg {
  width: clamp(200px, 34vw, 320px); height: auto;
  border-radius: 50%;
  border: 6px solid var(--ink);
  box-shadow: 0 10px 0 rgba(43,27,14,0.35);
  transition: transform 0.1s ease;
}
#meowdyImg.squish { transform: scale(0.94) rotate(-2deg); }

.posse-banner {
  width: 100%; max-width: 820px; height: auto;
  border: 5px solid var(--ink); border-radius: 14px;
  box-shadow: 0 8px 0 var(--ink);
  margin: 0 auto 30px;
}
.social img { width: 24px; height: 24px; }

.paw-counter { font-family: var(--mono); font-size: 13px; margin-top: 6px; color: var(--ink); opacity: 0.85; }
.paw-counter small { display: block; font-size: 10px; opacity: 0.8; }

#hero h1 {
  font-size: clamp(42px, 8vw, 92px);
  color: var(--parchment);
  text-shadow: 4px 4px 0 var(--ink);
  margin-top: 10px;
}
#hero .subline {
  color: #FFF3DC; font-size: clamp(15px, 2.2vw, 20px);
  max-width: 640px; margin: 10px auto 22px;
  text-shadow: 1px 1px 0 rgba(43,27,14,0.6);
}

.action-row { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 680px; }

.btn-buy {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 26px);
  color: var(--parchment); text-decoration: none;
  background: linear-gradient(180deg, #8A5A2B, var(--leather));
  border: 4px solid var(--ink); border-radius: 14px;
  padding: 14px 30px;
  box-shadow: 0 6px 0 var(--ink), inset 0 0 0 2px rgba(245,230,196,0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink), inset 0 0 0 2px rgba(245,230,196,0.35); }
.btn-buy:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }

/* ============ CA BAR (live + pre-launch WANTED mini poster) ============ */
.ca-slot { width: 100%; }
.ca-bar {
  display: flex; align-items: stretch; width: 100%;
  border: 4px solid var(--ink); border-radius: 12px; overflow: hidden;
  background: var(--parchment);
  box-shadow: 0 5px 0 var(--ink);
}
.ca-text {
  flex: 1; font-family: var(--mono); font-weight: 700;
  font-size: clamp(11px, 1.8vw, 16px);
  padding: 18px 12px; min-height: 56px;
  display: flex; align-items: center; justify-content: center;
  word-break: break-all; user-select: all;
}
.ca-copy {
  min-width: 64px; min-height: 56px;
  border: none; border-left: 4px solid var(--ink);
  background: var(--bandana); color: var(--parchment);
  font-size: 24px; position: relative; overflow: hidden;
}
.ca-copy:active { background: #A02F24; }
.ca-copy .qd { position: absolute; left: -40px; top: 50%; transform: translateY(-50%); font-size: 22px; opacity: 0; }
.ca-copy.fired .qd { animation: quickdraw 0.5s ease forwards; }
@keyframes quickdraw {
  0% { left: -40px; opacity: 0; }
  30% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}
.ca-wanted {
  border: 4px solid var(--ink); border-radius: 12px;
  background: var(--parchment); text-align: center;
  padding: 18px 16px; width: 100%;
  box-shadow: 0 5px 0 var(--ink);
  background-image: radial-gradient(rgba(122,74,33,0.08) 1px, transparent 1.5px);
  background-size: 14px 14px;
}
.ca-wanted h4 { font-family: var(--display); font-size: clamp(20px, 3vw, 28px); }
.ca-wanted .reward { color: var(--bandana); font-family: var(--display); font-size: clamp(15px, 2vw, 20px); }
.ca-wanted p { font-size: 13px; margin-top: 6px; }
.ca-wanted .warn { color: var(--bandana); font-weight: 700; }

.social-row { display: flex; gap: 14px; justify-content: center; margin-top: 4px; }
.social {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--parchment); color: var(--ink);
  border: 4px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease;
}
.social svg { width: 24px; height: 24px; }
.social:hover { transform: rotate(-8deg) scale(1.08); }

/* ============ SECTIONS / MAIN STREET ============ */
main {
  position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(122,74,33,0.35) 34px 40px) center top / 4px 100% no-repeat,
    var(--sand);
}
section, footer { padding: 70px 18px; max-width: 900px; margin: 0 auto; position: relative; }

.sign { display: flex; justify-content: center; margin-bottom: 34px; position: relative; }
.sign::before, .sign::after {
  content: ""; position: absolute; top: -46px; width: 3px; height: 46px;
  background: var(--ink);
}
.sign::before { left: calc(50% - 90px); }
.sign::after { left: calc(50% + 90px); }
.sign span {
  display: inline-block;
  background: linear-gradient(180deg, #8A5A2B, var(--leather));
  color: var(--parchment);
  border: 4px solid var(--ink); border-radius: 10px;
  padding: 12px 28px 8px;
  font-size: clamp(22px, 3.6vw, 34px);
  box-shadow: 0 6px 0 var(--ink);
  transform-origin: top center;
  animation: sway 5s ease-in-out infinite;
}
@keyframes sway { 0%,100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }

.facade { margin: 0 auto 30px; max-width: 700px; }

.section-kicker { text-align: center; font-style: italic; margin-bottom: 26px; opacity: 0.85; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.tilt-l { rotate: -3deg; }
.tilt-r { rotate: 3deg; }

/* ============ LORE CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--parchment);
  border: 4px solid var(--ink); border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 7px 0 var(--ink);
  transition: transform 0.15s ease;
}
.card:active { transform: scale(1.03) rotate(2deg); }
.card p { padding: 16px; font-size: 15px; }

/* ---- lore card scenes: real logo art composed over a painted background ---- */
.card-art {
  position: relative;
  width: 100%; aspect-ratio: 200 / 120;
  border-bottom: 4px solid var(--ink);
  overflow: hidden;
}
.card-art .scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-cat {
  position: absolute; left: 50%; bottom: 8%;
  transform: translateX(-50%);
  width: 46%; height: auto;
  border-radius: 50%;
  border: 4px solid var(--ink);
  box-shadow: 0 5px 0 rgba(43, 27, 14, 0.4);
}
.scene-saloon .scene-cat { width: 42%; bottom: 6%; }
.scene-duel .scene-cat.left { left: 24%; bottom: 10%; width: 36%; }
.scene-duel .scene-bear {
  position: absolute; right: 6%; bottom: 8%;
  width: 36%; height: auto;
}
.scene-badge .scene-cat { width: 44%; bottom: 14%; }
.scene-star {
  position: absolute; right: 15%; bottom: 46%;
  width: 20%; height: auto;
  animation: twinkle 2.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.12); }
}

/* ============ STANDOFF / THE DUEL ============ */
#standoff { padding: 30px 18px; max-width: 900px; }
.duel {
  position: relative;
  height: clamp(300px, 42vw, 400px);
  border: 5px solid var(--ink); border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 0 var(--ink);
  background: linear-gradient(180deg, #F5E6C4 0%, #F2A85C 45%, #F2762E 100%);
  transition: background 0.5s ease;
}
.duel.noon { background: linear-gradient(180deg, #FFF9EC 0%, #FFE7C2 45%, #F2A85C 100%); }
.duel-ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(180deg, #D8A85F, #C89A5B);
  border-top: 5px solid var(--ink);
}
.duel-clock {
  position: absolute; top: 6%; left: 50%; transform: translateX(-50%);
  text-align: center; z-index: 2;
}
.duel-clock svg { width: clamp(52px, 8vw, 74px); height: auto; margin: 0 auto; }
.clk-time {
  display: block; margin-top: 4px;
  font-family: var(--display); font-size: clamp(16px, 2.4vw, 22px);
  color: var(--ink);
}
.duel.noon .clk-time { color: var(--bandana); }
.clk-min, .clk-hr { transform-origin: 45px 54px; transition: transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
.duel.noon .clk-min { transform: rotate(360deg); }
.duel.noon .clk-hr { transform: rotate(60deg); }

.duel-cat {
  position: absolute; left: 6%; bottom: 16%;
  width: clamp(110px, 19vw, 176px); height: auto;
  border-radius: 50%; border: 5px solid var(--ink);
  box-shadow: 0 8px 0 rgba(43,27,14,0.35);
  z-index: 2;
}
.duel-bear {
  position: absolute; right: 7%; bottom: 15%;
  width: clamp(120px, 21vw, 190px);
  z-index: 2;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.6, 1);
}
.duel-bear svg { width: 100%; height: auto; }
.duel.noon .duel-bear { transform: translateX(46%) scaleX(-1); }
.duel.noon .bear-eyes { opacity: 0.15; }
.duel.noon .bear-brow { transform: translateY(-6px); }
.bear-eyes, .bear-brow { transition: opacity 0.3s ease, transform 0.3s ease; }

/* Dust sits ON the ground line, tucked behind the fleeing bear so it reads
   as kicked-up trail rather than free-floating marks. */
.duel-dust {
  position: absolute; right: 12%; bottom: 21%;
  width: clamp(120px, 22vw, 210px);
  opacity: 0;
  transition: opacity 0.35s ease 0.3s;
  z-index: 1;
}
.duel.noon .duel-dust { opacity: 1; }
.duel-dust .puff {
  opacity: 0; transform: translateX(26px) scale(0.6);
  transform-origin: center bottom;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.25, 1.3, 0.5, 1);
}
.duel.noon .puff-1 { opacity: 0.95; transform: translateX(0) scale(1); transition-delay: 0.30s; }
.duel.noon .puff-2 { opacity: 0.8;  transform: translateX(0) scale(1); transition-delay: 0.45s; }
.duel.noon .puff-3 { opacity: 0.6;  transform: translateX(0) scale(1); transition-delay: 0.60s; }

.duel-caption {
  position: absolute; left: 0; right: 0; bottom: 5%;
  text-align: center; z-index: 3;
  font-family: var(--display); font-size: clamp(16px, 2.6vw, 24px);
  color: var(--ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease 0.6s, transform 0.4s ease 0.6s;
}
.duel.noon .duel-caption { opacity: 1; transform: translateY(0); }

/* ============ BUILDING SIGNS (HTML overlay — never overflows) ============ */
.building { position: relative; max-width: 700px; margin: 0 auto 34px; padding-top: 18px; }
.building .facade { width: 100%; height: auto; }
.board {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  max-width: 92%;
  background: var(--parchment);
  border: 4px solid var(--ink); border-radius: 8px;
  padding: 8px 20px 4px;
  box-shadow: 0 5px 0 var(--ink);
  white-space: nowrap;
}
.board span {
  font-family: var(--display);
  font-size: clamp(15px, 2.9vw, 30px);
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* ============ BANK ============ */
.chalkboard {
  background: #23301F;
  border: 10px solid var(--leather); border-radius: 10px;
  outline: 4px solid var(--ink);
  color: #F0EEE2;
  padding: 26px 26px 20px;
  margin-top: 26px;
  box-shadow: 0 8px 0 var(--ink);
}
.chalkboard h3 {
  text-align: center; font-size: clamp(24px, 3.4vw, 32px);
  color: #FFF; letter-spacing: 0.06em;
  border-bottom: 2px dashed rgba(240,238,226,0.5);
  padding-bottom: 10px; margin-bottom: 16px;
}
.chalkboard ul { list-style: none; }
.chalkboard li { padding: 9px 0; font-size: 15.5px; border-bottom: 1px solid rgba(240,238,226,0.12); }
.chalk-k { font-family: var(--display); color: var(--sol-green); letter-spacing: 0.04em; }
.chalkboard a { color: var(--sol-green); }
.proof-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  border: 2px solid var(--sol-green); border-radius: 6px;
  color: var(--sol-green);
  padding: 2px 8px; margin-left: 8px;
  rotate: -2deg;
}
.receipts { text-align: right; margin-top: 12px; font-size: 14px; }
.anti-marketing {
  text-align: center; font-style: italic; max-width: 560px;
  margin: 26px auto 0; opacity: 0.9;
}

/* ============ GENERAL STORE ============ */
.crates { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.crate {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(43,27,14,0.12) 0 4px, transparent 4px 38px),
    linear-gradient(180deg, #C89A5B, #B98A4E);
  border: 5px solid var(--ink); border-radius: 10px;
  padding: 22px 20px 20px;
  box-shadow: 0 7px 0 var(--ink), inset 0 0 0 3px rgba(43,27,14,0.25);
}
.crate h3 { font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.step-no {
  flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bandana); color: var(--parchment);
  border: 3px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; padding-top: 3px;
}
.crate p { font-size: 14.5px; margin-bottom: 12px; }
.crate-link {
  display: inline-block; font-weight: 700; font-size: 15px;
  color: var(--ink); background: var(--parchment);
  border: 3px solid var(--ink); border-radius: 9px;
  padding: 9px 16px; min-height: 44px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
}
.crate-link:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.crate.stamped::after {
  content: "DONE";
  position: absolute; top: 10px; right: 12px;
  font-family: var(--display); font-size: 26px;
  color: var(--bandana);
  border: 4px solid var(--bandana); border-radius: 8px;
  padding: 4px 10px 0;
  rotate: 12deg;
  opacity: 0.9;
  text-shadow: 0 0 1px var(--bandana);
}

/* ============ TELEGRAPH / CHART ============ */
.telegraph { position: relative; }
.shutters {
  position: relative; z-index: 2;
  display: flex; height: 300px;
  border: 5px solid var(--ink); border-radius: 12px;
  overflow: hidden; cursor: pointer;
  perspective: 900px;
  box-shadow: 0 7px 0 var(--ink);
}
.shutter {
  width: 50%; height: 100%;
  background:
    repeating-linear-gradient(0deg, rgba(43,27,14,0.25) 0 10px, transparent 10px 34px),
    linear-gradient(180deg, #8A5A2B, #6E4118);
  transition: transform 0.6s ease;
}
.shutter-l { transform-origin: left center; border-right: 3px solid var(--ink); }
.shutter-r { transform-origin: right center; border-left: 3px solid var(--ink); }
.shutters.open .shutter-l { transform: rotateY(-88deg); }
.shutters.open .shutter-r { transform: rotateY(88deg); }
.shutters.open { pointer-events: none; border-color: transparent; box-shadow: none; }
.shutters.open .shutter-poster { opacity: 0; }
.shutter-poster {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--display); font-size: clamp(22px, 3.6vw, 34px);
  color: var(--parchment); text-shadow: 3px 3px 0 var(--ink);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.chart-slot {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  height: 300px; /* must match .shutters, or it covers the links below */
  border: 5px solid var(--ink); border-radius: 12px;
  overflow: hidden; background: var(--dusk);
  display: flex; align-items: center; justify-content: center;
}
.chart-slot iframe { width: 100%; height: 100%; border: 0; }
.wire-strip {
  background: var(--parchment);
  border: 3px solid var(--ink);
  width: 90%; overflow: hidden;
  padding: 10px 0;
  box-shadow: 4px 4px 0 rgba(43,27,14,0.5);
  rotate: -1.5deg;
}
.wire-track {
  display: inline-block; white-space: nowrap;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em;
  animation: wire 18s linear infinite;
}
@keyframes wire { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.telegram-slips { display: flex; gap: 12px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.slip {
  background: var(--parchment); border: 3px solid var(--ink); border-radius: 6px;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  text-decoration: none; color: var(--ink);
  padding: 10px 18px;
  box-shadow: 0 4px 0 var(--ink);
  rotate: -1deg;
}
.slip:nth-child(2) { rotate: 1.5deg; }
.slip:nth-child(3) { rotate: -0.6deg; }
.caption { text-align: center; font-style: italic; margin-top: 18px; opacity: 0.85; }

/* ============ JAIL / POSTERS ============ */
.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 34px; }
.poster {
  background: var(--parchment);
  background-image: radial-gradient(rgba(122,74,33,0.08) 1px, transparent 1.5px);
  background-size: 14px 14px;
  border: 4px solid var(--ink);
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 7px 0 var(--ink);
  position: relative;
  clip-path: polygon(0 2%, 4% 0, 96% 1%, 100% 3%, 99% 97%, 95% 100%, 5% 99%, 0 98%);
}
.poster::before {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bandana); border: 3px solid var(--ink);
}
.poster h3 { font-size: 30px; letter-spacing: 0.14em; margin: 10px 0 8px; }
.poster .mug { border: 3px solid var(--ink); margin-bottom: 8px; background: #E4D3A8; }
.poster h4 { font-family: var(--display); font-size: 17px; color: var(--bandana); margin-bottom: 6px; }
.poster p { font-size: 13px; }

/* ============ BOUNTY GENERATOR ============ */
.generator { max-width: 560px; margin: 0 auto; clip-path: none; }
.generator h3 { font-size: 34px; }
.gen-kicker { font-size: 14px; margin-bottom: 16px; }
#bountyForm { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.portrait-pick { border: 3px dashed var(--leather); border-radius: 10px; padding: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.portrait-pick legend { font-family: var(--display); padding: 0 8px; }
.portrait-pick label { cursor: pointer; }
.portrait-pick input { position: absolute; opacity: 0; }
.mug-thumb {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 76px; height: 76px;
  border: 4px solid var(--ink); border-radius: 10px;
  background: #E4D3A8 center/cover no-repeat;
  font-size: 11px; font-weight: 700; line-height: 1.15;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.1s ease;
}
.portrait-pick input:checked + .mug-thumb { outline: 4px solid var(--bandana); transform: scale(1.05); }
.portrait-pick input:focus-visible + .mug-thumb { outline: 4px solid var(--sol-green); outline-offset: 3px; }
.gen-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-size: 15px; }
.gen-field input[type="text"], .gen-field select {
  font-family: var(--mono); font-size: 16px; font-weight: 700;
  padding: 12px; min-height: 48px;
  border: 3px solid var(--ink); border-radius: 8px;
  background: #FFFDF5; color: var(--ink);
  width: 100%;
}
.gen-field input[type="range"] { accent-color: var(--bandana); min-height: 32px; }
#bountyOut { color: var(--bandana); }
.btn-charges {
  font-family: var(--display); font-size: 22px;
  background: var(--bandana); color: var(--parchment);
  border: 4px solid var(--ink); border-radius: 12px;
  padding: 14px; min-height: 56px;
  box-shadow: 0 6px 0 var(--ink);
}
.btn-charges:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }

/* ============ SALOON ============ */
#saloon {
  max-width: none;
  background: linear-gradient(180deg, var(--sand) 0%, var(--sunset) 30%, var(--dusk) 100%);
  padding-bottom: 90px;
}
#saloon > * { max-width: 900px; margin-left: auto; margin-right: auto; }
#saloon .section-kicker { color: var(--parchment); }
.saloon-btns { display: flex; flex-direction: column; gap: 16px; align-items: center; margin-bottom: 34px; }
.btn-leather {
  display: inline-block; text-align: center;
  font-family: var(--display); font-size: clamp(16px, 2.4vw, 22px);
  color: var(--parchment); text-decoration: none;
  background: linear-gradient(180deg, #8A5A2B, var(--leather));
  border: 4px solid var(--ink); border-radius: 14px;
  padding: 16px 34px; min-height: 56px;
  box-shadow: 0 6px 0 var(--ink), inset 0 0 0 2px rgba(245,230,196,0.3);
}
.btn-leather:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.beer-card {
  background: var(--parchment);
  border: 4px solid var(--ink); border-radius: 12px;
  padding: 40px 18px 18px;
  font-size: 16px; font-style: italic;
  position: relative;
  box-shadow: 0 6px 0 var(--ink);
}
.beer-card::before {
  content: ""; position: absolute; top: -14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,74,33,0.28) 55%, transparent 62%);
}
.beer-card cite { display: block; font-style: normal; font-weight: 700; font-size: 12px; margin-top: 10px; }
.tag {
  position: absolute; top: 10px; left: 12px;
  font-family: var(--display); font-style: normal; font-size: 12px;
  border-radius: 6px; padding: 3px 8px 1px;
  border: 3px solid var(--ink);
}
.tag.real { background: var(--sol-green); }
.tag.fake { background: var(--bandana); color: var(--parchment); }

/* ============ BOOT HILL / FOOTER ============ */
#boothill {
  max-width: none;
  background: var(--dusk);
  color: var(--parchment);
  text-align: center;
  padding-top: 0; padding-bottom: 110px;
  position: relative;
}
#boothill > * { max-width: 700px; margin-left: auto; margin-right: auto; }
.tombstone-art { max-width: none; width: 100%; margin: 0; }
.tombstone {
  background: #5C5C55;
  border: 5px solid var(--ink);
  border-radius: 90px 90px 8px 8px;
  padding: 40px 28px 26px;
  margin-top: 26px;
  box-shadow: inset 0 0 0 4px rgba(43,27,14,0.3), 0 8px 0 var(--ink);
  color: #F0EEE2;
  text-shadow: 1px 1px 0 rgba(43,27,14,0.8);
}
.tombstone h3 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 12px; }
.tombstone p { font-size: 14px; }
#boothill .ca-slot { margin: 26px auto; }
#boothill .social-row { margin-bottom: 20px; }
.footer-credit { font-size: 13px; opacity: 0.9; }
.fine-print { font-size: 12px; opacity: 0.78; margin-top: 8px; }
#noonStamp {
  position: absolute; top: 42%; left: 50%;
  transform: translate(-50%, -50%) rotate(-9deg) scale(3);
  font-family: var(--display); font-size: clamp(40px, 9vw, 90px);
  color: var(--bandana);
  border: 6px solid var(--bandana); border-radius: 14px;
  padding: 8px 26px 2px;
  opacity: 0; pointer-events: none;
  z-index: 5;
}
#noonStamp.stamped { animation: stamp 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; }
@keyframes stamp {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(3); }
  to { opacity: 0.92; transform: translate(-50%, -50%) rotate(-9deg) scale(1); }
}

/* ============ STICKY BAR ============ */
#stickyBar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(43, 27, 14, 0.92);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
#stickyBar.show {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s;
}
.sticky-btn {
  flex: 1; text-align: center; text-decoration: none;
  font-family: var(--display); font-size: 18px;
  border: 3px solid var(--ink); border-radius: 12px;
  padding: 13px 6px; min-height: 52px;
}
.sticky-btn.buy { background: var(--sol-green); color: var(--ink); }
.sticky-btn.copy { background: var(--bandana); color: var(--parchment); }

/* ============ POCKET WATCH ============ */
#pocketWatch {
  position: fixed; left: 14px; bottom: 84px; z-index: 61;
  width: 54px; height: 54px;
  background: none; border: none;
  filter: drop-shadow(0 3px 0 rgba(43,27,14,0.6));
}
#watchMin, #watchHour { transform-origin: 30px 32px; }

/* ============ TUMBLEWEED ============ */
#tumbleweed {
  position: fixed; bottom: 4vh; left: -90px; z-index: 55;
  width: 64px; height: 64px; cursor: pointer;
  display: none;
}
#tumbleweed.rolling {
  display: block;
  animation: roll 7s linear forwards;
}
#tumbleweed svg { animation: spin 1.6s linear infinite; }
@keyframes roll {
  0% { left: -90px; bottom: 3vh; }
  25% { bottom: 6vh; }
  50% { bottom: 2vh; }
  75% { bottom: 7vh; }
  100% { left: 105vw; bottom: 3vh; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ TOAST ============ */
#toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 70;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--parchment);
  border: 3px solid var(--parchment); border-radius: 12px;
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  padding: 12px 18px;
  max-width: min(92vw, 480px); text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ FX CANVAS ============ */
#fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* ============ BOUNTY MODAL ============ */
#bountyModal {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(43,27,14,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
#bountyModal[hidden] { display: none; }
.modal-card {
  background: var(--parchment);
  border: 5px solid var(--ink); border-radius: 14px;
  padding: 16px;
  max-width: 460px; width: 100%; max-height: 94svh;
  overflow: auto; position: relative;
  box-shadow: 0 10px 0 var(--ink);
}
#modalClose {
  position: absolute; top: 8px; right: 8px;
  width: 40px; height: 40px;
  background: var(--bandana); color: var(--parchment);
  border: 3px solid var(--ink); border-radius: 50%;
  font-size: 18px; font-weight: 700;
}
#posterPreview { width: 100%; border: 3px solid var(--ink); border-radius: 8px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.modal-actions > * { text-align: center; font-size: 18px; }

/* ============ MOBILE ============ */
@media (max-width: 767px) {
  .cards, .posters, .testimonials { grid-template-columns: 1fr; }
  .crates { grid-template-columns: 1fr; }
  .tilt-l, .tilt-r { rotate: 0deg; }
  .shutters, .chart-slot { height: 340px; }
  section, footer { padding: 54px 14px; }
  #toast { bottom: 150px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  #meowdyBtn, .sign span { animation: none; }
  .reveal { opacity: 1; transform: none; }
  #doors { display: none; }
  #tumbleweed { display: none !important; }
}

/* ============ NO-JS FINAL STATE ============ */
/* With JS off the page renders open/final: doors gone, shutters open, reveals visible. */
@media (scripting: none) {
  #doors { display: none; }
  .reveal { opacity: 1; transform: none; }
  .shutters { display: none; }
  .chart-slot { position: relative; height: 120px; }
  #stickyBar, #pocketWatch, #tumbleweed { display: none; }
}
