html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.bb-grid {
  width: min(340px, 90vw);
  aspect-ratio: 340/190;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.bb-tile {
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  box-sizing: border-box;
  color: #fff7e6;
  background: #17141a;
  font: 600 12px/1 -apple-system, "Segoe UI", sans-serif;
  position: relative;
  overflow: hidden;
}

.bb-tile--a {
  grid-row: 1/3;
}

.bb-tile--b, .bb-tile--c {
  background: rgba(23, 20, 26, 0.78);
}

.bb-tile__tag {
  font-size: 12px;
  opacity: 0.85;
}

.bb-tile__sub {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.bb-focal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 4px;
  box-sizing: border-box;
  background: conic-gradient(from 0deg, transparent 0 70%, #2f6df6 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
}

.bb-focal:hover::before {
  opacity: 1;
  animation: bb-spin 1.6s linear infinite;
}

@keyframes bb-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.bb-grid.is-demo .bb-focal::before {
  opacity: 1;
  animation: bb-spin 1.6s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bb-focal:hover::before,
  .bb-grid.is-demo .bb-focal::before {
    animation: none !important;
  }
}
