.brazil-roll {
  box-sizing: border-box;
  width: min(62rem, calc(100% - 1.25rem));
  max-height: 90dvh;
  margin: auto;
  padding: clamp(12px, 3vw, 28px);
  border: 1px solid #9a7845;
  border-radius: 22px;
  color: #fff2d4;
  background: radial-gradient(ellipse at top, #2c251b, #141319 65%);
  box-shadow: 0 24px 100px #000a;
}
.brazil-roll::backdrop { background: #050911c9; }
.brazil-roll-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brazil-roll-head h2 { margin: 0; color: inherit; font-size: clamp(1.25rem, 4vw, 2rem); }
.brazil-roll .brazil-close { color: inherit; background: transparent; font-size: 1.5rem; padding: 4px 12px; }
.brazil-reel { position: relative; overflow: hidden; margin-top: 18px; background: #0a0a0e; border: 1px solid #534329; border-radius: 12px; }
.brazil-reel::after { content: ''; position: absolute; inset: 0 auto 0 50%; width: 2px; background: #ffd883; box-shadow: 0 0 12px #ffbc48; pointer-events: none; }
.brazil-track, .brazil-pool { position: relative; display: flex; gap: 8px; }
.brazil-track { padding: 12px 8px; }
.brazil-pool { overflow-x: auto; padding: 10px 2px; }
.brazil-roll figure { margin: 0; text-align: center; flex: 0 0 clamp(85px, 17vw, 136px); min-width: 0; }
.brazil-roll figure img { display: block; width: 100%; aspect-ratio: 5/7; object-fit: contain; border-radius: 8px; }
.brazil-roll figcaption { margin-top: 4px; font-size: .78rem; line-height: 1.25; }
.brazil-roll figcaption small { display: block; color: #ffd883; margin-top: 4px; }
.brazil-track figcaption { display: none; }
.brazil-winner { outline: 2px solid #ffd883; border-radius: 8px; }
.brazil-result { text-align: center; min-height: 1.5em; font-weight: 700; margin: 10px 0; }
.brazil-roll-actions { text-align: center; margin: 0 0 14px; }
.brazil-roll summary { cursor: pointer; }
.brazil-roll button { cursor: pointer; }
.brazil-roll button:disabled { cursor: wait; }
.brazil-roll [hidden] { display: none; }

.brazil-reveal {
  display: grid;
  place-items: center;
  perspective: 850px;
  padding: 12px 0;
  margin-top: 10px;
  background: radial-gradient(ellipse at center, #8d64353d, transparent 66%);
}
.brazil-reveal-card {
  position: relative;
  width: min(100%, 22rem, 40dvh);
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
}
.brazil-reveal-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  backface-visibility: hidden;
}
.brazil-reveal-back { transform: rotateY(180deg); }
.brazil-roll-controls { display: flex; align-items: center; gap: 6px; }
.brazil-roll .brazil-mute { color: inherit; background: transparent; font-size: .8rem; white-space: nowrap; padding: 6px 9px; border: 1px solid #80643e; border-radius: 8px; }
.brazil-roll .brazil-mute[aria-pressed="true"] { background: #594529; }
