/* Bibgo: game presentation only. The BARÆ navigation, account and sharing stay common. */
.bb-stage,
.bb-result-details {
  --bb-bg: #1e1a27;
  --bb-paper: #292435;
  --bb-ink: #f4effa;
  --bb-soft: #b4abbe;
  --bb-line: #494054;
  --bb-purple: #bea1f2;
  --bb-lilac: #392b50;
  --bb-green: #95dfb0;
  --bb-green-bg: #163c2b;
  --bb-red: #ff9eae;
  --bb-red-bg: #492936;
  --bb-gold: #f0d489;
  --bb-gold-bg: #4b3b20;
  color: var(--bb-ink);
  font: 14px/1.4 "Trebuchet MS", "Avenir Next", system-ui, sans-serif;
  text-align: left;
}
body[data-view="daily"] #game-stage.bb-stage {
  max-width: 420px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.bb-stage *,
.bb-stage *::before,
.bb-stage *::after,
.bb-result-details *,
.bb-result-details *::before,
.bb-result-details *::after { box-sizing: border-box; }
.bb-stage [hidden],
.bb-result-details [hidden] { display: none !important; }
.bb-stage button,
.bb-result-details button { font: inherit; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.bb-stage :is(button,a):focus-visible,
.bb-result-details :is(button,summary,a):focus-visible { outline: 3px solid var(--bb-purple); outline-offset: 3px; }
.bb-game { display: grid; grid-template-columns: minmax(0,1fr) 88px; column-gap: 8px; }
.bb-game > * { grid-column: 1 / -1; min-width: 0; }
/* Keep the character, timer, Pass and all nine choices above the fixed BARÆ dock. */
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-intro { grid-column: 2; grid-row: 1; margin: 0; justify-content: flex-end; }
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-tagline { display: none; }
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-help { padding-inline: 8px; }
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-scorebar { grid-column: 1; grid-row: 1; }
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-person { grid-column: 1; grid-row: 2; }
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-actions { grid-column: 2; grid-row: 2; margin-top: 14px; }
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-action { align-content: center; padding-inline: 7px; }
.bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-action small { font-size: 10px; }
.bb-intro,
.bb-scorebar,
.bb-board-meta,
.bb-turn-meta,
.bb-score-value,
.bb-clock { display: flex; align-items: center; gap: 10px; }
.bb-intro,
.bb-scorebar,
.bb-board-meta,
.bb-turn-meta { justify-content: space-between; }
.bb-intro { margin: 0 0 10px; gap: 12px; }
.bb-tagline { margin: 0; color: var(--bb-soft); font-size: 13px; line-height: 1.4; }
.bb-help {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--bb-line);
  border-radius: 30px;
  background: var(--bb-paper);
  color: var(--bb-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.bb-scorebar { min-height: 49px; padding: 10px 0; border-block: 1px solid var(--bb-line); }
.bb-mode { color: var(--bb-soft); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.bb-score-value { gap: 7px; font-size: 16px; font-weight: 800; white-space: nowrap; }
.bb-score-value svg { color: var(--bb-purple); }
.bb-number { font-variant-numeric: tabular-nums; }
.bb-icon { display: block; width: 19px; height: 19px; flex: none; }
.bb-board-meta { margin: 17px 0 9px; font-size: 12px; }
.bb-board-meta strong { font-size: 13px; }
.bb-bingo-count { color: var(--bb-purple); font-weight: 700; }
.bb-board { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.bb-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  min-height: 100px;
  padding: 10px 6px;
  border: 1px solid var(--bb-line);
  border-radius: 15px;
  background: var(--bb-paper);
  color: var(--bb-ink);
  line-height: 1.3;
  text-align: center;
  transition: background .18s, border-color .18s, transform .18s;
}
.bb-cell .bb-icon { color: var(--bb-purple); }
.bb-cell:disabled { cursor: default; opacity: 1; }
.bb-category { font-size: 12px; font-weight: 700; line-height: 1.23; overflow-wrap: anywhere; }
.bb-occupant { font-size: 13px; font-weight: 800; line-height: 1.18; overflow-wrap: anywhere; }
.bb-cell.bb-filled { color: var(--bb-green); border-color: #36714e; background: var(--bb-green-bg); }
.bb-cell.bb-answer-correct { color: var(--bb-green); border-color: var(--bb-green); background: var(--bb-green-bg); }
.bb-filled .bb-icon { color: var(--bb-green); }
.bb-cell.bb-wrong { color: var(--bb-red); border-color: var(--bb-red); background: var(--bb-red-bg); }
.bb-wrong .bb-icon { color: var(--bb-red); }
.bb-cell.bb-line { color: var(--bb-gold); border-color: var(--bb-gold); background: var(--bb-gold-bg); animation: bb-celebrate .45s ease-out; }
.bb-line .bb-icon { color: var(--bb-gold); }
@media (hover:hover) {
  .bb-cell:not(:disabled):hover { border-color: var(--bb-purple); background: var(--bb-lilac); transform: translateY(-2px); }
  .bb-cell.bb-filled:not(:disabled):hover { border-color: var(--bb-green); background: var(--bb-green-bg); }
  .bb-help:hover { border-color: var(--bb-purple); }
}
.bb-board-note { min-height: 17px; margin: 9px 0 0; color: var(--bb-soft); font-size: 11px; line-height: 1.4; text-align: center; }
.bb-person { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--bb-lilac); }
.bb-turn-meta { color: var(--bb-purple); font-size: 11px; font-weight: 700; line-height: 1.3; }
.bb-turn-label { letter-spacing: .055em; text-transform: uppercase; }
.bb-clock { gap: 5px; white-space: nowrap; font-size: 12px; }
.bb-clock .bb-icon { width: 14px; height: 14px; }
.bb-person-name { margin: 8px 0 10px; font-size: clamp(25px,7vw,29px); line-height: 1.15; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.bb-person-detail { display: block; margin: -4px 0 10px; color: var(--bb-soft); font-size: 11px; line-height: 1.35; }
.bb-timer { height: 4px; overflow: hidden; border-radius: 6px; background: #594371; }
.bb-timer-fill { width: 100%; height: 100%; border-radius: inherit; background: var(--bb-purple); transition: width .1s linear; }
.bb-person.bb-urgent .bb-clock { color: var(--bb-red); }
.bb-person.bb-urgent .bb-timer-fill { background: var(--bb-red); }
.bb-person.bb-paused .bb-timer-fill { width: 0; }
.bb-feedback {
  min-height: 76px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--bb-line);
  border-radius: 15px;
  background: var(--bb-paper);
}
.bb-feedback-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 12px; font-size: 14px; font-weight: 800; line-height: 1.35; }
.bb-feedback-heading > :first-child { flex: 1 1 170px; min-width: 0; overflow-wrap: anywhere; }
.bb-feedback-delta { flex: 0 0 auto; white-space: nowrap; }
.bb-feedback-description { margin: 6px 0 0; color: var(--bb-soft); font-size: 12px; line-height: 1.5; }
.bb-good { color: var(--bb-green); }
.bb-bad { color: var(--bb-red); }
.bb-win { color: var(--bb-gold); }
.bb-actions { display: flex; gap: 10px; margin-top: 12px; }
.bb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--bb-line);
  border-radius: 13px;
  color: var(--bb-ink);
  background: var(--bb-paper);
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1.4;
  text-align: center;
}
.bb-action small { color: var(--bb-soft); font-size: 12px; font-weight: 400; }
.bb-action.bb-primary { border-color: var(--bb-purple); color: #231b30; background: var(--bb-purple); }
.bb-action:disabled { opacity: .6; cursor: default; }
.bb-start-note { margin: 12px 0 0; color: var(--bb-soft); font-size: 12px; line-height: 1.45; text-align: center; }
.bb-progress { display: flex; gap: 4px; margin-top: 17px; }
.bb-progress-step { flex: 1; min-width: 0; height: 4px; border-radius: 4px; background: var(--bb-line); }
.bb-progress-step.bb-resolved { background: var(--bb-purple); opacity: .7; }
.bb-progress-step.bb-correct { background: var(--bb-green); }
.bb-progress-step.bb-missed { background: var(--bb-soft); opacity: .55; }
.bb-progress-step.bb-current { background: var(--bb-purple); }
.bb-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; margin-top: 8px; color: var(--bb-soft); font-size: 11px; line-height: 1.4; }
.bb-network { margin-top: 12px; padding: 12px 14px; border: 1px solid #e5b2bf; border-radius: 13px; background: var(--bb-red-bg); }
.bb-network p { margin: 0 0 9px; color: var(--bb-red); font-size: 12px; line-height: 1.5; }
.bb-network .bb-action { min-height: 44px; }
.bb-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.bb-result-details { max-width: 420px; margin: 24px auto 0; }
.bb-final-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-block: 18px; border-block: 1px solid var(--bb-line); text-align: center; }
.bb-final-metrics strong { display: block; font-size: 25px; line-height: 1.2; font-weight: 800; color: var(--bb-purple); }
.bb-final-metrics span { display: block; margin-top: 4px; font-size: 12px; color: var(--bb-soft); }
.bb-review { margin-top: 23px; text-align: left; }
.bb-review h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; font-weight: 800; }
.bb-review-note { margin: 0 0 14px; color: var(--bb-soft); font-size: 12px; line-height: 1.5; }
.bb-review-item { border-top: 1px solid var(--bb-line); }
.bb-review-item:last-child { border-bottom: 1px solid var(--bb-line); }
.bb-review-item > summary {
  position: relative;
  min-height: 58px;
  padding: 12px 18px 12px 0;
  color: var(--bb-ink);
  cursor: pointer;
  list-style: none;
}
.bb-review-item > summary::-webkit-details-marker { display: none; }
.bb-review-item > summary::after { content: "+"; position: absolute; top: 14px; right: 0; color: var(--bb-soft); font-size: 18px; line-height: 1; }
.bb-review-item[open] > summary::after { content: "−"; }
.bb-review-summary { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
.bb-review-name { flex: 1 1 155px; min-width: 0; font-size: 13px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }
.bb-review-status { font-size: 11px; line-height: 1.4; }
.bb-review-body { padding-bottom: 17px; }
.bb-review-choice { margin: 0 0 9px; font-size: 12px; line-height: 1.5; }
.bb-options { margin: 10px 0 14px; padding: 0; list-style: none; }
.bb-option { margin-top: 7px; padding-left: 11px; border-left: 2px solid var(--bb-line); }
.bb-option-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; font-size: 12px; font-weight: 700; line-height: 1.4; }
.bb-option-heading > :first-child { min-width: 0; overflow-wrap: anywhere; }
.bb-option-points { color: var(--bb-green); white-space: nowrap; }
.bb-option-reference { display: block; margin-top: 2px; color: var(--bb-soft); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.bb-option-definition { display: block; margin-top: 3px; color: var(--bb-soft); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.bb-review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
.bb-review-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 82px;
  padding: 8px 5px;
  border: 1px solid var(--bb-line);
  border-radius: 10px;
  background: var(--bb-bg);
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.bb-review-cell.bb-possible { border-color: #9ac3a8; color: var(--bb-green); background: var(--bb-green-bg); }
.bb-review-cell.bb-selected-wrong { border-color: var(--bb-red); color: var(--bb-red); background: var(--bb-red-bg); }
.bb-review-occupant { color: var(--bb-soft); font-size: 10px; }
.bb-chosen { font-size: 10px; font-weight: 800; }
.bb-review-legend { margin: 8px 0 0; color: var(--bb-soft); font-size: 11px; line-height: 1.5; }
.bb-unavailable { padding: 20px; border: 1px solid var(--bb-line); border-radius: 16px; background: var(--bb-paper); }
.bb-unavailable p { margin: 0; color: var(--bb-soft); font-size: 13px; line-height: 1.5; }
@keyframes bb-celebrate { 0%,100% { transform: scale(1); } 45% { transform: scale(1.035); } }
@media (max-width:370px) {
  body[data-view="daily"] #game-stage.bb-stage { padding-inline: 12px; }
  .bb-board { gap: 6px; }
  .bb-cell { min-height: 96px; padding: 9px 5px; border-radius: 13px; }
  .bb-category { font-size: 11px; }
  .bb-occupant { font-size: 12px; }
  .bb-person { padding: 13px 14px; }
  .bb-intro { gap: 8px; }
  .bb-tagline { font-size: 12px; }
  .bb-help { padding-inline: 11px; }
}
@media (max-width:480px) {
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-scorebar { min-height: 44px; padding-block: 8px; }
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-person { margin-top: 10px; padding: 12px 14px; }
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-person-name { margin: 7px 0 8px; font-size: clamp(22px,6.5vw,26px); }
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-actions { margin-top: 10px; }
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-board-meta { margin: 8px 0 7px; }
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-cell { min-height: 90px; padding-block: 8px; gap: 5px; }
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-board-note { display: none; }
  .bb-game:is([data-phase="playing"],[data-phase="transition"]) .bb-feedback { min-height: 70px; margin-top: 10px; padding: 11px 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .bb-stage *,
  .bb-stage *::before,
  .bb-stage *::after,
  .bb-result-details *,
  .bb-result-details *::before,
  .bb-result-details *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Compact daily screen: the board remains in the available area above BARÆ's dock. */
body .bg-header-meta { display: none; }
body[data-view="daily"] .bg-game-header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 0; padding: max(10px, env(safe-area-inset-top, 0px)) 16px 10px; }
body[data-view="daily"] .bg-game-header > a { min-width: 0; }
body[data-view="daily"] .bg-game-header img { width: 190px; max-width: 100%; height: auto; }
body[data-view="daily"] .bg-header-meta { display: grid; grid-template-columns: auto 44px; grid-template-rows: 40px auto; align-items: center; column-gap: 3px; }
body[data-view="daily"] .bg-day-label { display: contents; }
body[data-view="daily"] .bg-day-label > span { grid-column: 1; grid-row: 1; font-size: 12px; line-height: 1.3; white-space: nowrap; text-align: right; }
body[data-view="daily"] .bg-day-label > time { grid-column: 1 / -1; grid-row: 2; font-size: 12px; line-height: 1.4; white-space: nowrap; color: var(--game-muted); text-align: right; }
body .bg-header-help { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 44px; height: 44px; color: var(--game-accent); text-decoration: none; }
body .bg-header-help > span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--game-border); border-radius: 50%; background: var(--game-surface); font-size: 16px; line-height: 1; font-weight: 700; }
body.barae-game-platform[data-view="daily"]:not([data-phase="finished"]) { height: 100vh; height: 100dvh; min-height: 450px; padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)) !important; overflow: hidden; }
body[data-view="daily"]:not([data-phase="finished"]) .bg-shell { height: 100%; max-width: 420px; display: flex; flex-direction: column; }
body[data-view="daily"]:not([data-phase="finished"]) .bg-game-header { flex: none; }
body[data-view="daily"]:not([data-phase="finished"]) #daily-play { display: flex; flex-direction: column; flex: 1; min-height: 0; padding-bottom: 10px; }
body[data-view="daily"]:not([data-phase="finished"]) #game-stage.bb-stage { flex: 1; min-height: 0; width: 100%; }
body #game-stage .bb-game { height: 100%; grid-template-columns: minmax(0,1fr) 80px; grid-template-rows: 28px minmax(80px,max-content) minmax(0,1fr) auto 4px 16px; gap: 6px 8px; }
body #game-stage .bb-game .bb-intro,
body #game-stage .bb-game .bb-mode,
body #game-stage .bb-game .bb-board-meta,
body #game-stage .bb-game .bb-board-note,
body #game-stage .bb-game .bb-start-note { display: none !important; }
body #game-stage .bb-game .bb-scorebar { grid-column: 1 / -1; grid-row: 1; min-height: 0; padding: 2px 0 5px; border-top: 0; }
body #game-stage .bb-game .bb-bingo-count { margin-left: auto; font-size: 12px; }
body #game-stage .bb-game .bb-person { grid-column: 1; grid-row: 2; min-height: 0; margin: 0; padding: 11px 14px; }
body #game-stage .bb-game .bb-person-name { margin: 6px 0 7px; font-size: 25px; line-height: 1.12; }
body #game-stage .bb-game .bb-person-detail { margin: -3px 0 4px; font-size: 11px; line-height: 1.2; }
body #game-stage .bb-game .bb-actions { grid-column: 2; grid-row: 2; min-height: 0; margin: 0; }
body #game-stage .bb-game .bb-action { min-height: 44px; padding: 6px; align-content: center; }
body #game-stage .bb-game .bb-action small { font-size: 11px; }
body #game-stage .bb-game .bb-action[data-bb="next"] { padding-inline: 3px; font-size: 12px !important; white-space: nowrap; }
body #game-stage .bb-game .bb-board { grid-row: 3; min-height: 0; height: 100%; grid-template-rows: repeat(3,minmax(0,1fr)); }
body #game-stage .bb-game .bb-cell { min-height: 0; height: 100%; padding: 8px 6px; gap: 6px; }
body #game-stage .bb-game .bb-occupant { display: inline; font-size: 12px; line-height: 1.15; }
body #game-stage .bb-game .bb-feedback { grid-row: 4; height: 64px; min-height: 0; margin: 0; padding: 9px 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body #game-stage .bb-game .bb-feedback-heading { font-size: 13px; gap: 3px 8px; }
body #game-stage .bb-game .bb-feedback-heading > :first-child { flex: 1 1 150px; }
body #game-stage .bb-game .bb-feedback-description { margin: 4px 0 0; font-size: 11px; line-height: 1.4; }
body #game-stage .bb-game[data-phase="paused"] .bb-feedback { height: 100px; }
body #game-stage .bb-game[data-phase="paused"] .bb-feedback-description { display: none; }
body #game-stage .bb-game[data-phase="paused"] .bb-options { margin-top: 4px; }
body[data-feedback="no"] .bb-feedback { visibility: hidden; }
body #game-stage .bb-game .bb-progress { grid-row: 5; margin: 0; }
body #game-stage .bb-game .bb-footer { grid-row: 6; margin: 0; font-size: 11px; line-height: 1.4; }
body[data-view="daily"] #start-game { flex: none; min-height: 44px; margin: 8px 16px 0; padding: 10px 24px; justify-content: center; }

@media (max-width:370px) {
  body[data-view="daily"] .bg-game-header { padding-inline: 12px; }
  body #game-stage .bb-game { column-gap: 6px; grid-template-columns: minmax(0,1fr) 74px; }
  body #game-stage .bb-game .bb-person { padding-inline: 11px; }
  body #game-stage .bb-game .bb-feedback-heading > :first-child { flex-basis: 130px; }
  body #game-stage .bb-game .bb-category { font-size: 11px; }
}
@media (max-height:740px) {
  body #game-stage .bb-game { grid-template-rows: 26px minmax(72px,max-content) minmax(0,1fr) auto; row-gap: 6px; }
  body #game-stage .bb-game .bb-progress, body #game-stage .bb-game .bb-footer { display: none; }
  body #game-stage .bb-game .bb-person { padding-block: 8px; }
  body #game-stage .bb-game .bb-person-name { font-size: 23px; margin-block: 5px 6px; }
  body #game-stage .bb-game .bb-feedback { height: 54px; padding: 7px 10px; }
  body #game-stage .bb-game[data-phase="paused"] .bb-feedback { height: 72px; }
  body #game-stage .bb-game .bb-occupant { display: inline; font-size: 11px; line-height: 1.1; }
}
@media (max-height:620px) {
  body[data-view="daily"] .bg-game-header { padding-block: 3px; }
  body[data-view="daily"] .bg-game-header img { max-height: 54px; width: auto; max-width: 100%; }
  body[data-view="daily"]:not([data-phase="finished"]) #daily-play { padding-bottom: 6px; }
  body #game-stage .bb-game { grid-template-rows: 22px minmax(58px,max-content) minmax(0,1fr) auto; row-gap: 4px; }
  body #game-stage .bb-game .bb-person { padding: 6px 10px; border-radius: 13px; line-height: 1.15; }
  body #game-stage .bb-game .bb-person-name { font-size: 20px; margin-block: 3px; }
  body #game-stage .bb-game .bb-person:has(.bb-person-detail:not([hidden])) { position: relative; }
  body #game-stage .bb-game .bb-person:has(.bb-person-detail:not([hidden])) .bb-person-name { display: inline; font-size: 18px; line-height: 1.2; margin: 3px 5px 3px 0; }
  body #game-stage .bb-game .bb-person-detail:not([hidden]) { display: inline; margin: 0; font-size: 11px; line-height: 1.2; }
  body #game-stage .bb-game .bb-person:has(.bb-person-detail:not([hidden])) .bb-timer { margin-top: 3px; }
  body #game-stage .bb-game .bb-feedback { height: 36px; padding: 6px 8px; border-radius: 10px; }
  body #game-stage .bb-game[data-phase="paused"] .bb-feedback { height: 44px; }
  body #game-stage .bb-game .bb-feedback-description { margin-top: 5px; }
  body #game-stage .bb-game .bb-feedback-heading { font-size: 12px; }
  body #game-stage .bb-game .bb-cell { padding: 5px 4px; gap: 3px; border-radius: 11px; }
  body #game-stage .bb-game .bb-cell .bb-icon { display: block; width: 14px; height: 14px; }
  body #game-stage .bb-game .bb-category { font-size: 11px; line-height: 1.15; }
  body #game-stage .bb-game .bb-occupant { font-size: 10px; line-height: 1.1; }
  body #game-stage .bb-game .bb-turn-meta { font-size: 11px; }
  body[data-view="daily"] #start-game { margin-top: 6px; padding-block: 7px; }
}

body .bg-ad-dock { height: 62px; padding: 6px 0; justify-content: center; }
body #game-stage .bb-game .bb-network:not([hidden]) { position: absolute; z-index: 20; inset: auto 12px 12px; max-height: 180px; overflow-y: auto; }
body #game-stage { position: relative; }

/* Compact wordmark, including small-height screens. */
body:not(.barae-game-menu) .bg-game-header img { width:120px; max-width:100%; height:auto; }

/* Same full-viewport grey start veil as La Chaîne; the real board stays beneath. */
.bb-start-gate { position:fixed; inset:0 0 var(--bb-menu-height,74px); z-index:35; display:grid; place-items:center; padding:24px; isolation:isolate; }
.bb-start-gate[hidden] { display:none; }
.bb-start-gate::before { content:""; position:absolute; inset:0; z-index:-1; background:rgba(69,75,80,.38); }
body[data-view="daily"] .bb-start-gate #start-game { width:min(250px,100%); min-height:62px; display:flex; align-items:center; justify-content:center; gap:14px; margin:0; padding:17px 25px; border:1px solid #fff; border-radius:18px; background:#fff; color:#392b50 !important; font-size:20px; font-weight:700; line-height:1.2; box-shadow:0 8px 30px #19212a2b; }
.bb-start-gate #start-game > span { font-size:25px; line-height:1; }
.bb-start-gate #start-game:disabled { opacity:.8; cursor:wait; }
.bb-start-gate.is-opening { pointer-events:auto; }
.bb-start-gate.is-opening #start-game { animation:bb-start-reveal 150ms ease-out both; }
.bb-start-gate.is-opening::before { animation:bb-start-reveal 350ms cubic-bezier(.2,0,.2,1) both; }
.bb-start-message { position:absolute; margin:0; padding:12px 24px; border:1px solid #f0d489; border-radius:16px; background:#4b3b20; color:#f0d489; font-size:28px; font-weight:800; line-height:1.2; box-shadow:0 4px 24px #0004; }
@keyframes bb-start-reveal { from { opacity:1; } to { opacity:0; } }
@keyframes bb-intro-arrive { from { transform:translateY(-28px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.bb-intro-arriving { animation:bb-intro-arrive 220ms ease-out both; }
.bb-intro-tap { position:absolute; top:40%; left:calc(50% - 12px); width:24px; height:24px; border:2px solid var(--bb-purple); border-radius:50%; background:#bea1f24d; box-shadow:0 0 0 5px #bea1f226; pointer-events:none; }
.bb-game[data-phase="preview"] .bb-action:disabled { opacity:1; }
.bb-game[data-intro-step="renewing"] .bb-intro-slot { opacity:0; transform:translateY(-5px); }
@media (prefers-reduced-motion:reduce) {
  .bb-start-gate.is-opening::before { animation-duration:120ms; }
  .bb-intro-arriving { animation:none; }
}

/* Match the in-game wordmark to the light-purple buttons; preserve the red correction and alpha. */
body:not(.barae-game-menu) .bg-game-header img { filter: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22bibgo-light%22%20color-interpolation-filters%3D%22sRGB%22%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220.9628733%200.14603512%200.93187512%200%200%20-0.040367923%201.1587842%201.0132293%200%200%20-0.031822889%200.12517296%201.7987501%200%200%200%200%200%201%200%22%2F%3E%3C%2Ffilter%3E%3C%2Fsvg%3E#bibgo-light"); }
