/* Parody vintage ad pack (extracted from fake-vintage-ads.html).
   Every ad is an anti-drinking joke; clicking one calls reward(). */

/* ---- placement: side rails + banner slot ---- */
.ad-rail {
  position: absolute;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 5;
}
.ad-rail.left  { left:  calc(50% - 360px - 150px); }
.ad-rail.right { right: calc(50% - 360px - 150px); }
@media (max-width: 1080px) { .ad-rail { display: none; } } /* mobile / narrow */

.banner-slot { margin: 0 auto 16px; }
.banner-slot .ad { margin: 0 auto; }

/* ---- shared ad styles ---- */
.ad {
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  border: 3px outset #dfdfdf;
  cursor: pointer;
  font-family: Arial, sans-serif;
  display: block;
}
.sky { width: 120px; height: 600px; }
.banner { width: 468px; height: 60px; max-width: 100%; }

@keyframes blinker { 50% { opacity: 0; } }
@keyframes shaker {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-2px, 1px) rotate(-1deg); }
  75% { transform: translate(2px, -1px) rotate(1deg); }
}
@keyframes rainbow {
  0% { color: #ff0000; } 20% { color: #ff9900; } 40% { color: #ffff00; }
  60% { color: #00ff00; } 80% { color: #0000ff; } 100% { color: #ff00ff; }
}
@keyframes flashbg {
  0%, 49% { background: #ffff00; }
  50%, 100% { background: #ff0000; }
}
/* scoped under .ad so they don't clash with the site's own .blink */
.ad .blink { animation: blinker 0.7s step-start infinite; }
.ad.shake, .ad .shake { animation: shaker 0.3s infinite; }

@media (prefers-reduced-motion: reduce) {
  .ad .blink, .ad.shake, .ad .shake, .flashbtn { animation: none !important; }
}

/* ---- ad 1: punch the beer (120x600) ---- */
.ad-punch {
  background: linear-gradient(180deg, #000066 0%, #0000cc 50%, #000066 100%);
  color: #fff;
  text-align: center;
  padding: 10px 6px;
}
.ad-punch .headline {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 20px;
  color: #ffff00;
  text-shadow: 2px 2px 0 #ff0000;
  margin: 8px 0;
  line-height: 1.1;
}
.ad-punch .beer { font-size: 64px; display: inline-block; margin: 20px 0; }
.ad-punch .fist { font-size: 40px; display: inline-block; margin: 6px 0; }
.ad-punch .prize {
  font-size: 12px;
  font-weight: bold;
  color: #00ff00;
  margin: 14px 4px;
}
.flashbtn {
  display: inline-block;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  color: #000;
  padding: 8px 10px;
  border: 3px outset #ffcc00;
  animation: flashbg 0.6s step-start infinite;
  margin-top: 16px;
}

/* ---- ad 2: 1,000,000th visitor (120x600) ---- */
.ad-visitor {
  background: repeating-linear-gradient(45deg, #ff0000 0 20px, #ffff00 20px 40px);
  text-align: center;
  padding: 0;
}
.ad-visitor .inner {
  background: #fff;
  margin: 12px 8px;
  height: calc(100% - 24px);
  box-sizing: border-box;
  padding: 16px 6px;
  border: 2px dashed #ff0000;
}
.ad-visitor .congrats {
  font-family: "Comic Sans MS", cursive;
  font-size: 15px;
  font-weight: bold;
  color: #ff00ff;
}
.ad-visitor .big-num {
  font-family: Impact, sans-serif;
  font-size: 26px;
  color: #ff0000;
  margin: 10px 0;
}
.ad-visitor .sub {
  font-size: 11px;
  color: #000080;
  font-weight: bold;
  margin: 10px 2px;
}
.ad-visitor .arrows { font-size: 26px; margin: 8px 0; }
.ad-visitor .claim {
  display: inline-block;
  background: linear-gradient(180deg, #66ff66, #009900);
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  text-shadow: 1px 1px 0 #000;
  padding: 8px 12px;
  border: 3px outset #00cc00;
  margin-top: 8px;
}

/* ---- ad 3: willpower 2.0 download (120x600) ---- */
.ad-willpower {
  background: linear-gradient(180deg, #d4d0c8 0%, #ffffff 8%, #d4d0c8 100%);
  padding: 0;
}
.ad-willpower .titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 6px;
  display: flex;
  justify-content: space-between;
}
.ad-willpower .titlebar .x {
  background: #d4d0c8;
  color: #000;
  border: 1px outset #fff;
  padding: 0 4px;
  font-size: 10px;
}
.ad-willpower .body { padding: 12px 8px; text-align: center; }
.ad-willpower .warn { font-size: 34px; }
.ad-willpower .msg {
  font-size: 12px;
  font-weight: bold;
  color: #000;
  margin: 10px 2px;
  line-height: 1.4;
}
.ad-willpower .filename {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: #000080;
  margin: 8px 0;
  word-break: break-all;
}
.ad-willpower .dl {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  background: #d4d0c8;
  border: 2px outset #fff;
  padding: 6px 14px;
  margin: 6px 0;
}
.ad-willpower .progress {
  height: 16px;
  border: 1px inset #808080;
  background: #fff;
  margin: 10px 4px;
  position: relative;
}
.ad-willpower .progress .fill {
  position: absolute; inset: 1px auto 1px 1px;
  width: 62%;
  background: repeating-linear-gradient(90deg, #000080 0 8px, #1084d0 8px 16px);
}
.ad-willpower .pct { font-size: 10px; }

/* ---- ad 4: hot singles (468x60) ---- */
.ad-singles {
  background: linear-gradient(90deg, #ff00cc, #660066);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  gap: 8px;
}
.ad-singles .txt {
  font-family: "Comic Sans MS", cursive;
  font-size: 15px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  animation: rainbow 2s linear infinite;
}
.ad-singles .heart { font-size: 28px; }
.ad-singles .btn {
  background: #ffff00;
  color: #ff0000;
  font-family: "Arial Black", sans-serif;
  font-size: 12px;
  padding: 6px 8px;
  border: 3px outset #ffcc00;
  white-space: nowrap;
}

/* ---- ad 5: liver low warning (468x60) ---- */
.ad-liver {
  background: #ffffcc;
  border: 3px solid #ff0000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}
.ad-liver .icon { font-size: 30px; }
.ad-liver .msg {
  font-size: 12px;
  font-weight: bold;
  color: #cc0000;
  line-height: 1.3;
}
.ad-liver .fix {
  background: linear-gradient(180deg, #ff6666, #cc0000);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 6px 8px;
  border: 2px outset #ff9999;
  white-space: nowrap;
  margin-left: auto;
}
