/* ════════════════════════════════════════════════════════════════════════
   ADVENT AD (shop page, where the collection strip was)
   inc/advent.php → tomo_render_advent_ad(), js/advent-ad.js draws the splat.
   The title is the calendar page's: the mini games' pixel font, the tomos'
   dark blue, a white edge one font pixel thick, a hard shadow. The line
   under it: the site's round font (Fredoka), white. Literal colours: the same in
   Pink Night.
   ════════════════════════════════════════════════════════════════════════ */
.tomo-advent-ad-wrap {
  display: flex; justify-content: center;
  margin: -12px 0 30px; padding: 62px 0 70px;      /* room for the splat round the words */
}
.tomo-shop-wrap > .tomo-advent-ad-wrap:first-child { margin-top: -16px; }
@media (min-width: 961px) and (max-width: 1100px) { .tomo-shop-wrap > .tomo-advent-ad-wrap:first-child { margin-top: 12px; } }

.tomo-advent-ad {
  position: relative; display: block;
  max-width: calc(100% - 96px);
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
/* js sizes and places it (it reaches out past the link: the splatters) */
.tomo-advent-ad-splat { position: absolute; left: 0; top: 0; pointer-events: none; }
.tomo-advent-ad:not(.is-drawn) .tomo-advent-ad-splat { display: none; }

.tomo-advent-ad-text {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  font-family: 'Press Start 2P', monospace; font-weight: 400; letter-spacing: 0;
  -webkit-font-smoothing: none; font-smooth: never;
  color: #130036;
}
.tomo-advent-ad-title {
  --tp: 3px;                                       /* one font pixel */
  font-size: calc(var(--tp) * 8); line-height: calc(var(--tp) * 10);
  text-shadow:
    var(--tp) 0 #fff, calc(var(--tp) * -1) 0 #fff, 0 var(--tp) #fff, 0 calc(var(--tp) * -1) #fff,
    var(--tp) var(--tp) #fff, calc(var(--tp) * -1) var(--tp) #fff,
    var(--tp) calc(var(--tp) * -1) #fff, calc(var(--tp) * -1) calc(var(--tp) * -1) #fff;
  filter: drop-shadow(var(--tp) var(--tp) 0 rgba(19, 0, 54, 0.3));
}
.tomo-advent-ad-line {
  font-family: 'Fredoka', sans-serif; font-weight: 600;   /* the site's round font, white on the pink */
  font-size: 20px; line-height: 1.2; color: #fff;
  -webkit-font-smoothing: antialiased; font-smooth: auto;
}
/* Before the splat is drawn (or with no js): still readable on the page */
.tomo-advent-ad:not(.is-drawn) .tomo-advent-ad-line { color: var(--ink, #130036); }

@media (max-width: 600px) {
  .tomo-advent-ad-wrap { padding: 50px 0 58px; }
  .tomo-advent-ad { max-width: calc(100% - 72px); }
  .tomo-advent-ad-title { --tp: 2px; }
  .tomo-advent-ad-line { font-size: 16px; }
  .tomo-advent-ad-text { gap: 10px; }
}
