/* ==========================================================================
   The Art Board — corkboard, ticket stubs, library cards, pins, string
   ========================================================================== */

.label--spaced { letter-spacing: 0.28em; }

.ab-title { font-size: clamp(4rem, 15vw, 12rem); }

/* ---------- Board frame + cork ---------- */

.board-wrap {
  max-width: 110rem;
  margin: 0 auto clamp(4rem, 10vw, 8rem);
  padding-inline: var(--gutter);
}

.board-frame {
  padding: 10px;
  background-color: #4E321E;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 7px, rgba(0, 0, 0, 0.08) 7px 9px, transparent 9px 16px),
    linear-gradient(180deg, #6A4428, #43291A);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.5);
}

.board {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 4rem) clamp(3rem, 6vw, 5rem);
  background-color: #C39A6B;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .18 0 0 0 0 .08 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(rgba(255, 236, 205, 0.16) 1px, transparent 1.7px),
    radial-gradient(rgba(70, 40, 15, 0.14) 1.4px, transparent 2.2px);
  background-size: 220px 220px, 9px 13px, 17px 11px;
  background-position: 0 0, 2px 4px, 7px 1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 3px 18px rgba(0, 0, 0, 0.35);
}

.board__noscript {
  padding: 2rem;
  background: #fff;
  text-align: center;
}

/* ---------- Layout: one column on phones, loose grid on larger screens ---------- */

.board__items {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.25rem;
  justify-items: center;
  pointer-events: none;              /* let the strings underneath receive hover */
  --jitter: 0;
}
.board__cell { display: flex; justify-content: center; align-items: center; }
.board__cell[hidden] { display: none; }

.board__strings {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;                     /* strings hidden on phones */
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

@media (min-width: 48em) {
  .board__items {
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 4.5rem 2.5rem;
    --jitter: 1;
  }
  .board__strings { display: block; }
}

/* ---------- Pinned item (the clickable button) ---------- */

.pinned {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(calc(var(--x) * var(--jitter)), calc(var(--y) * var(--jitter))) rotate(var(--r));
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.2));
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.pinned:hover,
.pinned:focus-visible {
  z-index: 5;
  transform: translate(calc(var(--x) * var(--jitter)), calc(var(--y) * var(--jitter) - 10px)) rotate(0deg) scale(1.04);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2)) drop-shadow(0 22px 26px rgba(0, 0, 0, 0.3));
}
.pinned:focus-visible { outline: 3px solid var(--text); outline-offset: 8px; }

.pinned__pin {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FF8A97 0 2px, #E3243F 3.5px, #C8102E 6px, #7E0A1C 100%);
  box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.35);
}

/* ---------- Film: torn movie ticket stub ---------- */

.ticket {
  --tear: 7px;
  display: flex;
  width: 17rem;
  min-height: 8.75rem;
  background: #F4ECDC;
  -webkit-mask:
    linear-gradient(#000 0 0) left / calc(100% - var(--tear)) 100% no-repeat,
    conic-gradient(from -135deg at 100% 50%, #000 90deg, #0000 0) right / var(--tear) calc(var(--tear) * 1.6) repeat-y;
          mask:
    linear-gradient(#000 0 0) left / calc(100% - var(--tear)) 100% no-repeat,
    conic-gradient(from -135deg at 100% 50%, #000 90deg, #0000 0) right / var(--tear) calc(var(--tear) * 1.6) repeat-y;
}

.ticket__stub {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  flex: none;
  border-right: 2px dashed rgba(200, 16, 46, 0.55);
  background: rgba(200, 16, 46, 0.07);
}
.ticket__no {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.ticket__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin: 0.5rem calc(var(--tear) + 0.375rem) 0.5rem 0.5rem;
  padding: 0.625rem 0.75rem 0.6rem;
  border: 1px solid rgba(200, 16, 46, 0.45);
}
.ticket__admit {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.32em;
  line-height: 1;
}
.ticket__title {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.75rem;
  line-height: 0.95;
}
.ticket__creator { margin-top: 0.35rem; font-size: 0.8125rem; font-weight: 400; line-height: 1.35; }
.ticket__date { margin-top: auto; padding-top: 0.35rem; color: #5A5A5A; font-size: 0.75rem; line-height: 1.3; }
.ticket__stars { margin-top: 0.3rem; color: var(--accent); font-size: 1rem; letter-spacing: 0.08em; line-height: 1; }
.ticket__rewatch {
  display: inline-block;
  margin-right: 0.2rem;
  padding: 0.05rem 0.3rem 0;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Book: old library checkout card ---------- */

.libcard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 14rem;
  min-height: 19rem;
  padding: 1.1rem 1.1rem 1rem;
  background: #F6EDD3;
}
.libcard__head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #111;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
}
.libcard__label {
  color: #5A5A5A;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  line-height: 1;
}
.libcard__title {
  margin: 0.25rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 0.95;
}
.libcard__author {
  margin-top: 0.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  font-size: 0.875rem;
  font-weight: 400;
}
.libcard__stars { margin-top: 0.15rem; color: var(--accent); font-size: 1.05rem; letter-spacing: 0.08em; line-height: 1.2; }
.libcard__lines {
  flex: 1;
  min-height: 4.5rem;
  background:
    linear-gradient(90deg, transparent 32%, rgba(200, 16, 46, 0.35) 32% calc(32% + 1px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 21px, rgba(0, 0, 0, 0.16) 21px 22px);
}
.libcard__stamp {
  position: absolute;
  right: 0.75rem;
  bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0.6rem 0.25rem;
  border: 3px double var(--accent);
  border-radius: 3px;
  background: rgba(246, 237, 211, 0.85);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: rotate(-9deg);
  mix-blend-mode: multiply;
}
.libcard__stamp span { font-size: 0.75rem; letter-spacing: 0.22em; margin-bottom: 0.15rem; }

/* ---------- String ---------- */

.string path { fill: none; stroke-linecap: round; }
.string__shadow { stroke: rgba(40, 20, 5, 0.35); stroke-width: 2; transform: translate(1px, 3px); }
.string__line { stroke: var(--accent); stroke-width: 1.6; transition: stroke-width 0.2s, opacity 0.2s; }
.string--five .string__line { stroke: #E0A526; }
.string--actor .string__line { stroke: #2F5FA7; stroke-dasharray: 6 4; }
.string__hit { stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: help; }

.board__strings.has-active .string { opacity: 0.3; transition: opacity 0.2s; }
.board__strings.has-active .string.is-active { opacity: 1; }
.string.is-active .string__line { stroke-width: 3; }

.board__tip {
  position: absolute;
  z-index: 6;
  padding: 0.45rem 0.75rem 0.3rem;
  background: var(--text);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.0625rem;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}
.board__tip[hidden] { display: none; }

/* ---------- Takeaway card (dialog) ---------- */

.ab-dialog {
  width: min(92vw, 34rem);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.ab-dialog::backdrop { background: rgba(17, 17, 17, 0.65); }
.ab-dialog[open] { animation: ab-in 0.3s var(--ease); }
@keyframes ab-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.ab-dialog__inner { position: relative; padding: clamp(2rem, 6vw, 3rem); }

.ab-dialog__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem 0.45rem;
  font-size: 1rem;
}

.ab-dialog__title {
  margin-top: 1rem;
  padding-right: 4rem;
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  line-height: 0.9;
}
.ab-dialog__meta { margin-top: 0.75rem; color: var(--muted); font-size: 0.875rem; }
.ab-dialog .rule { margin: 1.75rem 0; }
.ab-dialog__rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; }
.ab-dialog__rating[hidden] { display: none; }
.ab-dialog__stars { color: var(--accent); font-size: clamp(1.75rem, 5vw, 2.25rem); letter-spacing: 0.08em; line-height: 1; }
.ab-dialog__source { color: var(--muted); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ab-dialog__rating + .ab-dialog__takeaway { margin-top: 1rem; }
.ab-dialog__takeaway[hidden] { display: none; }
.ab-dialog__takeaway {
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  font-weight: 300;
  line-height: 1.4;
}
.ab-dialog__themes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.ab-dialog__themes li {
  padding: 0.4rem 0.7rem 0.3rem;
  border: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.14em;
  line-height: 1;
}
.ab-dialog__themes li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.5em 0.15em 0;
  background: var(--accent);
  vertical-align: middle;
}

/* Small text on the board in full caps, like the logo */
.ticket__admit,
.ticket__no,
.libcard__head,
.libcard__label,
.libcard__stamp,
.board__tip,
.ab-dialog__themes li { text-transform: uppercase; }

/* ==========================================================================
   Mount Rushmore — the all-time four films and four books
   ========================================================================== */

.rushmore { padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.rushmore__title { margin-top: 0.75rem; font-size: clamp(3.5rem, 12vw, 9rem); line-height: 0.85; }
.rushmore__intro { margin-top: 1rem; color: var(--muted); }

.rushmore__group { margin-top: clamp(2.5rem, 6vw, 4rem); }
.rushmore__group[hidden] { display: none; }
/* shown above the board when Books or Films is picked */
.rushmore--first { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.rushmore--first .rushmore__title { font-size: clamp(3rem, 9vw, 6.5rem); }
.rushmore__kind {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
}

.rushmore__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1rem;
}
@media (min-width: 48em) {
  .rushmore__row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}

/* Granite slab with the rank carved in */
.carved__face {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 3px;
  background-color: #8E8B86;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .2 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #B3AFA8, #8A8680 55%, #6F6C67);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), inset 0 -10px 24px rgba(0, 0, 0, 0.25), 0 14px 22px -14px rgba(0, 0, 0, 0.5);
}
.carved__face img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carved__numeral {
  position: relative;
  color: #7C7973;
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 7rem);
  line-height: 1;
  /* engraved: dark edge on top, light edge below */
  text-shadow: -1px -2px 1px rgba(0, 0, 0, 0.45), 1px 2px 1px rgba(255, 255, 255, 0.35);
}
/* With artwork: the cover is set into the granite whole (never cropped),
   and the rank is carved into the stone underneath it, clear of the art. */
.carved__face.has-image {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  padding: 0.55rem 0.55rem 0;
}
.carved__face.has-image img {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: #6F6C67;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.carved__face.has-image .carved__numeral {
  position: static;
  align-self: center;
  padding: 0.3rem 0 0.15rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
}

.carved__title {
  margin-top: 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 0.95;
}
.carved__creator { margin-top: 0.3rem; color: var(--muted); font-size: 0.875rem; }

/* ==========================================================================
   Board decorations: year card, string legend, pins, tape, stickers
   ========================================================================== */

.board__head {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem 3rem;
  margin-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

/* typed index card with the year's numbers */
.yearcard {
  position: relative;
  width: min(100%, 26rem);
  padding: 1.6rem 1.5rem 1.25rem;
  background:
    linear-gradient(180deg, transparent 0 3.1rem, rgba(200, 16, 46, 0.55) 3.1rem calc(3.1rem + 2px), transparent 0),
    repeating-linear-gradient(180deg, transparent 0 1.6rem, rgba(29, 78, 154, 0.16) 1.6rem calc(1.6rem + 1px)),
    #FBF8F1;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2), 0 16px 24px -10px rgba(0, 0, 0, 0.35);
  font-family: "Courier Prime", "Courier New", monospace;
  transform: rotate(-1.5deg);
}
.yearcard__tape,
.pinned__tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 6.5rem;
  height: 1.6rem;
  margin-left: -3.25rem;
  background: rgba(236, 226, 196, 0.82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 45%);
  transform: rotate(-3deg);
}
.yearcard__kicker { color: var(--accent); font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.24em; text-transform: uppercase; }
.yearcard__year { margin-top: 0.35rem; font-family: var(--font-display); font-size: clamp(4.5rem, 10vw, 6.5rem); line-height: 0.85; }
.yearcard__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem 1.25rem; margin-top: 1rem; }
.yearcard__stats dt { color: #5A5A5A; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.yearcard__stats dd { margin: 0.1rem 0 0; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.yearcard__stats dd span { margin-left: 0.15rem; color: var(--accent); font-size: 1.4rem; }

/* yellow sticky note legend */
.legend {
  position: relative;
  width: min(100%, 19rem);
  padding: 1.5rem 1.25rem 1.1rem;
  background: linear-gradient(170deg, #FFF3A3, #F9E37A);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18), 0 18px 22px -12px rgba(0, 0, 0, 0.4);
  color: #2A2410;
  transform: rotate(2deg);
}
.legend__pin {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9FB8E8 0 2px, #3E6CC0 3.5px, #2F5FA7 6px, #17335F 100%);
  box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.35);
}
.legend__title { font-family: "Caveat", cursive; font-size: 1.9rem; font-weight: 700; line-height: 1; }
.legend__hint { margin-top: 0.35rem; font-size: 0.8rem; line-height: 1.35; }
.legend__keys { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.8rem; }
.legend__key {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.25rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(42, 36, 16, 0.35);
  background: rgba(255, 255, 255, 0.35);
  color: inherit;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, background-color 0.2s;
}
.legend__key:hover { background: rgba(255, 255, 255, 0.6); }
.legend__key[aria-pressed="false"] { opacity: 0.45; }
.legend__key[aria-pressed="false"] .legend__swatch { background: transparent !important; }
.legend__swatch { flex: none; width: 1.75rem; height: 4px; border: 1px solid transparent; background: var(--accent); }
.legend__key--five .legend__swatch { background: #E0A526; }
.legend__key--actor .legend__swatch { background: repeating-linear-gradient(90deg, #2F5FA7 0 6px, transparent 6px 10px); }
.legend__small { display: none; margin-top: 0.7rem; font-size: 0.75rem; font-style: italic; line-height: 1.35; }

/* coffee ring left on the cork */
.board__coffee {
  position: absolute;
  top: -2rem;
  left: 4%;
  z-index: -1;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 58%, rgba(92, 52, 20, 0.3) 60%, rgba(92, 52, 20, 0.12) 64%, transparent 68%);
  transform: rotate(20deg) scaleX(1.06);
  pointer-events: none;
}

/* pin colors + tape instead of a pin */
.pinned__pin--black { background: radial-gradient(circle at 35% 30%, #8A8A8A 0 2px, #333 3.5px, #1A1A1A 6px, #000 100%); }
.pinned__pin--white { background: radial-gradient(circle at 35% 30%, #FFF 0 2px, #EDEAE2 3.5px, #CFCBC1 6px, #8F8A80 100%); }
.pinned__pin--gold  { background: radial-gradient(circle at 35% 30%, #FFF1B8 0 2px, #F2C442 3.5px, #D9A21B 6px, #7A5508 100%); }
.pinned__pin--blue  { background: radial-gradient(circle at 35% 30%, #9FB8E8 0 2px, #3E6CC0 3.5px, #2F5FA7 6px, #17335F 100%); }
.pinned__pin.pinned__tape {
  top: -10px;
  width: 5.5rem;
  height: 1.35rem;
  margin-left: -2.75rem;
  border-radius: 0;
}

/* gold "5 stars" sticker on perfect scores */
.pinned__sticker {
  position: absolute;
  top: -0.9rem;
  right: -0.8rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE79A, #E8B32C 60%, #B9840F);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.45);
  color: #5A3D02;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  transform: rotate(12deg);
}
.pinned__sticker span { margin-top: -0.35rem; font-size: 0.75rem; }

/* ---------- pop-up card: connections ---------- */
.ab-dialog__connections { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); }
.ab-dialog__connections[hidden] { display: none; }
.ab-dialog__connhead { font-size: 1.35rem; letter-spacing: 0.08em; }
.ab-conn { margin-top: 0.9rem; padding-left: 0.85rem; border-left: 4px solid var(--accent); }
.ab-conn--five { border-left-color: #E0A526; }
.ab-conn--actor { border-left: 4px dashed #2F5FA7; }
.ab-conn__name { color: var(--muted); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ab-conn ul { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.ab-conn__item {
  padding: 0.35rem 0.65rem 0.3rem;
  border: 1px solid var(--hairline);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.ab-conn__item:hover { border-color: var(--accent); color: var(--accent); }

/* phones: no strings, so the legend just explains where connections live */
@media (max-width: 47.99em) {
  .legend__hint, .legend__keys { display: none; }
  .legend__small { display: block; }
}
