/* A brief TV-sized cameo over part of the called board, clear of the pattern
   and current-ball panel. It never participates in the game layout. */
@media screen {
  .caller-i22-express {
    display: none;
    position: fixed;
    --caller-train-width: clamp(320px, 27vw, 1100px);
    top: calc(var(--bingo-environment-banner-height, 0rem) + 23vh);
    left: clamp(1rem, 1.6vw, 1.8rem);
    width: var(--caller-train-width);
    height: calc(var(--caller-train-width) * 0.68);
    z-index: 50;
    pointer-events: none;
    user-select: none;
  }

  body.display-mode .caller-i22-express.is-active {
    display: block;
  }

  .caller-i22-locomotive {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 78%;
    filter: drop-shadow(0 3px 2px #06111fcc) drop-shadow(0 0 8px #b9e9ff80);
  }

  .caller-i22-toot {
    position: absolute;
    top: 0;
    padding: 0.16em 0.4em;
    border: 2px solid #c9e5f5;
    border-radius: 46% 54% 48% 52%;
    color: #18374e;
    background: #f4fbff;
    font: 900 clamp(24px, 2.25vw, 88px)/1.1 "Atkinson Hyperlegible", "Segoe UI", sans-serif;
    box-shadow: 0 3px 4px #06111f99;
    opacity: 0;
  }

  .caller-i22-toot::after {
    content: "";
    position: absolute;
    left: 24%;
    bottom: -0.2em;
    width: 0.24em;
    height: 0.24em;
    border-radius: 50%;
    background: #f4fbff;
  }

  .caller-i22-toot--first { left: 26%; }
  .caller-i22-toot--second { left: 62%; }

  .caller-i22-badge {
    display: none;
    padding: 0.3em 0.45em;
    border: 2px solid #9dc8df;
    border-radius: 0.25em;
    color: #ffdb78;
    background: #153049e8;
    font: 900 clamp(28px, 2.8vw, 104px)/1.15 "Atkinson Hyperlegible", "Segoe UI", sans-serif;
    text-align: center;
  }

  .caller-i22-express[data-motion="animated"].is-active {
    animation: caller-i22-peek 3s ease-in-out both;
  }

  .caller-i22-express[data-motion="animated"].is-active .caller-i22-toot--first {
    animation: caller-i22-toot 0.45s 0.15s ease-out both;
  }

  .caller-i22-express[data-motion="animated"].is-active .caller-i22-toot--second {
    animation: caller-i22-toot 0.45s 0.37s ease-out both;
  }

  .caller-i22-express[data-motion="static"] { height: auto; }
  .caller-i22-express[data-motion="static"] .caller-i22-badge { display: block; }
  .caller-i22-express[data-motion="static"] :is(.caller-i22-locomotive, .caller-i22-toot) { display: none; }

  @keyframes caller-i22-peek {
    0%, 100% { transform: translateX(calc(-100% - 2rem)); opacity: 0; }
    4%, 80% { transform: translateX(0); opacity: 1; }
  }

  @keyframes caller-i22-toot {
    0% { transform: translateY(7px) scale(.65); opacity: 0; }
    20%, 70% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-7px) scale(1.05); opacity: 0; }
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  .caller-i22-express.is-active,
  .caller-i22-express.is-active .caller-i22-toot {
    animation: none !important;
  }
  .caller-i22-express .caller-i22-badge { display: block; }
  .caller-i22-express :is(.caller-i22-locomotive, .caller-i22-toot) { display: none; }
}

@media print {
  .caller-i22-express { display: none !important; }
}
