:root {
  --bb-bg: #5d7aae;
  --bb-bg-deep: #447d86;
  --bb-paper: #fff7e6;
  --bb-ink: #151515;
  --bb-yellow: #ffe15b;
  --bb-red: #d65369;
  --bb-green: #36bf72;
  --bb-shadow: rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family: "Trebuchet MS", "Comic Sans MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bb-ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, .16), transparent 25%),
    radial-gradient(circle at 88% 15%, rgba(255, 202, 52, .14), transparent 24%),
    linear-gradient(135deg, var(--bb-bg), var(--bb-bg-deep));
  overflow: hidden;
}

button,
a { font: inherit; }
button { cursor: pointer; }

.bb-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .18), transparent 30%),
    linear-gradient(135deg, var(--bb-bg), var(--bb-bg-deep));
  transition: opacity .18s ease, visibility .18s ease;
}

.bb-loading[hidden] { display: none; }
.bb-loading.bb-loading-hide { opacity: 0; visibility: hidden; }

.bb-loading-card {
  width: min(92vw, 360px);
  padding: 28px 22px;
  border: 4px solid #111;
  border-radius: 24px;
  background: var(--bb-paper);
  box-shadow: 0 12px 0 rgba(0, 0, 0, .18), 0 20px 30px rgba(0, 0, 0, .2);
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.bb-loading-bug {
  font-size: 48px;
  line-height: 1;
  animation: bb-loading-buzz .34s ease-in-out infinite alternate;
}

.bb-loading-card strong {
  font-size: 25px;
  line-height: 1.1;
}

.bb-loading-card span {
  color: #35496f;
  font-size: 15px;
  font-weight: 800;
}


.bb-app {
  width: 100%;
  height: 100vh;
  height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.bb-screen {
  display: none;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: clamp(14px, 2.4vw, 32px);
  overflow: hidden;
}

.bb-screen.bb-active { display: flex; }

/* Home */
.bb-home {
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bb-home::before,
.bb-home::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  filter: blur(3px);
  z-index: -1;
}

.bb-home::before { left: -80px; top: 8%; }
.bb-home::after { right: -80px; bottom: 8%; }

.bb-home-buzz-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bb-home-bug {
  position: absolute;
  width: clamp(70px, 9vw, 125px);
  filter: drop-shadow(0 14px 15px rgba(0, 0, 0, .18));
  transform-origin: center;
}

.bb-home-bug-one {
  left: 11%;
  top: 15%;
  animation: bb-fly-one 10s ease-in-out infinite, bb-buzz 130ms linear infinite alternate;
}

.bb-home-bug-two {
  right: 12%;
  bottom: 11%;
  width: clamp(56px, 7vw, 92px);
  animation: bb-fly-two 12s ease-in-out infinite, bb-buzz 120ms linear infinite alternate;
}

.bb-wing-pair { animation: bb-wings 140ms linear infinite alternate; }

.bb-home-card {
  width: min(100%, 980px);
  height: min(760px, calc(100vh - clamp(28px, 5vw, 64px)));
  height: min(760px, calc(100svh - clamp(28px, 5vw, 64px)));
  min-height: 0;
  max-height: 100%;
  padding: clamp(14px, 3vw, 48px);
  padding: clamp(14px, min(3vw, 3.6svh), 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.4vw, 18px);
  gap: clamp(6px, min(1.4vw, 1.7svh), 18px);
  border: 5px solid #111;
  border-radius: clamp(24px, 4vw, 44px);
  background: rgba(90, 113, 166, .86);
  box-shadow: 0 20px 0 rgba(0, 0, 0, .13), 0 25px 40px rgba(0, 0, 0, .22);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.bb-kicker {
  margin: 0;
  padding: clamp(5px, .8svh, 7px) 16px;
  border: 3px solid #111;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  font-size: clamp(13px, 1.8vw, 20px);
  font-size: clamp(13px, min(1.8vw, 2.2svh), 20px);
  font-weight: 900;
  letter-spacing: 0;
}

.bb-title,
.bb-subtitle {
  margin: 0;
  color: var(--bb-yellow);
  -webkit-text-stroke: clamp(1.5px, .28vw, 3px) #111;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 0 5px 0 #111, 0 10px 15px rgba(0, 0, 0, .22);
}

.bb-title {
  font-size: clamp(42px, 10.5vw, 132px);
  font-size: clamp(42px, min(10.5vw, 14svh), 132px);
  line-height: .82;
}

.bb-subtitle {
  max-width: 880px;
  font-size: clamp(22px, 5.2vw, 62px);
  font-size: clamp(22px, min(5.2vw, 6.4svh), 62px);
  -webkit-text-stroke-width: clamp(1px, .2vw, 2.4px);
  text-shadow: 0 clamp(2px, .34vw, 4px) 0 #111, 0 8px 12px rgba(0, 0, 0, .18);
  line-height: 1.02;
}

.bb-home-text {
  max-width: 820px;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .32);
  font-size: clamp(15px, 2.8vw, 32px);
  font-size: clamp(15px, min(2.8vw, 3.45svh), 32px);
  line-height: 1.28;
}

.bb-big-button,
.bb-mini-button,
.bb-feed-button,
.bb-arrow {
  border: 4px solid #111;
  color: #111;
  box-shadow: 0 6px 0 #111, 0 12px 18px rgba(0, 0, 0, .18);
  touch-action: manipulation;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bb-big-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 48px;
  min-height: clamp(48px, 6.8svh, 70px);
  padding: 9px 30px 11px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 25%, #7cff73, var(--bb-green));
  font-size: clamp(22px, 4.6vw, 48px);
  font-size: clamp(22px, min(4.6vw, 5.7svh), 48px);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.bb-edu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-height: clamp(34px, 4.8svh, 44px);
  padding: 7px 18px;
  padding: clamp(6px, 1.25svh, 10px) 18px;
  border: 3px solid #111;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #111;
  font-size: clamp(13px, 2vw, 18px);
  font-size: clamp(13px, min(2vw, 2.25svh), 18px);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 0 #111;
}

.bb-home-lock,
.bb-finish {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .62);
  z-index: 20;
}

.bb-home-lock[hidden],
.bb-finish[hidden] { display: none; }

.bb-lock-card,
.bb-finish-card {
  width: min(100%, 560px);
  padding: 28px;
  border: 5px solid #111;
  border-radius: 28px;
  background: var(--bb-paper);
  text-align: center;
  box-shadow: 0 25px 40px rgba(0, 0, 0, .3);
}

.bb-lock-card h3,
.bb-finish-card h2 { margin: 0 0 10px; font-size: clamp(28px, 5vw, 44px); }
.bb-lock-card p,
.bb-finish-card p { margin: 0; font-size: 20px; line-height: 1.35; }

/* Game: a single 4:3 stage that auto-fits the available screen. */
.bb-game.bb-active { display: flex; }

.bb-game {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  padding: 8px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bb-side-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, .8vw, 10px);
  flex-wrap: wrap;
  grid-column: 1 / -1;
  grid-row: 8;
  align-self: end;
  min-width: 0;
}

.bb-mini-button {
  min-height: 34px;
  padding: 6px 11px;
  border-width: 3px;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.bb-status-pill {
  min-width: 76px;
  padding: 7px 10px;
  border: 3px solid #111;
  border-radius: 999px;
  background: var(--bb-yellow);
  text-align: center;
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 0 4px 0 #111;
}

.bb-play-layout {
  width: min(calc(100vw - 16px), calc(133.33vh - 22px));
  width: min(calc(100vw - 16px), calc(133.33svh - 22px));
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 24%);
  gap: clamp(5px, .9vw, 10px);
  align-items: stretch;
  margin: 0;
}

.bb-graph-panel,
.bb-control-panel {
  border: clamp(3px, .55vw, 5px) solid #111;
  border-radius: clamp(16px, 2.4vw, 28px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .16);
  min-height: 0;
  min-width: 0;
}

.bb-graph-panel {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #7db2aa;
  overflow: hidden;
}

.bb-graph-box {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: clamp(12px, 1.8vw, 24px);
  overflow: hidden;
  background: #7db2aa;
}

#bb-board {
  width: 100%;
  height: 100%;
  display: block;
}

.bb-player-bug {
  position: absolute;
  width: clamp(28px, 4.1vw, 52px);
  height: clamp(21px, 3.15vw, 40px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .24));
  z-index: 4;
  transition: left .16s ease, top .16s ease;
  animation: bb-player-bob .45s ease-in-out infinite alternate;
  pointer-events: none;
}

.bb-player-bug svg { width: 100%; height: 100%; }

.bb-food-bite {
  position: absolute;
  width: clamp(24px, 3.8vw, 46px);
  height: clamp(19px, 3vw, 36px);
  z-index: 5;
  left: 50%;
  top: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-10%, -62%) scale(.78) rotate(-8deg);
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .22));
}

.bb-food-bite svg { width: 100%; height: 100%; display: block; }

.bb-food-bite.bb-food-show {
  animation: bb-food-eat .56s ease-in forwards;
}

.bb-player-bug.bb-pop { animation: bb-player-pop .5s ease-out; }

.bb-control-panel {
  padding: clamp(6px, 1vw, 10px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr) auto;
  gap: clamp(5px, .85vw, 9px);
  align-content: start;
  overflow: hidden;
  background: rgba(89, 103, 153, .90);
  container-type: inline-size;
  min-width: 0;
}

.bb-target-card,
.bb-time-card,
.bb-position-card {
  padding: clamp(6px, .8vw, 9px);
  border: clamp(3px, .45vw, 4px) solid #111;
  border-radius: clamp(12px, 1.5vw, 18px);
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 0 #111;
  min-height: 0;
}

.bb-target-label {
  margin: calc(clamp(6px, .8vw, 9px) * -1) calc(clamp(6px, .8vw, 9px) * -1) clamp(5px, .55vw, 8px);
  padding: clamp(4px, .55vw, 7px) 4px;
  border-radius: clamp(9px, 1.2vw, 14px) clamp(9px, 1.2vw, 14px) 0 0;
  color: #fff;
  background: #5967a0;
  font-size: clamp(12px, 2vw, 31px);
  font-size: clamp(12px, 8cqw, 31px);
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}

.bb-target {
  font-family: ui-rounded, "Comic Sans MS", "Trebuchet MS", sans-serif;
  font-size: clamp(22px, 4.8vw, 68px);
  font-size: clamp(22px, 20cqw, 68px);
  line-height: .95;
  font-weight: 1000;
  white-space: nowrap;
}

.bb-time-card,
.bb-position-card {
  display: grid;
  gap: 1px;
  align-content: center;
}

.bb-time-card span,
.bb-position-card span {
  color: #3e4f77;
  font-weight: 900;
  font-size: clamp(9px, 1.25vw, 16px);
  font-size: clamp(9px, 4.8cqw, 16px);
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.05;
}

.bb-time-card strong,
.bb-position-card strong {
  font-size: clamp(15px, 2.35vw, 32px);
  font-size: clamp(15px, 11cqw, 32px);
  line-height: 1.05;
}

.bb-time-card small {
  font-size: clamp(8px, 1.05vw, 14px);
  font-size: clamp(8px, 4.3cqw, 14px);
  font-weight: 900;
  color: #435982;
  line-height: 1.05;
}

.bb-arrow-pad {
  --bb-arrow-size: clamp(28px, 5vw, 62px);
  --bb-arrow-size: clamp(28px, 22cqw, 62px);
  --bb-arrow-gap: clamp(4px, .7vw, 8px);
  --bb-arrow-pad-space: clamp(4px, .55vw, 7px);
  align-self: center;
  justify-self: center;
  width: min(100%, calc((var(--bb-arrow-size) * 3) + (var(--bb-arrow-gap) * 2) + (var(--bb-arrow-pad-space) * 2)));
  padding: 0 var(--bb-arrow-pad-space);
  display: grid;
  grid-template-columns: repeat(3, var(--bb-arrow-size));
  grid-template-rows: repeat(3, var(--bb-arrow-size));
  gap: var(--bb-arrow-gap);
  align-items: center;
  justify-content: center;
  margin: 0;
}

.bb-arrow {
  width: var(--bb-arrow-size);
  height: var(--bb-arrow-size);
  display: grid;
  place-items: center;
  padding: 0 3px 3px;
  border-width: clamp(3px, .45vw, 4px);
  border-radius: clamp(9px, 1.2vw, 14px);
  background: #fff;
  font-size: clamp(20px, 4.1vw, 50px);
  font-size: clamp(20px, 17cqw, 50px);
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 5px 0 #111, 0 8px 12px rgba(0, 0, 0, .14);
}

.bb-arrow-up { grid-column: 2; grid-row: 1; }
.bb-arrow-left { grid-column: 1; grid-row: 2; }
.bb-arrow-right { grid-column: 3; grid-row: 2; }
.bb-arrow-down { grid-column: 2; grid-row: 3; }

.bb-feed-button {
  width: min(100%, clamp(128px, 16vw, 190px));
  min-height: clamp(30px, 5vw, 62px);
  min-height: clamp(30px, 22cqw, 62px);
  margin: 0 auto;
  border-width: clamp(3px, .45vw, 4px);
  border-radius: clamp(11px, 1.4vw, 17px);
  background: #fff;
  font-size: clamp(18px, 3.4vw, 44px);
  font-size: clamp(18px, 15cqw, 44px);
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 5px 0 #111, 0 8px 12px rgba(0, 0, 0, .14);
}

.bb-feedback {
  min-height: clamp(28px, 3.6vw, 48px);
  min-height: clamp(28px, 16cqw, 48px);
  margin: 0;
  padding: clamp(6px, .9vw, 10px);
  border: 2px dashed rgba(17, 17, 17, .55);
  border-radius: clamp(10px, 1.3vw, 15px);
  background: rgba(255, 255, 255, .72);
  text-align: center;
  font-size: clamp(10px, 1.35vw, 16px);
  font-size: clamp(10px, 5.1cqw, 16px);
  line-height: 1.18;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bb-feedback.bb-good { border-color: #0c8e2a; background: rgba(141, 255, 113, .30); }
.bb-feedback.bb-bad { border-color: var(--bb-red); background: rgba(230, 30, 47, .14); }

.bb-finish-bug {
  width: 140px;
  max-width: 45%;
  margin-bottom: 4px;
  animation: bb-finish-bounce .72s ease-in-out infinite alternate;
}

.bb-finish-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

button:hover,
.bb-edu-link:hover { transform: translateY(-1px); }
button:active { transform: translateY(3px); box-shadow: 0 3px 0 #111; }
button:disabled { opacity: .55; cursor: not-allowed; }

@keyframes bb-loading-buzz {
  from { transform: translateY(-2px) rotate(-5deg); }
  to { transform: translateY(3px) rotate(5deg); }
}

@keyframes bb-fly-one {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  30% { transform: translate(38vw, 8vh) rotate(9deg); }
  60% { transform: translate(26vw, 36vh) rotate(-4deg); }
}

@keyframes bb-fly-two {
  0%, 100% { transform: translate(0, 0) rotate(9deg); }
  35% { transform: translate(-30vw, -10vh) rotate(-7deg); }
  72% { transform: translate(-45vw, 11vh) rotate(5deg); }
}

@keyframes bb-buzz {
  from { margin-top: -2px; margin-left: -1px; }
  to { margin-top: 2px; margin-left: 1px; }
}

@keyframes bb-wings {
  from { transform: rotate(-5deg) scaleY(.95); }
  to { transform: rotate(5deg) scaleY(1.08); }
}

@keyframes bb-player-bob {
  from { translate: 0 -1px; }
  to { translate: 0 3px; }
}


@keyframes bb-food-eat {
  0% { opacity: 0; transform: translate(34%, -80%) scale(.82) rotate(-12deg); }
  16% { opacity: 1; }
  62% { opacity: 1; transform: translate(-28%, -58%) scale(.62) rotate(8deg); }
  100% { opacity: 0; transform: translate(-48%, -50%) scale(.08) rotate(22deg); }
}

@keyframes bb-player-pop {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -92%) scale(1.52); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes bb-finish-bounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-12px) scale(1.06); }
}

/* Small portrait screens keep all controls inside the viewport. */
@media (max-width: 680px), (max-aspect-ratio: 7 / 8) {
  .bb-game {
    align-items: center;
    overflow: hidden;
    padding: 8px;
  }

  .bb-play-layout {
    width: min(100%, 560px);
    height: calc(100vh - 16px);
    height: min(calc(100vh - 16px), calc(100svh - 16px));
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .bb-graph-panel {
    min-height: 0;
  }

  .bb-graph-box {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
  }

  .bb-control-panel {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(88px, .72fr);
    grid-template-rows: auto auto auto auto;
    gap: 5px;
    padding: 6px;
  }

  .bb-target-card { grid-column: 1 / 3; grid-row: 1; }
  .bb-time-card { grid-column: 1; grid-row: 2; }
  .bb-position-card { grid-column: 2; grid-row: 2; }
  .bb-arrow-pad { grid-column: 3; grid-row: 1 / 4; }
  .bb-feed-button { grid-column: 1; grid-row: 3; }
  .bb-feedback { grid-column: 2; grid-row: 3; }
  .bb-side-footer { grid-column: 1 / -1; grid-row: 4; }

  .bb-target-label {
    font-size: clamp(12px, 4.4vw, 20px);
    margin-bottom: 4px;
  }

  .bb-target {
    font-size: clamp(24px, 9.5vw, 40px);
    line-height: .92;
    letter-spacing: 0;
  }

  .bb-time-card span,
  .bb-position-card span {
    font-size: clamp(8px, 3vw, 12px);
  }

  .bb-time-card strong,
  .bb-position-card strong {
    font-size: clamp(14px, 5.5vw, 24px);
  }

  .bb-time-card small {
    font-size: clamp(8px, 2.9vw, 11px);
  }

  .bb-arrow-pad {
    --bb-arrow-size: clamp(24px, 8vw, 32px);
    --bb-arrow-gap: 4px;
    --bb-arrow-pad-space: 2px;
    gap: 4px;
    max-width: 108px;
  }

  .bb-arrow {
    width: 100%;
    height: 100%;
    font-size: clamp(18px, 7vw, 28px);
  }

  .bb-feed-button {
    width: 100%;
    min-height: clamp(34px, 10vw, 44px);
    font-size: clamp(18px, 6vw, 28px);
  }

  .bb-feedback {
    min-height: clamp(34px, 10vw, 44px);
    font-size: clamp(9px, 3vw, 12px);
    line-height: 1.15;
  }

  .bb-side-footer { gap: 6px; }
}

@media (max-width: 480px) {
  .bb-control-panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(80px, .64fr);
  }

  .bb-target-label {
    font-size: clamp(11px, 4vw, 18px);
  }

  .bb-target {
    font-size: clamp(22px, 8.5vw, 36px);
  }

  .bb-time-card,
  .bb-position-card {
    min-height: 0;
  }
}

@media (max-height: 720px) {
  .bb-home-card {
    padding: clamp(10px, 2.2svh, 18px);
    gap: clamp(4px, 1.05svh, 8px);
  }

  .bb-kicker {
    padding: 4px 14px;
    border-width: 2px;
    font-size: clamp(12px, 2svh, 16px);
  }

  .bb-title {
    font-size: clamp(36px, min(10vw, 13svh), 108px);
  }

  .bb-subtitle {
    font-size: clamp(20px, min(4.8vw, 5.7svh), 50px);
    -webkit-text-stroke-width: 1px;
    text-shadow: 0 2px 0 #111, 0 5px 8px rgba(0, 0, 0, .16);
  }

  .bb-home-text {
    font-size: clamp(13px, min(2.55vw, 3svh), 24px);
    line-height: 1.22;
  }

  .bb-big-button {
    min-height: clamp(42px, 6svh, 56px);
    padding: 7px 26px 9px;
    font-size: clamp(20px, min(4vw, 5svh), 38px);
  }

  .bb-edu-link {
    min-height: 32px;
    padding: 5px 16px;
    border-width: 2px;
    font-size: clamp(12px, 2svh, 16px);
  }
}

@media (max-width: 420px) {
  .bb-screen { padding: 10px; }
  .bb-game { padding: 8px; }
  .bb-home-card {
    height: calc(100vh - 20px);
    height: calc(100svh - 20px);
    padding: 18px;
    border-radius: 24px;
  }
  .bb-title,
  .bb-subtitle { -webkit-text-stroke: 2px #111; text-shadow: 0 3px 0 #111, 0 7px 12px rgba(0, 0, 0, .18); }
  .bb-home-text { font-size: clamp(14px, 4.5vw, 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
