@font-face {
  font-family: "Obby Serif";
  src: url("img/announcements/young-serif-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

.obby-banner {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr .75fr 1fr;
  align-items: center;
  gap: 20px;
  width: 100%;
  --phone-peek: 10px;
  min-height: 100px;
  padding: 10px 24px;
  border-radius: 16px;
  background: #191a1d;
  color: #f2f1ee;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease;
}
.obby-banner:hover { background: #2a2b30; cursor: pointer; }
.obby-banner:focus-visible { outline: 2px solid var(--Cinnabar); outline-offset: 4px; }
.obby-banner-copy { min-width: 0; position: relative; z-index: 1; }
.obby-banner-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 5px; }
.obby-banner-brand > img { width: 27px; height: auto; }
.obby-banner-brand > span:first-of-type { font-family: "Obby Serif", Georgia, serif; font-size: 23px; line-height: 1; letter-spacing: -.065em; }
.obby-banner-label { margin-left: 8px; color: #aaaab3; font-size: 10px; line-height: 16px; }
.obby-banner-copy h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; }
.obby-banner-copy p { margin: 0; color: #bdbcc5; font-size: 11px; line-height: 15px; }
.obby-banner-copy p br { display: none; }
/* This window ends exactly at the banner bottom; its top allows a fixed peek. */
.obby-banner-visual { position: absolute; top: calc(-1 * var(--phone-peek)); bottom: 0; left: 50%; width: 220px; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.obby-banner-visual > img { display: block; position: absolute; top: -12px; left: 0; width: 220px; max-width: none; height: auto; }
.obby-banner-tcg { grid-column: 3; }
.obby-banner-tcg { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; position: relative; z-index: 1; }
.obby-banner-badge { display: block; width: 100%; max-width: 280px; height: auto; }
.obby-banner-link { display: flex; align-items: center; gap: 9px; color: #f2f1ee; font-size: 11px; line-height: 16px; }
.obby-banner-link img { filter: invert(1); }
.obby-banner-mobile-tcg { display: none; }
@media (min-width: 601px) {
  .obby-banner-link { position: relative; top: 6px; }
}
@media (min-width: 601px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .obby-banner-visual { transition: top .22s ease; }
  .obby-banner:hover .obby-banner-visual { top: calc(-1 * var(--phone-peek) - 6px); }
}
@media (max-width: 900px) {
  .obby-banner { gap: 14px; padding-inline: 18px; }
  .obby-banner-copy h2 { font-size: 16px; }
  .obby-banner-label { display: none; }
  .obby-banner-visual { width: 200px; }
  .obby-banner-visual > img { width: 200px; top: -11px; }
}
@media (max-width: 600px) {
  .obby-banner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    min-height: 0;
    padding: 16px;
    gap: 16px 12px;
  }
  .obby-banner-copy { grid-column: 1; grid-row: 1; margin: 0; }
  .obby-banner-brand { margin-bottom: 8px; }
  .obby-banner-label { display: none; }
  .obby-banner-copy h2 { font-size: 18px; line-height: 22px; margin-bottom: 6px; }
  .obby-banner-copy p { font-size: 11px; line-height: 16px; }
  /* The whole phone belongs to the first row, with no clipping or protrusion. */
  .obby-banner-visual {
    position: static;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 100%;
    max-width: 190px;
    height: auto;
    margin: 0;
    transform: none;
    overflow: visible;
    border-radius: 0;
  }
  .obby-banner-visual > img { position: static; display: block; width: 100%; height: auto; transform: none; }
  .obby-banner-tcg { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; }
  .obby-banner-badge { display: none; }
  /* Keep the supplied card artwork, but render the caption as readable mobile text. */
  .obby-banner-mobile-tcg { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; font-weight: 500; }
  .obby-banner-card-art { display: block; position: relative; flex: 0 0 84px; height: 40px; overflow: hidden; }
  .obby-banner-card-art img { display: block; width: auto; max-width: none; height: 40px; }
  .obby-banner-link { display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; min-height: 44px; padding: 10px 14px; border-radius: 8px; background: #f2f1ee; color: #191a1d; font-size: 13px; line-height: 20px; font-weight: 500; }
  .obby-banner-link img { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .obby-banner { transition: none; }
}
