/* /fun/box-or-paper/ - Sam's neutral corner. Kraft cardboard and tissue pink, one rug. */
.fun-bp-world{
  --bp-navy: var(--navy, #24324a);
  --bp-accent: var(--accent, #9c4221);
  --bp-kraft: #c9a36b;
  --bp-kraft-dk: #8a6a3a;
  --bp-cream: #faf3e6;
  --bp-paper: #f6d9d9;
  --bp-ink: #2b2622;
  --bp-line: #d9c9ac;
  color: var(--bp-ink);
  background: var(--bp-cream);
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  margin: 0 0 1.5rem;
  padding: 1rem 1rem 1.35rem;
  overflow: hidden;
}
.fun-bp-world a{ color: var(--bp-accent); }
.fun-bp-head h1{
  margin: 0 0 .4rem;
  font-family: Georgia, "Iowan Old Style", Palatino, serif;
  font-size: clamp(1.4rem, 4.6vw, 2rem);
  line-height: 1.15;
  color: var(--bp-navy);
}
.fun-bp-head .lede{ margin: 0 0 .55rem; max-width: 38rem; line-height: 1.45; }
.fun-bp-tape{
  display: inline-block; margin: 0 0 .75rem; padding: .28rem .7rem;
  background: #f3e0a8; color: var(--bp-navy); transform: rotate(-1deg);
  font-family: Georgia, Palatino, serif;
}
/* Barnaby and Biscuit peek in from the card edges on purpose: the art is cropped that way. */
.fun-bp-stage{
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: 11rem; margin: 0 0 .85rem; border-radius: 12px;
  background: #fffaf0; border: 1px solid #e6d7b8;   /* same cream as the hub pet art */
  overflow: hidden;
}
.fun-bp-hero{ width: 10rem; height: 10rem; object-fit: contain; z-index: 1; }
.fun-bp-peek{ position: absolute; bottom: 0; height: 9.5rem; width: auto; object-fit: contain; }
.fun-bp-peek-dog{ left: 0; }
.fun-bp-peek-cat{ right: 0; }
@media (min-width: 640px){ .fun-bp-peek{ height: 11rem; } .fun-bp-hero{ width: 11rem; height: 11rem; } .fun-bp-stage{ min-height: 12rem; } }
.fun-bp-label{ margin: 0 0 .45rem; font-size: 1.05rem; color: var(--bp-navy); }
.fun-bp-picks{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin: 0 0 .7rem; }
.fun-bp-world button:not([data-fun-sfx]){
  font: inherit; cursor: pointer; min-height: 44px; min-width: 44px; padding: .4rem .5rem;
  border-radius: 10px; border: 2px solid var(--bp-navy); background: #fffdf8; color: var(--bp-navy);
}
.fun-bp-pick{ border-radius: 4px 4px 10px 10px !important; background: var(--bp-kraft) !important; border-color: var(--bp-kraft-dk) !important; font-weight: 600; font-size: .86rem; }
.fun-bp-pick[aria-pressed="true"]{ background: var(--bp-navy) !important; color: #fffdf8 !important; border-color: var(--bp-navy) !important; }
.fun-bp-pick.is-done{ box-shadow: inset 0 0 0 2px var(--bp-paper); }
.fun-bp-world button:not([data-fun-sfx]):focus-visible{ outline: 3px solid var(--bp-accent); outline-offset: 3px; }
.fun-bp-live{ min-height: 1.4em; margin: 0 0 .7rem; }
.fun-bp-card{
  background: #fffdf8; border: 1px dashed var(--bp-kraft-dk); border-radius: 12px;
  padding: .8rem; margin: 0 0 .8rem;
}
.fun-bp-card[hidden], .fun-bp-treaty[hidden]{ display: none; }
.fun-bp-card h2{ margin: 0 0 .5rem; font-size: 1.05rem; color: var(--bp-navy); }
.fun-bp-cols{ display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 560px){ .fun-bp-cols{ grid-template-columns: 1fr 1fr; } }
.fun-bp-col{ padding: .55rem .65rem; border-radius: 10px; }
.fun-bp-col:first-child{ background: #f1e2c4; }
.fun-bp-col:last-child{ background: var(--bp-paper); }
.fun-bp-col h3{ margin: 0 0 .25rem; font-size: .95rem; color: var(--bp-navy); }
.fun-bp-col p{ margin: .25rem 0 0; line-height: 1.4; }
.fun-bp-meter{ letter-spacing: .15em; font-size: 1.05rem; min-height: 1.3em; }
.fun-bp-ruling{ margin: .7rem 0 .5rem; line-height: 1.45; }
.fun-bp-guide{ font-weight: 700; }
.fun-bp-count{ margin: 0 0 .8rem; font-weight: 600; color: var(--bp-navy); }
.fun-bp-treaty{
  margin: 0 0 .9rem; padding: .9rem 1rem; background: #fbf0d3;
  border: 2px double var(--bp-kraft-dk); border-radius: 6px; transform: rotate(-.4deg);
  font-family: Georgia, Palatino, serif;
}
.fun-bp-treaty h2{ margin: 0 0 .4rem; font-size: 1.1rem; color: var(--bp-navy); }
.fun-bp-treaty ol{ margin: 0 0 .5rem 1.2rem; padding: 0; line-height: 1.5; }
.fun-bp-sig{ margin: 0; font-style: italic; }
.fun-bp-note{ font-size: .9rem; color: #5c534a; }
@media (prefers-reduced-motion: no-preference){
  .fun-bp-card:not([hidden]), .fun-bp-treaty:not([hidden]){ animation: fun-bp-in .28s ease-out both; }
  @keyframes fun-bp-in{ from{ opacity: 0; transform: translateY(6px); } }
}

/* Sound chip lives in the page header (not position:fixed), like comics: no floating button over content. */
.fun-bp-tools{ display: flex; justify-content: flex-end; margin: 0 0 .35rem; }
#fun-boxpaper [data-fun-sfx]{
  position: static; top: auto; right: auto; z-index: auto; max-width: none; min-width: 44px; min-height: 44px;
  padding: .35rem .8rem; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: .78rem;
}
.fun-bp-world{ max-width: 56rem; margin-left: auto; margin-right: auto; }
