.btr-hero-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.btr-latest-draw {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 7px 10px;
  border: 1px solid #b99653;
  border-radius: 9px;
  background: #29241d;
  color: #ffda81;
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}
.btr-latest-draw:hover { background: #403321; }
.btr-latest-draw:focus-visible { outline: 2px solid #ffda81; outline-offset: 3px; }
.bombo[hidden] { display: none !important; }
.bombo {
  scroll-margin-top: 80px;
  --bombo-text: #f1f6f8;
  --bombo-muted: #a8bdc9;
  --bombo-gold: #ffda81;
  color: var(--bombo-text);
  background: #0e1924;
  border: 1px solid #304755;
  border-radius: 22px;
  overflow: hidden;
}
.bombo [hidden] { display: none !important; }
.bombo-show {
  display: grid;
  grid-template: "intro stage" auto "reveal stage" auto / minmax(0, 1fr) minmax(0, 1.27fr);
  align-items: center;
  column-gap: 12px;
  padding: 23px clamp(16px, 4vw, 30px);
  background:
    radial-gradient(ellipse at 76% 34%, #315b6d 0, #122936 42%, transparent 70%),
    linear-gradient(140deg, #14222d, #090f19 83%);
}
.bombo-intro { grid-area: intro; align-self: end; }
.bombo-kicker {
  color: var(--bombo-gold);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.bombo-kicker > span { display: inline-block; width: 4px; height: 4px; margin: 0 3px 2px; border-radius: 50%; background: currentColor; }
.bombo #bombo-title {
  margin: 13px 0 16px;
  color: var(--bombo-text);
  font-size: clamp(2.75rem, 7vw, 4.15rem);
  font-weight: 880;
  letter-spacing: -.075em;
  line-height: .94;
}
.bombo h2 em { display: block; color: var(--bombo-gold); font-style: normal; }
.bombo-prize { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.bombo-prize svg { box-sizing: border-box; padding: 7px; color: var(--bombo-gold); background: #ffda811a; border-radius: 9px; }
.bombo-prize small, .bombo-prize strong, .bombo-note { display: block; }
.bombo-prize small { color: var(--bombo-muted); font-size: .64rem; font-weight: 750; letter-spacing: .12em; }
.bombo-prize strong { font-size: 1.12rem; }
.bombo-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--bombo-gold);
  color: #29200f;
  font: inherit;
  font-size: .9rem;
  font-weight: 850;
  cursor: pointer;
}
.bombo-button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.bombo-button[aria-disabled="true"] { opacity: .68; cursor: wait; }
.bombo-note { margin-top: 8px; color: var(--bombo-muted); font-size: .78rem; }
.bombo-stage { grid-area: stage; min-width: 0; width: min(100%, 390px); margin-inline: auto; }
.bombo-stage-label {
  display: table;
  margin: 0 auto 2px;
  padding: 5px 9px;
  color: #d7eff5;
  background: #0c202d;
  border: 1px solid #54727f;
  border-radius: 5px;
  text-align: center;
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bombo-machine { position: relative; isolation: isolate; aspect-ratio: 400 / 412; }
.bombo-machine > div, .bombo-machine canvas { position: absolute; }
.bombo-housing {
  inset: 26% 11% 2%;
  border: 1px solid #5c7581;
  border-radius: 18% 18% 9% 9%;
  background:
    radial-gradient(circle at 4% 79%, #d6e4e8 0 1px, #192c37 3px, transparent 4px),
    radial-gradient(circle at 96% 79%, #d6e4e8 0 1px, #192c37 3px, transparent 4px),
    repeating-linear-gradient(90deg, transparent 0 3px, #86a7b106 3px 4px),
    linear-gradient(105deg, #101d29, #4f6874 15%, #1b2d38 30% 72%, #47616d 90%, #121e29);
  box-shadow: inset 0 1px 3px #bbd5dc80, 0 13px 24px #03070c99;
}
.bombo-drum, .bombo-glass {
  box-sizing: border-box;
  inset: 4.6% 16.5% auto;
  aspect-ratio: 1;
  border-radius: 50%;
}
.bombo-drum {
  border: 5px solid #849da9;
  background:
    radial-gradient(ellipse at 50% 100%, #0b1722 5%, transparent 57%),
    radial-gradient(ellipse at 30% 24%, #467285, #1b3645 56%, #102331 79%);
  box-shadow: 0 0 0 2px #1b2e3c, 0 0 0 4px #66828f, 0 0 0 7px #233945, 0 16px 25px #050d16c0, inset 0 0 19px 5px #070f17;
}
.bombo-drum::before {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  content: "";
  background: conic-gradient(from -36deg, #f7ffff, #637c88 17%, #dae8ea 25%, #384957 42%, #a7c2c9 58%, #253b49 78%, #f7ffff);
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.bombo[data-phase="mix"] .bombo-drum {
  box-shadow: 0 0 0 2px #1b2e3c, 0 0 0 4px #85cad7, 0 0 0 7px #233945, 0 0 28px #60cad74a, inset 0 0 19px 5px #070f17;
}
.bombo-glass {
  pointer-events: none;
  border: 4px solid transparent;
  border-top-color: #efffff99;
  border-right-color: #e1fdff4d;
  background:
    linear-gradient(137deg, transparent 15%, #e7faff25 27%, #e7faff04 38%, transparent 45%),
    radial-gradient(ellipse at 22% 8%, #f0ffff35 0%, transparent 50%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64% 100%, 64% 86%, 36% 86%, 36% 100%, 0 100%);
}
.bombo-chute {
  inset: 62.8% 40.75% 16.2%;
  border: 2px solid #77919b;
  border-top-color: #152a34;
  border-radius: 5px 5px 10px 10px;
  background: linear-gradient(90deg, #839ea8, #172f3a 19%, #10242f 81%, #839ea8);
  box-shadow: inset 0 8px 12px #061019;
}
.bombo[data-phase="drop"] .bombo-chute { border-color: #cf9d4e; }
.bombo-tray {
  inset: 82.8% 23% 4%;
  border: 2px solid #8a9faa;
  border-radius: 12px 12px 26px 26px;
  background: linear-gradient(180deg, #1d3541, #09131e 75%);
  box-shadow: 0 14px 22px #040b11a8;
}
.bombo-tray-lip {
  inset: 94.25% 24% 4%;
  background: linear-gradient(#92a9b5, #29424f);
  border-radius: 2px 2px 10px 10px;
}
.bombo-plaque {
  inset: auto auto 0 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border: 1px solid #78919c;
  border-radius: 3px;
  background: linear-gradient(#3c5968, #13232e);
  color: #e1eef3;
  font-size: clamp(.42rem, 1.4vw, .56rem);
  font-weight: 850;
  letter-spacing: .13em;
  white-space: nowrap;
}
.bombo-machine canvas { inset: 0; width: 100%; height: 100%; }
.bombo-reveal { grid-area: reveal; align-self: start; min-width: 0; min-height: 88px; padding-top: 12px; }
.bombo-result {
  padding: 9px 10px;
  border: 1px solid #9f793b;
  border-radius: 9px;
  background: #1d2325;
  animation: bombo-reveal .28s ease-out both;
}
.bombo-result .btr-identity { margin-top: 6px; gap: 7px; }
.bombo-result .btr-identity-copy strong { white-space: normal; font-size: .92rem; }
.bombo-result .btr-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-color: #b89250; }
@keyframes bombo-reveal { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.bombo-celebration {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 12px;
  border: 0;
  background: radial-gradient(ellipse at 50% 36%, color-mix(in srgb, var(--bombo-winner-color, #163144), #658399 45%), #071019 68%);
  color: #f6fbff;
  overflow: auto;
}
.bombo-celebration::backdrop { background: #050b12; }
.bombo-celebration-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 40px 6px 14px;
  text-align: center;
}
.bombo-close {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #b1c5cf;
  border-radius: 8px;
  background: #0c1a25;
  color: #f6fbff;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.bombo-close:focus-visible { outline: 2px solid #ffda81; outline-offset: 3px; }
.bombo-celebration-label {
  margin: 0 0 6px;
  color: #ffdf91;
  font-size: clamp(.72rem, 2.5vw, 1.05rem);
  font-weight: 850;
  letter-spacing: .22em;
}
.bombo-portrait {
  display: grid;
  place-items: center;
  width: min(84vw, 64dvh, 540px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid var(--bombo-winner-accent, #ffda81);
  border-radius: 50%;
  background: #122430;
  box-shadow: 0 0 0 7px #ffffff18, 0 0 38px #e2f1f359;
  font-size: clamp(3rem, 20vw, 10rem);
  font-weight: 900;
}
.bombo-portrait img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: center 35%; }
.bombo-celebration-team {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 7px;
  min-width: 0;
}
.bombo-celebration-team img { width: clamp(27px, 6vw, 58px); aspect-ratio: 1; object-fit: contain; flex: none; }
.bombo-celebration-team #bombo-winner-title { margin: 0; font-size: clamp(1.45rem, 6vw, 3.8rem); line-height: 1; overflow-wrap: anywhere; }
.bombo-manager { margin: 0; color: #d8e7ef; font-size: clamp(1rem, 3vw, 1.45rem); }
.bombo-celebration[open] .bombo-portrait { animation: bombo-portrait-in .9s cubic-bezier(.2,.7,.25,1) both; }
.bombo-celebration[open] :is(.bombo-celebration-label, .bombo-celebration-team, .bombo-manager) { animation: bombo-reveal .55s .27s both; }
@keyframes bombo-portrait-in {
  0% { transform: scale(.2); opacity: 0; }
  70% { transform: scale(1.05); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.bombo-roster { padding: 16px clamp(14px, 3vw, 23px) 20px; border-top: 1px solid #304755; }
.bombo-roster-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.bombo-roster h3, .bombo-roster p, .bombo-roster ul { margin: 0; }
.bombo-roster-heading span { padding: 2px 7px; border-radius: 5px; background: #ffda8119; color: var(--bombo-gold); font-size: .75rem; }
.bombo-roster p { margin-top: 5px; color: var(--bombo-muted); font-size: .82rem; }
.bombo-roster ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(175px, 100%), 1fr));
  gap: 6px;
  padding: 10px 0 0;
  list-style: none;
}
.bombo-roster li { min-width: 0; padding: 7px; border: 1px solid #2d4655; border-radius: 8px; background: #152532; }
.bombo-roster .btr-identity { gap: 7px; }
.bombo-roster .btr-avatar { width: 33px; height: 33px; flex: 0 0 33px; }
.bombo-roster .btr-identity-copy strong { white-space: normal; font-size: .79rem; }
.bombo .btr-identity-copy small { color: var(--bombo-muted); margin-top: 3px; font-size: .72rem; }
.bombo-roster .btr-shield { width: 17px; height: 19px; flex-basis: 17px; }
@media (max-width: 480px) {
  .bombo-show { grid-template: "intro" auto "stage" auto "reveal" auto / minmax(0, 1fr); }
  .bombo-stage { width: min(100%, 300px); margin-top: 16px; }
  .bombo h2 em { display: inline; }
  .bombo-roster ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .bombo-result, .bombo-celebration[open] :is(.bombo-portrait, .bombo-celebration-label, .bombo-celebration-team, .bombo-manager) { animation: none; }
}
