@import url('https://fonts.googleapis.com/css2?family=Rye&family=Creepster&family=Special+Elite&display=swap');

:root {
  --paper: #e8cfa0;
  --paper-light: #f5e6c8;
  --ink: #2a1a0a;
  --dark: #1a0e05;
  --red: #8b1a1a;
  --red-bright: #c0392b;
  --gold: #c7923f;
  --brown-border: #55341f;
}

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

/* ═══════════════════════════════════════
   BACKGROUND TOOL RAIN
   ═══════════════════════════════════════ */
body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #1a0e05;
  font-family: 'Special Elite', 'Courier New', monospace;
  color: var(--ink);
  padding: 1.5rem;
  overflow-x: hidden;
}

.tool-bg {
  position: fixed;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0.1;
}

.tool-bg span {
  font-family: 'Creepster', cursive;
  font-size: clamp(2rem, 6vw, 5rem);
  color: #c7923f;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
  animation: bgPulse 3s ease-in-out infinite alternate;
}

.tool-bg span:nth-child(odd) {
  animation-delay: -1.5s;
}

.tool-bg span:nth-child(3n) {
  color: var(--red-bright);
}

@keyframes bgPulse {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════
   POSTER
   ═══════════════════════════════════════ */
.poster {
  position: relative;
  z-index: 1;
  width: min(96vw, 820px);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(139, 90, 43, 0.04) 28px,
      rgba(139, 90, 43, 0.04) 29px
    ),
    radial-gradient(ellipse at 30% 20%, rgba(255, 240, 200, 0.5), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(180, 130, 60, 0.15), transparent 50%),
    var(--paper);
  border: 8px double var(--dark);
  outline: 4px solid var(--brown-border);
  outline-offset: 6px;
  box-shadow:
    0 0 0 12px var(--dark),
    0 20px 60px rgba(0, 0, 0, 0.7),
    inset 0 0 80px rgba(139, 90, 43, 0.15);
  padding: 0;
  text-align: center;
  overflow: hidden;
  animation: posterReveal 0.8s ease-out both;
}

@keyframes posterReveal {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Aged paper texture overlay */
.poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.poster > * {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   ORNAMENT LINES
   ═══════════════════════════════════════ */
.ornament-line {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--brown-border);
  letter-spacing: 0.8rem;
  padding: 0.3rem 0;
  opacity: 0.6;
}

.ornament-line.thin {
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  letter-spacing: 1.2rem;
  padding: 0.1rem 0;
}

/* ═══════════════════════════════════════
   SCROLLING TICKER (TOOL TOOL TOOL)
   ═══════════════════════════════════════ */
.ticker {
  background: var(--dark);
  color: var(--gold);
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Rye', serif;
  font-size: clamp(0.7rem, 1.8vw, 1rem);
  letter-spacing: 0.3rem;
  padding: 0.4rem 0;
}

.ticker-track {
  display: inline-block;
  animation: scrollTicker 10s linear infinite;
}

.ticker-track-reverse {
  animation-name: scrollTickerReverse;
}

@keyframes scrollTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scrollTickerReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* ═══════════════════════════════════════
   WANTED TITLE
   ═══════════════════════════════════════ */
.wanted-title {
  font-family: 'Rye', serif;
  font-size: clamp(4rem, 14vw, 10rem);
  letter-spacing: 0.8rem;
  color: var(--dark);
  text-transform: uppercase;
  margin: 0.2rem 0 0;
  text-shadow:
    3px 3px 0 rgba(199, 146, 63, 0.5),
    -1px -1px 0 rgba(85, 52, 31, 0.3);
  line-height: 1;
}

.reward-line {
  font-family: 'Special Elite', monospace;
  font-size: clamp(0.85rem, 2.4vw, 1.3rem);
  letter-spacing: 0.25rem;
  color: var(--brown-border);
  margin: 0.2rem 0 0.3rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   TOOL — THE BIG NAME
   ═══════════════════════════════════════ */
.tool-mega {
  font-family: 'Creepster', cursive;
  font-size: clamp(6rem, 25vw, 18rem);
  line-height: 0.85;
  color: var(--red);
  text-transform: uppercase;
  margin: 0;
  text-shadow:
    6px 6px 0 #cfa46f,
    10px 10px 0 rgba(26, 14, 5, 0.3);
  letter-spacing: 0.5rem;
  animation: toolPulse 2s ease-in-out infinite alternate;
}

@keyframes toolPulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

/* ═══════════════════════════════════════
   PHOTO FRAME / MUGSHOT
   ═══════════════════════════════════════ */
.photo-frame {
  position: relative;
  width: min(85%, 420px);
  aspect-ratio: 3 / 4;
  margin: 1.2rem auto;
  border: 10px solid var(--brown-border);
  background: linear-gradient(180deg, #d4b07a, #c9a36e);
  padding: 6px;
  box-shadow:
    inset 0 0 15px rgba(0, 0, 0, 0.3),
    0 10px 35px rgba(0, 0, 0, 0.5),
    0 0 0 3px var(--gold);
  overflow: hidden;
}

.mugshot {
  width: 100%;
  height: 100%;
  display: block;
  border: 3px solid #3b2314;
  object-fit: cover;
  object-position: top center;
  filter: sepia(20%) contrast(1.1) brightness(0.92);
  transition: filter 0.3s ease;
}

.photo-frame:hover .mugshot {
  filter: sepia(5%) contrast(1.15) brightness(1);
}

/* Stamps overlaid on photo */
.stamp {
  position: absolute;
  font-family: 'Creepster', cursive;
  font-weight: 900;
  text-transform: uppercase;
  border: 5px solid currentColor;
  padding: 0.15rem 0.8rem;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  animation: stampSlam 0.4s ease-out forwards;
}

.stamp-1 { animation-delay: 0.6s; }
.stamp-2 { animation-delay: 0.9s; }
.stamp-3 { animation-delay: 1.2s; }
.stamp-4 { animation-delay: 1.5s; }

@keyframes stampSlam {
  0% {
    opacity: 0;
    transform: scale(2.5) rotate(0deg);
  }
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 0.8;
  }
}

.stamp-1 {
  top: 8%;
  right: -3%;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--red-bright);
  animation-name: stampSlam1;
}

.stamp-2 {
  bottom: 6%;
  left: -2%;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: var(--red);
  animation-name: stampSlam2;
}

.stamp-3 {
  top: 42%;
  left: 50%;
  font-size: clamp(2.5rem, 7vw, 4rem);
  color: #d4380d;
  letter-spacing: 0.4rem;
  animation-name: stampSlam3;
}

.stamp-4 {
  top: 18%;
  left: 5%;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: var(--red);
  animation-name: stampSlam4;
}

@keyframes stampSlam1 {
  0% { opacity: 0; transform: scale(2.5) rotate(18deg); }
  60% { opacity: 0.85; }
  100% { opacity: 0.8; transform: scale(1) rotate(18deg); }
}

@keyframes stampSlam2 {
  0% { opacity: 0; transform: scale(2.5) rotate(-12deg); }
  60% { opacity: 0.85; }
  100% { opacity: 0.8; transform: scale(1) rotate(-12deg); }
}

@keyframes stampSlam3 {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.5) rotate(-8deg); }
  60% { opacity: 0.85; }
  100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
}

@keyframes stampSlam4 {
  0% { opacity: 0; transform: scale(2.5) rotate(25deg); }
  60% { opacity: 0.85; }
  100% { opacity: 0.8; transform: scale(1) rotate(25deg); }
}

/* ═══════════════════════════════════════
   TOOL WATERMARK
   ═══════════════════════════════════════ */
.tool-watermark {
  font-family: 'Creepster', cursive;
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--red);
  opacity: 0.12;
  letter-spacing: 1rem;
  padding: 0.2rem 0;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   CHARGES
   ═══════════════════════════════════════ */
.charges-banner {
  background: var(--dark);
  color: var(--paper-light);
  padding: 0.6rem 1rem;
  margin: 0.8rem 1.5rem 0;
  border: 3px solid var(--gold);
}

.charges-banner h3 {
  font-family: 'Rye', serif;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  letter-spacing: 0.5rem;
  margin: 0;
}

.charges-list {
  list-style: none;
  margin: 0.8rem 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.charges-list li {
  font-family: 'Special Elite', monospace;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.4rem 0;
  border-bottom: 2px dashed rgba(85, 52, 31, 0.3);
  animation: chargeSlide 0.5s ease-out both;
}

.charges-list li:nth-child(1) { animation-delay: 1.4s; }
.charges-list li:nth-child(2) { animation-delay: 1.6s; }
.charges-list li:nth-child(3) { animation-delay: 1.8s; }
.charges-list li:nth-child(4) { animation-delay: 2.0s; }

@keyframes chargeSlide {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.charge-num {
  font-family: 'Rye', serif;
  color: var(--brown-border);
  margin-right: 0.3rem;
}

.charge-label {
  color: var(--red);
  font-family: 'Creepster', cursive;
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  letter-spacing: 0.15rem;
}

/* ═══════════════════════════════════════
   THE BIGGEST TOOL — ABSOLUTELY MASSIVE
   ═══════════════════════════════════════ */
.tool-biggest-wrap {
  position: relative;
  margin: 1rem 0 0.5rem;
  padding: 0.5rem;
  overflow: hidden;
}

.tool-biggest {
  font-family: 'Creepster', cursive;
  font-size: clamp(8rem, 35vw, 26rem);
  line-height: 0.8;
  color: var(--red);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.3rem;
  margin: 0;
  text-shadow:
    8px 8px 0 #2a170a,
    0 0 40px rgba(199, 146, 63, 0.5),
    0 0 80px rgba(139, 26, 26, 0.3);
  animation: toolMegaPulse 1.5s ease-in-out infinite alternate;
}

.tool-bottom {
  font-size: clamp(6rem, 28vw, 20rem);
  color: var(--dark);
  text-shadow:
    4px 4px 0 var(--red),
    8px 8px 0 rgba(199, 146, 63, 0.3);
  opacity: 0.9;
}

.tool-biggest-shadow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: transparent;
  -webkit-text-stroke: 3px rgba(199, 146, 63, 0.3);
  font-size: clamp(9rem, 38vw, 28rem);
  animation: none;
  opacity: 0.5;
}

@keyframes toolMegaPulse {
  from {
    transform: scale(1);
    text-shadow:
      8px 8px 0 #2a170a,
      0 0 40px rgba(199, 146, 63, 0.5),
      0 0 80px rgba(139, 26, 26, 0.3);
  }
  to {
    transform: scale(1.05);
    text-shadow:
      10px 10px 0 #2a170a,
      0 0 60px rgba(199, 146, 63, 0.7),
      0 0 120px rgba(139, 26, 26, 0.5);
  }
}

/* ═══════════════════════════════════════
   TOOL GRID — MORE TOOL
   ═══════════════════════════════════════ */
.tool-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.5rem;
  padding: 0.5rem 1rem;
  opacity: 0.4;
}

.tool-grid span {
  font-family: 'Rye', serif;
  font-size: clamp(0.9rem, 2.2vw, 1.4rem);
  color: var(--red);
  letter-spacing: 0.2rem;
  font-weight: 900;
}

.tool-grid span:nth-child(odd) {
  color: var(--dark);
}

/* ═══════════════════════════════════════
   DESCRIPTION
   ═══════════════════════════════════════ */
.description {
  font-family: 'Special Elite', monospace;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  line-height: 1.7;
  max-width: 58ch;
  margin: 0.8rem auto;
  padding: 0.8rem 1.5rem;
  color: var(--ink);
  border-top: 2px solid rgba(85, 52, 31, 0.2);
  border-bottom: 2px solid rgba(85, 52, 31, 0.2);
}

.description strong {
  color: var(--red);
  font-family: 'Creepster', cursive;
  font-size: 1.2em;
  letter-spacing: 0.05rem;
}

/* ═══════════════════════════════════════
   TOOL STRIP
   ═══════════════════════════════════════ */
.tool-strip {
  background: var(--red);
  color: var(--paper-light);
  font-family: 'Creepster', cursive;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  letter-spacing: 0.5rem;
  padding: 0.7rem 1rem;
  margin: 0.8rem 0 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════
   FINE PRINT
   ═══════════════════════════════════════ */
.fine-print {
  font-family: 'Special Elite', monospace;
  font-size: clamp(0.65rem, 1.6vw, 0.85rem);
  letter-spacing: 0.12rem;
  color: var(--brown-border);
  margin: 0.8rem 1rem 0;
  padding-bottom: 0;
  line-height: 1.6;
}

.fine-print strong {
  color: var(--red);
}

.ticker-bottom {
  margin-top: 0.8rem;
}

/* ═══════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 560px) {
  body {
    padding: 0.5rem;
  }

  .poster {
    outline-offset: 3px;
  }

  .charges-banner,
  .charges-list {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
  }

  .description {
    padding: 0.5rem 0.8rem;
  }
}

/* ═══════════════════════════════════════
   REDUCED MOTION — ACCESSIBILITY
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .stamp { opacity: 0.8; }
  .charges-list li { opacity: 1; }
}
