.gbn {
  --gbn-small: clamp(9px, 1.4cqw, 21px);
  min-width: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  aspect-ratio: 5 / 3;
  background: #E6E6E6;
  color: #000;
  border-radius: var(--block-radius);
  animation: playground-enter 1.25s cubic-bezier(.16,1,.3,1) both;
}
.gbn-heading { margin: 3.4cqw 4.4cqw 4.4cqw; }
.gbn-heading h2 {
  margin: 0;
  font-size: clamp(21px, 4.7cqw, 76px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: var(--tracking-heading);
}
.gbn-heading sup { display: inline-block; width: .39em; margin-left: .1em; vertical-align: super; }
.gbn-heading sup img { display: block; width: 100%; }
.gbn-meta {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin: 3cqw 4.4cqw 3.6cqw;
  font-size: var(--gbn-small);
  line-height: 1.3;
}
.gbn-meta p { margin: 0; }
.gbn-update { text-align: right; }
.gbn-balance {
  --face-size: clamp(24px, 8.5cqw, 100px);
  --inset: clamp(8px, 3.25cqw, 38px);
  --tab: clamp(34px, 10.2cqw, 160px);
  --summary: clamp(72px, 18.5cqw, 280px);
  position: relative;
  contain: size;
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  margin-inline: 4.4cqw;
  border-radius: 3.65cqw;
  overflow: hidden;
  background: #fff;
}
.gbn-side { position: relative; display: flex; min-width: 0; overflow: hidden; transition: flex-basis .65s cubic-bezier(.22,1,.36,1); }
.gbn-bad { background: #000; color: #fff; flex: 0 0 var(--gbn-split, 50%); }
.gbn-good { background: #fff; color: #000; flex: 1 0 calc(100% - var(--gbn-split, 50%)); }
.gbn[data-phase="counting"] .gbn-side { transition: none; }
.gbn[data-open] .gbn-side { flex-basis: var(--tab); }
.gbn[data-open="bad"] .gbn-bad, .gbn[data-open="good"] .gbn-good { flex-basis: calc(100% - var(--tab)); }
.gbn-start {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: clamp(52px, 15cqw, 180px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: #484848;
  color: #fff;
  font: inherit;
  font-size: clamp(12px, 2.1cqw, 32px);
  cursor: pointer;
}
.gbn-start:hover { background: #606060; }
.gbn-art-layer { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; container-type: size; transition: opacity .45s ease; }
.gbn-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.gbn:not([data-phase="intro"]) .gbn-art-layer { opacity: .48; }
.gbn[data-open] .gbn-art-layer { opacity: 0; }
.gbn-art[data-depth="far"] { --art-size: clamp(40cqh, 38%, 62cqh); z-index: 0; opacity: .66; }
.gbn-art[data-depth="mid"] { --art-size: clamp(68cqh, 62%, 88cqh); z-index: 1; }
.gbn-art[data-depth="near"] { --art-size: clamp(94cqh, 84%, 128cqh); z-index: 2; }
.gbn-art-layer.is-falling .gbn-art {
  inset: auto;
  top: 0;
  left: var(--art-x);
  width: var(--art-size);
  height: auto;
  animation: gbn-fall var(--art-duration) linear var(--art-delay) infinite;
}
@keyframes gbn-fall {
  0% { transform: translate(-70%, -150%) rotate(-22deg); }
  24% { transform: translate(-22%, calc(100cqh + 65%)) rotate(130deg); animation-timing-function: steps(1, end); }
  25% { transform: translate(-22%, -150%) rotate(35deg); }
  49% { transform: translate(-76%, calc(100cqh + 65%)) rotate(-120deg); animation-timing-function: steps(1, end); }
  50% { transform: translate(-53%, -150%) rotate(-75deg); }
  62% { transform: translate(-76%, calc(50cqh - 42.5%)) rotate(-18deg); }
  74% { transform: translate(-42%, calc(100cqh + 65%)) rotate(42deg); animation-timing-function: steps(1, end); }
  75% { transform: translate(-42%, -150%) rotate(70deg); }
  87% { transform: translate(-16%, calc(50cqh - 42.5%)) rotate(16deg); }
  100% { transform: translate(-59%, calc(100cqh + 65%)) rotate(-40deg); }
}
.gbn-toggle {
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--inset) min(var(--inset), 14%);
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  transition: flex-basis .65s cubic-bezier(.22,1,.36,1);
}
.gbn[data-phase="intro"] .gbn-toggle { visibility: hidden; }
.gbn[data-phase="reveal"] .gbn-toggle { animation: gbn-in .48s cubic-bezier(.22,1,.36,1) both; }
.gbn-toggle svg { width: min(var(--face-size), 100%); fill: none; stroke: currentColor; stroke-width: 1.35; flex: none; }
.gbn-caption { display: grid; gap: .25em; font-size: var(--gbn-small); line-height: 1.1; }
.gbn-count { font-size: clamp(23px, 6cqw, 95px); line-height: 1; font-variant-numeric: proportional-nums; letter-spacing: -.045em; white-space: nowrap; }
.gbn[data-open] .gbn-toggle[aria-expanded="false"] { align-items: center; padding-inline: 4px; }
.gbn[data-open] .gbn-toggle[aria-expanded="false"] svg { width: clamp(18px, 3.8cqw, 56px); }
.gbn[data-open] .gbn-toggle[aria-expanded="false"] .gbn-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gbn-toggle[aria-expanded="true"] { flex-basis: var(--summary); }
.gbn-feed { flex: 1; min-width: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: var(--inset) var(--inset) var(--inset) 0; padding-inline: 1.9cqw; border-inline-start: 1px solid color-mix(in srgb,currentColor 24%,transparent); opacity: 0; visibility: hidden; }
.gbn-feed:not([inert]) { opacity: 1; visibility: visible; }
.gbn-bad .gbn-feed { color-scheme: dark; scrollbar-color: #575757 #171717; }
.gbn-feed ul { list-style: none; margin: 0; padding: 0; counter-reset: gbn-row; }
.gbn-feed li { counter-increment: gbn-row; }
.gbn-feed li+li { border-top: 1px solid color-mix(in srgb,currentColor 20%,transparent); }
.gbn-feed:not([inert]) li { animation: gbn-in .45s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(.23s + var(--gbn-row, 0) * .075s); }
.gbn-story { display: flex; gap: .75em; align-items: start; padding: .9em .25em; color: inherit; line-height: 1.2; font-size: clamp(11px, 2.1cqw, 30px); text-decoration: none; overflow-wrap: anywhere; }
.gbn-feed li:first-child .gbn-story { padding-top: 0; }
.gbn-story::before { content: counter(gbn-row) "."; opacity: .55; font-size: .78em; flex: 0 0 4ch; white-space: nowrap; }
.gbn-story:hover { opacity: .72; }
.gbn-story small { display: block; font-size: max(8px, .65em); color: #737373; margin-top: .65em; }
.gbn-bad .gbn-story small { color: #858585; }
.gbn-start:focus-visible, .gbn-toggle:focus-visible, .gbn-feed:focus-visible, .gbn-story:focus-visible, .gbn-source a:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.gbn-empty { font-size: clamp(11px, 2.1cqw, 30px); margin: 0; }
@keyframes gbn-in { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: translateY(0); } }
@media(max-width:600px) {
  .playground-main > .gbn { aspect-ratio: auto; }
  .gbn-balance { flex: none; height: 225px; }
}
@media(prefers-reduced-motion:reduce) {
  .gbn, .gbn[data-phase="reveal"] .gbn-toggle, .gbn-feed:not([inert]) li { animation: none; }
  .gbn-side, .gbn-toggle, .gbn-art-layer { transition: none; }
  .gbn-art-layer.is-falling .gbn-art { animation: none; inset: 0; width: 100%; height: 100%; }
  .gbn-art-layer .gbn-art:not(:first-child) { display: none; }
}
