/* ---------- game page head ---------- */
.bb-gametop {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 230px);
  grid-template-areas: "trail trail" "words pic";
  gap: 6px 34px;
  align-items: center;
}
.bb-trail { grid-area: trail; }
.bb-trail ol { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .95rem; }
.bb-trail li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--bb-cocoa); }
.bb-trail span { color: var(--bb-cocoa); }
.bb-gametop-words { grid-area: words; }
.bb-gametop-words h1 { margin-bottom: .25em; }
.bb-gametop-rules { font-size: 1.15rem; max-width: 60ch; margin: 0; }
.bb-gametop-pic { grid-area: pic; margin: 0; transform: rotate(2.5deg); }
.bb-gametop-pic img, .bb-gametop-pic.bb-noimg::before {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 3px solid var(--bb-brown);
  border-radius: 20px 28px 16px 24px;
  box-shadow: 6px 7px 0 var(--bb-brown);
  background: var(--bb-candy);
}
.bb-gametop-pic figcaption { margin-top: 10px; font-family: var(--bb-face); font-size: 1rem; color: var(--bb-cocoa); text-align: center; }
.bb-noimg img { visibility: hidden; }

/* ---------- the clay set with a cyclorama ---------- */
.bb-cyclo {
  --bb-wall: #f7b6cd;
  --bb-wall-deep: #f08fb2;
  --bb-floor: #e57fa3;
  position: relative;
  isolation: isolate;
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 18px clamp(12px, 3vw, 34px) 30px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 38% at 50% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--bb-wall) 0%, var(--bb-wall-deep) 78%);
  border: 4px solid var(--bb-brown);
  border-radius: 44px 30px 48px 34px / 30px 46px 28px 42px;
  box-shadow: var(--bb-sheen), 9px 11px 0 var(--bb-brown);
}
@media (min-width: 1212px) { .bb-cyclo { margin-left: auto; margin-right: auto; } }
@media (max-width: 1211px) { .bb-cyclo { margin-left: 16px; margin-right: 16px; } }
.bb-cyclo::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -12%; right: -12%; bottom: -30%;
  height: 58%;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  background-color: var(--bb-floor);
  background-image: var(--bb-print), linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(58, 35, 23, .12));
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, .28);
}
.bb-cyclo--teal { --bb-wall: #93d4cb; --bb-wall-deep: #6fbfb4; --bb-floor: #4fa69b; }
.bb-cyclo--sun { --bb-wall: #fde08f; --bb-wall-deep: #f8c95a; --bb-floor: #e8ae38; }
.bb-cyclo--tomato { --bb-wall: #f8b29f; --bb-wall-deep: #f29077; --bb-floor: #df6c52; }

.bb-cyclo-hud { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.bb-cam {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px 4px;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  color: var(--bb-paper);
  background: var(--bb-brown);
  border-radius: 8px 12px 7px 10px;
  font-variant-numeric: tabular-nums;
}
.bb-cam-sep { opacity: .6; }
.bb-hud-tin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 14px 5px;
  font-family: var(--bb-face);
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--bb-sun);
  border: 3px solid var(--bb-brown);
  border-radius: var(--bb-lump-b);
  box-shadow: var(--bb-sheen), 3px 4px 0 var(--bb-brown);
  font-variant-numeric: tabular-nums;
}

.bb-deck { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 16px 26px; margin-top: 20px; position: relative; }
.bb-deck-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bb-deck-sum { margin: 0 0 8px; padding: 6px 14px; background: var(--bb-paper); border: 3px solid var(--bb-brown); border-radius: var(--bb-lump-a); font-weight: 700; }
.bb-stakes { border: 0; margin: 0; padding: 0; min-width: 0; }
.bb-stakes legend { padding: 0; margin: 0 0 6px; font-family: var(--bb-face); font-weight: 700; font-size: 1.05rem; text-align: center; width: 100%; }
.bb-stakes-row { display: flex; gap: 10px; justify-content: center; }
.bb-blob { position: relative; cursor: pointer; }
.bb-blob input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bb-blob span {
  display: grid;
  place-items: center;
  width: 60px; height: 56px;
  font-family: var(--bb-face);
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--bb-paper);
  border: 3px solid var(--bb-brown);
  border-radius: 52% 48% 56% 44% / 48% 56% 44% 52%;
  box-shadow: var(--bb-sheen), 3px 4px 0 var(--bb-brown);
  transition: transform .4s cubic-bezier(.28, 1.9, .45, 1), background .15s;
}
.bb-blob--2 span { border-radius: 46% 54% 42% 58% / 56% 44% 60% 40%; }
.bb-blob--3 span { border-radius: 58% 42% 50% 50% / 44% 58% 42% 56%; }
.bb-blob input:checked + span { background: var(--bb-sun); transform: scale(1.1, .92) translateY(2px); box-shadow: var(--bb-sheen), 1px 2px 0 var(--bb-brown); }
.bb-blob input:focus-visible + span { outline: 4px solid var(--bb-sea); outline-offset: 3px; }
.bb-blob input:disabled + span { opacity: .6; }

.bb-status {
  position: relative;
  max-width: 760px;
  min-height: 3.6em;
  margin: 20px auto 0;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  background: var(--bb-paper);
  border: 3px solid var(--bb-brown);
  border-radius: var(--bb-lump-a);
  box-shadow: 4px 5px 0 var(--bb-brown);
}

/* ---------- Wobble Drop ---------- */
.bb-wob-rig { max-width: 560px; margin: 0 auto; }
.bb-wob-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bb-wob-back { fill: rgba(255, 248, 236, .9); stroke: var(--bb-brown); stroke-width: 3; }
.bb-peg { fill: url(#bb-peg-sheen); stroke: var(--bb-brown); stroke-width: 1.7; transform-box: fill-box; transform-origin: center; }
.bb-peg--hit { animation: bb-peg-squash .3s steps(3, jump-none); }
@keyframes bb-peg-squash { 0% { transform: scale(1.45, .65); } 50% { transform: scale(.85, 1.2); } 100% { transform: none; } }
.bb-cup path { stroke: var(--bb-brown); stroke-width: 2.2; stroke-linejoin: round; }
.bb-cup text { font-family: var(--bb-face); font-weight: 800; font-size: 10.5px; fill: var(--bb-brown); }
.bb-cup--hot path { fill: var(--bb-brick); }
.bb-cup--hot text { fill: var(--bb-paper); }
.bb-cup--warm path { fill: var(--bb-sun); }
.bb-cup--mild path { fill: #9ad8ce; }
.bb-cup--even path { fill: var(--bb-paper); }
.bb-cup--cool path { fill: var(--bb-candy); }
.bb-cup { transform-box: fill-box; transform-origin: 50% 100%; }
.bb-cup--landed { animation: bb-cup-catch .45s steps(4, jump-none); }
.bb-cup--landed path { stroke-width: 3.6; }
@keyframes bb-cup-catch { 0% { transform: scale(1.25, .78); } 50% { transform: scale(.92, 1.12); } 100% { transform: none; } }
.bb-wob-shelf { fill: none; stroke: var(--bb-brown); stroke-width: 4; stroke-linecap: round; }
.bb-ball circle { stroke: var(--bb-brown); stroke-width: 2.2; }
.bb-ball-print { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
.bb-wob-axis { margin: 4px 0 0; text-align: center; font-family: var(--bb-face); font-size: .95rem; }
.bb-recent { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; position: relative; }
.bb-recent-label { margin: 0; font-family: var(--bb-face); font-weight: 700; }
.bb-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.bb-recent-list li { padding: 2px 10px; font-size: .88rem; font-weight: 700; background: var(--bb-paper); border: 2px solid var(--bb-brown); border-radius: 10px 14px 9px 12px; }
.bb-recent-list .bb-recent--up { background: var(--bb-sun); }
.bb-recent-list .bb-recent--level { background: #dcf1ec; }
.bb-recent-list .bb-recent-none { font-weight: 400; }

/* ---------- Crown and Anchor ---------- */
.bb-tray { display: flex; justify-content: center; gap: clamp(12px, 3vw, 26px); margin: 4px 0 22px; }
.bb-cube {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(78px, 21vw, 110px);
  aspect-ratio: 1 / 1;
  background: var(--bb-paper);
  border: 4px solid var(--bb-brown);
  border-radius: 24% 30% 22% 28% / 28% 22% 30% 24%;
  box-shadow: var(--bb-sheen), 5px 6px 0 var(--bb-brown);
}
.bb-cube--2 { transform: rotate(4deg); }
.bb-cube--1 { transform: rotate(-5deg); }
.bb-cube img { width: 80%; height: 80%; object-fit: contain; }
.bb-cube-word { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-family: var(--bb-face); font-weight: 700; font-size: .85rem; opacity: 0; }
.bb-cube.bb-noimg .bb-cube-word { opacity: 1; top: 50%; bottom: auto; transform: translateY(-50%); font-size: 1rem; }
.bb-cube--tumbling { animation: bb-tumble .5s steps(4, jump-none) infinite; }
.bb-cube--landed { animation: bb-thud .3s steps(3, jump-none); }
@keyframes bb-tumble { 0% { transform: rotate(-14deg) translateY(-6px); } 50% { transform: rotate(16deg) translateY(4px) scale(.95); } 100% { transform: rotate(-14deg) translateY(-6px); } }
@keyframes bb-thud { 0% { transform: scale(1.18, .8); } 60% { transform: scale(.94, 1.06); } 100% { transform: none; } }

.bb-mat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 16px); max-width: 640px; margin: 0 auto; }
.bb-spot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 8px 10px;
  font: inherit;
  color: var(--bb-brown);
  background: var(--bb-paper);
  border: 3px solid var(--bb-brown);
  border-radius: var(--bb-lump-a);
  box-shadow: var(--bb-sheen), 4px 5px 0 var(--bb-brown);
  cursor: pointer;
  transition: transform .4s cubic-bezier(.28, 1.9, .45, 1);
}
.bb-spot:nth-child(2n) { border-radius: var(--bb-lump-b); }
.bb-spot:nth-child(3n) { border-radius: var(--bb-lump-c); }
.bb-spot:active { transform: scale(1.06, .9); transition-duration: .08s; }
.bb-spot:disabled { cursor: default; }
.bb-spot--backed { background: #fff1c9; }
.bb-spot--plop .bb-spot-dab { animation: bb-thud .3s steps(3, jump-none); }
.bb-spot-pic { display: block; width: clamp(56px, 15vw, 96px); aspect-ratio: 1 / 1; }
.bb-spot-pic img { width: 100%; height: 100%; object-fit: contain; }
.bb-spot-name { font-family: var(--bb-face); font-weight: 700; font-size: 1.05rem; }
.bb-spot-dab {
  position: absolute;
  top: -10px; right: -8px;
  min-width: 40px; height: 36px;
  display: grid; place-items: center;
  padding: 0 8px;
  font-family: var(--bb-face);
  font-weight: 800;
  font-size: 1rem;
  background: var(--bb-gum);
  border: 3px solid var(--bb-brown);
  border-radius: 54% 46% 58% 42% / 46% 58% 42% 54%;
  box-shadow: 2px 3px 0 var(--bb-brown);
}
.bb-spot-dab[hidden] { display: none; }
.bb-tally { list-style: none; max-width: 640px; margin: 12px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; }
.bb-tally:empty { display: none; }
.bb-tally li { padding: 4px 12px; font-size: .95rem; background: var(--bb-paper); border: 2px solid var(--bb-brown); border-radius: 12px 16px 10px 14px; }
.bb-tally .bb-tally--up { background: var(--bb-sun); font-weight: 700; }

/* ---------- Squish Reels ---------- */
.bb-fruit { --bb-cell: 84px; display: flex; justify-content: center; align-items: center; gap: 0; }
.bb-fruit-body {
  position: relative;
  padding: 16px 18px 14px;
  background-color: var(--bb-brick);
  background-image: var(--bb-print);
  border: 4px solid var(--bb-brown);
  border-radius: 40px 32px 30px 36px / 34px 40px 28px 32px;
  box-shadow: var(--bb-sheen), 7px 9px 0 var(--bb-brown);
}
.bb-fruit-crest { display: flex; justify-content: center; gap: 2px; margin: 0 0 10px; font-family: var(--bb-face); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1; color: var(--bb-sun); -webkit-text-stroke: 2px var(--bb-brown); paint-order: stroke fill; text-shadow: 2px 3px 0 var(--bb-brown); }
.bb-fruit-crest span:nth-child(odd) { transform: translateY(-3px) rotate(-6deg); }
.bb-fruit-crest span:nth-child(even) { transform: translateY(2px) rotate(5deg); color: var(--bb-butter); }
.bb-fruit-glass { position: relative; display: grid; grid-template-columns: repeat(3, auto); gap: 8px; padding: 9px; background: var(--bb-brown); border-radius: 20px 24px 18px 22px; }
.bb-drum {
  position: relative;
  width: calc(var(--bb-cell) * 1.15);
  height: calc(var(--bb-cell) * 3);
  overflow: hidden;
  background: var(--bb-paper);
  border-radius: 14px 18px 12px 16px;
}
.bb-drum::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(58, 35, 23, .42), rgba(58, 35, 23, 0) 30%, rgba(58, 35, 23, 0) 70%, rgba(58, 35, 23, .42)); }
.bb-drum-band { will-change: transform; }
.bb-drum-cell { display: block; height: var(--bb-cell); background: no-repeat center / 78% auto; }
.bb-drum--blur .bb-drum-band { filter: blur(1.2px); }
.bb-drum--thunk .bb-drum-band { animation: bb-thunk .32s steps(3, jump-none); }
@keyframes bb-thunk { 0% { margin-top: 7px; } 50% { margin-top: -3px; } 100% { margin-top: 0; } }
.bb-sym-crown { background-image: url("/putty/pics/props/crown.png"); }
.bb-sym-anchor { background-image: url("/putty/pics/props/anchor.png"); }
.bb-sym-heart { background-image: url("/putty/pics/props/heart.png"); }
.bb-sym-spade { background-image: url("/putty/pics/props/spade.png"); }
.bb-sym-diamond { background-image: url("/putty/pics/props/diamond.png"); }
.bb-sym-club { background-image: url("/putty/pics/props/club.png"); }
.bb-fruit-line { position: absolute; left: 2px; right: 2px; top: 50%; height: 4px; margin-top: -2px; background: var(--bb-sun); box-shadow: 0 0 0 2px var(--bb-brown); border-radius: 3px; pointer-events: none; }
.bb-fruit-plate { margin: 10px 0 0; text-align: center; color: var(--bb-paper); font-size: .88rem; font-weight: 700; }
.bb-lever { position: relative; width: 64px; height: 250px; margin-left: -6px; padding: 0; background: none; border: 0; cursor: pointer; }
.bb-lever-hub { position: absolute; left: 0; bottom: 70px; width: 34px; height: 64px; background: var(--bb-cocoa); border: 4px solid var(--bb-brown); border-radius: 6px 16px 16px 6px; }
.bb-lever-stick { position: absolute; left: 30px; bottom: 96px; width: 14px; height: 130px; background: #c9c0b3; border: 3px solid var(--bb-brown); border-radius: 8px; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.28, 1.8, .45, 1); }
.bb-lever-knob { position: absolute; left: 14px; top: 0; width: 46px; height: 44px; background: radial-gradient(circle at 34% 30%, #ff9e88, var(--bb-tomato) 55%, var(--bb-brick)); border: 4px solid var(--bb-brown); border-radius: 50% 46% 52% 48%; transition: transform .5s cubic-bezier(.28, 1.8, .45, 1); }
.bb-lever:hover .bb-lever-knob { transform: scale(1.06, .94); }
.bb-lever:active .bb-lever-knob { transform: translateY(26px) scale(1.2, .78); transition-duration: .1s; }
.bb-lever--pulled .bb-lever-stick { transform: scaleY(-.45); transition-duration: .18s; }
.bb-lever--pulled .bb-lever-knob { transform: translateY(176px) scale(1.25, .72); transition-duration: .18s; }
.bb-lever:disabled { cursor: default; }
.bb-lever:focus-visible { outline: 4px solid var(--bb-sea); outline-offset: 2px; }
@media (max-width: 520px) {
  .bb-fruit { --bb-cell: 62px; }
  .bb-fruit-body { padding: 12px 10px 10px; }
  .bb-fruit-glass { gap: 5px; padding: 6px; }
  .bb-lever { width: 48px; height: 200px; margin-left: -8px; }
  .bb-lever-hub { width: 26px; height: 52px; bottom: 56px; }
  .bb-lever-stick { left: 21px; bottom: 80px; width: 11px; height: 104px; }
  .bb-lever-knob { left: 8px; width: 38px; height: 36px; }
  .bb-lever--pulled .bb-lever-knob { transform: translateY(142px) scale(1.25, .72); }
}
@media (max-width: 370px) {
  .bb-fruit { --bb-cell: 56px; }
}

/* ---------- Bonk Box ---------- */
.bb-box {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: 18px clamp(14px, 4vw, 26px) 24px;
  background-color: #d9a066;
  background-image: var(--bb-print);
  border: 4px solid var(--bb-brown);
  border-radius: 34px 26px 40px 30px / 28px 38px 26px 34px;
  box-shadow: var(--bb-sheen), 8px 10px 0 var(--bb-brown);
}
.bb-box-lid { margin: 0 auto 14px; width: max-content; max-width: 100%; padding: 3px 18px 1px; font-family: var(--bb-face); font-weight: 800; font-size: 1.5rem; color: var(--bb-paper); background: var(--bb-brown); border-radius: 14px 18px 12px 16px; transform: rotate(-2deg); }
.bb-holes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 3vw, 18px); }
.bb-hole { position: relative; aspect-ratio: 1 / 1; padding: 0; background: none; border: 0; cursor: default; color: var(--bb-brown); font: inherit; }
.bb-hole-pit {
  position: absolute;
  inset: 8%;
  background: radial-gradient(ellipse at 50% 60%, #1e110a 0 38%, #3a2317 62%, #5a3a27 100%);
  border: 4px solid var(--bb-brown);
  border-radius: 50% 46% 52% 48% / 46% 54% 46% 54%;
  box-shadow: inset 0 6px 0 rgba(0, 0, 0, .35), 0 3px 0 rgba(255, 248, 236, .4);
  transition: transform .4s cubic-bezier(.28, 1.9, .45, 1);
}
.bb-hole:nth-child(3n+2) .bb-hole-pit { border-radius: 46% 54% 48% 52% / 54% 46% 54% 46%; }
.bb-hole:nth-child(4n) .bb-hole-pit { border-radius: 54% 46% 44% 56% / 50% 52% 48% 50%; }
.bb-box--live .bb-hole:not(:disabled) { cursor: pointer; }
.bb-box--live .bb-hole:not(:disabled) .bb-hole-pit { box-shadow: inset 0 6px 0 rgba(0, 0, 0, .35), 0 0 0 4px var(--bb-sun); }
.bb-box--live .bb-hole:not(:disabled):hover .bb-hole-pit { transform: scale(1.05, .95); }
.bb-hole:active .bb-hole-pit { transform: scale(1.12, .86); }
.bb-hole-prize {
  position: absolute;
  left: 50%; top: 50%;
  display: grid; place-items: center;
  min-width: 64%;
  height: 46%;
  padding: 0 6px;
  font-family: var(--bb-face);
  font-weight: 800;
  font-size: clamp(1.05rem, 4.4vw, 1.5rem);
  background: var(--bb-sun);
  border: 3px solid var(--bb-brown);
  border-radius: 50% 46% 54% 44% / 52% 48% 52% 48%;
  box-shadow: var(--bb-sheen), 2px 3px 0 var(--bb-brown);
  transform: translate(-50%, -20%) scale(.2);
  opacity: 0;
}
.bb-hole--bonked .bb-hole-prize { opacity: 1; transform: translate(-50%, -50%); animation: bb-popup .36s steps(4, jump-none); }
.bb-hole--bonked .bb-hole-pit { transform: scale(1.06, .9); }
.bb-hole--peek .bb-hole-prize { opacity: 1; transform: translate(-50%, -50%) scale(.82); background: var(--bb-paper); box-shadow: none; }
.bb-hole--zero .bb-hole-prize { background: var(--bb-candy); }
.bb-hole--peek.bb-hole--zero .bb-hole-prize { background: #f3dfe6; }
@keyframes bb-popup { 0% { transform: translate(-50%, -10%) scale(.3, .2); } 50% { transform: translate(-50%, -62%) scale(1.15, .9); } 100% { transform: translate(-50%, -50%); } }
.bb-mallet { position: absolute; z-index: 3; left: 0; top: 0; width: 100px; height: 100px; pointer-events: none; opacity: 0; transform-origin: 82% 88%; translate: -18% -72%; }
.bb-mallet--swing { animation: bb-swing .32s steps(4, jump-none); }
@keyframes bb-swing { 0% { opacity: 1; transform: rotate(-55deg); } 60% { opacity: 1; transform: rotate(8deg) scale(1.05, .95); } 100% { opacity: 0; transform: rotate(0); } }

/* ---------- how it pays and friends ---------- */
.bb-howpays { max-width: 920px; margin: 56px auto 0; padding: 0 16px; }
.bb-return { padding: 16px 18px; background: #fff1c9; border: 3px solid var(--bb-brown); border-radius: var(--bb-lump-a); }
.bb-odds-facts { padding-left: 1.2em; }
.bb-odds-facts li { margin-bottom: .4em; }
.bb-tag-note { max-width: 920px; margin: 30px auto 0; padding: 0 16px; }
.bb-tag-note p { margin: 0; padding: 16px 18px; background: #fde9f0; border: 3px dashed var(--bb-brown); border-radius: var(--bb-lump-b); }
.bb-next { max-width: 1180px; margin: 56px auto 0; padding: 0 16px; }
.bb-next h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.bb-next ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bb-next a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  color: var(--bb-brown);
  text-decoration: none;
  font-family: var(--bb-face);
  font-weight: 700;
  font-size: 1.25rem;
  background: var(--bb-paper);
  border: 3px solid var(--bb-brown);
  border-radius: var(--bb-lump-a);
  box-shadow: 4px 5px 0 var(--bb-brown);
  transition: transform .4s cubic-bezier(.28, 1.9, .45, 1);
}
.bb-next li:nth-child(2) a { border-radius: var(--bb-lump-b); transform: rotate(.8deg); }
.bb-next li:nth-child(3) a { border-radius: var(--bb-lump-c); transform: rotate(-.8deg); }
.bb-next a:hover { transform: translateY(-3px) rotate(-1deg); }
.bb-next img { width: 66px; height: 66px; flex: none; object-fit: cover; border: 3px solid var(--bb-brown); border-radius: 14px 18px 12px 16px; background: var(--bb-candy); }
.bb-next small { display: block; font-size: .85rem; color: var(--bb-cocoa); }

@media (max-width: 820px) {
  .bb-gametop { grid-template-columns: minmax(0, 1fr) 120px; gap: 6px 18px; align-items: start; }
  .bb-gametop-pic figcaption { display: none; }
  .bb-next ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .bb-gametop { grid-template-columns: minmax(0, 1fr) 92px; }
  .bb-gametop-words h1 { font-size: 2rem; }
  .bb-gametop-rules { font-size: 1.02rem; grid-column: 1 / 3; }
  .bb-cyclo { padding-left: 10px; padding-right: 10px; border-radius: 30px 22px 34px 24px / 22px 32px 20px 30px; }
  .bb-blob span { width: 54px; height: 50px; font-size: 1.15rem; }
  .bb-deck { gap: 12px 16px; }
  .bb-squish--big { font-size: 1.14rem; padding: .6em 1.05em .55em; }
}

@media (prefers-reduced-motion: no-preference) {
  .bb-hud-tin { animation: bb-boil 1.5s steps(3, jump-none) infinite; }
}

/* two-column set on wide screens: the game on the left, controls on the right */
@media (min-width: 900px) {
  .bb-cyclo--split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(20px, 3vw, 44px);
    align-items: start;
    padding-bottom: 40px;
  }
  .bb-cyclo--split > .bb-cyclo-hud { grid-column: 1 / -1; }
  .bb-cyclo--split > .bb-wob-rig,
  .bb-cyclo--split > .bb-fruit,
  .bb-cyclo--split > .bb-box,
  .bb-cyclo--split > .bb-anchor-table { grid-column: 1; grid-row: 2 / 6; width: 100%; }
  .bb-cyclo--split > .bb-box { max-width: 450px; justify-self: center; }
  .bb-cyclo--split > .bb-deck,
  .bb-cyclo--split > .bb-status,
  .bb-cyclo--split > .bb-recent,
  .bb-cyclo--split > .bb-tally { grid-column: 2; }
  .bb-cyclo--split > .bb-tally { justify-content: flex-start; margin: 14px 0 0; }
  .bb-cyclo--split .bb-deck-sum { margin: 0; }
  .bb-cyclo--split > .bb-deck { flex-direction: column; align-items: flex-start; justify-content: flex-start; margin-top: 30px; padding: 22px 22px 24px; background: rgba(255, 248, 236, .72); border: 3px solid var(--bb-brown); border-radius: var(--bb-lump-c); }
  .bb-cyclo--split .bb-stakes legend { text-align: left; }
  .bb-cyclo--split .bb-stakes-row { justify-content: flex-start; }
  .bb-cyclo--split > .bb-deck .bb-squish--big { width: 100%; }
  .bb-cyclo--split > .bb-status { margin: 18px 0 0; max-width: none; justify-content: flex-start; text-align: left; }
  .bb-cyclo--split > .bb-recent { justify-content: flex-start; }
  .bb-cyclo--split .bb-wob-rig { max-width: 520px; justify-self: center; }
  .bb-cyclo--split::before { left: -10%; right: -10%; height: 34%; bottom: -14%; }
}
@media (min-width: 900px) {
  .bb-cyclo--split .bb-deck-acts { width: 100%; flex-direction: column-reverse; align-items: stretch; }
}
